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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6862ad368ceda4ea8baba44f7de4c3b9e8938302 | .config/fish/config.fish | .config/fish/config.fish | source ~/.asdf/asdf.fish
set -x ERL_AFLAGS "-kernel shell_history enabled"
| source ~/.asdf/asdf.fish
set -x ERL_AFLAGS "-kernel shell_history enabled"
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
| Add sbin to fish path | Add sbin to fish path
brew doctor says so
| fish | mit | rockwood/dotfiles,rockwood/dotfiles | fish | ## Code Before:
source ~/.asdf/asdf.fish
set -x ERL_AFLAGS "-kernel shell_history enabled"
## Instruction:
Add sbin to fish path
brew doctor says so
## Code After:
source ~/.asdf/asdf.fish
set -x ERL_AFLAGS "-kernel shell_history enabled"
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
| source ~/.asdf/asdf.fish
set -x ERL_AFLAGS "-kernel shell_history enabled"
+ set -g fish_user_paths "/usr/local/sbin" $fish_user_paths | 1 | 0.5 | 1 | 0 |
059e9278325c0c1dbd1c557c4719af7ed6db0e27 | README.md | README.md | craft-akka-server
=================
| Akka based Craft server
=======================
This is a reimplementation of the python server distributed with the [fogleman/Craft](https://github.com/fogleman/Craft) project. Specifically it is built to run with the modified client in the [nsg/Craft](https://github.com/nsg/Craft) project, which is implementing the ... | Add a minimal amount of information to the readme | Add a minimal amount of information to the readme
| Markdown | mit | Henningstone/server,Henningstone/server,konstructs/server | markdown | ## Code Before:
craft-akka-server
=================
## Instruction:
Add a minimal amount of information to the readme
## Code After:
Akka based Craft server
=======================
This is a reimplementation of the python server distributed with the [fogleman/Craft](https://github.com/fogleman/Craft) project. Specif... | - craft-akka-server
+ Akka based Craft server
- =================
+ =======================
? ++++++
+
+ This is a reimplementation of the python server distributed with the [fogleman/Craft](https://github.com/fogleman/Craft) project. Specifically it is built to run with the modified client in the [n... | 15 | 7.5 | 13 | 2 |
b6a43578a383c4ab78068f5dc18a4b9f1d193939 | app/controllers/denuncias_controller.rb | app/controllers/denuncias_controller.rb | class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
redirect_to denuncia_path(@denuncia)
else
redirect_to root_path, error: 'Hubo errores procesando su denuncia.'
end
end
def sho... | class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
DenunciaMailer.resultado(@denuncia.id).deliver_later
redirect_to denuncia_path(@denuncia)
else
redirect_to root_path, error: 'Hub... | Send email when creating denuncia. | Send email when creating denuncia.
| Ruby | mit | antico5/odila,antico5/odila,antico5/odila | ruby | ## Code Before:
class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
redirect_to denuncia_path(@denuncia)
else
redirect_to root_path, error: 'Hubo errores procesando su denuncia.'
end
... | class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
+ DenunciaMailer.resultado(@denuncia.id).deliver_later
redirect_to denuncia_path(@denuncia)
else
redirect_to ro... | 1 | 0.032258 | 1 | 0 |
68494aae959dfbbf781cdf03a988d2f5fc7e4802 | CMake/abslConfig.cmake.in | CMake/abslConfig.cmake.in |
include(FindThreads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") |
include(CMakeFindDependencyMacro)
find_dependency(Threads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") | Fix CMake Threads dependency issue | Fix CMake Threads dependency issue
Fixes #668 | unknown | apache-2.0 | firebase/abseil-cpp,abseil/abseil-cpp,firebase/abseil-cpp,abseil/abseil-cpp,abseil/abseil-cpp,firebase/abseil-cpp,firebase/abseil-cpp,abseil/abseil-cpp | unknown | ## Code Before:
include(FindThreads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
## Instruction:
Fix CMake Threads dependency issue
Fixes #668
## Code After:
include(CMakeFindDependencyMacro)
find_dependency(Threads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT... |
- include(FindThreads)
+ include(CMakeFindDependencyMacro)
+ find_dependency(Threads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") | 3 | 0.5 | 2 | 1 |
dd79dac3c66254ca3ea81b283197975418e04944 | src/libs/notification/tests/CMakeLists.txt | src/libs/notification/tests/CMakeLists.txt | include (LibAddMacros)
if (BUILD_TESTING)
add_headers (HDR_FILES)
set (TESTS
testlib_notification.c
)
foreach (file ${TESTS})
get_filename_component (name ${file} NAME_WE)
set (TEST_SOURCES $<TARGET_OBJECTS:cframework>)
list (APPEND TEST_SOURCES ${name})
list (APPEND TEST_SOURCES ${HDR_FILES})
add... | include (LibAddMacros)
set (ASAN_LINUX (ENABLE_ASAN AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
if (BUILD_TESTING AND NOT ${ASAN_LINUX})
add_headers (HDR_FILES)
set (TESTS
testlib_notification.c
)
foreach (file ${TESTS})
get_filename_component (name ${file} NAME_WE)
set (TEST_SOURCES $<TARGET_OBJECTS:cframe... | Disable test on ASAN enabled Linux | Notifications: Disable test on ASAN enabled Linux
Currently the ASAN enabled Linux build reports some memory leaks in the
test `testlib_notification`.
This commit addresses issue #1824.
| Text | bsd-3-clause | petermax2/libelektra,e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,petermax2/libelektra,e1528532/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,e1528532/libelektra,BernhardDenner/libelektra,mpranj/libelektra,Elektr... | text | ## Code Before:
include (LibAddMacros)
if (BUILD_TESTING)
add_headers (HDR_FILES)
set (TESTS
testlib_notification.c
)
foreach (file ${TESTS})
get_filename_component (name ${file} NAME_WE)
set (TEST_SOURCES $<TARGET_OBJECTS:cframework>)
list (APPEND TEST_SOURCES ${name})
list (APPEND TEST_SOURCES ${HD... | include (LibAddMacros)
- if (BUILD_TESTING)
+ set (ASAN_LINUX (ENABLE_ASAN AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
+
+ if (BUILD_TESTING AND NOT ${ASAN_LINUX})
add_headers (HDR_FILES)
set (TESTS
testlib_notification.c
)
foreach (file ${TESTS})
get_filename_component (name ${file} NAME... | 6 | 0.193548 | 4 | 2 |
e553225be53545c7f33fcca58c12402ddb4489e3 | test/functional/quick_jump_targets_controller_test.rb | test/functional/quick_jump_targets_controller_test.rb | require 'test_helper'
class QuickJumpTargetsControllerTest < ActionController::TestCase
setup do
QuickJumpTarget.update_all Project, Page
end
test "should render json on index" do
with_login do |user|
get :index, :format => :json, :query => "first"
@data = assigns['data']
assert_not_ni... | require 'test_helper'
class QuickJumpTargetsControllerTest < ActionController::TestCase
setup do
QuickJumpTarget.update_all Project, Page
end
test "should render json on index" do
with_login do |user|
get :index, :format => :json, :query => "first"
@data = assigns['data']
assert_not_ni... | Fix failing tests for quick_jump_targets_controller | Fix failing tests for quick_jump_targets_controller
| Ruby | mit | rrrene/outline,rrrene/outline | ruby | ## Code Before:
require 'test_helper'
class QuickJumpTargetsControllerTest < ActionController::TestCase
setup do
QuickJumpTarget.update_all Project, Page
end
test "should render json on index" do
with_login do |user|
get :index, :format => :json, :query => "first"
@data = assigns['data']
... | require 'test_helper'
class QuickJumpTargetsControllerTest < ActionController::TestCase
setup do
QuickJumpTarget.update_all Project, Page
end
test "should render json on index" do
with_login do |user|
get :index, :format => :json, :query => "first"
@data = assigns['data... | 8 | 0.285714 | 5 | 3 |
1df2d044b289990ebe5aae631bbf9cb7fb250f76 | .travis.yml | .travis.yml | sudo: false
rvm:
- 2.1.5
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake settings:update_defaults RAILS_ENV=test
- bundle exec rspec
before_script:
- cp config/channel.constants.sample.yml config/channel.constants.yml
- cp config/advanced.constants.sample.yml config/advanced.constants.yml
no... | sudo: false
rvm:
- 2.1.5
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake settings:update_defaults RAILS_ENV=test
- bundle exec rspec
before_script:
- cp config/channel.constants.sample.yml config/channel.constants.yml
- cp config/advanced.constants.sample.yml config/advanced.constants.yml
notifi... | Add slack notifier for Travis | Add slack notifier for Travis
| YAML | mit | joegattnet/joegattnet_v3,joegattnet/joegattnet_v3,nembrotorg/nembrot,nembrotorg/nembrot,joegattnet/joegattnet_v3,nembrotorg/nembrot | yaml | ## Code Before:
sudo: false
rvm:
- 2.1.5
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake settings:update_defaults RAILS_ENV=test
- bundle exec rspec
before_script:
- cp config/channel.constants.sample.yml config/channel.constants.yml
- cp config/advanced.constants.sample.yml config/advanced.c... | sudo: false
-
rvm:
- 2.1.5
-
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake settings:update_defaults RAILS_ENV=test
- bundle exec rspec
-
before_script:
- cp config/channel.constants.sample.yml config/channel.constants.yml
- cp config/advanced.constants.sample.yml config/... | 10 | 0.454545 | 2 | 8 |
f06770e94d9d8ce5470d162719634600a6d214e1 | vimrcs/plugins/frontend.vim | vimrcs/plugins/frontend.vim | """"""""""""""""""""""
" => Front-End
""""""""""""""""""""""
Plug 'mattn/emmet-vim'
Plug 'jelera/vim-javascript-syntax'
Plug 'hail2u/vim-css3-syntax'
Plug 'gorodinskiy/vim-coloresque'
Plug 'tpope/vim-haml'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => SCSS syntax
""""""""""""""""""""""""""""""""... | """"""""""""""""""""""
" => Front-End
""""""""""""""""""""""
Plug 'mattn/emmet-vim'
Plug 'jelera/vim-javascript-syntax'
Plug 'hail2u/vim-css3-syntax'
Plug 'gorodinskiy/vim-coloresque'
Plug 'tpope/vim-haml'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => SCSS syntax
""""""""""""""""""""""""""""""""... | Set two tabspace for html files | Set two tabspace for html files
| VimL | mit | ThiagoLopes/vim-master | viml | ## Code Before:
""""""""""""""""""""""
" => Front-End
""""""""""""""""""""""
Plug 'mattn/emmet-vim'
Plug 'jelera/vim-javascript-syntax'
Plug 'hail2u/vim-css3-syntax'
Plug 'gorodinskiy/vim-coloresque'
Plug 'tpope/vim-haml'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => SCSS syntax
""""""""""""""""... | """"""""""""""""""""""
" => Front-End
""""""""""""""""""""""
Plug 'mattn/emmet-vim'
Plug 'jelera/vim-javascript-syntax'
Plug 'hail2u/vim-css3-syntax'
Plug 'gorodinskiy/vim-coloresque'
Plug 'tpope/vim-haml'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => SCSS syntax
""""""""... | 8 | 0.615385 | 8 | 0 |
6935fb259a228bca7d11ac173e23c56235d235dc | app.js | app.js | /*
* Mailchimp AJAX form submit VanillaJS
* Vanilla JS
* Author: Michiel Vandewalle
* Github author: https://github.com/michiel-vandewalle
* Github project: https://github.com/michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS
*/
(function () {
document.getElementsByTagName('form')[0].addEventListener('... | /*
* Mailchimp AJAX form submit VanillaJS
* Vanilla JS
* Author: Michiel Vandewalle
* Github author: https://github.com/michiel-vandewalle
* Github project: https://github.com/michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS
*/
(function () {
if (document.getElementsByTagName('form').length > 0) {
... | Make sure the subscribe form is available before running the script | Make sure the subscribe form is available before running the script
| JavaScript | mit | michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS,michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS | javascript | ## Code Before:
/*
* Mailchimp AJAX form submit VanillaJS
* Vanilla JS
* Author: Michiel Vandewalle
* Github author: https://github.com/michiel-vandewalle
* Github project: https://github.com/michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS
*/
(function () {
document.getElementsByTagName('form')[0].ad... | /*
* Mailchimp AJAX form submit VanillaJS
* Vanilla JS
* Author: Michiel Vandewalle
* Github author: https://github.com/michiel-vandewalle
* Github project: https://github.com/michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS
*/
(function () {
+ if (document.getElementsByTagName('form... | 54 | 1.255814 | 28 | 26 |
da8b40ea8593bd6c5cb0acbc0d6c6ace80e38fe7 | assets/css/images.less | assets/css/images.less | img[src*="new-tools-to-try-out.png"] {
margin-top: 20px;
}
.to-try-out-img {
.text-right;
}
.distributions-icon img {
height: 57px;
}
| img[src*="new-tools-to-try-out.png"] {
margin-top: 20px;
}
.to-try-out-img {
.text-right;
}
.distributions-icon img {
height: 57px;
}
.laptop-responsive {
width: 100%;
padding: 1em;
}
| Add case for laptop image in css | Add case for laptop image in css | Less | mit | openSUSE/landing-page,openSUSE/landing-page,openSUSE/landing-page | less | ## Code Before:
img[src*="new-tools-to-try-out.png"] {
margin-top: 20px;
}
.to-try-out-img {
.text-right;
}
.distributions-icon img {
height: 57px;
}
## Instruction:
Add case for laptop image in css
## Code After:
img[src*="new-tools-to-try-out.png"] {
margin-top: 20px;
}
.to-try-out-img {
.text-right;
}
.di... | img[src*="new-tools-to-try-out.png"] {
margin-top: 20px;
}
.to-try-out-img {
.text-right;
}
.distributions-icon img {
height: 57px;
}
+ .laptop-responsive {
+ width: 100%;
+ padding: 1em;
+ } | 4 | 0.444444 | 4 | 0 |
ccf3c89d32adf64aeadb48da0b0dc0b941a634fc | README.md | README.md |
[](https://gitter.im/bitrise-io/bitrise-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
**Technology Preview:** this repository is still under active development, breaking changes are e... |
[](https://gitter.im/bitrise-io/bitrise-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
**Technology Preview:** this repository is still under active development, breaking changes are e... | Install instructions now points to /releases | Install instructions now points to /releases | Markdown | mit | bloodrabbit/bitrise,viktorbenei/bitrise,bitrise-io/bitrise,bitrise-io/bitrise-cli,bitrise-io/bitrise-cli,viktorbenei/bitrise,BONDARENKO-q/bitrise,birmacher/bitrise,bitrise-io/bitrise,BONDARENKO-q/bitrise,bazscsa/bitrise-cli,kokomo88/bitrise-cli,bazscsa/bitrise-cli,bloodrabbit/bitrise,birmacher/bitrise,kokomo88/bitrise-... | markdown | ## Code Before:
[](https://gitter.im/bitrise-io/bitrise-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
**Technology Preview:** this repository is still under active development, breaki... |
[](https://gitter.im/bitrise-io/bitrise-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
**Technology Preview:** this repository is still under active development, breaking chang... | 23 | 0.479167 | 1 | 22 |
330cf84d6c8dd988717dab5fb97672a10a3f3185 | app/places/templates/busrti.handlebars | app/places/templates/busrti.handlebars | {{#if messages}}
<table>
{{#messages}}
<tr>{{ this }}</tr>
{{/messages}}
</table>
{{/if}}
{{#if services}}
<img src="images/preloader.gif" id="rti-load" class="preloader" width="15" height="15">
<table id="bus-rti">
<tbody>
{{#services}}
<tr>
<td rowspan="2"><span class="service... | {{#if messages}}
<table>
{{#messages}}
<tr>{{ this }}</tr>
{{/messages}}
</table>
{{/if}}
{{#if services}}
<img src="images/preloader.gif" id="rti-load" class="preloader" width="15" height="15">
<table id="bus-rti">
<tbody>
{{#services}}
<tr>
<td rowspan="2"><span class="service... | Include last updated time regardless of any services | Include last updated time regardless of any services
| Handlebars | apache-2.0 | ox-it/moxie-js-client,ox-it/moxie-js-client,ox-it/moxie-js-client,ox-it/moxie-js-client | handlebars | ## Code Before:
{{#if messages}}
<table>
{{#messages}}
<tr>{{ this }}</tr>
{{/messages}}
</table>
{{/if}}
{{#if services}}
<img src="images/preloader.gif" id="rti-load" class="preloader" width="15" height="15">
<table id="bus-rti">
<tbody>
{{#services}}
<tr>
<td rowspan="2"><spa... | {{#if messages}}
<table>
{{#messages}}
<tr>{{ this }}</tr>
{{/messages}}
</table>
{{/if}}
{{#if services}}
<img src="images/preloader.gif" id="rti-load" class="preloader" width="15" height="15">
<table id="bus-rti">
<tbody>
{{#services}}
<tr>
<td ro... | 7 | 0.189189 | 4 | 3 |
bdcef01d37ad23add978a6892100c8f3a70eda42 | src/utils/formatting.ts | src/utils/formatting.ts | /**
* Trims leading and trailing whitespace and line terminators and replaces all
* characters after character 90 with an ellipsis.
* @param str
*/
export const truncate = (str: string): string => {
const trimmed = str.trim();
return trimmed.length > 90 ? trimmed.slice(0, 89).concat(' ...') : trimmed;
... | /**
* Trims leading and trailing whitespace and line terminators and replaces all
* characters after character 90 with an ellipsis.
* @param str
*/
export const truncate = (str: string, max = 90): string => {
const trimmed = str.trim();
return trimmed.length > max ? trimmed.slice(0, 89).concat(' ...') :... | Truncate now accepts an optional max string length parameter | Truncate now accepts an optional max string length parameter
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | typescript | ## Code Before:
/**
* Trims leading and trailing whitespace and line terminators and replaces all
* characters after character 90 with an ellipsis.
* @param str
*/
export const truncate = (str: string): string => {
const trimmed = str.trim();
return trimmed.length > 90 ? trimmed.slice(0, 89).concat(' ...') : t... | /**
* Trims leading and trailing whitespace and line terminators and replaces all
* characters after character 90 with an ellipsis.
* @param str
*/
- export const truncate = (str: string): string => {
+ export const truncate = (str: string, max = 90): string => {
? +++... | 4 | 0.444444 | 2 | 2 |
9a63bf67012c3246ddb293f6624dfb290085ba9e | plugin/settings/tabular.vim | plugin/settings/tabular.vim | if !exists(':Tabularize')
finish "quit here
endif
nnoremap <silent> <Leader>a= :call Preserve("Tabularize /=")<CR>
vnoremap <silent> <Leader>a= :call Preserve("Tabularize /=")<CR>
nnoremap <silent> <Leader>a: :call Preserve("Tabularize /:\zs")<CR>
vnoremap <silent> <Leader>a: :call Preserve("Tabularize /:\zs")<CR>
... | if !exists(':Tabularize')
finish "quit here
endif
"align on first =
nnoremap <silent> <Leader>a= :Tabularize /^[^=]*\zs=<CR>
vnoremap <silent> <Leader>a= :Tabularize /^[^=]*\zs=<CR>
"align on first :
nnoremap <silent> <Leader>a: :Tabularize /^[^:]*:\zs/l0c1<CR>
vnoremap <silent> <Leader>a: :Tabularize /^[^:]*:\zs/l... | Fix first comma and first colon alignment patterns | Fix first comma and first colon alignment patterns
| VimL | apache-2.0 | dougireton/mirror_pond | viml | ## Code Before:
if !exists(':Tabularize')
finish "quit here
endif
nnoremap <silent> <Leader>a= :call Preserve("Tabularize /=")<CR>
vnoremap <silent> <Leader>a= :call Preserve("Tabularize /=")<CR>
nnoremap <silent> <Leader>a: :call Preserve("Tabularize /:\zs")<CR>
vnoremap <silent> <Leader>a: :call Preserve("Tabular... | if !exists(':Tabularize')
finish "quit here
endif
+ "align on first =
- nnoremap <silent> <Leader>a= :call Preserve("Tabularize /=")<CR>
? --------------- ^^
+ nnoremap <silent> <Leader>a= :Tabularize /^[^=]*\zs=<CR>
? +++ ^... | 18 | 1.384615 | 12 | 6 |
5e2a4b3a2c46b49a64ec8628bda8343e493e5c81 | .travis.yml | .travis.yml | language: node_js
node_js:
- "7"
addons:
firefox: latest
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "export CHROME_BIN=chromium-browser"
- sleep 3
| language: node_js
node_js:
- "7"
addons:
firefox: latest
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "export CHROME_BIN=chromium-browser"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- sleep 3
| ADD chmod 4755 to chromium paht | ADD chmod 4755 to chromium paht
| YAML | apache-2.0 | pubkey/rxdb,natew/rxdb,pubkey/rxdb,pubkey/rxdb,pubkey/rxdb,natew/rxdb,pubkey/rxdb | yaml | ## Code Before:
language: node_js
node_js:
- "7"
addons:
firefox: latest
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "export CHROME_BIN=chromium-browser"
- sleep 3
## Instruction:
ADD chmod 4755 to chromium paht
## Code After:
language: node_js
node_js:
- "7"
addons:
fir... | language: node_js
node_js:
- "7"
addons:
firefox: latest
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "export CHROME_BIN=chromium-browser"
+ - "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- sleep 3 | 1 | 0.1 | 1 | 0 |
8b6cd6beff0451654a01c13b3c91afe8f8be105d | index.html | index.html | Hello World!
| <h1>Hello World!</h1>
<h3>myForexApp is an Android App project of mine to help users get their latest Forex related data in one place</h3>
Coming soon.
Please view my profile on :
<br/>
<a href="https://www.linkedin.com/in/asad-khan-developer/">Linkedin</a>
| Add some page content to GitHub Page | Add some page content to GitHub Page | HTML | apache-2.0 | asadkhan777/myForexApp,asadkhan777/myForexApp | html | ## Code Before:
Hello World!
## Instruction:
Add some page content to GitHub Page
## Code After:
<h1>Hello World!</h1>
<h3>myForexApp is an Android App project of mine to help users get their latest Forex related data in one place</h3>
Coming soon.
Please view my profile on :
<br/>
<a href="https://www.linkedin.com/i... | - Hello World!
+ <h1>Hello World!</h1>
+
+ <h3>myForexApp is an Android App project of mine to help users get their latest Forex related data in one place</h3>
+ Coming soon.
+ Please view my profile on :
+ <br/>
+ <a href="https://www.linkedin.com/in/asad-khan-developer/">Linkedin</a>
+ | 9 | 9 | 8 | 1 |
93bd450f7ef6bb2a7ca3fe76ca2e11212ce19274 | db/migrate/20100826150615_remove_ext_memberships.rb | db/migrate/20100826150615_remove_ext_memberships.rb | class RemoveExtMemberships < ActiveRecord::Migration
def self.up
Membership.find_all_by_role(10).each{|d|d.destroy}
end
def self.down
end
end
| class RemoveExtMemberships < ActiveRecord::Migration
def self.up
Membership.delete_all(:role => 10)
end
def self.down
end
end
| Refactor migration for destroying useless roles. | Refactor migration for destroying useless roles.
Same behaviour, better performance.
| Ruby | agpl-3.0 | vveliev/teambox,alx/teambox,crewmate/crewmate,rahouldatta/teambox,nfredrik/teambox,crewmate/crewmate,alx/teambox,nfredrik/teambox,vveliev/teambox,irfanah/teambox,wesbillman/projects,irfanah/teambox,nfredrik/teambox,irfanah/teambox,irfanah/teambox,wesbillman/projects,crewmate/crewmate,nfredrik/teambox,teambox/teambox,ra... | ruby | ## Code Before:
class RemoveExtMemberships < ActiveRecord::Migration
def self.up
Membership.find_all_by_role(10).each{|d|d.destroy}
end
def self.down
end
end
## Instruction:
Refactor migration for destroying useless roles.
Same behaviour, better performance.
## Code After:
class RemoveExtMemberships < A... | class RemoveExtMemberships < ActiveRecord::Migration
def self.up
- Membership.find_all_by_role(10).each{|d|d.destroy}
+ Membership.delete_all(:role => 10)
end
def self.down
end
end | 2 | 0.25 | 1 | 1 |
f86ef07f3bcea176c66a7f76d1a4dd86254c1423 | .buildkite/pipeline.yml | .buildkite/pipeline.yml | steps:
- label: run bats tests
plugins:
docker-compose#v3.0.2:
run: tests
- label: ":bash: Shellcheck"
plugins:
shellcheck#v1.1.2:
files:
- hooks/*
- label: ":sparkles: Linter"
plugins:
plugin-linter#v2.0.0:
id: golang
- label: test running a sp... | steps:
- label: run bats tests
plugins:
docker-compose#v3.0.2:
run: tests
- label: ":bash: Shellcheck"
plugins:
shellcheck#v1.1.2:
files:
- hooks/*
- label: ":sparkles: Linter"
plugins:
plugin-linter#v2.0.0:
id: golang
- label: test running a sp... | Fix invalid android+arm test combo | Fix invalid android+arm test combo
| YAML | mit | buildkite-plugins/golang-buildkite-plugin,buildkite-plugins/golang-buildkite-plugin | yaml | ## Code Before:
steps:
- label: run bats tests
plugins:
docker-compose#v3.0.2:
run: tests
- label: ":bash: Shellcheck"
plugins:
shellcheck#v1.1.2:
files:
- hooks/*
- label: ":sparkles: Linter"
plugins:
plugin-linter#v2.0.0:
id: golang
- label: t... | steps:
- label: run bats tests
plugins:
docker-compose#v3.0.2:
run: tests
- label: ":bash: Shellcheck"
plugins:
shellcheck#v1.1.2:
files:
- hooks/*
- label: ":sparkles: Linter"
plugins:
plugin-linter#v2.0.0:
id: gola... | 10 | 0.277778 | 3 | 7 |
9e785ac35e0fcb8562668a8d32b752b8ba7fee8c | src/main/java/info/u_team/u_team_core/item/UBucketItem.java | src/main/java/info/u_team/u_team_core/item/UBucketItem.java | package info.u_team.u_team_core.item;
import java.util.function.Supplier;
import info.u_team.u_team_core.api.registry.IURegistryType;
import net.minecraft.fluid.Fluid;
import net.minecraft.item.BucketItem;
public class UBucketItem extends BucketItem implements IURegistryType {
protected final String name;
publ... | package info.u_team.u_team_core.item;
import java.util.function.Supplier;
import info.u_team.u_team_core.api.registry.IURegistryType;
import net.minecraft.fluid.Fluid;
import net.minecraft.item.*;
public class UBucketItem extends BucketItem implements IURegistryType {
protected final String name;
public UBucke... | Add a ctor with the itemgroup | Add a ctor with the itemgroup | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core | java | ## Code Before:
package info.u_team.u_team_core.item;
import java.util.function.Supplier;
import info.u_team.u_team_core.api.registry.IURegistryType;
import net.minecraft.fluid.Fluid;
import net.minecraft.item.BucketItem;
public class UBucketItem extends BucketItem implements IURegistryType {
protected final Stri... | package info.u_team.u_team_core.item;
import java.util.function.Supplier;
import info.u_team.u_team_core.api.registry.IURegistryType;
import net.minecraft.fluid.Fluid;
- import net.minecraft.item.BucketItem;
? ^^^^^^^^^^
+ import net.minecraft.item.*;
? ... | 10 | 0.454545 | 7 | 3 |
858ab1121f7e98284a80a869859fdb7ed6465d7f | lib/tasks/run_mailman.rake | lib/tasks/run_mailman.rake | namespace :helpy do
desc "Run mailman"
task :mailman => :environment do
require 'mailman'
# Mailman.config.poll_interval
if AppSettings["email.mail_service"] == 'pop3'
puts 'pop3 config found'
Mailman.config.pop3 = {
server: AppSettings['email.pop3_server'],
#ssl: true,
... | namespace :helpy do
desc "Run mailman"
task :mailman => :environment do
require 'mailman'
# Mailman.config.poll_interval
if AppSettings["email.mail_service"] == 'pop3'
puts 'pop3 config found'
Mailman.config.pop3 = {
server: AppSettings['email.pop3_server'],
ssl: AppSetting... | Use settings in rake task | Use settings in rake task
| Ruby | mit | helpyio/helpy,CGA1123/helpy,helpyio/helpy,CGA1123/helpy,monami-ya/helpy,olliebennett/helpy,scott/helpy__helpdesk_knowledgebase,Rynaro/helpy,monami-ya/helpy,helpyio/helpy,felipewmartins/helpy,scott/helpy,felipewmartins/helpy,scott/helpy__helpdesk_knowledgebase,olliebennett/helpy,Rynaro/helpy,olliebennett/helpy,scott/hel... | ruby | ## Code Before:
namespace :helpy do
desc "Run mailman"
task :mailman => :environment do
require 'mailman'
# Mailman.config.poll_interval
if AppSettings["email.mail_service"] == 'pop3'
puts 'pop3 config found'
Mailman.config.pop3 = {
server: AppSettings['email.pop3_server'],
... | namespace :helpy do
desc "Run mailman"
task :mailman => :environment do
require 'mailman'
# Mailman.config.poll_interval
if AppSettings["email.mail_service"] == 'pop3'
puts 'pop3 config found'
Mailman.config.pop3 = {
server: AppSettings['email.pop3_server'],
+... | 10 | 0.232558 | 4 | 6 |
7304f3863d4f78dedab727148ba9582cbec72dc5 | input/docs/editors/visualstudio.md | input/docs/editors/visualstudio.md | Order: 30
Title: Visual Studio
---
# Syntax Highlighting
Syntax highlighting and Code snippets for .cake files are provided by the **Cake for Visual Studio** extension available from the [Visual Studio Gallery](https://visualstudiogallery.msdn.microsoft.com/).
# Intellisense
There is currently no support for Intel... | Order: 30
Title: Visual Studio
---
# Syntax Highlighting
Syntax highlighting and Code snippets for .cake files are provided by the **Cake for Visual Studio** extension available from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=vs-publisher-1392591.CakeforVisualStudio).
# Intel... | Fix Link for the Cake Visual Studio Extension | Fix Link for the Cake Visual Studio Extension
The current link to the Cake extension on the Visual Studio Gallery is
outdated. Instead the extension can now be found on the Visual Studio
Marketplace.
| Markdown | mit | cake-build-bot/website,cake-build/website,devlead/website,cake-build/website,devlead/website,cake-build-bot/website,devlead/website,cake-build/website | markdown | ## Code Before:
Order: 30
Title: Visual Studio
---
# Syntax Highlighting
Syntax highlighting and Code snippets for .cake files are provided by the **Cake for Visual Studio** extension available from the [Visual Studio Gallery](https://visualstudiogallery.msdn.microsoft.com/).
# Intellisense
There is currently no s... | Order: 30
Title: Visual Studio
---
# Syntax Highlighting
- Syntax highlighting and Code snippets for .cake files are provided by the **Cake for Visual Studio** extension available from the [Visual Studio Gallery](https://visualstudiogallery.msdn.microsoft.com/).
+ Syntax highlighting and Code snippets fo... | 2 | 0.068966 | 1 | 1 |
c35fb0279c0d9bc79afdf24046ee1816c2985a75 | rails/init.rb | rails/init.rb | File.join(File.dirname(__FILE__), "../lib/agnostic_presenters")
AgnosticPresenters::Base.send :include, ActionView::Helpers if defined?(Rails)
class << ActionController::Base
def add_template_helper_with_presenters(helper_module, *args, &block)
# Hijacking any helper added to controllers so that our presenters c... | File.join(File.dirname(__FILE__), "../lib/agnostic_presenters")
if defined?(Rails)
AgnosticPresenters::Base.send :include, ActionView::Helpers
class << ActionController::Base
def add_template_helper_with_presenters(helper_module, *args, &block)
# Hijacking any helper added to controllers so that our pr... | Fix to be totally agnostic. | Fix to be totally agnostic.
| Ruby | mit | yeastymobs/agnostic_presenters | ruby | ## Code Before:
File.join(File.dirname(__FILE__), "../lib/agnostic_presenters")
AgnosticPresenters::Base.send :include, ActionView::Helpers if defined?(Rails)
class << ActionController::Base
def add_template_helper_with_presenters(helper_module, *args, &block)
# Hijacking any helper added to controllers so that ... | File.join(File.dirname(__FILE__), "../lib/agnostic_presenters")
- AgnosticPresenters::Base.send :include, ActionView::Helpers if defined?(Rails)
+ if defined?(Rails)
+ AgnosticPresenters::Base.send :include, ActionView::Helpers
+
- class << ActionController::Base
+ class << ActionController::Base
? ++
- d... | 19 | 1.583333 | 11 | 8 |
4b2b8e47908cb857880de91f58fa66fa033889fa | app/models/request.rb | app/models/request.rb | class Request < ActiveRecord::Base
before_save :defaultly_unfulfilled
belongs_to :requester, class_name: 'User'
belongs_to :responder, class_name: 'User'
validates :content, presence: true
validates :requester, presence: true
validates :is_fulfilled, presence: true
private
def defaultly_unfulfilled
... | class Request < ActiveRecord::Base
before_create :defaultly_unfulfilled
belongs_to :requester, class_name: 'User'
belongs_to :responder, class_name: 'User'
validates :content, presence: true
validates :requester, presence: true
validates :is_fulfilled, inclusion: { in: [true, false] }
private
def def... | Change callback to return true | Change callback to return true
| Ruby | mit | kimchanyoung/nghborly,kimchanyoung/nghborly,nyc-mud-turtles-2015/nghborly,nyc-mud-turtles-2015/nghborly,nyc-mud-turtles-2015/nghborly,kimchanyoung/nghborly | ruby | ## Code Before:
class Request < ActiveRecord::Base
before_save :defaultly_unfulfilled
belongs_to :requester, class_name: 'User'
belongs_to :responder, class_name: 'User'
validates :content, presence: true
validates :requester, presence: true
validates :is_fulfilled, presence: true
private
def default... | class Request < ActiveRecord::Base
- before_save :defaultly_unfulfilled
? ^ ^
+ before_create :defaultly_unfulfilled
? ^^^ ^
belongs_to :requester, class_name: 'User'
belongs_to :responder, class_name: 'User'
validates :content, presence: true
validates :requester, presen... | 4 | 0.25 | 2 | 2 |
c5d52b97ffdd3bb8d344e6f646bcd02f942b39a0 | README.md | README.md | RxBroadcast
===========
RxBroadcast is a small distributed event library for Java and the JVM.
JCenter: [](https://bintray.com/whymarrh/maven/RxBroadcast/_latestVersion)
Gradle dependency:
```groovy
compile "rxb... | RxBroadcast
===========
RxBroadcast is a small distributed event library for Java and the JVM.
| JCenter |
| ------- |
| [](https://bintray.com/whymarrh/maven/RxBroadcast/_latestVersion) |
Gradle dependency:
```... | Move JCenter badge into a table | Move JCenter badge into a table
| Markdown | isc | RxBroadcast/RxBroadcast,whymarrh/RxBroadcast,RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast,whymarrh/RxBroadcast,RxBroadcast/RxBroadcast | markdown | ## Code Before:
RxBroadcast
===========
RxBroadcast is a small distributed event library for Java and the JVM.
JCenter: [](https://bintray.com/whymarrh/maven/RxBroadcast/_latestVersion)
Gradle dependency:
```gro... | RxBroadcast
===========
RxBroadcast is a small distributed event library for Java and the JVM.
+ | JCenter |
+ | ------- |
- JCenter: [](https://bintray.com/whymarrh/maven/RxBroadcast/_latestVersion)
? ^... | 4 | 0.129032 | 3 | 1 |
44441db07463583f47d7cc8887d22a0798d7b80d | requirements.txt | requirements.txt | pynacl == 0.3.0
twisted == 14.0
stem == 1.3.0
ipaddress == 1.0.6
hkdf == 0.0.1
pycrypto == 2.6.1
pyopenssl == 0.14
| pynacl == 0.3.0
twisted == 14.0
stem == 1.3.0
ipaddress == 1.0.6
hkdf == 0.0.1
pycrypto == 2.6.1
pyopenssl == 0.14
service-identity == 14.0
| Add 'service-identity' package as a requirement. | Add 'service-identity' package as a requirement.
Twisted has an ugly warning if used without the 'service-identity'
Python package. We don't actually require the functionality,
but it's better to silence the warning.
| Text | bsd-3-clause | nskinkel/oppy | text | ## Code Before:
pynacl == 0.3.0
twisted == 14.0
stem == 1.3.0
ipaddress == 1.0.6
hkdf == 0.0.1
pycrypto == 2.6.1
pyopenssl == 0.14
## Instruction:
Add 'service-identity' package as a requirement.
Twisted has an ugly warning if used without the 'service-identity'
Python package. We don't actually require the functiona... | pynacl == 0.3.0
twisted == 14.0
stem == 1.3.0
ipaddress == 1.0.6
hkdf == 0.0.1
pycrypto == 2.6.1
pyopenssl == 0.14
+ service-identity == 14.0 | 1 | 0.142857 | 1 | 0 |
b3c102cdf6504875a2e69ae673b632021f6fa0b8 | clj_record/test/model/config.clj | clj_record/test/model/config.clj | (ns clj-record.test.model.config)
(comment
(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "/tmp/clj-record.test.db"
:create true})
)
(def db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5433... | (ns clj-record.test.model.config)
(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "/tmp/clj-record.test.db"
:create true})
(comment
(def db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5433/c... | Switch back to using Derby in tests. | Switch back to using Derby in tests.
| Clojure | mit | duelinmarkers/clj-record | clojure | ## Code Before:
(ns clj-record.test.model.config)
(comment
(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "/tmp/clj-record.test.db"
:create true})
)
(def db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "... | (ns clj-record.test.model.config)
- (comment
(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "/tmp/clj-record.test.db"
:create true})
- )
+ (comment
(def db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
... | 4 | 0.285714 | 2 | 2 |
9ae5ea3876fae6ef0bc092d87c71d9ea86040cf7 | InvenTree/company/api.py | InvenTree/company/api.py | from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
class CompanyList(generic... | from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
class CompanyList(generic... | Add RUD endpoint for Company | Add RUD endpoint for Company
| Python | mit | SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree | python | ## Code Before:
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
class Com... | from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
... | 12 | 0.25 | 12 | 0 |
2dcb362bd7d1927528887f9d71edf3158e523cc3 | app/views/datasets/_datasets.html.erb | app/views/datasets/_datasets.html.erb | <div class="row">
<% @datasets.each do |dataset| %>
<div class="col-xs-12 col-sm-6 col-md-4 ">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%= link_to dataset.name, dataset %></h3>
</div>
<div class="panel-body">
<div styl... | <div class="row">
<% @datasets.each do |dataset| %>
<div class="col-xs-12 col-sm-6 col-md-4 ">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%= link_to dataset.name, dataset %></h3>
</div>
<div class="panel-body">
<div styl... | Set max-width for dataset logos | Set max-width for dataset logos
| HTML+ERB | mit | nsrr/www.sleepdata.org,nsrr/www.sleepdata.org,nsrr/www.sleepdata.org | html+erb | ## Code Before:
<div class="row">
<% @datasets.each do |dataset| %>
<div class="col-xs-12 col-sm-6 col-md-4 ">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%= link_to dataset.name, dataset %></h3>
</div>
<div class="panel-body">
... | <div class="row">
<% @datasets.each do |dataset| %>
<div class="col-xs-12 col-sm-6 col-md-4 ">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%= link_to dataset.name, dataset %></h3>
</div>
<div class="panel-body">
... | 4 | 0.181818 | 2 | 2 |
fe51ae4423629bf348f19f34e3a3dd2d5f1c9d8f | test/fixtures/testScaled50PercentWithJs.html | test/fixtures/testScaled50PercentWithJs.html | <html>
<head>
<title>Test page with full resource includes, scaled and styling hidden behind hover/active selectors + JS</title>
<link rel="stylesheet" type="text/css" href="import_test.css"/>
<style type="text/css">
.test {
margin: 0;
padding: 0;
vertical-align: ... | <html>
<head>
<title>Test page with full resource includes, scaled and styling hidden behind hover/active selectors + JS</title>
<link rel="stylesheet" type="text/css" href="import_test.css"/>
<style type="text/css">
.test {
margin: 0;
padding: 0;
vertical-align: ... | Fix integration test under Linux | Fix integration test under Linux
| HTML | mit | cburgmer/rasterizeHTML.js,cburgmer/rasterizeHTML.js | html | ## Code Before:
<html>
<head>
<title>Test page with full resource includes, scaled and styling hidden behind hover/active selectors + JS</title>
<link rel="stylesheet" type="text/css" href="import_test.css"/>
<style type="text/css">
.test {
margin: 0;
padding: 0;
... | <html>
<head>
<title>Test page with full resource includes, scaled and styling hidden behind hover/active selectors + JS</title>
<link rel="stylesheet" type="text/css" href="import_test.css"/>
<style type="text/css">
.test {
margin: 0;
padding: 0;
... | 5 | 0.178571 | 5 | 0 |
5c020deef2ee09fe0abe00ad533fba9a2411dd4a | include/siri/grammar/gramp.h | include/siri/grammar/gramp.h | /*
* gramp.h - SiriDB Grammar Properties.
*
* Note: we need this file up-to-date with the grammar. The grammar has
* keywords starting with K_ so the will all be sorted.
* KW_OFFSET should be set to the first keyword and KW_COUNT needs the
* last keyword in the grammar.
*
*/
#ifndef SIRI_GRAMP... | /*
* gramp.h - SiriDB Grammar Properties.
*
* Note: we need this file up-to-date with the grammar. The grammar has
* keywords starting with K_ so the will all be sorted.
* KW_OFFSET should be set to the first keyword and KW_COUNT needs the
* last keyword in the grammar.
*
*/
#ifndef SIRI_GRAMP... | Update compat with old libcleri | Update compat with old libcleri
| C | mit | transceptor-technology/siridb-server,transceptor-technology/siridb-server,transceptor-technology/siridb-server,transceptor-technology/siridb-server | c | ## Code Before:
/*
* gramp.h - SiriDB Grammar Properties.
*
* Note: we need this file up-to-date with the grammar. The grammar has
* keywords starting with K_ so the will all be sorted.
* KW_OFFSET should be set to the first keyword and KW_COUNT needs the
* last keyword in the grammar.
*
*/
#i... | /*
* gramp.h - SiriDB Grammar Properties.
*
* Note: we need this file up-to-date with the grammar. The grammar has
* keywords starting with K_ so the will all be sorted.
* KW_OFFSET should be set to the first keyword and KW_COUNT needs the
* last keyword in the grammar.
*
*/
... | 4 | 0.111111 | 2 | 2 |
6f9f68f8c376205d753ab92095bb89052620e67e | .travis.yml | .travis.yml | language: node_js
node_js:
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
- '0.12'
- '0.10'
notifications:
email:
- watson@elastic.co
slack:
rooms:
secure: PR+vjohDfGmidHhaIboj896iad3OIa4pked1Mib+XB5FF3tWfpDjBBNmEBizRbpwzxy4oHgOr22LBNvi+zkE674wXY3VUM+Wx9pJztlqotcON/hBjcJd993MfixRHN0RShxn4omaLfiqrZ+8iUFD5MQKdLKqBG/... | language: node_js
node_js:
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
notifications:
email:
- watson@elastic.co
slack:
rooms:
secure: PR+vjohDfGmidHhaIboj896iad3OIa4pked1Mib+XB5FF3tWfpDjBBNmEBizRbpwzxy4oHgOr22LBNvi+zkE674wXY3VUM+Wx9pJztlqotcON/hBjcJd993MfixRHN0RShxn4omaLfiqrZ+8iUFD5MQKdLKqBG/IG2toxdhuDkU=
... | Drop support for Node.js <4 | Drop support for Node.js <4
For now it technically still works with earlier versions of Node.js, but
since we now stop testing on those versions, we shouldn't rely on it.
| YAML | mit | watson/opbeat-http-client | yaml | ## Code Before:
language: node_js
node_js:
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
- '0.12'
- '0.10'
notifications:
email:
- watson@elastic.co
slack:
rooms:
secure: PR+vjohDfGmidHhaIboj896iad3OIa4pked1Mib+XB5FF3tWfpDjBBNmEBizRbpwzxy4oHgOr22LBNvi+zkE674wXY3VUM+Wx9pJztlqotcON/hBjcJd993MfixRHN0RShxn4omaLfiqrZ+... | language: node_js
node_js:
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
- - '0.12'
- - '0.10'
notifications:
email:
- watson@elastic.co
slack:
rooms:
secure: PR+vjohDfGmidHhaIboj896iad3OIa4pked1Mib+XB5FF3tWfpDjBBNmEBizRbpwzxy4oHgOr22LBNvi+zkE674wXY3VUM+Wx9pJztlqotcON/hBjcJd993MfixRHN0... | 2 | 0.105263 | 0 | 2 |
40159197ece0fe66411da62abec34ea780cdab45 | app/views/pages/about.html.haml | app/views/pages/about.html.haml | %h1 About Us
%p
Larp Library was made by #{mail_to "natbudin@gmail.com", "Nat Budin"} and is a project of
#{link_to "New England Interactive Literature", "http://interactiveliterature.org"}.
%p
Larp Library is a Ruby on Rails application. The source code for the app is available
#{link_to "on Github", "ht... | %h1 About Us
%ul.list-unstyled
%li
%strong Lead Developer:
Nat Budin (natbudin AT gmail DOT com)
%li
%strong Curator:
Eva Schiffer (valleyviolet AT gmail DOT com)
%li
A project of
#{link_to "New England Interactive Literature", "http://interactiveliterature.org"}.
%p
Larp Library is a ... | Add Eva to the About page | Add Eva to the About page
| Haml | mit | neinteractiveliterature/larp_library,nbudin/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,nbudin/larp_library | haml | ## Code Before:
%h1 About Us
%p
Larp Library was made by #{mail_to "natbudin@gmail.com", "Nat Budin"} and is a project of
#{link_to "New England Interactive Literature", "http://interactiveliterature.org"}.
%p
Larp Library is a Ruby on Rails application. The source code for the app is available
#{link_to ... | %h1 About Us
- %p
- Larp Library was made by #{mail_to "natbudin@gmail.com", "Nat Budin"} and is a project of
+ %ul.list-unstyled
+ %li
+ %strong Lead Developer:
+ Nat Budin (natbudin AT gmail DOT com)
+ %li
+ %strong Curator:
+ Eva Schiffer (valleyviolet AT gmail DOT com)
+ %li
+ A pr... | 15 | 1.666667 | 11 | 4 |
5b32fda4b8698deda5402b8c640d36bf5cd69222 | app/helpers/labels_helper.rb | app/helpers/labels_helper.rb | module LabelsHelper
def project_label_names
@project.labels.pluck(:title)
end
def render_colored_label(label)
label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color)
content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{tex... | module LabelsHelper
def project_label_names
@project.labels.pluck(:title)
end
def render_colored_label(label)
label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color)
content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{tex... | Add more label color suggestions | Add more label color suggestions
| Ruby | mit | allysonbarros/gitlabhq,szechyjs/gitlabhq,hzy001/gitlabhq,pjknkda/gitlabhq,bozaro/gitlabhq,allistera/gitlabhq,ferdinandrosario/gitlabhq,delkyd/gitlabhq,jirutka/gitlabhq,manfer/gitlabhq,flashbuckets/gitlabhq,bozaro/gitlabhq,liyakun/gitlabhq,zBMNForks/gitlabhq,Telekom-PD/gitlabhq,gorgee/gitlabhq,nmav/gitlabhq,Soullivaneuh... | ruby | ## Code Before:
module LabelsHelper
def project_label_names
@project.labels.pluck(:title)
end
def render_colored_label(label)
label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color)
content_tag :span, class: 'label color-label', style: "background:#{label_co... | module LabelsHelper
def project_label_names
@project.labels.pluck(:title)
end
def render_colored_label(label)
label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color)
content_tag :span, class: 'label color-label', style: "background:#{labe... | 15 | 0.405405 | 14 | 1 |
c56eb8e8c3ea46bd777cf2cd7675c5eb675df161 | configuration.js | configuration.js | var nconf = require('nconf');
var scheConf = new nconf.Provider();
var mainConf = new nconf.Provider();
var optConf = new nconf.Provider();
var name2Conf = {"sche" : scheConf, "main": mainConf, "opt": optConf};
scheConf.file({file: './app/schedules.json'});
mainConf.file({file: './app/schools.json'});
optConf.file({f... | var nconf = require('nconf');
var scheConf = new nconf.Provider();
var mainConf = new nconf.Provider();
var optConf = new nconf.Provider();
var name2Conf = {"sche" : scheConf, "main": mainConf, "opt": optConf};
scheConf.file({file: __dirname + '/app/schedules.json'});
mainConf.file({file: __dirname + '/app/schools.j... | Make .json config paths relative | Make .json config paths relative
| JavaScript | mit | jdkato/scheduler,jdkato/scheduler | javascript | ## Code Before:
var nconf = require('nconf');
var scheConf = new nconf.Provider();
var mainConf = new nconf.Provider();
var optConf = new nconf.Provider();
var name2Conf = {"sche" : scheConf, "main": mainConf, "opt": optConf};
scheConf.file({file: './app/schedules.json'});
mainConf.file({file: './app/schools.json'});... | var nconf = require('nconf');
var scheConf = new nconf.Provider();
var mainConf = new nconf.Provider();
var optConf = new nconf.Provider();
var name2Conf = {"sche" : scheConf, "main": mainConf, "opt": optConf};
+
- scheConf.file({file: './app/schedules.json'});
? -
+ scheConf.fil... | 7 | 0.166667 | 4 | 3 |
1f319b223e46cf281e19c3546b17e13e49c1ff10 | src/api/resolve/mutation/auth/confirmEmail.js | src/api/resolve/mutation/auth/confirmEmail.js | import bind from "lib/helper/graphql/normalizeParams"
import BadRequest from "lib/error/http/BadRequest"
import waterfall from "lib/helper/array/runWaterfall"
import db from "lib/db/connection"
import {get, remove} from "lib/auth/tokens"
import User from "model/User"
import Session from "model/Session"
const confirm... | import bind from "lib/helper/graphql/normalizeParams"
import BadRequest from "lib/error/http/BadRequest"
import waterfall from "lib/helper/array/runWaterfall"
import db from "lib/db/connection"
import {get, remove} from "lib/auth/tokens"
import User from "model/User"
import Session from "model/Session"
const confirm... | Reorder operations in email confirmation resolver. | Reorder operations in email confirmation resolver.
| JavaScript | mit | octet-stream/ponyfiction-js,octet-stream/ponyfiction-js | javascript | ## Code Before:
import bind from "lib/helper/graphql/normalizeParams"
import BadRequest from "lib/error/http/BadRequest"
import waterfall from "lib/helper/array/runWaterfall"
import db from "lib/db/connection"
import {get, remove} from "lib/auth/tokens"
import User from "model/User"
import Session from "model/Session... | import bind from "lib/helper/graphql/normalizeParams"
import BadRequest from "lib/error/http/BadRequest"
import waterfall from "lib/helper/array/runWaterfall"
import db from "lib/db/connection"
import {get, remove} from "lib/auth/tokens"
import User from "model/User"
import Session from "model/Sessi... | 4 | 0.088889 | 2 | 2 |
7c67e27bcef9ac05eec6ee84d02056814dea2b85 | spec/factories/user_groups.rb | spec/factories/user_groups.rb | FactoryGirl.define do
factory :user_group do
name { Faker::Team.name }
mission { get_mission }
end
end
|
FactoryGirl.define do
factory :user_group do
sequence(:name) { |n| "UserGroup #{n}" }
mission { get_mission }
end
end
| Fix user group name uniqueness error | 9690: Fix user group name uniqueness error
| Ruby | apache-2.0 | thecartercenter/elmo,thecartercenter/elmo,thecartercenter/elmo | ruby | ## Code Before:
FactoryGirl.define do
factory :user_group do
name { Faker::Team.name }
mission { get_mission }
end
end
## Instruction:
9690: Fix user group name uniqueness error
## Code After:
FactoryGirl.define do
factory :user_group do
sequence(:name) { |n| "UserGroup #{n}" }
mission { get_mi... | +
FactoryGirl.define do
factory :user_group do
- name { Faker::Team.name }
+ sequence(:name) { |n| "UserGroup #{n}" }
mission { get_mission }
end
end | 3 | 0.5 | 2 | 1 |
1aa4a4edbfc0d6d8ad3495261a8b588ae52e739a | logging.js | logging.js | const fs = require('fs');
const sysout = console.log;
function toFile(log) {
fs.appendFile("./latest.log", log);
}
const out = log => {
sysout(log);
toFile(log);
};
console.log = log => {
let d = new Date();
log = `[${d.toString()} LOG] ${log}`;
out(log);
};
console.info = console.log;
console.e... | const fs = require('fs');
const sysout = console.log;
function toFile(log) {
fs.appendFile("./latest.log", log, () => {});
}
const out = log => {
sysout(log);
toFile(log);
};
console.log = log => {
let d = new Date();
log = `[${d.toString()} LOG] ${log}`;
out(log);
};
console.info = console.log;... | Fix the async deprecation error in node7 | Fix the async deprecation error in node7
| JavaScript | mit | Lunar-Skies/Hamster | javascript | ## Code Before:
const fs = require('fs');
const sysout = console.log;
function toFile(log) {
fs.appendFile("./latest.log", log);
}
const out = log => {
sysout(log);
toFile(log);
};
console.log = log => {
let d = new Date();
log = `[${d.toString()} LOG] ${log}`;
out(log);
};
console.info = consol... | const fs = require('fs');
const sysout = console.log;
function toFile(log) {
- fs.appendFile("./latest.log", log);
+ fs.appendFile("./latest.log", log, () => {});
? ++++++++++
}
const out = log => {
sysout(log);
toFile(log);
};
console.log = log =>... | 2 | 0.1 | 1 | 1 |
a26035061a407292ddcebcf224423cfbcd0fbd10 | README.md | README.md | HelloMama Registration accepts registrations for the Hello Mama project.
## Apps & Models:
* registrations
* Source
* Registration
* SubscriptionRequest
* changes
* Change
## Metrics
##### registrations.created.sum
`sum` Total number of registrations created
##### registrations.unique_operators.s... | HelloMama Registration accepts registrations for the Hello Mama project.
This app uses the Django cache framework for efficient calculation of metrics,
so if you are running multiple instances, make sure to setup a shared Django
cache backend for them.
## Apps & Models:
* registrations
* Source
* Registrati... | Add note to readme to warn for proper cache backend for multiple instances | Add note to readme to warn for proper cache backend for multiple instances
| Markdown | bsd-3-clause | praekelt/hellomama-registration,praekelt/hellomama-registration | markdown | ## Code Before:
HelloMama Registration accepts registrations for the Hello Mama project.
## Apps & Models:
* registrations
* Source
* Registration
* SubscriptionRequest
* changes
* Change
## Metrics
##### registrations.created.sum
`sum` Total number of registrations created
##### registrations.un... | HelloMama Registration accepts registrations for the Hello Mama project.
+
+ This app uses the Django cache framework for efficient calculation of metrics,
+ so if you are running multiple instances, make sure to setup a shared Django
+ cache backend for them.
## Apps & Models:
* registrations
* Sourc... | 4 | 0.181818 | 4 | 0 |
dce04fa8f644e7d75ccbbc3aa9b2df907bf0ed5c | test/case6/case6.js | test/case6/case6.js | ;((rc) => {
'use strict';
var tagContent = 'router2-content';
var div = document.createElement('div');
div.innerHTML = `
<${tagContent} id="case6-1" hash="case(\\d+)">
Case 6 via RegExp
</${tagContent}>
`;
var async1 = async_test('Case 6: hash changed to content[hash="case(\d+)"]');
async1.next... | ;((rc) => {
'use strict';
var tagContent = 'router2-content';
var div = document.createElement('div');
div.innerHTML = `
<${tagContent} id="case6-2" hash="case62">
Case 6. It's suposed that this will come before (\\d+)
</${tagContent}>
<${tagContent} id="case6-1" hash="case(\\d+)">
Case 6 via Reg... | Test case 6 - the order of contents at the DOM-tree | Test case 6 - the order of contents at the DOM-tree
| JavaScript | isc | m3co/router3,m3co/router3 | javascript | ## Code Before:
;((rc) => {
'use strict';
var tagContent = 'router2-content';
var div = document.createElement('div');
div.innerHTML = `
<${tagContent} id="case6-1" hash="case(\\d+)">
Case 6 via RegExp
</${tagContent}>
`;
var async1 = async_test('Case 6: hash changed to content[hash="case(\d+)"]')... | ;((rc) => {
'use strict';
var tagContent = 'router2-content';
var div = document.createElement('div');
div.innerHTML = `
+ <${tagContent} id="case6-2" hash="case62">
+ Case 6. It's suposed that this will come before (\\d+)
+ </${tagContent}>
<${tagContent} id="case6-1" hash="case(\\d+)"... | 21 | 0.567568 | 19 | 2 |
f708d695f2f0a33c3e856ebd4aa8299c46e91694 | setup.py | setup.py | from setuptools import setup
setup(
name="ldap_dingens",
version="0.1",
description="LDAP web frontend for the FSFW Dresden group",
url="https://github.com/fsfw-dresden/ldap-dingens",
author="Dominik Pataky",
author_email="mail@netdecorator.org",
license="AGPL",
classifiers=[
"D... | from setuptools import setup
setup(
name="ldap_dingens",
version="0.1",
description="LDAP web frontend for the FSFW Dresden group",
url="https://github.com/fsfw-dresden/ldap-dingens",
author="Dominik Pataky",
author_email="mail@netdecorator.org",
license="AGPL",
classifiers=[
"D... | Add some more or less obvious dependencies | Add some more or less obvious dependencies
| Python | agpl-3.0 | fsfw-dresden/ldap-dingens,fsfw-dresden/ldap-dingens | python | ## Code Before:
from setuptools import setup
setup(
name="ldap_dingens",
version="0.1",
description="LDAP web frontend for the FSFW Dresden group",
url="https://github.com/fsfw-dresden/ldap-dingens",
author="Dominik Pataky",
author_email="mail@netdecorator.org",
license="AGPL",
classifi... | from setuptools import setup
setup(
name="ldap_dingens",
version="0.1",
description="LDAP web frontend for the FSFW Dresden group",
url="https://github.com/fsfw-dresden/ldap-dingens",
author="Dominik Pataky",
author_email="mail@netdecorator.org",
license="AGPL",
cl... | 4 | 0.111111 | 3 | 1 |
5cf42e61353f59037b5b2eb05dd2ee14b5c8160c | app/controllers/comments_controller.rb | app/controllers/comments_controller.rb | class CommentsController < ApplicationController
before_filter :authenticate_user!
# lol embedded documents
before_filter :find_book_and_chapter_and_note
def create
@comment = @note.comments.build(params[:comment].merge!(:user => current_user))
if @comment.save
change_note_state!
@comment... | class CommentsController < ApplicationController
before_filter :authenticate_user!
# lol embedded documents
before_filter :find_book_and_chapter_and_note
def create
@comments = @note.comments
@comment = @note.comments.build(params[:comment].merge!(:user => current_user))
if params[:comment][:text].... | Allow note state to be changed without being forced to leave a comment | Allow note state to be changed without being forced to leave a comment
| Ruby | mit | radar/twist,doug-c/mttwist,RealSilo/twist,radar/twist,yannvery/twist,doug-c/mttwist,yannvery/twist,RealSilo/twist,yannvery/twist,radar/twist,RealSilo/twist,doug-c/mttwist | ruby | ## Code Before:
class CommentsController < ApplicationController
before_filter :authenticate_user!
# lol embedded documents
before_filter :find_book_and_chapter_and_note
def create
@comment = @note.comments.build(params[:comment].merge!(:user => current_user))
if @comment.save
change_note_state... | class CommentsController < ApplicationController
before_filter :authenticate_user!
# lol embedded documents
before_filter :find_book_and_chapter_and_note
-
+
def create
+ @comments = @note.comments
@comment = @note.comments.build(params[:comment].merge!(:user => current_user))
+ if p... | 45 | 1.097561 | 31 | 14 |
f6e97c003ac2743dc69974629222eeab70766d67 | index.html | index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SICK IRC Client</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="screen">
<noscript>
<p class="code"><<span class='person'>~SICK</span>> Hi There!</p>
<p ... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SICK IRC Client</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="screen">
<noscript>
<p class="code"><<span class='person'>~SICK</span>> Hi There!</p>
<p ... | Make some slight edits to message displayed to people without javascript | Make some slight edits to message displayed to people without javascript
| HTML | agpl-3.0 | sickdev/sicksite,sickdev/sicksite | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SICK IRC Client</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="screen">
<noscript>
<p class="code"><<span class='person'>~SICK</span>> Hi There!</p>... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SICK IRC Client</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="screen">
<noscript>
<p class="code"><<span class='person'>~SICK</span>> Hi Th... | 4 | 0.190476 | 2 | 2 |
b2a95b9fd0dd934423c1804274c0687b2a998892 | tools/buildexe.bat | tools/buildexe.bat | @ECHO OFF
CD winrun4j
COPY WinRun4J64.exe DNGearSim.exe
RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini
RCEDIT64.exe /S DNGearSim.exe splash.bmp
RCEDIT64.exe /I DNGearSim.exe icon.ico
COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe"
CD ../..
CD Bootstrap/target
COPY "bootstrap.jar" "../../runtime/bootstrap.jar"
PAUSE | @ECHO OFF
CD winrun4j
COPY WinRun4J64.exe DNGearSim.exe
RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini
RCEDIT64.exe /S DNGearSim.exe splash.bmp
RCEDIT64.exe /I DNGearSim.exe icon.ico
COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe"
CD ../..
CD Bootstrap/target
COPY "bootstrap.jar" "../../runtime/bootstrap.jar"
CD ../.... | Remove unnecessary pause, CD back to top | Remove unnecessary pause, CD back to top
| Batchfile | mit | vincentzhang96/DNGearSim | batchfile | ## Code Before:
@ECHO OFF
CD winrun4j
COPY WinRun4J64.exe DNGearSim.exe
RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini
RCEDIT64.exe /S DNGearSim.exe splash.bmp
RCEDIT64.exe /I DNGearSim.exe icon.ico
COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe"
CD ../..
CD Bootstrap/target
COPY "bootstrap.jar" "../../runtime/bootst... | @ECHO OFF
CD winrun4j
COPY WinRun4J64.exe DNGearSim.exe
RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini
RCEDIT64.exe /S DNGearSim.exe splash.bmp
RCEDIT64.exe /I DNGearSim.exe icon.ico
COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe"
+ CD ../..
- CD ../..
CD Bootstrap/target
COPY "bootstrap.jar" ".... | 5 | 0.357143 | 2 | 3 |
e1edb506113a0fd8104931def710188f5d507f06 | crispy/gui/widgets/plotwidget.py | crispy/gui/widgets/plotwidget.py |
from silx.gui.plot import PlotWindow
class PlotWidget(PlotWindow):
def __init__(self, *args):
super(PlotWidget, self).__init__()
self.setActiveCurveHandling(False)
self.setGraphXLabel('Energy (eV)')
self.setGraphYLabel('Absorption cross section (a.u.)')
def plot(self, x, y, le... |
from silx.gui.plot import PlotWindow
class PlotWidget(PlotWindow):
def __init__(self, *args):
super(PlotWidget, self).__init__(logScale=False, grid=True,
aspectRatio=False, yInverted=False, roi=False, mask=False,
print_=False)
self.setActiveCurveHandling(False)
... | Remove unused icons of the PlotWindow | Remove unused icons of the PlotWindow
| Python | mit | mretegan/crispy,mretegan/crispy | python | ## Code Before:
from silx.gui.plot import PlotWindow
class PlotWidget(PlotWindow):
def __init__(self, *args):
super(PlotWidget, self).__init__()
self.setActiveCurveHandling(False)
self.setGraphXLabel('Energy (eV)')
self.setGraphYLabel('Absorption cross section (a.u.)')
def plo... |
from silx.gui.plot import PlotWindow
class PlotWidget(PlotWindow):
def __init__(self, *args):
- super(PlotWidget, self).__init__()
? ^
+ super(PlotWidget, self).__init__(logScale=False, grid=True,
? ^^^^^^... | 4 | 0.25 | 3 | 1 |
a6945494944b3864fb8224dc5edc6d7b51dc3582 | README.md | README.md |
The Essence project done...right?
## What's Coming
1. Clarity::expect() and expect() are now the only 2 entry points.
2. Class `Chain` is now responsible for handling all the magic.
- queries are cached in memory
- no need to have an array of "links" anymore, Chain just ignores unknown identifiers
- howe... |
The Essence project done...right?
## What's Coming
1. Clarity::expect() and expect() are now the only 2 entry points.
2. Class `Chain` is now responsible for handling all the magic.
- queries are cached in memory
- no need to have an array of "links" anymore, Chain just ignores unknown identifiers
- howe... | Fix some mistakes in the readme file. | Fix some mistakes in the readme file.
| Markdown | mit | bound1ess/clarity | markdown | ## Code Before:
The Essence project done...right?
## What's Coming
1. Clarity::expect() and expect() are now the only 2 entry points.
2. Class `Chain` is now responsible for handling all the magic.
- queries are cached in memory
- no need to have an array of "links" anymore, Chain just ignores unknown identi... |
The Essence project done...right?
## What's Coming
1. Clarity::expect() and expect() are now the only 2 entry points.
2. Class `Chain` is now responsible for handling all the magic.
- queries are cached in memory
- no need to have an array of "links" anymore, Chain just ignores unknown iden... | 4 | 0.166667 | 2 | 2 |
c33fe7e96a0831322d2e2eb927417b4497206e56 | metadata/com.powerpoint45.lucidbrowserfree.txt | metadata/com.powerpoint45.lucidbrowserfree.txt | Categories:Internet
License:MIT
Web Site:https://github.com/powerpoint45/Lucid-Browser
Source Code:https://github.com/powerpoint45/Lucid-Browser
Issue Tracker:https://github.com/powerpoint45/Lucid-Browser/issues
Summary:small and simple web browser
Description:
Lucid Browser is a free and open source browser designed ... | Categories:Internet
License:MIT
Web Site:https://github.com/powerpoint45/Lucid-Browser
Source Code:https://github.com/powerpoint45/Lucid-Browser
Issue Tracker:https://github.com/powerpoint45/Lucid-Browser/issues
Auto Name:Lucid Browser
Summary:small and simple web browser
Description:
Lucid Browser is a free and open ... | Set autoname of Lucid Browser | Set autoname of Lucid Browser
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Internet
License:MIT
Web Site:https://github.com/powerpoint45/Lucid-Browser
Source Code:https://github.com/powerpoint45/Lucid-Browser
Issue Tracker:https://github.com/powerpoint45/Lucid-Browser/issues
Summary:small and simple web browser
Description:
Lucid Browser is a free and open source b... | Categories:Internet
License:MIT
Web Site:https://github.com/powerpoint45/Lucid-Browser
Source Code:https://github.com/powerpoint45/Lucid-Browser
Issue Tracker:https://github.com/powerpoint45/Lucid-Browser/issues
+ Auto Name:Lucid Browser
Summary:small and simple web browser
Description:
Lucid Browser... | 6 | 0.285714 | 4 | 2 |
ac10470ef9b9ceb1c80dbc06020ecfa781bbcab4 | lib/vitrage/router.rb | lib/vitrage/router.rb | module Vitrage
module Router
def routes(rails_router, options = {})
if options[:controller]
cs = options[:controller].to_s
rails_router.post '/vitrage/pieces' => "#{cs}#create", as: :vitrage_pieces
rails_router.get '/vitrage/pieces/new' => "#{cs}#new", as... | module Vitrage
module Router
def routes(rails_router, options = {})
cs = options[:controller] ? options[:controller].to_s : "pieces"
rails_router.post '/vitrage/pieces' => "#{cs}#create", as: :vitrage_pieces
rails_router.get '/vitrage/pieces/new' => "#{cs}#new", as:... | Fix routes without custom controller | Fix routes without custom controller
| Ruby | mit | dymio/vitrage,dymio/vitrage,dymio/vitrage | ruby | ## Code Before:
module Vitrage
module Router
def routes(rails_router, options = {})
if options[:controller]
cs = options[:controller].to_s
rails_router.post '/vitrage/pieces' => "#{cs}#create", as: :vitrage_pieces
rails_router.get '/vitrage/pieces/new' => "#... | module Vitrage
module Router
def routes(rails_router, options = {})
- if options[:controller]
- cs = options[:controller].to_s
+ cs = options[:controller] ? options[:controller].to_s : "pieces"
+
- rails_router.post '/vitrage/pieces' => "#{cs}#create", as: :vitr... | 29 | 1.26087 | 14 | 15 |
2865c83fb0702fff27057588d414d755dbed00f5 | LunchOverflow/app/views/posts/show.html.erb | LunchOverflow/app/views/posts/show.html.erb | <h2><%= @post.title %> - <%= @post.address %></h2>
<p><%= @post.content %></p>
| <h2><%= @post.title %> - <%= @post.address %></h2>
<h4><%= @post.content %></h4>
<h3>Comments</h3>
<ul>
<% @post.comments.each do |comment| %>
<li><%= comment.content %></li>
<% end %>
</ul> | Add comments to post show view | Add comments to post show view
| HTML+ERB | mit | rock-doves-2014/LunchOverflow,rock-doves-2014/LunchOverflow | html+erb | ## Code Before:
<h2><%= @post.title %> - <%= @post.address %></h2>
<p><%= @post.content %></p>
## Instruction:
Add comments to post show view
## Code After:
<h2><%= @post.title %> - <%= @post.address %></h2>
<h4><%= @post.content %></h4>
<h3>Comments</h3>
<ul>
<% @post.comments.each do |comment| %>
<li><%= com... | <h2><%= @post.title %> - <%= @post.address %></h2>
- <p><%= @post.content %></p>
? ^ ^
+ <h4><%= @post.content %></h4>
? ^^ ^^
+
+ <h3>Comments</h3>
+ <ul>
+ <% @post.comments.each do |comment| %>
+ <li><%= comment.content %></li>
+ <% end %>
+ </ul> | 9 | 4.5 | 8 | 1 |
829d693e3d1e519b837587adc51c940871666c13 | decoder/dict.h | decoder/dict.h |
class Dict {
typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map;
public:
Dict() : b0_("<bad0>") { words_.reserve(1000); }
inline int max() const { return words_.size(); }
inline WordID Convert(const std::string& word, bool frozen = false) {
Map::iterator i = d_.find(word);
... |
class Dict {
typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map;
public:
Dict() : b0_("<bad0>") { words_.reserve(1000); }
inline int max() const { return words_.size(); }
inline WordID Convert(const std::string& word, bool frozen = false) {
Map::iterator i = d_.find(word... | Update utility functions to work with pyp-topics. | Update utility functions to work with pyp-topics.
git-svn-id: 357248c53bdac2d7b36f7ee045286eb205fcf757@49 ec762483-ff6d-05da-a07a-a48fb63a330f
| C | apache-2.0 | carhaas/cdec-semparse,m5w/atools,redpony/cdec,veer66/cdec,veer66/cdec,veer66/cdec,redpony/cdec,carhaas/cdec-semparse,carhaas/cdec-semparse,veer66/cdec,redpony/cdec,m5w/atools,veer66/cdec,pks/cdec-dtrain,pks/cdec-dtrain,carhaas/cdec-semparse,pks/cdec-dtrain,redpony/cdec,redpony/cdec,redpony/cdec,veer66/cdec,pks/cdec-dtr... | c | ## Code Before:
class Dict {
typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map;
public:
Dict() : b0_("<bad0>") { words_.reserve(1000); }
inline int max() const { return words_.size(); }
inline WordID Convert(const std::string& word, bool frozen = false) {
Map::iterator i =... |
class Dict {
typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map;
+
public:
Dict() : b0_("<bad0>") { words_.reserve(1000); }
+
inline int max() const { return words_.size(); }
+
inline WordID Convert(const std::string& word, bool frozen = false) {
Map::ite... | 17 | 0.548387 | 17 | 0 |
c3d8c9ffa5a3975f0b1e39e93708e7a63fc64ca5 | _config.yml | _config.yml | title: jacob
email: jacob.walker94@gmail.com
description: Jacob Walker's smashing homepage and equally smashing blog
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://ja.co.bw" # the base hostname & protocol for your site
twitter_username: jacobwalkr
github_username: jacobwalkr
# Build settings
markdow... | title: jacob
email: jacob.walker94@gmail.com
description: Jacob Walker's smashing homepage and equally smashing blog
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://ja.co.bw" # the base hostname & protocol for your site
twitter_username: jacobwalkr
github_username: jacobwalkr
# Build settings
markdow... | Set is_post variable to true for all posts | Set is_post variable to true for all posts
| YAML | mit | jacobwalkr/ja.co.bw | yaml | ## Code Before:
title: jacob
email: jacob.walker94@gmail.com
description: Jacob Walker's smashing homepage and equally smashing blog
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://ja.co.bw" # the base hostname & protocol for your site
twitter_username: jacobwalkr
github_username: jacobwalkr
# Build ... | title: jacob
email: jacob.walker94@gmail.com
description: Jacob Walker's smashing homepage and equally smashing blog
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://ja.co.bw" # the base hostname & protocol for your site
twitter_username: jacobwalkr
github_username: jacobwalkr
# Buil... | 9 | 0.692308 | 9 | 0 |
121927a61f307c49bbc50d7bf784238968da90dd | src/main/plugins/org.dita.html5/params.xml | src/main/plugins/org.dita.html5/params.xml | <?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the DITA Open Toolkit project.
Copyright 2015 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
<params>
<param name="input.map.url" expression="${html5.map.url}" if="html5.map.url"/>
<param name="nav-toc" expression="${h... | <?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the DITA Open Toolkit project.
Copyright 2015 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
<params xmlns:if="ant:if">
<param name="input.map.url" expression="${html5.map.url}" if:set="html5.map.url"/>
<param name="nav... | Use replace obsolete Ant if attributes | Use replace obsolete Ant if attributes
Signed-off-by: Jarno Elovirta <0f1ab0ac7dffd9db21aa539af2fd4bb04abc3ad4@elovirta.com>
| XML | apache-2.0 | dita-ot/dita-ot,shaneataylor/dita-ot,dita-ot/dita-ot,shaneataylor/dita-ot,infotexture/dita-ot,drmacro/dita-ot,infotexture/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,shaneataylor/dita-ot,dita-ot/dita-ot,dita-ot/dita-ot,drmacro/dita-ot,drmacro/dita-ot,shaneataylor/dita-ot,drmacro/dita-ot,shaneataylor/dita-ot,infotexture... | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the DITA Open Toolkit project.
Copyright 2015 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
<params>
<param name="input.map.url" expression="${html5.map.url}" if="html5.map.url"/>
<param name="nav-toc"... | <?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the DITA Open Toolkit project.
Copyright 2015 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
- <params>
+ <params xmlns:if="ant:if">
- <param name="input.map.url" expression="${html5.map.url}" if="html5.ma... | 6 | 0.5 | 3 | 3 |
090ff88fe5a4fc8be9f40d9517af006143dc9de3 | src/test/e2e/welcome.po.ts | src/test/e2e/welcome.po.ts | /// <reference path="../../../dts/protractor.d.ts" />
declare var by: AureliaSeleniumPlugins;
class PageObject_Welcome {
constructor() {
}
getGreeting() {
return element(by.tagName('h2')).getText();
}
setFirstname(value) {
return element(by.valueBind('firstName')).clear()["sendKeys"](value);
}... | /// <reference path="../../../dts/protractor.d.ts" />
declare var by: AureliaSeleniumPlugins;
class PageObject_Welcome {
constructor() {
}
getGreeting() {
return element(by.tagName('h2')).getText();
}
setFirstname(value) {
var el = element(by.valueBind('firstName'));
el.clear();
return e... | Rewrite e2e test to avoid compilation warning | Rewrite e2e test to avoid compilation warning
| TypeScript | mit | bohnen/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript,bohnen/aurelia-skeleton-navigation-gulp-typescript,bohnen/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript | typescript | ## Code Before:
/// <reference path="../../../dts/protractor.d.ts" />
declare var by: AureliaSeleniumPlugins;
class PageObject_Welcome {
constructor() {
}
getGreeting() {
return element(by.tagName('h2')).getText();
}
setFirstname(value) {
return element(by.valueBind('firstName')).clear()["sendKe... | /// <reference path="../../../dts/protractor.d.ts" />
declare var by: AureliaSeleniumPlugins;
class PageObject_Welcome {
constructor() {
}
getGreeting() {
return element(by.tagName('h2')).getText();
}
setFirstname(value) {
- return element(by.valueBind('firstName'))... | 8 | 0.181818 | 6 | 2 |
53fb18edadea3f42a5628b778b120adf1c44c651 | index.html | index.html | <!DOCTYPE html>
<html lang="nl">
<head>
<title>Tijdelijk niet beschikbaar</title>
<meta charset="utf-8">
<meta name="description" content="Fietsenwinkel gelegen in Lier.">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="stylesheet" href="stylesheet.css" type="text/css" media="scr... | <!DOCTYPE html>
<html lang="nl">
<head>
<title>Tijdelijk niet beschikbaar</title>
<meta charset="utf-8">
<meta name="description" content="Fietsenwinkel gelegen in Lier.">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="stylesheet" href="stylesheet.css" type="text/css" media="scr... | Update ik weet niet meer hoeveel. | Update ik weet niet meer hoeveel.
teskst verandert van updates
| HTML | mit | develoshop/Home | html | ## Code Before:
<!DOCTYPE html>
<html lang="nl">
<head>
<title>Tijdelijk niet beschikbaar</title>
<meta charset="utf-8">
<meta name="description" content="Fietsenwinkel gelegen in Lier.">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="stylesheet" href="stylesheet.css" type="text... | <!DOCTYPE html>
<html lang="nl">
<head>
<title>Tijdelijk niet beschikbaar</title>
<meta charset="utf-8">
<meta name="description" content="Fietsenwinkel gelegen in Lier.">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="stylesheet" href="stylesheet.css" type="... | 2 | 0.133333 | 1 | 1 |
99fe2da33621262796ca9fdf5cb080de43008a25 | baseUris-example.json | baseUris-example.json | {
"stop": "http://data.gtfs.org/example/stops/{stop_id}",
"route": "http://data.gtfs.org/example/routes/{routes.route_short_name}",
"trip": "http://data.gtfs.org/example/trips/{trip_id}/{routes.route_short_name}{trips.startTime}",
"connection": "http://example/linkedconnections.org/connections/{trips.startTime}... | {
"stop": "http://data.gtfs.org/example/stops/{stop_id}",
"route": "http://data.gtfs.org/example/routes/{route_short_id}",
"trip": "http://data.gtfs.org/example/trips/{trip_id}/{trip_startTime}",
"connection": "http://example/linkedconnections.org/connections/{trip_startTime}/{departureStop}/{trip_id}",
"reso... | Fix for URI resolve bug | Fix for URI resolve bug
| JSON | mit | linkedconnections/gtfs2lc,linkedconnections/gtfs2lc | json | ## Code Before:
{
"stop": "http://data.gtfs.org/example/stops/{stop_id}",
"route": "http://data.gtfs.org/example/routes/{routes.route_short_name}",
"trip": "http://data.gtfs.org/example/trips/{trip_id}/{routes.route_short_name}{trips.startTime}",
"connection": "http://example/linkedconnections.org/connections/{... | {
"stop": "http://data.gtfs.org/example/stops/{stop_id}",
- "route": "http://data.gtfs.org/example/routes/{routes.route_short_name}",
? ------- ^^^^
+ "route": "http://data.gtfs.org/example/routes/{route_short_id}",
? ... | 7 | 0.583333 | 4 | 3 |
8f37e04d78440f20eb1c09630c35ad74e85b19a4 | spec/spec_helper.rb | spec/spec_helper.rb | $LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.setup(:development)
require 'mailgun'
require_relative 'unit/connection/test_client'
# INSERT YOUR API KEYS HERE
APIKEY = "key"
PUB_APIKEY =... | $LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.setup(:development)
require 'mailgun'
require_relative 'unit/connection/test_client'
# INSERT YOUR API KEYS HERE
APIKEY = ENV['MAILGUN_API_K... | Use environment variables for API keys | Use environment variables for API keys
Since we have to use our own keys to run the tests on this gem, support
using environment variables so we don’t have to edit this file and
remember to revert it back before committing. This way we can run tests
like:
`MAILGUN_API_KEY=abcd MAILGUN_PUBLIC_KEY=1234 bundle exec rspe... | Ruby | apache-2.0 | veracross/mailgun-ruby | ruby | ## Code Before:
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.setup(:development)
require 'mailgun'
require_relative 'unit/connection/test_client'
# INSERT YOUR API KEYS HERE
APIKEY = "k... | $LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.setup(:development)
require 'mailgun'
require_relative 'unit/connection/test_client'
# INSERT YOUR API KEYS HERE
- APIKE... | 6 | 0.4 | 3 | 3 |
f7c5eb1e93f8cb5f75fa23825cee0389faaf51d0 | src/js/components/WindowList.js | src/js/components/WindowList.js | import React from 'react'
import { inject, observer } from 'mobx-react'
import Window from './Window'
import DragPreview from './DragPreview'
@inject('windowStore')
@observer
export default class App extends React.Component {
resize = () => {
const bottom = Math.max(
...Object.values(this.refs).map(
... | import React from 'react'
import { inject, observer } from 'mobx-react'
import Window from './Window'
import DragPreview from './DragPreview'
@inject('windowStore')
@observer
export default class App extends React.Component {
resize = () => {
const bottom = Math.max(
...Object.values(this.refs).map(
... | Make min height = 300px | Make min height = 300px
| JavaScript | mit | xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2 | javascript | ## Code Before:
import React from 'react'
import { inject, observer } from 'mobx-react'
import Window from './Window'
import DragPreview from './DragPreview'
@inject('windowStore')
@observer
export default class App extends React.Component {
resize = () => {
const bottom = Math.max(
...Object.values(this.r... | import React from 'react'
import { inject, observer } from 'mobx-react'
import Window from './Window'
import DragPreview from './DragPreview'
@inject('windowStore')
@observer
export default class App extends React.Component {
resize = () => {
const bottom = Math.max(
...Object.values(... | 2 | 0.042553 | 1 | 1 |
fb2876902f23c74e909f1721d00fd1009942f7dd | lib/polish-test-file.js | lib/polish-test-file.js | var _ = require('lodash');
module.exports = function(ast, filePath, plugins) {
var errors = [],
warnings = [];
_.each(plugins, function(plugin){
var results,
array;
if (plugin.severity === 2) {
array = errors;
} else if (plugin.severity === 1) {
array = warnings;
} ... | var _ = require('lodash');
module.exports = function(ast, filePath, plugins) {
var errors = [],
warnings = [];
_.each(plugins, function(plugin){
var results,
array;
if (plugin.severity === 2) {
array = errors;
} else if (plugin.severity === 1) {
array = warnings;
} els... | Exclude results with matching inline configs when testing files | bugfix: Exclude results with matching inline configs when testing files
| JavaScript | mit | brendanlacroix/polish-css | javascript | ## Code Before:
var _ = require('lodash');
module.exports = function(ast, filePath, plugins) {
var errors = [],
warnings = [];
_.each(plugins, function(plugin){
var results,
array;
if (plugin.severity === 2) {
array = errors;
} else if (plugin.severity === 1) {
array = ... | - var _ = require('lodash');
? ---
+ var _ = require('lodash');
module.exports = function(ast, filePath, plugins) {
var errors = [],
warnings = [];
_.each(plugins, function(plugin){
var results,
array;
if (plugin.severity === 2) {
array = errors;
... | 8 | 0.166667 | 3 | 5 |
d9ce37a6631725a72cbd24e3d9d8c68e367c02a7 | requirements.txt | requirements.txt |
pbr>=0.6,!=0.7,<1.0
argparse
Babel>=1.3
iso8601>=0.1.9
netaddr>=0.7.12
oslo.config>=1.9.3 # Apache-2.0
oslo.i18n>=1.5.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=1.4.0 # Apache-2.0
PrettyTable>=0.7,<0.8
requests>=2.2.0,!=2.4.0
six>=1.9.0
stevedore>=1.3.0 # ... |
argparse
Babel>=1.3
iso8601>=0.1.9
netaddr>=0.7.12
oslo.config>=1.9.3 # Apache-2.0
oslo.i18n>=1.5.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=1.4.0 # Apache-2.0
PrettyTable>=0.7,<0.8
requests>=2.2.0,!=2.4.0
six>=1.9.0
stevedore>=1.3.0 # Apache-2.0
| Remove pbr as runtime depend | Remove pbr as runtime depend
It's neither used nor desired.
Change-Id: Idba1b092054ea435f874374aa94919d103ac3be0
| Text | apache-2.0 | jamielennox/keystoneauth,citrix-openstack-build/keystoneauth,sileht/keystoneauth | text | ## Code Before:
pbr>=0.6,!=0.7,<1.0
argparse
Babel>=1.3
iso8601>=0.1.9
netaddr>=0.7.12
oslo.config>=1.9.3 # Apache-2.0
oslo.i18n>=1.5.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=1.4.0 # Apache-2.0
PrettyTable>=0.7,<0.8
requests>=2.2.0,!=2.4.0
six>=1.9.0
stev... | -
- pbr>=0.6,!=0.7,<1.0
argparse
Babel>=1.3
iso8601>=0.1.9
netaddr>=0.7.12
oslo.config>=1.9.3 # Apache-2.0
oslo.i18n>=1.5.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=1.4.0 # Apache-2.0
PrettyTable>=0.7,<0.8
requests>=2.2.0,!=2.4.0
six... | 2 | 0.133333 | 0 | 2 |
77a5ecc7c406e4a6acf814a2f0381dc605e0d14c | leds/led_dance.py | leds/led_dance.py |
import pyb
def led_dance(delay):
dots = {}
control = pyb.Switch(1)
while True:
if not control.value():
dots[pyb.millis() % 25] = 16
for d in dots:
pyb.pixel(d, dots[d])
if dots[d] == 0:
del(dots[d])
else:
dots[... |
import microbit
def led_dance(delay):
dots = [ [0]*5, [0]*5, [0]*5, [0]*5, [0]*5 ]
microbit.display.set_display_mode(1)
while True:
dots[microbit.random(5)][microbit.random(5)] = 128
for i in range(5):
for j in range(5):
microbit.display.image.set_pixel_value(i,... | Update for new version of micropython for microbit | Update for new version of micropython for microbit
| Python | mit | jrmhaig/microbit_playground | python | ## Code Before:
import pyb
def led_dance(delay):
dots = {}
control = pyb.Switch(1)
while True:
if not control.value():
dots[pyb.millis() % 25] = 16
for d in dots:
pyb.pixel(d, dots[d])
if dots[d] == 0:
del(dots[d])
else:
... |
- import pyb
+ import microbit
def led_dance(delay):
- dots = {}
- control = pyb.Switch(1)
+ dots = [ [0]*5, [0]*5, [0]*5, [0]*5, [0]*5 ]
+ microbit.display.set_display_mode(1)
while True:
+ dots[microbit.random(5)][microbit.random(5)] = 128
+ for i in range(5):
+ ... | 23 | 1.277778 | 10 | 13 |
ce61d9b9836d3f963df93a4bb05db594d62548a4 | lib/Support/StringSaver.cpp | lib/Support/StringSaver.cpp | //===-- StringSaver.cpp ---------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- StringSaver.cpp ---------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix an undefined behavior when storing an empty StringRef. | Fix an undefined behavior when storing an empty StringRef.
Summary: Passing a nullptr to memcpy is UB.
Reviewers: ioeric
Subscribers: llvm-commits, cfe-commits
Differential Revision: https://reviews.llvm.org/D50966
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@340170 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llv... | c++ | ## Code Before:
//===-- StringSaver.cpp ---------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... | //===-- StringSaver.cpp ---------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... | 3 | 0.115385 | 2 | 1 |
7a05f0a7a10f62944885da1ba1710d7f4d43c588 | app/models/spree/product_decorator.rb | app/models/spree/product_decorator.rb | Spree::Product.class_eval do
def option_values
@_option_values ||= Spree::OptionValue.for_product(self).order(:position).sort_by {|ov| ov.option_type.position }
end
def grouped_option_values
@_grouped_option_values ||= option_values.group_by(&:option_type)
end
def variants_for_option_value(value)
... | Spree::Product.class_eval do
def option_values
@_option_values ||= Spree::OptionValue.find_by_sql(["SELECT ov.id FROM spree_option_values ov INNER JOIN spree_option_values_variants ovv ON ovv.option_value_id = ov.id INNER JOIN spree_variants v on ovv.variant_id = v.id WHERE v.product_id = ? ORDER BY v.position",... | Order options by variant position | Order options by variant position
| Ruby | bsd-3-clause | Scoutmob/spree_variant_options,Scoutmob/spree_variant_options,Scoutmob/spree_variant_options | ruby | ## Code Before:
Spree::Product.class_eval do
def option_values
@_option_values ||= Spree::OptionValue.for_product(self).order(:position).sort_by {|ov| ov.option_type.position }
end
def grouped_option_values
@_grouped_option_values ||= option_values.group_by(&:option_type)
end
def variants_for_optio... | Spree::Product.class_eval do
def option_values
- @_option_values ||= Spree::OptionValue.for_product(self).order(:position).sort_by {|ov| ov.option_type.position }
+ @_option_values ||= Spree::OptionValue.find_by_sql(["SELECT ov.id FROM spree_option_values ov INNER JOIN spree_option_values_variants ovv ... | 2 | 0.064516 | 1 | 1 |
d5c89d054faca702b1c9a312c9f4dfa6d9fe5fa8 | db/migrate/20180711182519_change_allowed_email_domains_text.rb | db/migrate/20180711182519_change_allowed_email_domains_text.rb | class ChangeAllowedEmailDomainsText < ActiveRecord::Migration[5.2]
def change
if Organization.new.respond_to? :allowed_email_domains
change_column :organizations, :allowed_email_domains, :text, limit: 255
end
end
end
| class ChangeAllowedEmailDomainsText < ActiveRecord::Migration[5.2]
def change
if Organization.column_names.include? 'allowed_email_domains'
change_column :organizations, :allowed_email_domains, :text, limit: 255
end
end
end
| Fix migration so that it doesn't try to load SystemConfig. | Fix migration so that it doesn't try to load SystemConfig.
| Ruby | mit | camsys/transam_core,camsys/transam_core,camsys/transam_core,camsys/transam_core | ruby | ## Code Before:
class ChangeAllowedEmailDomainsText < ActiveRecord::Migration[5.2]
def change
if Organization.new.respond_to? :allowed_email_domains
change_column :organizations, :allowed_email_domains, :text, limit: 255
end
end
end
## Instruction:
Fix migration so that it doesn't try to load SystemC... | class ChangeAllowedEmailDomainsText < ActiveRecord::Migration[5.2]
def change
- if Organization.new.respond_to? :allowed_email_domains
? ^^^^ ^^ ^^^ ^
+ if Organization.column_names.include? 'allowed_email_domains'
? +++++ ^^^^ ^^ +++ ^ ^ ... | 2 | 0.285714 | 1 | 1 |
471de1b432de0a05a8f5209f74c8d4579186a3b0 | resources/public/css/site.css | resources/public/css/site.css | body {
font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
max-width: 1000px;
margin: 0 auto;
padding-top: 72px;
-webkit-font-smoothing: antialiased;
font-size: 1.125em;
color: #333;
line-height: 1.5em;
}
h1, h2, h3 {
color: #000;
}
h1 {
font-size: 2.5em
}
h2 {
font-size: 2em
}... | body {
font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
max-width: 1000px;
margin: 0 auto;
padding-top: 72px;
-webkit-font-smoothing: antialiased;
font-size: 1.125em;
color: #333;
line-height: 1.5em;
}
h1, h2, h3 {
color: #000;
}
h1 {
font-size: 2.5em
}
h2 {
font-size: 2em
}... | Fix the height of CodeMirror so it properly fits the content. | Fix the height of CodeMirror so it properly fits the content.
| CSS | mit | ctford/cljs-bach,ctford/cljs-bach | css | ## Code Before:
body {
font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
max-width: 1000px;
margin: 0 auto;
padding-top: 72px;
-webkit-font-smoothing: antialiased;
font-size: 1.125em;
color: #333;
line-height: 1.5em;
}
h1, h2, h3 {
color: #000;
}
h1 {
font-size: 2.5em
}
h2 {
... | body {
font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
max-width: 1000px;
margin: 0 auto;
padding-top: 72px;
-webkit-font-smoothing: antialiased;
font-size: 1.125em;
color: #333;
line-height: 1.5em;
}
h1, h2, h3 {
color: #000;
}
h1 {
font-size: ... | 1 | 0.014286 | 1 | 0 |
5fff561cd43d3d1a09de5adbb39a6a4b9fafbcf4 | functions/shorten_path.fish | functions/shorten_path.fish | function shorten_path
if test (count $argv) -lt 3
echo $argv[1] | sed -e "s#$HOME#~#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]#$argv[3]#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
| function shorten_path
if test (count $argv) -lt 3
echo $argv[1] | sed -e "s#$HOME\\(/\\|\$\\)#~\1#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]\\(/\\|\$\\)#$argv[3]\1#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
| Fix shorten path incorrectly shortening files in /home | Fix shorten path incorrectly shortening files in /home
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar | fish | ## Code Before:
function shorten_path
if test (count $argv) -lt 3
echo $argv[1] | sed -e "s#$HOME#~#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
else
echo $argv[1] | sed -e "s#$argv[2]#$argv[3]#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
end
end
## Instruction:
Fix shorten path incorrect... | function shorten_path
if test (count $argv) -lt 3
- echo $argv[1] | sed -e "s#$HOME#~#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
+ echo $argv[1] | sed -e "s#$HOME\\(/\\|\$\\)#~\1#g" | sed -e 's#\\(\\.\\?[^/]\\{1\\}\\)[^/]*/#\\1/#g'
? ++++++++++++ ++
else
... | 4 | 0.571429 | 2 | 2 |
1f2ab8e287807f8c684e8758f5b4ed618dca20be | README.md | README.md |
This is the result of 7 hours of work during zdrowieton.js in 2017.
We will clean it up and make available for everyone, once we find time.
If you want to run it:
1.`git clone` or download it
2.`npm install`
3.`gulp`
## Goals
Make the users aware of how much of kilocalories, fat, protein and carbohydrates each ... |
This is the result of 7 hours of work during zdrowieton.js in 2017.
We will clean it up and make available for everyone, once we find time.
If you want to run it:
1.`git clone` or download it
2.`npm install`
3.`gulp`
## Goals
Make the users aware of how much of kilocalories, fat, protein and carbohydrates each ... | Add Mikołaj to the list | Add Mikołaj to the list | Markdown | mit | akai-org/zdrowieton2017,akai-org/zdrowieton2017 | markdown | ## Code Before:
This is the result of 7 hours of work during zdrowieton.js in 2017.
We will clean it up and make available for everyone, once we find time.
If you want to run it:
1.`git clone` or download it
2.`npm install`
3.`gulp`
## Goals
Make the users aware of how much of kilocalories, fat, protein and car... |
This is the result of 7 hours of work during zdrowieton.js in 2017.
We will clean it up and make available for everyone, once we find time.
If you want to run it:
1.`git clone` or download it
2.`npm install`
3.`gulp`
## Goals
Make the users aware of how much of kilocalories, fat,... | 1 | 0.043478 | 1 | 0 |
757b8b2dc35193988395b97d82532289289ccc9a | README.md | README.md |
[](https://travis-ci.org/twpayne/go-gpx)
[](https://godoc.org/github.com/twpayne/go-gpx)
Package go-gpx provides convenince methods for creating and writing GPX documents.
[License](... |
[](https://travis-ci.org/twpayne/go-gpx)
[](https://godoc.org/github.com/twpayne/go-gpx)
[](https://goreportcard... | Add link to Report Card | Add link to Report Card
| Markdown | mit | twpayne/go-gpx | markdown | ## Code Before:
[](https://travis-ci.org/twpayne/go-gpx)
[](https://godoc.org/github.com/twpayne/go-gpx)
Package go-gpx provides convenince methods for creating and writing GPX docume... |
[](https://travis-ci.org/twpayne/go-gpx)
[](https://godoc.org/github.com/twpayne/go-gpx)
+ [](https://gore... | 1 | 0.142857 | 1 | 0 |
d2fd463089be453dbe3e2758042672e962bd65ca | tweet_processor.rb | tweet_processor.rb | module BBC
# TweetProcessor contains all twitter text filtering and word tracking
class TweetProcessor
attr_accessor :total_word_count
attr_accessor :word_cont_hash
def initialize
@total_word_count = 0
@word_count_hash = {}
end
def add_word_count(tweet)
word_ar = tweet.split... | module BBC
class TweetProcessor
attr_reader :total_word_count
def initialize
@total_word_count = 0
@word_count = {}
end
def add_word_count(tweet)
words = tweet.split(" ")
@total_word_count += words.length
end
def add_words_to_hash(tweet)
filter_stop_words(twee... | Refactor for concise var naming | Refactor for concise var naming
| Ruby | mit | bry/twitter-stream-tracker | ruby | ## Code Before:
module BBC
# TweetProcessor contains all twitter text filtering and word tracking
class TweetProcessor
attr_accessor :total_word_count
attr_accessor :word_cont_hash
def initialize
@total_word_count = 0
@word_count_hash = {}
end
def add_word_count(tweet)
word_... | module BBC
- # TweetProcessor contains all twitter text filtering and word tracking
class TweetProcessor
- attr_accessor :total_word_count
? ^^ ---
+ attr_reader :total_word_count
? ++ ^
- attr_accessor :word_cont_hash
def initialize
@total_word_count = 0
- ... | 39 | 0.672414 | 15 | 24 |
7db3a14636402a5c66179a9c60df33398190bd3e | app/modules/frest/api/__init__.py | app/modules/frest/api/__init__.py | from functools import wraps, partial
from flask import request
from flask_api import status
from flask.wrappers import Response
from app.config import API_ACCEPT_HEADER
def API(method=None):
if method is None:
return partial(API)
@wraps(method)
def decorated(*args, **kwargs):
_return = ... | from functools import wraps, partial
from flask import request
from flask_api import status
from flask.wrappers import Response
from app.config import API_ACCEPT_HEADER, API_VERSION
def API(method=None):
if method is None:
return partial(API)
@wraps(method)
def decorated(*args, **kwargs):
... | Return http status code 301 when api version is wrong | Return http status code 301 when api version is wrong
| Python | mit | h4wldev/Frest | python | ## Code Before:
from functools import wraps, partial
from flask import request
from flask_api import status
from flask.wrappers import Response
from app.config import API_ACCEPT_HEADER
def API(method=None):
if method is None:
return partial(API)
@wraps(method)
def decorated(*args, **kwargs):
... | from functools import wraps, partial
from flask import request
from flask_api import status
from flask.wrappers import Response
- from app.config import API_ACCEPT_HEADER
+ from app.config import API_ACCEPT_HEADER, API_VERSION
? +++++++++++++
def API(method... | 11 | 0.22 | 7 | 4 |
43a24cbc79dfd7c63fa261f390f9016989c06e6a | scripts/travis/deploy.sh | scripts/travis/deploy.sh | set -e
if [ ${BUILD_TYPE} == 'deploy' ]; then
eval "$(ssh-agent -s)"
ssh-add deploy_rsa
# Temporarily copy files to second server
DEPLOY_FOLDER2=${TRAVIS_BRANCH}
DEPLOY_SERVER2=travis@cognosis.mit.edu
echo "Copying binaries to ${DEPLOY_SERVER2}:${DEPLOY_FOLDER2} ..."
rsync -r --delete-aft... | set -e
if [ ${BUILD_TYPE} == 'deploy' ]; then
eval "$(ssh-agent -s)"
ssh-add deploy_rsa
WORKER_IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
# Temporarily copy files to second server
DEPLOY_FOLDER2=${TRAVIS_BRANCH}
DEPLOY_SERVER2=travis@cognosis.mit.edu
echo "Copying binarie... | Add worker IP to travis build log | Add worker IP to travis build log
| Shell | mit | CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab | shell | ## Code Before:
set -e
if [ ${BUILD_TYPE} == 'deploy' ]; then
eval "$(ssh-agent -s)"
ssh-add deploy_rsa
# Temporarily copy files to second server
DEPLOY_FOLDER2=${TRAVIS_BRANCH}
DEPLOY_SERVER2=travis@cognosis.mit.edu
echo "Copying binaries to ${DEPLOY_SERVER2}:${DEPLOY_FOLDER2} ..."
rsync... | set -e
if [ ${BUILD_TYPE} == 'deploy' ]; then
eval "$(ssh-agent -s)"
ssh-add deploy_rsa
+ WORKER_IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
+
# Temporarily copy files to second server
DEPLOY_FOLDER2=${TRAVIS_BRANCH}
DEPLOY_SERVER2=travis@cognosis.mit.edu
-... | 6 | 0.25 | 4 | 2 |
4fcee02539bddc4c2b0079fa6f4e5707a6f887c6 | gulpfile.js | gulpfile.js | var gulp = require("gulp");
var sass = require("gulp-sass");
gulp.task('sass', function () {
gulp.src('src/hipster-grid-system.scss')
.pipe(sass())
.pipe(gulp.dest('dist'));
});
| var gulp = require("gulp");
var sass = require("gulp-sass");
var rename = require("gulp-rename");
var autoprefixer = require("gulp-autoprefixer");
gulp.task('sass', function () {
gulp.src('src/hipster-grid-system.scss')
.pipe(sass())
.pipe(autoprefixer())
.pipe(gulp.dest('dist'));
gulp.... | Add support autoprefixer for cross-browser. Add support minify dist file. | Add support autoprefixer for cross-browser.
Add support minify dist file.
| JavaScript | mit | erdoganbulut/hipster-grid-system | javascript | ## Code Before:
var gulp = require("gulp");
var sass = require("gulp-sass");
gulp.task('sass', function () {
gulp.src('src/hipster-grid-system.scss')
.pipe(sass())
.pipe(gulp.dest('dist'));
});
## Instruction:
Add support autoprefixer for cross-browser.
Add support minify dist file.
## Code After... | var gulp = require("gulp");
var sass = require("gulp-sass");
+ var rename = require("gulp-rename");
+ var autoprefixer = require("gulp-autoprefixer");
gulp.task('sass', function () {
gulp.src('src/hipster-grid-system.scss')
.pipe(sass())
+ .pipe(autoprefixer())
+ .pipe(gulp.dest... | 10 | 1.25 | 10 | 0 |
a9596a8398fffd8e95d5ee8d5773f9a32ca5b933 | README.md | README.md | This repo contains the bare minimum code to have an auto-updating Electron app using [`electron-updater`](https://github.com/electron-userland/electron-builder/tree/master/packages/electron-updater) with releases stored on GitHub.
1. First, install necessary dependencies with:
```
npm install
```
2. Generate a GitHu... | This repo contains the bare minimum code to have an auto-updating Electron app using [`electron-updater`](https://github.com/electron-userland/electron-builder/tree/master/packages/electron-updater) with releases stored on GitHub.
1. First, install necessary dependencies with:
npm install
2. Generate a GitHu... | Fix code block syntax again :) | Fix code block syntax again :)
| Markdown | unlicense | iffy/electron-updater-example,iffy/electron-updater-example | markdown | ## Code Before:
This repo contains the bare minimum code to have an auto-updating Electron app using [`electron-updater`](https://github.com/electron-userland/electron-builder/tree/master/packages/electron-updater) with releases stored on GitHub.
1. First, install necessary dependencies with:
```
npm install
```
2. ... | This repo contains the bare minimum code to have an auto-updating Electron app using [`electron-updater`](https://github.com/electron-userland/electron-builder/tree/master/packages/electron-updater) with releases stored on GitHub.
1. First, install necessary dependencies with:
+ npm install
- ```
- np... | 12 | 0.444444 | 3 | 9 |
79429836295981dcc65ef1c8421db12d37f76e0b | app/views/rate_categories/_form.html.haml | app/views/rate_categories/_form.html.haml | .box-content
= simple_form_for @rate_category, html: { class: "basic home" } do |f|
= f.error_notification class: "warning"
%h2.group-title Schablon
= f.input :name
= show_attribute('rate_category.description', @rate_category.description)
= f.input :from_age
= f.input :to_age
= f.associat... | .box-content
= simple_form_for @rate_category, html: { class: "basic home" } do |f|
= f.error_notification class: "warning"
%h2.group-title Schablon
= show_attribute('rate_category.name', @rate_category.name)
= show_attribute('rate_category.description', @rate_category.description)
= show_attribu... | Disable edit of rate categories | Disable edit of rate categories
| Haml | agpl-3.0 | malmostad/meks,malmostad/meks,malmostad/meks,malmostad/meks | haml | ## Code Before:
.box-content
= simple_form_for @rate_category, html: { class: "basic home" } do |f|
= f.error_notification class: "warning"
%h2.group-title Schablon
= f.input :name
= show_attribute('rate_category.description', @rate_category.description)
= f.input :from_age
= f.input :to_age
... | .box-content
= simple_form_for @rate_category, html: { class: "basic home" } do |f|
= f.error_notification class: "warning"
%h2.group-title Schablon
- = f.input :name
+ = show_attribute('rate_category.name', @rate_category.name)
= show_attribute('rate_category.description', @rate_cate... | 8 | 0.380952 | 4 | 4 |
26634c37e9cdd234b83167f786571c6050c85930 | README.md | README.md |
A tiny thing to make the browser reload css and javascript when files are changed on disk.
Provides a command line tool and a middleware for express.
## Command line
```
Usage: quickreload [options] [watchdir]
Will default to current working directory if watchdir is omitted.
Options:
--css <extensi... |
A tiny thing to make the browser reload css and javascript when files are changed on disk.
Provides a command line tool and a middleware for express.
## Command line
```
Usage: quickreload [options] [watchdir]
Will default to current working directory if watchdir is omitted.
Options:
--css <extensions...... | Break usage.txt at column 80 (in readme too) | Break usage.txt at column 80 (in readme too)
| Markdown | mit | bjoerge/quickreload,bjoerge/quickreload | markdown | ## Code Before:
A tiny thing to make the browser reload css and javascript when files are changed on disk.
Provides a command line tool and a middleware for express.
## Command line
```
Usage: quickreload [options] [watchdir]
Will default to current working directory if watchdir is omitted.
Options:
... |
A tiny thing to make the browser reload css and javascript when files are changed on disk.
Provides a command line tool and a middleware for express.
## Command line
```
Usage: quickreload [options] [watchdir]
Will default to current working directory if watchdir is omitted.
Options:... | 33 | 0.66 | 19 | 14 |
f75c0119bd1dc9684a36080f75b719af0ea72e39 | src/Oro/Bundle/EmailBundle/EventListener/SearchListener.php | src/Oro/Bundle/EmailBundle/EventListener/SearchListener.php | <?php
namespace Oro\Bundle\EmailBundle\EventListener;
use Symfony\Component\Security\Core\User\UserInterface;
use Oro\Bundle\SearchBundle\Event\PrepareEntityMapEvent;
use Oro\Bundle\EmailBundle\Entity\Email;
use Oro\Bundle\EmailBundle\Entity\EmailRecipient;
use Oro\Bundle\OrganizationBundle\Entity\OrganizationAwareI... | <?php
namespace Oro\Bundle\EmailBundle\EventListener;
use Symfony\Component\Security\Core\User\UserInterface;
use Oro\Bundle\SearchBundle\Event\PrepareEntityMapEvent;
use Oro\Bundle\EmailBundle\Entity\Email;
use Oro\Bundle\EmailBundle\Entity\EmailRecipient;
use Oro\Bundle\OrganizationBundle\Entity\OrganizationAwareI... | Add email owners to search index - Fix cs | BAP-3724: Add email owners to search index
- Fix cs
| PHP | mit | 2ndkauboy/platform,hugeval/platform,orocrm/platform,Djamy/platform,Djamy/platform,geoffroycochard/platform,morontt/platform,trustify/oroplatform,hugeval/platform,orocrm/platform,Djamy/platform,2ndkauboy/platform,trustify/oroplatform,trustify/oroplatform,ramunasd/platform,ramunasd/platform,morontt/platform,ramunasd/plat... | php | ## Code Before:
<?php
namespace Oro\Bundle\EmailBundle\EventListener;
use Symfony\Component\Security\Core\User\UserInterface;
use Oro\Bundle\SearchBundle\Event\PrepareEntityMapEvent;
use Oro\Bundle\EmailBundle\Entity\Email;
use Oro\Bundle\EmailBundle\Entity\EmailRecipient;
use Oro\Bundle\OrganizationBundle\Entity\Or... | <?php
namespace Oro\Bundle\EmailBundle\EventListener;
use Symfony\Component\Security\Core\User\UserInterface;
use Oro\Bundle\SearchBundle\Event\PrepareEntityMapEvent;
use Oro\Bundle\EmailBundle\Entity\Email;
use Oro\Bundle\EmailBundle\Entity\EmailRecipient;
use Oro\Bundle\OrganizationBundle\Entit... | 12 | 0.272727 | 8 | 4 |
5d93d1fb887d76d6fbe0a2f699e973ed9f6e7556 | tests/test_navigation.py | tests/test_navigation.py | def get_menu_titles(page) -> list:
page.wait_for_load_state()
menu_list = page.query_selector_all("//*[@class='toctree-wrapper compound']/ul/li/a")
return [title.as_element().inner_text() for title in menu_list]
flag = True
def test_check_titles(page):
global flag
if(flag):
page.goto("i... | def get_menu_titles(page) -> list:
page.wait_for_load_state()
menu_list = page.query_selector_all("//*[@class='toctree-wrapper compound']/ul/li/a")
return [title.as_element().inner_text() for title in menu_list]
flag = True
def test_check_titles(page):
global flag
if(flag):
page.goto("i... | Delete debug comments and tool | Delete debug comments and tool
| Python | agpl-3.0 | PyAr/PyZombis,PyAr/PyZombis,PyAr/PyZombis | python | ## Code Before:
def get_menu_titles(page) -> list:
page.wait_for_load_state()
menu_list = page.query_selector_all("//*[@class='toctree-wrapper compound']/ul/li/a")
return [title.as_element().inner_text() for title in menu_list]
flag = True
def test_check_titles(page):
global flag
if(flag):
... | def get_menu_titles(page) -> list:
page.wait_for_load_state()
menu_list = page.query_selector_all("//*[@class='toctree-wrapper compound']/ul/li/a")
return [title.as_element().inner_text() for title in menu_list]
flag = True
def test_check_titles(page):
global flag
if(f... | 5 | 0.151515 | 0 | 5 |
02d30d653afc6f6fa4c93c4b868a0771a090beb0 | requirements-dev.txt | requirements-dev.txt | coverage==4.0.3
coveralls==0.5
flake8==2.5.2
flake8-docstrings==0.2.4
flake8-quotes==0.2.4
httmock==1.2.4
lxml==3.4.4
mccabe==0.4.0
mock==1.3.0
pep257==0.7.0
pep8-naming==0.2.2
Sphinx==1.3.5
sphinx-rtd-theme==0.1.9
| coverage==4.1.0
coveralls==0.5
flake8==2.5.4
flake8-docstrings==0.2.6
flake8-quotes==0.2.4
httmock==1.2.5
lxml==3.4.4
mock==2.0.0
mccabe==0.4.0
pep257==0.7.0
pep8-naming==0.2.2
Sphinx==1.4.2
sphinx-rtd-theme==0.1.9
| Upgrade package development requirements to match upstream Girder | Upgrade package development requirements to match upstream Girder
Coverage changes at:
http://coverage.readthedocs.io/en/coverage-4.1/changes.html#version-4-1b-2016-05-21
Flake8 changes at:
https://flake8.readthedocs.io/en/latest/changes.html
Flake8-Docstrings changes at:
https://gitlab.com/pycqa/flake8-docstrings/b... | Text | apache-2.0 | girder/girder_worker,girder/girder_worker,girder/girder_worker | text | ## Code Before:
coverage==4.0.3
coveralls==0.5
flake8==2.5.2
flake8-docstrings==0.2.4
flake8-quotes==0.2.4
httmock==1.2.4
lxml==3.4.4
mccabe==0.4.0
mock==1.3.0
pep257==0.7.0
pep8-naming==0.2.2
Sphinx==1.3.5
sphinx-rtd-theme==0.1.9
## Instruction:
Upgrade package development requirements to match upstream Girder
Cover... | - coverage==4.0.3
? --
+ coverage==4.1.0
? ++
coveralls==0.5
- flake8==2.5.2
? ^
+ flake8==2.5.4
? ^
- flake8-docstrings==0.2.4
? ^
+ flake8-docstrings==0.2.6
? ^
flake8-quotes==0.2.4
- httmock==1.2.4
? ... | 12 | 0.923077 | 6 | 6 |
52b1d4afe955fcc057232d66b1a9b1f8aabbc42f | src/test/dutch.spec.ts | src/test/dutch.spec.ts | import {expect} from 'chai';
import * as cspell from '../index';
import * as path from 'path';
import * as fsp from 'fs-extra';
import * as dutchDict from 'cspell-dict-nl-nl';
import * as util from '../util/util';
const sampleFilename = path.join(__dirname, '..', '..', 'samples', 'Dutch.txt');
const sampleFile = fsp.r... | import {expect} from 'chai';
import * as cspell from '../index';
import * as path from 'path';
import * as fsp from 'fs-extra';
import * as dutchDict from 'cspell-dict-nl-nl';
import * as util from '../util/util';
const sampleFilename = path.join(__dirname, '..', '..', 'samples', 'Dutch.txt');
const sampleFile = fsp.r... | Update the timeout for the dutch test. | Update the timeout for the dutch test.
| TypeScript | mit | Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell | typescript | ## Code Before:
import {expect} from 'chai';
import * as cspell from '../index';
import * as path from 'path';
import * as fsp from 'fs-extra';
import * as dutchDict from 'cspell-dict-nl-nl';
import * as util from '../util/util';
const sampleFilename = path.join(__dirname, '..', '..', 'samples', 'Dutch.txt');
const sa... | import {expect} from 'chai';
import * as cspell from '../index';
import * as path from 'path';
import * as fsp from 'fs-extra';
import * as dutchDict from 'cspell-dict-nl-nl';
import * as util from '../util/util';
const sampleFilename = path.join(__dirname, '..', '..', 'samples', 'Dutch.txt');
const ... | 4 | 0.142857 | 3 | 1 |
182519caadf2bfbd05bf90858b1e3926e4e34fbd | package.json | package.json | {
"name": "placard-wrapper",
"description": "A wrapper of Placard, a Portuguese online gambling system. The idea of this application is to provide a better user-experience.",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
"history": "^4.6.3",... | {
"name": "placard-wrapper",
"description": "A wrapper of Placard, a Portuguese online gambling system. The idea of this application is to provide a better user-experience.",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
... | Bump major version: changes in the data stored. | Bump major version: changes in the data stored.
| JSON | mit | LuisLoureiro/placard-wrapper | json | ## Code Before:
{
"name": "placard-wrapper",
"description": "A wrapper of Placard, a Portuguese online gambling system. The idea of this application is to provide a better user-experience.",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
"his... | {
"name": "placard-wrapper",
"description": "A wrapper of Placard, a Portuguese online gambling system. The idea of this application is to provide a better user-experience.",
+ "version": "1.0.0",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-run... | 1 | 0.05 | 1 | 0 |
9b89d9fb530ff5604319766493edacf43a6f55b3 | GTProgressBar/Classes/GTProgressBar.swift | GTProgressBar/Classes/GTProgressBar.swift | //
// GTProgressBar.swift
// Pods
//
// Created by Grzegorz Tatarzyn on 19/09/2016.
//
//
import UIKit
public class GTProgressBar: UIView {
private let backgroundView = UIView()
private let fillView = UIView()
private let backgroundViewBorder: CGFloat = 2
private let backgroundViewBorderColor: UICo... | //
// GTProgressBar.swift
// Pods
//
// Created by Grzegorz Tatarzyn on 19/09/2016.
//
//
import UIKit
public class GTProgressBar: UIView {
private let backgroundView = UIView()
private let fillView = UIView()
private let backgroundViewBorder: CGFloat = 2
private let backgroundViewBorderColor: UICo... | Move setup of each of the child views to separate methods. | Move setup of each of the child views to separate methods.
| Swift | mit | gregttn/GTProgressBar,gregttn/GTProgressBar | swift | ## Code Before:
//
// GTProgressBar.swift
// Pods
//
// Created by Grzegorz Tatarzyn on 19/09/2016.
//
//
import UIKit
public class GTProgressBar: UIView {
private let backgroundView = UIView()
private let fillView = UIView()
private let backgroundViewBorder: CGFloat = 2
private let backgroundViewB... | //
// GTProgressBar.swift
// Pods
//
// Created by Grzegorz Tatarzyn on 19/09/2016.
//
//
import UIKit
public class GTProgressBar: UIView {
private let backgroundView = UIView()
private let fillView = UIView()
private let backgroundViewBorder: CGFloat = 2
private let b... | 9 | 0.2 | 8 | 1 |
9944bd62cb33aa24b6a69d4288283ec16db6cc84 | check_bts_seeds.sh | check_bts_seeds.sh |
BRANCH=master
if [ -n "$1" ]; then
BRANCH=$1
fi
if [ "${BRANCH}" == "testnet" ]; then
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/seed-nodes-testnet.txt
else
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/... |
BRANCH=master
if [ -n "$1" ]; then
BRANCH=$1
fi
if [ "${BRANCH}" == "testnet" ]; then
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/seed-nodes-testnet.txt
else
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/... | Fix seed file process and NUL byte issue, reformat | Fix seed file process and NUL byte issue, reformat | Shell | unlicense | abitmore/btstools,abitmore/btstools | shell | ## Code Before:
BRANCH=master
if [ -n "$1" ]; then
BRANCH=$1
fi
if [ "${BRANCH}" == "testnet" ]; then
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/seed-nodes-testnet.txt
else
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/lib... |
BRANCH=master
if [ -n "$1" ]; then
BRANCH=$1
fi
if [ "${BRANCH}" == "testnet" ]; then
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/seed-nodes-testnet.txt
else
seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}... | 9 | 0.257143 | 5 | 4 |
f9a7d5815780435e12c4721059ca8939372c716a | app/views/my_modules/_card_due_date_label.html.erb | app/views/my_modules/_card_due_date_label.html.erb | <% if my_module.completed? %>
<%= t("my_modules.states.completed") %>
<span class="due-date-label">
<%= l(my_module.completed_on.utc, format: :full_date) %>
<span class="fas fa-check"></span>
</span>
<% elsif my_module.is_one_day_prior? %>
<%= t("my_modules.states.due_soon") %>
<span class="due-date-l... | <% if my_module.completed? %>
<%= t('my_modules.states.completed') %>
<span class="due-date-label">
<%= l(my_module.completed_on, format: :full_date) %>
<span class="fas fa-check"></span>
</span>
<% elsif my_module.is_one_day_prior? %>
<%= t('my_modules.states.due_soon') %>
<span class="due-date-label... | Fix due dates on task cards in the canvas | Fix due dates on task cards in the canvas [SCI-4487]
| HTML+ERB | mpl-2.0 | mlorb/scinote-web,mlorb/scinote-web,mlorb/scinote-web | html+erb | ## Code Before:
<% if my_module.completed? %>
<%= t("my_modules.states.completed") %>
<span class="due-date-label">
<%= l(my_module.completed_on.utc, format: :full_date) %>
<span class="fas fa-check"></span>
</span>
<% elsif my_module.is_one_day_prior? %>
<%= t("my_modules.states.due_soon") %>
<span c... | <% if my_module.completed? %>
- <%= t("my_modules.states.completed") %>
? ^ ^
+ <%= t('my_modules.states.completed') %>
? ^ ^
<span class="due-date-label">
- <%= l(my_module.completed_on.utc, format: :full_date) %>
? ... | 20 | 0.689655 | 10 | 10 |
2aea738a2edf89ef972287c38d527784603e2690 | Cargo.toml | Cargo.toml | [package]
name = "rotting13-bot"
version = "1.0.0"
authors = ["Bocom"]
[dependencies.websocket]
version = "0.17"
[dependencies.discord]
default_features = false
git = "https://github.com/SpaceManiac/discord-rs" | [package]
name = "rotting13-bot"
version = "1.0.0"
authors = ["Bocom"]
[dependencies.websocket]
version = "0.17"
[dependencies.discord]
default_features = false
git = "https://github.com/Bocom/discord-rs" | Switch to my fork of discord-rs. Temporary measure until my pull-request is merged. | Switch to my fork of discord-rs.
Temporary measure until my pull-request is merged.
| TOML | mit | Bocom/the-rotting-13 | toml | ## Code Before:
[package]
name = "rotting13-bot"
version = "1.0.0"
authors = ["Bocom"]
[dependencies.websocket]
version = "0.17"
[dependencies.discord]
default_features = false
git = "https://github.com/SpaceManiac/discord-rs"
## Instruction:
Switch to my fork of discord-rs.
Temporary measure until my pull-request is... | [package]
name = "rotting13-bot"
version = "1.0.0"
authors = ["Bocom"]
[dependencies.websocket]
version = "0.17"
[dependencies.discord]
default_features = false
- git = "https://github.com/SpaceManiac/discord-rs"
? ^^^ ^^^^^^^
+ git = "https://github.com/Bocom/discord-rs... | 2 | 0.181818 | 1 | 1 |
5e55b947004b261551828ca649aca9c223bc90ff | src/views/Tutorial.test.js | src/views/Tutorial.test.js | /* eslint-env jest */
import { visit } from './testUtils'
describe('Tutorial page', () => {
it('loads in /tutorial', async () => {
const page = visit('/tutorial')
const text = await page.evaluate(() => document.body.textContent).end()
expect(text).not.toContain('Page not found')
})
it('has a youtu... | /* eslint-env jest */
import { visit } from './testUtils'
describe('Tutorial page', () => {
it('loads in /tutorial', async () => {
const page = visit('/tutorial')
const text = await page.evaluate(() => document.body.textContent).end()
expect(text).not.toContain('Page not found')
})
it('has a youtu... | Test that the video is centered | Test that the video is centered
By actually comparing the positioning aganist the size of the viewport,
so not checking some specific css or styling.
| JavaScript | mit | fus-marcom/resource-center,planigan/resource-center,fus-marcom/resource-center,planigan/resource-center | javascript | ## Code Before:
/* eslint-env jest */
import { visit } from './testUtils'
describe('Tutorial page', () => {
it('loads in /tutorial', async () => {
const page = visit('/tutorial')
const text = await page.evaluate(() => document.body.textContent).end()
expect(text).not.toContain('Page not found')
})
... | /* eslint-env jest */
import { visit } from './testUtils'
describe('Tutorial page', () => {
it('loads in /tutorial', async () => {
const page = visit('/tutorial')
const text = await page.evaluate(() => document.body.textContent).end()
expect(text).not.toContain('Page not found')
... | 25 | 0.925926 | 25 | 0 |
7fa91bfd3ca4ff3ed83bedcdde5d06980d60c33e | app.json | app.json | {
"name":"poradnia",
"scripts":{
"postdeploy":"python poradnia/manage.py migrate"
},
"env":{
"DJANGO_CONFIGURATION":{
"required":true
},
"DJANGO_EMAIL_HOST_PASSWORD":{
"required":true
},
"DJANGO_EMAIL_HOST_USER":{
"required":true
},
"DJANGO_SECRET_KEY":{
"... | {
"name":"poradnia",
"scripts":{
"postdeploy":"python poradnia/manage.py migrate; echo \"from users.models import User; u, _=User.objects.get_or_create(username='admin', defaults={'email':'admin@example.com', 'is_superuser':True, 'is_staff':True}); u.set_password('admin'); print (u, u.pk); u.save(); print (u, u... | Add default admin for heroku autodeploy | Add default admin for heroku autodeploy
| JSON | mit | watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia.siecobywatelska.pl,watchdogpolska/poradnia,rwakulszowa/poradnia | json | ## Code Before:
{
"name":"poradnia",
"scripts":{
"postdeploy":"python poradnia/manage.py migrate"
},
"env":{
"DJANGO_CONFIGURATION":{
"required":true
},
"DJANGO_EMAIL_HOST_PASSWORD":{
"required":true
},
"DJANGO_EMAIL_HOST_USER":{
"required":true
},
"DJANGO_SECRE... | {
"name":"poradnia",
"scripts":{
- "postdeploy":"python poradnia/manage.py migrate"
+ "postdeploy":"python poradnia/manage.py migrate; echo \"from users.models import User; u, _=User.objects.get_or_create(username='admin', defaults={'email':'admin@example.com', 'is_superuser':True, 'is_staff':True}); ... | 2 | 0.040816 | 1 | 1 |
6511e418d8fc07603183dd8473150cca2a482a61 | README.rst | README.rst | ============
GeoAlchemy 2
============
.. image:: https://travis-ci.org/geoalchemy/geoalchemy2.png?branch=master
:target: http://travis-ci.org/#!/geoalchemy/geoalchemy2
.. image:: https://coveralls.io/repos/geoalchemy/geoalchemy2/badge.png?branch=master
:target: https://coveralls.io/r/geoalchemy/geoalchemy2
..... | ============
GeoAlchemy 2
============
.. image:: https://travis-ci.org/geoalchemy/geoalchemy2.png?branch=master
:target: http://travis-ci.org/#!/geoalchemy/geoalchemy2
.. image:: https://coveralls.io/repos/geoalchemy/geoalchemy2/badge.png?branch=master
:target: https://coveralls.io/r/geoalchemy/geoalchemy2
..... | Convert readthedocs links for their .org -> .io migration for hosted projects | Convert readthedocs links for their .org -> .io migration for hosted projects
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on rea... | reStructuredText | mit | geoalchemy/geoalchemy2 | restructuredtext | ## Code Before:
============
GeoAlchemy 2
============
.. image:: https://travis-ci.org/geoalchemy/geoalchemy2.png?branch=master
:target: http://travis-ci.org/#!/geoalchemy/geoalchemy2
.. image:: https://coveralls.io/repos/geoalchemy/geoalchemy2/badge.png?branch=master
:target: https://coveralls.io/r/geoalchemy... | ============
GeoAlchemy 2
============
.. image:: https://travis-ci.org/geoalchemy/geoalchemy2.png?branch=master
:target: http://travis-ci.org/#!/geoalchemy/geoalchemy2
.. image:: https://coveralls.io/repos/geoalchemy/geoalchemy2/badge.png?branch=master
:target: https://coveralls.io/r/geoalche... | 4 | 0.222222 | 2 | 2 |
63721f91fbbc7bd3c87880107ac9e9a7b0d4116b | backend/app/views/spree/admin/shared/_locale_selection.html.erb | backend/app/views/spree/admin/shared/_locale_selection.html.erb | <div class="admin-locale-selection">
<% available_locales = Spree.i18n_available_locales %>
<% if available_locales.size > 1 %>
<select class="js-locale-selection custom-select fullwidth">
<%=
options_for_select(
available_locales.map do |locale|
[I18n.t('spree.i18n.this_file... | <% available_locales = Spree.i18n_available_locales %>
<% if available_locales.size > 1 %>
<div class="admin-locale-selection">
<select class="js-locale-selection custom-select fullwidth">
<%=
options_for_select(
available_locales.map do |locale|
[I18n.t('spree.i18n.this_file_l... | Move locale selection div inside if statement | Move locale selection div inside if statement
| HTML+ERB | bsd-3-clause | pervino/solidus,pervino/solidus,pervino/solidus,pervino/solidus | html+erb | ## Code Before:
<div class="admin-locale-selection">
<% available_locales = Spree.i18n_available_locales %>
<% if available_locales.size > 1 %>
<select class="js-locale-selection custom-select fullwidth">
<%=
options_for_select(
available_locales.map do |locale|
[I18n.t('spre... | - <div class="admin-locale-selection">
- <% available_locales = Spree.i18n_available_locales %>
? --
+ <% available_locales = Spree.i18n_available_locales %>
- <% if available_locales.size > 1 %>
? --
+ <% if available_locales.size > 1 %>
+ <div class="admin-locale-selection">
<select class="js-locale-sel... | 10 | 0.666667 | 5 | 5 |
01b261dc54580851181efdf7f08fadfd73d58fc5 | db/migrate/20170814214010_add_description_to_issues.rb | db/migrate/20170814214010_add_description_to_issues.rb |
class AddDescriptionToIssues < ActiveRecord::Migration[5.1]
def change
add_column :issues, :description_translations, :jsonb
Issue.update_all(description_translations: { "en": "Description", "es": "Descripción" })
end
end
|
class AddDescriptionToIssues < ActiveRecord::Migration[5.1]
def change
add_column :issues, :description_translations, :jsonb
end
end
| Remove old model from migration | Remove old model from migration
| Ruby | agpl-3.0 | PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto | ruby | ## Code Before:
class AddDescriptionToIssues < ActiveRecord::Migration[5.1]
def change
add_column :issues, :description_translations, :jsonb
Issue.update_all(description_translations: { "en": "Description", "es": "Descripción" })
end
end
## Instruction:
Remove old model from migration
## Code After:
cla... |
class AddDescriptionToIssues < ActiveRecord::Migration[5.1]
def change
add_column :issues, :description_translations, :jsonb
- Issue.update_all(description_translations: { "en": "Description", "es": "Descripción" })
end
end | 1 | 0.142857 | 0 | 1 |
c9003940c583a19861c1dff20498aa4c6aae1efb | scikits/crab/tests/test_base.py | scikits/crab/tests/test_base.py |
# Authors: Marcel Caraciolo <marcel@muricoca.com>
# Bruno Melo <bruno@muricoca.com>
# License: BSD Style.
import unittest
import sys
sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba')
from base import BaseRecommender
#test classes
class MyRecommender(BaseRecommender):
d... |
# Authors: Marcel Caraciolo <marcel@muricoca.com>
# Bruno Melo <bruno@muricoca.com>
# License: BSD Style.
import unittest
from base import BaseRecommender
#test classes
class MyRecommender(BaseRecommender):
def __init__(self,model):
BaseRecommender.__init__(self,model)
###################... | Fix the test removing paths. | Fix the test removing paths.
| Python | bsd-3-clause | Lawrence-Liu/crab,muricoca/crab,hi2srihari/crab,echogreens/crab,muricoca/crab,augustoppimenta/crab,imouren/crab,rcarmo/crab,Flowerowl/Crab,wnyc/crab,wnyc/crab | python | ## Code Before:
# Authors: Marcel Caraciolo <marcel@muricoca.com>
# Bruno Melo <bruno@muricoca.com>
# License: BSD Style.
import unittest
import sys
sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba')
from base import BaseRecommender
#test classes
class MyRecommender(BaseRec... |
# Authors: Marcel Caraciolo <marcel@muricoca.com>
# Bruno Melo <bruno@muricoca.com>
# License: BSD Style.
import unittest
- import sys
-
- sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba')
from base import BaseRecommender
#test classes
class MyRecom... | 3 | 0.103448 | 0 | 3 |
01c9a6508cc552ec4f5d6c5bcab94d2ec6c85a13 | lib/negative-settings.js | lib/negative-settings.js | 'use strict';
const { app } = require('electron');
const fs = require('fs');
const path = require('path');
module.exports = {
init(callback) {
this.settingsFilePath = path.join(app.getPath('userData'), 'settings.json');
fs.readFile(this.settingsFilePath, (err, result) => {
if (err) {
this.setti... | 'use strict';
const { app } = require('electron');
const fs = require('fs');
const path = require('path');
const { NEGATIVE_SETTINGS_PATH } = process.env;
module.exports = {
init(callback) {
const testSettingsFilePath = NEGATIVE_SETTINGS_PATH && path.resolve(__dirname, NEGATIVE_SETTINGS_PATH);
this.s... | Allow modifying settings path through env var. | Allow modifying settings path through env var.
| JavaScript | mit | atdrago/negative,atdrago/negative,atdrago/negative | javascript | ## Code Before:
'use strict';
const { app } = require('electron');
const fs = require('fs');
const path = require('path');
module.exports = {
init(callback) {
this.settingsFilePath = path.join(app.getPath('userData'), 'settings.json');
fs.readFile(this.settingsFilePath, (err, result) => {
if (err) ... | 'use strict';
const { app } = require('electron');
const fs = require('fs');
const path = require('path');
+ const { NEGATIVE_SETTINGS_PATH } = process.env;
+
module.exports = {
init(callback) {
+ const testSettingsFilePath = NEGATIVE_SETTINGS_PATH && path.resolve(__dirname, NEGATIVE_SETTI... | 6 | 0.157895 | 5 | 1 |
6a0ff187c6791cadedcef119b5170c7b0787408e | Cargo.toml | Cargo.toml | [package]
name = "seax"
version = "0.0.2"
authors = ["Hawk Weisman <hi@hawkweisman.me>"]
description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine."
license = "MIT"
homepage = "http://hawkweisman.me/seax"
repository = "https://github.com/hawkw/seax"
read... | [package]
name = "seax"
version = "0.0.2"
authors = ["Hawk Weisman <hi@hawkweisman.me>"]
description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine."
license = "MIT"
homepage = "http://hawkweisman.me/seax"
repository = "https://github.com/hawkw/seax"
read... | Put QuickCheck in root crate's dev deps | Put QuickCheck in root crate's dev deps
| TOML | mit | hawkw/seax,hawkw/seax | toml | ## Code Before:
[package]
name = "seax"
version = "0.0.2"
authors = ["Hawk Weisman <hi@hawkweisman.me>"]
description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine."
license = "MIT"
homepage = "http://hawkweisman.me/seax"
repository = "https://github.com/... | [package]
name = "seax"
version = "0.0.2"
authors = ["Hawk Weisman <hi@hawkweisman.me>"]
description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine."
license = "MIT"
homepage = "http://hawkweisman.me/seax"
repository = "https://github.co... | 3 | 0.12 | 3 | 0 |
68ee85bfbe68d3f159c640c55b3bf92a8fa6ec8a | metadater.rb | metadater.rb | require 'rubygems' # When running under 1.8. Who knows?
require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mini_exiftool' # Capture software metadata from video. Requires ExifTool
# require 'spreadsheet' Spreadsheet output not implemented yet
require 'xmlsimple' # ... | require 'rubygems' # When running under 1.8. Who knows?
require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mini_exiftool' # Capture software metadata from video. Requires ExifTool
# require 'spreadsheet' Spreadsheet output not implemented yet
require 'xmlsimple' # ... | Remove reference to deleted lib | Remove reference to deleted lib
| Ruby | bsd-2-clause | mistydemeo/metadater | ruby | ## Code Before:
require 'rubygems' # When running under 1.8. Who knows?
require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mini_exiftool' # Capture software metadata from video. Requires ExifTool
# require 'spreadsheet' Spreadsheet output not implemented yet
require 'x... | require 'rubygems' # When running under 1.8. Who knows?
require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mini_exiftool' # Capture software metadata from video. Requires ExifTool
# require 'spreadsheet' Spreadsheet output not implemented yet
require 'xmlsi... | 1 | 0.029412 | 0 | 1 |
bbe793af5bce16775dd0259eaa70a0d8aef7acb3 | .github/workflows/sourcehutmanifests/freebsd.yml | .github/workflows/sourcehutmanifests/freebsd.yml | image: freebsd/latest
packages:
- alsa-lib
- glfw
- libxcursor
- libxi
- libxinerama
- libxrandr
- mesa-libs
- go
- pkgconf
sources:
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
tasks:
- build: |
cd ebiten
go build -tags=example ./...
| image: freebsd/latest
packages:
- alsa-lib
- glfw
- libxcursor
- libxi
- libxinerama
- libxrandr
- mesa-libs
- pkgconf
- go
sources:
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
tasks:
- build: |
cd ebiten
go build -tags=example ./...
| Fix the library order for consistency | .github/workflows/sourcehutmanifests: Fix the library order for consistency
| YAML | apache-2.0 | hajimehoshi/ebiten,hajimehoshi/ebiten | yaml | ## Code Before:
image: freebsd/latest
packages:
- alsa-lib
- glfw
- libxcursor
- libxi
- libxinerama
- libxrandr
- mesa-libs
- go
- pkgconf
sources:
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
tasks:
- build: |
cd ebiten
go build -tags=example ./...
## Instruction:
.github/wor... | image: freebsd/latest
packages:
- alsa-lib
- glfw
- libxcursor
- libxi
- libxinerama
- libxrandr
- mesa-libs
+ - pkgconf
- go
- - pkgconf
sources:
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
tasks:
- build: |
cd ebiten
go build -tags=example ./... | 2 | 0.117647 | 1 | 1 |
ffaa2b98305c7a1368587cdb30724a7cabbe3237 | glitch/apikeys_sample.py | glitch/apikeys_sample.py |
db_connect_string = ""
cookie_monster = "llsfZyohQDa4kRdCCqnoV3gpD8jaHUY0kfkKI3pZlZ4="
# in Python you can generate like this:
# import base64
# import uuid
# print(base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes))
# Thanks to https://gist.github.com/didip/823887
# Alternative way to generate a similar-length... |
db_connect_string = ""
cookie_monster = "uqHHRiRIUyCIcB0RJJcv+T/Qc3wJS0p/jsyE1x36qBIa"
# Generated like this:
# import base64, os; print(base64.b64encode(os.urandom(33)))
# These settings are used only for the sending of emails. The server will
# start with them at the defaults, but all email sending will fail.
syste... | Drop the UUID; just use urandom | Drop the UUID; just use urandom
| Python | artistic-2.0 | Rosuav/appension,Rosuav/appension,MikeiLL/appension,Rosuav/appension,Rosuav/appension,MikeiLL/appension,MikeiLL/appension,MikeiLL/appension | python | ## Code Before:
db_connect_string = ""
cookie_monster = "llsfZyohQDa4kRdCCqnoV3gpD8jaHUY0kfkKI3pZlZ4="
# in Python you can generate like this:
# import base64
# import uuid
# print(base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes))
# Thanks to https://gist.github.com/didip/823887
# Alternative way to generate ... |
db_connect_string = ""
+ cookie_monster = "uqHHRiRIUyCIcB0RJJcv+T/Qc3wJS0p/jsyE1x36qBIa"
+ # Generated like this:
- cookie_monster = "llsfZyohQDa4kRdCCqnoV3gpD8jaHUY0kfkKI3pZlZ4="
- # in Python you can generate like this:
- # import base64
- # import uuid
- # print(base64.b64encode(uuid.uuid4().bytes + uuid.uuid4(... | 9 | 0.473684 | 2 | 7 |
ad707af19fbf5084a8e34957698e28d0e4892f64 | .travis.yml | .travis.yml | language: php
sudo: false
php:
- "5.5"
- "5.6"
- "7"
- "hhvm"
matrix:
include:
- php: "5.5"
env: CHECKSTYLE="YES" COVERAGE="YES"
allow_failures:
- php: "7"
- php: "hhvm"
install: composer install
script: phpunit
| language: php
sudo: false
php:
- "5.5"
- "5.6"
- "7"
- "hhvm"
matrix:
allow_failures:
- php: "7"
- php: "hhvm"
install: composer install
script: phpunit
| Remove ENV from build configuration | [TASK] Remove ENV from build configuration
| YAML | mit | NamelessCoder/numerolog | yaml | ## Code Before:
language: php
sudo: false
php:
- "5.5"
- "5.6"
- "7"
- "hhvm"
matrix:
include:
- php: "5.5"
env: CHECKSTYLE="YES" COVERAGE="YES"
allow_failures:
- php: "7"
- php: "hhvm"
install: composer install
script: phpunit
## Instruction:
[TASK] Remove ENV from build configurati... | language: php
sudo: false
php:
- "5.5"
- "5.6"
- "7"
- "hhvm"
matrix:
- include:
- - php: "5.5"
- env: CHECKSTYLE="YES" COVERAGE="YES"
allow_failures:
- php: "7"
- php: "hhvm"
install: composer install
script: phpunit | 3 | 0.142857 | 0 | 3 |
e6c2271bc9b4de99c56b6023033ba54d3ec0ded8 | src/Essence/Essence.php | src/Essence/Essence.php | <?php namespace Essence;
use Closure;
class Essence
{
/**
* @var array
*/
protected $configuration = [
"exception" => "Essence\Exceptions\AssertionException",
];
/**
* @var array
*/
protected $defaultConfiguration;
/**
* @return Essence
*/
public fu... | <?php namespace Essence;
use Closure;
class Essence
{
/**
* @var array
*/
protected $configuration = [
"exception" => "Essence\Exceptions\AssertionException",
];
/**
* @var array
*/
protected $defaultConfiguration;
/**
* @var AssertionBuilder
*/
pro... | Use __destruct to validate implicitly. | Use __destruct to validate implicitly.
| PHP | mit | bound1ess/essence | php | ## Code Before:
<?php namespace Essence;
use Closure;
class Essence
{
/**
* @var array
*/
protected $configuration = [
"exception" => "Essence\Exceptions\AssertionException",
];
/**
* @var array
*/
protected $defaultConfiguration;
/**
* @return Essence
... | <?php namespace Essence;
use Closure;
class Essence
{
/**
* @var array
*/
protected $configuration = [
"exception" => "Essence\Exceptions\AssertionException",
];
/**
* @var array
*/
protected $defaultConfiguration;
/**
+ ... | 21 | 0.318182 | 20 | 1 |
1cf354d834fbb81260c88718c57533a546fc9dfa | src/robots/actions/attitudes.py | src/robots/actions/attitudes.py | import logging; logger = logging.getLogger("robot." + __name__)
from robots.exception import RobotError
from robots.actions.look_at import sweep
from robots.action import *
###############################################################################
@action
def sorry(robot, speed = 0.5):
return sweep(robot,... | import logging; logger = logging.getLogger("robot." + __name__)
import random
from robots.exception import RobotError
from robots.lowlevel import *
from robots.actions.look_at import sweep
from robots.action import *
###############################################################################
@action
@workswit... | Update the knowledge base according to the emotion | [actions/attitude] Update the knowledge base according to the emotion
| Python | isc | chili-epfl/pyrobots,chili-epfl/pyrobots-nao | python | ## Code Before:
import logging; logger = logging.getLogger("robot." + __name__)
from robots.exception import RobotError
from robots.actions.look_at import sweep
from robots.action import *
###############################################################################
@action
def sorry(robot, speed = 0.5):
ret... | import logging; logger = logging.getLogger("robot." + __name__)
+
+ import random
from robots.exception import RobotError
+ from robots.lowlevel import *
from robots.actions.look_at import sweep
from robots.action import *
#############################################################################... | 53 | 3.785714 | 51 | 2 |
6aaddc1833ae2ff9731638f3a6658a6538d9a652 | ESNotification/NotificationObjC.swift | ESNotification/NotificationObjC.swift | //
// NotificationObjC.swift
// ESNotification
//
// Created by Tomohiro Kumagai on H27/10/15.
// Copyright © 平成27年 EasyStyle G.K. All rights reserved.
//
import Foundation
extension NSNotificationCenter {
public func addObserver(observer: AnyObject, selector aSelector: Selector, ESNotification notification: N... | //
// NotificationObjC.swift
// ESNotification
//
// Created by Tomohiro Kumagai on H27/10/15.
// Copyright © 平成27年 EasyStyle G.K. All rights reserved.
//
import Foundation
extension NSNotificationCenter {
public static func ESNotificationNameOf(notification: NotificationProtocol.Type) -> String {
return ... | Add `removeObserver` method and `ESNotificationNameOf` method to `NSNotificationCenter`. | Add `removeObserver` method and `ESNotificationNameOf` method to `NSNotificationCenter`.
| Swift | mit | EZ-NET/ESNotification,EZ-NET/ESNotification | swift | ## Code Before:
//
// NotificationObjC.swift
// ESNotification
//
// Created by Tomohiro Kumagai on H27/10/15.
// Copyright © 平成27年 EasyStyle G.K. All rights reserved.
//
import Foundation
extension NSNotificationCenter {
public func addObserver(observer: AnyObject, selector aSelector: Selector, ESNotification... | //
// NotificationObjC.swift
// ESNotification
//
// Created by Tomohiro Kumagai on H27/10/15.
// Copyright © 平成27年 EasyStyle G.K. All rights reserved.
//
import Foundation
extension NSNotificationCenter {
+ public static func ESNotificationNameOf(notification: NotificationProtocol.Type... | 16 | 0.727273 | 15 | 1 |
556c00626630cf089f5bffc1d51473b11c8d8cb9 | _licenses/wtfpl.txt | _licenses/wtfpl.txt | ---
title: "Do What The F*ck You Want To Public License"
spdx-id: WTFPL
source: http://www.wtfpl.net/
description: The easiest license out there. It gives the user permissions to do whatever they want with your code.
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and ... | ---
title: "Do What The F*ck You Want To Public License"
spdx-id: WTFPL
source: http://www.wtfpl.net/
description: The easiest license out there. It gives the user permissions to do whatever they want with your code.
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and ... | Fix copyright line, which pertains to the license itself | Fix copyright line, which pertains to the license itself
See http://www.wtfpl.net/faq/ | Text | mit | github/choosealicense.com,github/choosealicense.com,eogas/choosealicense.com,eogas/choosealicense.com,github/choosealicense.com,eogas/choosealicense.com | text | ## Code Before:
---
title: "Do What The F*ck You Want To Public License"
spdx-id: WTFPL
source: http://www.wtfpl.net/
description: The easiest license out there. It gives the user permissions to do whatever they want with your code.
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your ... | ---
title: "Do What The F*ck You Want To Public License"
spdx-id: WTFPL
source: http://www.wtfpl.net/
description: The easiest license out there. It gives the user permissions to do whatever they want with your code.
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your ... | 2 | 0.058824 | 1 | 1 |
aba23cf821489971d9ec13c8fc4cc1dfbaba686d | setup.py | setup.py | from os.path import abspath, dirname, join, normpath
from setuptools import setup
setup(
# Basic package information:
name='django-heroku-memcacheify',
version='1.0.0',
py_modules=('memcacheify',),
# Packaging options:
zip_safe=False,
include_package_data=True,
# Package dependenci... | from os.path import abspath, dirname, join, normpath
from setuptools import setup
setup(
# Basic package information:
name='django-heroku-memcacheify',
version='1.0.0',
py_modules=('memcacheify',),
# Packaging options:
zip_safe=False,
include_package_data=True,
# Package dependenci... | Fix PyPI README.MD showing problem. | Fix PyPI README.MD showing problem.
There is a problem in the project's pypi page. To fix this I added the following line in the setup.py file:
```python
long_description_content_type='text/markdown'
``` | Python | unlicense | rdegges/django-heroku-memcacheify | python | ## Code Before:
from os.path import abspath, dirname, join, normpath
from setuptools import setup
setup(
# Basic package information:
name='django-heroku-memcacheify',
version='1.0.0',
py_modules=('memcacheify',),
# Packaging options:
zip_safe=False,
include_package_data=True,
# Pa... | from os.path import abspath, dirname, join, normpath
from setuptools import setup
setup(
# Basic package information:
name='django-heroku-memcacheify',
version='1.0.0',
py_modules=('memcacheify',),
# Packaging options:
zip_safe=False,
include_package_data=T... | 3 | 0.081081 | 2 | 1 |
df06110a88709a5d821791bd49f28803fcadeebb | gulpfile.js | gulpfile.js | /* jshint bitwise: true,
curly: true,
eqeqeq: true,
esversion: 6,
forin: true,
freeze: true,
latedef: nofunc,
noarg: true,
nocomma: true,
node: true,
nonbsp: true,
nonew: true,
plusplus: true,
... | /* jshint bitwise: true,
curly: true,
eqeqeq: true,
esversion: 6,
forin: true,
freeze: true,
latedef: nofunc,
noarg: true,
nocomma: true,
node: true,
nonbsp: true,
nonew: true,
plusplus: true,
... | Rename task callbacks to match Gulp standards | Rename task callbacks to match Gulp standards
| JavaScript | mit | ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js | javascript | ## Code Before:
/* jshint bitwise: true,
curly: true,
eqeqeq: true,
esversion: 6,
forin: true,
freeze: true,
latedef: nofunc,
noarg: true,
nocomma: true,
node: true,
nonbsp: true,
nonew: true,
plusplu... | /* jshint bitwise: true,
curly: true,
eqeqeq: true,
esversion: 6,
forin: true,
freeze: true,
latedef: nofunc,
noarg: true,
nocomma: true,
node: true,
nonbsp: true,
nonew: true,
... | 8 | 0.150943 | 4 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.