commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
c2c34da1dbd52a9a53275567a260680ba278bcea
phpcs.xml
phpcs.xml
<?xml version="1.0"?> <ruleset name="Zend Framework coding standard"> <rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/> <!-- Paths to check --> <file>src</file> <file>test</file> </ruleset>
<?xml version="1.0"?> <ruleset name="Zend Framework coding standard"> <rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/> <!-- Paths to check --> <file>src</file> <file>test</file> <exclude-pattern>src/Validator/PhoneNumber/*</exclude-pattern> <exclude-pattern>*/_files/*</exc...
Add exclude-patterns for files inside PhoneNumber and _files folders
Add exclude-patterns for files inside PhoneNumber and _files folders
XML
bsd-3-clause
zendframework/zend-i18n
xml
## Code Before: <?xml version="1.0"?> <ruleset name="Zend Framework coding standard"> <rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/> <!-- Paths to check --> <file>src</file> <file>test</file> </ruleset> ## Instruction: Add exclude-patterns for files inside PhoneNumber and _files...
7aa8eb201d51aa5800f177ce68601f51f27c52ae
src/js/health-beta/actions/index.js
src/js/health-beta/actions/index.js
import { apiRequest } from '../../common/helpers/api'; export const BETA_REGISTERING = 'BETA_REGISTERING'; export const BETA_REGISTER_SUCCESS = 'BETA_REGISTER_SUCCESS'; export const BETA_REGISTER_FAILURE = 'BETA_REGISTER_FAILURE'; export function registerBeta() { return dispatch => { dispatch({ type: BETA_REGIS...
import { apiRequest } from '../../common/helpers/api'; export const BETA_REGISTERING = 'BETA_REGISTERING'; export const BETA_REGISTER_SUCCESS = 'BETA_REGISTER_SUCCESS'; export const BETA_REGISTER_FAILURE = 'BETA_REGISTER_FAILURE'; export function registerBeta() { return dispatch => { dispatch({ type: BETA_REGIS...
Update health beta registration API request path
Update health beta registration API request path
JavaScript
cc0-1.0
department-of-veterans-affairs/vets-website,department-of-veterans-affairs/vets-website
javascript
## Code Before: import { apiRequest } from '../../common/helpers/api'; export const BETA_REGISTERING = 'BETA_REGISTERING'; export const BETA_REGISTER_SUCCESS = 'BETA_REGISTER_SUCCESS'; export const BETA_REGISTER_FAILURE = 'BETA_REGISTER_FAILURE'; export function registerBeta() { return dispatch => { dispatch({ ...
b95c3b053089bced713d482b96f4066d530531b2
src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Tabs/tab.html
src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Tabs/tab.html
<div class="tab-pane" data-ng-show="active" data-ng-class="{'is-active': active}"> <ng-transclude></ng-transclude> </div>
<div class="tab-pane tab-pane {{classes}}" data-ng-show="active" data-ng-class="{'is-active': active}"> <ng-transclude></ng-transclude> </div>
Add extra classes to pane too
Add extra classes to pane too
HTML
agpl-3.0
fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,liqd/adhocracy3.mercator,xs2maver...
html
## Code Before: <div class="tab-pane" data-ng-show="active" data-ng-class="{'is-active': active}"> <ng-transclude></ng-transclude> </div> ## Instruction: Add extra classes to pane too ## Code After: <div class="tab-pane tab-pane {{classes}}" data-ng-show="active" data-ng-class="{'is-active...
d9899f9e448b794a5f3f92e47c0f1186a69e6188
tests/Carbon/ModifyTest.php
tests/Carbon/ModifyTest.php
<?php /* * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Carbon; use Carbon\Carbon; use Tests\AbstractTestCase; class ModifyTes...
<?php /* * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Carbon; use Carbon\Carbon; use Tests\AbstractTestCase; class ModifyTes...
Add unit tests for diffInHours
Add unit tests for diffInHours
PHP
mit
kylekatarnls/Carbon,lucasmichot/Carbon,briannesbitt/Carbon,serima/Carbon
php
## Code Before: <?php /* * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Carbon; use Carbon\Carbon; use Tests\AbstractTestCase; ...
1b6368cdeb2b592f1a017992ceadd30b7aa8d60e
addons/website_embedded/templates.xml
addons/website_embedded/templates.xml
<openerp> <data> <template id="list"> <t t-call="website.layout"> <ul> <li t-foreach="objects['biuletyn']" t-as="object"> <a t-attf-href="/embedded/{{ slug(object) }}"> <t t-esc="object.name"/> ...
<openerp> <data> <template id="list"> <t t-call="website.layout"> <ul> <li t-foreach="objects['biuletyn']" t-as="object"> <a t-attf-href="/embedded/{{ slug(object) }}"> <t t-esc="object.name"/> ...
Fix for editing embed description in web builder
Fix for editing embed description in web builder
XML
agpl-3.0
ludwiktrammer/bestja,EE/bestja,ludwiktrammer/bestja,KrzysiekJ/bestja,KrzysiekJ/bestja,EE/bestja,EE/bestja,KrzysiekJ/bestja,ludwiktrammer/bestja
xml
## Code Before: <openerp> <data> <template id="list"> <t t-call="website.layout"> <ul> <li t-foreach="objects['biuletyn']" t-as="object"> <a t-attf-href="/embedded/{{ slug(object) }}"> <t t-esc="object.name"/...
b1df630e862c1dee5e9d0c20e4fbafc567044a81
_protected/framework/Layout/Tpl/Engine/PH7Tpl/Syntax/Syntax.class.php
_protected/framework/Layout/Tpl/Engine/PH7Tpl/Syntax/Syntax.class.php
<?php /*************************************************************************** * @author Pierre-Henry Soria <ph7software@gmail.com> * @category PH7 Template Engine * @package PH7 / Framework / Layout / Tpl / Engine / PH7Tpl / Syntax * @copyright (c) 2018, Pierre-Henry Soria. Al...
<?php /*************************************************************************** * @author Pierre-Henry Soria <ph7software@gmail.com> * @category PH7 Template Engine * @package PH7 / Framework / Layout / Tpl / Engine / PH7Tpl / Syntax * @copyright (c) 2018, Pierre-Henry Soria. Al...
Add (helpful) comments to docBlocks
Add (helpful) comments to docBlocks
PHP
mit
pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS
php
## Code Before: <?php /*************************************************************************** * @author Pierre-Henry Soria <ph7software@gmail.com> * @category PH7 Template Engine * @package PH7 / Framework / Layout / Tpl / Engine / PH7Tpl / Syntax * @copyright (c) 2018, Pierre...
152c3963d5c4543457bec910e84b7b613f2c32d3
fish/install.sh
fish/install.sh
if [ "$(uname -s)" == "Darwin" ]; then brew install fish # Add fish to standard shells echo "/usr/local/bin/fish" | sudo tee -a /etc/shells # Make fish your default shell chsh -s /usr/local/bin/fish if ! [ -d "$HOME/.config" ]; then mkdir "$HOME/.config" fi if ! [ -d "$HOME/.config/fish" ]; the...
if [ "$(uname -s)" == "Darwin" ]; then if ! command -v fish >/dev/null 2>&1; then brew install fish fi # Add fish to standard shells echo "/usr/local/bin/fish" | sudo tee -a /etc/shells # Make fish your default shell chsh -s /usr/local/bin/fish if ! [ -d "$HOME/.config" ]; then mkdir "$HOME/.c...
Install fish only if it does not exist
Install fish only if it does not exist
Shell
mit
buo/dotfiles,buo/dotfiles
shell
## Code Before: if [ "$(uname -s)" == "Darwin" ]; then brew install fish # Add fish to standard shells echo "/usr/local/bin/fish" | sudo tee -a /etc/shells # Make fish your default shell chsh -s /usr/local/bin/fish if ! [ -d "$HOME/.config" ]; then mkdir "$HOME/.config" fi if ! [ -d "$HOME/.con...
f08eff926d4c334827381de8ab3a94df3fc8299a
README.md
README.md
True Parrot is a small twitter like web app using node.js and hapi. The goal is to get an overview of building web apps using node. Try the app at heroku: <TODO: Publish to Heroku> ## Run To run the app you will have to setup an local mongo db server. Then simply clone the repo, run `npm install` and then run `npm r...
True Parrot is a small twitter like web app using node.js and hapi. The goal is to get an overview of building web apps using node. Try the app on heroku: https://true-parrot.herokuapp.com/ ## Run To run the app you will have to setup an local mongo db server. Then simply clone the repo, run `npm install` and then r...
Add heroku url to readme
Add heroku url to readme
Markdown
mit
FritzFlorian/true-parrot,FritzFlorian/true-parrot
markdown
## Code Before: True Parrot is a small twitter like web app using node.js and hapi. The goal is to get an overview of building web apps using node. Try the app at heroku: <TODO: Publish to Heroku> ## Run To run the app you will have to setup an local mongo db server. Then simply clone the repo, run `npm install` and...
df4b1a1f2085de8b6dcb3b43965ced7f97129ee6
notes/bugs.txt
notes/bugs.txt
---------- 2014 Sep 6 $(document).ready not running after clicking on the home button. Go to the site. Click the edit mode ckeckbox to verify that the border around title appears when in edit mode. Click the home button. Click the edit mode checkbox to verify that the border around title does not appear when i...
---------- 2014 Sep 6 $(document).ready not running after clicking on the home button. Go to the site. Click the edit mode ckeckbox to verify that the border around title appears when in edit mode. Click the home button. Click the edit mode checkbox to verify that the border around title does not appear when i...
Add bug report: paste to title field causes error
Add bug report: paste to title field causes error
Text
mit
milewdev/biodb,milewdev/biodb,milewdev/biodb
text
## Code Before: ---------- 2014 Sep 6 $(document).ready not running after clicking on the home button. Go to the site. Click the edit mode ckeckbox to verify that the border around title appears when in edit mode. Click the home button. Click the edit mode checkbox to verify that the border around title does n...
ac993b66fdccbf3b2d5b4cfa0474e090b6d36021
amazon_s3/amazon_s3.yml
amazon_s3/amazon_s3.yml
metadata: storage: label: Storage units: GB precision: 1 storage_count: label: Storage Count precision: 0 data_aws: label: Data: internal total units: GB/hr precision: 2 data_out: label: Data: external out units: GB/hr precision: 2 data_in: label: Data: ex...
metadata: storage: label: Storage units: GB precision: 1 storage_count: label: Storage Count precision: 0 data_aws: label: Data - internal total units: GB/hr precision: 2 data_out: label: Data - external out units: GB/hr precision: 2 data_in: label: Data -...
Rename things so they sort better
Rename things so they sort better
YAML
mit
pingdomserver/scout-plugins,pap/scout-plugins,skiold/scout-plugins,wenyanw/scout-plugins,scoutapp/scout-plugins,envato/scout-plugins,wenyanw/scout-plugins,scoutapp/scout-plugins,pingdomserver/scout-plugins,wenyanw/scout-plugins,pap/scout-plugins,scoutapp/scout-plugins,envato/scout-plugins,skiold/scout-plugins,pap/scout...
yaml
## Code Before: metadata: storage: label: Storage units: GB precision: 1 storage_count: label: Storage Count precision: 0 data_aws: label: Data: internal total units: GB/hr precision: 2 data_out: label: Data: external out units: GB/hr precision: 2 data_in: ...
70949908ad759f8bf1c9d0499f9e496568c4af39
README.md
README.md
A collection of high-quality cryptographic primitives and utilities
A collection of high-quality cryptographic primitives and utilities Current contents: - A very fast implementation of [SipHash](https://131002.net/siphash/) PRF for short messages. Includes a manually unrolled SipHash-2-4 that has been extensively tuned. - More to come soon. License: Apache 2.0 (see LICENSE file fo...
Add brief summary of contents and license terms
Add brief summary of contents and license terms
Markdown
apache-2.0
NeilMadden/java-crypto-utils
markdown
## Code Before: A collection of high-quality cryptographic primitives and utilities ## Instruction: Add brief summary of contents and license terms ## Code After: A collection of high-quality cryptographic primitives and utilities Current contents: - A very fast implementation of [SipHash](https://131002.net/siphash...
a7bd123dd34d6b503205c3bc819f91b845216a7c
README.md
README.md
SpreeRetailops ============== This extension provides API access points for use by the RetailOps direct Spree integration. Installation ------------ Add spree_retailops to your Gemfile: ```ruby gem 'spree_retailops', git: 'https://github.com/GudTech/spree_retailops.git' ``` Bundle your dependencies and run the ins...
SpreeRetailops ============== This extension provides API access points for use by the RetailOps direct Spree integration. Installation ------------ Add spree_retailops to your Gemfile: ```ruby gem 'spree_retailops', git: 'https://github.com/GudTech/spree_retailops.git' ``` Bundle your dependencies and run the ins...
Add some notes on the available extension hooks
Add some notes on the available extension hooks
Markdown
bsd-3-clause
dotandbo/spree_retailops,gudTECH/spree_retailops,Huckberry/spree_retailops,Huckberry/spree_retailops,gudTECH/spree_retailops,dotandbo/spree_retailops,gudTECH/spree_retailops,Huckberry/spree_retailops,dotandbo/spree_retailops
markdown
## Code Before: SpreeRetailops ============== This extension provides API access points for use by the RetailOps direct Spree integration. Installation ------------ Add spree_retailops to your Gemfile: ```ruby gem 'spree_retailops', git: 'https://github.com/GudTech/spree_retailops.git' ``` Bundle your dependencies...
e349fccb4388777da7b8cb759b35771d21af5bab
library/Denkmal/layout/default/Component/EventList/default.less
library/Denkmal/layout/default/Component/EventList/default.less
& { padding-top: 10px; } .eventListMeta { color: @colorFgSubtle; display: block; font-size: .8rem; margin-bottom: 10px; padding: 1px 5px; } .weekday { margin-right: 5px; } .eventList { > li { > a { color: inherit; display: block; } @media (min-width: @breakpointMedium) { ...
& { padding-top: 10px; } .eventListMeta { color: @colorFgSubtle; display: block; font-size: @fontSizeTiny; margin-bottom: 10px; padding: 0 10px; } .weekday { margin-right: 5px; } .eventList { > li { > a { color: inherit; display: block; } @media (min-width: @breakpointMedium)...
Adjust event list date spacing
Adjust event list date spacing
Less
mit
denkmal/denkmal.org,njam/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,njam/denkmal.org
less
## Code Before: & { padding-top: 10px; } .eventListMeta { color: @colorFgSubtle; display: block; font-size: .8rem; margin-bottom: 10px; padding: 1px 5px; } .weekday { margin-right: 5px; } .eventList { > li { > a { color: inherit; display: block; } @media (min-width: @breakpoi...
d4939473eece034ff86dfa3bcc3ce65777aaba9b
app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery before_filter :authentication def authentication if session.has_key?'warden.user.user.key' if request.fullpath == '/login' redirect_to '/' end else if request.fullpath != '/login' red...
class ApplicationController < ActionController::Base protect_from_forgery before_filter :authentication def authentication if session.has_key?'warden.user.user.key' if request.fullpath == '/login' redirect_to '/' end else if request.fullpath != '/login' and request.ful...
Fix for prev commit . Allow only /login and /users/auth/google_apps/callback when not signed in.
Fix for prev commit . Allow only /login and /users/auth/google_apps/callback when not signed in.
Ruby
bsd-3-clause
agiliq/worktracker,agiliq/worktracker
ruby
## Code Before: class ApplicationController < ActionController::Base protect_from_forgery before_filter :authentication def authentication if session.has_key?'warden.user.user.key' if request.fullpath == '/login' redirect_to '/' end else if request.fullpath != '/login'...
49e45a5ad94a94350e413972fb80c47f39dcbb52
app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery with: :exception force_ssl if: :ssl_configured? helper_method :admin? include ArtsyAuth::Authenticated ADMIN_USERS = Rails.application.secrets.admin_users ALLOWED_GRAVITY_ROLES = ['admin'].freeze def authorized_artsy_token?(token...
class ApplicationController < ActionController::Base protect_from_forgery with: :exception force_ssl if: :ssl_configured? include ArtsyAuth::Authenticated ADMIN_USERS = Rails.application.secrets.admin_users ALLOWED_GRAVITY_ROLES = ['admin'].freeze def authorized_artsy_token?(token) @user = user(token...
Move helper_method label by method
Move helper_method label by method This is how I've always seen this done, so I think it's an idiom. Could be wrong though.
Ruby
mit
artsy/bearden,artsy/bearden,artsy/bearden,artsy/bearden
ruby
## Code Before: class ApplicationController < ActionController::Base protect_from_forgery with: :exception force_ssl if: :ssl_configured? helper_method :admin? include ArtsyAuth::Authenticated ADMIN_USERS = Rails.application.secrets.admin_users ALLOWED_GRAVITY_ROLES = ['admin'].freeze def authorized_ar...
a656cc8c7171c408e931ce8ce3028d6ff962235d
handlers/main.yml
handlers/main.yml
--- # handlers file for bbaassssiiee.artifactory - name: 'start artifactory' sudo: yes service: name=artifactory state=started tags: - init - name: 'restart artifactory' sudo: yes service: name=artifactory state=restarted
--- # handlers file for bbaassssiiee.artifactory - name: 'start artifactory' become: yes service: name=artifactory state=started tags: - init - name: 'restart artifactory' become: yes service: name=artifactory state=restarted
Use 'become' instead of deprecated 'sudo'.
Use 'become' instead of deprecated 'sudo'.
YAML
mit
bbaassssiiee/artifactory
yaml
## Code Before: --- # handlers file for bbaassssiiee.artifactory - name: 'start artifactory' sudo: yes service: name=artifactory state=started tags: - init - name: 'restart artifactory' sudo: yes service: name=artifactory state=restarted ## Instruction: Use 'become' instead of deprecated 'sudo'. ## Cod...
86ef1769daa48fb9adac2b923d0ae40fa0a5d8f7
doc/footer.html
doc/footer.html
<hr size="1"> <address style="text-align: right;"> <a href="http://sourceforge.net" title="Hosted by SourceForge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=12272&amp;type=1" width="88" height="31" border="0" align="top" alt="SourceForge.net Logo" /></a> <small>Generated by&nbsp;<a href="http://www.do...
<hr size="1"> <address style="text-align: right;"> <a href="http://sourceforge.net" title="Hosted by SourceForge.net" target="_top"> <img src="http://sourceforge.net/sflogo.php?group_id=12272&amp;type=1" width="88" height="31" border="0" align="top" alt="SourceForge.net Logo" /></a> <small>Generated by&nbsp;<a href=...
Make the Doxygen and sf.net links replace the current frameset.
Make the Doxygen and sf.net links replace the current frameset.
HTML
lgpl-2.1
pestophagous/unofficial_scratchpad_git-cvsimport_libexif,pestophagous/unofficial_scratchpad_git-cvsimport_libexif,pestophagous/unofficial_scratchpad_git-cvsimport_libexif
html
## Code Before: <hr size="1"> <address style="text-align: right;"> <a href="http://sourceforge.net" title="Hosted by SourceForge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=12272&amp;type=1" width="88" height="31" border="0" align="top" alt="SourceForge.net Logo" /></a> <small>Generated by&nbsp;<a hre...
784cd354c775126b8277676271353ce6a9dc7e7d
proxy.rb
proxy.rb
require 'sinatra' require 'omniauth' require 'omniauth-oauth2' require 'rack/ssl' require 'pp' # These variables should all be set in your environment CLIENT_ID = ENV['CLIENT_ID'] CLIENT_SECRET = ENV['CLIENT_SECRET'] REDIRECT_URL = ENV['REDIRECT_URL'] AUTHORIZE_URL = ENV['AUTHORIZE_URL'] TOKEN_URL = ENV['TOKEN_URL'] S...
require 'sinatra' require 'omniauth' require 'omniauth-oauth2' require 'rack/ssl' require 'json' # These variables should all be set in your environment CLIENT_ID = ENV['CLIENT_ID'] CLIENT_SECRET = ENV['CLIENT_SECRET'] REDIRECT_URL = ENV['REDIRECT_URL'] AUTHORIZE_URL = ENV['AUTHORIZE_URL'] TOKEN_URL = ENV['TOKEN_URL']...
Use json for debugging for now
Use json for debugging for now
Ruby
mit
kelsin/oauth2-proxy
ruby
## Code Before: require 'sinatra' require 'omniauth' require 'omniauth-oauth2' require 'rack/ssl' require 'pp' # These variables should all be set in your environment CLIENT_ID = ENV['CLIENT_ID'] CLIENT_SECRET = ENV['CLIENT_SECRET'] REDIRECT_URL = ENV['REDIRECT_URL'] AUTHORIZE_URL = ENV['AUTHORIZE_URL'] TOKEN_URL = EN...
01153d5a73f13a8ad358ae020f439332d6153485
test/std/input.output/iostreams.base/ios/iostate.flags/bool.pass.cpp
test/std/input.output/iostreams.base/ios/iostate.flags/bool.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Add missing include in test.
Add missing include in test. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@290751 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
c++
## Code Before: //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===------------------------...
511d0a8fde8b0ca5f20c9e5805ea7a6054b11b17
src/pat/gallery.js
src/pat/gallery.js
/** * Patterns gallery - A simple gallery * * Copyright 2013 Simplon B.V. - Wichert Akkerman */ define([ "jquery", "../registry", "photoswipe" ], function($, patterns) { var gallery = { name: "gallery", trigger: ".pat-gallery", init: function($el) { return $el; ...
/** * Patterns gallery - A simple gallery * * Copyright 2013 Simplon B.V. - Wichert Akkerman */ define([ "jquery", "../registry", "klass", // Workaround because bungle is ignoring dependencies currently "photoswipe" ], function($, patterns) { var gallery = { name: "gallery", trig...
Work around bungle bug (it ignores dependencies).
Work around bungle bug (it ignores dependencies).
JavaScript
bsd-3-clause
Patternslib/require-experimental-build
javascript
## Code Before: /** * Patterns gallery - A simple gallery * * Copyright 2013 Simplon B.V. - Wichert Akkerman */ define([ "jquery", "../registry", "photoswipe" ], function($, patterns) { var gallery = { name: "gallery", trigger: ".pat-gallery", init: function($el) { ...
d29b4d79c6ca22575921875a5864495e0899eaab
packages/gatsby-plugin-react-css-modules/README.md
packages/gatsby-plugin-react-css-modules/README.md
Transforms `styleName` to `className` using compile time CSS module resolution. See the [babel-plugin-react-css-modules README](https://github.com/gajus/babel-plugin-react-css-modules/blob/master/README.md) for details. ## Install `yarn add gatsby-plugin-react-css-modules` ## How to use ```javascript // In your gatsb...
Transforms `styleName` to `className` using compile time CSS module resolution. See the [babel-plugin-react-css-modules README](https://github.com/gajus/babel-plugin-react-css-modules/blob/master/README.md) for details. ## Install `yarn add gatsby-plugin-react-css-modules` ## How to use ```javascript // In your gatsb...
Update gatsby-plugin-react-css-modules to include instructions on how to name files properly to have them parsed as CSS modules
Update gatsby-plugin-react-css-modules to include instructions on how to name files properly to have them parsed as CSS modules
Markdown
mit
gatsbyjs/gatsby,ChristopherBiscardi/gatsby,mingaldrichgan/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,danielfarrell/gatsby,gatsbyjs/gatsby,fabrictech/gatsby,Khaledgarbaya/gatsby,gatsbyjs/gatsby,mingaldrichgan/gatsby,fabrictech/gatsby,Khaledgarbaya/gatsby,danielfarrell/gatsby,ChristopherBiscardi/gatsby,Khaledgarbaya/gatsby,f...
markdown
## Code Before: Transforms `styleName` to `className` using compile time CSS module resolution. See the [babel-plugin-react-css-modules README](https://github.com/gajus/babel-plugin-react-css-modules/blob/master/README.md) for details. ## Install `yarn add gatsby-plugin-react-css-modules` ## How to use ```javascript ...
ec678cda5b24593a53e697088500335b962fe366
lib/wolfram.rb
lib/wolfram.rb
require 'ostruct' require 'open-uri' require 'active_support/core_ext/hash' require "wolfram/version" module Wolfram def self.ask(query) response = OpenStruct.new hash = Hash.new url = "http://api.wolframalpha.com/v2/query?appid=XR5V85-RTLWAEKWEQ&input=#{URI::encode(query).gsub('=','%3D').gsub('+','%2B').gsub('...
require 'ostruct' require 'open-uri' require 'active_support/core_ext/hash' require "wolfram/version" module Wolfram def self.ask(query) response = OpenStruct.new hash = Hash.new url = "http://api.wolframalpha.com/v2/query?appid=XR5V85-RTLWAEKWEQ&input=#{URI::encode(query).gsub('=','%3D').gsub('+','%2B').gsub('...
Fix error when respond has more than 1 subpod
Fix error when respond has more than 1 subpod
Ruby
mit
Educatea/wolfram,Educatea/wolfram
ruby
## Code Before: require 'ostruct' require 'open-uri' require 'active_support/core_ext/hash' require "wolfram/version" module Wolfram def self.ask(query) response = OpenStruct.new hash = Hash.new url = "http://api.wolframalpha.com/v2/query?appid=XR5V85-RTLWAEKWEQ&input=#{URI::encode(query).gsub('=','%3D').gsub('...
5070fde57f5375a96e363480ce1267ff3d2e21e6
figures/gnuplot/line.gp
figures/gnuplot/line.gp
set output "line.png" load "settings.gp" f(x) = 4.0*x + 42 x1 = -17 x2 = -16 plot \ f(x) axes x1y1 not with lines linestyle 102, \ '+' using ($0 == 0 ? x1 : NaN):(f(x1)):(sprintf('P1')) \ with labels offset char -1.5,1 left textcolor rgb 'blue' \ point linestyle 1 notitle, \ '+' using ($0 == 0 ? x2...
set output "line.png" load "settings.gp" set xrange [-20:-14] f(x) = 4.0*x + 42 x1 = -17 x2 = -16 plot \ f(x) axes x1y1 not with lines linestyle 102, \ '+' using ($0 == 0 ? x1 : NaN):(f(x1)):(sprintf('P1')) \ with labels offset char -1.5,1 left textcolor rgb 'blue' \ point linestyle 1 notitle, \ '+...
Add xrange back where it belongs.
Add xrange back where it belongs.
Gnuplot
mit
eigenholser/TALK-Shamir_Secret_Sharing,eigenholser/TALK-Shamir_Secret_Sharing,eigenholser/TALK-Shamir_Secret_Sharing
gnuplot
## Code Before: set output "line.png" load "settings.gp" f(x) = 4.0*x + 42 x1 = -17 x2 = -16 plot \ f(x) axes x1y1 not with lines linestyle 102, \ '+' using ($0 == 0 ? x1 : NaN):(f(x1)):(sprintf('P1')) \ with labels offset char -1.5,1 left textcolor rgb 'blue' \ point linestyle 1 notitle, \ '+' usi...
9f6edf5c93008dcebda862ed70e7a0beb20648c4
script/create-dist.sh
script/create-dist.sh
set -e DISTFILES="package.json webpack.config.js webpack.config.electron.js LICENSE share bin server" cd $(dirname $0)/.. export NODE_ENV=production webpack --config webpack.config.electron.js cp -r $DISTFILES dist/ cd dist/ npm link termios child_pty npm install rm -rf ../hterminal-darwin-x64/ ../node_modules/.bi...
set -e DISTFILES="package.json webpack.config.js webpack.config.electron.js LICENSE share bin server" cd $(dirname $0)/.. export NODE_ENV=production webpack --config webpack.config.electron.js cp -r $DISTFILES dist/ cd dist/ npm link termios child_pty npm install rm -rf ../hterminal-darwin-x64/ ../node_modules/.bi...
Add some flags to packager for bundle id
Add some flags to packager for bundle id
Shell
mit
CGamesPlay/hterminal,CGamesPlay/hterminal
shell
## Code Before: set -e DISTFILES="package.json webpack.config.js webpack.config.electron.js LICENSE share bin server" cd $(dirname $0)/.. export NODE_ENV=production webpack --config webpack.config.electron.js cp -r $DISTFILES dist/ cd dist/ npm link termios child_pty npm install rm -rf ../hterminal-darwin-x64/ ../...
dabf12242dea99b7578b9df57001890a45d9a73f
assets/stylesheets/components/standard/side_navbar/_side_navbar.scss
assets/stylesheets/components/standard/side_navbar/_side_navbar.scss
/****************************************************************************** Side Navbar component ******************************************************************************/ .evo_c-sidenav { position: fixed; top: 100px; right: 100%; left: 0; margin: 0; padding: 0; } ....
/****************************************************************************** Side Navbar component ******************************************************************************/ @import 'side_navbar-config'; .evo_c-sidenav { position: fixed; top: 100px; right: 100%; left: 0; ...
Update 'side_navbar' to include config file.
Update 'side_navbar' to include config file.
SCSS
mit
evolution-ui/evolution-ui,evolution-ui/evolution-ui
scss
## Code Before: /****************************************************************************** Side Navbar component ******************************************************************************/ .evo_c-sidenav { position: fixed; top: 100px; right: 100%; left: 0; margin: 0; ...
87704c015d9966ecca1eff42b1e8a7c3f9d06ecc
spec/features/clubs/view_spec.rb
spec/features/clubs/view_spec.rb
require 'spec_helper.rb' feature "Viewing a Club", js: true do let(:club1) {FactoryGirl::create(:club)} let(:club2) {FactoryGirl::create(:club)} scenario "view one Club" do club1 club2 visit "#/clubs" click_on club1.name expect(page).to have_content(club1.name) expect(page).to have_cont...
require 'spec_helper.rb' feature "Viewing a Club", js: true do let(:club1) {FactoryGirl::create(:club_with_players, players_count: 5)} let(:club2) {FactoryGirl::create(:club)} scenario "view one Club" do players = club1.players club2 visit "#/clubs" click_on club1.name expect(page).to have_...
Add checking players presence in clubs view feature spec
Add checking players presence in clubs view feature spec
Ruby
mit
morynicz/tournament-service,morynicz/Ippon,morynicz/tournament-service,morynicz/Ippon,morynicz/Ippon,morynicz/tournament-service
ruby
## Code Before: require 'spec_helper.rb' feature "Viewing a Club", js: true do let(:club1) {FactoryGirl::create(:club)} let(:club2) {FactoryGirl::create(:club)} scenario "view one Club" do club1 club2 visit "#/clubs" click_on club1.name expect(page).to have_content(club1.name) expect(pa...
b129ff9f3ce7d5f931d16f6eb0d68b9ee95ebc22
InputPacket.h
InputPacket.h
namespace ni { struct InputPacket { constexpr static int MAGIC = 0xD00D; constexpr static int TYPE_LENGTH = 16; constexpr static int DATA_LENGTH = 128; uint16_t magic; char type[TYPE_LENGTH]; uint16_t length; uint8_t data[DATA_LENGTH]; bool isValid() const; bool isSafe() const; }; }
namespace ni { struct InputPacket { constexpr static int MAGIC = 0xD00D; constexpr static int DATA_LENGTH = 128; uint16_t magic; DeviceType type; uint16_t length; uint8_t data[DATA_LENGTH]; bool isValid() const; bool isSafe() const; }; }
Use DeviceType enum for the type field.
Use DeviceType enum for the type field.
C
mit
jack-karamanian/NetInput
c
## Code Before: namespace ni { struct InputPacket { constexpr static int MAGIC = 0xD00D; constexpr static int TYPE_LENGTH = 16; constexpr static int DATA_LENGTH = 128; uint16_t magic; char type[TYPE_LENGTH]; uint16_t length; uint8_t data[DATA_LENGTH]; bool isValid() const; bool isSafe() const; };...
abf0332c2da8b80aeee187043f32e48038afeafd
app/config/default/mode/command-reference.json
app/config/default/mode/command-reference.json
{ "modes": { "command-reference": { "name": "Zed Command Reference", "highlighter": "ace/mode/markdown", "filenames": ["zed::commands"], "keys": { "Zed:Command Reference:Invoke Command": "Enter" }, "commands": { ...
{ "modes": { "command-reference": { "name": "Zed Command Reference", "highlighter": "ace/mode/markdown", "filenames": ["zed::commands"], "keys": { "Zed:Command Reference:Invoke Command": "Enter" }, "commands": { ...
Hide invisibles in the command reference.
Hide invisibles in the command reference.
JSON
mit
XenonApp/xenon,AaronZhangL/zed,matthiaskr/zed,TheKiteEatingTree/zed,XenonApp/xenon,matthiaskr/zed,matejc/zed,LuoZijun/zed,AaronZhangL/zed,matejc/zed,matejc/zed,AaronZhangL/zed,TheKiteEatingTree/zed,zedapp/zed,TheKiteEatingTree/zed,zedapp/zed,zedapp/zed,matthiaskr/zed,LuoZijun/zed,LuoZijun/zed
json
## Code Before: { "modes": { "command-reference": { "name": "Zed Command Reference", "highlighter": "ace/mode/markdown", "filenames": ["zed::commands"], "keys": { "Zed:Command Reference:Invoke Command": "Enter" }, "com...
7419ecca4739a00f72a5304acb2dc75cfd71b8b4
app/models/entry.rb
app/models/entry.rb
class Entry < HyperactiveResource belongs_to :blog, :nested => true def comments Comment.find_all_by_content_id(self.id) end def to_liquid(options = {}) @article_drop ||= Liquid::ArticleDrop.new self, options end def images self.mediafiles.select{|mediafile| mediafile.mediafile_type == "...
class Entry < HyperactiveResource belongs_to :blog, :nested => true def comments Comment.find_all_by_content_id(self.id) end def to_liquid(options = {}) @article_drop ||= Liquid::ArticleDrop.new self, options end def images self.mediafiles.select{|mediafile| mediafile.mediafile_type == "...
Make child classes available in Entry as well as Article.
Make child classes available in Entry as well as Article.
Ruby
mit
HotInk/hotink-publisher,HotInk/hotink-publisher
ruby
## Code Before: class Entry < HyperactiveResource belongs_to :blog, :nested => true def comments Comment.find_all_by_content_id(self.id) end def to_liquid(options = {}) @article_drop ||= Liquid::ArticleDrop.new self, options end def images self.mediafiles.select{|mediafile| mediafile.med...
1af37551cd8e68e84a25f77dc57e5c94b10d3b87
btcx/common.py
btcx/common.py
from twisted.words.xish.utility import EventDispatcher USER_AGENT = 'btcx-bot' class ExchangeEvent(EventDispatcher): def __init__(self, **kwargs): EventDispatcher.__init__(self, **kwargs) def listen(self, msg, cb): event = "%s/%s" % (self.prefix, msg) self.addObserver(event, cb) ...
import os from twisted.words.xish.utility import EventDispatcher USER_AGENT = 'btcx-bot' class ExchangeEvent(EventDispatcher): def __init__(self, **kwargs): EventDispatcher.__init__(self, **kwargs) self.listener = {} def listen(self, msg, cb): event = "%s/%s" % (self.prefix, msg) ...
Support for removing listeners by means of a listener id.
Support for removing listeners by means of a listener id.
Python
mit
knowitnothing/btcx,knowitnothing/btcx
python
## Code Before: from twisted.words.xish.utility import EventDispatcher USER_AGENT = 'btcx-bot' class ExchangeEvent(EventDispatcher): def __init__(self, **kwargs): EventDispatcher.__init__(self, **kwargs) def listen(self, msg, cb): event = "%s/%s" % (self.prefix, msg) self.addObserver(...
394458a3acf5240dc04cc8a3c0e48027f1c9c644
README.md
README.md
Service "Lost and Found". Announcement of lost or found items *Currently in development. Things may change or break until a solid release has been announced.*
Lost and Found ============== Web-service for announcements of lost and found items. *Currently in development. Things may change or break until a solid release has been announced.* ## Requirements * PHP 5.4 *and later* ## Deploy to Heroku [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.co...
Add button to deploy to Heroku Cloud
Add button to deploy to Heroku Cloud
Markdown
mit
stfalcon-studio/lost-and-found,stfalcon-studio/lost-and-found,LogansUA/lost-and-found,LogansUA/lost-and-found,LogansUA/lost-and-found,stfalcon-studio/lost-and-found
markdown
## Code Before: Service "Lost and Found". Announcement of lost or found items *Currently in development. Things may change or break until a solid release has been announced.* ## Instruction: Add button to deploy to Heroku Cloud ## Code After: Lost and Found ============== Web-service for announcements of lost and ...
77568b96614a81a4922c21be08d14820fef3fff7
README.md
README.md
Python Tools for Forensics and Data Recovery ============================================ This work is based off ideas from the book "Python Forensics" by Chet Hosmer and published by Elsevier (ISBN: 978-0-12-418676-7). This work is a complete rewrite of much of his work including some new functionality.
Python Tools for Forensics and Data Recovery ============================================ This work is based off ideas from the book "Python Forensics" by Chet Hosmer and published by Elsevier (ISBN: 978-0-12-418676-7). This work is a complete rewrite of much of his work including some new functionality. Quick Notes...
Update on how to run the walker.py script.
Update on how to run the walker.py script.
Markdown
mit
cnobile2012/forensics
markdown
## Code Before: Python Tools for Forensics and Data Recovery ============================================ This work is based off ideas from the book "Python Forensics" by Chet Hosmer and published by Elsevier (ISBN: 978-0-12-418676-7). This work is a complete rewrite of much of his work including some new functionali...
33e5bcf597580bebd42816bd19d3ce04500c1e92
blog/templates/blog/post.html
blog/templates/blog/post.html
{% extends "base.html" %} {% load bootstrap_tags %} {% block heading %} <h1>{{ post.title }}</h1> <h4> <small> {{ post.created|date:"j. N Y" }}{% if post.author %} von {{ post.author }}{% endif %} </small> </h4> {% endblock %} {% block content %} {{ post.content|safe }} {% endblock %}
{% extends "base.html" %} {% load bootstrap_tags %} {% block heading %} <h1>{{ post.title }}</h1> <h4> <small> {{ post.created|date:"j. N Y" }}{% if post.author %} von {{ post.author }}{% endif %} </small> </h4> {% endblock %} {% block content %} {{ post.content|safe }} {% include 'dpb/edit_i...
Add shortcut to blog news
Add shortcut to blog news
HTML
mit
n2o/dpb,n2o/dpb,n2o/dpb,n2o/dpb,n2o/dpb,n2o/dpb,n2o/dpb,n2o/dpb
html
## Code Before: {% extends "base.html" %} {% load bootstrap_tags %} {% block heading %} <h1>{{ post.title }}</h1> <h4> <small> {{ post.created|date:"j. N Y" }}{% if post.author %} von {{ post.author }}{% endif %} </small> </h4> {% endblock %} {% block content %} {{ post.content|safe }} {% endbl...
a302a8bb55920e4db99aaa1c6369707b0d90a9d5
jkind-api/src/jkind/api/results/MapRenaming.java
jkind-api/src/jkind/api/results/MapRenaming.java
package jkind.api.results; import java.util.Map; /** * A renaming backed by a map from strings to strings */ public class MapRenaming extends Renaming { private Map<String, String> map; public MapRenaming(Map<String, String> map) { this.map = map; } @Override public String rename(String original) { ret...
package jkind.api.results; import java.util.Map; /** * A renaming backed by a map from strings to strings */ public class MapRenaming extends Renaming { private final Map<String, String> map; private final Mode mode; public static enum Mode { NULL, IDENTITY } public MapRenaming(Map<String, String> map, Mod...
Add two options for map renamings
Add two options for map renamings
Java
bsd-3-clause
backesj/jkind,andrewkatis/jkind-1,lgwagner/jkind,agacek/jkind,lgwagner/jkind,backesj/jkind,agacek/jkind,andrewkatis/jkind-1
java
## Code Before: package jkind.api.results; import java.util.Map; /** * A renaming backed by a map from strings to strings */ public class MapRenaming extends Renaming { private Map<String, String> map; public MapRenaming(Map<String, String> map) { this.map = map; } @Override public String rename(String o...
7dce4f3553b5b6670bb56347f2154805b6a6c1c6
lib/tb_heavy_control/configurable.rb
lib/tb_heavy_control/configurable.rb
module TbHeavyControl module Configurable attr_reader :load_order def config(&block) raise 'tb_heavy_control config cannot run without block' if block.nil? @load_order ||= [] instance_eval(&block) end private def load_file(original_path) relative_path = Pathname.new('')....
module TbHeavyControl module Configurable attr_reader :load_order def config(&block) raise 'tb_heavy_control config cannot run without block' if block.nil? @load_order ||= [] instance_eval(&block) end private def load_file(original_path) array_form = Array(original_pa...
Make '.rb' part for load_file optional
Make '.rb' part for load_file optional
Ruby
mit
ffloyd/tb_heavy_control,ffloyd/tb_heavy_control,ffloyd/tb_heavy_control
ruby
## Code Before: module TbHeavyControl module Configurable attr_reader :load_order def config(&block) raise 'tb_heavy_control config cannot run without block' if block.nil? @load_order ||= [] instance_eval(&block) end private def load_file(original_path) relative_path = P...
b51bcdc55662071536bb2be83b91c0c193796663
headlines/static/css/main.css
headlines/static/css/main.css
body { background-color: #eaf1f1; font-family: 'Istok Web', sans-serif; line-height: 1.6; } h1, h2, h3, h4, h5, h6 { font-family: 'Lora', serif; letter-spacing: 2px; } .col-md-4 .card { min-height: 650px; margin-bottom: 100px; box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); border-...
body { background-color: #eaf1f1; font-family: 'Istok Web', sans-serif; line-height: 1.6; padding-top: 50px; } h1, h2, h3, h4, h5, h6 { font-family: 'Lora', serif; letter-spacing: 2px; } .card { min-height: 650px; margin-bottom: 100px; box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75)...
Add padding to body to give spacing in the navbar.
Add padding to body to give spacing in the navbar.
CSS
mit
alchermd/headlines,alchermd/headlines
css
## Code Before: body { background-color: #eaf1f1; font-family: 'Istok Web', sans-serif; line-height: 1.6; } h1, h2, h3, h4, h5, h6 { font-family: 'Lora', serif; letter-spacing: 2px; } .col-md-4 .card { min-height: 650px; margin-bottom: 100px; box-shadow: 10px 10px 5px 0px rgba(0,0,0,0....
a6c981a7537e08f435bf0c6f6cab197d3c354612
trunk/org.mwc.asset.SensorMonitor/plugin.xml
trunk/org.mwc.asset.SensorMonitor/plugin.xml
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin> <extension point="org.eclipse.ui.views"> <view allowMultiple="true" category="org.mwc.asset.core.simulation.category" class="org.mwc.asset.sensormonitor.views.SensorMonitor" icon=...
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin> <extension point="org.eclipse.ui.views"> <view allowMultiple="true" category="org.mwc.asset.core.simulation.category" class="org.mwc.asset.sensormonitor.views.SensorMonitor" icon=...
Make the view naming consistent
Make the view naming consistent git-svn-id: d2601f1668e3cd2de409f5c059006a6eeada0abf@1653 cb33b658-6c9e-41a7-9690-cba343611204
XML
epl-1.0
pecko/debrief,theanuradha/debrief,alastrina123/debrief,pecko/debrief,pecko/debrief,pecko/debrief,debrief/debrief,pecko/debrief,debrief/debrief,theanuradha/debrief,debrief/debrief,pecko/debrief,pecko/debrief,alastrina123/debrief,theanuradha/debrief,theanuradha/debrief,debrief/debrief,alastrina123/debrief,theanuradha/deb...
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin> <extension point="org.eclipse.ui.views"> <view allowMultiple="true" category="org.mwc.asset.core.simulation.category" class="org.mwc.asset.sensormonitor.views.SensorMonitor" ...
79ebd65e46293b12c50bc4c7cf9f0cbebe7769bc
index.html
index.html
--- layout: default title: Main --- {% for collection in site.collections %} <h3 id="{{ collection | first }}">{{ collection | first }}</h3> {% for i in collection[1].docs %} <article> {% if i.link %}<a class="title-link" hreF="{{ i.link }}">{% endif %} <h1>{{ i.title }}</h1> {% if i.link ...
--- layout: default title: Main --- {% for collection in site.collections %} <h3 id="{{ collection.label }}">{{ collection.label }}</h3> {% for i in collection.docs %} <article> {% if i.link %}<a class="title-link" href="{{ i.link }}">{% endif %} <h1>{{ i.title }}</h1> {% if i.link %}</a>{...
Use collection as an object, not as an array
Use collection as an object, not as an array Following the advice from ["Updating from jekyll 2.x to 3.x"](https://jekyllrb.com/docs/upgrading/2-to-3/)
HTML
mpl-2.0
fdavidcl/fdavidcl.github.io,fdavidcl/fdavidcl.github.io
html
## Code Before: --- layout: default title: Main --- {% for collection in site.collections %} <h3 id="{{ collection | first }}">{{ collection | first }}</h3> {% for i in collection[1].docs %} <article> {% if i.link %}<a class="title-link" hreF="{{ i.link }}">{% endif %} <h1>{{ i.title }}</h1> ...
59789d6a32eecb8b79ffe37056f3e304607c15db
README.md
README.md
********************* #### Posts <ul> {% for post in site.posts %} <li> <a href="{{ post.url }}">{{ post.title }}</a> {{ post.excerpt }} </li> {% endfor %} </ul>
I'm a Software Engineer at [Joyent](https://www.joyent.com) working on [Triton](https://github.com/joyent/triton) and [SmartOS](https://www.joyent.com/smartos). I work remotely from the [city](https://www.cob.org/) with the [least sunshine in the United States](http://www.seattlepi.com/local/connelly/article/Bellingha...
Add about me section to homepage
Add about me section to homepage
Markdown
mit
richardkiene/richardkiene.github.io
markdown
## Code Before: ********************* #### Posts <ul> {% for post in site.posts %} <li> <a href="{{ post.url }}">{{ post.title }}</a> {{ post.excerpt }} </li> {% endfor %} </ul> ## Instruction: Add about me section to homepage ## Code After: I'm a Software Engineer at [Joyent](https://www....
7482ef51227de81f424d90aa35c8d93a4ec3101f
src/kosha/app/search.clj
src/kosha/app/search.clj
(ns kosha.app.search (:require [kosha.db.search :as db-search] [kosha.app.util :as util])) (def no-of-results (util/get-config :api :search-results)) (defn get-results "Retrieves 2n best matches for given ragam or kriti name." [query n] (let [ragams (future (db-search/ragams query n)) kri...
(ns kosha.app.search (:require [kosha.db.search :as db-search] [kosha.app.util :as util])) (def no-of-results (util/get-config :api :search-results)) (defn get-results "Retrieves 2n best matches for given ragam or kriti name." [query n] (let [ragams (future (db-search/ragams query n)) kr...
Order results by descending similarity score.
Order results by descending similarity score.
Clojure
epl-1.0
nilenso/kosha
clojure
## Code Before: (ns kosha.app.search (:require [kosha.db.search :as db-search] [kosha.app.util :as util])) (def no-of-results (util/get-config :api :search-results)) (defn get-results "Retrieves 2n best matches for given ragam or kriti name." [query n] (let [ragams (future (db-search/ragams query...
dc360993c66ed87bd4d6341183de7d53379483bb
lib/bonsai/templates/templates/products.mustache
lib/bonsai/templates/templates/products.mustache
<!DOCTYPE html> <html lang="en"> {{> shared/head}} <body id="{{slug}}" class="default"> <section id="wrapper"> {{> shared/header}} <ul id="sub-navigation"> {{# children}} <li><a href="{{permalink}}">{{name}}</a></li> {{/ children}} </ul> {{{body}}} ...
<!DOCTYPE html> <html lang="en"> {{> shared/head}} <body id="{{slug}}" class="default"> <section id="wrapper"> {{> shared/header}} <ul id="sub-navigation"> {{# children}} <li><a href="{{permalink}}">{{name}}</a></li> {{/ children}} </ul> {{{body}}} ...
Add analytics to all demo templates
Add analytics to all demo templates
HTML+Django
mit
benschwarz/bonsai,benschwarz/bonsai,benschwarz/bonsai
html+django
## Code Before: <!DOCTYPE html> <html lang="en"> {{> shared/head}} <body id="{{slug}}" class="default"> <section id="wrapper"> {{> shared/header}} <ul id="sub-navigation"> {{# children}} <li><a href="{{permalink}}">{{name}}</a></li> {{/ children}} </ul> ...
d320f9720ddbf2af96ea108bc0d7986187534f7d
examples/datalist-/index.html
examples/datalist-/index.html
<title>&lt;datalist-&gt;</title> <script src=/snuggsi.es></script> <script name=polyfill src=https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.0/webcomponents-hi-ce.js></script> <link rel=stylesheet href=https://devpunks.herokuapp.com/typography.css> <!-- import works inline body --> <link rel=import href=/...
<title>&lt;datalist-&gt;</title> <script src=/snuggsi.es></script> <script name=polyfill src=https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.0/webcomponents-hi-ce.js></script> <link rel=stylesheet href=https://devpunks.herokuapp.com/typography.css> <!-- import works inline body --> <link rel=import href=/...
Add id attribute to datalist-
Add id attribute to datalist-
HTML
mit
devpunks/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi,snuggs/snuggsi,snuggs/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi
html
## Code Before: <title>&lt;datalist-&gt;</title> <script src=/snuggsi.es></script> <script name=polyfill src=https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.0/webcomponents-hi-ce.js></script> <link rel=stylesheet href=https://devpunks.herokuapp.com/typography.css> <!-- import works inline body --> <link r...
8ab47d098a16e80edc20bbd3ee162bc2356b609f
make.sh
make.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Actual content USERGUIDE_INPUT_DIR=$DIR/userguide # Common options COMMON_OPTS="-a sourcedir=$USERGUIDE_INPUT_DIR -a imagesdir=$USERGUIDE_INPUT_DIR/assets" # Selfcontained options SELFCONTAINED_EXTRA_OPTS="$COMMON_OPTS -T html5 -a stylesheet=kb.css -a stylesdi...
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Actual content USERGUIDE_INPUT_DIR=$DIR/userguide # Common options COMMON_OPTS="-a sourcedir=$USERGUIDE_INPUT_DIR -a imagesdir=$USERGUIDE_INPUT_DIR/assets" # Selfcontained options SELFCONTAINED_EXTRA_OPTS="$COMMON_OPTS -T html5 -a stylesheet=kb.css -a stylesdi...
Change the code style (using a different pygments-style)
Change the code style (using a different pygments-style)
Shell
apache-2.0
killbill/killbill-docs,killbill/killbill-docs
shell
## Code Before: DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Actual content USERGUIDE_INPUT_DIR=$DIR/userguide # Common options COMMON_OPTS="-a sourcedir=$USERGUIDE_INPUT_DIR -a imagesdir=$USERGUIDE_INPUT_DIR/assets" # Selfcontained options SELFCONTAINED_EXTRA_OPTS="$COMMON_OPTS -T html5 -a stylesheet=kb...
474a6dedce4a44cb5094006c1eab1f826629f29b
HISTORY.rst
HISTORY.rst
.. :changelog: History ------- 0.1.0 (2014-03-15) ~~~~~~~~~~~~~~~~~~ * First release on PyPI. * Generates a JSON or YAML difference between two CSV files * Specify multiple key components with ``-k`` * Can provide a difference summary * Assumes files use standard comma-separation, double-quoting and a header row wit...
.. :changelog: History ------- 0.2.0 (2014-12-30) ~~~~~~~~~~~~~~~~~~ * Uses click for the command-line interface. * Drop YAML support in favour of pretty-printed JSON. * Uses --style option to change output style. * Provides a full man page. 0.1.0 (2014-03-15) ~~~~~~~~~~~~~~~~~~ * First release on PyPI. * Generate...
Add a listing of 0.2.0 features.
Add a listing of 0.2.0 features.
reStructuredText
bsd-3-clause
larsyencken/csvdiff
restructuredtext
## Code Before: .. :changelog: History ------- 0.1.0 (2014-03-15) ~~~~~~~~~~~~~~~~~~ * First release on PyPI. * Generates a JSON or YAML difference between two CSV files * Specify multiple key components with ``-k`` * Can provide a difference summary * Assumes files use standard comma-separation, double-quoting and ...
be8deed721a75718e707896254270e9aa590ed90
static/js/question.js
static/js/question.js
$(function() { $('#answerQuestion').click(function(e) { var lineOrders = $('#lines').sortable('toArray', {attribute: 'lineNum'}); var ans = []; for (var i = 0; i < lineOrders.length; i++) { if (lineOrders[i]) { ans.push(parseInt(lineOrders[i])); } ...
$(function() { $('#answerQuestion').click(function(e) { $.ajax({ url: '/question/' + e.target.value, type: 'POST', data: {'answer': JSON.stringify(getLineOrder())}, success: function(response) { $('#result').html(response); }, ...
Refactor get line order functionality into its own function.
Refactor get line order functionality into its own function.
JavaScript
mit
TanjidIslam/code-mangler,TanjidIslam/code-mangler,TanjidIslam/code-mangler,TanjidIslam/code-mangler,TanjidIslam/code-mangler
javascript
## Code Before: $(function() { $('#answerQuestion').click(function(e) { var lineOrders = $('#lines').sortable('toArray', {attribute: 'lineNum'}); var ans = []; for (var i = 0; i < lineOrders.length; i++) { if (lineOrders[i]) { ans.push(parseInt(lineOrders[i])); ...
d7d9d754e6e219094815831c2c45d3c3117f584e
cmake/python.cmake
cmake/python.cmake
find_package(PythonInterp) execute_process(COMMAND ${PYTHON_EXECUTABLE} ${catkin_EXTRAS_DIR}/python_version.py OUTPUT_VARIABLE PYTHON_VERSION_XDOTY OUTPUT_STRIP_TRAILING_WHITESPACE) set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "python version") # this should actually be for anything non-dist-pack...
find_package(PythonInterp) execute_process(COMMAND ${PYTHON_EXECUTABLE} ${catkin_EXTRAS_DIR}/python_version.py OUTPUT_VARIABLE PYTHON_VERSION_XDOTY OUTPUT_STRIP_TRAILING_WHITESPACE) set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "python version") #This should be resolved automatically one day... op...
Implement SETUPTOOLS_DEB_LAYOUT to handle non debian systems.
Implement SETUPTOOLS_DEB_LAYOUT to handle non debian systems.
CMake
bsd-3-clause
scpeters/catkin,wkentaro/catkin,wkentaro/catkin,jack-oquin/catkin,asmodehn/catkin,ros/catkin,meyerj/catkin,harmishhk/catkin,meyerj/catkin,beni55/catkin,scpeters/catkin,jack-oquin/catkin,shyamalschandra/catkin,scpeters/catkin,jack-oquin/catkin,beni55/catkin,asmodehn/catkin,shyamalschandra/catkin,thaddeustaylor/catkin,ha...
cmake
## Code Before: find_package(PythonInterp) execute_process(COMMAND ${PYTHON_EXECUTABLE} ${catkin_EXTRAS_DIR}/python_version.py OUTPUT_VARIABLE PYTHON_VERSION_XDOTY OUTPUT_STRIP_TRAILING_WHITESPACE) set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "python version") # this should actually be for anythi...
4b8a341af72c2a43b5941ec8356fc1932d3c2b27
lib/gds_api/test_helpers/content_api/artefact_stub.rb
lib/gds_api/test_helpers/content_api/artefact_stub.rb
module GdsApi module TestHelpers module ContentApi class ArtefactStub include WebMock::API # This is ugly, but the nicest way we found to get access to artefact_for_slug include GdsApi::TestHelpers::ContentApi attr_accessor :slug, :query_parameters, :response_body, :response...
module GdsApi module TestHelpers module ContentApi class ArtefactStub include WebMock::API # This is ugly, but the nicest way we found to get access to artefact_for_slug include GdsApi::TestHelpers::ContentApi attr_accessor :slug, :query_parameters, :response_body, :response...
Make Artefact stubbing permissive on query params
Make Artefact stubbing permissive on query params Previously, requests had to have exactly the specified query params, now they just have to have the params you specify. Specific motivation is that lots of requests in frontend will soon include latitude and longitude, but it's not something that matters in most of th...
Ruby
mit
theodi/gds-api-adapters,theodi/gds-api-adapters,bitzesty/gds-api-adapters,alphagov/gds-api-adapters,bitzesty/gds-api-adapters
ruby
## Code Before: module GdsApi module TestHelpers module ContentApi class ArtefactStub include WebMock::API # This is ugly, but the nicest way we found to get access to artefact_for_slug include GdsApi::TestHelpers::ContentApi attr_accessor :slug, :query_parameters, :response...
6c01f2b2f4f3b10492f148ca46d4b2edef832738
README.md
README.md
Asteroids = An over-engineered implementation of Asteroids Dependencies - - [SDL2](http://libsdl.org/) - [glm](http://glm.g-truc.net/0.9.5/index.html) - [entityx](https://github.com/alecthomas/entityx) (downloaded by CMake) - [glLoadGen](https://bitbucket.org/alfonse/glloadgen/wiki/Home) (included)
Asteroids = An over-engineered implementation of Asteroids Dependencies - - [SDL2](http://libsdl.org/) - [glm](http://glm.g-truc.net/0.9.5/index.html) - [entityx](https://github.com/alecthomas/entityx) (downloaded by CMake) - [lfwatch](https://github.com/Twinklebear/lfwatch) (downloaded by CMake) - [glLoadGen](https:/...
Add dependency note for lfwatch
Add dependency note for lfwatch
Markdown
mit
Twinklebear/asteroids,Twinklebear/asteroids
markdown
## Code Before: Asteroids = An over-engineered implementation of Asteroids Dependencies - - [SDL2](http://libsdl.org/) - [glm](http://glm.g-truc.net/0.9.5/index.html) - [entityx](https://github.com/alecthomas/entityx) (downloaded by CMake) - [glLoadGen](https://bitbucket.org/alfonse/glloadgen/wiki/Home) (included) #...
1f814fa63da20d85f335c89350c382b1c4031a60
packages/utils-flex/test/config.json
packages/utils-flex/test/config.json
{ "lint": true, "postcss-reporter": { "plugins": ["stylelint"], "throwError": true } }
{ "lint": true, "postcss-reporter": { "plugins": ["stylelint", "postcss-bem-linter"], "throwError": true } }
Enable BEM linter reporting in tests
Enable BEM linter reporting in tests
JSON
mit
suitcss/suit,suitcss/suit
json
## Code Before: { "lint": true, "postcss-reporter": { "plugins": ["stylelint"], "throwError": true } } ## Instruction: Enable BEM linter reporting in tests ## Code After: { "lint": true, "postcss-reporter": { "plugins": ["stylelint", "postcss-bem-linter"], "throwError": true } }
c9b9cc8ba9a24335bb90ec7f147507f40081fd8c
is-module-not-found-error/index.js
is-module-not-found-error/index.js
// Whether given error is an error thrown by require internals in case module // (at given path) was not found "use strict"; var pathToken = ":path", pattern; try { require(pathToken); } catch (e) { pattern = e.message; } module.exports = function (error, path) { return error.message === pattern.replace(pathToken,...
// Whether given error is an error thrown by require internals in case module // (at given path) was not found "use strict"; var pathToken = ":path", pattern; var resolveMessage = function (error) { var newLineIndex = error.message.indexOf("\n"); return newLineIndex > 0 ? error.message.slice(0, newLineIndex) : err...
Fix isModuleNotFound crash in Node.js v12
fix: Fix isModuleNotFound crash in Node.js v12
JavaScript
isc
medikoo/cjs-module
javascript
## Code Before: // Whether given error is an error thrown by require internals in case module // (at given path) was not found "use strict"; var pathToken = ":path", pattern; try { require(pathToken); } catch (e) { pattern = e.message; } module.exports = function (error, path) { return error.message === pattern.re...
7a6de051139499edd80ddccafcfcba4f34515d35
Tools/bin/build.bat
Tools/bin/build.bat
@REM @REM Copyright (c) 2006, Intel Corporation @REM All rights reserved. This program and the accompanying materials @REM are licensed and made available under the terms and conditions of the BSD License @REM which accompanies this distribution. The full text of the license may be found at @REM http://opensource...
@REM @REM Copyright (c) 2006, Intel Corporation @REM All rights reserved. This program and the accompanying materials @REM are licensed and made available under the terms and conditions of the BSD License @REM which accompanies this distribution. The full text of the license may be found at @REM http://opensource...
Simplify the script. It now allows normal ant targets and flags to be passed straight through. For example
Simplify the script. It now allows normal ant targets and flags to be passed straight through. For example build –v clean build all –k git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@778 6f19259b-4bc3-4df7-8a09-765794883524
Batchfile
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
batchfile
## Code Before: @REM @REM Copyright (c) 2006, Intel Corporation @REM All rights reserved. This program and the accompanying materials @REM are licensed and made available under the terms and conditions of the BSD License @REM which accompanies this distribution. The full text of the license may be found at @REM http:/...
450cb67eed87952fd2d1c69b34adf4da48586f51
spec/lib/xdr/read/var_opaque_spec.rb
spec/lib/xdr/read/var_opaque_spec.rb
require 'spec_helper' describe XDR::Read::VarOpaque, "#read" do subject{ XDR::Read::VarOpaque.new(6) } it "decodes values correctly" do expect(read("\x00\x00\x00\x00")).to eq("") expect(read("\x00\x00\x00\x01\x00\x00\x00\x00")).to eq("\x00") expect(read("\x00\x00\x00\x01\x01\x00\x00\x00")).to eq("\x0...
require 'spec_helper' describe XDR::Read::VarOpaque, "#read" do subject{ XDR::Read::VarOpaque.new(2) } it "decodes values correctly" do expect(read("\x00\x00\x00\x00")).to eq("") expect(read("\x00\x00\x00\x01\x00\x00\x00\x00")).to eq("\x00") expect(read("\x00\x00\x00\x01\x01\x00\x00\x00")).to eq("\x0...
Add invalid length spec for VarOpaque
Add invalid length spec for VarOpaque
Ruby
apache-2.0
Payshare/ruby-xdr,stellar/ruby-xdr
ruby
## Code Before: require 'spec_helper' describe XDR::Read::VarOpaque, "#read" do subject{ XDR::Read::VarOpaque.new(6) } it "decodes values correctly" do expect(read("\x00\x00\x00\x00")).to eq("") expect(read("\x00\x00\x00\x01\x00\x00\x00\x00")).to eq("\x00") expect(read("\x00\x00\x00\x01\x01\x00\x00\x...
7278be28410c111280d4ccb566842419979843d3
mla_game/apps/transcript/management/commands/fake_game_one_gameplay.py
mla_game/apps/transcript/management/commands/fake_game_one_gameplay.py
import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) class Command(BaseCommand): help = 'Creates random votes for 5 phrases in a random t...
import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) from ...tasks import update_transcript_stats class Command(BaseCommand): help = 'Cre...
Use an actually random transcript; update stats immediately
Use an actually random transcript; update stats immediately
Python
mit
WGBH/FixIt,WGBH/FixIt,WGBH/FixIt
python
## Code Before: import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) class Command(BaseCommand): help = 'Creates random votes for 5 phras...
5e72bf8392bc4844ba5abcd49eb63c55d19d4657
applications/billing/src/main/kotlin/com/example/billing/reocurringPayments/Controller.kt
applications/billing/src/main/kotlin/com/example/billing/reocurringPayments/Controller.kt
package com.example.billing.reocurringPayments import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.actuate.metrics.CounterService import org.springframework.http.HttpHeaders import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springf...
package com.example.billing.reocurringPayments import com.example.payments.Gateway import org.springframework.boot.actuate.metrics.CounterService import org.springframework.http.HttpHeaders import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springframework.http.ResponseEnti...
Use constructor injection so you can make instance variables vals
Use constructor injection so you can make instance variables vals
Kotlin
mit
mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin
kotlin
## Code Before: package com.example.billing.reocurringPayments import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.actuate.metrics.CounterService import org.springframework.http.HttpHeaders import org.springframework.http.HttpStatus import org.springframework.http.MediaType im...
ce1395db9340ee694ef7a7c35d7d185e4319cf4e
plugins/spotify.py
plugins/spotify.py
from plugins.util import command, get_url import json import re SPOTIFY_URI_REGEX = r"(?<=spotify:)(?:track|album|artist):[a-zA-Z0-9]{22}" ENDPOINT = "https://api.spotify.com/v1/{0}s/{1}" @command() def spotify(m): spotify_uris = re.findall(SPOTIFY_URI_REGEX, m.body) for spotify_uri in spotify_uris: t...
from plugins.util import command, get_url import json import re SPOTIFY_URI_REGEX = r"(?<=spotify:)(?:track|album|artist):[a-zA-Z0-9]{22}" ENDPOINT = "https://api.spotify.com/v1/{0}s/{1}" @command() def spotify(m): spotify_uris = re.findall(SPOTIFY_URI_REGEX, m.body) for spotify_uri in spotify_uris: t...
Change formatting of response, add URL
Change formatting of response, add URL
Python
mit
quanticle/GorillaBot,quanticle/GorillaBot,molly/GorillaBot,molly/GorillaBot
python
## Code Before: from plugins.util import command, get_url import json import re SPOTIFY_URI_REGEX = r"(?<=spotify:)(?:track|album|artist):[a-zA-Z0-9]{22}" ENDPOINT = "https://api.spotify.com/v1/{0}s/{1}" @command() def spotify(m): spotify_uris = re.findall(SPOTIFY_URI_REGEX, m.body) for spotify_uri in spotify...
e8bfdf29e14c6ca1dd4769806721e2b6df404de2
app/workers/course_data_update_worker.rb
app/workers/course_data_update_worker.rb
require_dependency "#{Rails.root}/app/services/update_course_stats" class CourseDataUpdateWorker THIRTY_DAYS = 60 * 60 * 24 * 30 include Sidekiq::Worker sidekiq_options lock: :until_executed, lock_ttl: THIRTY_DAYS, retry: 0 # Move job to the 'dead' queue if it fails def sel...
require_dependency "#{Rails.root}/app/services/update_course_stats" class CourseDataUpdateWorker THIRTY_DAYS = 60 * 60 * 24 * 30 include Sidekiq::Worker sidekiq_options lock: :until_executed, lock_ttl: THIRTY_DAYS, retry: 0 # Move job to the 'dead' queue if it fails def sel...
Add logging to pin down which course(s) are causing OOM problems
Add logging to pin down which course(s) are causing OOM problems Sidekiq logs can be monitored in realtime via Nomad, so this should let me see which course updates are causing the Nomad jobs to be killed for OOM, so I can either optimize memory usage or find some other solution.
Ruby
mit
WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard
ruby
## Code Before: require_dependency "#{Rails.root}/app/services/update_course_stats" class CourseDataUpdateWorker THIRTY_DAYS = 60 * 60 * 24 * 30 include Sidekiq::Worker sidekiq_options lock: :until_executed, lock_ttl: THIRTY_DAYS, retry: 0 # Move job to the 'dead' queue if it ...
9143573ce064f8a7f8efc83a649407ba24ea4636
app/view/twig/editcontent/_templatefields.twig
app/view/twig/editcontent/_templatefields.twig
{% if not context.has.tabs %} <hr> <h3> {{ __('Template') }} </h3> {% endif %} {% set templatefields = context.content.get('templatefields').contenttype %} {% if templatefields is not empty %} {% for templatekey, templatefield in templatefields.fields %} <div class="form-group" dat...
{% if not context.has.tabs %} <hr> <h3> {{ __('Template') }} </h3> {% endif %} {% set templatefields = context.content.get('templatefields').contenttype %} {% if templatefields is not empty %} {% for templatekey, templatefield in templatefields.fields %} <div data-fieldtype="{{ tem...
Fix margin of templatefields fieldsets
Fix margin of templatefields fieldsets
Twig
mit
richardhinkamp/bolt,codesman/bolt,romulo1984/bolt,winiceo/bolt,CarsonF/bolt,cdowdy/bolt,richardhinkamp/bolt,electrolinux/bolt,romulo1984/bolt,nantunes/bolt,rossriley/bolt,pygillier/bolt,nantunes/bolt,pygillier/bolt,Intendit/bolt,bolt/bolt,Eiskis/bolt-base,cdowdy/bolt,rarila/bolt,Raistlfiren/bolt,lenvanessen/bolt,HonzaM...
twig
## Code Before: {% if not context.has.tabs %} <hr> <h3> {{ __('Template') }} </h3> {% endif %} {% set templatefields = context.content.get('templatefields').contenttype %} {% if templatefields is not empty %} {% for templatekey, templatefield in templatefields.fields %} <div class=...
74f8308a358fa5d298c3a3e880e94f11b206a44a
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
- ### Addressed issues: - Fixes # . ### Implemented feature requests: - Feathub #[XX](https://feathub.com/Flexget/Flexget/+XX). ### Config usage if relevant (new plugin or updated schema): ``` paste_config_here ``` ### Log and/or tests output (preferably both): ``` paste output here ``` #### To Do: - [ ] Stuff..
- ### Addressed issues/feature requests: - Fixes # . ### Config usage if relevant (new plugin or updated schema): ``` paste_config_here ``` ### Log and/or tests output (preferably both): ``` paste output here ``` #### To Do: - [ ] Stuff..
Remove feathub reference from PR template
Remove feathub reference from PR template
Markdown
mit
Flexget/Flexget,Flexget/Flexget,Flexget/Flexget,Flexget/Flexget
markdown
## Code Before: - ### Addressed issues: - Fixes # . ### Implemented feature requests: - Feathub #[XX](https://feathub.com/Flexget/Flexget/+XX). ### Config usage if relevant (new plugin or updated schema): ``` paste_config_here ``` ### Log and/or tests output (preferably both): ``` paste output here ``` #### To Do: ...
051aec9fc0162fed2f9f75209c3a6e317acfaf60
init.sh
init.sh
ELLIPSIS_INIT=1 # Set path variables ELLIPSIS_BIN="$ELLIPSIS_PATH/bin" ELLIPSIS_SRC="$ELLIPSIS_PATH/src" # Default locations for ellipsis and packages. ELLIPSIS_HOME="${ELLIPSIS_HOME:-$HOME}" ELLIPSIS_PACKAGES="${ELLIPSIS_PACKAGES:-$ELLIPSIS_PATH/packages}" if [ -z "$ELLIPSIS_USER" ]; then # Pipe to cat to squa...
ELLIPSIS_INIT=1 # Set path variables ELLIPSIS_PATH="${ELLIPSIS_PATH:-$HOME/.ellipsis}" ELLIPSIS_BIN="$ELLIPSIS_PATH/bin" ELLIPSIS_SRC="$ELLIPSIS_PATH/src" # Default locations for ellipsis and packages. ELLIPSIS_HOME="${ELLIPSIS_HOME:-$HOME}" ELLIPSIS_PACKAGES="${ELLIPSIS_PACKAGES:-$ELLIPSIS_PATH/packages}" if [ -z ...
Use default ELLIPSIS_PATH if not specified
Use default ELLIPSIS_PATH if not specified
Shell
mit
ellipsis/ellipsis
shell
## Code Before: ELLIPSIS_INIT=1 # Set path variables ELLIPSIS_BIN="$ELLIPSIS_PATH/bin" ELLIPSIS_SRC="$ELLIPSIS_PATH/src" # Default locations for ellipsis and packages. ELLIPSIS_HOME="${ELLIPSIS_HOME:-$HOME}" ELLIPSIS_PACKAGES="${ELLIPSIS_PACKAGES:-$ELLIPSIS_PATH/packages}" if [ -z "$ELLIPSIS_USER" ]; then # Pip...
f174026d7780fed8192c4e7f66f7c987471492d4
server/initializers/authentication.coffee
server/initializers/authentication.coffee
passport = require('passport') BasicStrategy = require('passport-http').BasicStrategy passport.serializeUser (user, done) -> done(null, user._id) passport.deserializeUser (id, done) -> User = require('../models/user').model User .find(id) .exec( (err, user) -> if err? console.error err ...
passport = require('passport') BasicStrategy = require('passport-http').BasicStrategy passport.serializeUser (user, done) -> done(null, user._id) passport.deserializeUser (id, done) -> User = require('../models/user').model unless id? console.error 'No user ID supplied' return done(err, false) User ...
Fix bug where all users are returned when not authenticated
Fix bug where all users are returned when not authenticated
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
coffeescript
## Code Before: passport = require('passport') BasicStrategy = require('passport-http').BasicStrategy passport.serializeUser (user, done) -> done(null, user._id) passport.deserializeUser (id, done) -> User = require('../models/user').model User .find(id) .exec( (err, user) -> if err? conso...
a7b51a9ba691f68395904e7273eb9715bd730f4b
dot.vim/rc/dein.toml
dot.vim/rc/dein.toml
[[plugins]] repo = 'Shougo/dein.vim' [[plugins]] repo = 'Shougo/vimproc.vim' build = 'make' [[plugins]] repo = 'cespare/vim-toml' on_ft = 'toml' [[plugins]] repo = 'elzr/vim-json' on_ft = 'json' [[plugins]] repo = 'vim-jp/autofmt' [[plugins]] repo = 'rcmdnk/vim-markdown' on_ft = ['markdown', 'mkd'] [[plugins]] re...
[[plugins]] repo = 'Shougo/dein.vim' [[plugins]] repo = 'Shougo/vimproc.vim' build = 'make' [[plugins]] repo = 'cespare/vim-toml' on_ft = 'toml' [[plugins]] repo = 'elzr/vim-json' on_ft = 'json' [[plugins]] repo = 'vim-jp/autofmt' [[plugins]] repo = 'rcmdnk/vim-markdown' on_ft = ['markdown', 'mkd'] [[plugins]] re...
Add css3 plugin of vim
Add css3 plugin of vim
TOML
mit
ojiry/dotfiles
toml
## Code Before: [[plugins]] repo = 'Shougo/dein.vim' [[plugins]] repo = 'Shougo/vimproc.vim' build = 'make' [[plugins]] repo = 'cespare/vim-toml' on_ft = 'toml' [[plugins]] repo = 'elzr/vim-json' on_ft = 'json' [[plugins]] repo = 'vim-jp/autofmt' [[plugins]] repo = 'rcmdnk/vim-markdown' on_ft = ['markdown', 'mkd']...
892c4ed367e3afaa3d7ba9b7c9e13fa9ec847665
index.md
index.md
--- layout: home excerpt: "Caleb Wherry's Website" tags: [vivalascience, scientific software engineering] share: off image: feature: main-banner-2.jpg credit: #lewatonline.com creditlink: #http://lewatonline.com/wp-content/uploads/2015/02/Slider-Final1-1900x500.jpg --- Welcome to my site! You will find various i...
--- layout: home excerpt: "Caleb Wherry's Website" tags: [vivalascience, scientific software engineering] share: off image: feature: main-banner-2.jpg credit: #lewatonline.com creditlink: #http://lewatonline.com/wp-content/uploads/2015/02/Slider-Final1-1900x500.jpg --- Welcome to my site! You will find various i...
Update intro blurb with new job
Update intro blurb with new job
Markdown
mit
calebwherry/calebwherry.github.io,calebwherry/calebwherry.github.io,calebwherry/calebwherry.github.io
markdown
## Code Before: --- layout: home excerpt: "Caleb Wherry's Website" tags: [vivalascience, scientific software engineering] share: off image: feature: main-banner-2.jpg credit: #lewatonline.com creditlink: #http://lewatonline.com/wp-content/uploads/2015/02/Slider-Final1-1900x500.jpg --- Welcome to my site! You wil...
9c8c162639b69413955838f5f944740a5b8becc9
plugins/space/src/main/kotlin/circlet/settings/CircletProjectSettings.kt
plugins/space/src/main/kotlin/circlet/settings/CircletProjectSettings.kt
package circlet.settings import circlet.utils.* import com.intellij.openapi.components.* import com.intellij.openapi.project.* import runtime.reactive.* @State(name = "CircletProjectSettings", storages = [Storage(StoragePathMacros.WORKSPACE_FILE)]) class CircletProjectSettings(private val project: Project) : ILif...
package circlet.settings import circlet.utils.* import com.intellij.openapi.components.* import com.intellij.openapi.project.* import runtime.reactive.* @State( name = "CircletProjectSettings", storages = [Storage(value = "CircletClient.xml", roamingType = RoamingType.DISABLED)] ) class CircletProjectSettings...
Store settings in IDEA in separate file
Store settings in IDEA in separate file GitOrigin-RevId: 5ff267c6d69c07638bedac97e603a1603e81e22e
Kotlin
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
kotlin
## Code Before: package circlet.settings import circlet.utils.* import com.intellij.openapi.components.* import com.intellij.openapi.project.* import runtime.reactive.* @State(name = "CircletProjectSettings", storages = [Storage(StoragePathMacros.WORKSPACE_FILE)]) class CircletProjectSettings(private val project: Pro...
d302d6f857657ada229f78d9fcd32f63753d9779
client/components/boards/boardBody.jade
client/components/boards/boardBody.jade
template(name="board") if isBoardReady.get if currentBoard if onlyShowCurrentCard +cardDetails(currentCard) else +boardBody else //-- XXX We need a better error message in case the board has been archived //-- +message(label="board-not-found") | {{goHome}} else ...
template(name="board") if isBoardReady.get if currentBoard if onlyShowCurrentCard +cardDetails(currentCard) else +boardBody else //-- XXX We need a better error message in case the board has been archived +message(label="board-not-found") //-- | {{goHome}} else ...
Fix bug: When on board, clicking Admin Panel redirects to All Boards page, so it did require to click Admin Panel again.
Fix bug: When on board, clicking Admin Panel redirects to All Boards page, so it did require to click Admin Panel again. Thanks to xet7 !
Jade
mit
wekan/wekan,GhassenRjab/wekan,wekan/wekan,wekan/wekan,GhassenRjab/wekan,wekan/wekan,wekan/wekan,GhassenRjab/wekan
jade
## Code Before: template(name="board") if isBoardReady.get if currentBoard if onlyShowCurrentCard +cardDetails(currentCard) else +boardBody else //-- XXX We need a better error message in case the board has been archived //-- +message(label="board-not-found") | {{...
f8614d73a548a2125aa7245932d59a2c3f06f36a
package.js
package.js
Package.describe({ summary: 'Minifiers for Meteor with PostCSS processing - use Autoprefixer and others with ease', version: '0.2.4', name: 'juliancwirko:postcss', git: 'https://github.com/juliancwirko/meteor-postcss.git' }); Package.registerBuildPlugin({ name: 'minifiers-postcss', use: [ ...
Package.describe({ summary: 'Minifiers for Meteor with PostCSS processing - use Autoprefixer and others with ease', version: '0.2.4', name: 'juliancwirko:postcss', git: 'https://github.com/juliancwirko/meteor-postcss.git' }); Package.registerBuildPlugin({ name: 'minifiers-postcss', use: [ ...
Remove promise from NPM dependencies
Remove promise from NPM dependencies Meteor has https://github.com/meteor/promise already.
JavaScript
mit
juliancwirko/meteor-postcss
javascript
## Code Before: Package.describe({ summary: 'Minifiers for Meteor with PostCSS processing - use Autoprefixer and others with ease', version: '0.2.4', name: 'juliancwirko:postcss', git: 'https://github.com/juliancwirko/meteor-postcss.git' }); Package.registerBuildPlugin({ name: 'minifiers-postcss', ...
cf49610b3c93fc46412961f02c4e35bc8a9717ad
step-release-vis/src/app/components/environments/environments_test.ts
step-release-vis/src/app/components/environments/environments_test.ts
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {EnvironmentsComponent} from './environments'; import {HttpClientTestingModule} from '@angular/common/http/testing'; describe('EnvironmentsComponent', () => { let component: EnvironmentsComponent; let fixture: ComponentFixture<Environm...
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {EnvironmentsComponent} from './environments'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {FileServiceStub} from '../../../testing/FileServiceStub'; import {FileService} from '../../services/file'; import {...
Add test for Environments component.
Add test for Environments component.
TypeScript
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
typescript
## Code Before: import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {EnvironmentsComponent} from './environments'; import {HttpClientTestingModule} from '@angular/common/http/testing'; describe('EnvironmentsComponent', () => { let component: EnvironmentsComponent; let fixture: Component...
2b22eb2b65bdc67e6f34a3c5609d4ed0f376ab0c
app/views/layouts/_page_title_wrapper.html.erb
app/views/layouts/_page_title_wrapper.html.erb
<section id="page-title-wrapper" class="section page-title-wrapper"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-6 page-title"> <h4><%= @page_name %></h4> </div> <!-- /.page-title --> <div class="col-xs-6 hid...
<section id="page-title-wrapper" class="section page-title-wrapper"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-6 page-title"> <h4><%= @page_name %></h4> </div> <!-- /.page-title --> <div class="col-xs-6 hid...
Fix bug displaying Static Pages controller on About page
Fix bug displaying Static Pages controller on About page
HTML+ERB
mit
amcaplan/flatiron_showcase,amcaplan/flatiron_showcase,amcaplan/flatiron_showcase
html+erb
## Code Before: <section id="page-title-wrapper" class="section page-title-wrapper"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-6 page-title"> <h4><%= @page_name %></h4> </div> <!-- /.page-title --> <div cla...
979f72a839dcdc96f74326e2e7086efb9811231d
.azure/pipelines/fast-pr-validation.yml
.azure/pipelines/fast-pr-validation.yml
trigger: - master - release/* jobs: - template: project-ci.yml parameters: buildArgs: "/t:FastCheck" - job: RepoBuilds pool: vmImage: vs2017-win2016 strategy: maxParallel: 3 matrix: DataProtection: _FolderName: DataProtection WebSockets: _FolderName: WebSockets steps...
trigger: - master - release/* jobs: - template: jobs/default-build.yml parameters: jobName: PR_FastCheck jobDisplayName: Fast Check agentOs: Windows buildArgs: "/p:FastCheck" - template: jobs/default-build.yml parameters: jobName: Windows_Build jobDisplayName: "Build: Windows" agentOs: ...
Update PR validation to run a real build
Update PR validation to run a real build
YAML
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
yaml
## Code Before: trigger: - master - release/* jobs: - template: project-ci.yml parameters: buildArgs: "/t:FastCheck" - job: RepoBuilds pool: vmImage: vs2017-win2016 strategy: maxParallel: 3 matrix: DataProtection: _FolderName: DataProtection WebSockets: _FolderName: We...
536e8653ade3f593f338c3b66a916c4e38e1c00c
server/serve.ts
server/serve.ts
const process = require('process'); const loadApp = require('./apps'); import config from './config'; const seed = require('./seeds/'); import logger from './apps/lib/logger'; (async () => { if (process.env.SEED_ON_START === 'true') { await seed(); } const app = await loadApp; const listener = app.list...
const process = require('process'); import loadApp from './apps' import config from './config'; const seed = require('./seeds/'); import logger from './apps/lib/logger'; import connect from './instances/sequelize'; connect().then(async () => { if (process.env.SEED_ON_START === 'true') { await seed(); } ...
Add db connection to startup.
Add db connection to startup.
TypeScript
mit
CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/cmpd-holiday-gift-backend
typescript
## Code Before: const process = require('process'); const loadApp = require('./apps'); import config from './config'; const seed = require('./seeds/'); import logger from './apps/lib/logger'; (async () => { if (process.env.SEED_ON_START === 'true') { await seed(); } const app = await loadApp; const lis...
c5ba18d7044a7054da8d0ee6015e05a509e5929a
keyboard_example.rb
keyboard_example.rb
require 'gosu' class KeyboardExample < Gosu::Window def initialize super 640, 480 self.caption = "Keyboard Example" @font = Gosu::Font.new(32, name: "Nimbus Mono L") input = Gosu::TextInput.new def input.filter text_in puts 'I got called!' 'Otter!' end self.text_input = input self.text_inp...
require 'gosu' class KeyboardExample < Gosu::Window def initialize super 640, 480 self.caption = "Keyboard Example" @font = Gosu::Font.new(32, name: "Nimbus Mono L") self.text_input = Gosu::TextInput.new self.text_input.text = "Type something!" @text_y = 20 end def button_up(key_id) if key_id ...
Remove filter from keyboard example.
Remove filter from keyboard example.
Ruby
mit
madigan/GameDev100
ruby
## Code Before: require 'gosu' class KeyboardExample < Gosu::Window def initialize super 640, 480 self.caption = "Keyboard Example" @font = Gosu::Font.new(32, name: "Nimbus Mono L") input = Gosu::TextInput.new def input.filter text_in puts 'I got called!' 'Otter!' end self.text_input = input...
84469c8c33aad9725b0f15421989d057df7acc40
source/_includes/custom/footer.html
source/_includes/custom/footer.html
Copyright &copy; {{ site.time | date: "%Y" }} {{ site.author }}
Copyright &copy; {{ site.time | date: "%Y" }} {% if site.author %} {{ site.author }} {% else %} {{ site.title }} {% endif %}
Use site.title in the copyright notice if site.author is not available.
Use site.title in the copyright notice if site.author is not available.
HTML
mit
tommy351/Octopress-Theme-Slash,tommy351/Octopress-Theme-Slash
html
## Code Before: Copyright &copy; {{ site.time | date: "%Y" }} {{ site.author }} ## Instruction: Use site.title in the copyright notice if site.author is not available. ## Code After: Copyright &copy; {{ site.time | date: "%Y" }} {% if site.author %} {{ site.author }} {% else %} {{ site.title }} {% endif %}
991f3bdc32fd74e8cd2eca88b2b680ec26f58622
server/zanata-frontend/src/frontend/app/containers/ProjectVersion/index.js
server/zanata-frontend/src/frontend/app/containers/ProjectVersion/index.js
import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import Helmet from 'react-helmet' import TMMergeModal from './TMMergeModal' import { toggleTMMergeModal } from '../../actions/version-actions' /** * Root component for Project Version Page */ class Projec...
import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import TMMergeModal from './TMMergeModal' import { toggleTMMergeModal } from '../../actions/version-actions' /** * Root component for Project Version Page */ class ProjectVersion extends Component { sta...
Remove Helmet from ProjectVersion page
fix(ZNTA-2146): Remove Helmet from ProjectVersion page
JavaScript
lgpl-2.1
zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform
javascript
## Code Before: import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import Helmet from 'react-helmet' import TMMergeModal from './TMMergeModal' import { toggleTMMergeModal } from '../../actions/version-actions' /** * Root component for Project Version Page ...
e855ecb776bfdfd46eb0ee43f922e98aac3ea828
t/Tags::Output::Raw/03-pod.t
t/Tags::Output::Raw/03-pod.t
use English qw(-no_match_vars); use File::Object; use Test::More 'tests' => 1; eval 'use Test::Pod 1.00'; if ($EVAL_ERROR) { plan skip_all => 'Test::Pod 1.00 required for testing POD'; } pod_file_ok(File::Object->new->up(2)->file_path('Tags/Output/Raw.pm') ->serialize);
use English qw(-no_match_vars); use File::Object; use Test::More 'tests' => 1; eval 'use Test::Pod 1.00'; if ($EVAL_ERROR) { plan skip_all => 'Test::Pod 1.00 required for testing POD'; } pod_file_ok(File::Object->new->up(2)->file('Tags', 'Output', 'Raw.pm')->s);
Rewrite to new version of File::Object.
Rewrite to new version of File::Object.
Perl
bsd-2-clause
tupinek/Tags,tupinek/Tags
perl
## Code Before: use English qw(-no_match_vars); use File::Object; use Test::More 'tests' => 1; eval 'use Test::Pod 1.00'; if ($EVAL_ERROR) { plan skip_all => 'Test::Pod 1.00 required for testing POD'; } pod_file_ok(File::Object->new->up(2)->file_path('Tags/Output/Raw.pm') ->serialize); ## Instruction: Rewrite to ne...
8932d0717bf57c86b81b6744353d6387821b8b15
wsgi/setup.py
wsgi/setup.py
import subprocess import sys import setup_util import os def start(args): subprocess.Popen("gunicorn hello:app -b 0.0.0.0:8080 -w " + str((args.max_threads * 2)) + " --log-level=critical", shell=True, cwd="wsgi") return 0 def stop(): p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE) out, err = p.com...
import subprocess import sys import setup_util import os def start(args): subprocess.Popen('gunicorn hello:app --worker-class="egg:meinheld#gunicorn_worker" -b 0.0.0.0:8080 -w ' + str((args.max_threads * 2)) + " --log-level=critical", shell=True, cwd="wsgi") return 0 def stop(): p = subproces...
Use meinheld worker (same as other Python Frameworks)
wsgi: Use meinheld worker (same as other Python Frameworks)
Python
bsd-3-clause
jamming/FrameworkBenchmarks,s-ludwig/FrameworkBenchmarks,Ocramius/FrameworkBenchmarks,diablonhn/FrameworkBenchmarks,ashawnbandy-te-tfb/FrameworkBenchmarks,zloster/FrameworkBenchmarks,donovanmuller/FrameworkBenchmarks,zdanek/FrameworkBenchmarks,markkolich/FrameworkBenchmarks,circlespainter/FrameworkBenchmarks,saturday06...
python
## Code Before: import subprocess import sys import setup_util import os def start(args): subprocess.Popen("gunicorn hello:app -b 0.0.0.0:8080 -w " + str((args.max_threads * 2)) + " --log-level=critical", shell=True, cwd="wsgi") return 0 def stop(): p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE) ...
3a25d25f19415e444e7126db938b5f55c06e4ad9
data/menu/locales.yml
data/menu/locales.yml
- id: 'en' name: 'English' - id: 'de' name: 'Deutsch' - id: 'fr' name: 'Français' - id: 'ru' name: 'Русский'
- id: 'cs' name: 'Česky' - id: 'en' name: 'English' - id: 'de' name: 'Deutsch' - id: 'fr' name: 'Français' - id: 'ru' name: 'Русский'
Add Czech to locale select page
[Add] Add Czech to locale select page
YAML
agpl-3.0
skybon/rigsofrods-website,skybon/rigsofrods-website,skybon/rigsofrods-website,skybon/rigsofrods-website
yaml
## Code Before: - id: 'en' name: 'English' - id: 'de' name: 'Deutsch' - id: 'fr' name: 'Français' - id: 'ru' name: 'Русский' ## Instruction: [Add] Add Czech to locale select page ## Code After: - id: 'cs' name: 'Česky' - id: 'en' name: 'English' - id: 'de' name: 'Deutsch' - id: 'fr' na...
9e05b3a933b9914f659c98da50bca3c35a8ced0f
src/port/portall.tcl
src/port/portall.tcl
package require darwinports dportinit package require Pextlib global target proc port_traverse {func {dir .}} { set pwd [pwd] if [catch {cd $dir} err] { ui_error $err return } foreach name [readdir .] { if {[string match $name .] || [string match $name ..]} { continue } if [file isdirectory...
package require darwinports dportinit package require Pextlib global target proc port_traverse {func {dir .}} { set pwd [pwd] if [catch {cd $dir} err] { ui_error $err return } foreach name [readdir .] { if {[string match $name .] || [string match $name ..]} { continue } if [file isdirectory...
Fix message to print proper action
Fix message to print proper action git-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@633 d073be05-634f-4543-b044-5fe20cf6d1d6
Tcl
bsd-3-clause
danchr/macports-base,neverpanic/macports-base,macports/macports-base,neverpanic/macports-base,macports/macports-base,danchr/macports-base
tcl
## Code Before: package require darwinports dportinit package require Pextlib global target proc port_traverse {func {dir .}} { set pwd [pwd] if [catch {cd $dir} err] { ui_error $err return } foreach name [readdir .] { if {[string match $name .] || [string match $name ..]} { continue } if [...
b286e03f96cce8518dd60b74ff8dac6d7b7c5a97
octohatrack/helpers.py
octohatrack/helpers.py
import sys def display_results(repo_name, contributors, api_len): """ Fancy display. """ print("\n") print("All Contributors:") # Sort and consolidate on Name seen = [] for user in sorted(contributors, key=lambda k: k['name'].lower()): if user["name"] not in seen: ...
import sys def _sort_by_name(contributor): if contributor.get('name'): return contributor['name'].lower() return contributor['user_name'] def display_results(repo_name, contributors, api_len): """ Fancy display. """ print("\n") print("All Contributors:") # Sort and conso...
Support users with no name
display_results: Support users with no name A user without a name causes an exception, and the dedup algorithm also merged users without a name as all of their names were `None`. Fixes https://github.com/LABHR/octohatrack/issues/103
Python
bsd-3-clause
LABHR/octohatrack,glasnt/octohat
python
## Code Before: import sys def display_results(repo_name, contributors, api_len): """ Fancy display. """ print("\n") print("All Contributors:") # Sort and consolidate on Name seen = [] for user in sorted(contributors, key=lambda k: k['name'].lower()): if user["name"] not in...
1efcc8aba4eea0e13a37a72d7f799c250bd27126
resources/assets/css/shows_list.css
resources/assets/css/shows_list.css
padding-top: 10px; padding-bottom: 80px; /* Height of the footer + 150 */ background-color: #e9e7e7 !important; }
padding: 10px; background-color: #e9e7e7 !important; }
Add padding so show list looks decent on small screens
Add padding so show list looks decent on small screens
CSS
agpl-3.0
subtitulamos/subtitulamos,subtitulamos/subtitulamos,subtitulamos/subtitulamos,subtitulamos/subtitulamos,subtitulamos/subtitulamos
css
## Code Before: padding-top: 10px; padding-bottom: 80px; /* Height of the footer + 150 */ background-color: #e9e7e7 !important; } ## Instruction: Add padding so show list looks decent on small screens ## Code After: padding: 10px; background-color: #e9e7e7 !important; }
b92e803e682e9cd3d7fe7e0ce8a765e862488758
test/test_jade-rails.rb
test/test_jade-rails.rb
require 'jade-rails' require 'test/unit' class JadeTest < Test::Unit::TestCase JADE_TEMPLATE_FUNCTION_PATTERN = /^function\s+template\s*\(locals\)\s*\{.*\}$/m def test_compile template = File.read(File.expand_path('../../vendor/assets/javascripts/jade/sample_template.jade', __FILE__)) result = Jade.compil...
require 'jade-rails' require 'test/unit' class JadeTest < Test::Unit::TestCase JADE_TEMPLATE_FUNCTION_PATTERN = /^function\s+template\s*\(locals\)\s*\{.*\}$/m def test_compile template = File.read(File.expand_path('../../vendor/assets/javascripts/jade/sample_template.jade', __FILE__)) result = Jade.compil...
Test Suite: Add test coverage for compilation errors.
Test Suite: Add test coverage for compilation errors.
Ruby
mit
muthhus/jade-rails,mahipal/jade-rails
ruby
## Code Before: require 'jade-rails' require 'test/unit' class JadeTest < Test::Unit::TestCase JADE_TEMPLATE_FUNCTION_PATTERN = /^function\s+template\s*\(locals\)\s*\{.*\}$/m def test_compile template = File.read(File.expand_path('../../vendor/assets/javascripts/jade/sample_template.jade', __FILE__)) resu...
5513cab3f1fe95ee37100f102f4d5cb2d52ce1f3
app/assets/javascripts/collections/book_fields.js
app/assets/javascripts/collections/book_fields.js
$(document).ready(function(){ $("#book-fields").hide(); $("#show").click(function(){ $("#book-fields").show(); }); });
$(function() { $("#book-fields").hide(); $("#show").click(function(){ $("#book-fields").show(); }); });
Refactor redundancy in book fields function
Refactor redundancy in book fields function
JavaScript
mit
evanscloud/monocle,evanscloud/monocle,evanscloud/monocle
javascript
## Code Before: $(document).ready(function(){ $("#book-fields").hide(); $("#show").click(function(){ $("#book-fields").show(); }); }); ## Instruction: Refactor redundancy in book fields function ## Code After: $(function() { $("#book-fields").hide(); $("#show").click(function(){ $("#book-fields")....
f6a97c1fa83d1ae6692fcd40b9bfd0c02b634b49
app/styles/ui/changes/_changes-view.scss
app/styles/ui/changes/_changes-view.scss
.changed-file { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; .header { background: var(--diff-hunk-background-color); border-bottom: 1px solid var(--diff-border-color); display: flex; flex-direction: row; flex-shrink: 0; flex-grow: 0; padding: var(--spacing...
.changed-file { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; .header { background: var(--diff-hunk-background-color); border-bottom: 1px solid var(--diff-border-color); display: flex; flex-direction: row; flex-shrink: 0; flex-grow: 0; padding: var(--spacing...
Adjust padding for file path
Adjust padding for file path
SCSS
mit
kactus-io/kactus,gengjiawen/desktop,j-f1/forked-desktop,BugTesterTest/desktops,hjobrien/desktop,gengjiawen/desktop,say25/desktop,desktop/desktop,gengjiawen/desktop,gengjiawen/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,artivilla/desktop,desktop/desktop,shiftkey/desktop,j-f1/forke...
scss
## Code Before: .changed-file { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; .header { background: var(--diff-hunk-background-color); border-bottom: 1px solid var(--diff-border-color); display: flex; flex-direction: row; flex-shrink: 0; flex-grow: 0; paddin...
52e52d0eb7ab9049a25fc86a9be3974ad68c81c6
examples/simple-chat/src/main/scala/code/snippet/Signup.scala
examples/simple-chat/src/main/scala/code/snippet/Signup.scala
package code package snippet import net.liftweb.http._ import net.liftweb.util.Helpers._ import com.hacklanta.formality.Formality import Formality._ import model.User object Signup { import net.liftweb.sitemap._ import Loc._ val menu = Menu.i("signup") / "signup" >> If( LoginHelpers.not...
package code package snippet import net.liftweb.http._ import net.liftweb.util.Helpers._ import com.hacklanta.formality._ import Formality._ import Html5Validations._ import model.User object Signup { import net.liftweb.sitemap._ import Loc._ val menu = Menu.i("signup") / "signup" >> If( ...
Add not-blank validations to email and password fields.
Add not-blank validations to email and password fields.
Scala
mit
hacklanta/lift-formality
scala
## Code Before: package code package snippet import net.liftweb.http._ import net.liftweb.util.Helpers._ import com.hacklanta.formality.Formality import Formality._ import model.User object Signup { import net.liftweb.sitemap._ import Loc._ val menu = Menu.i("signup") / "signup" >> If( ...
88755bc70999921466dfbc698583b4d5f6c723c8
.shell/common.sh
.shell/common.sh
export TERM=xterm-256color ## less options export LESS='-g -i -M -R -S -w -z-4' ## GitHub API github_token="$HOME/.github" [[ -e $github_token ]] && source $github_token ## homebrew GitHub API homebrew_token="$HOME/.homebrew" [[ -e $homebrew_token ]] && source $homebrew_token ## path source ~/.shell/path-edit.sh pa...
export TERM=xterm-256color ## less options export LESS='-g -i -M -R -S -w -z-4' ## path source ~/.shell/path-edit.sh path_front "bin" "$HOME/bin" "/usr/local/bin" "$HOME/.rbenv/bin" path_back "/sbin" "/bin" "/usr/sbin" "/usr/bin" "$HOME/.cask/bin" ## aliases source ~/.shell/aliases.sh ## local settings [[ -e ~/.loc...
Move tokens to local settings
Move tokens to local settings
Shell
agpl-3.0
andschwa/dotfiles,andschwa/dotfiles,andschwa/dotfiles
shell
## Code Before: export TERM=xterm-256color ## less options export LESS='-g -i -M -R -S -w -z-4' ## GitHub API github_token="$HOME/.github" [[ -e $github_token ]] && source $github_token ## homebrew GitHub API homebrew_token="$HOME/.homebrew" [[ -e $homebrew_token ]] && source $homebrew_token ## path source ~/.shell...
f88840b9626fc5ea11e5207ae65585a7574920ea
packages/cr/crdt.yaml
packages/cr/crdt.yaml
homepage: https://github.com/cblp/crdt#readme changelog-type: '' hash: b3277b8d6a49a6ebded52b60bc4690d8d6e3d0dbe3e3d079084726c3f42b343e test-bench-deps: base: ! '>=4.9 && <4.11' tasty-discover: ! '>=4.1' containers: -any tasty-quickcheck: -any mtl: -any tasty: -any QuickCheck: -any crdt: -any maintainer...
homepage: https://github.com/cblp/crdt#readme changelog-type: '' hash: 23502f91654d8c7e97a6352f80b83f815f2947d8e8e161c0f196607930277dc7 test-bench-deps: base: ! '>=4.9 && <4.11' tasty-discover: ! '>=4.1' containers: -any tasty-quickcheck: -any mtl: -any tasty: -any QuickCheck: -any crdt: -any maintainer...
Update from Hackage at 2017-11-29T21:27:37Z
Update from Hackage at 2017-11-29T21:27:37Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/cblp/crdt#readme changelog-type: '' hash: b3277b8d6a49a6ebded52b60bc4690d8d6e3d0dbe3e3d079084726c3f42b343e test-bench-deps: base: ! '>=4.9 && <4.11' tasty-discover: ! '>=4.1' containers: -any tasty-quickcheck: -any mtl: -any tasty: -any QuickCheck: -any crdt:...
6d7ccd5b1b7c0b630565ba411bbe140afa187caf
FormulaEngine/EntryPoint.cpp
FormulaEngine/EntryPoint.cpp
// // FormulaEngine Project // By Mike Lewis - 2015 // // Project entry point routine // #include "Pch.h" #include "Tests.h" #include "Simulation.h" // This is Microsoft-specific for _TCHAR and _tmain. // The entry point can be trivially rewritten for other // compilers/platforms, so I'm not puttin...
// // FormulaEngine Project // By Mike Lewis - 2015 // // Project entry point routine // #include "Pch.h" #include "Tests.h" #include "Simulation.h" // This is Microsoft-specific for _TCHAR and _tmain. // The entry point can be trivially rewritten for other // compilers/platforms, so I'm not puttin...
Add stubbed out code for leak checking on MSVC
Add stubbed out code for leak checking on MSVC
C++
bsd-3-clause
apoch/formula-engine,apoch/formula-engine,apoch/formula-engine
c++
## Code Before: // // FormulaEngine Project // By Mike Lewis - 2015 // // Project entry point routine // #include "Pch.h" #include "Tests.h" #include "Simulation.h" // This is Microsoft-specific for _TCHAR and _tmain. // The entry point can be trivially rewritten for other // compilers/platforms, so I'm not puttin...
be29a92d0ff6ff0030f1af9e35f84d73d3f04f6d
src/Behavior/ChronopostCodesTransformer.php
src/Behavior/ChronopostCodesTransformer.php
<?php namespace LWI\DeliveryTracking\Behavior; use LWI\DeliveryTracking\DeliveryStatus; trait ChronopostCodesTransformer { /** * @param string $code * * @return null | DeliveryStatus */ protected function getStateFromCode($code) { switch ($code) { case 'D': ...
<?php namespace LWI\DeliveryTracking\Behavior; use LWI\DeliveryTracking\DeliveryStatus; trait ChronopostCodesTransformer { /** * @param string $code * * @return null | DeliveryStatus */ protected function getStateFromCode($code) { switch ($code) { case 'D': ...
Add some chronopost codes to recognize
Add some chronopost codes to recognize
PHP
mit
lwiesel/delivery-tracking
php
## Code Before: <?php namespace LWI\DeliveryTracking\Behavior; use LWI\DeliveryTracking\DeliveryStatus; trait ChronopostCodesTransformer { /** * @param string $code * * @return null | DeliveryStatus */ protected function getStateFromCode($code) { switch ($code) { c...
156c5d04c69a11d798bb0329055ee46c9050fd11
package.json
package.json
{ "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version --parallel upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extensio...
{ "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extension/manifest....
Deploy to stores serially, so AMO can finish if Chrome fails
Deploy to stores serially, so AMO can finish if Chrome fails
JSON
mit
tanmayrajani/notifications-preview-github,tanmayrajani/notifications-preview-github
json
## Code Before: { "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version --parallel upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "d...
c48db3d6b3ee61f21969ea090999f5244385c90d
mockall/tests/automock_module_nonpub.rs
mockall/tests/automock_module_nonpub.rs
// vim: tw=80 //! bare functions can use non-public types, as long as the object's visibility is compatible. // mocking modules requires the proc_macro_hygiene feature in the _consumer_ // code #![cfg_attr(feature = "nightly", feature(proc_macro_hygiene))] #[allow(unused)] cfg_if::cfg_if! { if #[cfg(feature = "ni...
// vim: tw=80 //! bare functions can use non-public types, as long as the object's visibility is compatible. // mocking modules requires the proc_macro_hygiene feature in the _consumer_ // code #![cfg_attr(feature = "nightly", feature(proc_macro_hygiene))] #[allow(unused)] cfg_if::cfg_if! { if #[cfg(feature = "ni...
Fix some unused warnings with the latest rustc compiler
Fix some unused warnings with the latest rustc compiler
Rust
apache-2.0
asomers/mockall,asomers/mockall
rust
## Code Before: // vim: tw=80 //! bare functions can use non-public types, as long as the object's visibility is compatible. // mocking modules requires the proc_macro_hygiene feature in the _consumer_ // code #![cfg_attr(feature = "nightly", feature(proc_macro_hygiene))] #[allow(unused)] cfg_if::cfg_if! { if #[c...
cb3a51bd38548a67a0d28a57523c98536cd23c5e
example-usage/main.go
example-usage/main.go
package main import ( "github.com/Sirupsen/logrus" "github.com/rogierlommers/logrus-redis-hook" ) func init() { hook, err := logredis.NewHook("localhost", "my_redis_key", // key to use "v0", // logstash format (v0, v1 or custom) "my_app_name", // your application name "my_hostname", // your hos...
package main import ( "io/ioutil" "github.com/Sirupsen/logrus" "github.com/rogierlommers/logrus-redis-hook" ) func init() { hook, err := logredis.NewHook("localhost", "my_redis_key", // key to use "v0", // logstash format (v0, v1 or custom) "my_app_name", // your application name "my_hostname"...
Add example to stop logging to stdout
Add example to stop logging to stdout
Go
mit
rogierlommers/logrus-redis-hook
go
## Code Before: package main import ( "github.com/Sirupsen/logrus" "github.com/rogierlommers/logrus-redis-hook" ) func init() { hook, err := logredis.NewHook("localhost", "my_redis_key", // key to use "v0", // logstash format (v0, v1 or custom) "my_app_name", // your application name "my_hostnam...
486156f344af66fa762e6321d52e26b40c734e38
login.py
login.py
''' The user login module for SaltBot ''' import requests import os from dotenv import load_dotenv, find_dotenv URL_SIGNIN = 'https://www.saltybet.com/authenticate?signin=1' def saltbot_login(): # Default the return values to None session = None request = None # Start a session so we can have persist...
''' The user login module for SaltBot ''' import requests import os from dotenv import load_dotenv, find_dotenv URL_SIGNIN = 'https://www.saltybet.com/authenticate?signin=1' def saltbot_login(): # Default the return values to None session = None request = None # Start a session so we can have persist...
Add check for Heroku before .env import
Add check for Heroku before .env import Heroku was rightfully breaking when loadenv() was called as it already had the proper environment variables. Add a check for Heroku before loading the variables.
Python
mit
Jacobinski/SaltBot
python
## Code Before: ''' The user login module for SaltBot ''' import requests import os from dotenv import load_dotenv, find_dotenv URL_SIGNIN = 'https://www.saltybet.com/authenticate?signin=1' def saltbot_login(): # Default the return values to None session = None request = None # Start a session so we ...
bf6d6cdaf946af7ce8d1aa6831e7da9b47fef54f
user_deletion/managers.py
user_deletion/managers.py
from dateutil.relativedelta import relativedelta from django.utils import timezone class UserDeletionManagerMixin: def users_to_notify(self): """Finds all users who have been inactive and not yet notified.""" from django.apps import apps user_deletion_config = apps.get_app_config('user_de...
from dateutil.relativedelta import relativedelta from django.apps import apps from django.utils import timezone class UserDeletionManagerMixin: def users_to_notify(self): """Finds all users who have been inactive and not yet notified.""" user_deletion_config = apps.get_app_config('user_deletion') ...
Put import back on top
Put import back on top
Python
bsd-2-clause
incuna/django-user-deletion
python
## Code Before: from dateutil.relativedelta import relativedelta from django.utils import timezone class UserDeletionManagerMixin: def users_to_notify(self): """Finds all users who have been inactive and not yet notified.""" from django.apps import apps user_deletion_config = apps.get_app...
e74415e3e76f2fff8836c95d6c409f05f400aa63
zanata-common-api/src/main/java/org/zanata/common/UserActionType.java
zanata-common-api/src/main/java/org/zanata/common/UserActionType.java
package org.zanata.common; import javax.xml.bind.annotation.XmlType; @XmlType(name = "userActionType") public enum UserActionType { UPDATE_TRANSLATION, REVIEWED_TRANSLATION, UPLOAD_DOCUMENT; }
package org.zanata.common; import javax.xml.bind.annotation.XmlType; @XmlType(name = "userActionType") public enum UserActionType { UPDATE_TRANSLATION, REVIEWED_TRANSLATION, UPLOAD_SOURCE_DOCUMENT, UPLOAD_TRANSLATION_DOCUMENT; }
Add upload source and upload translation doc action
Add upload source and upload translation doc action
Java
lgpl-2.1
zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform
java
## Code Before: package org.zanata.common; import javax.xml.bind.annotation.XmlType; @XmlType(name = "userActionType") public enum UserActionType { UPDATE_TRANSLATION, REVIEWED_TRANSLATION, UPLOAD_DOCUMENT; } ## Instruction: Add upload source and upload translation doc action ## Code After: package org.zanata.com...
f76704452cb46e39e79eabb4b5bf631188e9596c
README.md
README.md
[![Code Climate](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/badges/gpa.svg)](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot) [![Test Coverage](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/badges/coverage.svg)](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/cover...
[![Code Climate](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/badges/gpa.svg)](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot) [![Test Coverage](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/badges/coverage.svg)](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/cover...
Add styleci badge to readme
TASK: Add styleci badge to readme
Markdown
mit
LarsNieuwenhuizen/Trustpilot
markdown
## Code Before: [![Code Climate](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/badges/gpa.svg)](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot) [![Test Coverage](https://codeclimate.com/github/LarsNieuwenhuizen/Trustpilot/badges/coverage.svg)](https://codeclimate.com/github/LarsNieuwenhuizen/...
b51ae3b126efc957f33164245126fa22b4cff8c3
composer.json
composer.json
{ "name": "wp-cli/wp-cli", "description": "A command line interface for WordPress", "keywords": [ "cli", "wordpress" ], "homepage": "http://wp-cli.org", "license": "MIT", "bin": [ "bin/wp.bat", "bin/wp" ], "require": { "php": ">=5.3.2", "wp-cli/php-cli-tools": "dev-master", "mustache/mustache": "~2.4",...
{ "name": "wp-cli/wp-cli", "description": "A command line interface for WordPress", "keywords": [ "cli", "wordpress" ], "homepage": "http://wp-cli.org", "license": "MIT", "bin": [ "bin/wp.bat", "bin/wp" ], "require": { "php": ">=5.3.2", "wp-cli/php-cli-tools": "0.10.0", "mustache/mustache": "~2.4", "...
Switch php-cli-tools to latest release in preparation for 0.17.0
Switch php-cli-tools to latest release in preparation for 0.17.0
JSON
mit
here/wp-cli,boonebgorges/wp-cli,blueblazeassociates/wp-cli,duncanjbrown/wp-cli,a7127cff69cab32e5c4723e8446e21c4b7325dc/wp-cli,aaemnnosttv/wp-cli,blueblazeassociates/wp-cli,duncanjbrown/wp-cli,2ndkauboy/wp-cli,shawnhooper/wp-cli,gitlost/wp-cli,aaemnnosttv/wp-cli,borekb/wp-cli,rohmann/wp-cli,boonebgorges/wp-cli,gitlost/w...
json
## Code Before: { "name": "wp-cli/wp-cli", "description": "A command line interface for WordPress", "keywords": [ "cli", "wordpress" ], "homepage": "http://wp-cli.org", "license": "MIT", "bin": [ "bin/wp.bat", "bin/wp" ], "require": { "php": ">=5.3.2", "wp-cli/php-cli-tools": "dev-master", "mustache/mu...
8a399ced8e4e39f0fbb9adad5cd560ff16f3e85d
scripts/patch-project-json.js
scripts/patch-project-json.js
var jsonfile = require('jsonfile'); // Read in the file to be patched var file = process.argv[2]; // e.g. '../src/MyProject/project.json' if (!file) console.log("No filename provided"); console.log("File: " + file); // Read in the build version (this is provided by the CI server) var version = process.argv[3]; //...
var jsonfile = require('jsonfile'); // Read in the file to be patched var file = process.argv[2]; // e.g. '../src/MyProject/project.json' if (!file) console.log("No filename provided"); console.log("File: " + file); // Read in the build version (this is provided by the CI server) var version = process.argv[3]; //...
Remove buildnumber from version when tag
Remove buildnumber from version when tag
JavaScript
apache-2.0
SteelToeOSS/Discovery,SteelToeOSS/Discovery,SteelToeOSS/Discovery
javascript
## Code Before: var jsonfile = require('jsonfile'); // Read in the file to be patched var file = process.argv[2]; // e.g. '../src/MyProject/project.json' if (!file) console.log("No filename provided"); console.log("File: " + file); // Read in the build version (this is provided by the CI server) var version = pro...
7b88d6088d96541a9504d0a061ea220e49333b3c
app.js
app.js
'use strict'; const koa = require('koa'); const passport = require('./config/passport'); const webpack = require('webpack'); const webpackConfig = require('./webpack.config'); const compiler = webpack(webpackConfig); const logger = require('koa-logger'); const serve = require('koa-static'); const routes = require('./c...
'use strict'; const koa = require('koa'); const passport = require('./config/passport'); const webpack = require('webpack'); const webpackConfig = require('./webpack.config'); const compiler = webpack(webpackConfig); const logger = require('koa-logger'); const serve = require('koa-static'); const routes = require('./c...
Add koa-json module and koa-qs module
Add koa-json module and koa-qs module
JavaScript
mit
sunya9/follow-manager,sunya9/follow-manager
javascript
## Code Before: 'use strict'; const koa = require('koa'); const passport = require('./config/passport'); const webpack = require('webpack'); const webpackConfig = require('./webpack.config'); const compiler = webpack(webpackConfig); const logger = require('koa-logger'); const serve = require('koa-static'); const route...
93499f7dcf85f193c30a577c4e49dafce626e575
load/osx.el
load/osx.el
;; mouse integration (require 'mwheel) (if (equal (getenv "TERM_PROGRAM") "iTerm.app") (progn (require 'mouse) ;; needed for iterm2 compatibility (message "********************************************************************************") (message "HERE") (message "***********...
;; mouse integration (require 'mwheel) (when (equal (getenv "TERM_PROGRAM") "iTerm.app") (require 'mouse) ;; needed for iterm2 compatibility (xterm-mouse-mode) (defvar mouse-wheel-progressive-speed) (setq mouse-wheel-progressive-speed nil) (defvar mouse-wheel-scroll-amount) (setq mouse-wheel-scroll-amount ...
Remove debug logging, switch to using "when"
Remove debug logging, switch to using "when"
Emacs Lisp
mit
kaidadragonfly/.emacs
emacs-lisp
## Code Before: ;; mouse integration (require 'mwheel) (if (equal (getenv "TERM_PROGRAM") "iTerm.app") (progn (require 'mouse) ;; needed for iterm2 compatibility (message "********************************************************************************") (message "HERE") (message ...
e45e04f96c0682335bfafdf809acc70e613e6771
routes/solve.rb
routes/solve.rb
get "/solve" do redirect "/" end get "/solve/brest_submit" do erb :solve_submission end post "/solve/brest_parse" do result = ReconDatabase::BrestParser.new(params["post_content"]).solves @result = result erb :brest_parse end get "/solve/:id" do @solve = ReconDatabase::Solve.where(id: params[:id]).first ...
get "/solve" do redirect "/" end get "/solve/brest_submit" do erb :solve_submission end post "/solve/brest_parse" do result = ReconDatabase::BrestParser.new(params["post_content"]).solves @result = result erb :brest_parse end get "/solve/:id" do @solve = ReconDatabase::Solve.first(id: params[:id]) erb ...
Switch from .where(...).first to .first(...)
Switch from .where(...).first to .first(...)
Ruby
mit
justinj/reconstruction-database,justinj/reconstruction-database,justinj/reconstruction-database
ruby
## Code Before: get "/solve" do redirect "/" end get "/solve/brest_submit" do erb :solve_submission end post "/solve/brest_parse" do result = ReconDatabase::BrestParser.new(params["post_content"]).solves @result = result erb :brest_parse end get "/solve/:id" do @solve = ReconDatabase::Solve.where(id: par...
ef413e8c4c295fa1b62db1f7a8dc922a94e882c8
app/serializers/lab_serializer.rb
app/serializers/lab_serializer.rb
class LabSerializer < ActiveModel::Serializer # cached attributes :id, :name, #:kind_name, :parent_id, :blurb, :description, :slug, :avatar_url, :header_url, :address_1, :address_2, :city, :county, :postal_code, :country_code, :latitude, :longitude, ...
class LabSerializer < ActiveModel::Serializer # cached attributes :id, :name, :kind_name, :parent_id, :blurb, :description, :slug, :avatar_url, :header_url, :address_1, :address_2, :city, :county, :postal_code, :country_code, :latitude, :longitude, ...
Revert "labs.json errors when calling kind_name and url"
Revert "labs.json errors when calling kind_name and url" This reverts commit 961b6588ddaf82f7c475652a30b022fcfaa63fb0.
Ruby
agpl-3.0
fablabbcn/fablabs,fablabbcn/fablabs,fablabbcn/fablabs
ruby
## Code Before: class LabSerializer < ActiveModel::Serializer # cached attributes :id, :name, #:kind_name, :parent_id, :blurb, :description, :slug, :avatar_url, :header_url, :address_1, :address_2, :city, :county, :postal_code, :country_code, :latitude, ...
7e8a06702883bb44a9b9d75e7de8e2e90eb15aec
css/actu.css
css/actu.css
.post-list { clear: both; width: 100%; margin: 0 0 2em 0; } .post-list::after { display:block; content:""; clear: both; } .post-list { zoom:1; /* For IE 6/7 (trigger hasLayout) */ } .post {width: 50% !important; max-width: 50%} .post { display: block; } .post-icon { position: relative; z-index: 9; -webkit-transiti...
.post-list { clear: both; width: 100%; margin: 0 0 2em 0; } .post-list::after { display:block; content:""; clear: both; } .post-list { zoom:1; /* For IE 6/7 (trigger hasLayout) */ } .post {width: 50% !important; max-width: 50%} .post { display: block; } .post-icon { position: relative; z-index: 9; -webkit-transiti...
Fix post layout on low rez screen
Fix post layout on low rez screen
CSS
apache-2.0
bioinfo-geek/improved-journey-jekyll-test,bioinfo-geek/improved-journey-jekyll-test,bioinfo-geek/improved-journey-jekyll-test,bioinfo-geek/improved-journey-jekyll-test
css
## Code Before: .post-list { clear: both; width: 100%; margin: 0 0 2em 0; } .post-list::after { display:block; content:""; clear: both; } .post-list { zoom:1; /* For IE 6/7 (trigger hasLayout) */ } .post {width: 50% !important; max-width: 50%} .post { display: block; } .post-icon { position: relative; z-index: 9; ...