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
845b716811fad0786c0db0e226974b280c5e4654
src/api/node.js
src/api/node.js
import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, plugins: ["*"] }); let tokens = ast.tokens; let semicolons = ast.tokens.filter(token => token.type.label === ";"); const modifiedTokens = processTokens(text, tokens, semicolons); return { ast: ast.program, tokens: modifiedTokens, semicolons }; } export function formatText(text) { const { ast, tokens, semicolons } = parseText(text); let generator = new CodeGenerator(ast, text, tokens, semicolons); return generator.generate(); } export function formatFile(filename) { try { const text = fs.readFileSync(filename).toString(); return formatText(text); } catch (error) { error.message = `${filename}: ${error.message}`; throw error; } }
import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, sourceType: "module", plugins: ["*"] }); let tokens = ast.tokens; let semicolons = ast.tokens.filter(token => token.type.label === ";"); const modifiedTokens = processTokens(text, tokens, semicolons); return { ast: ast.program, tokens: modifiedTokens, semicolons }; } export function formatText(text) { const { ast, tokens, semicolons } = parseText(text); let generator = new CodeGenerator(ast, text, tokens, semicolons); return generator.generate(); } export function formatFile(filename) { try { const text = fs.readFileSync(filename).toString(); return formatText(text); } catch (error) { error.message = `${filename}: ${error.message}`; throw error; } }
Add module sourceType in options to babylon.
Add module sourceType in options to babylon.
JavaScript
mit
Mark-Simulacrum/attractifier,Mark-Simulacrum/pretty-generator
javascript
## Code Before: import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, plugins: ["*"] }); let tokens = ast.tokens; let semicolons = ast.tokens.filter(token => token.type.label === ";"); const modifiedTokens = processTokens(text, tokens, semicolons); return { ast: ast.program, tokens: modifiedTokens, semicolons }; } export function formatText(text) { const { ast, tokens, semicolons } = parseText(text); let generator = new CodeGenerator(ast, text, tokens, semicolons); return generator.generate(); } export function formatFile(filename) { try { const text = fs.readFileSync(filename).toString(); return formatText(text); } catch (error) { error.message = `${filename}: ${error.message}`; throw error; } } ## Instruction: Add module sourceType in options to babylon. ## Code After: import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, sourceType: "module", plugins: ["*"] }); let tokens = ast.tokens; let semicolons = ast.tokens.filter(token => token.type.label === ";"); const modifiedTokens = processTokens(text, tokens, semicolons); return { ast: ast.program, tokens: modifiedTokens, semicolons }; } export function formatText(text) { const { ast, tokens, semicolons } = parseText(text); let generator = new CodeGenerator(ast, text, tokens, semicolons); return generator.generate(); } export function formatFile(filename) { try { const text = fs.readFileSync(filename).toString(); return formatText(text); } catch (error) { error.message = `${filename}: ${error.message}`; throw error; } }
e6726f23243fd8066b316dbbadcaf9b9755125d2
_posts/2013-12-13-marc-joins-gitlab.md
_posts/2013-12-13-marc-joins-gitlab.md
--- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLab's sales-related activities. Marc worked as pricing specialist for HP in Bucharest before moving to the Netherlands for a Masters' course in Business Information Management. He is now happy to put his business training to good use in a developers' environment. On a personal note, Marc knows just enough about programming to talk for five minutes without people noticing he does not have a technical background. It's part of his new years' resolutions to ramp this up to ten minutes for the year 2014. When not helping out our customers, Marc is busy cooking, trying out cocktail recipes and watching Starcraft 2 streams.
--- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLab's sales-related activities. Marc worked as pricing specialist for HP in Bucharest before moving to the Netherlands for a Masters' course in Business Information Management. He is now happy to put his business training to good use in a developers' environment. On a personal note, Marc knows just enough about programming to talk for five minutes without people noticing he does not have a technical background. It's part of his new years' resolutions to ramp this up to ten minutes for the year 2014. When not helping out our customers, Marc is busy cooking, trying out cocktail recipes and watching Starcraft 2 streams. <img src="/img/picture_marc.png" alt="gitlab.com">
Add picture to blog post.
Add picture to blog post.
Markdown
mit
damianhakert/damianhakert.github.io
markdown
## Code Before: --- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLab's sales-related activities. Marc worked as pricing specialist for HP in Bucharest before moving to the Netherlands for a Masters' course in Business Information Management. He is now happy to put his business training to good use in a developers' environment. On a personal note, Marc knows just enough about programming to talk for five minutes without people noticing he does not have a technical background. It's part of his new years' resolutions to ramp this up to ten minutes for the year 2014. When not helping out our customers, Marc is busy cooking, trying out cocktail recipes and watching Starcraft 2 streams. ## Instruction: Add picture to blog post. ## Code After: --- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLab's sales-related activities. Marc worked as pricing specialist for HP in Bucharest before moving to the Netherlands for a Masters' course in Business Information Management. He is now happy to put his business training to good use in a developers' environment. On a personal note, Marc knows just enough about programming to talk for five minutes without people noticing he does not have a technical background. It's part of his new years' resolutions to ramp this up to ten minutes for the year 2014. When not helping out our customers, Marc is busy cooking, trying out cocktail recipes and watching Starcraft 2 streams. <img src="/img/picture_marc.png" alt="gitlab.com">
89ebb9b43b67ad60294f38be98eb7903e1c10893
redux/src/main/renderer/actions/app.js
redux/src/main/renderer/actions/app.js
import { receivedAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { onError } from './error-handler'; import { TwitterAction } from '../middlewares/twitterClient'; export function setUp(credential) { return new TwitterAction({ credential, invoke: twitterClient => dispatch => { twitterClient .fetchUser() .then(user => { dispatch(receivedAccount(user, credential, true)); dispatch(fetchHomeTimeline(credential)); dispatch(subscribeStream(twitterClient, user.id_str)); }) .catch(error => dispatch(onError(error))); } }); } export function subscribeStream(twitterClient, userId) { return dispatch => { twitterClient.subscribeUserStream(userId) .on('tweet', (data) => { dispatch(receivedHomeTimeline([data])); }); }; }
import { fetchAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { TwitterAction } from '../middlewares/twitterClient'; /** * * @param {Credential} credential * @return {TwitterAction} */ export function setUp(credential) { return new TwitterAction({ credential, invoke: twitterClient => dispatch => { dispatch(fetchAccount(credential, true)); dispatch(fetchHomeTimeline(credential)); dispatch(subscribeStream(twitterClient, credential.userId)); } }); } export function subscribeStream(twitterClient, userId) { return dispatch => { twitterClient.subscribeUserStream(userId) .on('tweet', (data) => { dispatch(receivedHomeTimeline([data])); }); }; }
Use fetchAccount instead of receivedAccount
[Refactor] Use fetchAccount instead of receivedAccount
JavaScript
mit
wozaki/twitter-js-apps,wozaki/twitter-js-apps
javascript
## Code Before: import { receivedAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { onError } from './error-handler'; import { TwitterAction } from '../middlewares/twitterClient'; export function setUp(credential) { return new TwitterAction({ credential, invoke: twitterClient => dispatch => { twitterClient .fetchUser() .then(user => { dispatch(receivedAccount(user, credential, true)); dispatch(fetchHomeTimeline(credential)); dispatch(subscribeStream(twitterClient, user.id_str)); }) .catch(error => dispatch(onError(error))); } }); } export function subscribeStream(twitterClient, userId) { return dispatch => { twitterClient.subscribeUserStream(userId) .on('tweet', (data) => { dispatch(receivedHomeTimeline([data])); }); }; } ## Instruction: [Refactor] Use fetchAccount instead of receivedAccount ## Code After: import { fetchAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { TwitterAction } from '../middlewares/twitterClient'; /** * * @param {Credential} credential * @return {TwitterAction} */ export function setUp(credential) { return new TwitterAction({ credential, invoke: twitterClient => dispatch => { dispatch(fetchAccount(credential, true)); dispatch(fetchHomeTimeline(credential)); dispatch(subscribeStream(twitterClient, credential.userId)); } }); } export function subscribeStream(twitterClient, userId) { return dispatch => { twitterClient.subscribeUserStream(userId) .on('tweet', (data) => { dispatch(receivedHomeTimeline([data])); }); }; }
c6351b1be7374a23e7b53e2b78253f9172672df1
CMakeLists.txt
CMakeLists.txt
project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_arguments(CO "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) string(MAKE_C_IDENTIFIER "${CO_NAME}" CO_NAME) add_test( NAME ${CO_NAME} COMMAND ${CO_COMMAND} ${CO_ARGS} ) set_tests_properties( ${CO_NAME} PROPERTIES PASS_REGULAR_EXPRESSION "${CO_EXPECT}" ${CO_PROPERTIES} ) endfunction()
project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_arguments(CO "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) string(MAKE_C_IDENTIFIER "${CO_NAME}" CO_NAME) add_test( NAME "${CO_NAME}_output" COMMAND ${CO_COMMAND} ${CO_ARGS} ) set_tests_properties( "${CO_NAME}_output" PROPERTIES PASS_REGULAR_EXPRESSION "${CO_EXPECT}" ${CO_PROPERTIES} ) add_test( NAME "${CO_NAME}_exitcode" COMMAND ${CO_COMMAND} ${CO_ARGS} ) set_tests_properties( "${CO_NAME}_exitcode" PROPERTIES WILL_FAIL TRUE ${CO_PROPERTIES} ) endfunction()
Check exit codes as well as outputs
Check exit codes as well as outputs
Text
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
text
## Code Before: project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_arguments(CO "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) string(MAKE_C_IDENTIFIER "${CO_NAME}" CO_NAME) add_test( NAME ${CO_NAME} COMMAND ${CO_COMMAND} ${CO_ARGS} ) set_tests_properties( ${CO_NAME} PROPERTIES PASS_REGULAR_EXPRESSION "${CO_EXPECT}" ${CO_PROPERTIES} ) endfunction() ## Instruction: Check exit codes as well as outputs ## Code After: project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_arguments(CO "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) string(MAKE_C_IDENTIFIER "${CO_NAME}" CO_NAME) add_test( NAME "${CO_NAME}_output" COMMAND ${CO_COMMAND} ${CO_ARGS} ) set_tests_properties( "${CO_NAME}_output" PROPERTIES PASS_REGULAR_EXPRESSION "${CO_EXPECT}" ${CO_PROPERTIES} ) add_test( NAME "${CO_NAME}_exitcode" COMMAND ${CO_COMMAND} ${CO_ARGS} ) set_tests_properties( "${CO_NAME}_exitcode" PROPERTIES WILL_FAIL TRUE ${CO_PROPERTIES} ) endfunction()
d43bbda1dd0b99f180b8725e7a895e6b36114bbf
docs/django-widget.rst
docs/django-widget.rst
.. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- .. _django-widget-models-ref: Model Fields ------------
.. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- PyUploadcare takes assets from Uploadcare CDN by default, e.g.: .. code-block:: html <script src="https://ucarecdn.com/widget/x.y.z/uploadcare/uploadcare-x.y.z.min.js"></script> If you don't want to use hosted assets you have to turn off this feature: .. code-block:: python PYUPLOADCARE_USE_HOSTED_ASSETS = False In this case local assets will be used. If you want to provide custom url for assets then you have to specify widget url: .. code-block:: python PYUPLOADCARE_USE_HOSTED_ASSETS = False PYUPLOADCARE_WIDGET_URL = 'http://path.to/your/widget.js' `Uploadcare widget`_ will use default upload handler url, unless you specify: .. code-block:: python PYUPLOADCARE_UPLOAD_BASE_URL = 'http://path.to/your/upload/handler' .. _django-widget-models-ref: Model Fields ------------ .. _Uploadcare widget: https://uploadcare.com/documentation/widget/
Add description of django widget settings
Add description of django widget settings
reStructuredText
mit
uploadcare/pyuploadcare
restructuredtext
## Code Before: .. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- .. _django-widget-models-ref: Model Fields ------------ ## Instruction: Add description of django widget settings ## Code After: .. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- PyUploadcare takes assets from Uploadcare CDN by default, e.g.: .. code-block:: html <script src="https://ucarecdn.com/widget/x.y.z/uploadcare/uploadcare-x.y.z.min.js"></script> If you don't want to use hosted assets you have to turn off this feature: .. code-block:: python PYUPLOADCARE_USE_HOSTED_ASSETS = False In this case local assets will be used. If you want to provide custom url for assets then you have to specify widget url: .. code-block:: python PYUPLOADCARE_USE_HOSTED_ASSETS = False PYUPLOADCARE_WIDGET_URL = 'http://path.to/your/widget.js' `Uploadcare widget`_ will use default upload handler url, unless you specify: .. code-block:: python PYUPLOADCARE_UPLOAD_BASE_URL = 'http://path.to/your/upload/handler' .. _django-widget-models-ref: Model Fields ------------ .. _Uploadcare widget: https://uploadcare.com/documentation/widget/
95a5b7ae3438ae47aff3102077dce77464a5430c
setup/setupBeta.js
setup/setupBeta.js
/** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using other // hosting provider. if (process.env.BETA_ACTIVATED && process.env.NODE_ENV === 'production') { app.use(setupBetaFirewall) } } function setupBetaFirewall (req, res, next) { const betaSecretToken = process.env.BETA_TOKEN let key = null if (req.query && req.query.beta) { key = req.query.token } else if (req.cookies) { key = req.cookies['betaToken'] } if (!key) { return res.render('comingSoon') } if (key === betaSecretToken) { // Set the beta cookie res.cookie('betaToken', process.env.BETA_TOKEN, { maxAge: 7 * (24 * 3600000), httpOnly: true }) return next() } return res.render('comingSoon', { message: 'Invalid beta token or session has expired...' }) }
/** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using other // hosting provider. if (process.env.BETA_ACTIVATED === 'true' && process.env.NODE_ENV === 'production') { app.use(setupBetaFirewall) } } function setupBetaFirewall (req, res, next) { const betaSecretToken = process.env.BETA_TOKEN let key = null if (req.query && req.query.beta) { key = req.query.token } else if (req.cookies) { key = req.cookies['betaToken'] } if (!key) { return res.render('comingSoon') } if (key === betaSecretToken) { // Set the beta cookie res.cookie('betaToken', process.env.BETA_TOKEN, { maxAge: 7 * (24 * 3600000), httpOnly: true }) return next() } return res.render('comingSoon', { message: 'Invalid beta token or session has expired...' }) }
Check if beta flag is activated
Check if beta flag is activated
JavaScript
mit
ferreiro/website,ferreiro/website
javascript
## Code Before: /** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using other // hosting provider. if (process.env.BETA_ACTIVATED && process.env.NODE_ENV === 'production') { app.use(setupBetaFirewall) } } function setupBetaFirewall (req, res, next) { const betaSecretToken = process.env.BETA_TOKEN let key = null if (req.query && req.query.beta) { key = req.query.token } else if (req.cookies) { key = req.cookies['betaToken'] } if (!key) { return res.render('comingSoon') } if (key === betaSecretToken) { // Set the beta cookie res.cookie('betaToken', process.env.BETA_TOKEN, { maxAge: 7 * (24 * 3600000), httpOnly: true }) return next() } return res.render('comingSoon', { message: 'Invalid beta token or session has expired...' }) } ## Instruction: Check if beta flag is activated ## Code After: /** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using other // hosting provider. if (process.env.BETA_ACTIVATED === 'true' && process.env.NODE_ENV === 'production') { app.use(setupBetaFirewall) } } function setupBetaFirewall (req, res, next) { const betaSecretToken = process.env.BETA_TOKEN let key = null if (req.query && req.query.beta) { key = req.query.token } else if (req.cookies) { key = req.cookies['betaToken'] } if (!key) { return res.render('comingSoon') } if (key === betaSecretToken) { // Set the beta cookie res.cookie('betaToken', process.env.BETA_TOKEN, { maxAge: 7 * (24 * 3600000), httpOnly: true }) return next() } return res.render('comingSoon', { message: 'Invalid beta token or session has expired...' }) }
b1beac71134f7f85c8167d844b06f72c82b15d3b
README.md
README.md
OAuth stack middleware. ## Usage new OAuth($app, [ 'key' => 'foo', 'secret' => 'bar', 'callback_url' => 'http://localhost:8080/auth/verify', 'success_url' => '/', 'failure_url' => '/auth', ]); ## Pre-defined URLs * /auth * /auth/verify
OAuth stack middleware. ## Requirements * **session**: The request must have session handling accounted for. You can do this be prepending the `stack/session` middleware to this one. * **credentials**: You need to have some sort of OAuth server. By default, `stack/oauth` will use twitter. But you can change that through the `oauth_service.class` config parameter. ## Usage new OAuth($app, [ 'key' => 'foo', 'secret' => 'bar', 'callback_url' => 'http://localhost:8080/auth/verify', 'success_url' => '/', 'failure_url' => '/auth', ]); ## Pre-defined URLs * /auth * /auth/verify
Document session and credential requirements
Document session and credential requirements
Markdown
mit
igorw/stack-oauth
markdown
## Code Before: OAuth stack middleware. ## Usage new OAuth($app, [ 'key' => 'foo', 'secret' => 'bar', 'callback_url' => 'http://localhost:8080/auth/verify', 'success_url' => '/', 'failure_url' => '/auth', ]); ## Pre-defined URLs * /auth * /auth/verify ## Instruction: Document session and credential requirements ## Code After: OAuth stack middleware. ## Requirements * **session**: The request must have session handling accounted for. You can do this be prepending the `stack/session` middleware to this one. * **credentials**: You need to have some sort of OAuth server. By default, `stack/oauth` will use twitter. But you can change that through the `oauth_service.class` config parameter. ## Usage new OAuth($app, [ 'key' => 'foo', 'secret' => 'bar', 'callback_url' => 'http://localhost:8080/auth/verify', 'success_url' => '/', 'failure_url' => '/auth', ]); ## Pre-defined URLs * /auth * /auth/verify
46422a0544db2ee2346a93180d6f5c68e152caa4
app/models/movie.js
app/models/movie.js
import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), updated_at: DS.attr('date'), overview: DS.attr('string'), plot: DS.attr('string'), rated: DS.attr('string'), director: DS.attr('string'), runtime: DS.attr('string'), metacritic: DS.attr('number'), trailer: DS.attr('string'), imdb: DS.attr('raw'), awards: DS.attr('raw'), download: DS.attr('raw'), Categories: DS.attr('raw'), slug: Ember.computed('title', function() { return this.get('title').dasherize(); }) });
import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), slug: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), updated_at: DS.attr('date'), overview: DS.attr('string'), plot: DS.attr('string'), rated: DS.attr('string'), director: DS.attr('string'), runtime: DS.attr('string'), metacritic: DS.attr('number'), trailer: DS.attr('string'), imdb: DS.attr('raw'), awards: DS.attr('raw'), download: DS.attr('raw'), Categories: DS.attr('raw') });
Remove computed property and replace with server returned attr
Remove computed property and replace with server returned attr
JavaScript
mit
sabarasaba/moviezio-client,sabarasaba/moviezio-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviezio-client,sabarasaba/moviezio-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviezio-client,sabarasaba/moviezio-client
javascript
## Code Before: import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), updated_at: DS.attr('date'), overview: DS.attr('string'), plot: DS.attr('string'), rated: DS.attr('string'), director: DS.attr('string'), runtime: DS.attr('string'), metacritic: DS.attr('number'), trailer: DS.attr('string'), imdb: DS.attr('raw'), awards: DS.attr('raw'), download: DS.attr('raw'), Categories: DS.attr('raw'), slug: Ember.computed('title', function() { return this.get('title').dasherize(); }) }); ## Instruction: Remove computed property and replace with server returned attr ## Code After: import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), slug: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), updated_at: DS.attr('date'), overview: DS.attr('string'), plot: DS.attr('string'), rated: DS.attr('string'), director: DS.attr('string'), runtime: DS.attr('string'), metacritic: DS.attr('number'), trailer: DS.attr('string'), imdb: DS.attr('raw'), awards: DS.attr('raw'), download: DS.attr('raw'), Categories: DS.attr('raw') });
e551905e2dae5d850f333a8fb249af01cd1d06c1
src/js/tael.coffee
src/js/tael.coffee
module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' )
tiles = [{ type: 'container' }] newTile = (parent) -> # Add a new tile to the `tiles` array. pushTile = -> # Push a new tile to the `tiles` array and return its index. ( tiles.push type: 'leaf' ) - 1 switch parent.type when 'container' parent.child = do pushTile when 'leaf' parent = type: 'branch' children: left: do pushTile right: do pushTile layout: split: 'horizontal' divider_location: 1 when 'branch' throw "Branch tiles cannot spawn new children post-creation." newTile(tiles[0]) module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' )
Add `tiles` array and `newTile` function
Add `tiles` array and `newTile` function
CoffeeScript
mit
hinsley-it/maestro,hinsley-it/maestro
coffeescript
## Code Before: module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' ) ## Instruction: Add `tiles` array and `newTile` function ## Code After: tiles = [{ type: 'container' }] newTile = (parent) -> # Add a new tile to the `tiles` array. pushTile = -> # Push a new tile to the `tiles` array and return its index. ( tiles.push type: 'leaf' ) - 1 switch parent.type when 'container' parent.child = do pushTile when 'leaf' parent = type: 'branch' children: left: do pushTile right: do pushTile layout: split: 'horizontal' divider_location: 1 when 'branch' throw "Branch tiles cannot spawn new children post-creation." newTile(tiles[0]) module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' )
2a463635f5d84248b7e07e443a9f971a6de1c1f0
configurations/react.js
configurations/react.js
module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing": [2, "never"], "react/jsx-handler-names": 2, "react/jsx-no-bind": 2, "react/jsx-no-duplicate-props": [2, {"ignoreCase": true}], "react/jsx-no-undef": 2, "react/jsx-pascal-case": 2, "react/jsx-uses-vars": 2, "react/no-did-mount-set-state": 2, "react/no-did-update-set-state": 2, "react/no-direct-mutation-state": 2, "react/no-multi-comp": 2, "react/no-unknown-property": 2, "react/prop-types": 2, "react/require-extension": 2, "react/self-closing-comp": 2, "react/wrap-multilines": 2 } };
module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing": [2, "never"], "react/jsx-handler-names": 2, "react/jsx-no-bind": 2, "react/jsx-no-duplicate-props": [2, {"ignoreCase": true}], "react/jsx-no-undef": 2, "react/jsx-pascal-case": 2, "react/jsx-uses-vars": 2, "react/no-did-mount-set-state": 2, "react/no-did-update-set-state": 2, "react/no-direct-mutation-state": 2, "react/no-multi-comp": 2, "react/no-unknown-property": 2, "react/prop-types": 2, "react/self-closing-comp": 2, "react/wrap-multilines": 2 } };
Remove a deprecated and unneeded React check
Remove a deprecated and unneeded React check
JavaScript
mit
justinlocsei/eslint-config-chiton
javascript
## Code Before: module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing": [2, "never"], "react/jsx-handler-names": 2, "react/jsx-no-bind": 2, "react/jsx-no-duplicate-props": [2, {"ignoreCase": true}], "react/jsx-no-undef": 2, "react/jsx-pascal-case": 2, "react/jsx-uses-vars": 2, "react/no-did-mount-set-state": 2, "react/no-did-update-set-state": 2, "react/no-direct-mutation-state": 2, "react/no-multi-comp": 2, "react/no-unknown-property": 2, "react/prop-types": 2, "react/require-extension": 2, "react/self-closing-comp": 2, "react/wrap-multilines": 2 } }; ## Instruction: Remove a deprecated and unneeded React check ## Code After: module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing": [2, "never"], "react/jsx-handler-names": 2, "react/jsx-no-bind": 2, "react/jsx-no-duplicate-props": [2, {"ignoreCase": true}], "react/jsx-no-undef": 2, "react/jsx-pascal-case": 2, "react/jsx-uses-vars": 2, "react/no-did-mount-set-state": 2, "react/no-did-update-set-state": 2, "react/no-direct-mutation-state": 2, "react/no-multi-comp": 2, "react/no-unknown-property": 2, "react/prop-types": 2, "react/self-closing-comp": 2, "react/wrap-multilines": 2 } };
479c741480e4fe3a58352aa49c84db29c2f61370
HISTORY.rst
HISTORY.rst
.. :changelog: History ------- 0.1.0 (2015-04-01) --------------------- * First release on PyPI.
.. :changelog: History ------- 0.2.0 (2016-04-13) --------------------- * Add a Forest integration test * Correct nondeterministic msgsteiner behavior * Add additional example data sets and scripts * Switch to Creative Commons Attribution-NonCommercial 4.0 International Public License * Rename Forest configuration file parameter n to garnetBeta * Add Forest configuration file parameter processes * Correct error in negative prize score calculation * Improve Garnet output file format * Add Forest option to exclude terminals 0.1.0 (2015-04-01) --------------------- * First release on PyPI.
Update history and version 0.2.0 changes
Update history and version 0.2.0 changes
reStructuredText
bsd-2-clause
jpgulliver/OmicsIntegrator,Mkebede/OmicsIntegrator,agitter/OmicsIntegrator,agitter/OmicsIntegrator
restructuredtext
## Code Before: .. :changelog: History ------- 0.1.0 (2015-04-01) --------------------- * First release on PyPI. ## Instruction: Update history and version 0.2.0 changes ## Code After: .. :changelog: History ------- 0.2.0 (2016-04-13) --------------------- * Add a Forest integration test * Correct nondeterministic msgsteiner behavior * Add additional example data sets and scripts * Switch to Creative Commons Attribution-NonCommercial 4.0 International Public License * Rename Forest configuration file parameter n to garnetBeta * Add Forest configuration file parameter processes * Correct error in negative prize score calculation * Improve Garnet output file format * Add Forest option to exclude terminals 0.1.0 (2015-04-01) --------------------- * First release on PyPI.
7e3154594bdb067096b09693b062b1a582f5cfee
lib/pipeline_dealers/model/company.rb
lib/pipeline_dealers/model/company.rb
module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, :address_2, :city, :postal_code, :country, :phone1, :phone2, :phone3, :phone4, :phone1_desc, :phone2_desc, :phone3_desc, :phone4_desc, :created_at, :import_id, :owner_id, :milestones, :is_customer? # Read only attrs :won_deals_total, :image_thumb_url, :image_mobile_url, :updated_at, :total_pipeline, :possible_notify_user_ids, :state, :owner, read_only: true def people @client.people.where(company_id: self.id) end def notes @client.notes.where(company_id: self.id) end end end end
module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, :address_2, :city, :postal_code, :country, :phone1, :phone2, :phone3, :phone4, :phone1_desc, :phone2_desc, :phone3_desc, :phone4_desc, :created_at, :import_id, :owner_id, :milestones, :is_customer?, :is_customer # Read only attrs :won_deals_total, :image_thumb_url, :image_mobile_url, :updated_at, :total_pipeline, :possible_notify_user_ids, :state, :owner, read_only: true def people @client.people.where(company_id: self.id) end def notes @client.notes.where(company_id: self.id) end end end end
Add missing is_customer attribute to Company model
Add missing is_customer attribute to Company model
Ruby
mit
Springest/pipeline_dealers
ruby
## Code Before: module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, :address_2, :city, :postal_code, :country, :phone1, :phone2, :phone3, :phone4, :phone1_desc, :phone2_desc, :phone3_desc, :phone4_desc, :created_at, :import_id, :owner_id, :milestones, :is_customer? # Read only attrs :won_deals_total, :image_thumb_url, :image_mobile_url, :updated_at, :total_pipeline, :possible_notify_user_ids, :state, :owner, read_only: true def people @client.people.where(company_id: self.id) end def notes @client.notes.where(company_id: self.id) end end end end ## Instruction: Add missing is_customer attribute to Company model ## Code After: module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, :address_2, :city, :postal_code, :country, :phone1, :phone2, :phone3, :phone4, :phone1_desc, :phone2_desc, :phone3_desc, :phone4_desc, :created_at, :import_id, :owner_id, :milestones, :is_customer?, :is_customer # Read only attrs :won_deals_total, :image_thumb_url, :image_mobile_url, :updated_at, :total_pipeline, :possible_notify_user_ids, :state, :owner, read_only: true def people @client.people.where(company_id: self.id) end def notes @client.notes.where(company_id: self.id) end end end end
68940b07ed0858c6ff4b64f45db1addec6d78943
lib/sales_tax/receipt.rb
lib/sales_tax/receipt.rb
module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total += item[:total_unit_price] sales_taxes_total += item[:unit_sales_tax] _print << print_item(item) end _print << "\n" _print << print_sales_taxes_total(sales_taxes_total) _print << print_total(total) _print end private attr_accessor :items def print_total(bd) total = format_bd_to_price_string(bd) "Total: #{total}\n" end def print_sales_taxes_total(bd) total = format_bd_to_price_string(bd) "Sales Taxes: #{total}\n" end def print_item(item) taxed_price_str = format_bd_to_price_string(item[:total_unit_price]) "#{item[:quantity]}, #{item[:description]}, #{taxed_price_str}\n" end def format_bd_to_price_string(bd) sprintf("%.2f", bd_to_float_str(bd)) end def bd_to_float_str(bd) bd.to_s('F') end end end
module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total += BigDecimal(item[:total_unit_price]) sales_taxes_total += BigDecimal(item[:unit_sales_tax]) _print << print_item(item) end _print << "\n" _print << print_sales_taxes_total(sales_taxes_total) _print << print_total(total) _print end private attr_accessor :items def print_total(bd) total = format_to_money_string(bd.to_s('F')) "Total: #{total}\n" end def print_sales_taxes_total(bd) total = format_to_money_string(bd.to_s('F')) "Sales Taxes: #{total}\n" end def print_item(item) taxed_price_str = format_to_money_string(item[:total_unit_price]) "#{item[:quantity]}, #{item[:description]}, #{taxed_price_str}\n" end def format_to_money_string(str) sprintf("%.2f", str) end end end
Update Receipt class to deal with money strings.
Update Receipt class to deal with money strings. Since the Taxable role interface changed, and this class depends upon it, it has been updated to reflect this.
Ruby
unlicense
matiasanaya/sales-tax
ruby
## Code Before: module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total += item[:total_unit_price] sales_taxes_total += item[:unit_sales_tax] _print << print_item(item) end _print << "\n" _print << print_sales_taxes_total(sales_taxes_total) _print << print_total(total) _print end private attr_accessor :items def print_total(bd) total = format_bd_to_price_string(bd) "Total: #{total}\n" end def print_sales_taxes_total(bd) total = format_bd_to_price_string(bd) "Sales Taxes: #{total}\n" end def print_item(item) taxed_price_str = format_bd_to_price_string(item[:total_unit_price]) "#{item[:quantity]}, #{item[:description]}, #{taxed_price_str}\n" end def format_bd_to_price_string(bd) sprintf("%.2f", bd_to_float_str(bd)) end def bd_to_float_str(bd) bd.to_s('F') end end end ## Instruction: Update Receipt class to deal with money strings. Since the Taxable role interface changed, and this class depends upon it, it has been updated to reflect this. ## Code After: module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total += BigDecimal(item[:total_unit_price]) sales_taxes_total += BigDecimal(item[:unit_sales_tax]) _print << print_item(item) end _print << "\n" _print << print_sales_taxes_total(sales_taxes_total) _print << print_total(total) _print end private attr_accessor :items def print_total(bd) total = format_to_money_string(bd.to_s('F')) "Total: #{total}\n" end def print_sales_taxes_total(bd) total = format_to_money_string(bd.to_s('F')) "Sales Taxes: #{total}\n" end def print_item(item) taxed_price_str = format_to_money_string(item[:total_unit_price]) "#{item[:quantity]}, #{item[:description]}, #{taxed_price_str}\n" end def format_to_money_string(str) sprintf("%.2f", str) end end end
6e42211c35bcb3ccdc91fab0fac5cc0a449a42b2
.travis.yml
.travis.yml
language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - npm test after_success:
language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - UBS_OPTS="-D" npm test after_success:
Enable debug output for testing package.
Enable debug output for testing package.
YAML
mit
oorabona/ubs
yaml
## Code Before: language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - npm test after_success: ## Instruction: Enable debug output for testing package. ## Code After: language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - UBS_OPTS="-D" npm test after_success:
b593ab45409689dc351c49d0dc2be49c7b49c00b
.travis/install.sh
.travis/install.sh
set -e set -x sudo add-apt-repository -y ppa:fkrull/deadsnakes sudo apt-get -y update sudo apt-get install python3.3 python3.3-dev sudo pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls
set -e set -x pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls
Remove use of sudo in TravisCI.
Remove use of sudo in TravisCI.
Shell
apache-2.0
Ayrx/python-fastpbkdf2,Ayrx/python-fastpbkdf2
shell
## Code Before: set -e set -x sudo add-apt-repository -y ppa:fkrull/deadsnakes sudo apt-get -y update sudo apt-get install python3.3 python3.3-dev sudo pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls ## Instruction: Remove use of sudo in TravisCI. ## Code After: set -e set -x pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls
27184ec776930553b5d9e319b8f3f89071ed8767
lib/tracker.coffee
lib/tracker.coffee
ua = require('universal-analytics') visitor = ua('UA-49535937-3') module.exports = (req, res, next) -> eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url # page path visitor.event(eventParams).send() next()
ua = require('universal-analytics') module.exports = (req, res, next) -> visitor = ua('UA-49535937-3') eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url # page path visitor.event(eventParams).send() next()
Use different visitor per event
Use different visitor per event Instantiate a 'visitor' on every API request, since GA only tracks 500 events per visitor/session per day.
CoffeeScript
mit
adorableio/avatars-api,mojects/avatars-api,gitblit/avatars-api,gitblit/avatars-api,mojects/avatars-api
coffeescript
## Code Before: ua = require('universal-analytics') visitor = ua('UA-49535937-3') module.exports = (req, res, next) -> eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url # page path visitor.event(eventParams).send() next() ## Instruction: Use different visitor per event Instantiate a 'visitor' on every API request, since GA only tracks 500 events per visitor/session per day. ## Code After: ua = require('universal-analytics') module.exports = (req, res, next) -> visitor = ua('UA-49535937-3') eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url # page path visitor.event(eventParams).send() next()
440001c0ac7609dc9b89662fa2f7c17a84d00042
bin/configure_test_env.sh
bin/configure_test_env.sh
sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Functional/adapters/DoctrineDbal.php -f
sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) if grep -Fxq "ssh2" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini then echo "SSH2 extension was already installed. "; else echo "SSH2 was not enabled during installation. Enabling it manually"; echo "extension = ssh2.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini fi cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Functional/adapters/DoctrineDbal.php -f
Install ssh2 ext manually on travis in case if it was enabled.
Install ssh2 ext manually on travis in case if it was enabled.
Shell
mit
NiR-/Gaufrette,peelandsee/Gaufrette,Consoneo/Gaufrette,NiR-/Gaufrette,KnpLabs/Gaufrette,KnpLabs/Gaufrette
shell
## Code Before: sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Functional/adapters/DoctrineDbal.php -f ## Instruction: Install ssh2 ext manually on travis in case if it was enabled. ## Code After: sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) if grep -Fxq "ssh2" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini then echo "SSH2 extension was already installed. "; else echo "SSH2 was not enabled during installation. Enabling it manually"; echo "extension = ssh2.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini fi cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Functional/adapters/DoctrineDbal.php -f
1c2ad119a373a3c920c5103963a452b254fe540c
lib/bitex_bot/models/open_sell.rb
lib/bitex_bot/models/open_sell.rb
class BitexBot::OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end
module BitexBot class OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end end
Use nested module/class definitions instead of compact style.
Use nested module/class definitions instead of compact style.
Ruby
mit
bitex-la/bitex-bot
ruby
## Code Before: class BitexBot::OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end ## Instruction: Use nested module/class definitions instead of compact style. ## Code After: module BitexBot class OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end end
5b7c952806b0d8b7ec7da51a22fc32948469889c
README.md
README.md
`gradle vaadinRun` Wait for the application to start Open http://localhost:8080/ to view the application. # Running unit tests `gradle test`
This project requires Gradle 4.0. `gradle vaadinRun` Wait for the application to start. Open http://localhost:8080/ to view the application. # Running unit tests `gradle test`
Add notice about Gradle 4.0
Add notice about Gradle 4.0
Markdown
mit
juhawilppu/vaadin-blood-sample-editor
markdown
## Code Before: `gradle vaadinRun` Wait for the application to start Open http://localhost:8080/ to view the application. # Running unit tests `gradle test` ## Instruction: Add notice about Gradle 4.0 ## Code After: This project requires Gradle 4.0. `gradle vaadinRun` Wait for the application to start. Open http://localhost:8080/ to view the application. # Running unit tests `gradle test`
dae30865248bda0cf7e3dbd94ff63919b57ae0df
testapp/main.cpp
testapp/main.cpp
int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); for (;;) ; return 0; }
int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); sleep(100000000); return 0; }
Change infinite loop to sleep
Change infinite loop to sleep
C++
mit
scen/osxinj,scen/osxinj,pandazheng/osxinj,pandazheng/osxinj
c++
## Code Before: int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); for (;;) ; return 0; } ## Instruction: Change infinite loop to sleep ## Code After: int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); sleep(100000000); return 0; }
e0bfd84e100cf770839f56b596f3c9fa179f9587
CHANGELOG.md
CHANGELOG.md
All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.1.0...master) ### Added - Added this change log #6 - Add typical files & folders to .gitignore including phar files - Vastly improvements to the README - Add composer.lock file ### Changed - Remove satooshi/php-coveralls - Updated cakephp/cakephp-codesniffer from 0.1.29 to 1.0.1 - Depend on composer/installers^1.0 ### Fixed - Disable php_code_sniffer in Scrutinizer CI to get Scrutinizer build to succeed - Update to links with new repo URL ## [0.1.0](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/releases/tag/0.1.0) - 2016-11-23 ### Added - Initial functionality with some improvements that had no tag yet
All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.2.0...master) ### Added ### Changed ### Fixed ## [0.2.0](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/releases/tag/0.2.0) - 2016-11-24 ### Added - Added this change log #6 - Add typical files & folders to .gitignore including phar files - Vastly improvements to the README - Add composer.lock file ### Changed - Remove satooshi/php-coveralls - Updated cakephp/cakephp-codesniffer from 0.1.29 to 1.0.1 - Depend on composer/installers^1.0 - Do no export unnecessary files to distribution package ### Fixed - Disable php_code_sniffer in Scrutinizer CI to get Scrutinizer build to succeed - Update to links with new repo URL ## [0.1.0](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/releases/tag/0.1.0) - 2016-11-23 ### Added - Initial functionality with some improvements that had no tag yet
Update change log for release 0.2.0
Update change log for release 0.2.0
Markdown
mit
ravage84/ValidForeignKeyBehavior,ravage84/cakephp-valid-foreign-key-behavior
markdown
## Code Before: All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.1.0...master) ### Added - Added this change log #6 - Add typical files & folders to .gitignore including phar files - Vastly improvements to the README - Add composer.lock file ### Changed - Remove satooshi/php-coveralls - Updated cakephp/cakephp-codesniffer from 0.1.29 to 1.0.1 - Depend on composer/installers^1.0 ### Fixed - Disable php_code_sniffer in Scrutinizer CI to get Scrutinizer build to succeed - Update to links with new repo URL ## [0.1.0](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/releases/tag/0.1.0) - 2016-11-23 ### Added - Initial functionality with some improvements that had no tag yet ## Instruction: Update change log for release 0.2.0 ## Code After: All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.2.0...master) ### Added ### Changed ### Fixed ## [0.2.0](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/releases/tag/0.2.0) - 2016-11-24 ### Added - Added this change log #6 - Add typical files & folders to .gitignore including phar files - Vastly improvements to the README - Add composer.lock file ### Changed - Remove satooshi/php-coveralls - Updated cakephp/cakephp-codesniffer from 0.1.29 to 1.0.1 - Depend on composer/installers^1.0 - Do no export unnecessary files to distribution package ### Fixed - Disable php_code_sniffer in Scrutinizer CI to get Scrutinizer build to succeed - Update to links with new repo URL ## [0.1.0](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/releases/tag/0.1.0) - 2016-11-23 ### Added - Initial functionality with some improvements that had no tag yet
a441297e6f5c4492318a6d60bbc292ca4da64b50
src/app/utils/url.utils.ts
src/app/utils/url.utils.ts
import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } public extractIdFieldName(url) { const matcher = /http[s]?:\/\/.*\/:([a-zA-Z0-9_-]*)[\/|\?|#]?.*/; const extractArr = url.match(matcher); if (extractArr.length > 1) { return extractArr[1]; } return null; } public getUrlWithReplacedId(url, fieldName, fieldValue) { return url.replace(':' + fieldName, fieldValue); } public getParsedUrl(url, data, dataPath) { const fieldName = this.extractIdFieldName(url); const fieldValue = this.dataPathUtils.getFieldValueInPath(fieldName, dataPath, data); if (fieldValue) { url = this.getUrlWithReplacedId(url, fieldName, fieldValue); return url; } } }
import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } public extractIdFieldName(url) { const matcher = /:([a-zA-Z0-9_-]+)[\/?#&]?.*/; const extractArr = url.match(matcher); if (extractArr.length > 1) { return extractArr[1]; } return null; } public getUrlWithReplacedId(url, fieldName, fieldValue) { return url.replace(':' + fieldName, fieldValue); } public getParsedUrl(url, data, dataPath) { const fieldName = this.extractIdFieldName(url); const fieldValue = this.dataPathUtils.getFieldValueInPath(fieldName, dataPath, data); if (fieldValue) { url = this.getUrlWithReplacedId(url, fieldName, fieldValue); return url; } } }
Support relative urls in config file
Support relative urls in config file
TypeScript
mit
dsternlicht/RESTool,dsternlicht/RESTool,dsternlicht/RESTool
typescript
## Code Before: import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } public extractIdFieldName(url) { const matcher = /http[s]?:\/\/.*\/:([a-zA-Z0-9_-]*)[\/|\?|#]?.*/; const extractArr = url.match(matcher); if (extractArr.length > 1) { return extractArr[1]; } return null; } public getUrlWithReplacedId(url, fieldName, fieldValue) { return url.replace(':' + fieldName, fieldValue); } public getParsedUrl(url, data, dataPath) { const fieldName = this.extractIdFieldName(url); const fieldValue = this.dataPathUtils.getFieldValueInPath(fieldName, dataPath, data); if (fieldValue) { url = this.getUrlWithReplacedId(url, fieldName, fieldValue); return url; } } } ## Instruction: Support relative urls in config file ## Code After: import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } public extractIdFieldName(url) { const matcher = /:([a-zA-Z0-9_-]+)[\/?#&]?.*/; const extractArr = url.match(matcher); if (extractArr.length > 1) { return extractArr[1]; } return null; } public getUrlWithReplacedId(url, fieldName, fieldValue) { return url.replace(':' + fieldName, fieldValue); } public getParsedUrl(url, data, dataPath) { const fieldName = this.extractIdFieldName(url); const fieldValue = this.dataPathUtils.getFieldValueInPath(fieldName, dataPath, data); if (fieldValue) { url = this.getUrlWithReplacedId(url, fieldName, fieldValue); return url; } } }
3c8b97068a141f93fd58f6dd9c8fcda1d4a0abfe
src/pipeline.js
src/pipeline.js
define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes = []; Pipeline.prototype.add = function(runFn){ var that = this; this.nodes.push(function(){ runFn(function(){that.runNext()}); }); }; Pipeline.prototype.start = function(){ var that = this; if(this.indexObj.get("index") === undefined){ this.run(0); } else { this.resetPage(function(reset){ if(reset){ that.run(0); } else { that.run(that.indexObj.get("index")); } }); } }; Pipeline.prototype.runNext = function(){ var index = this.indexObj.get("index") + 1; this.run(index); }; Pipeline.prototype.run = function(index){ this.indexObj.set("index", index); var node = this.nodes[index]; if(node){ node(); } else { this.finalNode(); this.indexObj = new LocalObject(this.id, true); } } console.log("pipeline", Pipeline); return Pipeline; });
define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes = []; Pipeline.prototype.add = function(runFn){ var that = this; this.nodes.push(function(){ runFn(function(){that.runNext()}); }); }; Pipeline.prototype.start = function(){ var that = this; if(this.indexObj.get("index") === undefined){ this.run(0); } else { var index = that.indexObj.get("index"); if(index === 0){ this.run(0); } else { this.resetPage(function(reset){ if(reset){ that.run(0); } else { that.run(index); } }); } } }; Pipeline.prototype.runNext = function(){ var index = this.indexObj.get("index") + 1; this.run(index); }; Pipeline.prototype.run = function(index){ this.indexObj.set("index", index); var node = this.nodes[index]; if(node){ node(); } else { this.finalNode(); this.indexObj = new LocalObject(this.id, true); } } console.log("pipeline", Pipeline); return Pipeline; });
Allow quit on first page without reset prompt
Allow quit on first page without reset prompt
JavaScript
mit
3DUI/testing-rotation-controllers,3DUI/testing-rotation-controllers,3DUI/testing-rotation-controllers,3DUI/testing-rotation-controllers
javascript
## Code Before: define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes = []; Pipeline.prototype.add = function(runFn){ var that = this; this.nodes.push(function(){ runFn(function(){that.runNext()}); }); }; Pipeline.prototype.start = function(){ var that = this; if(this.indexObj.get("index") === undefined){ this.run(0); } else { this.resetPage(function(reset){ if(reset){ that.run(0); } else { that.run(that.indexObj.get("index")); } }); } }; Pipeline.prototype.runNext = function(){ var index = this.indexObj.get("index") + 1; this.run(index); }; Pipeline.prototype.run = function(index){ this.indexObj.set("index", index); var node = this.nodes[index]; if(node){ node(); } else { this.finalNode(); this.indexObj = new LocalObject(this.id, true); } } console.log("pipeline", Pipeline); return Pipeline; }); ## Instruction: Allow quit on first page without reset prompt ## Code After: define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes = []; Pipeline.prototype.add = function(runFn){ var that = this; this.nodes.push(function(){ runFn(function(){that.runNext()}); }); }; Pipeline.prototype.start = function(){ var that = this; if(this.indexObj.get("index") === undefined){ this.run(0); } else { var index = that.indexObj.get("index"); if(index === 0){ this.run(0); } else { this.resetPage(function(reset){ if(reset){ that.run(0); } else { that.run(index); } }); } } }; Pipeline.prototype.runNext = function(){ var index = this.indexObj.get("index") + 1; this.run(index); }; Pipeline.prototype.run = function(index){ this.indexObj.set("index", index); var node = this.nodes[index]; if(node){ node(); } else { this.finalNode(); this.indexObj = new LocalObject(this.id, true); } } console.log("pipeline", Pipeline); return Pipeline; });
ddcf421d056dcf79df557278661cd775ff54a7fc
test/clang-rename/VarTest.cpp
test/clang-rename/VarTest.cpp
// RUN: cat %s > %t.cpp // RUN: clang-rename -offset=170 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s // REQUIRES: shell namespace A { int foo; // CHECK: int hector; } int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1() { struct { int foo; // CHECK: int foo; } b = { 100 }; int foo = 100; // CHECK: int foo baz = foo; // CHECK: baz = foo; { extern int foo; // CHECK: int foo; baz = foo; // CHECK: baz = foo; foo = A::foo + baz; // CHECK: foo = A::hector + baz; A::foo = b.foo; // CHECK: A::hector = b.foo; } foo = b.foo; // CHECK: foo = b.foo; } // Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing // this file.
namespace A { int foo; // CHECK: int hector; } // RUN: cat %s > %t.cpp // RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1() { struct { int foo; // CHECK: int foo; } b = { 100 }; int foo = 100; // CHECK: int foo baz = foo; // CHECK: baz = foo; { extern int foo; // CHECK: int foo; baz = foo; // CHECK: baz = foo; foo = A::foo + baz; // CHECK: foo = A::hector + baz; A::foo = b.foo; // CHECK: A::hector = b.foo; } foo = b.foo; // CHECK: foo = b.foo; } // Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing // this file.
Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows.
Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@245688 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
c++
## Code Before: // RUN: cat %s > %t.cpp // RUN: clang-rename -offset=170 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s // REQUIRES: shell namespace A { int foo; // CHECK: int hector; } int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1() { struct { int foo; // CHECK: int foo; } b = { 100 }; int foo = 100; // CHECK: int foo baz = foo; // CHECK: baz = foo; { extern int foo; // CHECK: int foo; baz = foo; // CHECK: baz = foo; foo = A::foo + baz; // CHECK: foo = A::hector + baz; A::foo = b.foo; // CHECK: A::hector = b.foo; } foo = b.foo; // CHECK: foo = b.foo; } // Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing // this file. ## Instruction: Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@245688 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: namespace A { int foo; // CHECK: int hector; } // RUN: cat %s > %t.cpp // RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1() { struct { int foo; // CHECK: int foo; } b = { 100 }; int foo = 100; // CHECK: int foo baz = foo; // CHECK: baz = foo; { extern int foo; // CHECK: int foo; baz = foo; // CHECK: baz = foo; foo = A::foo + baz; // CHECK: foo = A::hector + baz; A::foo = b.foo; // CHECK: A::hector = b.foo; } foo = b.foo; // CHECK: foo = b.foo; } // Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing // this file.
e8d4b40fca8d193e2758626c02d5e48cc4b6335f
OakWeatherRecorder.go
OakWeatherRecorder.go
package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func main() { settings := &OakWeatherSettings{} var err error settings, err = findSettings() if err != nil { logger.Println("Could not read settings file. reason:", err) logger.Println("Reverting to asking for the settings.") settings, err = askForSettings() saveSettings(*settings) } listenForWeatherEvents(settings.SelectedDevice, settings.AccessToken) } func listenForWeatherEvents(device Device, accessToken string) { url := fmt.Sprintf(urlFormat, device.Id, accessToken) events, err := sseclient.OpenURL(url) if err != nil { logger.Println("Error:", err) os.Exit(1) } logger.Printf("Connected to the stream of device %s (%s)", device.Name, device.Id) for event := range events { data_decoded := NewWeatherData(event.Data) logger.Println(data_decoded.asString()) } }
package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func main() { settings := &OakWeatherSettings{} var err error settings, err = findSettings() if err != nil { logger.Println("Could not read settings file. reason:", err) logger.Println("Reverting to asking for the settings.") settings, err = askForSettings() saveSettings(*settings) } listenForWeatherEvents(settings.SelectedDevice, settings.AccessToken) } func listenForWeatherEvents(device Device, accessToken string) { url := fmt.Sprintf(urlFormat, device.Id, accessToken) events, err := sseclient.OpenURL(url) if err != nil { logger.Println("Error:", err) os.Exit(1) } logger.Printf("Connected to the stream of device %s (%s)", device.Name, device.Id) for event := range events { data_decoded := NewWeatherData(event.Data) if data_decoded != nil { logger.Println(data_decoded.asString()) } } }
Handle if it returns a nil
Handle if it returns a nil This can happen if it tries to decode an event not called 'weatherstationJSON'
Go
mit
jhitze/oak_weather_recorder
go
## Code Before: package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func main() { settings := &OakWeatherSettings{} var err error settings, err = findSettings() if err != nil { logger.Println("Could not read settings file. reason:", err) logger.Println("Reverting to asking for the settings.") settings, err = askForSettings() saveSettings(*settings) } listenForWeatherEvents(settings.SelectedDevice, settings.AccessToken) } func listenForWeatherEvents(device Device, accessToken string) { url := fmt.Sprintf(urlFormat, device.Id, accessToken) events, err := sseclient.OpenURL(url) if err != nil { logger.Println("Error:", err) os.Exit(1) } logger.Printf("Connected to the stream of device %s (%s)", device.Name, device.Id) for event := range events { data_decoded := NewWeatherData(event.Data) logger.Println(data_decoded.asString()) } } ## Instruction: Handle if it returns a nil This can happen if it tries to decode an event not called 'weatherstationJSON' ## Code After: package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func main() { settings := &OakWeatherSettings{} var err error settings, err = findSettings() if err != nil { logger.Println("Could not read settings file. reason:", err) logger.Println("Reverting to asking for the settings.") settings, err = askForSettings() saveSettings(*settings) } listenForWeatherEvents(settings.SelectedDevice, settings.AccessToken) } func listenForWeatherEvents(device Device, accessToken string) { url := fmt.Sprintf(urlFormat, device.Id, accessToken) events, err := sseclient.OpenURL(url) if err != nil { logger.Println("Error:", err) os.Exit(1) } logger.Printf("Connected to the stream of device %s (%s)", device.Name, device.Id) for event := range events { data_decoded := NewWeatherData(event.Data) if data_decoded != nil { logger.Println(data_decoded.asString()) } } }
3dfe87f2a954d0a4108b8a9a54753a09333eb912
tests/test_new.sh
tests/test_new.sh
setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewUnitialized() { local output output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Git issue not initialized.' assertEquals 'status code' $status 1 } testNewUnstash() { local output git issue init -q touch test output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'You have unstaged changes. Please commit or stash them.' assertEquals 'status code' $status 1 } CWD="$(cd "$(dirname "$0")" && pwd)" . $CWD/common.sh . $CWD/../shunit2/shunit2
setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewWithTitle() { local output git issue init -q output="$(git issue new 'Issue title' 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 output="$(git issue show 1 2>&1)" local status=$? assertEquals 'output' "$output" 'title: Issue title status: new assign: tags: milestone: type:' assertEquals 'status code' $status 0 } testNewWithDescription() { local output git issue init -q output="$(git issue new 'Issue title' 'Issue description' 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 output="$(git issue show 1 2>&1)" local status=$? assertEquals 'output' "$output" 'title: Issue title status: new assign: tags: milestone: type: Issue description' assertEquals 'status code' $status 0 } testNewUnitialized() { local output output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Git issue not initialized.' assertEquals 'status code' $status 1 } testNewUnstash() { local output git issue init -q touch test output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'You have unstaged changes. Please commit or stash them.' assertEquals 'status code' $status 1 } CWD="$(cd "$(dirname "$0")" && pwd)" . $CWD/common.sh . $CWD/../shunit2/shunit2
Test issue creation with title and description
Test issue creation with title and description
Shell
mit
sanpii/git-issue
shell
## Code Before: setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewUnitialized() { local output output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Git issue not initialized.' assertEquals 'status code' $status 1 } testNewUnstash() { local output git issue init -q touch test output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'You have unstaged changes. Please commit or stash them.' assertEquals 'status code' $status 1 } CWD="$(cd "$(dirname "$0")" && pwd)" . $CWD/common.sh . $CWD/../shunit2/shunit2 ## Instruction: Test issue creation with title and description ## Code After: setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewWithTitle() { local output git issue init -q output="$(git issue new 'Issue title' 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 output="$(git issue show 1 2>&1)" local status=$? assertEquals 'output' "$output" 'title: Issue title status: new assign: tags: milestone: type:' assertEquals 'status code' $status 0 } testNewWithDescription() { local output git issue init -q output="$(git issue new 'Issue title' 'Issue description' 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 output="$(git issue show 1 2>&1)" local status=$? assertEquals 'output' "$output" 'title: Issue title status: new assign: tags: milestone: type: Issue description' assertEquals 'status code' $status 0 } testNewUnitialized() { local output output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Git issue not initialized.' assertEquals 'status code' $status 1 } testNewUnstash() { local output git issue init -q touch test output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'You have unstaged changes. Please commit or stash them.' assertEquals 'status code' $status 1 } CWD="$(cd "$(dirname "$0")" && pwd)" . $CWD/common.sh . $CWD/../shunit2/shunit2
d8c5052e11b28cb26f64120e1ed975b9ab6d7a60
app/views/layouts/application.html.slim
app/views/layouts/application.html.slim
<!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .navbar-collapse.navbar-responsive-collapse ul.nav.navbar-nav - if current_user li = link_to "Walls" , walls_path li = link_to "Journals" , journals_path li = link_to "Topics" , topics_path li = link_to "Feeds" , feeds_path li = link_to "Keywords" , keywords_path li = link_to "Tags" , tags_path li = link_to "Entries" , entries_path li = link_to "Tracks" , tracks_path li = link_to "Albums" , albums_path li = link_to "Playlists" , playlists_path - if current_user.admin? li = link_to "Application", oauth_applications_path li = link_to "Profiles" , users_path li = link_to "Edit Profile", edit_user_path(current_user.id) li = link_to "Logout", :logout, method: :post - else li = link_to "Register", new_user_path li = link_to "Login", :login .container = flash_messages = yield
<!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .navbar-collapse.navbar-responsive-collapse ul.nav.navbar-nav - if current_user li = link_to "Walls" , walls_path li = link_to "Journals" , journals_path li = link_to "Topics" , topics_path li = link_to "Feeds" , feeds_path li = link_to "Keywords" , keywords_path li = link_to "Tags" , tags_path li = link_to "Entries" , entries_path li = link_to "Tracks" , tracks_path li = link_to "Albums" , albums_path li = link_to "Playlists" , playlists_path - if current_user.admin? li = link_to "Application", oauth_applications_path li = link_to "Mixes" , mixes_path li = link_to "Profiles" , users_path li = link_to "Edit Profile", edit_user_path(current_user.id) li = link_to "Logout", :logout, method: :post - else li = link_to "Register", new_user_path li = link_to "Login", :login .container = flash_messages = yield
Add link to "Mixes" on menu bar
Add link to "Mixes" on menu bar
Slim
mit
kumabook/spread_beaver,kumabook/spread_beaver,kumabook/spread_beaver
slim
## Code Before: <!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .navbar-collapse.navbar-responsive-collapse ul.nav.navbar-nav - if current_user li = link_to "Walls" , walls_path li = link_to "Journals" , journals_path li = link_to "Topics" , topics_path li = link_to "Feeds" , feeds_path li = link_to "Keywords" , keywords_path li = link_to "Tags" , tags_path li = link_to "Entries" , entries_path li = link_to "Tracks" , tracks_path li = link_to "Albums" , albums_path li = link_to "Playlists" , playlists_path - if current_user.admin? li = link_to "Application", oauth_applications_path li = link_to "Profiles" , users_path li = link_to "Edit Profile", edit_user_path(current_user.id) li = link_to "Logout", :logout, method: :post - else li = link_to "Register", new_user_path li = link_to "Login", :login .container = flash_messages = yield ## Instruction: Add link to "Mixes" on menu bar ## Code After: <!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .navbar-collapse.navbar-responsive-collapse ul.nav.navbar-nav - if current_user li = link_to "Walls" , walls_path li = link_to "Journals" , journals_path li = link_to "Topics" , topics_path li = link_to "Feeds" , feeds_path li = link_to "Keywords" , keywords_path li = link_to "Tags" , tags_path li = link_to "Entries" , entries_path li = link_to "Tracks" , tracks_path li = link_to "Albums" , albums_path li = link_to "Playlists" , playlists_path - if current_user.admin? li = link_to "Application", oauth_applications_path li = link_to "Mixes" , mixes_path li = link_to "Profiles" , users_path li = link_to "Edit Profile", edit_user_path(current_user.id) li = link_to "Logout", :logout, method: :post - else li = link_to "Register", new_user_path li = link_to "Login", :login .container = flash_messages = yield
78e4319cd15d99424f9a49b42b5f5d342d46bbfb
Cargo.toml
Cargo.toml
[package] name = "undo" version = "0.47.2" authors = ["evenorog <[email protected]>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = ["data-structures", "rust-patterns", "no-std"] exclude = ["/.travis.yml"] edition = "2021" [dependencies] arrayvec = { version = "0.7", optional = true, default-features = false } chrono = { version = "0.4", optional = true } colored = { version = "2", optional = true } serde_crate = { package = "serde", version = "1", optional = true, default-features = false, features = ["derive"] } [features] default = ["alloc", "arrayvec"] alloc = ["serde_crate/alloc"] serde = ["serde_crate", "chrono/serde", "arrayvec/serde"] [badges] maintenance = { status = "actively-developed" } [package.metadata.docs.rs] features = ["chrono", "colored", "serde"]
[package] name = "undo" version = "0.47.2" authors = ["evenorog <[email protected]>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = ["data-structures", "rust-patterns", "no-std"] exclude = ["/.travis.yml"] edition = "2021" [dependencies] arrayvec = { version = "0.7", optional = true, default-features = false } chrono = { version = "0.4", optional = true } colored = { version = "2", optional = true } serde = { version = "1", optional = true, default-features = false, features = ["derive"] } [features] default = ["alloc", "arrayvec"] alloc = ["serde?/alloc"] serde = ["dep:serde", "chrono?/serde", "arrayvec?/serde"] [badges] maintenance = { status = "actively-developed" } [package.metadata.docs.rs] features = ["chrono", "colored", "serde"]
Update to new cargo syntax for features and dependencies
Update to new cargo syntax for features and dependencies
TOML
apache-2.0
evenorog/undo
toml
## Code Before: [package] name = "undo" version = "0.47.2" authors = ["evenorog <[email protected]>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = ["data-structures", "rust-patterns", "no-std"] exclude = ["/.travis.yml"] edition = "2021" [dependencies] arrayvec = { version = "0.7", optional = true, default-features = false } chrono = { version = "0.4", optional = true } colored = { version = "2", optional = true } serde_crate = { package = "serde", version = "1", optional = true, default-features = false, features = ["derive"] } [features] default = ["alloc", "arrayvec"] alloc = ["serde_crate/alloc"] serde = ["serde_crate", "chrono/serde", "arrayvec/serde"] [badges] maintenance = { status = "actively-developed" } [package.metadata.docs.rs] features = ["chrono", "colored", "serde"] ## Instruction: Update to new cargo syntax for features and dependencies ## Code After: [package] name = "undo" version = "0.47.2" authors = ["evenorog <[email protected]>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = ["data-structures", "rust-patterns", "no-std"] exclude = ["/.travis.yml"] edition = "2021" [dependencies] arrayvec = { version = "0.7", optional = true, default-features = false } chrono = { version = "0.4", optional = true } colored = { version = "2", optional = true } serde = { version = "1", optional = true, default-features = false, features = ["derive"] } [features] default = ["alloc", "arrayvec"] alloc = ["serde?/alloc"] serde = ["dep:serde", "chrono?/serde", "arrayvec?/serde"] [badges] maintenance = { status = "actively-developed" } [package.metadata.docs.rs] features = ["chrono", "colored", "serde"]
d7815994585c4f6f7b5559ede9050cb9d24b507e
README.md
README.md
Z80 Emulator This is an attempt to develop a fast and flexible Z80 CPU emulator suitable for precise emulation of ZX Spectrum ULA logic and other timing-sensitive hardware. It is currently in its early development phase. Any notes on overall design, improving performance and testing approaches are highly appreciated. [![Build Status](https://travis-ci.org/kosarev/z80.svg?branch=master)](https://travis-ci.org/kosarev/z80)
Fast and flexible i8080/Z80 emulator. [![Build Status](https://travis-ci.org/kosarev/z80.svg?branch=master)](https://travis-ci.org/kosarev/z80) ## Quick facts * Implements accurate machine cycle-level emulation. * Supports undocumented flags and instructions. * Passes the well-known `cputest`, `8080pre`, `8080exer`, `8080exm`, `prelim` and `zexall` tests. * Follows a modular event-driven design for flexible interfacing. * Employs compile-time polymorphism for zero performance overhead. * Cache-friendly implementation without huge code switches and data tables. * Offers default modules for the breakpoints support and generic memory. * Supports multiple independently customized emulator instances. * Written in strict C++11. * Does not rely on implementation-defined or unspecified behavior. * Single-header implementation. * Provides a generic Python API and instruments to create custom bindings. ## Feedback Any notes on overall design, improving performance and testing approaches are highly appreciated. Please use the email given at <https://github.com/kosarev>. Thanks!
Add quick facts to the description.
Add quick facts to the description.
Markdown
mit
kosarev/z80,kosarev/z80
markdown
## Code Before: Z80 Emulator This is an attempt to develop a fast and flexible Z80 CPU emulator suitable for precise emulation of ZX Spectrum ULA logic and other timing-sensitive hardware. It is currently in its early development phase. Any notes on overall design, improving performance and testing approaches are highly appreciated. [![Build Status](https://travis-ci.org/kosarev/z80.svg?branch=master)](https://travis-ci.org/kosarev/z80) ## Instruction: Add quick facts to the description. ## Code After: Fast and flexible i8080/Z80 emulator. [![Build Status](https://travis-ci.org/kosarev/z80.svg?branch=master)](https://travis-ci.org/kosarev/z80) ## Quick facts * Implements accurate machine cycle-level emulation. * Supports undocumented flags and instructions. * Passes the well-known `cputest`, `8080pre`, `8080exer`, `8080exm`, `prelim` and `zexall` tests. * Follows a modular event-driven design for flexible interfacing. * Employs compile-time polymorphism for zero performance overhead. * Cache-friendly implementation without huge code switches and data tables. * Offers default modules for the breakpoints support and generic memory. * Supports multiple independently customized emulator instances. * Written in strict C++11. * Does not rely on implementation-defined or unspecified behavior. * Single-header implementation. * Provides a generic Python API and instruments to create custom bindings. ## Feedback Any notes on overall design, improving performance and testing approaches are highly appreciated. Please use the email given at <https://github.com/kosarev>. Thanks!
350d50f4f024fe83f99ad813c1c3882c9a434adf
Manifold/Variable.swift
Manifold/Variable.swift
// Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } private static var cursor: Int = 0 private let value: Int // MARK: Hashable public var hashValue: Int { return value } // MARK: IntegerLiteralConvertible public init(integerLiteral value: IntegerLiteralType) { self.value = value } // MARK: Printable public var description: String { return value.description } } public func == (left: Variable, right: Variable) -> Bool { return left.value == right.value }
// Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } // MARK: Hashable public var hashValue: Int { return value } // MARK: IntegerLiteralConvertible public init(integerLiteral value: IntegerLiteralType) { self.value = value } // MARK: Printable public var description: String { return value.description } // MARK: Private private static var cursor: Int = 0 private let value: Int } public func == (left: Variable, right: Variable) -> Bool { return left.value == right.value }
Move implementation details to the bottom.
Move implementation details to the bottom.
Swift
mit
antitypical/Manifold,antitypical/Manifold
swift
## Code Before: // Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } private static var cursor: Int = 0 private let value: Int // MARK: Hashable public var hashValue: Int { return value } // MARK: IntegerLiteralConvertible public init(integerLiteral value: IntegerLiteralType) { self.value = value } // MARK: Printable public var description: String { return value.description } } public func == (left: Variable, right: Variable) -> Bool { return left.value == right.value } ## Instruction: Move implementation details to the bottom. ## Code After: // Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } // MARK: Hashable public var hashValue: Int { return value } // MARK: IntegerLiteralConvertible public init(integerLiteral value: IntegerLiteralType) { self.value = value } // MARK: Printable public var description: String { return value.description } // MARK: Private private static var cursor: Int = 0 private let value: Int } public func == (left: Variable, right: Variable) -> Bool { return left.value == right.value }
a70de394e1e2820eaa5f138e4e984b62039ed406
src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
<?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupError( pht('Unable to locate the `figlet` binary. Install figlet.')); } $future = id(new ExecFuture('figlet')) ->setTimeout(15) ->write(trim($content, "\n")); list($err, $stdout, $stderr) = $future->resolve(); if ($err) { return $this->markupError( pht( 'Execution of `figlet` failed:', $stderr)); } if ($this->getEngine()->isTextMode()) { return $stdout; } return phutil_tag( 'div', array( 'class' => 'PhabricatorMonospaced remarkup-figlet', ), $stdout); } }
<?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupError( pht('Unable to locate the `figlet` binary. Install figlet.')); } $font = idx($argv, 'font', 'standard'); $safe_font = preg_replace('/[^0-9a-zA-Z-_.]/', '', $font); $future = id(new ExecFuture('figlet -f %s', $safe_font)) ->setTimeout(15) ->write(trim($content, "\n")); list($err, $stdout, $stderr) = $future->resolve(); if ($err) { return $this->markupError( pht( 'Execution of `figlet` failed:', $stderr)); } if ($this->getEngine()->isTextMode()) { return $stdout; } return phutil_tag( 'div', array( 'class' => 'PhabricatorMonospaced remarkup-figlet', ), $stdout); } }
Enable figlet to render text using custom fonts
Enable figlet to render text using custom fonts Summary: Figlet with more fonts will make Phabricator ``` _/ _/ _/ _/_/ _/ _/_/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/_/ _/_/_/ _/_/ _/_/ _/ _/_/ _/_/ _/ _/ _/ _/ _/ _/_/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/_/_/ _/ _/_/_/ _/_/ _/ _/_/ _/_/ _/ _/ _/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/ _/ _/ _/ _/_/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ _/_/ _/_/_/ _/_/_/ ``` Test Plan: Use figlet in comment with no font/various fonts as argument (e.g. lean, script) and see preview with no errors. Reviewers: #blessed_reviewers, epriestley Reviewed By: epriestley CC: epriestley, aran Differential Revision: https://secure.phabricator.com/D7815
PHP
apache-2.0
devurandom/phabricator,Drooids/phabricator,eSpark/phabricator,optimizely/phabricator,memsql/phabricator,kwoun1982/phabricator,Khan/phabricator,Automatic/phabricator,NigelGreenway/phabricator,wangjun/phabricator,UNCC-OpenProjects/Phabricator,cjxgm/p.cjprods.org,jwdeitch/phabricator,Soluis/phabricator,coursera/phabricator,folsom-labs/phabricator,zhihu/phabricator,sharpwhisper/phabricator,huangjimmy/phabricator-1,Symplicity/phabricator,folsom-labs/phabricator,dannysu/phabricator,optimizely/phabricator,codevlabs/phabricator,r4nt/phabricator,dannysu/phabricator,huangjimmy/phabricator-1,aswanderley/phabricator,shrimpma/phabricator,shl3807/phabricator,hach-que/unearth-phabricator,huaban/phabricator,phacility/phabricator,WuJiahu/phabricator,vuamitom/phabricator,librewiki/phabricator,memsql/phabricator,coursera/phabricator,shl3807/phabricator,benchling/phabricator,huaban/phabricator,vinzent/phabricator,wikimedia/phabricator-phabricator,codevlabs/phabricator,kanarip/phabricator,gsinkovskiy/phabricator,benchling/phabricator,Soluis/phabricator,dannysu/phabricator,christopher-johnson/phabricator,r4nt/phabricator,vinzent/phabricator,shl3807/phabricator,cjxgm/p.cjprods.org,denisdeejay/phabricator,christopher-johnson/phabricator,denisdeejay/phabricator,hach-que/phabricator,akkakks/phabricator,huaban/phabricator,tanglu-org/tracker-phabricator,dannysu/phabricator,Drooids/phabricator,aik099/phabricator,Symplicity/phabricator,hshackathons/phabricator-deprecated,Symplicity/phabricator,wikimedia/phabricator,WuJiahu/phabricator,schlaile/phabricator,parksangkil/phabricator,ryancford/phabricator,wikimedia/phabricator,Automatic/phabricator,hach-que/unearth-phabricator,zhihu/phabricator,Automattic/phabricator,freebsd/phabricator,jwdeitch/phabricator,dannysu/phabricator,wikimedia/phabricator-phabricator,tanglu-org/tracker-phabricator,WuJiahu/phabricator,wxstars/phabricator,leolujuyi/phabricator,kanarip/phabricator,freebsd/phabricator,jwdeitch/phabricator,aswanderley/phabricator,Automattic/phabricator,hach-que/phabricator,librewiki/phabricator,kalbasit/phabricator,NigelGreenway/phabricator,codevlabs/phabricator,sharpwhisper/phabricator,kwoun1982/phabricator,folsom-labs/phabricator,cjxgm/p.cjprods.org,librewiki/phabricator,r4nt/phabricator,devurandom/phabricator,leolujuyi/phabricator,r4nt/phabricator,coursera/phabricator,hshackathons/phabricator-deprecated,eSpark/phabricator,wikimedia/phabricator,ide/phabricator,devurandom/phabricator,cjxgm/p.cjprods.org,akkakks/phabricator,vinzent/phabricator,vuamitom/phabricator,wikimedia/phabricator-phabricator,shrimpma/phabricator,folsom-labs/phabricator,parksangkil/phabricator,shl3807/phabricator,huaban/phabricator,zhihu/phabricator,aswanderley/phabricator,memsql/phabricator,kwoun1982/phabricator,devurandom/phabricator,hach-que/phabricator,phacility/phabricator,huangjimmy/phabricator-1,zhihu/phabricator,eSpark/phabricator,zhihu/phabricator,UNCC-OpenProjects/Phabricator,matthewrez/phabricator,WuJiahu/phabricator,Khan/phabricator,benchling/phabricator,wikimedia/phabricator-phabricator,ide/phabricator,benchling/phabricator,devurandom/phabricator,parksangkil/phabricator,matthewrez/phabricator,Drooids/phabricator,jwdeitch/phabricator,christopher-johnson/phabricator,NigelGreenway/phabricator,vinzent/phabricator,aik099/phabricator,aswanderley/phabricator,schlaile/phabricator,MicroWorldwide/phabricator,kalbasit/phabricator,sharpwhisper/phabricator,kanarip/phabricator,kwoun1982/phabricator,leolujuyi/phabricator,Automattic/phabricator,schlaile/phabricator,ryancford/phabricator,eSpark/phabricator,freebsd/phabricator,denisdeejay/phabricator,matthewrez/phabricator,gsinkovskiy/phabricator,parksangkil/phabricator,Soluis/phabricator,librewiki/phabricator,hshackathons/phabricator-deprecated,optimizely/phabricator,a20012251/phabricator,codevlabs/phabricator,MicroWorldwide/phabricator,librewiki/phabricator,wusuoyongxin/phabricator,zhihu/phabricator,Khan/phabricator,codevlabs/phabricator,wusuoyongxin/phabricator,tanglu-org/tracker-phabricator,Soluis/phabricator,uhd-urz/phabricator,gsinkovskiy/phabricator,hshackathons/phabricator-deprecated,memsql/phabricator,vuamitom/phabricator,vuamitom/phabricator,wangjun/phabricator,ide/phabricator,kwoun1982/phabricator,NigelGreenway/phabricator,MicroWorldwide/phabricator,sharpwhisper/phabricator,wxstars/phabricator,hach-que/phabricator,hach-que/unearth-phabricator,kanarip/phabricator,shrimpma/phabricator,schlaile/phabricator,wusuoyongxin/phabricator,Automatic/phabricator,phacility/phabricator,Drooids/phabricator,akkakks/phabricator,devurandom/phabricator,uhd-urz/phabricator,uhd-urz/phabricator,wangjun/phabricator,phacility/phabricator,hach-que/unearth-phabricator,christopher-johnson/phabricator,coursera/phabricator,ryancford/phabricator,optimizely/phabricator,hshackathons/phabricator-deprecated,a20012251/phabricator,a20012251/phabricator,vuamitom/phabricator,sharpwhisper/phabricator,gsinkovskiy/phabricator,ryancford/phabricator,aik099/phabricator,kalbasit/phabricator,cjxgm/p.cjprods.org,wxstars/phabricator,aswanderley/phabricator,leolujuyi/phabricator,akkakks/phabricator,denisdeejay/phabricator,optimizely/phabricator,kalbasit/phabricator,UNCC-OpenProjects/Phabricator,Soluis/phabricator,akkakks/phabricator,r4nt/phabricator,folsom-labs/phabricator,Symplicity/phabricator,uhd-urz/phabricator,wangjun/phabricator,memsql/phabricator,hach-que/unearth-phabricator,freebsd/phabricator,eSpark/phabricator,wxstars/phabricator,Automatic/phabricator,MicroWorldwide/phabricator,uhd-urz/phabricator,wikimedia/phabricator,tanglu-org/tracker-phabricator,huangjimmy/phabricator-1,gsinkovskiy/phabricator,kanarip/phabricator,vinzent/phabricator,Khan/phabricator,christopher-johnson/phabricator,a20012251/phabricator,tanglu-org/tracker-phabricator,UNCC-OpenProjects/Phabricator,aik099/phabricator,matthewrez/phabricator,NigelGreenway/phabricator,huangjimmy/phabricator-1,shrimpma/phabricator,ide/phabricator,a20012251/phabricator,wikimedia/phabricator-phabricator,hach-que/phabricator,wusuoyongxin/phabricator
php
## Code Before: <?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupError( pht('Unable to locate the `figlet` binary. Install figlet.')); } $future = id(new ExecFuture('figlet')) ->setTimeout(15) ->write(trim($content, "\n")); list($err, $stdout, $stderr) = $future->resolve(); if ($err) { return $this->markupError( pht( 'Execution of `figlet` failed:', $stderr)); } if ($this->getEngine()->isTextMode()) { return $stdout; } return phutil_tag( 'div', array( 'class' => 'PhabricatorMonospaced remarkup-figlet', ), $stdout); } } ## Instruction: Enable figlet to render text using custom fonts Summary: Figlet with more fonts will make Phabricator ``` _/ _/ _/ _/_/ _/ _/_/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/_/ _/_/_/ _/_/ _/_/ _/ _/_/ _/_/ _/ _/ _/ _/ _/ _/_/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/_/_/ _/ _/_/_/ _/_/ _/ _/_/ _/_/ _/ _/ _/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/ _/ _/ _/ _/_/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ _/_/ _/_/_/ _/_/_/ ``` Test Plan: Use figlet in comment with no font/various fonts as argument (e.g. lean, script) and see preview with no errors. Reviewers: #blessed_reviewers, epriestley Reviewed By: epriestley CC: epriestley, aran Differential Revision: https://secure.phabricator.com/D7815 ## Code After: <?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupError( pht('Unable to locate the `figlet` binary. Install figlet.')); } $font = idx($argv, 'font', 'standard'); $safe_font = preg_replace('/[^0-9a-zA-Z-_.]/', '', $font); $future = id(new ExecFuture('figlet -f %s', $safe_font)) ->setTimeout(15) ->write(trim($content, "\n")); list($err, $stdout, $stderr) = $future->resolve(); if ($err) { return $this->markupError( pht( 'Execution of `figlet` failed:', $stderr)); } if ($this->getEngine()->isTextMode()) { return $stdout; } return phutil_tag( 'div', array( 'class' => 'PhabricatorMonospaced remarkup-figlet', ), $stdout); } }
8a2dd84340314c5818e403c288906b512d078258
build.sh
build.sh
set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" # UTC Timestamp of the last commit is used as the build number. This is for easy synchronization of build number between Windows, OSX and Linux builds. LAST_COMMIT_TIMESTAMP=$(git log -1 --format=%ct) export DOTNET_BUILD_VERSION=0.0.1-alpha-$(date -ud @$LAST_COMMIT_TIMESTAMP "+%Y%m%d-%H%M%S") $DIR/scripts/bootstrap.sh $DIR/scripts/package.sh $1
set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" # UTC Timestamp of the last commit is used as the build number. This is for easy synchronization of build number between Windows, OSX and Linux builds. LAST_COMMIT_TIMESTAMP=$(git log -1 --format=%ct) if [ "$UNAME" == "Darwin" ]; then export DOTNET_BUILD_VERSION=0.0.1-alpha-$(date -ur $LAST_COMMIT_TIMESTAMP "+%Y%m%d-%H%M%S") else export DOTNET_BUILD_VERSION=0.0.1-alpha-$(date -ud @$LAST_COMMIT_TIMESTAMP "+%Y%m%d-%H%M%S") fi echo Building dotnet tools verison - $DOTNET_BUILD_VERSION $DIR/scripts/bootstrap.sh $DIR/scripts/package.sh $1
Fix to get the correct UTC date on OSX
Fix to get the correct UTC date on OSX
Shell
mit
borgdylan/dotnet-cli,mylibero/cli,AbhitejJohn/cli,svick/cli,JohnChen0/cli,jaredpar/cli,mylibero/cli,mylibero/cli,stuartleeks/dotnet-cli,danquirk/cli,AbhitejJohn/cli,gkhanna79/cli,nguerrera/cli,jkotas/cli,dasMulli/cli,krwq/cli,harshjain2/cli,johnbeisner/cli,jkotas/cli,piotrpMSFT/cli-old,gkhanna79/cli,blackdwarf/cli,piotrpMSFT/cli-old,marono/cli,blackdwarf/cli,EdwardBlair/cli,piotrpMSFT/cli-old,krwq/cli,schellap/cli,danquirk/cli,naamunds/cli,FubarDevelopment/cli,jonsequitur/cli,marono/cli,mlorbetske/cli,schellap/cli,MichaelSimons/cli,mylibero/cli,blackdwarf/cli,harshjain2/cli,borgdylan/dotnet-cli,marono/cli,naamunds/cli,JohnChen0/cli,livarcocc/cli-1,jkotas/cli,svick/cli,borgdylan/dotnet-cli,schellap/cli,weshaggard/cli,jonsequitur/cli,krwq/cli,jaredpar/cli,jkotas/cli,mylibero/cli,anurse/Cli,gkhanna79/cli,nguerrera/cli,stuartleeks/dotnet-cli,FubarDevelopment/cli,weshaggard/cli,weshaggard/cli,schellap/cli,piotrpMSFT/cli-old,Faizan2304/cli,gkhanna79/cli,livarcocc/cli-1,marono/cli,ravimeda/cli,jaredpar/cli,mlorbetske/cli,jonsequitur/cli,AbhitejJohn/cli,gkhanna79/cli,krwq/cli,stuartleeks/dotnet-cli,FubarDevelopment/cli,dasMulli/cli,naamunds/cli,EdwardBlair/cli,MichaelSimons/cli,johnbeisner/cli,borgdylan/dotnet-cli,MichaelSimons/cli,AbhitejJohn/cli,jaredpar/cli,dasMulli/cli,Faizan2304/cli,FubarDevelopment/cli,danquirk/cli,stuartleeks/dotnet-cli,weshaggard/cli,harshjain2/cli,danquirk/cli,marono/cli,naamunds/cli,MichaelSimons/cli,svick/cli,jonsequitur/cli,EdwardBlair/cli,piotrpMSFT/cli-old,weshaggard/cli,blackdwarf/cli,nguerrera/cli,johnbeisner/cli,jaredpar/cli,mlorbetske/cli,krwq/cli,JohnChen0/cli,schellap/cli,ravimeda/cli,ravimeda/cli,stuartleeks/dotnet-cli,jaredpar/cli,Faizan2304/cli,naamunds/cli,MichaelSimons/cli,mlorbetske/cli,jkotas/cli,nguerrera/cli,borgdylan/dotnet-cli,livarcocc/cli-1,danquirk/cli,piotrpMSFT/cli-old,JohnChen0/cli,schellap/cli
shell
## Code Before: set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" # UTC Timestamp of the last commit is used as the build number. This is for easy synchronization of build number between Windows, OSX and Linux builds. LAST_COMMIT_TIMESTAMP=$(git log -1 --format=%ct) export DOTNET_BUILD_VERSION=0.0.1-alpha-$(date -ud @$LAST_COMMIT_TIMESTAMP "+%Y%m%d-%H%M%S") $DIR/scripts/bootstrap.sh $DIR/scripts/package.sh $1 ## Instruction: Fix to get the correct UTC date on OSX ## Code After: set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" # UTC Timestamp of the last commit is used as the build number. This is for easy synchronization of build number between Windows, OSX and Linux builds. LAST_COMMIT_TIMESTAMP=$(git log -1 --format=%ct) if [ "$UNAME" == "Darwin" ]; then export DOTNET_BUILD_VERSION=0.0.1-alpha-$(date -ur $LAST_COMMIT_TIMESTAMP "+%Y%m%d-%H%M%S") else export DOTNET_BUILD_VERSION=0.0.1-alpha-$(date -ud @$LAST_COMMIT_TIMESTAMP "+%Y%m%d-%H%M%S") fi echo Building dotnet tools verison - $DOTNET_BUILD_VERSION $DIR/scripts/bootstrap.sh $DIR/scripts/package.sh $1
c5a970ce1208bb4f10ab2bee4c631493d3f78bec
chrome/browser/resources/gaia_auth/manifest.json
chrome/browser/resources/gaia_auth/manifest.json
{ // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "GaiaAuthExtension", "version": "0.0.1", "manifest_version": 2, "content_security_policy": "default-src 'self'; script-src 'self'; frame-src 'self' https://accounts.google.com", "description": "GAIA Component Extension", "web_accessible_resources": [ "main.css", "main.html", "main.js", "offline.css", "offline.html", "offline.js", "success.html", "success.js", "util.js" ], // cookies for getting hash passed back from GAIA on login success // tabs for calling current webui's login. This might not be needed once // we have extension API "permissions": [ "cookies", "tabs", "chrome://oobe/" ] }
{ // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "GaiaAuthExtension", "version": "0.0.1", "manifest_version": 2, "content_security_policy": "default-src 'self'; script-src 'self'; frame-src 'self' https://accounts.google.com; style-src 'self' 'unsafe-inline'", "description": "GAIA Component Extension", "web_accessible_resources": [ "main.css", "main.html", "main.js", "offline.css", "offline.html", "offline.js", "success.html", "success.js", "util.js" ], // cookies for getting hash passed back from GAIA on login success // tabs for calling current webui's login. This might not be needed once // we have extension API "permissions": [ "cookies", "tabs", "chrome://oobe/" ] }
Fix the CSG in the gaia_auth extension so that it works with ChromeVox
Fix the CSG in the gaia_auth extension so that it works with ChromeVox BUG=134811 TEST=On the login page, click Add User. Turn on Accessibility. Check that the page doesn't disappear. Review URL: https://chromiumcodereview.appspot.com/10692038 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145051 0039d316-1c4b-4281-b951-d872f2087c98
JSON
bsd-3-clause
Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,Just-D/chromium-1,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,keishi/chromium,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ltilve/chromium,M4sse/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,Chilledheart/chromium,axinging/chromium-crosswalk,Jonekee/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,jaruba/chromium.src,dushu1203/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,anirudhSK/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,patrickm/chromium.src,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,ondra-novak/chromium.src,jaruba/chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,dednal/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,Just-D/chromium-1,Just-D/chromium-1,Chilledheart/chromium,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,Jonekee/chromium.src,anirudhSK/chromium,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,keishi/chromium,axinging/chromium-crosswalk,patrickm/chromium.src,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,Chilledheart/chromium,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,Just-D/chromium-1,anirudhSK/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,patrickm/chromium.src,M4sse/chromium.src,M4sse/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,Chilledheart/chromium,littlstar/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,keishi/chromium,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,dednal/chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,ltilve/chromium,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,axinging/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,dednal/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,Chilledheart/chromium,anirudhSK/chromium,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,ltilve/chromium,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,krieger-od/nwjs_chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,keishi/chromium,patrickm/chromium.src,dednal/chromium.src,jaruba/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,hujiajie/pa-chromium,littlstar/chromium.src,dushu1203/chromium.src,ChromiumWebApps/chromium,anirudhSK/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,keishi/chromium,Chilledheart/chromium,axinging/chromium-crosswalk,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,ondra-novak/chromium.src,keishi/chromium,ChromiumWebApps/chromium,M4sse/chromium.src,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,ltilve/chromium,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,ltilve/chromium,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,keishi/chromium,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,markYoungH/chromium.src,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,littlstar/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,dednal/chromium.src,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,dednal/chromium.src,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,ltilve/chromium,zcbenz/cefode-chromium,keishi/chromium,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,fujunwei/chromium-crosswalk,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,jaruba/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,anirudhSK/chromium,keishi/chromium,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,Chilledheart/chromium,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,keishi/chromium,timopulkkinen/BubbleFish,patrickm/chromium.src,keishi/chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,zcbenz/cefode-chromium,Chilledheart/chromium,jaruba/chromium.src,chuan9/chromium-crosswalk
json
## Code Before: { // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "GaiaAuthExtension", "version": "0.0.1", "manifest_version": 2, "content_security_policy": "default-src 'self'; script-src 'self'; frame-src 'self' https://accounts.google.com", "description": "GAIA Component Extension", "web_accessible_resources": [ "main.css", "main.html", "main.js", "offline.css", "offline.html", "offline.js", "success.html", "success.js", "util.js" ], // cookies for getting hash passed back from GAIA on login success // tabs for calling current webui's login. This might not be needed once // we have extension API "permissions": [ "cookies", "tabs", "chrome://oobe/" ] } ## Instruction: Fix the CSG in the gaia_auth extension so that it works with ChromeVox BUG=134811 TEST=On the login page, click Add User. Turn on Accessibility. Check that the page doesn't disappear. Review URL: https://chromiumcodereview.appspot.com/10692038 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145051 0039d316-1c4b-4281-b951-d872f2087c98 ## Code After: { // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "GaiaAuthExtension", "version": "0.0.1", "manifest_version": 2, "content_security_policy": "default-src 'self'; script-src 'self'; frame-src 'self' https://accounts.google.com; style-src 'self' 'unsafe-inline'", "description": "GAIA Component Extension", "web_accessible_resources": [ "main.css", "main.html", "main.js", "offline.css", "offline.html", "offline.js", "success.html", "success.js", "util.js" ], // cookies for getting hash passed back from GAIA on login success // tabs for calling current webui's login. This might not be needed once // we have extension API "permissions": [ "cookies", "tabs", "chrome://oobe/" ] }
d71c56ec372cca2ad812250854efcc68da0e718e
turnstile.go
turnstile.go
package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context TurnstileContext } type LockedState struct { context TurnstileContext } func (us *UnlockedState) Handle() (TurnstileState, error) { return handle(us.context) } func (ls *LockedState) Handle() (TurnstileState, error) { return handle(ls.context) } func handle(context TurnstileContext) (TurnstileState, error) { switch context.action { case coin: return &UnlockedState{context}, nil case push: return &LockedState{context}, nil default: return nil, errors.New("unexpected action") } } func main() { fmt.Printf("Turnstile\n") }
package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context TurnstileContext } type LockedState struct { context TurnstileContext } func (us *UnlockedState) Handle() (TurnstileState, error) { return handle(us.context) } func (us *UnlockedState) String() string { return "UnlockedState" } func (ls *LockedState) Handle() (TurnstileState, error) { return handle(ls.context) } func (ls *LockedState) String() string { return "LockedState" } func handle(context TurnstileContext) (TurnstileState, error) { switch context.action { case coin: return &UnlockedState{context}, nil case push: return &LockedState{context}, nil default: return nil, errors.New("unexpected action") } } func (tc *TurnstileContext) setAction(action Action) { tc.action = action } func main() { context := &TurnstileContext{} }
Add String() funcion to States
Add String() funcion to States
Go
mit
0xfoo/turnstile
go
## Code Before: package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context TurnstileContext } type LockedState struct { context TurnstileContext } func (us *UnlockedState) Handle() (TurnstileState, error) { return handle(us.context) } func (ls *LockedState) Handle() (TurnstileState, error) { return handle(ls.context) } func handle(context TurnstileContext) (TurnstileState, error) { switch context.action { case coin: return &UnlockedState{context}, nil case push: return &LockedState{context}, nil default: return nil, errors.New("unexpected action") } } func main() { fmt.Printf("Turnstile\n") } ## Instruction: Add String() funcion to States ## Code After: package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context TurnstileContext } type LockedState struct { context TurnstileContext } func (us *UnlockedState) Handle() (TurnstileState, error) { return handle(us.context) } func (us *UnlockedState) String() string { return "UnlockedState" } func (ls *LockedState) Handle() (TurnstileState, error) { return handle(ls.context) } func (ls *LockedState) String() string { return "LockedState" } func handle(context TurnstileContext) (TurnstileState, error) { switch context.action { case coin: return &UnlockedState{context}, nil case push: return &LockedState{context}, nil default: return nil, errors.New("unexpected action") } } func (tc *TurnstileContext) setAction(action Action) { tc.action = action } func main() { context := &TurnstileContext{} }
6feb0f7d26a7d63c07725caf77b86a8c1f6dcfbf
.gitlab-ci.yml
.gitlab-ci.yml
image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage: build script: - bundle exec rake build pdfs tags: - docker artifacts: expire_in: 31 days paths: - public/ deploy: stage: deploy dependencies: - build before_script: [] script: - rsync --delete -r public/ ~/public/ environment: production tags: - deploy only: - master@gitlab-com/www-gitlab-com
image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage: build script: - bundle exec rake build pdfs tags: - docker artifacts: expire_in: 31 days paths: - public/ review: stage: deploy before_script: [] cache: {} script: - rsync -av --delete public ~/pages/$CI_BUILD_REF_NAME environment: name: review/$CI_BUILD_REF_NAME url: http://$CI_BUILD_REF_NAME.about.gitlab.com on_stop: review_stop only: - branches except: - master tags: - deploy - review-apps review_stop: stage: deploy before_script: [] artifacts: {} cache: {} script: - rm -rf public ~/pages/$CI_BUILD_REF_NAME when: manual environment: name: review/$CI_BUILD_REF_NAME action: stop only: - branches except: - master tags: - deploy - review-apps deploy: stage: deploy dependencies: - build before_script: [] script: - rsync --delete -r public/ ~/public/ environment: name: production url: https://about.gitlab.com tags: - deploy only: - master@gitlab-com/www-gitlab-com
Add jobs for review apps
Add jobs for review apps
YAML
mit
damianhakert/damianhakert.github.io
yaml
## Code Before: image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage: build script: - bundle exec rake build pdfs tags: - docker artifacts: expire_in: 31 days paths: - public/ deploy: stage: deploy dependencies: - build before_script: [] script: - rsync --delete -r public/ ~/public/ environment: production tags: - deploy only: - master@gitlab-com/www-gitlab-com ## Instruction: Add jobs for review apps ## Code After: image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage: build script: - bundle exec rake build pdfs tags: - docker artifacts: expire_in: 31 days paths: - public/ review: stage: deploy before_script: [] cache: {} script: - rsync -av --delete public ~/pages/$CI_BUILD_REF_NAME environment: name: review/$CI_BUILD_REF_NAME url: http://$CI_BUILD_REF_NAME.about.gitlab.com on_stop: review_stop only: - branches except: - master tags: - deploy - review-apps review_stop: stage: deploy before_script: [] artifacts: {} cache: {} script: - rm -rf public ~/pages/$CI_BUILD_REF_NAME when: manual environment: name: review/$CI_BUILD_REF_NAME action: stop only: - branches except: - master tags: - deploy - review-apps deploy: stage: deploy dependencies: - build before_script: [] script: - rsync --delete -r public/ ~/public/ environment: name: production url: https://about.gitlab.com tags: - deploy only: - master@gitlab-com/www-gitlab-com
cd5baea40ccd45b9e76f57543f78e18d95969c38
generators/app/templates/src/app/settings/__ionic-tabs._settings.component.html
generators/app/templates/src/app/settings/__ionic-tabs._settings.component.html
<ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div class="profile-title">{{username}}</div> </div> </div> <% } -%> <ion-list> <ion-list-header> <ion-label translate>Account</ion-label> </ion-list-header> <ion-item button> <ion-icon name="contact" slot="start"></ion-icon> <ion-label translate>Profile</ion-label> </ion-item> <ion-item button (click)="logout()"> <ion-icon name="md-log-out" slot="start"></ion-icon> <ion-label translate>Logout</ion-label> </ion-item> <ng-container *ngIf="isWeb"> <ion-list-header> <ion-label translate>Preferences</ion-label> </ion-list-header> <ion-item button (click)="changeLanguage()"> <ion-icon name="md-globe" slot="start"></ion-icon> <ion-label translate>Change language</ion-label> </ion-item> </ng-container> </ion-list> </ion-content>
<ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div class="profile-title">{{username}}</div> </div> </div> <% } -%> <ion-list> <ion-list-header> <ion-label translate>Account</ion-label> </ion-list-header> <ion-item button> <ion-icon name="contact" slot="start"></ion-icon> <ion-label translate>Profile</ion-label> </ion-item> <% if (props.auth) { -%> <ion-item button (click)="logout()"> <ion-icon name="md-log-out" slot="start"></ion-icon> <ion-label translate>Logout</ion-label> </ion-item> <% } -%> <ng-container *ngIf="isWeb"> <ion-list-header> <ion-label translate>Preferences</ion-label> </ion-list-header> <ion-item button (click)="changeLanguage()"> <ion-icon name="md-globe" slot="start"></ion-icon> <ion-label translate>Change language</ion-label> </ion-item> </ng-container> </ion-list> </ion-content>
Fix logout button included in ionic/tabs when authentication is disabled
Fix logout button included in ionic/tabs when authentication is disabled
HTML
mit
ngx-rocket/generator-ngx-rocket,ngx-rocket/generator-ngx-rocket,ngx-rocket/generator-ngx-rocket,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket
html
## Code Before: <ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div class="profile-title">{{username}}</div> </div> </div> <% } -%> <ion-list> <ion-list-header> <ion-label translate>Account</ion-label> </ion-list-header> <ion-item button> <ion-icon name="contact" slot="start"></ion-icon> <ion-label translate>Profile</ion-label> </ion-item> <ion-item button (click)="logout()"> <ion-icon name="md-log-out" slot="start"></ion-icon> <ion-label translate>Logout</ion-label> </ion-item> <ng-container *ngIf="isWeb"> <ion-list-header> <ion-label translate>Preferences</ion-label> </ion-list-header> <ion-item button (click)="changeLanguage()"> <ion-icon name="md-globe" slot="start"></ion-icon> <ion-label translate>Change language</ion-label> </ion-item> </ng-container> </ion-list> </ion-content> ## Instruction: Fix logout button included in ionic/tabs when authentication is disabled ## Code After: <ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div class="profile-title">{{username}}</div> </div> </div> <% } -%> <ion-list> <ion-list-header> <ion-label translate>Account</ion-label> </ion-list-header> <ion-item button> <ion-icon name="contact" slot="start"></ion-icon> <ion-label translate>Profile</ion-label> </ion-item> <% if (props.auth) { -%> <ion-item button (click)="logout()"> <ion-icon name="md-log-out" slot="start"></ion-icon> <ion-label translate>Logout</ion-label> </ion-item> <% } -%> <ng-container *ngIf="isWeb"> <ion-list-header> <ion-label translate>Preferences</ion-label> </ion-list-header> <ion-item button (click)="changeLanguage()"> <ion-icon name="md-globe" slot="start"></ion-icon> <ion-label translate>Change language</ion-label> </ion-item> </ng-container> </ion-list> </ion-content>
7d0fe75337855ac881cd21e07ec1cd41b939252b
lib/main.dart
lib/main.dart
//This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgrounndColor = const Color(0xFF182B49); @override Widget build(BuildContext context) { return MaterialApp( ); } }
//This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgroundColor = const Color(0xFF182B49); @override Widget build(BuildContext context) { return MaterialApp( title: 'UCSD', theme: ThemeData( primarySwatch: Colors.blue, ), home: Home(), ); } } class HomeState extends State<Home> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("UCSD"), ), body: Container(), ); } } class Home extends StatefulWidget { @override HomeState createState() => new HomeState(); }
Add appBar and blue theme
Add appBar and blue theme
Dart
mit
UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile
dart
## Code Before: //This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgrounndColor = const Color(0xFF182B49); @override Widget build(BuildContext context) { return MaterialApp( ); } } ## Instruction: Add appBar and blue theme ## Code After: //This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgroundColor = const Color(0xFF182B49); @override Widget build(BuildContext context) { return MaterialApp( title: 'UCSD', theme: ThemeData( primarySwatch: Colors.blue, ), home: Home(), ); } } class HomeState extends State<Home> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("UCSD"), ), body: Container(), ); } } class Home extends StatefulWidget { @override HomeState createState() => new HomeState(); }
ec8a08203746d8ba2df5a6f78cb563dbffcf73a7
spec/rspec/rails/rails_version_spec.rb
spec/rspec/rails/rails_version_spec.rb
require "spec_helper" describe RSpec::Rails, "version" do before do if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
require "spec_helper" describe RSpec::Rails, "version" do def clear_memoized_version if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end before { clear_memoized_version } after { clear_memoized_version } describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
Clean up the memoization before and after specs run
Clean up the memoization before and after specs run
Ruby
mit
aceofspades/rspec-rails,unite-us/rspec-rails,DarthSim/rspec-rails,powershop/rspec-rails,grantgeorge/rspec-rails,aceofspades/rspec-rails,mcfiredrill/rspec-rails,gkunwar/rspec-rails,powershop/rspec-rails,eliotsykes/rspec-rails,maclover7/rspec-rails,ipmobiletech/rspec-rails,eliotsykes/rspec-rails,jdax/rspec-rails,jdax/rspec-rails,tjgrathwell/rspec-rails,rspec/rspec-rails,mkyaw/rspec-rails,rspec/rspec-rails,dcrec1/rspec-rails-1,AEgan/rspec-rails,maclover7/rspec-rails,Kriechi/rspec-rails,mkyaw/rspec-rails,ipmobiletech/rspec-rails,unite-us/rspec-rails,tjgrathwell/rspec-rails,grantgeorge/rspec-rails,KlotzAndrew/rspec-rails,grantgeorge/rspec-rails,sopheak-se/rspec-rails,jamelablack/rspec-rails,pjaspers/rspec-rails,gkunwar/rspec-rails,rspec/rspec-rails,gkunwar/rspec-rails,DarthSim/rspec-rails,pjaspers/rspec-rails,KlotzAndrew/rspec-rails,jamelablack/rspec-rails,sopheak-se/rspec-rails,jdax/rspec-rails,sopheak-se/rspec-rails,pjaspers/rspec-rails,jpbamberg1993/rspec-rails,mkyaw/rspec-rails,maclover7/rspec-rails,AEgan/rspec-rails,sarahmei/rspec-rails,sarahmei/rspec-rails,jpbamberg1993/rspec-rails,tjgrathwell/rspec-rails,dcrec1/rspec-rails-1,dcrec1/rspec-rails-1,KlotzAndrew/rspec-rails,aceofspades/rspec-rails,eliotsykes/rspec-rails,Kriechi/rspec-rails,ResultadosDigitais/rspec-rails,jasnow/rspec-rails,jasnow/rspec-rails,powershop/rspec-rails,jpbamberg1993/rspec-rails,DarthSim/rspec-rails,ResultadosDigitais/rspec-rails,jamelablack/rspec-rails,sarahmei/rspec-rails,Kriechi/rspec-rails,unite-us/rspec-rails,jasnow/rspec-rails,ipmobiletech/rspec-rails,mcfiredrill/rspec-rails,mcfiredrill/rspec-rails,AEgan/rspec-rails
ruby
## Code Before: require "spec_helper" describe RSpec::Rails, "version" do before do if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end ## Instruction: Clean up the memoization before and after specs run ## Code After: require "spec_helper" describe RSpec::Rails, "version" do def clear_memoized_version if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end before { clear_memoized_version } after { clear_memoized_version } describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
34dcd82b1c3b741a33f87cfac691d35f3b89cafd
systems/mac/README.md
systems/mac/README.md
* Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Programs * Docker * Sign in * Set resource limits * Spectacle * Set to start on log in * Firefox * Sign in to sync * Go through preferences * Make the bookmarks toolbar visible * Pin certain add-ons to the overflow menu * LastPass * Sign in * Click the LastPass icon * Go to More Options > About LastPass * Donwload and install the binary component * Web Scrobbler * Sign in to Last.fm * Turn off now playing notifications * Disable Google Analytics * Dropbox * Sign in * Turn on selective sync * Disable camera uploads * smcFanControl * Turn on auto updates * Set to start on log in * Create Medium and Max settings * iTerm * Set the path for "Load preferences from a custom folder or URL" * Login items * Remove `ituneshelper` * Add Karabiner-Elements * Chrome * Sign in * Set advanced sync settings * Google Backup and Sync * Sign in * Turn on selective sync * Evernote * Sign in * Uncheck Edit > Spelling and Grammer > Correct Spelling Automatically
* Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud * Sign in to Google, and sync contacts and calendars ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Programs * Docker * Sign in * Set resource limits * Spectacle * Set to start on log in * Firefox * Sign in to sync * Go through preferences * Make the bookmarks toolbar visible * Pin certain add-ons to the overflow menu * LastPass * Sign in * Click the LastPass icon * Go to More Options > About LastPass * Donwload and install the binary component * Web Scrobbler * Sign in to Last.fm * Turn off now playing notifications * Disable Google Analytics * Dropbox * Sign in * Turn on selective sync * Disable camera uploads * smcFanControl * Turn on auto updates * Set to start on log in * Create Medium and Max settings * iTerm * Set the path for "Load preferences from a custom folder or URL" * Login items * Remove `ituneshelper` * Add Karabiner-Elements * Chrome * Sign in * Set advanced sync settings * Google Backup and Sync * Sign in * Turn on selective sync * Evernote * Sign in * Uncheck Edit > Spelling and Grammer > Correct Spelling Automatically
Add an instruction for setting up a Mac
Add an instruction for setting up a Mac
Markdown
mit
dguo/dotfiles,dguo/dotfiles,dguo/dotfiles
markdown
## Code Before: * Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Programs * Docker * Sign in * Set resource limits * Spectacle * Set to start on log in * Firefox * Sign in to sync * Go through preferences * Make the bookmarks toolbar visible * Pin certain add-ons to the overflow menu * LastPass * Sign in * Click the LastPass icon * Go to More Options > About LastPass * Donwload and install the binary component * Web Scrobbler * Sign in to Last.fm * Turn off now playing notifications * Disable Google Analytics * Dropbox * Sign in * Turn on selective sync * Disable camera uploads * smcFanControl * Turn on auto updates * Set to start on log in * Create Medium and Max settings * iTerm * Set the path for "Load preferences from a custom folder or URL" * Login items * Remove `ituneshelper` * Add Karabiner-Elements * Chrome * Sign in * Set advanced sync settings * Google Backup and Sync * Sign in * Turn on selective sync * Evernote * Sign in * Uncheck Edit > Spelling and Grammer > Correct Spelling Automatically ## Instruction: Add an instruction for setting up a Mac ## Code After: * Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud * Sign in to Google, and sync contacts and calendars ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Programs * Docker * Sign in * Set resource limits * Spectacle * Set to start on log in * Firefox * Sign in to sync * Go through preferences * Make the bookmarks toolbar visible * Pin certain add-ons to the overflow menu * LastPass * Sign in * Click the LastPass icon * Go to More Options > About LastPass * Donwload and install the binary component * Web Scrobbler * Sign in to Last.fm * Turn off now playing notifications * Disable Google Analytics * Dropbox * Sign in * Turn on selective sync * Disable camera uploads * smcFanControl * Turn on auto updates * Set to start on log in * Create Medium and Max settings * iTerm * Set the path for "Load preferences from a custom folder or URL" * Login items * Remove `ituneshelper` * Add Karabiner-Elements * Chrome * Sign in * Set advanced sync settings * Google Backup and Sync * Sign in * Turn on selective sync * Evernote * Sign in * Uncheck Edit > Spelling and Grammer > Correct Spelling Automatically
0c78a96512de31e5f210b0949cd1bbbd4107fc9c
lib/netzke/basepack/dynamic_tab_panel/javascripts/dynamic_tab_panel.js
lib/netzke/basepack/dynamic_tab_panel/javascripts/dynamic_tab_panel.js
{ netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(c); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.items.indexOf(tab); this.remove(tab); tab = this.insert(i, cmp); } this.setActiveTab(tab); }, netzkeLoadComponentByClass: function(klass, options) { this.netzkeLoadComponent('child', Ext.apply(options, { configOnly: true, clone: true, clientConfig: Ext.apply(options.clientConfig || {}, {klass: klass}), callback: this.netzkeTabComponentDelivered, scope: this, })); } }
{ netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(Ext.apply(c, {closable: true})); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.items.indexOf(tab); this.remove(tab); tab = this.insert(i, cmp); } this.setActiveTab(tab); }, netzkeLoadComponentByClass: function(klass, options) { this.netzkeLoadComponent('child', Ext.apply(options, { configOnly: true, clone: true, clientConfig: Ext.apply(options.clientConfig || {}, {klass: klass}), callback: this.netzkeTabComponentDelivered, scope: this, })); } }
Make tabs closable in DynamicTabPanel
Make tabs closable in DynamicTabPanel
JavaScript
mit
rvwong/netzke-basepack,rvwong/netzke-basepack,skmitty/netzke-basepack,skmitty/netzke-basepack,rvwong/netzke-basepack,skmitty/netzke-basepack,skmitty/netzke-basepack,rvwong/netzke-basepack
javascript
## Code Before: { netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(c); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.items.indexOf(tab); this.remove(tab); tab = this.insert(i, cmp); } this.setActiveTab(tab); }, netzkeLoadComponentByClass: function(klass, options) { this.netzkeLoadComponent('child', Ext.apply(options, { configOnly: true, clone: true, clientConfig: Ext.apply(options.clientConfig || {}, {klass: klass}), callback: this.netzkeTabComponentDelivered, scope: this, })); } } ## Instruction: Make tabs closable in DynamicTabPanel ## Code After: { netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(Ext.apply(c, {closable: true})); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.items.indexOf(tab); this.remove(tab); tab = this.insert(i, cmp); } this.setActiveTab(tab); }, netzkeLoadComponentByClass: function(klass, options) { this.netzkeLoadComponent('child', Ext.apply(options, { configOnly: true, clone: true, clientConfig: Ext.apply(options.clientConfig || {}, {klass: klass}), callback: this.netzkeTabComponentDelivered, scope: this, })); } }
d0b4b3be97c26583a739edb6797867893dcf6cb8
lib/stub.js
lib/stub.js
const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not set stub lib. Expected a "spy" method, found: ${typeof lib.spy}`); } _stub = lib; } return _stub; }; stub(sinon); module.exports = stub;
'use strict'; const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not set stub lib. Expected a "spy" method, found: ${typeof lib.spy}`); } _stub = lib; } return _stub; }; stub(sinon); module.exports = stub;
Add use strict for node@<6
Add use strict for node@<6
JavaScript
mit
lennym/reqres
javascript
## Code Before: const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not set stub lib. Expected a "spy" method, found: ${typeof lib.spy}`); } _stub = lib; } return _stub; }; stub(sinon); module.exports = stub; ## Instruction: Add use strict for node@<6 ## Code After: 'use strict'; const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not set stub lib. Expected a "spy" method, found: ${typeof lib.spy}`); } _stub = lib; } return _stub; }; stub(sinon); module.exports = stub;
4a692664e5c9fafea8c476957e1dcaabc46980bb
README.md
README.md
A comment server similar to disqus and isso ## License The MIT License (MIT)
A comment server similar to disqus and isso ## Development ### Build ~~~ mvn clean package ~~~ ### Run ~~~ mvn spring-boot:run ~~~ By default, the server will start under [localhost:8080](http://localhost:8080/). ### Test ~~~ mvn clean test ~~~ ## License The MIT License (MIT)
Add instructions for building, running and testing
Add instructions for building, running and testing
Markdown
apache-2.0
pvorb/platon,pvorb/platon,pvorb/platon
markdown
## Code Before: A comment server similar to disqus and isso ## License The MIT License (MIT) ## Instruction: Add instructions for building, running and testing ## Code After: A comment server similar to disqus and isso ## Development ### Build ~~~ mvn clean package ~~~ ### Run ~~~ mvn spring-boot:run ~~~ By default, the server will start under [localhost:8080](http://localhost:8080/). ### Test ~~~ mvn clean test ~~~ ## License The MIT License (MIT)
fe273fa094ee7240d42157cd4048df777ed3035c
Clojure/src/snake/board_view.clj
Clojure/src/snake/board_view.clj
(ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn draw-boarder "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (string/repeat width "-")) (put "\\") (dotimes [i height] (set-cursor 0 (+ i 1)) (put "|") (set-cursor (+ width 1) (+ i 1)) (put "|")) (put "\n") (put "\\") (put (string/repeat width "-")) (put "/")) (defn add-apple [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "o")) (defn add-snake [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "#")) (defn remove [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put " ")) (defn show-board [{width :width height :height board :board}] (doseq [[row] board] (doseq [[elem] row] (add elem)))) ; REM: add the add function which will call add-apple or add-snake
(ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn create-view "Create a new board view" [board] :not-yet-implemented) (defn draw-borders "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (string/repeat width "-")) (put "\\") (dotimes [i height] (set-cursor 0 (+ i 1)) (put "|") (set-cursor (+ width 1) (+ i 1)) (put "|")) (put "\n") (put "\\") (put (string/repeat width "-")) (put "/")) (defmulti add-element :type) (defmethod add-element :apple [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "o")) (defmethod add-element :snake [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "#")) (defn remove-element [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put " ")) (defn show-board [{width :width height :height board :board}] (doseq [[row] board] (doseq [[elem] row] (add-element elem)))) ; REM: add the add function which will call add-apple or add-snake
Use a multimethod to do the add-apple, add-snake
Use a multimethod to do the add-apple, add-snake Signed-off-by: Stefan Marr <[email protected]>
Clojure
mit
smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake
clojure
## Code Before: (ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn draw-boarder "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (string/repeat width "-")) (put "\\") (dotimes [i height] (set-cursor 0 (+ i 1)) (put "|") (set-cursor (+ width 1) (+ i 1)) (put "|")) (put "\n") (put "\\") (put (string/repeat width "-")) (put "/")) (defn add-apple [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "o")) (defn add-snake [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "#")) (defn remove [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put " ")) (defn show-board [{width :width height :height board :board}] (doseq [[row] board] (doseq [[elem] row] (add elem)))) ; REM: add the add function which will call add-apple or add-snake ## Instruction: Use a multimethod to do the add-apple, add-snake Signed-off-by: Stefan Marr <[email protected]> ## Code After: (ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn create-view "Create a new board view" [board] :not-yet-implemented) (defn draw-borders "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (string/repeat width "-")) (put "\\") (dotimes [i height] (set-cursor 0 (+ i 1)) (put "|") (set-cursor (+ width 1) (+ i 1)) (put "|")) (put "\n") (put "\\") (put (string/repeat width "-")) (put "/")) (defmulti add-element :type) (defmethod add-element :apple [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "o")) (defmethod add-element :snake [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put "#")) (defn remove-element [{x :x y :y}] (set-cursor (+ x 1) (+ y 1)) (put " ")) (defn show-board [{width :width height :height board :board}] (doseq [[row] board] (doseq [[elem] row] (add-element elem)))) ; REM: add the add function which will call add-apple or add-snake
05544cb161686976dafda45be56d9284b46f6623
lib/tasks/teaspoon.rake
lib/tasks/teaspoon.rake
desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } abort("rake teaspoon failed") if Teaspoon::Console.new(options).failures? end
desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } options.delete_if { |k, v| v.nil? } abort("rake teaspoon failed") if Teaspoon::Console.new(options).failures? end
Remove rake args that don't have a value
Remove rake args that don't have a value Fixes #413
Ruby
mit
modeset/teaspoon,modeset/teaspoon,bouk/teaspoon,bouk/teaspoon,bouk/teaspoon,modeset/teaspoon
ruby
## Code Before: desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } abort("rake teaspoon failed") if Teaspoon::Console.new(options).failures? end ## Instruction: Remove rake args that don't have a value Fixes #413 ## Code After: desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } options.delete_if { |k, v| v.nil? } abort("rake teaspoon failed") if Teaspoon::Console.new(options).failures? end
a8eae9102b9c233142aa8d629d36a28cb129b65f
src/css/_objects.content.scss
src/css/_objects.content.scss
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows images to extend out past the content when placed as children * of `.content-wrapper` * * Usage: <div class="content-wrapper"> <!-- This image will be a larger width than the paragraph in the below section. --> <img src="/img/sample.png"> <section class="text-content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam culpa libero provident itaque cum porro explicabo facilis, quae quod repudiandae alias voluptatum velit fuga molestias aliquid iure, eos mollitia! Voluptatum.</p> </section> </div> */ .content-wrapper, .text-content { margin: 0 auto; } .content-wrapper { width: 680px; } .text-content { width: 580px; }
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows images to extend out past the content when placed as children * of `.content-wrapper` * * Usage: <div class="content-wrapper"> <!-- This image will be a larger width than the paragraph in the below section. --> <img src="/img/sample.png"> <section class="text-content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam culpa libero provident itaque cum porro explicabo facilis, quae quod repudiandae alias voluptatum velit fuga molestias aliquid iure, eos mollitia! Voluptatum.</p> </section> </div> */ .content-wrapper, .text-content { margin: 0 auto; } .content-wrapper { width: 680px; @include media-query(palm) { max-width: 100%; padding: 0 $small-spacing-unit; } } .text-content { width: 580px; @include media-query(palm) { max-width: 100%; } }
Add some media queries so things are presentable on mobile
Add some media queries so things are presentable on mobile
SCSS
mit
vocksel/my-website,VoxelDavid/voxeldavid-website,vocksel/my-website,VoxelDavid/voxeldavid-website
scss
## Code Before: /*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows images to extend out past the content when placed as children * of `.content-wrapper` * * Usage: <div class="content-wrapper"> <!-- This image will be a larger width than the paragraph in the below section. --> <img src="/img/sample.png"> <section class="text-content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam culpa libero provident itaque cum porro explicabo facilis, quae quod repudiandae alias voluptatum velit fuga molestias aliquid iure, eos mollitia! Voluptatum.</p> </section> </div> */ .content-wrapper, .text-content { margin: 0 auto; } .content-wrapper { width: 680px; } .text-content { width: 580px; } ## Instruction: Add some media queries so things are presentable on mobile ## Code After: /*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows images to extend out past the content when placed as children * of `.content-wrapper` * * Usage: <div class="content-wrapper"> <!-- This image will be a larger width than the paragraph in the below section. --> <img src="/img/sample.png"> <section class="text-content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam culpa libero provident itaque cum porro explicabo facilis, quae quod repudiandae alias voluptatum velit fuga molestias aliquid iure, eos mollitia! Voluptatum.</p> </section> </div> */ .content-wrapper, .text-content { margin: 0 auto; } .content-wrapper { width: 680px; @include media-query(palm) { max-width: 100%; padding: 0 $small-spacing-unit; } } .text-content { width: 580px; @include media-query(palm) { max-width: 100%; } }
dce5998a2a65801653acd43f8cd0039aabf124f1
app/views/tips/_collapsed_card.html.slim
app/views/tips/_collapsed_card.html.slim
- tip = exercise_tip.tip .card.mb-2 .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}" .clearfix role="button" i.fa aria-hidden="true" span = t('activerecord.models.tip.one') =< exercise_tip.rank = ": #{tip.title}" if tip.title? .card.card-collapse.collapse id="tip-collapse-#{exercise_tip.id}" aria-labelledby="tip-heading-#{exercise_tip.id}" role="tabpanel" data-exercise-tip-id=exercise_tip.id .card-body.p-3 h5 = t('exercises.implement.tips.description') = tip.description - if tip.example? h5.mt-2 = t('exercises.implement.tips.example') pre code.mh-100 class="language-#{tip.file_type.editor_mode.gsub("ace/mode/", "")}" = tip.example .mb-4 = render(partial: 'tips/collapsed_card', collection: exercise_tip.children, as: :exercise_tip)
- tip = exercise_tip.tip .card class="#{exercise_tip.parent_exercise_tip_id? ? 'mt-2' : ''}" .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}" .clearfix role="button" i.fa aria-hidden="true" span = t('activerecord.models.tip.one') =< exercise_tip.rank = ": #{tip.title}" if tip.title? .card.card-collapse.collapse id="tip-collapse-#{exercise_tip.id}" aria-labelledby="tip-heading-#{exercise_tip.id}" role="tabpanel" data-exercise-tip-id=exercise_tip.id .card-body.p-3 h5 = t('exercises.implement.tips.description') = tip.description - if tip.example? h5.mt-2 = t('exercises.implement.tips.example') pre code.mh-100 class="language-#{tip.file_type.editor_mode.gsub("ace/mode/", "")}" = tip.example = render(partial: 'tips/collapsed_card', collection: exercise_tip.children, as: :exercise_tip)
Fix styling for multiple, nested cards
Fix styling for multiple, nested cards
Slim
bsd-3-clause
openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean
slim
## Code Before: - tip = exercise_tip.tip .card.mb-2 .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}" .clearfix role="button" i.fa aria-hidden="true" span = t('activerecord.models.tip.one') =< exercise_tip.rank = ": #{tip.title}" if tip.title? .card.card-collapse.collapse id="tip-collapse-#{exercise_tip.id}" aria-labelledby="tip-heading-#{exercise_tip.id}" role="tabpanel" data-exercise-tip-id=exercise_tip.id .card-body.p-3 h5 = t('exercises.implement.tips.description') = tip.description - if tip.example? h5.mt-2 = t('exercises.implement.tips.example') pre code.mh-100 class="language-#{tip.file_type.editor_mode.gsub("ace/mode/", "")}" = tip.example .mb-4 = render(partial: 'tips/collapsed_card', collection: exercise_tip.children, as: :exercise_tip) ## Instruction: Fix styling for multiple, nested cards ## Code After: - tip = exercise_tip.tip .card class="#{exercise_tip.parent_exercise_tip_id? ? 'mt-2' : ''}" .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}" .clearfix role="button" i.fa aria-hidden="true" span = t('activerecord.models.tip.one') =< exercise_tip.rank = ": #{tip.title}" if tip.title? .card.card-collapse.collapse id="tip-collapse-#{exercise_tip.id}" aria-labelledby="tip-heading-#{exercise_tip.id}" role="tabpanel" data-exercise-tip-id=exercise_tip.id .card-body.p-3 h5 = t('exercises.implement.tips.description') = tip.description - if tip.example? h5.mt-2 = t('exercises.implement.tips.example') pre code.mh-100 class="language-#{tip.file_type.editor_mode.gsub("ace/mode/", "")}" = tip.example = render(partial: 'tips/collapsed_card', collection: exercise_tip.children, as: :exercise_tip)
6a05298c0ec57993c19773fb1fa958ca6bd3e35a
src/karma/presets/base.js
src/karma/presets/base.js
export default { name: 'base', configure ({ projectPath }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*.spec.*': ['webpack'] }, webpackServer: { noInfo: true }, singleRun: true, autoWatch: false } } }
export default { name: 'base', configure ({ projectPath, watch }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*.spec.*': ['webpack'] }, webpackServer: { noInfo: true }, singleRun: !watch, autoWatch: watch } } }
Fix execution of test watch 🐝
Fix execution of test watch 🐝
JavaScript
mit
saguijs/sagui,saguijs/sagui
javascript
## Code Before: export default { name: 'base', configure ({ projectPath }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*.spec.*': ['webpack'] }, webpackServer: { noInfo: true }, singleRun: true, autoWatch: false } } } ## Instruction: Fix execution of test watch 🐝 ## Code After: export default { name: 'base', configure ({ projectPath, watch }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*.spec.*': ['webpack'] }, webpackServer: { noInfo: true }, singleRun: !watch, autoWatch: watch } } }
7275d2f837d60a55b31ac1b298d901aea837f4cb
blueprints/ember-calendar/index.js
blueprints/ember-calendar/index.js
/* jshint node: true */ 'use strict'; module.exports = { afterInstall: function() { this.addPackagesToProject([ { name: 'ember-cli-paint' }, { name: 'ember-cli-lodash' }, { name: 'ember-moment' } ]); this.addBowerPackagesToProject([ { name: 'moment-timezone' }, { name: 'interact' }, { name: 'lodash' } ]); } };
/* jshint node: true */ 'use strict'; module.exports = { normalizeEntityName: function() {}, beforeInstall: function() { return this.addBowerPackagesToProject([ { name: 'moment-timezone' }, { name: 'jquery-simulate' }, { name: 'interact' }, { name: 'lodash' } ]); }, afterInstall: function() { return this.addPackagesToProject([ { name: 'ember-cli-paint' }, { name: 'ember-cli-lodash' }, { name: 'ember-moment' } ]); } };
Normalize entity name and return promises
Normalize entity name and return promises
JavaScript
mit
alphasights/ember-calendar,mmitchellgarcia/ember-calendar,Subtletree/ember-calendar,e-karma/ewd-calendar,miclip/ember-calendar,marzubov/ember-calendar,mmitchellgarcia/ember-calendar,alphasights/ember-calendar,alphasights/ember-calendar,WebCloud/ember-calendar,marzubov/ember-calendar,alphasights/ember-calendar,mmitchellgarcia/ember-calendar,Subtletree/ember-calendar,e-karma/ewd-calendar,Subtletree/ember-calendar,WebCloud/ember-calendar,miclip/ember-calendar,e-karma/ewd-calendar,marzubov/ember-calendar,miclip/ember-calendar,marzubov/ember-calendar,miclip/ember-calendar,WebCloud/ember-calendar,e-karma/ewd-calendar,mmitchellgarcia/ember-calendar,Subtletree/ember-calendar,WebCloud/ember-calendar
javascript
## Code Before: /* jshint node: true */ 'use strict'; module.exports = { afterInstall: function() { this.addPackagesToProject([ { name: 'ember-cli-paint' }, { name: 'ember-cli-lodash' }, { name: 'ember-moment' } ]); this.addBowerPackagesToProject([ { name: 'moment-timezone' }, { name: 'interact' }, { name: 'lodash' } ]); } }; ## Instruction: Normalize entity name and return promises ## Code After: /* jshint node: true */ 'use strict'; module.exports = { normalizeEntityName: function() {}, beforeInstall: function() { return this.addBowerPackagesToProject([ { name: 'moment-timezone' }, { name: 'jquery-simulate' }, { name: 'interact' }, { name: 'lodash' } ]); }, afterInstall: function() { return this.addPackagesToProject([ { name: 'ember-cli-paint' }, { name: 'ember-cli-lodash' }, { name: 'ember-moment' } ]); } };
a3f4885acc5603564ae7527a4636cafc1e155a9e
app/models/activity.rb
app/models/activity.rb
class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true validates :target, presence: true after_commit :track_in_segment, on: :create attr_accessor :socket_id def self.publish!(opts) create!(opts).tap do |a| PublishActivity.perform_async(a.id) if Story.should_publish?(a) a.publish_to_chat if a.publishable end end def track_in_segment return if actor.staff? TrackActivityCreated.perform_async(self.id) end # make this object tippable def tip_receiver actor end def verb self.class.name.split('::').last end def verb_subject s = subject_type == 'Event' ? target : subject raise "Bad Subject #{self.inspect}" if s.nil? s.class.name.split('::').last end # deprecated def streams stream_targets.map do |o| ActivityStream.new(o) end end def stream_targets [actor, target] end def publish_to_chat streams.each do |stream| stream.push(self) end end def publishable false end end
class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true validates :target, presence: true after_commit :track_in_segment, on: :create attr_accessor :socket_id def self.publish!(opts) create!(opts).tap do |a| if a.publishable PublishActivity.perform_async(a.id) if Story.should_publish?(a) a.publish_to_chat end end end def track_in_segment return if actor.staff? TrackActivityCreated.perform_async(self.id) end # make this object tippable def tip_receiver actor end def verb self.class.name.split('::').last end def verb_subject s = subject_type == 'Event' ? target : subject raise "Bad Subject #{self.inspect}" if s.nil? s.class.name.split('::').last end # deprecated def streams stream_targets.map do |o| ActivityStream.new(o) end end def stream_targets [actor, target] end def publish_to_chat streams.each do |stream| stream.push(self) end end def publishable false end end
Improve fix for not publishing ghost activities
Improve fix for not publishing ghost activities
Ruby
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta
ruby
## Code Before: class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true validates :target, presence: true after_commit :track_in_segment, on: :create attr_accessor :socket_id def self.publish!(opts) create!(opts).tap do |a| PublishActivity.perform_async(a.id) if Story.should_publish?(a) a.publish_to_chat if a.publishable end end def track_in_segment return if actor.staff? TrackActivityCreated.perform_async(self.id) end # make this object tippable def tip_receiver actor end def verb self.class.name.split('::').last end def verb_subject s = subject_type == 'Event' ? target : subject raise "Bad Subject #{self.inspect}" if s.nil? s.class.name.split('::').last end # deprecated def streams stream_targets.map do |o| ActivityStream.new(o) end end def stream_targets [actor, target] end def publish_to_chat streams.each do |stream| stream.push(self) end end def publishable false end end ## Instruction: Improve fix for not publishing ghost activities ## Code After: class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true validates :target, presence: true after_commit :track_in_segment, on: :create attr_accessor :socket_id def self.publish!(opts) create!(opts).tap do |a| if a.publishable PublishActivity.perform_async(a.id) if Story.should_publish?(a) a.publish_to_chat end end end def track_in_segment return if actor.staff? TrackActivityCreated.perform_async(self.id) end # make this object tippable def tip_receiver actor end def verb self.class.name.split('::').last end def verb_subject s = subject_type == 'Event' ? target : subject raise "Bad Subject #{self.inspect}" if s.nil? s.class.name.split('::').last end # deprecated def streams stream_targets.map do |o| ActivityStream.new(o) end end def stream_targets [actor, target] end def publish_to_chat streams.each do |stream| stream.push(self) end end def publishable false end end
439aef404153052bf02a458c3907087730d7493a
.vim/bundle/getBundles.sh
.vim/bundle/getBundles.sh
git clone https://github.com/blueshirts/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/Shougo/vimproc.vim.git pushd vimproc.vim make popd
git clone https://github.com/martinrist/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/Shougo/vimproc.vim.git pushd vimproc.vim make popd
Use my own fork of Darcula theme for Vim
Use my own fork of Darcula theme for Vim
Shell
mit
martinrist/dotfiles
shell
## Code Before: git clone https://github.com/blueshirts/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/Shougo/vimproc.vim.git pushd vimproc.vim make popd ## Instruction: Use my own fork of Darcula theme for Vim ## Code After: git clone https://github.com/martinrist/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/Shougo/vimproc.vim.git pushd vimproc.vim make popd
cd38101f097edc60312f0c083385968ed40fd54a
src/control.py
src/control.py
import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose current_pose = message.pose[2] def compute_control_actions(): global i controller.compute_control_actions(current_pose, i) plotter.add_point(current_pose) twist = Twist() twist.linear.x = controller.v_n twist.angular.z = controller.w_n twist_publisher.publish(twist) i += 1 if __name__ == '__main__': rospy.init_node('control') current_pose = None subscriber = rospy.Subscriber('gazebo/model_states', ModelStates, get_pose) twist_publisher = rospy.Publisher('computed_control_actions', Twist, queue_size=1) while current_pose is None: pass i = 0 plotter = Plotter() controller = create_controller() rate = rospy.Rate(int(1 / DELTA_T)) while not rospy.is_shutdown() and i < STEPS: compute_control_actions() rate.sleep() plotter.plot_results() rospy.spin()
import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose, current_twist current_pose = message.pose[2] current_twist = message.twist[2] def compute_control_actions(): global i controller.compute_control_actions(current_pose, i) plotter.add_point(current_pose) twist = Twist() twist.linear.x = controller.v_n twist.angular.z = controller.w_n twist_publisher.publish(twist) i += 1 if __name__ == '__main__': rospy.init_node('control') current_pose = None current_twist = None subscriber = rospy.Subscriber('gazebo/model_states', ModelStates, get_pose) twist_publisher = rospy.Publisher('computed_control_actions', Twist, queue_size=1) while current_pose is None or current_twist is None: pass i = 0 plotter = Plotter() controller = create_controller() rate = rospy.Rate(int(1 / DELTA_T)) while not rospy.is_shutdown() and i < STEPS: compute_control_actions() rate.sleep() plotter.plot_results() rospy.spin()
Store current twist in a global variable
Store current twist in a global variable
Python
mit
bit0001/trajectory_tracking,bit0001/trajectory_tracking
python
## Code Before: import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose current_pose = message.pose[2] def compute_control_actions(): global i controller.compute_control_actions(current_pose, i) plotter.add_point(current_pose) twist = Twist() twist.linear.x = controller.v_n twist.angular.z = controller.w_n twist_publisher.publish(twist) i += 1 if __name__ == '__main__': rospy.init_node('control') current_pose = None subscriber = rospy.Subscriber('gazebo/model_states', ModelStates, get_pose) twist_publisher = rospy.Publisher('computed_control_actions', Twist, queue_size=1) while current_pose is None: pass i = 0 plotter = Plotter() controller = create_controller() rate = rospy.Rate(int(1 / DELTA_T)) while not rospy.is_shutdown() and i < STEPS: compute_control_actions() rate.sleep() plotter.plot_results() rospy.spin() ## Instruction: Store current twist in a global variable ## Code After: import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose, current_twist current_pose = message.pose[2] current_twist = message.twist[2] def compute_control_actions(): global i controller.compute_control_actions(current_pose, i) plotter.add_point(current_pose) twist = Twist() twist.linear.x = controller.v_n twist.angular.z = controller.w_n twist_publisher.publish(twist) i += 1 if __name__ == '__main__': rospy.init_node('control') current_pose = None current_twist = None subscriber = rospy.Subscriber('gazebo/model_states', ModelStates, get_pose) twist_publisher = rospy.Publisher('computed_control_actions', Twist, queue_size=1) while current_pose is None or current_twist is None: pass i = 0 plotter = Plotter() controller = create_controller() rate = rospy.Rate(int(1 / DELTA_T)) while not rospy.is_shutdown() and i < STEPS: compute_control_actions() rate.sleep() plotter.plot_results() rospy.spin()
8707aafe58eb1283e7da6c95936c220462f37460
node_modules/oae-core/lhnavigation/css/lhnavigation.css
node_modules/oae-core/lhnavigation/css/lhnavigation.css
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing * permissions and limitations under the License. */ #lhnavigation-container { padding: 5px 10px; } #lhnavigation-page { padding: 5px 25px 50px 25px; } #lhnavigation-navigation ul li a div { padding-top: 8px; }
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing * permissions and limitations under the License. */ #lhnavigation-container { padding: 5px 10px; } #lhnavigation-navigation { margin-top: -5px; } #lhnavigation-page { padding: 5px 25px 50px 25px; } #lhnavigation-navigation ul li a div { padding-top: 8px; }
Align left hand navigation with top of content
Align left hand navigation with top of content
CSS
apache-2.0
Orodan/3akai-ux,Orodan/3akai-ux-jitsi-fork,jfederico/3akai-ux,timdegroote/3akai-ux,nicolaasmatthijs/3akai-ux,mrvisser/3akai-ux,nicolaasmatthijs/3akai-ux,Orodan/3akai-ux-jitsi-fork,simong/3akai-ux,simong/3akai-ux,stuartf/3akai-ux,stuartf/3akai-ux,stuartf/3akai-ux,mrvisser/3akai-ux,mrvisser/3akai-ux,jfederico/3akai-ux,Orodan/3akai-ux,timdegroote/3akai-ux,Orodan/3akai-ux,simong/3akai-ux,jfederico/3akai-ux,timdegroote/3akai-ux,Orodan/3akai-ux-jitsi-fork,Coenego/avocet-ui,Coenego/avocet-ui,nicolaasmatthijs/3akai-ux
css
## Code Before: /*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing * permissions and limitations under the License. */ #lhnavigation-container { padding: 5px 10px; } #lhnavigation-page { padding: 5px 25px 50px 25px; } #lhnavigation-navigation ul li a div { padding-top: 8px; } ## Instruction: Align left hand navigation with top of content ## Code After: /*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing * permissions and limitations under the License. */ #lhnavigation-container { padding: 5px 10px; } #lhnavigation-navigation { margin-top: -5px; } #lhnavigation-page { padding: 5px 25px 50px 25px; } #lhnavigation-navigation ul li a div { padding-top: 8px; }
703774516e84f00dfbea58584bb2d5e913f25fda
luasrc/tests/testMultipleRequire.lua
luasrc/tests/testMultipleRequire.lua
require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' state = torch.getRNGState() randomkit.gauss(oneRequire) -- call N with require between each another torch.setRNGState(state) local multipleRequire = torch.Tensor(N) for i=1,N do require 'randomkit' multipleRequire[i] = randomkit.gauss() end -- The streams should be the same tester:assertTensorEq(oneRequire, multipleRequire, 1e-16, 'Multiple require changed the stream') end tester:add(myTests) return tester:run()
require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' local ignored = torch.rand(1) local state = torch.getRNGState() randomkit.gauss(oneRequire) -- call N with require between each another torch.setRNGState(state) local multipleRequire = torch.Tensor(N) for i=1,N do require 'randomkit' multipleRequire[i] = randomkit.gauss() end -- The streams should be the same tester:assertTensorEq(oneRequire, multipleRequire, 1e-16, 'Multiple require changed the stream') end tester:add(myTests) return tester:run()
Fix test with serial dependency.
Fix test with serial dependency. - torch.rand() must be called before torch.getRNGState() to ensure the state is defined. - Added a 'local' keyword.
Lua
bsd-3-clause
fastturtle/torch-randomkit,deepmind/torch-randomkit,fastturtle/torch-randomkit,deepmind/torch-randomkit
lua
## Code Before: require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' state = torch.getRNGState() randomkit.gauss(oneRequire) -- call N with require between each another torch.setRNGState(state) local multipleRequire = torch.Tensor(N) for i=1,N do require 'randomkit' multipleRequire[i] = randomkit.gauss() end -- The streams should be the same tester:assertTensorEq(oneRequire, multipleRequire, 1e-16, 'Multiple require changed the stream') end tester:add(myTests) return tester:run() ## Instruction: Fix test with serial dependency. - torch.rand() must be called before torch.getRNGState() to ensure the state is defined. - Added a 'local' keyword. ## Code After: require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' local ignored = torch.rand(1) local state = torch.getRNGState() randomkit.gauss(oneRequire) -- call N with require between each another torch.setRNGState(state) local multipleRequire = torch.Tensor(N) for i=1,N do require 'randomkit' multipleRequire[i] = randomkit.gauss() end -- The streams should be the same tester:assertTensorEq(oneRequire, multipleRequire, 1e-16, 'Multiple require changed the stream') end tester:add(myTests) return tester:run()
d547f7d5110929b5d572833e9ea2b31141b0b58b
.vscode/settings.json
.vscode/settings.json
// Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", }
// Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs/": true, "releases/": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode" }
Add releases/ to vscode's search.exclude.
Add releases/ to vscode's search.exclude.
JSON
mit
Tails/vexflow,Tails/vexflow,Tails/vexflow
json
## Code Before: // Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", } ## Instruction: Add releases/ to vscode's search.exclude. ## Code After: // Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs/": true, "releases/": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode" }
aa39ca6a0ebf07ef5489a07bf57ad722411907d7
core/static/core/js/core.js
core/static/core/js/core.js
$(document).ready( function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); }, 3000); } ); $(function () { $('.load-on-click').click(function () { var data = $(this).data(); $(data.destination).load(data.url); }); } );
$(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); }, 3000); $('.load-on-click').click(function () { var data = $(this).data(); $(data.destination).load(data.url); }); } );
Move all jquerry actions to document.ready
Move all jquerry actions to document.ready
JavaScript
mit
WeitBelou/technotrack-web1-spring-2017,WeitBelou/technotrack-web1-spring-2017,WeitBelou/technotrack-web1-spring-2017
javascript
## Code Before: $(document).ready( function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); }, 3000); } ); $(function () { $('.load-on-click').click(function () { var data = $(this).data(); $(data.destination).load(data.url); }); } ); ## Instruction: Move all jquerry actions to document.ready ## Code After: $(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); }, 3000); $('.load-on-click').click(function () { var data = $(this).data(); $(data.destination).load(data.url); }); } );
f7363f564453d6c4718bd73ff77b083fe4ed0c37
Language/Pretty.hs
Language/Pretty.hs
{-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Data.Char import Text.PrettyPrint class Pretty a where pp :: a -> Doc real :: Real -> Doc real = double pprint :: Pretty a => a -> String pprint = render . pp sepMap :: (a -> Doc) -> [a] -> Doc sepMap f = sep . map f ppList :: [Doc] -> Doc ppList = parens . sep symbol :: String -> Doc symbol s = text (map toUpper s) ppForm :: Pretty a => String -> [a] -> Doc ppForm name xs = ppList $ symbol name : map pp xs
{-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Text.PrettyPrint class Pretty a where pp :: a -> Doc real :: Real -> Doc real = double pprint :: Pretty a => a -> String pprint = render . pp sepMap :: (a -> Doc) -> [a] -> Doc sepMap f = sep . map f ppList :: [Doc] -> Doc ppList = parens . sep symbol :: String -> Doc symbol = text ppForm :: Pretty a => String -> [a] -> Doc ppForm name xs = ppList $ symbol name : map pp xs
Print symbols in low case letters.
Print symbols in low case letters. Ignore for a while that symbols and code don't stand out as clearly in error messages.
Haskell
agpl-3.0
axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language
haskell
## Code Before: {-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Data.Char import Text.PrettyPrint class Pretty a where pp :: a -> Doc real :: Real -> Doc real = double pprint :: Pretty a => a -> String pprint = render . pp sepMap :: (a -> Doc) -> [a] -> Doc sepMap f = sep . map f ppList :: [Doc] -> Doc ppList = parens . sep symbol :: String -> Doc symbol s = text (map toUpper s) ppForm :: Pretty a => String -> [a] -> Doc ppForm name xs = ppList $ symbol name : map pp xs ## Instruction: Print symbols in low case letters. Ignore for a while that symbols and code don't stand out as clearly in error messages. ## Code After: {-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Text.PrettyPrint class Pretty a where pp :: a -> Doc real :: Real -> Doc real = double pprint :: Pretty a => a -> String pprint = render . pp sepMap :: (a -> Doc) -> [a] -> Doc sepMap f = sep . map f ppList :: [Doc] -> Doc ppList = parens . sep symbol :: String -> Doc symbol = text ppForm :: Pretty a => String -> [a] -> Doc ppForm name xs = ppList $ symbol name : map pp xs
92d1bf98825cbc4ae4a4619608ddac8191b47d5d
Instructor_Checklist.md
Instructor_Checklist.md
This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stickers * [ ] Business Cards ## Before Starting * [ ] Set your shell to BASH * [ ] Remove and unidata-workshop environment before beginning * [ ] Use no syntax highlighting or highlighting that projects well * [ ] Write workshop web address up * [ ] [Setup](https://etherpad.wikimedia.org/) and link workshop etherpad ## During Workshop * [ ] Ask students to bookmark workshop webpage * [ ] Introduce etherpad * [ ] Ask students to complete exit survey * [ ] Collect red/green notes from students as they leave each day ## After Workshop * [ ] Send email reminder to ask students to complete the survey
This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Before * [ ] Send out announcement * [ ] Send out follow-up announcement * [ ] Create survey ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stickers * [ ] Business Cards ## Before Starting * [ ] Set your shell to BASH * [ ] Remove and unidata-workshop environment before beginning * [ ] Use no syntax highlighting or highlighting that projects well * [ ] Write workshop web address up * [ ] [Setup](https://etherpad.wikimedia.org/) and link workshop etherpad ## During Workshop * [ ] Ask students to bookmark workshop webpage * [ ] Introduce etherpad * [ ] Ask students to complete exit survey * [ ] Collect red/green notes from students as they leave each day ## After Workshop * [ ] Send email reminder to ask students to complete the survey
Add some more initial prep work to the checklist
Add some more initial prep work to the checklist
Markdown
mit
julienchastang/unidata-python-workshop,Unidata/unidata-python-workshop,julienchastang/unidata-python-workshop
markdown
## Code Before: This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stickers * [ ] Business Cards ## Before Starting * [ ] Set your shell to BASH * [ ] Remove and unidata-workshop environment before beginning * [ ] Use no syntax highlighting or highlighting that projects well * [ ] Write workshop web address up * [ ] [Setup](https://etherpad.wikimedia.org/) and link workshop etherpad ## During Workshop * [ ] Ask students to bookmark workshop webpage * [ ] Introduce etherpad * [ ] Ask students to complete exit survey * [ ] Collect red/green notes from students as they leave each day ## After Workshop * [ ] Send email reminder to ask students to complete the survey ## Instruction: Add some more initial prep work to the checklist ## Code After: This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Before * [ ] Send out announcement * [ ] Send out follow-up announcement * [ ] Create survey ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stickers * [ ] Business Cards ## Before Starting * [ ] Set your shell to BASH * [ ] Remove and unidata-workshop environment before beginning * [ ] Use no syntax highlighting or highlighting that projects well * [ ] Write workshop web address up * [ ] [Setup](https://etherpad.wikimedia.org/) and link workshop etherpad ## During Workshop * [ ] Ask students to bookmark workshop webpage * [ ] Introduce etherpad * [ ] Ask students to complete exit survey * [ ] Collect red/green notes from students as they leave each day ## After Workshop * [ ] Send email reminder to ask students to complete the survey
e3cd725db9868620eb26abbe83ddbd6154e49401
.circleci/config.yml
.circleci/config.yml
version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: key: yarn_lock-{{ checksum "yarn.lock" }} paths: - ~/.cache/yarn - ./node_modules - run: name: Lint source code command: yarn lint - run: name: Run unit tests command: | yarn test --reporter xunit --reporter-options output=reports/mocha/test-results.xml - store_test_results: path: ./reports - store_artifacts: path: ./reports destination: tests/ - run: name: Build client package command: | rm -rf dist # Clean the output directory before building yarn build:prod - deploy: name: Deploy client assets to GitHub Pages command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then fi - store_artifacts: path: dist destination: dist workflows: build-deploy: jobs: - build: filters: branches: ignore: - gh-pages
version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: key: yarn_lock-{{ checksum "yarn.lock" }} paths: - ~/.cache/yarn - ./node_modules - run: name: Lint source code command: yarn lint - run: name: Run unit tests command: | yarn test --reporter xunit --reporter-options output=reports/mocha/test-results.xml - store_test_results: path: ./reports - store_artifacts: path: ./reports destination: tests/ - run: name: Build client package command: | rm -rf dist # Clean the output directory before building yarn build:prod - deploy: name: Deploy client assets to GitHub Pages command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then fi - store_artifacts: path: dist destination: dist
Revert "Ignore deployment branch in CircleCI"
Revert "Ignore deployment branch in CircleCI" This reverts commit d5953923d2c993d776626a8ace5e30af3354bc24.
YAML
mit
CalMlynarczyk/BlackJack,CalMlynarczyk/BlackJack,CalMlynarczyk/BlackJack
yaml
## Code Before: version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: key: yarn_lock-{{ checksum "yarn.lock" }} paths: - ~/.cache/yarn - ./node_modules - run: name: Lint source code command: yarn lint - run: name: Run unit tests command: | yarn test --reporter xunit --reporter-options output=reports/mocha/test-results.xml - store_test_results: path: ./reports - store_artifacts: path: ./reports destination: tests/ - run: name: Build client package command: | rm -rf dist # Clean the output directory before building yarn build:prod - deploy: name: Deploy client assets to GitHub Pages command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then fi - store_artifacts: path: dist destination: dist workflows: build-deploy: jobs: - build: filters: branches: ignore: - gh-pages ## Instruction: Revert "Ignore deployment branch in CircleCI" This reverts commit d5953923d2c993d776626a8ace5e30af3354bc24. ## Code After: version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: key: yarn_lock-{{ checksum "yarn.lock" }} paths: - ~/.cache/yarn - ./node_modules - run: name: Lint source code command: yarn lint - run: name: Run unit tests command: | yarn test --reporter xunit --reporter-options output=reports/mocha/test-results.xml - store_test_results: path: ./reports - store_artifacts: path: ./reports destination: tests/ - run: name: Build client package command: | rm -rf dist # Clean the output directory before building yarn build:prod - deploy: name: Deploy client assets to GitHub Pages command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then fi - store_artifacts: path: dist destination: dist
6a1b527deba29d3c0cf8a7d5cc6ecbc9edaa78ba
_config.yml
_config.yml
title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://blog.deadrooster.org" # the base hostname & protocol for your site twitter_username: dead__rooster # Build settings markdown: kramdown permalink: /:title.html exclude: [ 'bower_components', 'node_modules', 'bower.json', 'Gemfile', 'Gemfile.lock', 'Gruntfile.js', 'package.json', 'README.md', 'config.ru']
title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://blog.deadrooster.org" # the base hostname & protocol for your site twitter_username: dead__rooster # Build settings markdown: kramdown permalink: /:title.html exclude: [ 'bower_components', 'node_modules', 'bower.json', 'Gemfile', 'Gemfile.lock', 'Gruntfile.js', 'package.json', 'README.md', 'config.ru', 'vendor']
Stop trying to build md from vendor on Heroku
Stop trying to build md from vendor on Heroku
YAML
mit
dirtyhenry/blog-deadrooster-org,dirtyhenry/blog-deadrooster-org,dirtyhenry/blog-deadrooster-org
yaml
## Code Before: title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://blog.deadrooster.org" # the base hostname & protocol for your site twitter_username: dead__rooster # Build settings markdown: kramdown permalink: /:title.html exclude: [ 'bower_components', 'node_modules', 'bower.json', 'Gemfile', 'Gemfile.lock', 'Gruntfile.js', 'package.json', 'README.md', 'config.ru'] ## Instruction: Stop trying to build md from vendor on Heroku ## Code After: title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://blog.deadrooster.org" # the base hostname & protocol for your site twitter_username: dead__rooster # Build settings markdown: kramdown permalink: /:title.html exclude: [ 'bower_components', 'node_modules', 'bower.json', 'Gemfile', 'Gemfile.lock', 'Gruntfile.js', 'package.json', 'README.md', 'config.ru', 'vendor']
463d94475b3f887ba1ec6646920b368c770cdebd
ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.mk
ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.mk
USB_VID = 0X1B4F # TODO: Replace the Product ID below with the official value once known. USB_PID = 0x0027 # Same PID as the SparkFun MicroMod STM32 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MCU_SERIES = F4 MCU_VARIANT = STM32F405xx MCU_PACKAGE = LQFP64 LD_COMMON = boards/common_default.ld LD_DEFAULT = boards/STM32F405_default.ld # UF2 boot option LD_BOOT = boards/STM32F405_boot.ld UF2_OFFSET = 0x8010000 CIRCUITPY_RGBMATRIX ?= 1
USB_VID = 0X1B4F USB_PID = 0x0028 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MCU_SERIES = F4 MCU_VARIANT = STM32F405xx MCU_PACKAGE = LQFP64 LD_COMMON = boards/common_default.ld LD_DEFAULT = boards/STM32F405_default.ld # UF2 boot option LD_BOOT = boards/STM32F405_boot.ld UF2_OFFSET = 0x8010000 CIRCUITPY_RGBMATRIX ?= 1
Use correct PID for SparkFun Thing Plus - STM32
Use correct PID for SparkFun Thing Plus - STM32 This value was kindly provided by brhoff720.
Makefile
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
makefile
## Code Before: USB_VID = 0X1B4F # TODO: Replace the Product ID below with the official value once known. USB_PID = 0x0027 # Same PID as the SparkFun MicroMod STM32 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MCU_SERIES = F4 MCU_VARIANT = STM32F405xx MCU_PACKAGE = LQFP64 LD_COMMON = boards/common_default.ld LD_DEFAULT = boards/STM32F405_default.ld # UF2 boot option LD_BOOT = boards/STM32F405_boot.ld UF2_OFFSET = 0x8010000 CIRCUITPY_RGBMATRIX ?= 1 ## Instruction: Use correct PID for SparkFun Thing Plus - STM32 This value was kindly provided by brhoff720. ## Code After: USB_VID = 0X1B4F USB_PID = 0x0028 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MCU_SERIES = F4 MCU_VARIANT = STM32F405xx MCU_PACKAGE = LQFP64 LD_COMMON = boards/common_default.ld LD_DEFAULT = boards/STM32F405_default.ld # UF2 boot option LD_BOOT = boards/STM32F405_boot.ld UF2_OFFSET = 0x8010000 CIRCUITPY_RGBMATRIX ?= 1
3ed19b2672738a59fc8676e0403ee90fe57273a1
django/website/logframe/tests/test_admin.py
django/website/logframe/tests/test_admin.py
from mock import Mock from ..admin import SubIndicatorAdmin from ..models import SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicator.indicator.result == admin.result(sub_indicator)
from mock import Mock from ..admin import RatingAdmin, SubIndicatorAdmin from ..models import colors, Rating, SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicator.indicator.result == admin.result(sub_indicator) def test_rating_admin_colored_name_returns_name_for_colours(): obj = Mock(color=colors[0][0]) admin = RatingAdmin(Rating, None) assert '<span class="rating-list-item {0}">{1}</span>'.format(colors[0][0], colors[0][1]) == admin.colored_name(obj)
Add test for RatingAdmin colored_name
Add test for RatingAdmin colored_name
Python
agpl-3.0
aptivate/alfie,daniell/kashana,aptivate/kashana,aptivate/alfie,daniell/kashana,aptivate/kashana,aptivate/alfie,daniell/kashana,aptivate/alfie,aptivate/kashana,aptivate/kashana,daniell/kashana
python
## Code Before: from mock import Mock from ..admin import SubIndicatorAdmin from ..models import SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicator.indicator.result == admin.result(sub_indicator) ## Instruction: Add test for RatingAdmin colored_name ## Code After: from mock import Mock from ..admin import RatingAdmin, SubIndicatorAdmin from ..models import colors, Rating, SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicator.indicator.result == admin.result(sub_indicator) def test_rating_admin_colored_name_returns_name_for_colours(): obj = Mock(color=colors[0][0]) admin = RatingAdmin(Rating, None) assert '<span class="rating-list-item {0}">{1}</span>'.format(colors[0][0], colors[0][1]) == admin.colored_name(obj)
a2a63106447d781af5c49fdcf9203542e297043e
pom.xml
pom.xml
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>ROOT</artifactId> <packaging>jar</packaging> <name>convert</name> <description>Java data types conversion.</description> <inceptionYear>2014</inceptionYear> <groupId>com.kashukov</groupId> <version>1</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build> </project>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>convert</artifactId> <packaging>jar</packaging> <groupId>com.kashukov</groupId> <version>1.0-SNAPSHOT</version> <name>convert</name> <description>Java data types conversion.</description> <inceptionYear>2014</inceptionYear> <build> <defaultGoal>install</defaultGoal> <directory>${basedir}/target</directory> <finalName>${artifactId}-${version}</finalName> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> </project>
Build directory changed, version added.
Build directory changed, version added.
XML
apache-2.0
kashukov/convert
xml
## Code Before: <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>ROOT</artifactId> <packaging>jar</packaging> <name>convert</name> <description>Java data types conversion.</description> <inceptionYear>2014</inceptionYear> <groupId>com.kashukov</groupId> <version>1</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build> </project> ## Instruction: Build directory changed, version added. ## Code After: <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>convert</artifactId> <packaging>jar</packaging> <groupId>com.kashukov</groupId> <version>1.0-SNAPSHOT</version> <name>convert</name> <description>Java data types conversion.</description> <inceptionYear>2014</inceptionYear> <build> <defaultGoal>install</defaultGoal> <directory>${basedir}/target</directory> <finalName>${artifactId}-${version}</finalName> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> </project>
1f6bd3be5648395b121288f5894486906d52d0eb
lib/scaffolds/views/index.html.haml
lib/scaffolds/views/index.html.haml
%h1= @page_title - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= plural_name %>.
%h1= @page_title <%- if actions.include?('new') %> - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' <% end -%> - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= plural_name %>.
Hide new button on index if no new action
Hide new button on index if no new action
Haml
mit
code-and-effect/effective_developer,code-and-effect/effective_developer
haml
## Code Before: %h1= @page_title - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= plural_name %>. ## Instruction: Hide new button on index if no new action ## Code After: %h1= @page_title <%- if actions.include?('new') %> - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' <% end -%> - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= plural_name %>.
fdb971d977910b7c7af368dc1d22d47a4ec30369
views/index.jade
views/index.jade
block content div.navbar navbar-fixed-top, (role='navigation') div.container-fluid div.navbar-header button.navbar-toggle (data-target=".navbar-collapse' data-toggle="collapse" type="button") span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand (href="#") AXB-Cagnote div.navbar-collapse collapse ul.nav navbar-nav navbar-right li a (href="#") Sign In li a(href="#") Log In div.top form.form-horizontal(method="post", id="loginForm") label Username input.span3(id="username", type="text", name="User", placeholder="Enter your username") label Password input.span3(id="passord" type="password", name="Password") input.btn(type="submit", value="Log in") div.container div.footer
block content div(class='navbar navbar-fixed-top', role='navigation') div.container-fluid div.navbar-header button.navbar-toggle(data-target=".navbar-collapse", data-toggle="collapse", type="button") span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand(href="#") AXB-Cagnote div(class='navbar-collapse collapse') ul(class='nav navbar-nav navbar-right') li a(href="#") Sign In li a(href="#") Log In div.top form.form-horizontal(method="post", id="loginForm") label Username input.span3(id="username", type="text", name="User", placeholder="Enter your username") label Password input.span3(id="passord" type="password", name="Password") input.btn(type="submit", value="Log in") div.container div.footer
Fix jade template main page
Fix jade template main page
Jade
bsd-2-clause
aberaza/cagnote,aberaza/cagnote
jade
## Code Before: block content div.navbar navbar-fixed-top, (role='navigation') div.container-fluid div.navbar-header button.navbar-toggle (data-target=".navbar-collapse' data-toggle="collapse" type="button") span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand (href="#") AXB-Cagnote div.navbar-collapse collapse ul.nav navbar-nav navbar-right li a (href="#") Sign In li a(href="#") Log In div.top form.form-horizontal(method="post", id="loginForm") label Username input.span3(id="username", type="text", name="User", placeholder="Enter your username") label Password input.span3(id="passord" type="password", name="Password") input.btn(type="submit", value="Log in") div.container div.footer ## Instruction: Fix jade template main page ## Code After: block content div(class='navbar navbar-fixed-top', role='navigation') div.container-fluid div.navbar-header button.navbar-toggle(data-target=".navbar-collapse", data-toggle="collapse", type="button") span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand(href="#") AXB-Cagnote div(class='navbar-collapse collapse') ul(class='nav navbar-nav navbar-right') li a(href="#") Sign In li a(href="#") Log In div.top form.form-horizontal(method="post", id="loginForm") label Username input.span3(id="username", type="text", name="User", placeholder="Enter your username") label Password input.span3(id="passord" type="password", name="Password") input.btn(type="submit", value="Log in") div.container div.footer
c8681995f7a7107a1cc52b4ed5ffe3f0ca325bda
support/packagecloud_upload.sh
support/packagecloud_upload.sh
export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [ "${PACKAGECLOUD_OS}" == "el" ]; then OS[1]="scientific" OS[2]="ol" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the omnibus-gitlab checkout. bin/package_cloud push ${PACKAGECLOUD_USER}/${PACKAGECLOUD_REPO}/${PACKAGECLOUD_OS} \ $(shell find pkg -name '*.rpm' -or -name '*.deb') \ --url=https://packages.gitlab.com done;
export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [[ "${PACKAGECLOUD_OS}" =~ "el/" ]]; then OS[1]="${OS[0]/el/scientific}" OS[2]="${OS[0]/el/ol}" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the omnibus-gitlab checkout. bin/package_cloud push ${PACKAGECLOUD_USER}/${PACKAGECLOUD_REPO}/${PACKAGECLOUD_OS} \ $(find pkg -name '*.rpm' -or -name '*.deb') \ --url=https://packages.gitlab.com done;
Correct the string match behavior for packacgecloud_upload.sh
Correct the string match behavior for packacgecloud_upload.sh We were attempting to match on the wrong data. Use a pattern match vs `el/` to detect, and not a direct comparison to `el`
Shell
apache-2.0
gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab
shell
## Code Before: export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [ "${PACKAGECLOUD_OS}" == "el" ]; then OS[1]="scientific" OS[2]="ol" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the omnibus-gitlab checkout. bin/package_cloud push ${PACKAGECLOUD_USER}/${PACKAGECLOUD_REPO}/${PACKAGECLOUD_OS} \ $(shell find pkg -name '*.rpm' -or -name '*.deb') \ --url=https://packages.gitlab.com done; ## Instruction: Correct the string match behavior for packacgecloud_upload.sh We were attempting to match on the wrong data. Use a pattern match vs `el/` to detect, and not a direct comparison to `el` ## Code After: export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [[ "${PACKAGECLOUD_OS}" =~ "el/" ]]; then OS[1]="${OS[0]/el/scientific}" OS[2]="${OS[0]/el/ol}" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the omnibus-gitlab checkout. bin/package_cloud push ${PACKAGECLOUD_USER}/${PACKAGECLOUD_REPO}/${PACKAGECLOUD_OS} \ $(find pkg -name '*.rpm' -or -name '*.deb') \ --url=https://packages.gitlab.com done;
a45eb42e6bea5fca0e6b74523d70963952ca04b0
src/variables.css
src/variables.css
/* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } /* Fonts */ :root { --logo-font-family: "Sanchez"; --logo-font-weight: 300; } /* Transitions */ :root { --transition-duration: 0.3s; --transition-effect: ease; --sidebar-transition: all 0.3s ease; } /* Thicknesses */ :root { --viewport-border-thickness: 1px; --ui-border-thickness: 1px; }
/* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } /* Fonts */ /* Logo font should be SVG so we don't need to load an entire font */ :root { --logo-font-family: 'Sanchez'; --logo-font-weight: 300; /* Sanchez, 300 does not exist */ } /* Transitions */ :root { --transition-duration: 0.3s; --transition-effect: ease; --sidebar-transition: all 0.3s ease; } /* Thicknesses */ :root { --viewport-border-thickness: 1px; --ui-border-thickness: 1px; }
Add note regarding preference for SVG over entire font for logo text
Add note regarding preference for SVG over entire font for logo text
CSS
mit
OHIF/Viewers,OHIF/Viewers,OHIF/Viewers
css
## Code Before: /* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } /* Fonts */ :root { --logo-font-family: "Sanchez"; --logo-font-weight: 300; } /* Transitions */ :root { --transition-duration: 0.3s; --transition-effect: ease; --sidebar-transition: all 0.3s ease; } /* Thicknesses */ :root { --viewport-border-thickness: 1px; --ui-border-thickness: 1px; } ## Instruction: Add note regarding preference for SVG over entire font for logo text ## Code After: /* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } /* Fonts */ /* Logo font should be SVG so we don't need to load an entire font */ :root { --logo-font-family: 'Sanchez'; --logo-font-weight: 300; /* Sanchez, 300 does not exist */ } /* Transitions */ :root { --transition-duration: 0.3s; --transition-effect: ease; --sidebar-transition: all 0.3s ease; } /* Thicknesses */ :root { --viewport-border-thickness: 1px; --ui-border-thickness: 1px; }
057a8add0a89af8044625a922249176bbfb67676
setup.cfg
setup.cfg
[bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405
[bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405 exclude = build
Exclude build dir for flake8
Exclude build dir for flake8
INI
mit
jrg365/gpytorch,jrg365/gpytorch,jrg365/gpytorch
ini
## Code Before: [bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405 ## Instruction: Exclude build dir for flake8 ## Code After: [bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405 exclude = build
af2c220449155a5a2af608d0b81ddc9d2d53d1ee
app/index.html
app/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Ruby Adventure</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <link rel="stylesheet" href="app.css"> </head> <body> <div class="container"> <div id="script-results"></div> <input id="script-input" type="text"> <h5 id="conn-status"> <span class="warning">Server Disconnected</span> </h5> </div> <script src="http://localhost:8888/socket.io/socket.io.js"></script> <script src="app.js"></script> </body> </html>
<!doctype html> <html lang="en"> <head> <title>wotf-cyoa</title <meta charset="utf-8"> <meta name="description" content="Wizards of the Future: Craft Your Own Adventure"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <link rel="stylesheet" href="app.css"> </head> <body> <div class="container"> <div id="script-results"></div> <input id="script-input" type="text"> <h5 id="conn-status"> <span class="warning">Server Disconnected</span> </h5> </div> <script src="http://localhost:8888/socket.io/socket.io.js"></script> <script src="app.js"></script> </body> </html>
Change title and add description meta tag
Change title and add description meta tag
HTML
mit
wotf-cyoa/frontend,wotf-cyoa/frontend,wotf-cyoa/backend,wotf-cyoa/backend
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Ruby Adventure</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <link rel="stylesheet" href="app.css"> </head> <body> <div class="container"> <div id="script-results"></div> <input id="script-input" type="text"> <h5 id="conn-status"> <span class="warning">Server Disconnected</span> </h5> </div> <script src="http://localhost:8888/socket.io/socket.io.js"></script> <script src="app.js"></script> </body> </html> ## Instruction: Change title and add description meta tag ## Code After: <!doctype html> <html lang="en"> <head> <title>wotf-cyoa</title <meta charset="utf-8"> <meta name="description" content="Wizards of the Future: Craft Your Own Adventure"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <link rel="stylesheet" href="app.css"> </head> <body> <div class="container"> <div id="script-results"></div> <input id="script-input" type="text"> <h5 id="conn-status"> <span class="warning">Server Disconnected</span> </h5> </div> <script src="http://localhost:8888/socket.io/socket.io.js"></script> <script src="app.js"></script> </body> </html>
fbe4d9f7a874be328a6a5c9fca568be259f7836e
packages/gi/github-types.yaml
packages/gi/github-types.yaml
homepage: '' changelog-type: '' hash: 3022535410f44dc43ed41650dc14bcd508ae288b5031b46422c94a314588cf2a test-bench-deps: {} maintainer: [email protected] synopsis: Type definitions for objects used by the GitHub v3 API changelog: '' basic-deps: base: ! '>=4 && <5' text: -any aeson: -any all-versions: - '0.1.0.0' - '0.1.0.1' - '0.1.0.2' - '0.1.0.3' - '0.1.0.4' - '0.1.0.5' author: Tomas Carnecky latest: '0.1.0.5' description-type: haddock description: ! 'This package includes (some) type definitions for objects which are consumed or produced by the GitHub v3 API.' license-name: OtherLicense
homepage: '' changelog-type: '' hash: 655337b6ac71bd5938a2ec9f4ead8da64a05dd0183a6ecf6489da30a51c92596 test-bench-deps: base: <4.9 time: -any aeson-pretty: -any unordered-containers: -any hspec: -any text: -any smallcheck: -any http-conduit: -any aeson: -any vector: -any hspec-smallcheck: -any maintainer: [email protected] synopsis: Type definitions for objects used by the GitHub v3 API changelog: '' basic-deps: base: ! '>=4 && <5' time: -any text: -any aeson: -any all-versions: - '0.1.0.0' - '0.1.0.1' - '0.1.0.2' - '0.1.0.3' - '0.1.0.4' - '0.1.0.5' - '0.2.0' author: Tomas Carnecky latest: '0.2.0' description-type: haddock description: ! 'This package includes (some) type definitions for objects which are consumed or produced by the GitHub v3 API.' license-name: OtherLicense
Update from Hackage at 2015-08-24T15:38:19+0000
Update from Hackage at 2015-08-24T15:38:19+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: 3022535410f44dc43ed41650dc14bcd508ae288b5031b46422c94a314588cf2a test-bench-deps: {} maintainer: [email protected] synopsis: Type definitions for objects used by the GitHub v3 API changelog: '' basic-deps: base: ! '>=4 && <5' text: -any aeson: -any all-versions: - '0.1.0.0' - '0.1.0.1' - '0.1.0.2' - '0.1.0.3' - '0.1.0.4' - '0.1.0.5' author: Tomas Carnecky latest: '0.1.0.5' description-type: haddock description: ! 'This package includes (some) type definitions for objects which are consumed or produced by the GitHub v3 API.' license-name: OtherLicense ## Instruction: Update from Hackage at 2015-08-24T15:38:19+0000 ## Code After: homepage: '' changelog-type: '' hash: 655337b6ac71bd5938a2ec9f4ead8da64a05dd0183a6ecf6489da30a51c92596 test-bench-deps: base: <4.9 time: -any aeson-pretty: -any unordered-containers: -any hspec: -any text: -any smallcheck: -any http-conduit: -any aeson: -any vector: -any hspec-smallcheck: -any maintainer: [email protected] synopsis: Type definitions for objects used by the GitHub v3 API changelog: '' basic-deps: base: ! '>=4 && <5' time: -any text: -any aeson: -any all-versions: - '0.1.0.0' - '0.1.0.1' - '0.1.0.2' - '0.1.0.3' - '0.1.0.4' - '0.1.0.5' - '0.2.0' author: Tomas Carnecky latest: '0.2.0' description-type: haddock description: ! 'This package includes (some) type definitions for objects which are consumed or produced by the GitHub v3 API.' license-name: OtherLicense
17b184e5c8d41eb083dc6400f6fca2a3eeb8f742
core/admin/mailu/internal/views.py
core/admin/mailu/internal/views.py
from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main authentication endpoint for Nginx email server """ headers = nginx.handle_authentication(flask.request.headers) response = flask.Response() for key, value in headers.items(): response.headers[key] = str(value) return response @internal.route("/auth/admin") def admin_authentication(): """ Fails if the user is not an authenticated admin. """ if (not flask_login.current_user.is_anonymous and flask_login.current_user.global_admin): return "" return flask.abort(403)
from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login import base64 import urllib @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main authentication endpoint for Nginx email server """ headers = nginx.handle_authentication(flask.request.headers) response = flask.Response() for key, value in headers.items(): response.headers[key] = str(value) return response @internal.route("/auth/admin") def admin_authentication(): """ Fails if the user is not an authenticated admin. """ if (not flask_login.current_user.is_anonymous and flask_login.current_user.global_admin): return "" return flask.abort(403) @internal.route("/auth/basic") def basic_authentication(): """ Tries to authenticate using the Authorization header. """ authorization = flask.request.headers.get("Authorization") if authorization and authorization.startswith("Basic "): encoded = authorization.replace("Basic ", "") user_email, password = base64.b64decode(encoded).split(b":") user = models.User.query.get(user_email.decode("utf8")) if user and user.check_password(password.decode("utf8")): response = flask.Response() response.headers["X-User"] = user.email return response response = flask.Response(status=401) response.headers["WWW-Authenticate"] = 'Basic realm="Login Required"' return response
Implement a basic authentication API
Implement a basic authentication API
Python
mit
kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io
python
## Code Before: from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main authentication endpoint for Nginx email server """ headers = nginx.handle_authentication(flask.request.headers) response = flask.Response() for key, value in headers.items(): response.headers[key] = str(value) return response @internal.route("/auth/admin") def admin_authentication(): """ Fails if the user is not an authenticated admin. """ if (not flask_login.current_user.is_anonymous and flask_login.current_user.global_admin): return "" return flask.abort(403) ## Instruction: Implement a basic authentication API ## Code After: from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login import base64 import urllib @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main authentication endpoint for Nginx email server """ headers = nginx.handle_authentication(flask.request.headers) response = flask.Response() for key, value in headers.items(): response.headers[key] = str(value) return response @internal.route("/auth/admin") def admin_authentication(): """ Fails if the user is not an authenticated admin. """ if (not flask_login.current_user.is_anonymous and flask_login.current_user.global_admin): return "" return flask.abort(403) @internal.route("/auth/basic") def basic_authentication(): """ Tries to authenticate using the Authorization header. """ authorization = flask.request.headers.get("Authorization") if authorization and authorization.startswith("Basic "): encoded = authorization.replace("Basic ", "") user_email, password = base64.b64decode(encoded).split(b":") user = models.User.query.get(user_email.decode("utf8")) if user and user.check_password(password.decode("utf8")): response = flask.Response() response.headers["X-User"] = user.email return response response = flask.Response(status=401) response.headers["WWW-Authenticate"] = 'Basic realm="Login Required"' return response
663c2dbcbb366ebf07810da451a1923632b58729
Dogfile.yml
Dogfile.yml
- task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go build \ -ldflags "-s -w" \ -o "${OUTPUT_PATH}/dog" \ cmd/dog/*.go - task: install-build-deps description: Install required dependencies for building dog code: go get -u github.com/mitchellh/gox - task: build-all description: Build dog binary for all platforms pre: - install-build-deps - clean env: - XC_ARCH=386 amd64 arm - XC_OS=linux darwin freebsd openbsd netbsd solaris code: | gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ -ldflags "-s -w" \ -output "dist/{{.OS}}_{{.Arch}}/dog" \ ./cmd/dog/ - task: release description: Put all dist binaries in a compressed file pre: build-all code: | mv -v dist dog-${DOG_VERSION} tar zcvf dog-${DOG_VERSION}.tar.gz dog-${DOG_VERSION} - task: run-test-dogfiles description: Run all Tasks in testdata Dogfiles code: ./scripts/test-dogfiles.sh
- task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go build \ -ldflags "-s -w" \ -o "${OUTPUT_PATH}/dog" \ cmd/dog/*.go - task: install-build-deps description: Install required dependencies for building dog code: go get -u github.com/mitchellh/gox - task: build-all description: Build dog binary for all platforms pre: - install-build-deps - clean env: - XC_ARCH=386 amd64 arm - XC_OS=linux darwin freebsd openbsd netbsd solaris code: | gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ -ldflags "-s -w" \ -output "dist/{{.OS}}_{{.Arch}}/dog" \ ./cmd/dog/ - task: release description: Put all dist binaries in a compressed file pre: - build-all - get_version code: | mv -v dist dog-${DOG_VERSION} tar zcvf dog-${DOG_VERSION}.tar.gz dog-${DOG_VERSION} - task: run-test-dogfiles description: Run all Tasks in testdata Dogfiles code: ./scripts/test-dogfiles.sh
Add get_version to pre-task of release
Add get_version to pre-task of release
YAML
apache-2.0
dogtools/dog,xsb/dog
yaml
## Code Before: - task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go build \ -ldflags "-s -w" \ -o "${OUTPUT_PATH}/dog" \ cmd/dog/*.go - task: install-build-deps description: Install required dependencies for building dog code: go get -u github.com/mitchellh/gox - task: build-all description: Build dog binary for all platforms pre: - install-build-deps - clean env: - XC_ARCH=386 amd64 arm - XC_OS=linux darwin freebsd openbsd netbsd solaris code: | gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ -ldflags "-s -w" \ -output "dist/{{.OS}}_{{.Arch}}/dog" \ ./cmd/dog/ - task: release description: Put all dist binaries in a compressed file pre: build-all code: | mv -v dist dog-${DOG_VERSION} tar zcvf dog-${DOG_VERSION}.tar.gz dog-${DOG_VERSION} - task: run-test-dogfiles description: Run all Tasks in testdata Dogfiles code: ./scripts/test-dogfiles.sh ## Instruction: Add get_version to pre-task of release ## Code After: - task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go build \ -ldflags "-s -w" \ -o "${OUTPUT_PATH}/dog" \ cmd/dog/*.go - task: install-build-deps description: Install required dependencies for building dog code: go get -u github.com/mitchellh/gox - task: build-all description: Build dog binary for all platforms pre: - install-build-deps - clean env: - XC_ARCH=386 amd64 arm - XC_OS=linux darwin freebsd openbsd netbsd solaris code: | gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ -ldflags "-s -w" \ -output "dist/{{.OS}}_{{.Arch}}/dog" \ ./cmd/dog/ - task: release description: Put all dist binaries in a compressed file pre: - build-all - get_version code: | mv -v dist dog-${DOG_VERSION} tar zcvf dog-${DOG_VERSION}.tar.gz dog-${DOG_VERSION} - task: run-test-dogfiles description: Run all Tasks in testdata Dogfiles code: ./scripts/test-dogfiles.sh
70ba84dc485ed3db4ccf5008db87b2c9f003634b
tests/fixtures/__init__.py
tests/fixtures/__init__.py
"""Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURES_ROOT / 'test.json' BIN_FILE_PATH = FIXTURES_ROOT / 'test.bin' FILE_PATH_ARG = patharg(FILE_PATH) BIN_FILE_PATH_ARG = patharg(BIN_FILE_PATH) JSON_FILE_PATH_ARG = patharg(JSON_FILE_PATH) # Strip because we don't want new lines in the data so that we can # easily count occurrences also when embedded in JSON (where the new # line would be escaped). FILE_CONTENT = FILE_PATH.read_text().strip() JSON_FILE_CONTENT = JSON_FILE_PATH.read_text() BIN_FILE_CONTENT = BIN_FILE_PATH.read_bytes() UNICODE = FILE_CONTENT
"""Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURES_ROOT / 'test.json' BIN_FILE_PATH = FIXTURES_ROOT / 'test.bin' FILE_PATH_ARG = patharg(FILE_PATH) BIN_FILE_PATH_ARG = patharg(BIN_FILE_PATH) JSON_FILE_PATH_ARG = patharg(JSON_FILE_PATH) # Strip because we don't want new lines in the data so that we can # easily count occurrences also when embedded in JSON (where the new # line would be escaped). FILE_CONTENT = FILE_PATH.read_text('utf8').strip() JSON_FILE_CONTENT = JSON_FILE_PATH.read_text('utf8') BIN_FILE_CONTENT = BIN_FILE_PATH.read_bytes() UNICODE = FILE_CONTENT
Fix fixture encoding on Windows
Fix fixture encoding on Windows
Python
bsd-3-clause
PKRoma/httpie,jakubroztocil/httpie,jkbrzt/httpie,jakubroztocil/httpie,jkbrzt/httpie,jakubroztocil/httpie,jkbrzt/httpie,PKRoma/httpie
python
## Code Before: """Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURES_ROOT / 'test.json' BIN_FILE_PATH = FIXTURES_ROOT / 'test.bin' FILE_PATH_ARG = patharg(FILE_PATH) BIN_FILE_PATH_ARG = patharg(BIN_FILE_PATH) JSON_FILE_PATH_ARG = patharg(JSON_FILE_PATH) # Strip because we don't want new lines in the data so that we can # easily count occurrences also when embedded in JSON (where the new # line would be escaped). FILE_CONTENT = FILE_PATH.read_text().strip() JSON_FILE_CONTENT = JSON_FILE_PATH.read_text() BIN_FILE_CONTENT = BIN_FILE_PATH.read_bytes() UNICODE = FILE_CONTENT ## Instruction: Fix fixture encoding on Windows ## Code After: """Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURES_ROOT / 'test.json' BIN_FILE_PATH = FIXTURES_ROOT / 'test.bin' FILE_PATH_ARG = patharg(FILE_PATH) BIN_FILE_PATH_ARG = patharg(BIN_FILE_PATH) JSON_FILE_PATH_ARG = patharg(JSON_FILE_PATH) # Strip because we don't want new lines in the data so that we can # easily count occurrences also when embedded in JSON (where the new # line would be escaped). FILE_CONTENT = FILE_PATH.read_text('utf8').strip() JSON_FILE_CONTENT = JSON_FILE_PATH.read_text('utf8') BIN_FILE_CONTENT = BIN_FILE_PATH.read_bytes() UNICODE = FILE_CONTENT
ea4746f6b809c0c3b2a6931bc863121c07ee2c9a
lib/plugins/method/__init__.py
lib/plugins/method/__init__.py
from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory
from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory @staticmethod def supports(methodName): raise NotImplementedError
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
Python
mit
factorial-io/fabalicious,factorial-io/fabalicious
python
## Code Before: from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory ## Instruction: Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently ## Code After: from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory @staticmethod def supports(methodName): raise NotImplementedError
ca4e6adef8609c9a94740c31af410b67c1f12f19
README.md
README.md
brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `.music` file in your project root will be appended with the current iTunes artist, if it doesn't already exist. Add this to your `$PROMPT_COMMAND` for the best experience.
brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `.music` file in your project root will be appended with the current iTunes artist, if it doesn't already exist. Add this to your `$PROMPT_COMMAND` for the best experience: PROMPT_COMMAND='(dotmusic &)' The `&` backgrounds it, and the parenthesis make it silent. If you already have a `$PROMPT_COMMAND`, extract it into a function: prompt_command() { (dotmusic &) [ -d .git ] && git symbolic-ref --short HEAD } PROMPT_COMMAND='prompt_command'
Add more documentation for prompt_command
Add more documentation for prompt_command
Markdown
mit
justincampbell/dotmusic
markdown
## Code Before: brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `.music` file in your project root will be appended with the current iTunes artist, if it doesn't already exist. Add this to your `$PROMPT_COMMAND` for the best experience. ## Instruction: Add more documentation for prompt_command ## Code After: brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `.music` file in your project root will be appended with the current iTunes artist, if it doesn't already exist. Add this to your `$PROMPT_COMMAND` for the best experience: PROMPT_COMMAND='(dotmusic &)' The `&` backgrounds it, and the parenthesis make it silent. If you already have a `$PROMPT_COMMAND`, extract it into a function: prompt_command() { (dotmusic &) [ -d .git ] && git symbolic-ref --short HEAD } PROMPT_COMMAND='prompt_command'
6c118f3346e9039a204b3cd08830276ea2122e16
docs/client/full-api/docs.html
docs/client/full-api/docs.html
<template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" id={{#if id}}{{id}}{{/if}}>{{{name}}}</span> {{#if type}}<span class="type">{{type}}</span>{{/if}} </dt> {{else}} <dt><span class="name">{{{.}}}</span></dt> {{/if}} <dd>{{#markdown}}{{> UI.contentBlock}}{{/markdown}}</dd> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="warning"> <div class="warning"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="note"> <div class="note"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template>
<template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} {{> commandline }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" id={{#if id}}{{id}}{{/if}}>{{{name}}}</span> {{#if type}}<span class="type">{{type}}</span>{{/if}} </dt> {{else}} <dt><span class="name">{{{.}}}</span></dt> {{/if}} <dd>{{#markdown}}{{> UI.contentBlock}}{{/markdown}}</dd> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="warning"> <div class="warning"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="note"> <div class="note"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template>
Add command line section back in
Add command line section back in
HTML
mit
paul-barry-kenzan/meteor,dfischer/meteor,shmiko/meteor,ashwathgovind/meteor,devgrok/meteor,dandv/meteor,Profab/meteor,Jeremy017/meteor,JesseQin/meteor,arunoda/meteor,lawrenceAIO/meteor,vjau/meteor,Eynaliyev/meteor,AlexR1712/meteor,skarekrow/meteor,akintoey/meteor,hristaki/meteor,qscripter/meteor,SeanOceanHu/meteor,D1no/meteor,Urigo/meteor,framewr/meteor,joannekoong/meteor,zdd910/meteor,yanisIk/meteor,deanius/meteor,bhargav175/meteor,HugoRLopes/meteor,Paulyoufu/meteor-1,esteedqueen/meteor,Ken-Liu/meteor,lieuwex/meteor,rozzzly/meteor,Puena/meteor,emmerge/meteor,yonas/meteor-freebsd,yonglehou/meteor,karlito40/meteor,baiyunping333/meteor,wmkcc/meteor,udhayam/meteor,ljack/meteor,PatrickMcGuinness/meteor,sclausen/meteor,imanmafi/meteor,codingang/meteor,baysao/meteor,alexbeletsky/meteor,vacjaliu/meteor,aldeed/meteor,emmerge/meteor,vjau/meteor,daslicht/meteor,luohuazju/meteor,HugoRLopes/meteor,Jonekee/meteor,vjau/meteor,jirengu/meteor,joannekoong/meteor,lawrenceAIO/meteor,yanisIk/meteor,chiefninew/meteor,AnjirHossain/meteor,judsonbsilva/meteor,AlexR1712/meteor,qscripter/meteor,TechplexEngineer/meteor,sclausen/meteor,allanalexandre/meteor,vjau/meteor,Ken-Liu/meteor,mjmasn/meteor,williambr/meteor,whip112/meteor,vacjaliu/meteor,daltonrenaldo/meteor,whip112/meteor,yonglehou/meteor,dandv/meteor,colinligertwood/meteor,lorensr/meteor,skarekrow/meteor,elkingtonmcb/meteor,AlexR1712/meteor,udhayam/meteor,brettle/meteor,Jeremy017/meteor,codedogfish/meteor,4commerce-technologies-AG/meteor,lieuwex/meteor,Paulyoufu/meteor-1,juansgaitan/meteor,mirstan/meteor,benjamn/meteor,wmkcc/meteor,lieuwex/meteor,sclausen/meteor,dboyliao/meteor,ashwathgovind/meteor,AlexR1712/meteor,AnthonyAstige/meteor,alphanso/meteor,paul-barry-kenzan/meteor,yalexx/meteor,sdeveloper/meteor,D1no/meteor,esteedqueen/meteor,Urigo/meteor,johnthepink/meteor,cherbst/meteor,sdeveloper/meteor,Eynaliyev/meteor,servel333/meteor,saisai/meteor,arunoda/meteor,judsonbsilva/meteor,baiyunping333/meteor,ericterpstra/meteor,papimomi/meteor,brdtrpp/meteor,IveWong/meteor,elkingtonmcb/meteor,shrop/meteor,eluck/meteor,akintoey/meteor,AnjirHossain/meteor,ericterpstra/meteor,elkingtonmcb/meteor,kidaa/meteor,brettle/meteor,katopz/meteor,sclausen/meteor,newswim/meteor,DAB0mB/meteor,servel333/meteor,jg3526/meteor,eluck/meteor,queso/meteor,IveWong/meteor,l0rd0fwar/meteor,planet-training/meteor,shmiko/meteor,benjamn/meteor,allanalexandre/meteor,benjamn/meteor,AnjirHossain/meteor,JesseQin/meteor,mubassirhayat/meteor,AnthonyAstige/meteor,h200863057/meteor,calvintychan/meteor,yonglehou/meteor,framewr/meteor,ljack/meteor,ljack/meteor,kengchau/meteor,yalexx/meteor,aramk/meteor,sunny-g/meteor,Hansoft/meteor,cog-64/meteor,DCKT/meteor,Theviajerock/meteor,papimomi/meteor,LWHTarena/meteor,mubassirhayat/meteor,jagi/meteor,calvintychan/meteor,AnjirHossain/meteor,judsonbsilva/meteor,chmac/meteor,yyx990803/meteor,ericterpstra/meteor,baiyunping333/meteor,pandeysoni/meteor,henrypan/meteor,vjau/meteor,emmerge/meteor,kencheung/meteor,pandeysoni/meteor,chiefninew/meteor,juansgaitan/meteor,chmac/meteor,yonas/meteor-freebsd,namho102/meteor,johnthepink/meteor,elkingtonmcb/meteor,yonas/meteor-freebsd,allanalexandre/meteor,karlito40/meteor,wmkcc/meteor,sitexa/meteor,LWHTarena/meteor,iman-mafi/meteor,h200863057/meteor,namho102/meteor,h200863057/meteor,SeanOceanHu/meteor,somallg/meteor,jrudio/meteor,TribeMedia/meteor,queso/meteor,codedogfish/meteor,oceanzou123/meteor,lorensr/meteor,somallg/meteor,qscripter/meteor,justintung/meteor,alphanso/meteor,codedogfish/meteor,chasertech/meteor,JesseQin/meteor,meonkeys/meteor,TribeMedia/meteor,lassombra/meteor,justintung/meteor,daslicht/meteor,Theviajerock/meteor,daltonrenaldo/meteor,GrimDerp/meteor,msavin/meteor,williambr/meteor,shrop/meteor,akintoey/meteor,aramk/meteor,baysao/meteor,DAB0mB/meteor,karlito40/meteor,l0rd0fwar/meteor,yiliaofan/meteor,sitexa/meteor,brdtrpp/meteor,kengchau/meteor,skarekrow/meteor,Hansoft/meteor,GrimDerp/meteor,l0rd0fwar/meteor,yiliaofan/meteor,sunny-g/meteor,newswim/meteor,EduShareOntario/meteor,benstoltz/meteor,mauricionr/meteor,Prithvi-A/meteor,somallg/meteor,iman-mafi/meteor,katopz/meteor,dev-bobsong/meteor,HugoRLopes/meteor,LWHTarena/meteor,nuvipannu/meteor,neotim/meteor,msavin/meteor,namho102/meteor,michielvanoeffelen/meteor,chiefninew/meteor,TechplexEngineer/meteor,benstoltz/meteor,michielvanoeffelen/meteor,iman-mafi/meteor,emmerge/meteor,DAB0mB/meteor,Eynaliyev/meteor,daltonrenaldo/meteor,oceanzou123/meteor,jdivy/meteor,mjmasn/meteor,kengchau/meteor,Hansoft/meteor,alexbeletsky/meteor,karlito40/meteor,Paulyoufu/meteor-1,jeblister/meteor,yinhe007/meteor,johnthepink/meteor,chmac/meteor,shadedprofit/meteor,framewr/meteor,fashionsun/meteor,sdeveloper/meteor,Theviajerock/meteor,ndarilek/meteor,calvintychan/meteor,sitexa/meteor,dfischer/meteor,sitexa/meteor,lpinto93/meteor,chiefninew/meteor,allanalexandre/meteor,dev-bobsong/meteor,chinasb/meteor,guazipi/meteor,yinhe007/meteor,lassombra/meteor,4commerce-technologies-AG/meteor,cherbst/meteor,AnjirHossain/meteor,chasertech/meteor,yinhe007/meteor,chinasb/meteor,dandv/meteor,jg3526/meteor,bhargav175/meteor,lassombra/meteor,cog-64/meteor,4commerce-technologies-AG/meteor,youprofit/meteor,yonglehou/meteor,jirengu/meteor,Ken-Liu/meteor,SeanOceanHu/meteor,vacjaliu/meteor,colinligertwood/meteor,iman-mafi/meteor,modulexcite/meteor,youprofit/meteor,sitexa/meteor,meonkeys/meteor,tdamsma/meteor,cherbst/meteor,chasertech/meteor,yanisIk/meteor,daslicht/meteor,karlito40/meteor,yiliaofan/meteor,EduShareOntario/meteor,h200863057/meteor,whip112/meteor,saisai/meteor,codedogfish/meteor,cbonami/meteor,juansgaitan/meteor,katopz/meteor,ndarilek/meteor,aldeed/meteor,justintung/meteor,Eynaliyev/meteor,mirstan/meteor,namho102/meteor,lpinto93/meteor,Prithvi-A/meteor,mjmasn/meteor,dfischer/meteor,Jonekee/meteor,guazipi/meteor,devgrok/meteor,devgrok/meteor,Jonekee/meteor,yonas/meteor-freebsd,pandeysoni/meteor,rabbyalone/meteor,D1no/meteor,zdd910/meteor,jirengu/meteor,Eynaliyev/meteor,jenalgit/meteor,judsonbsilva/meteor,shadedprofit/meteor,DAB0mB/meteor,sunny-g/meteor,bhargav175/meteor,chasertech/meteor,chmac/meteor,benstoltz/meteor,dboyliao/meteor,cog-64/meteor,JesseQin/meteor,yyx990803/meteor,judsonbsilva/meteor,qscripter/meteor,meonkeys/meteor,codingang/meteor,jirengu/meteor,Puena/meteor,joannekoong/meteor,judsonbsilva/meteor,papimomi/meteor,tdamsma/meteor,luohuazju/meteor,dboyliao/meteor,daslicht/meteor,queso/meteor,akintoey/meteor,PatrickMcGuinness/meteor,sdeveloper/meteor,juansgaitan/meteor,tdamsma/meteor,brettle/meteor,justintung/meteor,rabbyalone/meteor,emmerge/meteor,mauricionr/meteor,pjump/meteor,jrudio/meteor,Ken-Liu/meteor,yonas/meteor-freebsd,rozzzly/meteor,arunoda/meteor,SeanOceanHu/meteor,Eynaliyev/meteor,yalexx/meteor,pjump/meteor,imanmafi/meteor,akintoey/meteor,somallg/meteor,hristaki/meteor,vjau/meteor,DCKT/meteor,queso/meteor,williambr/meteor,Jonekee/meteor,cherbst/meteor,akintoey/meteor,guazipi/meteor,henrypan/meteor,henrypan/meteor,meteor-velocity/meteor,servel333/meteor,mauricionr/meteor,meonkeys/meteor,colinligertwood/meteor,jeblister/meteor,arunoda/meteor,saisai/meteor,cog-64/meteor,jdivy/meteor,framewr/meteor,yanisIk/meteor,SeanOceanHu/meteor,karlito40/meteor,youprofit/meteor,daslicht/meteor,EduShareOntario/meteor,shmiko/meteor,Profab/meteor,qscripter/meteor,Prithvi-A/meteor,queso/meteor,sitexa/meteor,lpinto93/meteor,katopz/meteor,GrimDerp/meteor,nuvipannu/meteor,katopz/meteor,ndarilek/meteor,Profab/meteor,calvintychan/meteor,ericterpstra/meteor,kidaa/meteor,jeblister/meteor,DAB0mB/meteor,Urigo/meteor,dandv/meteor,AnthonyAstige/meteor,DAB0mB/meteor,shrop/meteor,D1no/meteor,joannekoong/meteor,mjmasn/meteor,eluck/meteor,vacjaliu/meteor,whip112/meteor,johnthepink/meteor,ashwathgovind/meteor,oceanzou123/meteor,LWHTarena/meteor,akintoey/meteor,GrimDerp/meteor,saisai/meteor,paul-barry-kenzan/meteor,yiliaofan/meteor,luohuazju/meteor,jg3526/meteor,shadedprofit/meteor,queso/meteor,chiefninew/meteor,steedos/meteor,joannekoong/meteor,cbonami/meteor,Profab/meteor,queso/meteor,lawrenceAIO/meteor,aramk/meteor,steedos/meteor,meteor-velocity/meteor,jenalgit/meteor,cherbst/meteor,benstoltz/meteor,chasertech/meteor,yinhe007/meteor,lorensr/meteor,yanisIk/meteor,alphanso/meteor,Quicksteve/meteor,williambr/meteor,udhayam/meteor,jagi/meteor,meteor-velocity/meteor,johnthepink/meteor,nuvipannu/meteor,fashionsun/meteor,PatrickMcGuinness/meteor,jenalgit/meteor,guazipi/meteor,jirengu/meteor,deanius/meteor,bhargav175/meteor,yanisIk/meteor,sdeveloper/meteor,ashwathgovind/meteor,jenalgit/meteor,TechplexEngineer/meteor,oceanzou123/meteor,Jeremy017/meteor,fashionsun/meteor,yiliaofan/meteor,pandeysoni/meteor,imanmafi/meteor,sunny-g/meteor,karlito40/meteor,AlexR1712/meteor,sclausen/meteor,AnthonyAstige/meteor,zdd910/meteor,henrypan/meteor,brettle/meteor,namho102/meteor,h200863057/meteor,tdamsma/meteor,dboyliao/meteor,lieuwex/meteor,shrop/meteor,Theviajerock/meteor,yonglehou/meteor,daltonrenaldo/meteor,luohuazju/meteor,sunny-g/meteor,yanisIk/meteor,oceanzou123/meteor,devgrok/meteor,eluck/meteor,alexbeletsky/meteor,mubassirhayat/meteor,ericterpstra/meteor,lpinto93/meteor,arunoda/meteor,msavin/meteor,yiliaofan/meteor,baysao/meteor,rozzzly/meteor,Quicksteve/meteor,evilemon/meteor,planet-training/meteor,chmac/meteor,Profab/meteor,bhargav175/meteor,jdivy/meteor,framewr/meteor,skarekrow/meteor,aramk/meteor,msavin/meteor,Puena/meteor,msavin/meteor,rabbyalone/meteor,chengxiaole/meteor,chengxiaole/meteor,dfischer/meteor,shmiko/meteor,emmerge/meteor,codingang/meteor,Paulyoufu/meteor-1,devgrok/meteor,Ken-Liu/meteor,codingang/meteor,shadedprofit/meteor,lawrenceAIO/meteor,stevenliuit/meteor,nuvipannu/meteor,Quicksteve/meteor,deanius/meteor,Jeremy017/meteor,codingang/meteor,stevenliuit/meteor,chengxiaole/meteor,stevenliuit/meteor,aleclarson/meteor,esteedqueen/meteor,sdeveloper/meteor,whip112/meteor,lassombra/meteor,modulexcite/meteor,ashwathgovind/meteor,TribeMedia/meteor,Hansoft/meteor,zdd910/meteor,shmiko/meteor,Hansoft/meteor,mirstan/meteor,lpinto93/meteor,mubassirhayat/meteor,yinhe007/meteor,katopz/meteor,IveWong/meteor,evilemon/meteor,stevenliuit/meteor,dfischer/meteor,alphanso/meteor,eluck/meteor,elkingtonmcb/meteor,yonas/meteor-freebsd,shmiko/meteor,brettle/meteor,l0rd0fwar/meteor,allanalexandre/meteor,deanius/meteor,Jonekee/meteor,mirstan/meteor,allanalexandre/meteor,tdamsma/meteor,whip112/meteor,meonkeys/meteor,Urigo/meteor,meteor-velocity/meteor,justintung/meteor,evilemon/meteor,vjau/meteor,modulexcite/meteor,Prithvi-A/meteor,aldeed/meteor,JesseQin/meteor,brettle/meteor,rabbyalone/meteor,TechplexEngineer/meteor,planet-training/meteor,baysao/meteor,zdd910/meteor,yalexx/meteor,ljack/meteor,planet-training/meteor,alphanso/meteor,pjump/meteor,paul-barry-kenzan/meteor,jagi/meteor,EduShareOntario/meteor,TechplexEngineer/meteor,brdtrpp/meteor,baysao/meteor,shrop/meteor,sunny-g/meteor,elkingtonmcb/meteor,AnjirHossain/meteor,cbonami/meteor,AnjirHossain/meteor,msavin/meteor,4commerce-technologies-AG/meteor,jg3526/meteor,brdtrpp/meteor,steedos/meteor,arunoda/meteor,jdivy/meteor,karlito40/meteor,brdtrpp/meteor,vacjaliu/meteor,lassombra/meteor,neotim/meteor,ndarilek/meteor,JesseQin/meteor,kengchau/meteor,calvintychan/meteor,sclausen/meteor,EduShareOntario/meteor,TribeMedia/meteor,cherbst/meteor,chiefninew/meteor,jeblister/meteor,rozzzly/meteor,michielvanoeffelen/meteor,Eynaliyev/meteor,nuvipannu/meteor,GrimDerp/meteor,jdivy/meteor,imanmafi/meteor,LWHTarena/meteor,kidaa/meteor,Profab/meteor,ljack/meteor,mjmasn/meteor,TechplexEngineer/meteor,servel333/meteor,chengxiaole/meteor,pandeysoni/meteor,chiefninew/meteor,baysao/meteor,evilemon/meteor,lawrenceAIO/meteor,kengchau/meteor,kencheung/meteor,iman-mafi/meteor,sunny-g/meteor,servel333/meteor,cog-64/meteor,modulexcite/meteor,PatrickMcGuinness/meteor,zdd910/meteor,udhayam/meteor,jirengu/meteor,yalexx/meteor,Quicksteve/meteor,meteor-velocity/meteor,yinhe007/meteor,hristaki/meteor,JesseQin/meteor,pjump/meteor,mirstan/meteor,4commerce-technologies-AG/meteor,alexbeletsky/meteor,alphanso/meteor,papimomi/meteor,AnthonyAstige/meteor,TribeMedia/meteor,ericterpstra/meteor,ndarilek/meteor,sunny-g/meteor,evilemon/meteor,daltonrenaldo/meteor,kengchau/meteor,johnthepink/meteor,mauricionr/meteor,codedogfish/meteor,henrypan/meteor,jenalgit/meteor,PatrickMcGuinness/meteor,PatrickMcGuinness/meteor,benstoltz/meteor,kencheung/meteor,jagi/meteor,Theviajerock/meteor,IveWong/meteor,mubassirhayat/meteor,l0rd0fwar/meteor,rabbyalone/meteor,dboyliao/meteor,juansgaitan/meteor,SeanOceanHu/meteor,neotim/meteor,youprofit/meteor,iman-mafi/meteor,neotim/meteor,AnthonyAstige/meteor,hristaki/meteor,fashionsun/meteor,h200863057/meteor,Theviajerock/meteor,williambr/meteor,rozzzly/meteor,lassombra/meteor,hristaki/meteor,kencheung/meteor,justintung/meteor,allanalexandre/meteor,dandv/meteor,modulexcite/meteor,IveWong/meteor,Jonekee/meteor,qscripter/meteor,neotim/meteor,neotim/meteor,Ken-Liu/meteor,planet-training/meteor,cbonami/meteor,wmkcc/meteor,wmkcc/meteor,ericterpstra/meteor,AlexR1712/meteor,joannekoong/meteor,steedos/meteor,yyx990803/meteor,emmerge/meteor,sclausen/meteor,esteedqueen/meteor,iman-mafi/meteor,AnthonyAstige/meteor,AlexR1712/meteor,Prithvi-A/meteor,stevenliuit/meteor,youprofit/meteor,chmac/meteor,yonglehou/meteor,lawrenceAIO/meteor,codingang/meteor,yalexx/meteor,TechplexEngineer/meteor,chiefninew/meteor,Urigo/meteor,DCKT/meteor,lpinto93/meteor,esteedqueen/meteor,pandeysoni/meteor,yyx990803/meteor,rabbyalone/meteor,sitexa/meteor,D1no/meteor,alexbeletsky/meteor,aldeed/meteor,ashwathgovind/meteor,guazipi/meteor,EduShareOntario/meteor,paul-barry-kenzan/meteor,rabbyalone/meteor,paul-barry-kenzan/meteor,juansgaitan/meteor,vacjaliu/meteor,jirengu/meteor,servel333/meteor,meonkeys/meteor,jagi/meteor,vacjaliu/meteor,daltonrenaldo/meteor,shrop/meteor,dev-bobsong/meteor,tdamsma/meteor,pjump/meteor,daslicht/meteor,pjump/meteor,devgrok/meteor,guazipi/meteor,aldeed/meteor,udhayam/meteor,servel333/meteor,Urigo/meteor,paul-barry-kenzan/meteor,yyx990803/meteor,benjamn/meteor,henrypan/meteor,alexbeletsky/meteor,dandv/meteor,l0rd0fwar/meteor,henrypan/meteor,williambr/meteor,4commerce-technologies-AG/meteor,jrudio/meteor,Quicksteve/meteor,HugoRLopes/meteor,jagi/meteor,jdivy/meteor,michielvanoeffelen/meteor,lieuwex/meteor,IveWong/meteor,jeblister/meteor,Quicksteve/meteor,oceanzou123/meteor,jrudio/meteor,chengxiaole/meteor,chasertech/meteor,meteor-velocity/meteor,daslicht/meteor,somallg/meteor,jrudio/meteor,LWHTarena/meteor,fashionsun/meteor,HugoRLopes/meteor,eluck/meteor,cbonami/meteor,hristaki/meteor,DCKT/meteor,Profab/meteor,hristaki/meteor,imanmafi/meteor,whip112/meteor,4commerce-technologies-AG/meteor,jdivy/meteor,planet-training/meteor,EduShareOntario/meteor,ndarilek/meteor,baiyunping333/meteor,dfischer/meteor,neotim/meteor,aramk/meteor,Paulyoufu/meteor-1,dfischer/meteor,benstoltz/meteor,HugoRLopes/meteor,papimomi/meteor,saisai/meteor,IveWong/meteor,jeblister/meteor,somallg/meteor,jg3526/meteor,Prithvi-A/meteor,mauricionr/meteor,aramk/meteor,wmkcc/meteor,eluck/meteor,yalexx/meteor,allanalexandre/meteor,dandv/meteor,HugoRLopes/meteor,imanmafi/meteor,DCKT/meteor,yonglehou/meteor,williambr/meteor,chmac/meteor,yyx990803/meteor,Hansoft/meteor,ndarilek/meteor,daltonrenaldo/meteor,aldeed/meteor,benjamn/meteor,newswim/meteor,justintung/meteor,Puena/meteor,somallg/meteor,shadedprofit/meteor,papimomi/meteor,chinasb/meteor,skarekrow/meteor,mauricionr/meteor,cherbst/meteor,yiliaofan/meteor,oceanzou123/meteor,modulexcite/meteor,kencheung/meteor,meteor-velocity/meteor,TribeMedia/meteor,luohuazju/meteor,newswim/meteor,namho102/meteor,zdd910/meteor,guazipi/meteor,evilemon/meteor,Paulyoufu/meteor-1,jeblister/meteor,SeanOceanHu/meteor,lawrenceAIO/meteor,calvintychan/meteor,esteedqueen/meteor,bhargav175/meteor,judsonbsilva/meteor,l0rd0fwar/meteor,codedogfish/meteor,rozzzly/meteor,kencheung/meteor,elkingtonmcb/meteor,pandeysoni/meteor,Prithvi-A/meteor,AnthonyAstige/meteor,tdamsma/meteor,shmiko/meteor,somallg/meteor,baiyunping333/meteor,kidaa/meteor,qscripter/meteor,newswim/meteor,alexbeletsky/meteor,SeanOceanHu/meteor,yyx990803/meteor,colinligertwood/meteor,michielvanoeffelen/meteor,jrudio/meteor,mubassirhayat/meteor,michielvanoeffelen/meteor,D1no/meteor,mjmasn/meteor,benjamn/meteor,chinasb/meteor,aldeed/meteor,Quicksteve/meteor,saisai/meteor,kencheung/meteor,DAB0mB/meteor,devgrok/meteor,chinasb/meteor,steedos/meteor,jenalgit/meteor,modulexcite/meteor,jenalgit/meteor,daltonrenaldo/meteor,jg3526/meteor,Puena/meteor,jg3526/meteor,nuvipannu/meteor,fashionsun/meteor,Jonekee/meteor,udhayam/meteor,baiyunping333/meteor,joannekoong/meteor,dboyliao/meteor,LWHTarena/meteor,codedogfish/meteor,brdtrpp/meteor,dev-bobsong/meteor,lorensr/meteor,lorensr/meteor,yinhe007/meteor,aleclarson/meteor,eluck/meteor,lassombra/meteor,colinligertwood/meteor,tdamsma/meteor,Jeremy017/meteor,saisai/meteor,luohuazju/meteor,Jeremy017/meteor,mjmasn/meteor,skarekrow/meteor,calvintychan/meteor,chasertech/meteor,baiyunping333/meteor,stevenliuit/meteor,Eynaliyev/meteor,DCKT/meteor,katopz/meteor,colinligertwood/meteor,udhayam/meteor,planet-training/meteor,chengxiaole/meteor,papimomi/meteor,newswim/meteor,lieuwex/meteor,ndarilek/meteor,PatrickMcGuinness/meteor,fashionsun/meteor,sdeveloper/meteor,deanius/meteor,mirstan/meteor,cog-64/meteor,skarekrow/meteor,pjump/meteor,ljack/meteor,steedos/meteor,GrimDerp/meteor,dboyliao/meteor,codingang/meteor,Puena/meteor,Jeremy017/meteor,meonkeys/meteor,Paulyoufu/meteor-1,newswim/meteor,luohuazju/meteor,lorensr/meteor,shadedprofit/meteor,youprofit/meteor,Ken-Liu/meteor,D1no/meteor,chengxiaole/meteor,GrimDerp/meteor,planet-training/meteor,Hansoft/meteor,Puena/meteor,benstoltz/meteor,msavin/meteor,lorensr/meteor,shadedprofit/meteor,D1no/meteor,mauricionr/meteor,namho102/meteor,alphanso/meteor,Theviajerock/meteor,kidaa/meteor,dev-bobsong/meteor,Urigo/meteor,imanmafi/meteor,framewr/meteor,cbonami/meteor,brettle/meteor,chinasb/meteor,juansgaitan/meteor,aleclarson/meteor,brdtrpp/meteor,steedos/meteor,brdtrpp/meteor,evilemon/meteor,HugoRLopes/meteor,baysao/meteor,youprofit/meteor,yonas/meteor-freebsd,wmkcc/meteor,kidaa/meteor,TribeMedia/meteor,chinasb/meteor,lieuwex/meteor,lpinto93/meteor,aramk/meteor,yanisIk/meteor,kengchau/meteor,michielvanoeffelen/meteor,alexbeletsky/meteor,mubassirhayat/meteor,dboyliao/meteor,shrop/meteor,h200863057/meteor,cbonami/meteor,dev-bobsong/meteor,johnthepink/meteor,stevenliuit/meteor,kidaa/meteor,nuvipannu/meteor,ljack/meteor,benjamn/meteor,colinligertwood/meteor,jagi/meteor,servel333/meteor,esteedqueen/meteor,ashwathgovind/meteor,deanius/meteor,mirstan/meteor,cog-64/meteor,arunoda/meteor,mubassirhayat/meteor,DCKT/meteor,ljack/meteor,framewr/meteor,dev-bobsong/meteor,deanius/meteor,bhargav175/meteor,rozzzly/meteor
html
## Code Before: <template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" id={{#if id}}{{id}}{{/if}}>{{{name}}}</span> {{#if type}}<span class="type">{{type}}</span>{{/if}} </dt> {{else}} <dt><span class="name">{{{.}}}</span></dt> {{/if}} <dd>{{#markdown}}{{> UI.contentBlock}}{{/markdown}}</dd> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="warning"> <div class="warning"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="note"> <div class="note"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template> ## Instruction: Add command line section back in ## Code After: <template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} {{> commandline }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" id={{#if id}}{{id}}{{/if}}>{{{name}}}</span> {{#if type}}<span class="type">{{type}}</span>{{/if}} </dt> {{else}} <dt><span class="name">{{{.}}}</span></dt> {{/if}} <dd>{{#markdown}}{{> UI.contentBlock}}{{/markdown}}</dd> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="warning"> <div class="warning"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template> <!-- this is used within {{#markdown}}. <div> must be unindented. http://daringfireball.net/projects/markdown/syntax#html --> <template name="note"> <div class="note"> {{#markdown}}{{> UI.contentBlock}}{{/markdown}} </div> </template>
a44b588adb584ebb147b90a98b7389405115758e
src/clinical/encounter.data.coffee
src/clinical/encounter.data.coffee
`import Pathology from "./pathology.data.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * @param subject the parent subject REST object * @return the augmented clinical encounter object ### extend: (encounter, subject) -> ###* * @method isBiopsy * @return whether the encounter class is `Biopsy` ### encounter.isBiopsy = -> @_cls is 'Biopsy' ###* * @method isSurgery * @return whether the encounter class ends in `Surgery` ### encounter.isSurgery = -> @_cls.endsWith('Surgery') # Add the virtual properties. Object.defineProperties encounter, ###* * 'Surgery' for a surgery encounter, * otherwise the encounter class * * @property title ### title: get: -> if @isSurgery() then 'Surgery' else @_cls # Extend the pathology object. if encounter.pathology Pathology.extend(encounter.pathology) # Return the augmented clinical encounter object. encounter `export { ClinicalEncounter as default }`
`import Pathology from "./pathology.data.coffee"` `import Breast from "./breast.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * @param subject the parent subject REST object * @return the augmented clinical encounter object ### extend: (encounter, subject) -> ###* * @method isBiopsy * @return whether the encounter class is `Biopsy` ### encounter.isBiopsy = -> @_cls is 'Biopsy' ###* * @method isSurgery * @return whether the encounter class ends in `Surgery` ### encounter.isSurgery = -> @_cls.endsWith('Surgery') # Add the virtual properties. Object.defineProperties encounter, ###* * 'Surgery' for a surgery encounter, * otherwise the encounter class * * @property title ### title: get: -> if @isSurgery() then 'Surgery' else @_cls # Extend the pathology object. if encounter.pathology Pathology.extend(encounter.pathology) # Breast augments clinical encounters with virtual properties. if encounter.subject.collection is 'Breast' Breast.extend(encounter) # Return the augmented clinical encounter object. encounter `export { ClinicalEncounter as default }`
Extend clinical for breast tumors.
Extend clinical for breast tumors.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
coffeescript
## Code Before: `import Pathology from "./pathology.data.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * @param subject the parent subject REST object * @return the augmented clinical encounter object ### extend: (encounter, subject) -> ###* * @method isBiopsy * @return whether the encounter class is `Biopsy` ### encounter.isBiopsy = -> @_cls is 'Biopsy' ###* * @method isSurgery * @return whether the encounter class ends in `Surgery` ### encounter.isSurgery = -> @_cls.endsWith('Surgery') # Add the virtual properties. Object.defineProperties encounter, ###* * 'Surgery' for a surgery encounter, * otherwise the encounter class * * @property title ### title: get: -> if @isSurgery() then 'Surgery' else @_cls # Extend the pathology object. if encounter.pathology Pathology.extend(encounter.pathology) # Return the augmented clinical encounter object. encounter `export { ClinicalEncounter as default }` ## Instruction: Extend clinical for breast tumors. ## Code After: `import Pathology from "./pathology.data.coffee"` `import Breast from "./breast.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * @param subject the parent subject REST object * @return the augmented clinical encounter object ### extend: (encounter, subject) -> ###* * @method isBiopsy * @return whether the encounter class is `Biopsy` ### encounter.isBiopsy = -> @_cls is 'Biopsy' ###* * @method isSurgery * @return whether the encounter class ends in `Surgery` ### encounter.isSurgery = -> @_cls.endsWith('Surgery') # Add the virtual properties. Object.defineProperties encounter, ###* * 'Surgery' for a surgery encounter, * otherwise the encounter class * * @property title ### title: get: -> if @isSurgery() then 'Surgery' else @_cls # Extend the pathology object. if encounter.pathology Pathology.extend(encounter.pathology) # Breast augments clinical encounters with virtual properties. if encounter.subject.collection is 'Breast' Breast.extend(encounter) # Return the augmented clinical encounter object. encounter `export { ClinicalEncounter as default }`
1c3ac223ee3b94b47c6a2e398193dac50a4941f2
content/events/2016-baltimore/contact.md
content/events/2016-baltimore/contact.md
+++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} **Our local team** {{< list_organizers >}} <div> <!-- put twitter timeline here --> </div> **The core devopsdays organizer group** {{< list_core >}}
+++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} **Our local team** {{< list_organizers >}} <div> <a class="twitter-timeline" href="https://twitter.com/DevOpsDaysBmore" data-widget-id="733693713298382849">Tweets by @DevOpsDaysBmore</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> **The core devopsdays organizer group** {{< list_core >}}
Add twitter stream to Baltimore
Add twitter stream to Baltimore Signed-off-by: Nathen Harvey <[email protected]>
Markdown
apache-2.0
gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web
markdown
## Code Before: +++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} **Our local team** {{< list_organizers >}} <div> <!-- put twitter timeline here --> </div> **The core devopsdays organizer group** {{< list_core >}} ## Instruction: Add twitter stream to Baltimore Signed-off-by: Nathen Harvey <[email protected]> ## Code After: +++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} **Our local team** {{< list_organizers >}} <div> <a class="twitter-timeline" href="https://twitter.com/DevOpsDaysBmore" data-widget-id="733693713298382849">Tweets by @DevOpsDaysBmore</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> **The core devopsdays organizer group** {{< list_core >}}
2d9771d0bbbda64df724b8169660a800e51919d1
README.md
README.md
Where everything else goes :warning: **Warning**: some of this code is quite old and most of it is very ugly.
[![forthebadge](http://forthebadge.com/images/badges/uses-badges.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/compatibility-ie-6.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/60-percent-of-the-time-works-every-time.svg)](http://forthebadge.com) --- [Everyone should have a junk repo.](https://github.com/voltagex/junkcode)
Add badges just for fun
Add badges just for fun
Markdown
mit
bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile
markdown
## Code Before: Where everything else goes :warning: **Warning**: some of this code is quite old and most of it is very ugly. ## Instruction: Add badges just for fun ## Code After: [![forthebadge](http://forthebadge.com/images/badges/uses-badges.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/compatibility-ie-6.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/60-percent-of-the-time-works-every-time.svg)](http://forthebadge.com) --- [Everyone should have a junk repo.](https://github.com/voltagex/junkcode)
efe791190fea2f888e88e389b1a30b15eace5c4f
app/controllers/admin/projects_controller.rb
app/controllers/admin/projects_controller.rb
class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.github_repository.try(:update_all_info_async) redirect_to project_path(@project.to_param) else redirect_to admin_project_path(@project.id) end end private def project_params params.require(:project).permit(:repository_url) end end
class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.update_github_repo_async redirect_to project_path(@project.to_param) else redirect_to admin_project_path(@project.id) end end private def project_params params.require(:project).permit(:repository_url) end end
Update github repo after admin edit
Update github repo after admin edit
Ruby
agpl-3.0
librariesio/libraries.io,samjacobclift/libraries.io,samjacobclift/libraries.io,tomnatt/libraries.io,tomnatt/libraries.io,samjacobclift/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,abrophy/libraries.io
ruby
## Code Before: class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.github_repository.try(:update_all_info_async) redirect_to project_path(@project.to_param) else redirect_to admin_project_path(@project.id) end end private def project_params params.require(:project).permit(:repository_url) end end ## Instruction: Update github repo after admin edit ## Code After: class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.update_github_repo_async redirect_to project_path(@project.to_param) else redirect_to admin_project_path(@project.id) end end private def project_params params.require(:project).permit(:repository_url) end end
179ab5ad2af50e2f21015a920b05e6842f3d64ee
tests/ZendTest/Form/TestAsset/Model.php
tests/ZendTest/Form/TestAsset/Model.php
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Zend_Form */ namespace ZendTest\Form\TestAsset; use DomainException; use Zend\Stdlib\ArraySerializableInterface; /** * @category Zend * @package Zend_Form * @subpackage UnitTest */ class Model implements ArraySerializableInterface { protected $foo; protected $bar; protected $foobar; public function __set($name, $value) { throw new DomainException('Overloading to set values is not allowed'); } public function __get($name) { if (property_exists($this, $name)) { return $this->$name; } throw new DomainException('Unknown attribute'); } public function exchangeArray(array $array) { foreach ($array as $key => $value) { if (!property_exists($this, $key)) { continue; } $this->$key = $value; } } public function getArrayCopy() { return array( 'foo' => $this->foo, 'bar' => $this->bar, 'foobar' => $this->foobar, ); } }
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendTest\Form\TestAsset; use DomainException; use Zend\Stdlib\ArraySerializableInterface; /** * @category Zend * @package Zend_Form * @subpackage UnitTest */ class Model implements ArraySerializableInterface { protected $foo; protected $bar; protected $foobar; public function __set($name, $value) { throw new DomainException('Overloading to set values is not allowed'); } public function __get($name) { if (property_exists($this, $name)) { return $this->$name; } throw new DomainException('Unknown attribute'); } public function exchangeArray(array $array) { foreach ($array as $key => $value) { if (!property_exists($this, $key)) { continue; } $this->$key = $value; } } public function getArrayCopy() { return array( 'foo' => $this->foo, 'bar' => $this->bar, 'foobar' => $this->foobar, ); } }
Remove @package & restart travis
Remove @package & restart travis
PHP
bsd-3-clause
nandadotexe/zf2,inwebo/zf2,samsonasik/zf2,keradus/zf2,echampet/zf2,bullandrock/zf2,sasezaki/zf2,samsonasik/zf2,mmetayer/zf2,huangchaolei55/firstSite,stefanotorresi/zf2,pembo210/zf2,roko79/zf2,campersau/zf2,vrkansagara/zf2,TheBestSoftInTheWorld/zf2,0livier/zf2,KarimBea/test,dntmartins/zf2,KarimBea/test,desenvuno/zf2,levelfivehub/zf2,keradus/zf2,DASPRiD/zf2,olearys/zf2,ChrisSchreiber/zf2,bullandrock/zf2,AICIDNN/zf2,stefanotorresi/zf2,DASPRiD/zf2,mpalourdio/zf2,dvsavenkov/zf2,pepeam/zend,campersau/zf2,sasezaki/zf2,prolic/zf2,0livier/zf2,noopable/zf2,coolmic/zf2,sntsikdar/zf2,shitikovkirill/zf2,roheim/zf2,awd-git/zf2,dvsavenkov/zf2,david-sann/zf2,bourkhimehaytam/zf2,guilherme-santos/zf2,freax/zf2,Heshan-Sandamal/zf2,taogb/zf2,mmauri04/zf2,dkemper/zf2,samsonasik/zf2,felipemaksy/zf2,MadCat34/zf2,dkarvounaris/zf2,0livier/zf2,zf2timo/zf2,echampet/zf2,artpoplsh/zf2,dntmartins/zf2,svycka/zf2,dntmartins/zf2,bullandrock/zf2,kanellov/zf2,david-sann/zf2,walberjefferson/zf2,mikicaivosevic/zf2,campersau/zf2,echampet/zf2,bourkhimehaytam/zf2,Brucewyh/zf2,taro-asahi/zf2,stefanotorresi/zf2,enjoy2000/zf2,sasezaki/zf2,pepeam/zend,zendframework/zf2,Sineth-N/zf2,svycka/zf2
php
## Code Before: <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Zend_Form */ namespace ZendTest\Form\TestAsset; use DomainException; use Zend\Stdlib\ArraySerializableInterface; /** * @category Zend * @package Zend_Form * @subpackage UnitTest */ class Model implements ArraySerializableInterface { protected $foo; protected $bar; protected $foobar; public function __set($name, $value) { throw new DomainException('Overloading to set values is not allowed'); } public function __get($name) { if (property_exists($this, $name)) { return $this->$name; } throw new DomainException('Unknown attribute'); } public function exchangeArray(array $array) { foreach ($array as $key => $value) { if (!property_exists($this, $key)) { continue; } $this->$key = $value; } } public function getArrayCopy() { return array( 'foo' => $this->foo, 'bar' => $this->bar, 'foobar' => $this->foobar, ); } } ## Instruction: Remove @package & restart travis ## Code After: <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendTest\Form\TestAsset; use DomainException; use Zend\Stdlib\ArraySerializableInterface; /** * @category Zend * @package Zend_Form * @subpackage UnitTest */ class Model implements ArraySerializableInterface { protected $foo; protected $bar; protected $foobar; public function __set($name, $value) { throw new DomainException('Overloading to set values is not allowed'); } public function __get($name) { if (property_exists($this, $name)) { return $this->$name; } throw new DomainException('Unknown attribute'); } public function exchangeArray(array $array) { foreach ($array as $key => $value) { if (!property_exists($this, $key)) { continue; } $this->$key = $value; } } public function getArrayCopy() { return array( 'foo' => $this->foo, 'bar' => $this->bar, 'foobar' => $this->foobar, ); } }
dac3c4f163c694b9b083247e72189996e5e2125c
just/json_.py
just/json_.py
import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): with open(fn, "w") as f: json.dump(obj, f, indent=4) def iread(fn): with open(fn) as f: for line in f: yield json.loads(line) def iwrite(obj, fn): with open(fn, "w") as f: for chunk in obj: f.write(json.dumps(chunk) + "\n")
import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): with open(fn, "w") as f: json.dump(obj, f, indent=4) def iread(fn): with open(fn) as f: for i, line in enumerate(f): try: yield json.loads(line) except json.decoder.JSONDecodeError as e: raise json.decoder.JSONDecodeError( "JSON-L parsing error in line number {} in the jsonl file".format(i), line, e.pos) def iwrite(obj, fn): with open(fn, "w") as f: for chunk in obj: f.write(json.dumps(chunk) + "\n")
Add detailed error message to jsonl parsing
Add detailed error message to jsonl parsing
Python
agpl-3.0
kootenpv/just
python
## Code Before: import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): with open(fn, "w") as f: json.dump(obj, f, indent=4) def iread(fn): with open(fn) as f: for line in f: yield json.loads(line) def iwrite(obj, fn): with open(fn, "w") as f: for chunk in obj: f.write(json.dumps(chunk) + "\n") ## Instruction: Add detailed error message to jsonl parsing ## Code After: import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): with open(fn, "w") as f: json.dump(obj, f, indent=4) def iread(fn): with open(fn) as f: for i, line in enumerate(f): try: yield json.loads(line) except json.decoder.JSONDecodeError as e: raise json.decoder.JSONDecodeError( "JSON-L parsing error in line number {} in the jsonl file".format(i), line, e.pos) def iwrite(obj, fn): with open(fn, "w") as f: for chunk in obj: f.write(json.dumps(chunk) + "\n")
434911be78631a1902c92571400d668f2ff02e45
update_packages.sh
update_packages.sh
echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi echo "Checking database..." sudo pacman -Dkk echo "Writing native package list..." pacman -Qqettn > ~/git/arch/packages echo "Writing foreign package list..." pacman -Qqettm > ~/git/arch/aur_packages echo git --no-pager diff -U0 packages aur_packages echo while true; do read -p "Do you wish to commit those changes? [yn] " -n 1 yn echo case $yn in [Yy]* ) echo "Committing changes..." git commit -m \"Update package lists\" packages aur_packages exit;; [Nn]* ) echo "Rolling back changes..." git checkout packages aur_packages exit;; * ) echo "Please answer y or n" ;; esac; done
if [[ ! -f packages || ! -f aur_packages ]]; then echo "One or more of packages and aur_packages doesn't exist." echo "Are we in the right directory? Quitting.." exit fi echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi echo "Checking database..." sudo pacman -Dkk echo "Writing native package list..." pacman -Qqettn > packages echo "Writing foreign package list..." pacman -Qqettm > aur_packages echo git --no-pager diff -U0 packages aur_packages echo while true; do read -p "Do you wish to commit those changes? [yn] " -n 1 yn echo case $yn in [Yy]* ) echo "Committing changes..." git commit -m \"Update package lists\" packages aur_packages exit;; [Nn]* ) echo "Rolling back changes..." git checkout packages aur_packages exit;; * ) echo "Please answer y or n" ;; esac; done
Check for existence of destination files
Check for existence of destination files
Shell
mit
ow97/arch
shell
## Code Before: echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi echo "Checking database..." sudo pacman -Dkk echo "Writing native package list..." pacman -Qqettn > ~/git/arch/packages echo "Writing foreign package list..." pacman -Qqettm > ~/git/arch/aur_packages echo git --no-pager diff -U0 packages aur_packages echo while true; do read -p "Do you wish to commit those changes? [yn] " -n 1 yn echo case $yn in [Yy]* ) echo "Committing changes..." git commit -m \"Update package lists\" packages aur_packages exit;; [Nn]* ) echo "Rolling back changes..." git checkout packages aur_packages exit;; * ) echo "Please answer y or n" ;; esac; done ## Instruction: Check for existence of destination files ## Code After: if [[ ! -f packages || ! -f aur_packages ]]; then echo "One or more of packages and aur_packages doesn't exist." echo "Are we in the right directory? Quitting.." exit fi echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi echo "Checking database..." sudo pacman -Dkk echo "Writing native package list..." pacman -Qqettn > packages echo "Writing foreign package list..." pacman -Qqettm > aur_packages echo git --no-pager diff -U0 packages aur_packages echo while true; do read -p "Do you wish to commit those changes? [yn] " -n 1 yn echo case $yn in [Yy]* ) echo "Committing changes..." git commit -m \"Update package lists\" packages aur_packages exit;; [Nn]* ) echo "Rolling back changes..." git checkout packages aur_packages exit;; * ) echo "Please answer y or n" ;; esac; done
0216bfd48fddb9bb7bda611ec5bdfe368bdee55f
layout/tests.py
layout/tests.py
from django.test import TestCase # Create your tests here.
from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') self.assertEqual(found.func, home)
Add home page resolve test to layout
Add home page resolve test to layout
Python
mit
jvanbrug/scout,jvanbrug/scout
python
## Code Before: from django.test import TestCase # Create your tests here. ## Instruction: Add home page resolve test to layout ## Code After: from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') self.assertEqual(found.func, home)
9ec8f4a5b62407f2a6d0a88370a83a6a3d85b934
application/config/auth.php
application/config/auth.php
<?php return array( /* |-------------------------------------------------------------------------- | Authentication Model |-------------------------------------------------------------------------- | | This model will be used by the Auth class when retrieving the users of | your application. Feel free to change it to the name of your user model. | | Note: The authentication model must be an Eloquent model. | */ 'model' => 'User', /* |-------------------------------------------------------------------------- | Authentication Username |-------------------------------------------------------------------------- | | The authentication username is the column on your users table that | is considered the username of the user. Typically, this is either "email" | or "username". However, you are free to make it whatever you wish. | */ 'username' => 'email', );
<?php return array( /* |-------------------------------------------------------------------------- | Retrieve Users By ID |-------------------------------------------------------------------------- | | This method is called by the Auth::user() method when attempting to load | a user by their user ID. | | You are free to change this method for your application however you wish. | */ 'by_id' => function($id) { return User::find($id); }, /* |-------------------------------------------------------------------------- | Retrieve Users By Username |-------------------------------------------------------------------------- | | This method is called by the Auth::check() method when attempting to load | a user by their username. | | You are free to change this method for your application however you wish, | as long as you return an object that has "id" and "password" properties. | */ 'by_username' => function($username) { return User::where('email', '=', $username)->first(); }, );
Refactor Auth config to use closures.
Refactor Auth config to use closures.
PHP
apache-2.0
abbasadel/TheGlobalMeter,AustinW/contact-manager,zhiyicx/thinksns-plus,alanly/soen341-scheduler,lxerxa/actionview,abbasadel/TheGlobalMeter,boomcms/boomcms,escanton/invoices-providers,kjvenky/laravel,hackel/laravel,resnostyle/Shuttr,lcp0578/Wiki,renemeza/college-web-control,abbasadel/TheGlobalMeter,ColErr/creepr-workbench,kerick-jeff/istore,kerick-jeff/iPub,pdoren/laravel4,kjvenky/laravel,tinywitch/laravel,Stolz/Wiki,udayrockstar/RestaurantManager,beautifultable/phpwind,coolguy1990/madrambles,slimkit/thinksns-plus,lxerxa/actionview,zeropingheroes/lanyard,kerick-jeff/iPub,escanton/invoices-providers,lxerxa/actionview,natetheaverage/Bosspos-dev,alanly/soen341-scheduler,RowlandOti-Student/SlimeApi,xezw211/wx,tkc/laravel-unit-test-sample,thosakwe/rGuard,thosakwe/rGuard,orckid-lab/dashboard,hackel/laravel,kerick-jeff/istore,thosakwe/rGuard,pdoren/laravel4,martindilling/martindilling,lxyz/laraveldemo,zeropingheroes/lanyard,hackel/laravel,physio/fatture,chipotle/quill,SIJOT/SIJOT-2.x,coolguy1990/madrambles,flysap/skeleton,superdol/Wiki,ucla/shib-oauth2-bridge,zhiyicx/thinksns-plus,thosakwe/rGuard,alanly/soen341-scheduler,tkc/laravel-unit-test-sample,physio/fatture,GoogleCloudPlatform/laravel,remxcode/laravel-base,chipotle/quill,xezw211/wx,abbasadel/TheGlobalMeter,natetheaverage/Bosspos-dev,AustinW/contact-manager,kerick-jeff/iPub,slawisha/RestaurantManager,natetheaverage/Bosspos-dev,renemeza/college-web-control,udayrockstar/RestaurantManager,slawisha/RestaurantManager,tkc/laravel-unit-test-sample,chipotle/quill,cbnuke/FilesCollection,remxcode/laravel-base,sergi10/rfuerzo,GoogleCloudPlatform/laravel,orckid-lab/dashboard,superdol/Wiki,flysap/skeleton,natetheaverage/Bosspos-dev,tkc/laravel-unit-test-sample,farwish/laravel-pro,slimkit/thinksns-plus,thosakwe/rGuard,pdoren/laravel4,xezw211/wx,GoogleCloudPlatform/laravel,ColErr/creepr-workbench,beautifultable/phpwind,abbasadel/TheGlobalMeter,lcp0578/Wiki,superdol/Wiki,coolguy1990/madrambles,chipotle/quill,coolguy1990/madrambles,farwish/laravel-pro,renemeza/college-web-control,SIJOT/SIJOT-2.x,alanly/soen341-scheduler,lxerxa/actionview,resnostyle/Shuttr,RowlandOti/SlimeApi,renemeza/college-web-control,zeropingheroes/lanyard,cbnuke/FilesCollection,ebollens/shib-oauth2-bridge,sergi10/rfuerzo,AustinW/contact-manager,Stichoza/laravel-boilerplate,lcp0578/Wiki,martindilling/martindilling,slawisha/RestaurantManager,sergi10/rfuerzo,martindilling/martindilling,Stolz/Wiki,ColErr/creepr-workbench,udayrockstar/RestaurantManager,Stolz/Wiki,escanton/invoices-providers
php
## Code Before: <?php return array( /* |-------------------------------------------------------------------------- | Authentication Model |-------------------------------------------------------------------------- | | This model will be used by the Auth class when retrieving the users of | your application. Feel free to change it to the name of your user model. | | Note: The authentication model must be an Eloquent model. | */ 'model' => 'User', /* |-------------------------------------------------------------------------- | Authentication Username |-------------------------------------------------------------------------- | | The authentication username is the column on your users table that | is considered the username of the user. Typically, this is either "email" | or "username". However, you are free to make it whatever you wish. | */ 'username' => 'email', ); ## Instruction: Refactor Auth config to use closures. ## Code After: <?php return array( /* |-------------------------------------------------------------------------- | Retrieve Users By ID |-------------------------------------------------------------------------- | | This method is called by the Auth::user() method when attempting to load | a user by their user ID. | | You are free to change this method for your application however you wish. | */ 'by_id' => function($id) { return User::find($id); }, /* |-------------------------------------------------------------------------- | Retrieve Users By Username |-------------------------------------------------------------------------- | | This method is called by the Auth::check() method when attempting to load | a user by their username. | | You are free to change this method for your application however you wish, | as long as you return an object that has "id" and "password" properties. | */ 'by_username' => function($username) { return User::where('email', '=', $username)->first(); }, );
daff0935efecbf6df3f43567c628db3c6357ffbe
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/ReportLogger.java
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/ReportLogger.java
package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { public static void start(final Logger logger, final Logger auditor, final String reportName) { if(!createLoggingAction(logger, auditor, new ReportLogger())) { return; } ReportLogger reportLogger = (ReportLogger) getInstance(); if (reportLogger == null) { return; } reportLogger.startInstance(reportName); } @Override protected void addPropertiesStart(String reportName) { super.addPropertiesStart("Report", "ReportName", reportName); } public static void success(String reportBody) { ReportLogger logger = (ReportLogger) getInstance(); if (logger == null) { return; } addProperty("ReportBody", reportBody); logger.successInstance(); } }
package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { static private String reportNameFieldName = "ReportName"; static private String reportBodyFieldName = "ReportBody"; static public void setIvpFieldNames(String reportNameFieldName, String reportBodyFieldName) { ReportLogger.reportNameFieldName = reportNameFieldName; ReportLogger.reportBodyFieldName = reportBodyFieldName; } public static void start(final Logger logger, final Logger auditor, final String reportName) { if(!createLoggingAction(logger, auditor, new ReportLogger())) { return; } ReportLogger reportLogger = (ReportLogger) getInstance(); if (reportLogger == null) { return; } reportLogger.startInstance(reportName); } @Override protected void addPropertiesStart(String reportName) { super.addPropertiesStart("Report", reportNameFieldName, reportName); } public static void success(String reportBody) { ReportLogger logger = (ReportLogger) getInstance(); if (logger == null) { return; } addProperty(reportBodyFieldName, reportBody); logger.successInstance(); } }
Allow chaning report field names
Allow chaning report field names
Java
apache-2.0
foundation-runtime/logging
java
## Code Before: package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { public static void start(final Logger logger, final Logger auditor, final String reportName) { if(!createLoggingAction(logger, auditor, new ReportLogger())) { return; } ReportLogger reportLogger = (ReportLogger) getInstance(); if (reportLogger == null) { return; } reportLogger.startInstance(reportName); } @Override protected void addPropertiesStart(String reportName) { super.addPropertiesStart("Report", "ReportName", reportName); } public static void success(String reportBody) { ReportLogger logger = (ReportLogger) getInstance(); if (logger == null) { return; } addProperty("ReportBody", reportBody); logger.successInstance(); } } ## Instruction: Allow chaning report field names ## Code After: package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { static private String reportNameFieldName = "ReportName"; static private String reportBodyFieldName = "ReportBody"; static public void setIvpFieldNames(String reportNameFieldName, String reportBodyFieldName) { ReportLogger.reportNameFieldName = reportNameFieldName; ReportLogger.reportBodyFieldName = reportBodyFieldName; } public static void start(final Logger logger, final Logger auditor, final String reportName) { if(!createLoggingAction(logger, auditor, new ReportLogger())) { return; } ReportLogger reportLogger = (ReportLogger) getInstance(); if (reportLogger == null) { return; } reportLogger.startInstance(reportName); } @Override protected void addPropertiesStart(String reportName) { super.addPropertiesStart("Report", reportNameFieldName, reportName); } public static void success(String reportBody) { ReportLogger logger = (ReportLogger) getInstance(); if (logger == null) { return; } addProperty(reportBodyFieldName, reportBody); logger.successInstance(); } }
79b5a8464000177ec84b6aea217ae6b8eba803b4
.travis.yml
.travis.yml
language: python python: - 3.3.2 # - 3.4 # - pypy install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py # after_success: # - pyflakes scripts/*.py notifications: email: recipients: - [email protected] - [email protected] on_success: change on_failure: change
language: python python: - 3.3.2 # - 3.4 install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py after_success: - pyflakes scripts/*.py notifications: email: recipients: - [email protected] - [email protected] on_success: change on_failure: change
Add pyflakes to Travis process
Add pyflakes to Travis process
YAML
cc0-1.0
gautamsrin/congress-legislators,hugovk/congress-legislators,hackerrdave/congress-legislators,Ukazziha/congress-legislators,Daniel1005/congress-legislators,YOTOV-LIMITED/congress-legislators,gautamsrin/congress-legislators,hackerrdave/congress-legislators,Daniel1005/congress-legislators,mrumsky/congress-legislators,iamLucia/congress-legislators,alizizohaker/congress-legislators,mrumsky/congress-legislators,iamLucia/congress-legislators,alizizohaker/congress-legislators,Nolawee/congress-legislators,YOTOV-LIMITED/congress-legislators,Nolawee/congress-legislators,hugovk/congress-legislators,unitedstates/congress-legislators,Ukazziha/congress-legislators,unitedstates/congress-legislators
yaml
## Code Before: language: python python: - 3.3.2 # - 3.4 # - pypy install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py # after_success: # - pyflakes scripts/*.py notifications: email: recipients: - [email protected] - [email protected] on_success: change on_failure: change ## Instruction: Add pyflakes to Travis process ## Code After: language: python python: - 3.3.2 # - 3.4 install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py after_success: - pyflakes scripts/*.py notifications: email: recipients: - [email protected] - [email protected] on_success: change on_failure: change
14603b31771e091ac8e33418099ff3d276072aba
integration/docker/simple_test.go
integration/docker/simple_test.go
package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } } func TestStartAndStop(t *testing.T) { setupTest(t) container, err := docker.Start("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } err = docker.Stop(container.ID) if err != nil { t.Fatal(err) } }
package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } if container.Name != "/kermit_busybox" { t.Fatalf("expected kermit_busyboy as name, got %s", container.Name) } } func TestStartAndStop(t *testing.T) { setupTest(t) container, err := docker.Start("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } if container.Name != "/kermit_busybox" { t.Fatalf("expected kermit_busyboy as name, got %s", container.Name) } err = docker.Stop(container.ID) if err != nil { t.Fatal(err) } }
Update integration tests a bit
Update integration tests a bit
Go
apache-2.0
libkermit/docker,libkermit/docker
go
## Code Before: package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } } func TestStartAndStop(t *testing.T) { setupTest(t) container, err := docker.Start("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } err = docker.Stop(container.ID) if err != nil { t.Fatal(err) } } ## Instruction: Update integration tests a bit ## Code After: package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } if container.Name != "/kermit_busybox" { t.Fatalf("expected kermit_busyboy as name, got %s", container.Name) } } func TestStartAndStop(t *testing.T) { setupTest(t) container, err := docker.Start("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing") } if container.Name != "/kermit_busybox" { t.Fatalf("expected kermit_busyboy as name, got %s", container.Name) } err = docker.Stop(container.ID) if err != nil { t.Fatal(err) } }
820a969552986fc7c7b1cbc4460ea198fc2a49f4
.travis.yml
.travis.yml
language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.4 and 2.5 too, but they are not available in travis install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then ./tests/test_all.py; else coverage run ./tests/test_all.py; fi # We don't use e.g. tox for non-regression tests, because we want to have # a script that works with python 2.4 too... # python2.4 ./tests/test_all.py will work fine :-) # Note that coverage is incompatible with python 3.2, cf. # https://github.com/menegazzo/travispy/issues/20 after_success: - codecov
language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.3, 2.4 and 2.5 too, but they are not available in travis - 'pypy3' - 'pypy' install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then ./tests/test_all.py; else coverage run ./tests/test_all.py; fi # We don't use e.g. tox for non-regression tests, because we want to have # a script that works with old python too, and tox needs python2.5 # python2.4 ./tests/test_all.py will work fine :-) # Note that coverage is incompatible with python 3.2, cf. # https://github.com/menegazzo/travispy/issues/20 after_success: - codecov
Add pypy in Travis CI
Add pypy in Travis CI
YAML
lgpl-2.1
LRGH/elfesteem,LRGH/elfesteem
yaml
## Code Before: language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.4 and 2.5 too, but they are not available in travis install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then ./tests/test_all.py; else coverage run ./tests/test_all.py; fi # We don't use e.g. tox for non-regression tests, because we want to have # a script that works with python 2.4 too... # python2.4 ./tests/test_all.py will work fine :-) # Note that coverage is incompatible with python 3.2, cf. # https://github.com/menegazzo/travispy/issues/20 after_success: - codecov ## Instruction: Add pypy in Travis CI ## Code After: language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.3, 2.4 and 2.5 too, but they are not available in travis - 'pypy3' - 'pypy' install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then ./tests/test_all.py; else coverage run ./tests/test_all.py; fi # We don't use e.g. tox for non-regression tests, because we want to have # a script that works with old python too, and tox needs python2.5 # python2.4 ./tests/test_all.py will work fine :-) # Note that coverage is incompatible with python 3.2, cf. # https://github.com/menegazzo/travispy/issues/20 after_success: - codecov
1e8d24512f855db215686e60ae0638de57f51ded
README.md
README.md
Integration components for using Rossvyaz Open Data in Android application.
Integration components for using [Rossvyaz Open Data](http://www.rossvyaz.ru/opendata "Rossvyaz Open Data (rus)") in Android application. Minimum supported Android SDK version is 9 (Android 2.3+). Right now Russvy is simple enough and does not have any external dependencies. ## Repository contents - 'assets': minified data ready to be plugged into Android application - 'data': raw CSV data from Rossvyaz site - 'library': source code wrapped in Android Studio module ## Adding Russvy to Android Studio project 1. Checkout the repository. 2. Copy files from 'assets' to Android Studio project's assets. 3. Do module import from 'library' directory. For other build environments, read the 'Repository contents' section of this file.
Add slightly more verbose readme
Add slightly more verbose readme
Markdown
apache-2.0
tbrs/russvy
markdown
## Code Before: Integration components for using Rossvyaz Open Data in Android application. ## Instruction: Add slightly more verbose readme ## Code After: Integration components for using [Rossvyaz Open Data](http://www.rossvyaz.ru/opendata "Rossvyaz Open Data (rus)") in Android application. Minimum supported Android SDK version is 9 (Android 2.3+). Right now Russvy is simple enough and does not have any external dependencies. ## Repository contents - 'assets': minified data ready to be plugged into Android application - 'data': raw CSV data from Rossvyaz site - 'library': source code wrapped in Android Studio module ## Adding Russvy to Android Studio project 1. Checkout the repository. 2. Copy files from 'assets' to Android Studio project's assets. 3. Do module import from 'library' directory. For other build environments, read the 'Repository contents' section of this file.
09b1475aebbd6f638b2ee3fd6f16e8cae3aee636
lib/salve/oop.js
lib/salve/oop.js
define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { function F() {} F.prototype = inherited.prototype; inheritor.prototype = new F(); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inherited) { for(var f in inherited.prototype) { inheritor.prototype[f] = inherited.prototype[f]; } } exports.inherit = inherit; exports.implement = implement; });
define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { inheritor.prototype = Object.create(inherited.prototype); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inherited) { for(var f in inherited.prototype) { inheritor.prototype[f] = inherited.prototype[f]; } } exports.inherit = inherit; exports.implement = implement; });
Use Object.create rather than a fake constructor.
Use Object.create rather than a fake constructor.
JavaScript
mpl-2.0
lddubeau/salve,lddubeau/salve,mangalam-research/salve,mangalam-research/salve,lddubeau/salve,mangalam-research/salve
javascript
## Code Before: define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { function F() {} F.prototype = inherited.prototype; inheritor.prototype = new F(); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inherited) { for(var f in inherited.prototype) { inheritor.prototype[f] = inherited.prototype[f]; } } exports.inherit = inherit; exports.implement = implement; }); ## Instruction: Use Object.create rather than a fake constructor. ## Code After: define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { inheritor.prototype = Object.create(inherited.prototype); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inherited) { for(var f in inherited.prototype) { inheritor.prototype[f] = inherited.prototype[f]; } } exports.inherit = inherit; exports.implement = implement; });
f2b2a27b4729feaab2277f95faca768782322215
.travis.yml
.travis.yml
language: python python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end============================== deploy: provider: pypi user: ... password: ... distributions: "bdist_wheel" on: branch: master
language: python cache: pip python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end============================== deploy: provider: pypi user: ... password: ... distributions: "bdist_wheel" on: branch: master python: 3.5
Add to cache & python version
Add to cache & python version
YAML
mit
Shinichi-Nakagawa/pitchpx
yaml
## Code Before: language: python python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end============================== deploy: provider: pypi user: ... password: ... distributions: "bdist_wheel" on: branch: master ## Instruction: Add to cache & python version ## Code After: language: python cache: pip python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end============================== deploy: provider: pypi user: ... password: ... distributions: "bdist_wheel" on: branch: master python: 3.5
5ec452a9bc0386a6471bc14564646d29eb44c1e0
java/.idea/compiler.xml
java/.idea/compiler.xml
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExtensions> <wildcardResourcePatterns> <entry name="?*.properties" /> <entry name="?*.xml" /> <entry name="?*.gif" /> <entry name="?*.png" /> <entry name="?*.jpeg" /> <entry name="?*.jpg" /> <entry name="?*.html" /> <entry name="?*.dtd" /> <entry name="?*.tld" /> <entry name="?*.ftl" /> </wildcardResourcePatterns> <annotationProcessing> <profile default="true" name="Default" enabled="false"> <processorPath useClasspath="true" /> </profile> </annotationProcessing> </component> </project>
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExtensions> <wildcardResourcePatterns> <entry name="?*.properties" /> <entry name="?*.xml" /> <entry name="?*.gif" /> <entry name="?*.png" /> <entry name="?*.jpeg" /> <entry name="?*.jpg" /> <entry name="?*.html" /> <entry name="?*.dtd" /> <entry name="?*.tld" /> <entry name="?*.ftl" /> <entry name="?*.css" /> <entry name="?*.js" /> </wildcardResourcePatterns> <annotationProcessing> <profile default="true" name="Default" enabled="false"> <processorPath useClasspath="true" /> </profile> </annotationProcessing> </component> </project>
Copy resources to output at build time
Copy resources to output at build time
XML
apache-2.0
InformaticsMatters/squonk,InformaticsMatters/squonk,InformaticsMatters/squonk,InformaticsMatters/squonk
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExtensions> <wildcardResourcePatterns> <entry name="?*.properties" /> <entry name="?*.xml" /> <entry name="?*.gif" /> <entry name="?*.png" /> <entry name="?*.jpeg" /> <entry name="?*.jpg" /> <entry name="?*.html" /> <entry name="?*.dtd" /> <entry name="?*.tld" /> <entry name="?*.ftl" /> </wildcardResourcePatterns> <annotationProcessing> <profile default="true" name="Default" enabled="false"> <processorPath useClasspath="true" /> </profile> </annotationProcessing> </component> </project> ## Instruction: Copy resources to output at build time ## Code After: <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExtensions> <wildcardResourcePatterns> <entry name="?*.properties" /> <entry name="?*.xml" /> <entry name="?*.gif" /> <entry name="?*.png" /> <entry name="?*.jpeg" /> <entry name="?*.jpg" /> <entry name="?*.html" /> <entry name="?*.dtd" /> <entry name="?*.tld" /> <entry name="?*.ftl" /> <entry name="?*.css" /> <entry name="?*.js" /> </wildcardResourcePatterns> <annotationProcessing> <profile default="true" name="Default" enabled="false"> <processorPath useClasspath="true" /> </profile> </annotationProcessing> </component> </project>
ae30e7a955c79958018f1eabab143466e0d9351d
src/Laravel/config/ticketevolution.php
src/Laravel/config/ticketevolution.php
<?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration to your config directory using | artisan ticketevolution:publish | | It is recommended that you store your credentials in your .env file | that is not committed to your repo and load them here using env(). | */ return [ 'baseUrl' => env('TICKETEVOLUTION_API_BASEURL') ?: 'https://api.ticketevolution.com/v9', 'apiVersion' => env('TICKETEVOLUTION_API_VERSION') ?: 'v9', 'apiToken' => env('TICKETEVOLUTION_API_TOKEN'), 'apiSecret' => env('TICKETEVOLUTION_API_SECRET'), ];
<?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration to your config directory using | php artisan vendor:publish | | It is recommended that you store your credentials in your .env file | that is not committed to your repo and load them here using env(). | */ return [ 'baseUrl' => env('TICKETEVOLUTION_API_BASEURL') ?: 'https://api.ticketevolution.com/v9', 'apiVersion' => env('TICKETEVOLUTION_API_VERSION') ?: 'v9', 'apiToken' => env('TICKETEVOLUTION_API_TOKEN'), 'apiSecret' => env('TICKETEVOLUTION_API_SECRET'), ];
Correct artisan command for publishing the config file
Correct artisan command for publishing the config file
PHP
bsd-3-clause
ticketevolution/ticketevolution-php,sonnygauran/ticketevolution-php
php
## Code Before: <?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration to your config directory using | artisan ticketevolution:publish | | It is recommended that you store your credentials in your .env file | that is not committed to your repo and load them here using env(). | */ return [ 'baseUrl' => env('TICKETEVOLUTION_API_BASEURL') ?: 'https://api.ticketevolution.com/v9', 'apiVersion' => env('TICKETEVOLUTION_API_VERSION') ?: 'v9', 'apiToken' => env('TICKETEVOLUTION_API_TOKEN'), 'apiSecret' => env('TICKETEVOLUTION_API_SECRET'), ]; ## Instruction: Correct artisan command for publishing the config file ## Code After: <?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration to your config directory using | php artisan vendor:publish | | It is recommended that you store your credentials in your .env file | that is not committed to your repo and load them here using env(). | */ return [ 'baseUrl' => env('TICKETEVOLUTION_API_BASEURL') ?: 'https://api.ticketevolution.com/v9', 'apiVersion' => env('TICKETEVOLUTION_API_VERSION') ?: 'v9', 'apiToken' => env('TICKETEVOLUTION_API_TOKEN'), 'apiSecret' => env('TICKETEVOLUTION_API_SECRET'), ];
5d1c802e2b3ee7ae7471bd2f159af236f7674453
app/javascript/packs/application.js
app/javascript/packs/application.js
/* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. // // To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate // layout file, like app/views/layouts/application.html.erb import { preferredDistanceUnit, preferredElevationUnit, distanceToPreferred, elevationToPreferred } from 'utils/units'; global.preferredDistanceUnit = preferredDistanceUnit; global.preferredElevationUnit = preferredElevationUnit; global.distanceToPreferred = distanceToPreferred; global.elevationToPreferred = elevationToPreferred; import "@hotwired/turbo" import 'utils/growl'; import TurboLinksAdapter from 'vue-turbolinks'; Vue.use(TurboLinksAdapter); import { Application } from "stimulus" import { definitionsFromContext } from "stimulus/webpack-helpers" const application = Application.start() const context = require.context("controllers", true, /.js$/) application.load(definitionsFromContext(context))
/* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. // // To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate // layout file, like app/views/layouts/application.html.erb require("@hotwired/turbo-rails") import { preferredDistanceUnit, preferredElevationUnit, distanceToPreferred, elevationToPreferred } from 'utils/units'; global.preferredDistanceUnit = preferredDistanceUnit; global.preferredElevationUnit = preferredElevationUnit; global.distanceToPreferred = distanceToPreferred; global.elevationToPreferred = elevationToPreferred; import 'utils/growl'; import TurboLinksAdapter from 'vue-turbolinks'; Vue.use(TurboLinksAdapter); import { Application } from "stimulus" import { definitionsFromContext } from "stimulus/webpack-helpers" const application = Application.start() const context = require.context("controllers", true, /.js$/) application.load(definitionsFromContext(context))
Fix JS require for hotwired/turbo
Fix JS require for hotwired/turbo
JavaScript
mit
SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,SplitTime/OpenSplitTime
javascript
## Code Before: /* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. // // To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate // layout file, like app/views/layouts/application.html.erb import { preferredDistanceUnit, preferredElevationUnit, distanceToPreferred, elevationToPreferred } from 'utils/units'; global.preferredDistanceUnit = preferredDistanceUnit; global.preferredElevationUnit = preferredElevationUnit; global.distanceToPreferred = distanceToPreferred; global.elevationToPreferred = elevationToPreferred; import "@hotwired/turbo" import 'utils/growl'; import TurboLinksAdapter from 'vue-turbolinks'; Vue.use(TurboLinksAdapter); import { Application } from "stimulus" import { definitionsFromContext } from "stimulus/webpack-helpers" const application = Application.start() const context = require.context("controllers", true, /.js$/) application.load(definitionsFromContext(context)) ## Instruction: Fix JS require for hotwired/turbo ## Code After: /* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. // // To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate // layout file, like app/views/layouts/application.html.erb require("@hotwired/turbo-rails") import { preferredDistanceUnit, preferredElevationUnit, distanceToPreferred, elevationToPreferred } from 'utils/units'; global.preferredDistanceUnit = preferredDistanceUnit; global.preferredElevationUnit = preferredElevationUnit; global.distanceToPreferred = distanceToPreferred; global.elevationToPreferred = elevationToPreferred; import 'utils/growl'; import TurboLinksAdapter from 'vue-turbolinks'; Vue.use(TurboLinksAdapter); import { Application } from "stimulus" import { definitionsFromContext } from "stimulus/webpack-helpers" const application = Application.start() const context = require.context("controllers", true, /.js$/) application.load(definitionsFromContext(context))
564ae98a1488306151a0436b1a74325b9cc21ad7
sentry_auth_github/templates/sentry_auth_github/select-organization.html
sentry_auth_github/templates/sentry_auth_github/select-organization.html
{% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %} {{block.super }} auth{% endblock %} {% block footer %}{% endblock %} {% block content %} <h3>Select Organization</h3> <p>Select the GitHub organization in which you want to allow auth.</p> {% include "sentry/partial/_form.html" %} {% endblock %}
{% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %}windowed-small{% endblock %} {% block footer %}{% endblock %} {% block content %} <section class="body"> <h3>Select Organization</h3> <p>Select the GitHub organization in which you want to allow auth.</p> {% include "sentry/partial/_form.html" %} </section> {% endblock %}
Update template to match current design
Update template to match current design
HTML
apache-2.0
getsentry/sentry-auth-github,iserko/sentry-auth-github,iserko/sentry-auth-github,ewdurbin/sentry-auth-github,ewdurbin/sentry-auth-github,getsentry/sentry-auth-github
html
## Code Before: {% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %} {{block.super }} auth{% endblock %} {% block footer %}{% endblock %} {% block content %} <h3>Select Organization</h3> <p>Select the GitHub organization in which you want to allow auth.</p> {% include "sentry/partial/_form.html" %} {% endblock %} ## Instruction: Update template to match current design ## Code After: {% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %}windowed-small{% endblock %} {% block footer %}{% endblock %} {% block content %} <section class="body"> <h3>Select Organization</h3> <p>Select the GitHub organization in which you want to allow auth.</p> {% include "sentry/partial/_form.html" %} </section> {% endblock %}
4a47e7a15366ade8e326026c2cbf6f7d5b2a7f52
docs/index.md
docs/index.md
--- layout: default title: Page Sizer --- Google Docs add-on to to specify custom page sizes.
--- layout: default --- Install addon: [![Chrome Web Store](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_340x96.png)](https://chrome.google.com/webstore/detail/page-sizer/acgkneeneageffjinlglednnehpelffb?utm_source=permalink)
Add Chrome Web Store link and image.
Add Chrome Web Store link and image.
Markdown
mit
burnnat/page-sizer,burnnat/page-sizer
markdown
## Code Before: --- layout: default title: Page Sizer --- Google Docs add-on to to specify custom page sizes. ## Instruction: Add Chrome Web Store link and image. ## Code After: --- layout: default --- Install addon: [![Chrome Web Store](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_340x96.png)](https://chrome.google.com/webstore/detail/page-sizer/acgkneeneageffjinlglednnehpelffb?utm_source=permalink)
e061d2610a60a52729a00a27389ad62c28aa490e
lib/rspec/rails/example/controller_example_group.rb
lib/rspec/rails/example/controller_example_group.rb
require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions include ActionController::TestCase::RaiseActionExceptions attr_reader :request, :response, :controller def route_for(options) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.generate(options) end def params_from(method, path) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.recognize_path(path, :method => method) end # @private def controller_class described_class end included do subject { @controller } metadata[:type] = :controller before do @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new if klass = controller_class @controller ||= klass.new rescue nil end if @controller @controller.request = @request @controller.params = {} @controller.send(:initialize_current_url) end end end end end end
require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions include ActionController::TestCase::RaiseActionExceptions attr_reader :request, :response, :controller def route_for(options) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.generate(options) end def params_from(method, path) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.recognize_path(path, :method => method) end def set_raw_post_data(body) request.env['RAW_POST_DATA']=body end # @private def controller_class described_class end included do subject { @controller } metadata[:type] = :controller before do @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new if klass = controller_class @controller ||= klass.new rescue nil end if @controller @controller.request = @request @controller.params = {} @controller.send(:initialize_current_url) end end after(:each) do request.env.delete('RAW_POST_DATA') end end end end end
Add helper for setting a raw post body
Add helper for setting a raw post body
Ruby
mit
teodor-pripoae/rspec-rails23
ruby
## Code Before: require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions include ActionController::TestCase::RaiseActionExceptions attr_reader :request, :response, :controller def route_for(options) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.generate(options) end def params_from(method, path) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.recognize_path(path, :method => method) end # @private def controller_class described_class end included do subject { @controller } metadata[:type] = :controller before do @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new if klass = controller_class @controller ||= klass.new rescue nil end if @controller @controller.request = @request @controller.params = {} @controller.send(:initialize_current_url) end end end end end end ## Instruction: Add helper for setting a raw post body ## Code After: require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions include ActionController::TestCase::RaiseActionExceptions attr_reader :request, :response, :controller def route_for(options) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.generate(options) end def params_from(method, path) ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty? ActionController::Routing::Routes.recognize_path(path, :method => method) end def set_raw_post_data(body) request.env['RAW_POST_DATA']=body end # @private def controller_class described_class end included do subject { @controller } metadata[:type] = :controller before do @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new if klass = controller_class @controller ||= klass.new rescue nil end if @controller @controller.request = @request @controller.params = {} @controller.send(:initialize_current_url) end end after(:each) do request.env.delete('RAW_POST_DATA') end end end end end
fb9c56381d259de7d1765ca0e058f82d61e4e975
examples/ellipses_FreeCAD.py
examples/ellipses_FreeCAD.py
from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) + ".\.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 for ellipse in data: cx, cy, b, a, ang = ellipse ang = ang*np.pi/180 place = FC.Placement() place.Rotation = (0, 0, np.sin(ang/2), np.cos(ang/2)) place.Base = FC.Vector(100*cx, 100*cy, 0) ellipse = Draft.makeEllipse(100*a, 100*b, placement=place) shapes.append(ellipse) area = area + np.pi*a*b*100*100 print area, " ", area/500/70 part = Part.makeCompound(shapes)
from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) #+ "/.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 radii = [] for ellipse in data: cx, cy, b, a, ang = ellipse ang = ang*np.pi/180 place = FC.Placement() place.Rotation = (0, 0, np.sin(ang/2), np.cos(ang/2)) place.Base = FC.Vector(100*cx, 100*cy, 0) ellipse = Draft.makeEllipse(100*a, 100*b, placement=place) radii.append([100*a, 100*b]) shapes.append(ellipse) area = area + np.pi*a*b*100*100 print "area: %g " % (area/500/70) print "radius: %g +/- %g" % (np.mean(radii), np.std(radii)) part = Part.makeCompound(shapes)
Add radii mean and standard deviation
Add radii mean and standard deviation
Python
mit
nicoguaro/ellipse_packing
python
## Code Before: from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) + ".\.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 for ellipse in data: cx, cy, b, a, ang = ellipse ang = ang*np.pi/180 place = FC.Placement() place.Rotation = (0, 0, np.sin(ang/2), np.cos(ang/2)) place.Base = FC.Vector(100*cx, 100*cy, 0) ellipse = Draft.makeEllipse(100*a, 100*b, placement=place) shapes.append(ellipse) area = area + np.pi*a*b*100*100 print area, " ", area/500/70 part = Part.makeCompound(shapes) ## Instruction: Add radii mean and standard deviation ## Code After: from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) #+ "/.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 radii = [] for ellipse in data: cx, cy, b, a, ang = ellipse ang = ang*np.pi/180 place = FC.Placement() place.Rotation = (0, 0, np.sin(ang/2), np.cos(ang/2)) place.Base = FC.Vector(100*cx, 100*cy, 0) ellipse = Draft.makeEllipse(100*a, 100*b, placement=place) radii.append([100*a, 100*b]) shapes.append(ellipse) area = area + np.pi*a*b*100*100 print "area: %g " % (area/500/70) print "radius: %g +/- %g" % (np.mean(radii), np.std(radii)) part = Part.makeCompound(shapes)
6dfb488a6e7569e6cf71b5323fb5995864de2d5f
package.json
package.json
{ "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7.1.0", "nock": "2.10.0", "doctoc": "0.15.0", "codecov.io": "^0.1.6" }, "scripts": { "test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js" }, "repository": { "type": "git", "url": "https://github.com/zosconnect/zosconnect-node.git" }, "keywords": [ "z/OS" ], "author": "Andrew Smithson", "license": "Apache" }
{ "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7.1.0", "nock": "2.10.0", "doctoc": "0.15.0", "codecov.io": "^0.1.6", "istanbul": "^0.3.20" }, "scripts": { "test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js" }, "repository": { "type": "git", "url": "https://github.com/zosconnect/zosconnect-node.git" }, "keywords": [ "z/OS" ], "author": "Andrew Smithson", "license": "Apache" }
Add istanbul to devDependencies for codecov
Add istanbul to devDependencies for codecov
JSON
apache-2.0
UkRobJones/zosconnect-node,crshnburn/zosconnect-node,zosconnect/zosconnect-node
json
## Code Before: { "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7.1.0", "nock": "2.10.0", "doctoc": "0.15.0", "codecov.io": "^0.1.6" }, "scripts": { "test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js" }, "repository": { "type": "git", "url": "https://github.com/zosconnect/zosconnect-node.git" }, "keywords": [ "z/OS" ], "author": "Andrew Smithson", "license": "Apache" } ## Instruction: Add istanbul to devDependencies for codecov ## Code After: { "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7.1.0", "nock": "2.10.0", "doctoc": "0.15.0", "codecov.io": "^0.1.6", "istanbul": "^0.3.20" }, "scripts": { "test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js" }, "repository": { "type": "git", "url": "https://github.com/zosconnect/zosconnect-node.git" }, "keywords": [ "z/OS" ], "author": "Andrew Smithson", "license": "Apache" }
87dd7631d2852b0fd399bb25c30d1290cca046c9
lib/json/jose.rb
lib/json/jose.rb
require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :header def header @header ||= {} end def content_type @content_type ||= 'application/jose' end end def with_jwk_support(key) case key when JSON::JWK key.to_key when JSON::JWK::Set key.detect do |jwk| jwk[:kid] && jwk[:kid] == kid end.try(:to_key) or raise JWK::Set::KidNotFound else key end end module ClassMethods def register_header_keys(*keys) keys.each do |header_key| define_method header_key do self.header[header_key] end define_method "#{header_key}=" do |value| self.header[header_key] = value end end end def decode(input, key_or_secret = nil, algorithms = nil, encryption_methods = nil) if input.is_a? Hash decode_json_serialized input, key_or_secret, algorithms, encryption_methods else decode_compact_serialized input, key_or_secret, algorithms, encryption_methods end rescue JSON::ParserError raise JWT::InvalidFormat.new("Invalid JSON Format") end end end end
require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :header def header @header ||= {} end def content_type @content_type ||= 'application/jose' end end def with_jwk_support(key) case key when JSON::JWK key.to_key when JSON::JWK::Set key.detect do |jwk| jwk[:kid] && jwk[:kid] == kid end.try(:to_key) or raise JWK::Set::KidNotFound else key end end module ClassMethods def register_header_keys(*keys) keys.each do |header_key| define_method header_key do self.header[header_key] end define_method "#{header_key}=" do |value| self.header[header_key] = value end end end def decode(input, key_or_secret = nil, algorithms = nil, encryption_methods = nil) if input.is_a? Hash decode_json_serialized input, key_or_secret, algorithms, encryption_methods else decode_compact_serialized input, key_or_secret, algorithms, encryption_methods end rescue JSON::ParserError, ArgumentError raise JWT::InvalidFormat.new("Invalid JSON Format") end end end end
Fix 'JSON::JWT.decode when JSON parse failed should raise JSON::JWT::InvalidFormat' spec
Fix 'JSON::JWT.decode when JSON parse failed should raise JSON::JWT::InvalidFormat' spec
Ruby
mit
nov/json-jwt
ruby
## Code Before: require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :header def header @header ||= {} end def content_type @content_type ||= 'application/jose' end end def with_jwk_support(key) case key when JSON::JWK key.to_key when JSON::JWK::Set key.detect do |jwk| jwk[:kid] && jwk[:kid] == kid end.try(:to_key) or raise JWK::Set::KidNotFound else key end end module ClassMethods def register_header_keys(*keys) keys.each do |header_key| define_method header_key do self.header[header_key] end define_method "#{header_key}=" do |value| self.header[header_key] = value end end end def decode(input, key_or_secret = nil, algorithms = nil, encryption_methods = nil) if input.is_a? Hash decode_json_serialized input, key_or_secret, algorithms, encryption_methods else decode_compact_serialized input, key_or_secret, algorithms, encryption_methods end rescue JSON::ParserError raise JWT::InvalidFormat.new("Invalid JSON Format") end end end end ## Instruction: Fix 'JSON::JWT.decode when JSON parse failed should raise JSON::JWT::InvalidFormat' spec ## Code After: require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :header def header @header ||= {} end def content_type @content_type ||= 'application/jose' end end def with_jwk_support(key) case key when JSON::JWK key.to_key when JSON::JWK::Set key.detect do |jwk| jwk[:kid] && jwk[:kid] == kid end.try(:to_key) or raise JWK::Set::KidNotFound else key end end module ClassMethods def register_header_keys(*keys) keys.each do |header_key| define_method header_key do self.header[header_key] end define_method "#{header_key}=" do |value| self.header[header_key] = value end end end def decode(input, key_or_secret = nil, algorithms = nil, encryption_methods = nil) if input.is_a? Hash decode_json_serialized input, key_or_secret, algorithms, encryption_methods else decode_compact_serialized input, key_or_secret, algorithms, encryption_methods end rescue JSON::ParserError, ArgumentError raise JWT::InvalidFormat.new("Invalid JSON Format") end end end end