Datasets:

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
6c41c07f14c6042d054300af946f02f6ff90a87c
trex/static/js/services.js
trex/static/js/services.js
// -*- coding: utf-8 -*- // // (c) 2014 Bjoern Ricks <[email protected]> // // See LICENSE comming with the source of 'trex' for details. // 'use strict'; var trexServices = angular.module('trex.services', ['ngResource']); trexServices.factory('Conf', function($location) { function getRootUrl() { var rootUrl = $location.protocol() + '://' + $location.host(); if ($location.port()) rootUrl += ':' + $location.port(); return rootUrl; }; return { 'apiBase': '/api/1', 'rootUrl': getRootUrl() }; }); trexServices.factory('Project', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/projects/:projectId', {projectId: '@id'}, {entries: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/entries', params: {projectId: '@id'} }, tags: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/tags', params: {projectId: '@id'} } } ); } ]); trexServices.factory('Entry', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/entries/:entryId', {entryId: '@id'}, { }); } ]);
// -*- coding: utf-8 -*- // // (c) 2014 Bjoern Ricks <[email protected]> // // See LICENSE comming with the source of 'trex' for details. // 'use strict'; var trexServices = angular.module('trex.services', ['ngResource']); trexServices.factory('Conf', function($location) { function getRootUrl() { var rootUrl = $location.protocol() + '://' + $location.host(); if ($location.port()) rootUrl += ':' + $location.port(); return rootUrl; }; return { 'apiBase': '/api/1', 'rootUrl': getRootUrl() }; }); trexServices.factory('Project', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/projects/:projectId', {projectId: '@id'}, {entries: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/entries', params: {projectId: '@id'} }, tags: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/tags', params: {projectId: '@id'} }, users: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/users', params: {projectId: '@id'} } } ); } ]); trexServices.factory('Entry', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/entries/:entryId', {entryId: '@id'}, { }); } ]);
Add users to Project angular ressource
Add users to Project angular ressource
JavaScript
mit
bjoernricks/trex,bjoernricks/trex
javascript
## Code Before: // -*- coding: utf-8 -*- // // (c) 2014 Bjoern Ricks <[email protected]> // // See LICENSE comming with the source of 'trex' for details. // 'use strict'; var trexServices = angular.module('trex.services', ['ngResource']); trexServices.factory('Conf', function($location) { function getRootUrl() { var rootUrl = $location.protocol() + '://' + $location.host(); if ($location.port()) rootUrl += ':' + $location.port(); return rootUrl; }; return { 'apiBase': '/api/1', 'rootUrl': getRootUrl() }; }); trexServices.factory('Project', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/projects/:projectId', {projectId: '@id'}, {entries: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/entries', params: {projectId: '@id'} }, tags: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/tags', params: {projectId: '@id'} } } ); } ]); trexServices.factory('Entry', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/entries/:entryId', {entryId: '@id'}, { }); } ]); ## Instruction: Add users to Project angular ressource ## Code After: // -*- coding: utf-8 -*- // // (c) 2014 Bjoern Ricks <[email protected]> // // See LICENSE comming with the source of 'trex' for details. // 'use strict'; var trexServices = angular.module('trex.services', ['ngResource']); trexServices.factory('Conf', function($location) { function getRootUrl() { var rootUrl = $location.protocol() + '://' + $location.host(); if ($location.port()) rootUrl += ':' + $location.port(); return rootUrl; }; return { 'apiBase': '/api/1', 'rootUrl': getRootUrl() }; }); trexServices.factory('Project', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/projects/:projectId', {projectId: '@id'}, {entries: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/entries', params: {projectId: '@id'} }, tags: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/tags', params: {projectId: '@id'} }, users: {method: 'GET', isArray: true, url: Conf.apiBase + '/projects/:projectId/users', params: {projectId: '@id'} } } ); } ]); trexServices.factory('Entry', ['$resource', 'Conf', function($resource, Conf) { return $resource(Conf.apiBase + '/entries/:entryId', {entryId: '@id'}, { }); } ]);
9385f2be12a4042417f7930971af533b44c73ea0
code/parallel_make.bash
code/parallel_make.bash
MAIN_TARGET=$1 LINES=$2 > $MAIN_TARGET.temp TARGETS=$(make print-$MAIN_TARGET | sed 's/HE_AN_LIST=//g') for T in $TARGETS do echo make $T >> $MAIN_TARGET.temp done split -l $LINES $MAIN_TARGET.temp for X in x?? do cat head.batch $X tail.batch > $X.qsub qsub $X.qsub rm $X.qsub $X done rm $MAIN_TARGET.temp
MAIN_TARGET=$1 LINES=$2 > $MAIN_TARGET.temp TARGETS=$(make print-$MAIN_TARGET | sed 's/.*=//g') for T in $TARGETS do echo make $T >> $MAIN_TARGET.temp done split -l $LINES $MAIN_TARGET.temp for X in x?? do cat head.batch $X tail.batch > $X.qsub qsub $X.qsub rm $X.qsub $X done rm $MAIN_TARGET.temp
Generalize to other types of targets
Generalize to other types of targets
Shell
mit
SchlossLab/Schloss_Cluster_PeerJ_2015,zhwcoder/Schloss_Cluster_PeerJ_2015,SchlossLab/Schloss_Cluster_PeerJ_2015,SchlossLab/Schloss_Cluster_PeerJ_2015,zhwcoder/Schloss_Cluster_PeerJ_2015
shell
## Code Before: MAIN_TARGET=$1 LINES=$2 > $MAIN_TARGET.temp TARGETS=$(make print-$MAIN_TARGET | sed 's/HE_AN_LIST=//g') for T in $TARGETS do echo make $T >> $MAIN_TARGET.temp done split -l $LINES $MAIN_TARGET.temp for X in x?? do cat head.batch $X tail.batch > $X.qsub qsub $X.qsub rm $X.qsub $X done rm $MAIN_TARGET.temp ## Instruction: Generalize to other types of targets ## Code After: MAIN_TARGET=$1 LINES=$2 > $MAIN_TARGET.temp TARGETS=$(make print-$MAIN_TARGET | sed 's/.*=//g') for T in $TARGETS do echo make $T >> $MAIN_TARGET.temp done split -l $LINES $MAIN_TARGET.temp for X in x?? do cat head.batch $X tail.batch > $X.qsub qsub $X.qsub rm $X.qsub $X done rm $MAIN_TARGET.temp
3edab176373cd2d07e722b89a4e4ca30e26fe7ac
Setup/InstallSchema.php
Setup/InstallSchema.php
<?php /** * Raguvis CmsNavigation */ namespace Raguvis\CmsNavigation\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class InstallSchema implements InstallSchemaInterface { /** * Add Include in navigation flag */ public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $setup->getConnection()->addColumn( $setup->getTable('cms_page'), 'show_in_navigation', [ 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_BOOLEAN, 'nullable' => false, 'comment' => 'Flag whether or not CMS page should be included in top navigation' ] ); $installer->endSetup(); } }
<?php /** * Raguvis CmsNavigation */ namespace Raguvis\CmsNavigation\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class InstallSchema implements InstallSchemaInterface { /** * Add Include in navigation flag */ public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $setup->getConnection()->addColumn( $setup->getTable('cms_page'), 'show_in_navigation', [ 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_BOOLEAN, 'nullable' => false, 'comment' => 'Flag whether or not CMS page should be included in top navigation', 'default' => 0 ] ); $installer->endSetup(); } }
Fix cms_page field to have default value
Fix cms_page field to have default value Otherwise when cms page is added via code it will fail with error 'Integrity constraint violation: 1048 Column 'show_in_navigation' cannot be null'
PHP
mit
valdemaras-zilys/magento2-CmsNavigation
php
## Code Before: <?php /** * Raguvis CmsNavigation */ namespace Raguvis\CmsNavigation\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class InstallSchema implements InstallSchemaInterface { /** * Add Include in navigation flag */ public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $setup->getConnection()->addColumn( $setup->getTable('cms_page'), 'show_in_navigation', [ 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_BOOLEAN, 'nullable' => false, 'comment' => 'Flag whether or not CMS page should be included in top navigation' ] ); $installer->endSetup(); } } ## Instruction: Fix cms_page field to have default value Otherwise when cms page is added via code it will fail with error 'Integrity constraint violation: 1048 Column 'show_in_navigation' cannot be null' ## Code After: <?php /** * Raguvis CmsNavigation */ namespace Raguvis\CmsNavigation\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class InstallSchema implements InstallSchemaInterface { /** * Add Include in navigation flag */ public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $setup->getConnection()->addColumn( $setup->getTable('cms_page'), 'show_in_navigation', [ 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_BOOLEAN, 'nullable' => false, 'comment' => 'Flag whether or not CMS page should be included in top navigation', 'default' => 0 ] ); $installer->endSetup(); } }
6cf484c9a3ce5aa141363ae67c58fa94d055a105
app/assets/javascripts/app/views/bookmarklet_view.js
app/assets/javascripts/app/views/bookmarklet_view.js
app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', this._postSuccess, this); app.publisher.on('publisher:error', this._postError, this); this.param_contents = opts; }, render: function() { app.publisher.open(); app.publisher.setText(this._publisherContent()); return this; }, _publisherContent: function() { var p = this.param_contents; if( p.content ) return p.content; var contents = p.title + this.separator + p.url; if( p.notes ) contents += this.separator + p.notes; return contents; }, _postSubmit: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_submit')); }, _postSuccess: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_success')); app.publisher.close(); _.delay(window.close, 2000); }, _postError: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_error')); } });
app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', this._postSuccess, this); app.publisher.on('publisher:error', this._postError, this); this.param_contents = opts; }, render: function() { app.publisher.open(); app.publisher.setText(this._publisherContent()); return this; }, _publisherContent: function() { var p = this.param_contents; if( p.content ) return p.content; var contents = p.title + this.separator + p.url; if( p.notes ) contents += this.separator + p.notes; return contents; }, _postSubmit: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_submit')); }, _postSuccess: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_success')); app.publisher.close(); this.$("#publisher").addClass("hidden"); _.delay(window.close, 2000); }, _postError: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_error')); } });
Make sure publisher is totally hidden in bookmarklet after post success
Make sure publisher is totally hidden in bookmarklet after post success
JavaScript
agpl-3.0
geraspora/diaspora,jhass/diaspora,Flaburgan/diaspora,diaspora/diaspora,Amadren/diaspora,diaspora/diaspora,geraspora/diaspora,despora/diaspora,Amadren/diaspora,Amadren/diaspora,Muhannes/diaspora,SuperTux88/diaspora,jhass/diaspora,KentShikama/diaspora,spixi/diaspora,jhass/diaspora,SuperTux88/diaspora,SuperTux88/diaspora,SuperTux88/diaspora,Muhannes/diaspora,Muhannes/diaspora,KentShikama/diaspora,geraspora/diaspora,despora/diaspora,spixi/diaspora,geraspora/diaspora,Muhannes/diaspora,Amadren/diaspora,despora/diaspora,diaspora/diaspora,diaspora/diaspora,Flaburgan/diaspora,KentShikama/diaspora,KentShikama/diaspora,despora/diaspora,spixi/diaspora,jhass/diaspora,spixi/diaspora,Flaburgan/diaspora,Flaburgan/diaspora
javascript
## Code Before: app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', this._postSuccess, this); app.publisher.on('publisher:error', this._postError, this); this.param_contents = opts; }, render: function() { app.publisher.open(); app.publisher.setText(this._publisherContent()); return this; }, _publisherContent: function() { var p = this.param_contents; if( p.content ) return p.content; var contents = p.title + this.separator + p.url; if( p.notes ) contents += this.separator + p.notes; return contents; }, _postSubmit: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_submit')); }, _postSuccess: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_success')); app.publisher.close(); _.delay(window.close, 2000); }, _postError: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_error')); } }); ## Instruction: Make sure publisher is totally hidden in bookmarklet after post success ## Code After: app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', this._postSuccess, this); app.publisher.on('publisher:error', this._postError, this); this.param_contents = opts; }, render: function() { app.publisher.open(); app.publisher.setText(this._publisherContent()); return this; }, _publisherContent: function() { var p = this.param_contents; if( p.content ) return p.content; var contents = p.title + this.separator + p.url; if( p.notes ) contents += this.separator + p.notes; return contents; }, _postSubmit: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_submit')); }, _postSuccess: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_success')); app.publisher.close(); this.$("#publisher").addClass("hidden"); _.delay(window.close, 2000); }, _postError: function(evt) { this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_error')); } });
3599eb16dbe856a31d1ce7a58cdd3b7b26c502f3
lib/relax/helpers.rb
lib/relax/helpers.rb
module Relax module Helpers def relax_tag if defined?(@relax) && @relax "<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe end end def relax_snippet if defined?(@relax) && @relax "Relax.replace(#{@relax});".html_safe end end def use_relax_html @_use_relax_html = true end def relax_silient? !!request.headers["X-SILENT"] end def relax_filter request.params[:_relax_filter] || (session && session[:relax_filter]) end end end
module Relax module Helpers def relax_tag if defined?(@relax) && @relax "<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe end end def relax_snippet if defined?(@relax) && @relax snippet = @relax.gsub(/\;$/, '') "Relax.replace(#{snippet});".html_safe end end def use_relax_html @_use_relax_html = true end def relax_silient? !!request.headers["X-SILENT"] end def relax_filter request.params[:_relax_filter] || (session && session[:relax_filter]) end end end
Fix ie11 can't have semicolons inside parenthesis
Fix ie11 can't have semicolons inside parenthesis
Ruby
mit
jho406/Breezy,jho406/Relax,jho406/Relax,jho406/Breezy,jho406/Relax,jho406/Breezy
ruby
## Code Before: module Relax module Helpers def relax_tag if defined?(@relax) && @relax "<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe end end def relax_snippet if defined?(@relax) && @relax "Relax.replace(#{@relax});".html_safe end end def use_relax_html @_use_relax_html = true end def relax_silient? !!request.headers["X-SILENT"] end def relax_filter request.params[:_relax_filter] || (session && session[:relax_filter]) end end end ## Instruction: Fix ie11 can't have semicolons inside parenthesis ## Code After: module Relax module Helpers def relax_tag if defined?(@relax) && @relax "<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe end end def relax_snippet if defined?(@relax) && @relax snippet = @relax.gsub(/\;$/, '') "Relax.replace(#{snippet});".html_safe end end def use_relax_html @_use_relax_html = true end def relax_silient? !!request.headers["X-SILENT"] end def relax_filter request.params[:_relax_filter] || (session && session[:relax_filter]) end end end
28a9e730b076ca598162a7699380ce3fb2b47095
.travis.yml
.travis.yml
language: python python: - "3.6" cache: pip: true directories: - $HOME/.gimme - $HOME/.imageio before_install: - gimme 1.6 - export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64" - export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR" - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/discordgo - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/dgvoice script: - cd Discord - python Harmonbot.py - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go run Harmonbot_Listener.go - python ../Telegram/Telegram_Harmonbot.py
language: python # python: # - "3.7" # Workaround for Python 3.7 # https://github.com/travis-ci/travis-ci/issues/9815 matrix: include: - python: 3.7 dist: xenial sudo: true cache: pip: true directories: - $HOME/.gimme - $HOME/.imageio before_install: - gimme 1.6 - export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64" - export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR" - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/discordgo - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/dgvoice script: - cd Discord - python Harmonbot.py - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go run Harmonbot_Listener.go - python ../Telegram/Telegram_Harmonbot.py
Update Travis CI Python version to 3.7 using workaround
Update Travis CI Python version to 3.7 using workaround https://github.com/travis-ci/travis-ci/issues/9815
YAML
mit
Harmon758/Harmonbot,Harmon758/Harmonbot
yaml
## Code Before: language: python python: - "3.6" cache: pip: true directories: - $HOME/.gimme - $HOME/.imageio before_install: - gimme 1.6 - export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64" - export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR" - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/discordgo - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/dgvoice script: - cd Discord - python Harmonbot.py - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go run Harmonbot_Listener.go - python ../Telegram/Telegram_Harmonbot.py ## Instruction: Update Travis CI Python version to 3.7 using workaround https://github.com/travis-ci/travis-ci/issues/9815 ## Code After: language: python # python: # - "3.7" # Workaround for Python 3.7 # https://github.com/travis-ci/travis-ci/issues/9815 matrix: include: - python: 3.7 dist: xenial sudo: true cache: pip: true directories: - $HOME/.gimme - $HOME/.imageio before_install: - gimme 1.6 - export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64" - export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR" - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/discordgo - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/dgvoice script: - cd Discord - python Harmonbot.py - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go run Harmonbot_Listener.go - python ../Telegram/Telegram_Harmonbot.py
b29f8ce14633361681956201dfeef7007a46230f
bin/blueoak-server.js
bin/blueoak-server.js
/* * Copyright (c) 2015-2016 PointSource, LLC. * MIT Licensed */ var server = require('../'); server.init({ appDir: process.cwd() }, function(err) { if (err) { console.warn('Startup failed', err); } else { console.log('started'); } });
/* * Copyright (c) 2015-2016 PointSource, LLC. * MIT Licensed */ var server = require('../'); server.init({ appDir: process.cwd() }, function(err) { if (err) { console.warn('Startup failed', err); } else { var logger = this.services.get('logger'); logger.info('Server started'); } });
Make server launcher use logger for server startup message
Make server launcher use logger for server startup message
JavaScript
mit
BlueOakJS/blueoak-server
javascript
## Code Before: /* * Copyright (c) 2015-2016 PointSource, LLC. * MIT Licensed */ var server = require('../'); server.init({ appDir: process.cwd() }, function(err) { if (err) { console.warn('Startup failed', err); } else { console.log('started'); } }); ## Instruction: Make server launcher use logger for server startup message ## Code After: /* * Copyright (c) 2015-2016 PointSource, LLC. * MIT Licensed */ var server = require('../'); server.init({ appDir: process.cwd() }, function(err) { if (err) { console.warn('Startup failed', err); } else { var logger = this.services.get('logger'); logger.info('Server started'); } });
1012db43c5db570d7d896bfc9e13859c9428250c
app/components/legend-detail/template.hbs
app/components/legend-detail/template.hbs
<iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}} <ul> {{#each legend.reviews as |review|}} {{review-tile review=review}} <br> on {{moment-format review.createdAt 'LLL'}} {{/each}} </ul>
<iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}} <ul> {{#each legend.reviews as |review|}} {{review-tile review=review}} <small> on {{moment-format review.createdAt 'LLL'}} </small> {{/each}} </ul>
Add Tag for Timestamp Put Timestamp in Small Tag to match author of the review
Add Tag for Timestamp Put Timestamp in Small Tag to match author of the review
Handlebars
mit
mwerumuchai/traffic-tracker,mwerumuchai/traffic-tracker
handlebars
## Code Before: <iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}} <ul> {{#each legend.reviews as |review|}} {{review-tile review=review}} <br> on {{moment-format review.createdAt 'LLL'}} {{/each}} </ul> ## Instruction: Add Tag for Timestamp Put Timestamp in Small Tag to match author of the review ## Code After: <iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}} <ul> {{#each legend.reviews as |review|}} {{review-tile review=review}} <small> on {{moment-format review.createdAt 'LLL'}} </small> {{/each}} </ul>
9bd1c4c18d76b8e785794d7ae7845f211b5cc5c7
Slim/ResolveCallable.php
Slim/ResolveCallable.php
<?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim; use Interop\Container\ContainerInterface; /** * ResolveCallable * * This is an internal class that enables resolution of 'class:method' strings * into a closure. This class is an implementation detail and is used only inside * of the Slim application. */ trait ResolveCallable { /** * Resolve a string of the format 'class:method' into a closure that the * router can dispatch. * * @param string $callable * * @return \Closure */ protected function resolveCallable($callable) { if (is_string($callable) && strpos($callable, ':')) { if ($this instanceof ContainerInterface) { $container = $this; } elseif ($this->container instanceof ContainerInterface) { $container = $this->container; } else { throw new \RuntimeException('Cannot resolve callable string'); } return new CallableResolver($callable, $container); } return $callable; } }
<?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim; use Interop\Container\ContainerInterface; /** * ResolveCallable * * This is an internal class that enables resolution of 'class:method' strings * into a closure. This class is an implementation detail and is used only inside * of the Slim application. */ trait ResolveCallable { /** * Resolve a string of the format 'class:method' into a closure that the * router can dispatch. * * @param string $callable * * @return \Closure */ protected function resolveCallable($callable) { if (is_string($callable) && strpos($callable, ':')) { if ($this->container instanceof ContainerInterface) { $container = $this->container; } else { throw new \RuntimeException('Cannot resolve callable string'); } return new CallableResolver($callable, $container); } return $callable; } }
Tidy up resolveCallable() as $this is never an instance of ContainerInterface
Tidy up resolveCallable() as $this is never an instance of ContainerInterface
PHP
mit
juliangut/Slim,iinux/Slim,akrabat/Slim,AndrewCarterUK/Slim,iinux/Slim,RealSelf/Slim,JoeBengalen/Slim,mnapoli/Slim,feryardiant/slim,Sam-Burns/Slim,slimphp/Slim,dopesong/Slim,samsonasik/Slim,jaapverloop/Slim,foxyantho/Slim,designermonkey/Slim,iinux/Slim,opengeek/Slim,somjit2514/basic
php
## Code Before: <?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim; use Interop\Container\ContainerInterface; /** * ResolveCallable * * This is an internal class that enables resolution of 'class:method' strings * into a closure. This class is an implementation detail and is used only inside * of the Slim application. */ trait ResolveCallable { /** * Resolve a string of the format 'class:method' into a closure that the * router can dispatch. * * @param string $callable * * @return \Closure */ protected function resolveCallable($callable) { if (is_string($callable) && strpos($callable, ':')) { if ($this instanceof ContainerInterface) { $container = $this; } elseif ($this->container instanceof ContainerInterface) { $container = $this->container; } else { throw new \RuntimeException('Cannot resolve callable string'); } return new CallableResolver($callable, $container); } return $callable; } } ## Instruction: Tidy up resolveCallable() as $this is never an instance of ContainerInterface ## Code After: <?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim; use Interop\Container\ContainerInterface; /** * ResolveCallable * * This is an internal class that enables resolution of 'class:method' strings * into a closure. This class is an implementation detail and is used only inside * of the Slim application. */ trait ResolveCallable { /** * Resolve a string of the format 'class:method' into a closure that the * router can dispatch. * * @param string $callable * * @return \Closure */ protected function resolveCallable($callable) { if (is_string($callable) && strpos($callable, ':')) { if ($this->container instanceof ContainerInterface) { $container = $this->container; } else { throw new \RuntimeException('Cannot resolve callable string'); } return new CallableResolver($callable, $container); } return $callable; } }
7cb98b8af5ddae7b967e19c906b282881b65b8b9
stylesheets/heat_tamperenoise.css
stylesheets/heat_tamperenoise.css
html, body { height: 100%; padding: 0; margin: 0; } #div1, #div2, #div3, #div4 { width: 50%; height: 50%; float: left; } #div1 { background: #DDD; } #div2 { background: #AAA; } #div3 { background: #777; } #div4 { background: #444; } .feature_info { padding: 6px 8px; font: 24px/28px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 2px; }
html, body { height: 100%; padding: 0; margin: 0; } #div1, #div2, #div3, #div4 { float: left; } #div1 { background: #DDD; width: 49.5%; height: 49.5%; } #div2 { background: #AAA; width: 49.5%; height: 49.5%; margin-left: 1%; } #div3 { background: #777; width: 49.5%; height: 49.5%; margin-top: 1%; } #div4 { background: #444; width: 49.5%; height: 49.5%; margin-left: 1%; margin-top: 1%; } .feature_info { padding: 6px 8px; font: 24px/28px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 2px; }
Add small margin between maps
Add small margin between maps
CSS
mit
ernoma/ernoma.github.io,ernoma/ernoma.github.io,ernoma/ernoma.github.io,ernoma/ernoma.github.io
css
## Code Before: html, body { height: 100%; padding: 0; margin: 0; } #div1, #div2, #div3, #div4 { width: 50%; height: 50%; float: left; } #div1 { background: #DDD; } #div2 { background: #AAA; } #div3 { background: #777; } #div4 { background: #444; } .feature_info { padding: 6px 8px; font: 24px/28px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 2px; } ## Instruction: Add small margin between maps ## Code After: html, body { height: 100%; padding: 0; margin: 0; } #div1, #div2, #div3, #div4 { float: left; } #div1 { background: #DDD; width: 49.5%; height: 49.5%; } #div2 { background: #AAA; width: 49.5%; height: 49.5%; margin-left: 1%; } #div3 { background: #777; width: 49.5%; height: 49.5%; margin-top: 1%; } #div4 { background: #444; width: 49.5%; height: 49.5%; margin-left: 1%; margin-top: 1%; } .feature_info { padding: 6px 8px; font: 24px/28px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 2px; }
f767b7051afee3fe494610d22b31e92d35493218
examples/tas-server.go
examples/tas-server.go
package main import ( "log" "runtime" ) import ( "github.com/chango/tas/tas" ) func main() { runtime.GOMAXPROCS(10) tasConfig := tas.NewDefaultTASConfig() svr, err := tas.NewTASServer(tasConfig) if err != nil { log.Println("Failed to start TAS: %s", err) return } svr.Run() }
package main import ( "log" ) import ( "github.com/chango/tas/tas" ) func main() { tasConfig := tas.NewDefaultTASConfig() svr, err := tas.NewTASServer(tasConfig) if err != nil { log.Println("Failed to start TAS:", err) return } svr.Run() }
Remove runtime GOMAXPROCS from example and fix error print if TAS server cannot be created
Remove runtime GOMAXPROCS from example and fix error print if TAS server cannot be created
Go
mit
oldmantaiter/tas,chango/tas,oldmantaiter/tas,chango/tas
go
## Code Before: package main import ( "log" "runtime" ) import ( "github.com/chango/tas/tas" ) func main() { runtime.GOMAXPROCS(10) tasConfig := tas.NewDefaultTASConfig() svr, err := tas.NewTASServer(tasConfig) if err != nil { log.Println("Failed to start TAS: %s", err) return } svr.Run() } ## Instruction: Remove runtime GOMAXPROCS from example and fix error print if TAS server cannot be created ## Code After: package main import ( "log" ) import ( "github.com/chango/tas/tas" ) func main() { tasConfig := tas.NewDefaultTASConfig() svr, err := tas.NewTASServer(tasConfig) if err != nil { log.Println("Failed to start TAS:", err) return } svr.Run() }
28d95e261ba5bdf94f480fe52b74b233005225e9
.bazelci/build_bazel_binaries.yml
.bazelci/build_bazel_binaries.yml
--- platforms: centos7: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1604: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1804: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" macos: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" windows: build_flags: - "--copt=-w" - "--host_copt=-w" - "-c" - "opt" build_targets: - "//src:bazel.exe" - "//src:bazel_nojdk.exe"
--- platforms: centos7: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1604: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1804: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu2004: build_targets: - "//src:bazel" build_flags: - "-c" - "opt" macos: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" windows: build_flags: - "--copt=-w" - "--host_copt=-w" - "-c" - "opt" build_targets: - "//src:bazel.exe" - "//src:bazel_nojdk.exe"
Add Ubuntu 20.04 platform, but do not test it in CI yet
Add Ubuntu 20.04 platform, but do not test it in CI yet This seems like it might be a prerequisite for adding a ubuntu 20.04 platform to bazelci, based on this CI failure: https://github.com/bazelbuild/continuous-integration/pull/988 Closes #11630. PiperOrigin-RevId: 333290900
YAML
apache-2.0
bazelbuild/bazel,cushon/bazel,cushon/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,katre/bazel,perezd/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,davidzchen/bazel,perezd/bazel,twitter-forks/bazel,katre/bazel,perezd/bazel,safarmer/bazel,safarmer/bazel,perezd/bazel,perezd/bazel,bazelbuild/bazel,bazelbuild/bazel,davidzchen/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,safarmer/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel,davidzchen/bazel,safarmer/bazel,katre/bazel,bazelbuild/bazel,cushon/bazel,katre/bazel,davidzchen/bazel,cushon/bazel,meteorcloudy/bazel,safarmer/bazel,davidzchen/bazel,meteorcloudy/bazel,perezd/bazel,davidzchen/bazel,davidzchen/bazel,meteorcloudy/bazel,bazelbuild/bazel,twitter-forks/bazel,twitter-forks/bazel,meteorcloudy/bazel,meteorcloudy/bazel,cushon/bazel,katre/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,cushon/bazel,safarmer/bazel,katre/bazel,perezd/bazel,twitter-forks/bazel
yaml
## Code Before: --- platforms: centos7: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1604: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1804: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" macos: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" windows: build_flags: - "--copt=-w" - "--host_copt=-w" - "-c" - "opt" build_targets: - "//src:bazel.exe" - "//src:bazel_nojdk.exe" ## Instruction: Add Ubuntu 20.04 platform, but do not test it in CI yet This seems like it might be a prerequisite for adding a ubuntu 20.04 platform to bazelci, based on this CI failure: https://github.com/bazelbuild/continuous-integration/pull/988 Closes #11630. PiperOrigin-RevId: 333290900 ## Code After: --- platforms: centos7: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1604: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu1804: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" ubuntu2004: build_targets: - "//src:bazel" build_flags: - "-c" - "opt" macos: build_targets: - "//src:bazel" - "//src:bazel_nojdk" build_flags: - "-c" - "opt" windows: build_flags: - "--copt=-w" - "--host_copt=-w" - "-c" - "opt" build_targets: - "//src:bazel.exe" - "//src:bazel_nojdk.exe"
9004da9bd159e66e4e6a58e5379502e24fffd80e
app/views/settings/_services.haml
app/views/settings/_services.haml
.card .card-body = t(".services", count: services.count) - APP_CONFIG["sharing"].each do |service, service_options| - if service_options["enabled"] && services.none? { |x| x.provider == service.to_s } %p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, class: "btn btn-info" - if services.count.positive? %ul.list-group - services.each do |service| %li.list-group-item %i{ class: "fa fa-#{service.provider}" } %strong= service.provider.capitalize (#{service.nickname}) = button_to t(".disconnect"), service_path(service), data: { confirm: t(".confirm", service: service.provider.capitalize) }, method: :delete, class: "btn btn-link text-danger", form: { class: "d-inline" } .col-md-6.mt-2 = bootstrap_form_for(service, as: "service", url: update_service_path(service)) do |f| = f.text_field :post_tag, label_as_placeholder: true, append: f.submit(t("voc.update"), class: "btn btn-primary"), maxlength: 20, pattern: "^[^@]*$"
.card .card-body = t(".services", count: services.count) - APP_CONFIG["sharing"].each do |service, service_options| - if service_options["enabled"] && services.none? { |x| x.provider == service.to_s } %p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, class: "btn btn-info", form: { data: { turbo: false } } - if services.count.positive? %ul.list-group - services.each do |service| %li.list-group-item %i{ class: "fa fa-#{service.provider}" } %strong= service.provider.capitalize (#{service.nickname}) = button_to t(".disconnect"), service_path(service), data: { confirm: t(".confirm", service: service.provider.capitalize) }, method: :delete, class: "btn btn-link text-danger", form: { class: "d-inline", data: { turbo: false } } .col-md-6.mt-2 = bootstrap_form_for(service, as: "service", url: update_service_path(service), data: { turbo: false }) do |f| = f.text_field :post_tag, label_as_placeholder: true, append: f.submit(t("voc.update"), class: "btn btn-primary"), maxlength: 20, pattern: "^[^@]*$"
Disable Turbo on Service Settings
Disable Turbo on Service Settings
Haml
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
haml
## Code Before: .card .card-body = t(".services", count: services.count) - APP_CONFIG["sharing"].each do |service, service_options| - if service_options["enabled"] && services.none? { |x| x.provider == service.to_s } %p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, class: "btn btn-info" - if services.count.positive? %ul.list-group - services.each do |service| %li.list-group-item %i{ class: "fa fa-#{service.provider}" } %strong= service.provider.capitalize (#{service.nickname}) = button_to t(".disconnect"), service_path(service), data: { confirm: t(".confirm", service: service.provider.capitalize) }, method: :delete, class: "btn btn-link text-danger", form: { class: "d-inline" } .col-md-6.mt-2 = bootstrap_form_for(service, as: "service", url: update_service_path(service)) do |f| = f.text_field :post_tag, label_as_placeholder: true, append: f.submit(t("voc.update"), class: "btn btn-primary"), maxlength: 20, pattern: "^[^@]*$" ## Instruction: Disable Turbo on Service Settings ## Code After: .card .card-body = t(".services", count: services.count) - APP_CONFIG["sharing"].each do |service, service_options| - if service_options["enabled"] && services.none? { |x| x.provider == service.to_s } %p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, class: "btn btn-info", form: { data: { turbo: false } } - if services.count.positive? %ul.list-group - services.each do |service| %li.list-group-item %i{ class: "fa fa-#{service.provider}" } %strong= service.provider.capitalize (#{service.nickname}) = button_to t(".disconnect"), service_path(service), data: { confirm: t(".confirm", service: service.provider.capitalize) }, method: :delete, class: "btn btn-link text-danger", form: { class: "d-inline", data: { turbo: false } } .col-md-6.mt-2 = bootstrap_form_for(service, as: "service", url: update_service_path(service), data: { turbo: false }) do |f| = f.text_field :post_tag, label_as_placeholder: true, append: f.submit(t("voc.update"), class: "btn btn-primary"), maxlength: 20, pattern: "^[^@]*$"
82c8cc9779abf952d3558cdc06692a5cb78340dc
survey_creation/2017/zaf/listAnswers/funding.csv
survey_creation/2017/zaf/listAnswers/funding.csv
I volunteer my time Donation button Crowdfunding (one-time) Crowdfunding (recurring) Books & merchandise Advertising & sponsorships Industry support Consulting & services Grants SaaS Membership Dual license Open core Foundations & consortiums Venture capital Trademark licensing & franchising
I volunteer my time Donation button Crowdfunding (one-time) Crowdfunding (recurring) Books & merchandise Advertising & sponsorships Industry support Consulting & services Grants SaaS Membership Dual license Open core Foundations & consortiums Venture capital Trademark licensing & franchising Not applicable
Add NA based on fund4 change in question
Add NA based on fund4 change in question
CSV
bsd-3-clause
softwaresaved/international-survey
csv
## Code Before: I volunteer my time Donation button Crowdfunding (one-time) Crowdfunding (recurring) Books & merchandise Advertising & sponsorships Industry support Consulting & services Grants SaaS Membership Dual license Open core Foundations & consortiums Venture capital Trademark licensing & franchising ## Instruction: Add NA based on fund4 change in question ## Code After: I volunteer my time Donation button Crowdfunding (one-time) Crowdfunding (recurring) Books & merchandise Advertising & sponsorships Industry support Consulting & services Grants SaaS Membership Dual license Open core Foundations & consortiums Venture capital Trademark licensing & franchising Not applicable
b84af83df8ebc9ac5ce05cf866a159ea1ee758a5
.github/workflows/build.yml
.github/workflows/build.yml
name: Node.js Builds on: [push] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - node-version: 12.x - node-version: 14.x status: "LTS" - node-version: 16.x steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: Build run: | npm install npm run build - name: Package run: npm pack - name: Test run: npm run nyc-ci - name: Login to DockerHub uses: docker/login-action@v1 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push to DockerHub id: docker_build uses: docker/build-push-action@v2 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: context: . push: true tags: rcjsuen/docker-langserver:latest - name: Coveralls uses: coverallsapp/github-action@master if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: github-token: ${{ secrets.GITHUB_TOKEN }}
name: Node.js Builds on: [push] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - node-version: 12.x - node-version: 14.x - node-version: 16.x status: "LTS" steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: Build run: | npm install npm run build - name: Package run: npm pack - name: Test run: npm run nyc-ci - name: Login to DockerHub uses: docker/login-action@v1 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push to DockerHub id: docker_build uses: docker/build-push-action@v2 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: context: . push: true tags: rcjsuen/docker-langserver:latest - name: Coveralls uses: coverallsapp/github-action@master if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: github-token: ${{ secrets.GITHUB_TOKEN }}
Change LTS to Node.js 16.x
Change LTS to Node.js 16.x Signed-off-by: Remy Suen <[email protected]>
YAML
mit
rcjsuen/dockerfile-language-server-nodejs,rcjsuen/dockerfile-language-server-nodejs
yaml
## Code Before: name: Node.js Builds on: [push] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - node-version: 12.x - node-version: 14.x status: "LTS" - node-version: 16.x steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: Build run: | npm install npm run build - name: Package run: npm pack - name: Test run: npm run nyc-ci - name: Login to DockerHub uses: docker/login-action@v1 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push to DockerHub id: docker_build uses: docker/build-push-action@v2 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: context: . push: true tags: rcjsuen/docker-langserver:latest - name: Coveralls uses: coverallsapp/github-action@master if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: github-token: ${{ secrets.GITHUB_TOKEN }} ## Instruction: Change LTS to Node.js 16.x Signed-off-by: Remy Suen <[email protected]> ## Code After: name: Node.js Builds on: [push] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - node-version: 12.x - node-version: 14.x - node-version: 16.x status: "LTS" steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: Build run: | npm install npm run build - name: Package run: npm pack - name: Test run: npm run nyc-ci - name: Login to DockerHub uses: docker/login-action@v1 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push to DockerHub id: docker_build uses: docker/build-push-action@v2 if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: context: . push: true tags: rcjsuen/docker-langserver:latest - name: Coveralls uses: coverallsapp/github-action@master if: ${{ matrix.status == 'LTS' && github.ref == 'refs/heads/master' }} with: github-token: ${{ secrets.GITHUB_TOKEN }}
d4c77fddf2db051e43e512a08f6f9438eaad8957
pillars/profile/common/system_maven_artifacts/compare_order.sh
pillars/profile/common/system_maven_artifacts/compare_order.sh
grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls > existing.order.txt grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls | sort > required.order.txt echo "Compare order of entries in the files using one of the command below:" 1>&2 echo " meld existing.order.txt required.order.txt" 1>&2 echo " diff existing.order.txt required.order.txt" 1>&2
set -e set -u # This is a helper script to generate required and existing order # of items inside `artifact_descriptors.sls` file. # Note that duplicates also cause error code in addition to unordered ones. # The search is done for strings (keys) containing GROUP_ID:ARTIFACT_ID. grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls > existing.order.txt grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls | sort -u > required.order.txt set -e diff existing.order.txt required.order.txt 1>&2 RET_VAL="$?" set +e if [ "${RET_VAL}" != "0" ] then echo "WARNING: The list of artifacts is not ordered or has duplicates." 1>&2 echo " The order is required to simplify merging of concurrent changes." 1>&2 echo "Compare order of entries in the files using one of the command below:" 1>&2 echo " meld existing.order.txt required.order.txt" 1>&2 echo " diff existing.order.txt required.order.txt" 1>&2 exit "${RET_VAL}" else echo "INFO: Files existing.order.txt required.order.txt are the same." 1>&2 fi
Add exit code if artifacts not ordered or dup-ed
Add exit code if artifacts not ordered or dup-ed
Shell
apache-2.0
uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states
shell
## Code Before: grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls > existing.order.txt grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls | sort > required.order.txt echo "Compare order of entries in the files using one of the command below:" 1>&2 echo " meld existing.order.txt required.order.txt" 1>&2 echo " diff existing.order.txt required.order.txt" 1>&2 ## Instruction: Add exit code if artifacts not ordered or dup-ed ## Code After: set -e set -u # This is a helper script to generate required and existing order # of items inside `artifact_descriptors.sls` file. # Note that duplicates also cause error code in addition to unordered ones. # The search is done for strings (keys) containing GROUP_ID:ARTIFACT_ID. grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls > existing.order.txt grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls | sort -u > required.order.txt set -e diff existing.order.txt required.order.txt 1>&2 RET_VAL="$?" set +e if [ "${RET_VAL}" != "0" ] then echo "WARNING: The list of artifacts is not ordered or has duplicates." 1>&2 echo " The order is required to simplify merging of concurrent changes." 1>&2 echo "Compare order of entries in the files using one of the command below:" 1>&2 echo " meld existing.order.txt required.order.txt" 1>&2 echo " diff existing.order.txt required.order.txt" 1>&2 exit "${RET_VAL}" else echo "INFO: Files existing.order.txt required.order.txt are the same." 1>&2 fi
73c26ecb3c13040bf7df2cf65a0fae3895ffe851
README.md
README.md
Demo project: AngularJS component to manage tasks between multiple users [![Build Status](https://api.travis-ci.org/stophi-dev/NgTeamTask.svg?branch=master)](https://travis-ci.org/stophi-dev/NgTeamTask) ## How to run this project You need git and NodeJS installed on your computer. ###1. Clone the git repository ```bash git clone https://github.com/stophi-dev/NgTeamTask.git ``` ###2. Install the project dependencies ```bash cd NgTeamTask npm install ``` ###3. Start project (local web server and browser) ```bash npm start ``` This project works out of the box with the NetBeans IDE 8.1.
Demo project: AngularJS component to manage tasks between multiple users<br /> [![Build Status](https://api.travis-ci.org/stophi-dev/NgTeamTask.svg?branch=master)](https://travis-ci.org/stophi-dev/NgTeamTask) (Currently only checks if compilation of SASS file is sucessful) ## How to run this project You need git and NodeJS installed on your computer. ###1. Clone the git repository ```bash git clone https://github.com/stophi-dev/NgTeamTask.git ``` ###2. Install the project dependencies ```bash cd NgTeamTask npm install ``` ###3. Start project (local web server and browser) ```bash npm start ``` This project works out of the box with the NetBeans IDE 8.1.
Add description for travis build
Add description for travis build
Markdown
mit
stophi-dev/NgTeamTask,stophi-dev/NgTeamTask
markdown
## Code Before: Demo project: AngularJS component to manage tasks between multiple users [![Build Status](https://api.travis-ci.org/stophi-dev/NgTeamTask.svg?branch=master)](https://travis-ci.org/stophi-dev/NgTeamTask) ## How to run this project You need git and NodeJS installed on your computer. ###1. Clone the git repository ```bash git clone https://github.com/stophi-dev/NgTeamTask.git ``` ###2. Install the project dependencies ```bash cd NgTeamTask npm install ``` ###3. Start project (local web server and browser) ```bash npm start ``` This project works out of the box with the NetBeans IDE 8.1. ## Instruction: Add description for travis build ## Code After: Demo project: AngularJS component to manage tasks between multiple users<br /> [![Build Status](https://api.travis-ci.org/stophi-dev/NgTeamTask.svg?branch=master)](https://travis-ci.org/stophi-dev/NgTeamTask) (Currently only checks if compilation of SASS file is sucessful) ## How to run this project You need git and NodeJS installed on your computer. ###1. Clone the git repository ```bash git clone https://github.com/stophi-dev/NgTeamTask.git ``` ###2. Install the project dependencies ```bash cd NgTeamTask npm install ``` ###3. Start project (local web server and browser) ```bash npm start ``` This project works out of the box with the NetBeans IDE 8.1.
321f5baef6abbe4a43acc55e3ae8c81367e0cd9a
README.md
README.md
SDL2 Pong ========== Simple implementation of pong using SDL2.0 This is a single player game with the second paddle being controlled by an *extremely* simple AI. ![Pong on Kubuntu](img/sdl_pong2.png) Controls -------- * Up - move up * Down - move down * Escape - Exit Requirements ------------ You require the SDL2.0 development libraries along with the following extensions: * SDL_ttf * SDL_image Building -------- Simply Navigate to the src directory and type `make` Executing --------- Run `pong.exe` Notes ----- This was tested on a Linux machine (64bit) but should also work and compile on Windows and Mac OSX given the right development tools.
SDL2 Pong ========== Simple implementation of pong using SDL2.0 This is a single player game with the second paddle being controlled by an *extremely* simple AI. ![Pong on Kubuntu](img/sdl_pong2.png) Controls -------- * Up - move up * Down - move down * Escape - Exit Controller Support ------------------ The game has very basic controller support. You can use the up and down buttons to move your paddle. I also introduced some basic haptic feedback when the ball hits a paddle or one of the players score a point. Requirements ------------ You require the SDL2.0 development libraries along with the following extensions: * SDL_ttf * SDL_image Building -------- Simply Navigate to the src directory and type `make` Executing --------- Run `pong.exe` Notes ----- This was tested on a Linux machine (64bit) but should also work and compile on Windows and Mac OSX given the right development tools.
Add note about controller support
Add note about controller support Haptic feedback also included
Markdown
mit
MichaelAquilina/SDL2-Pong
markdown
## Code Before: SDL2 Pong ========== Simple implementation of pong using SDL2.0 This is a single player game with the second paddle being controlled by an *extremely* simple AI. ![Pong on Kubuntu](img/sdl_pong2.png) Controls -------- * Up - move up * Down - move down * Escape - Exit Requirements ------------ You require the SDL2.0 development libraries along with the following extensions: * SDL_ttf * SDL_image Building -------- Simply Navigate to the src directory and type `make` Executing --------- Run `pong.exe` Notes ----- This was tested on a Linux machine (64bit) but should also work and compile on Windows and Mac OSX given the right development tools. ## Instruction: Add note about controller support Haptic feedback also included ## Code After: SDL2 Pong ========== Simple implementation of pong using SDL2.0 This is a single player game with the second paddle being controlled by an *extremely* simple AI. ![Pong on Kubuntu](img/sdl_pong2.png) Controls -------- * Up - move up * Down - move down * Escape - Exit Controller Support ------------------ The game has very basic controller support. You can use the up and down buttons to move your paddle. I also introduced some basic haptic feedback when the ball hits a paddle or one of the players score a point. Requirements ------------ You require the SDL2.0 development libraries along with the following extensions: * SDL_ttf * SDL_image Building -------- Simply Navigate to the src directory and type `make` Executing --------- Run `pong.exe` Notes ----- This was tested on a Linux machine (64bit) but should also work and compile on Windows and Mac OSX given the right development tools.
387c77585909e73773d1c97a782667f951cda67d
.travis.yml
.travis.yml
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.10 - 2.2.5 - 2.3.1 matrix: allow_failures: - rvm: 1.9.3 - rvm: 2.0.0 before_install: # this is a fix to get rng-tools to work in travis-ci - sudo apt-get update -qq - sudo apt-get install --yes rng-tools - sudo rm -f /dev/random - sudo mknod -m 0666 /dev/random c 1 9 - echo HRNGDEVICE=/dev/urandom | sudo tee /etc/default/rng-tools - sudo /etc/init.d/rng-tools restart script: travis_wait bundle exec rake TESTOPTS="-v" after_failure: "find tmp -name compile.log -exec cat {} \\;"
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.10 - 2.2.9 - 2.3.6 - 2.4.3 - 2.5.0 matrix: allow_failures: - rvm: 1.9.3 - rvm: 2.0.0 before_install: # this is a fix to get rng-tools to work in travis-ci - sudo apt-get update -qq - sudo apt-get install --yes rng-tools - sudo rm -f /dev/random - sudo mknod -m 0666 /dev/random c 1 9 - echo HRNGDEVICE=/dev/urandom | sudo tee /etc/default/rng-tools - sudo /etc/init.d/rng-tools restart script: travis_wait bundle exec rake TESTOPTS="-v" after_failure: "find tmp -name compile.log -exec cat {} \\;"
Test against Ruby 2.4 and .5
[CI] Test against Ruby 2.4 and .5
YAML
lgpl-2.1
ueno/ruby-gpgme,ueno/ruby-gpgme,ueno/ruby-gpgme
yaml
## Code Before: language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.10 - 2.2.5 - 2.3.1 matrix: allow_failures: - rvm: 1.9.3 - rvm: 2.0.0 before_install: # this is a fix to get rng-tools to work in travis-ci - sudo apt-get update -qq - sudo apt-get install --yes rng-tools - sudo rm -f /dev/random - sudo mknod -m 0666 /dev/random c 1 9 - echo HRNGDEVICE=/dev/urandom | sudo tee /etc/default/rng-tools - sudo /etc/init.d/rng-tools restart script: travis_wait bundle exec rake TESTOPTS="-v" after_failure: "find tmp -name compile.log -exec cat {} \\;" ## Instruction: [CI] Test against Ruby 2.4 and .5 ## Code After: language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.10 - 2.2.9 - 2.3.6 - 2.4.3 - 2.5.0 matrix: allow_failures: - rvm: 1.9.3 - rvm: 2.0.0 before_install: # this is a fix to get rng-tools to work in travis-ci - sudo apt-get update -qq - sudo apt-get install --yes rng-tools - sudo rm -f /dev/random - sudo mknod -m 0666 /dev/random c 1 9 - echo HRNGDEVICE=/dev/urandom | sudo tee /etc/default/rng-tools - sudo /etc/init.d/rng-tools restart script: travis_wait bundle exec rake TESTOPTS="-v" after_failure: "find tmp -name compile.log -exec cat {} \\;"
36953e58cc2825de5315341f818b65fe22ba0b28
install/DoctrineMigrations/Version20110711161043.php
install/DoctrineMigrations/Version20110711161043.php
<?php namespace DoctrineMigrations; /* update cc_files table to include to "directory" column as well as add foreign key relation to cc_music_dirs table. */ use Doctrine\DBAL\Migrations\AbstractMigration, Doctrine\DBAL\Schema\Schema; class Version20110711161043 extends AbstractMigration { public function up(Schema $schema) { //CREATE the default value of "/srv/airtime/stor", this can be updated later in the upgrade script. $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor');"); $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('upgrade', '');"); } public function postUp(Schema $schema){ $cc_music_dirs = $schema->getTable('cc_music_dirs'); //start cc_files modifications $cc_files = $schema->getTable('cc_files'); $cc_files->addColumn('directory', 'integer', array('default'=> 2)); $cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE')); //end cc_files modifications } public function down(Schema $schema) { } }
<?php namespace DoctrineMigrations; /* update cc_files table to include to "directory" column as well as add foreign key relation to cc_music_dirs table. */ use Doctrine\DBAL\Migrations\AbstractMigration, Doctrine\DBAL\Schema\Schema; class Version20110711161043 extends AbstractMigration { public function up(Schema $schema) { //CREATE the default value of "/srv/airtime/stor", this can be updated later in the upgrade script. $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor');"); $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('upgrade', '');"); $cc_music_dirs = $schema->getTable('cc_music_dirs'); //start cc_files modifications $cc_files = $schema->getTable('cc_files'); $cc_files->addColumn('directory', 'integer', array('default'=> 2)); $cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE')); //end cc_files modifications } public function down(Schema $schema) { } }
Upgrade script for converting stor directory to new format
CC-2279: Upgrade script for converting stor directory to new format -almost there...
PHP
agpl-3.0
thnkloud9/Airtime,sourcefabric/Airtime,comiconomenclaturist/libretime,sourcefabric/airtime,thnkloud9/Airtime,LibreTime/libretime,ReganDryke/airtime,thnkloud9/Airtime,LibreTime/libretime,Ryex/airtime,radiorabe/airtime,Ryex/airtime,radiorabe/airtime,radiorabe/airtime,sourcefabric/airtime,justvanbloom/airtime,Lapotor/libretime,justvanbloom/airtime,thnkloud9/Airtime,sourcefabric/Airtime,Lapotor/libretime,sourcefabric/airtime,ReganDryke/airtime,comiconomenclaturist/libretime,Lapotor/libretime,radiorabe/airtime,sourcefabric/airtime,LibreTime/libretime,ReganDryke/airtime,Lapotor/libretime,sourcefabric/airtime,Lapotor/libretime,thnkloud9/Airtime,justvanbloom/airtime,thnkloud9/Airtime,comiconomenclaturist/libretime,Ryex/airtime,LibreTime/libretime,justvanbloom/airtime,Ryex/airtime,Ryex/airtime,sourcefabric/Airtime,sourcefabric/Airtime,comiconomenclaturist/libretime,radiorabe/airtime,radiorabe/airtime,sourcefabric/Airtime,comiconomenclaturist/libretime,justvanbloom/airtime,Lapotor/libretime,ReganDryke/airtime,sourcefabric/airtime,justvanbloom/airtime,Ryex/airtime,ReganDryke/airtime,ReganDryke/airtime,comiconomenclaturist/libretime,comiconomenclaturist/libretime,thnkloud9/Airtime,LibreTime/libretime,ReganDryke/airtime,sourcefabric/airtime,justvanbloom/airtime,sourcefabric/Airtime,Ryex/airtime,sourcefabric/Airtime,LibreTime/libretime,radiorabe/airtime
php
## Code Before: <?php namespace DoctrineMigrations; /* update cc_files table to include to "directory" column as well as add foreign key relation to cc_music_dirs table. */ use Doctrine\DBAL\Migrations\AbstractMigration, Doctrine\DBAL\Schema\Schema; class Version20110711161043 extends AbstractMigration { public function up(Schema $schema) { //CREATE the default value of "/srv/airtime/stor", this can be updated later in the upgrade script. $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor');"); $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('upgrade', '');"); } public function postUp(Schema $schema){ $cc_music_dirs = $schema->getTable('cc_music_dirs'); //start cc_files modifications $cc_files = $schema->getTable('cc_files'); $cc_files->addColumn('directory', 'integer', array('default'=> 2)); $cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE')); //end cc_files modifications } public function down(Schema $schema) { } } ## Instruction: CC-2279: Upgrade script for converting stor directory to new format -almost there... ## Code After: <?php namespace DoctrineMigrations; /* update cc_files table to include to "directory" column as well as add foreign key relation to cc_music_dirs table. */ use Doctrine\DBAL\Migrations\AbstractMigration, Doctrine\DBAL\Schema\Schema; class Version20110711161043 extends AbstractMigration { public function up(Schema $schema) { //CREATE the default value of "/srv/airtime/stor", this can be updated later in the upgrade script. $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor');"); $this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('upgrade', '');"); $cc_music_dirs = $schema->getTable('cc_music_dirs'); //start cc_files modifications $cc_files = $schema->getTable('cc_files'); $cc_files->addColumn('directory', 'integer', array('default'=> 2)); $cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE')); //end cc_files modifications } public function down(Schema $schema) { } }
d3291512db02304c0948992436817d36f86046fd
stdlib/public/SDK/simd/CMakeLists.txt
stdlib/public/SDK/simd/CMakeLists.txt
add_swift_library(swiftsimd SHARED IS_STDLIB simd.swift.gyb SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all SWIFT_MODULE_DEPENDS Darwin INSTALL_IN_COMPONENT stdlib)
add_swift_library(swiftsimd IS_SDK_OVERLAY simd.swift.gyb SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all SWIFT_MODULE_DEPENDS Darwin)
Make the 'simd' module build like the rest of the overlays.
Make the 'simd' module build like the rest of the overlays. At one point we were considering it to be a replacement rather than an overlay, but that's not where we are today. We can revisit that later. Necessary for next commit. Swift SVN r29438
Text
apache-2.0
airspeedswift/swift,djwbrown/swift,apple/swift,hughbe/swift,hughbe/swift,xedin/swift,IngmarStein/swift,calebd/swift,tinysun212/swift-windows,JaSpa/swift,tardieu/swift,glessard/swift,emilstahl/swift,kentya6/swift,aschwaighofer/swift,arvedviehweger/swift,gregomni/swift,tjw/swift,return/swift,bitjammer/swift,jmgc/swift,arvedviehweger/swift,modocache/swift,gottesmm/swift,SwiftAndroid/swift,gmilos/swift,devincoughlin/swift,austinzheng/swift,russbishop/swift,gribozavr/swift,natecook1000/swift,atrick/swift,kusl/swift,natecook1000/swift,shajrawi/swift,alblue/swift,modocache/swift,jtbandes/swift,apple/swift,manavgabhawala/swift,JaSpa/swift,jopamer/swift,tinysun212/swift-windows,hooman/swift,jtbandes/swift,return/swift,aschwaighofer/swift,harlanhaskins/swift,KrishMunot/swift,codestergit/swift,khizkhiz/swift,jtbandes/swift,natecook1000/swift,xedin/swift,benlangmuir/swift,milseman/swift,felix91gr/swift,frootloops/swift,bitjammer/swift,karwa/swift,swiftix/swift,shajrawi/swift,shajrawi/swift,jopamer/swift,milseman/swift,atrick/swift,sschiau/swift,jckarter/swift,gmilos/swift,aschwaighofer/swift,swiftix/swift.old,mightydeveloper/swift,ben-ng/swift,JaSpa/swift,xwu/swift,gottesmm/swift,gottesmm/swift,therealbnut/swift,xwu/swift,djwbrown/swift,alblue/swift,xwu/swift,OscarSwanros/swift,cbrentharris/swift,SwiftAndroid/swift,OscarSwanros/swift,kusl/swift,gribozavr/swift,zisko/swift,amraboelela/swift,austinzheng/swift,stephentyrone/swift,milseman/swift,JaSpa/swift,benlangmuir/swift,emilstahl/swift,mightydeveloper/swift,KrishMunot/swift,uasys/swift,kperryua/swift,arvedviehweger/swift,tardieu/swift,Ivacker/swift,ken0nek/swift,bitjammer/swift,airspeedswift/swift,airspeedswift/swift,zisko/swift,slavapestov/swift,xwu/swift,KrishMunot/swift,frootloops/swift,sdulal/swift,benlangmuir/swift,codestergit/swift,lorentey/swift,stephentyrone/swift,djwbrown/swift,rudkx/swift,calebd/swift,parkera/swift,MukeshKumarS/Swift,swiftix/swift,alblue/swift,bitjammer/swift,tjw/swift,KrishMunot/swift,airspeedswift/swift,frootloops/swift,kperryua/swift,CodaFi/swift,russbishop/swift,zisko/swift,sdulal/swift,cbrentharris/swift,practicalswift/swift,dduan/swift,nathawes/swift,atrick/swift,calebd/swift,therealbnut/swift,johnno1962d/swift,gregomni/swift,devincoughlin/swift,practicalswift/swift,allevato/swift,alblue/swift,dduan/swift,JGiola/swift,jckarter/swift,modocache/swift,gottesmm/swift,shahmishal/swift,karwa/swift,benlangmuir/swift,cbrentharris/swift,kusl/swift,adrfer/swift,djwbrown/swift,uasys/swift,xwu/swift,nathawes/swift,jmgc/swift,MukeshKumarS/Swift,ken0nek/swift,jmgc/swift,gmilos/swift,kentya6/swift,xwu/swift,jopamer/swift,dduan/swift,amraboelela/swift,aschwaighofer/swift,adrfer/swift,devincoughlin/swift,russbishop/swift,natecook1000/swift,MukeshKumarS/Swift,shahmishal/swift,JGiola/swift,lorentey/swift,jmgc/swift,alblue/swift,hughbe/swift,atrick/swift,manavgabhawala/swift,Jnosh/swift,swiftix/swift.old,bitjammer/swift,nathawes/swift,gmilos/swift,therealbnut/swift,russbishop/swift,milseman/swift,modocache/swift,xedin/swift,sdulal/swift,gmilos/swift,xedin/swift,return/swift,Ivacker/swift,kstaring/swift,sdulal/swift,adrfer/swift,Jnosh/swift,JGiola/swift,danielmartin/swift,codestergit/swift,johnno1962d/swift,therealbnut/swift,johnno1962d/swift,ken0nek/swift,codestergit/swift,amraboelela/swift,CodaFi/swift,glessard/swift,felix91gr/swift,calebd/swift,practicalswift/swift,gregomni/swift,emilstahl/swift,adrfer/swift,roambotics/swift,kentya6/swift,tkremenek/swift,tkremenek/swift,jckarter/swift,return/swift,roambotics/swift,shajrawi/swift,arvedviehweger/swift,sdulal/swift,glessard/swift,sdulal/swift,slavapestov/swift,danielmartin/swift,codestergit/swift,glessard/swift,zisko/swift,parkera/swift,aschwaighofer/swift,manavgabhawala/swift,deyton/swift,tjw/swift,tjw/swift,kusl/swift,nathawes/swift,MukeshKumarS/Swift,milseman/swift,return/swift,tardieu/swift,shahmishal/swift,tardieu/swift,LeoShimonaka/swift,airspeedswift/swift,austinzheng/swift,johnno1962d/swift,felix91gr/swift,IngmarStein/swift,parkera/swift,tardieu/swift,kusl/swift,stephentyrone/swift,huonw/swift,devincoughlin/swift,amraboelela/swift,danielmartin/swift,jopamer/swift,OscarSwanros/swift,MukeshKumarS/Swift,felix91gr/swift,codestergit/swift,stephentyrone/swift,practicalswift/swift,mightydeveloper/swift,jckarter/swift,sschiau/swift,kentya6/swift,LeoShimonaka/swift,dduan/swift,djwbrown/swift,slavapestov/swift,gribozavr/swift,roambotics/swift,SwiftAndroid/swift,sdulal/swift,amraboelela/swift,kstaring/swift,therealbnut/swift,slavapestov/swift,uasys/swift,slavapestov/swift,airspeedswift/swift,milseman/swift,IngmarStein/swift,shajrawi/swift,dduan/swift,allevato/swift,tinysun212/swift-windows,karwa/swift,sschiau/swift,jckarter/swift,kstaring/swift,adrfer/swift,ken0nek/swift,mightydeveloper/swift,apple/swift,cbrentharris/swift,rudkx/swift,ahoppen/swift,karwa/swift,austinzheng/swift,sschiau/swift,SwiftAndroid/swift,gregomni/swift,Jnosh/swift,devincoughlin/swift,parkera/swift,xedin/swift,gottesmm/swift,SwiftAndroid/swift,jopamer/swift,codestergit/swift,ben-ng/swift,ben-ng/swift,lorentey/swift,IngmarStein/swift,kperryua/swift,bitjammer/swift,gribozavr/swift,xedin/swift,johnno1962d/swift,shahmishal/swift,ken0nek/swift,therealbnut/swift,mightydeveloper/swift,natecook1000/swift,gottesmm/swift,russbishop/swift,IngmarStein/swift,tinysun212/swift-windows,allevato/swift,OscarSwanros/swift,harlanhaskins/swift,benlangmuir/swift,shajrawi/swift,swiftix/swift.old,MukeshKumarS/Swift,kentya6/swift,aschwaighofer/swift,swiftix/swift.old,jtbandes/swift,huonw/swift,practicalswift/swift,huonw/swift,harlanhaskins/swift,deyton/swift,sschiau/swift,shajrawi/swift,rudkx/swift,tjw/swift,lorentey/swift,khizkhiz/swift,cbrentharris/swift,ben-ng/swift,SwiftAndroid/swift,emilstahl/swift,hooman/swift,practicalswift/swift,swiftix/swift,SwiftAndroid/swift,stephentyrone/swift,emilstahl/swift,gregomni/swift,LeoShimonaka/swift,practicalswift/swift,stephentyrone/swift,uasys/swift,jtbandes/swift,khizkhiz/swift,airspeedswift/swift,harlanhaskins/swift,russbishop/swift,deyton/swift,djwbrown/swift,mightydeveloper/swift,kusl/swift,Ivacker/swift,lorentey/swift,CodaFi/swift,deyton/swift,shajrawi/swift,deyton/swift,arvedviehweger/swift,danielmartin/swift,tardieu/swift,khizkhiz/swift,kusl/swift,amraboelela/swift,kusl/swift,sdulal/swift,ken0nek/swift,parkera/swift,jopamer/swift,devincoughlin/swift,xedin/swift,KrishMunot/swift,IngmarStein/swift,dreamsxin/swift,rudkx/swift,cbrentharris/swift,JaSpa/swift,arvedviehweger/swift,emilstahl/swift,ahoppen/swift,ahoppen/swift,adrfer/swift,glessard/swift,cbrentharris/swift,dduan/swift,djwbrown/swift,cbrentharris/swift,LeoShimonaka/swift,sschiau/swift,brentdax/swift,tkremenek/swift,swiftix/swift,return/swift,jckarter/swift,hughbe/swift,tinysun212/swift-windows,OscarSwanros/swift,shahmishal/swift,huonw/swift,harlanhaskins/swift,KrishMunot/swift,gmilos/swift,brentdax/swift,frootloops/swift,calebd/swift,kstaring/swift,xedin/swift,nathawes/swift,MukeshKumarS/Swift,ben-ng/swift,practicalswift/swift,parkera/swift,kentya6/swift,huonw/swift,ken0nek/swift,nathawes/swift,CodaFi/swift,ben-ng/swift,OscarSwanros/swift,danielmartin/swift,emilstahl/swift,LeoShimonaka/swift,brentdax/swift,shahmishal/swift,therealbnut/swift,apple/swift,jtbandes/swift,dduan/swift,Jnosh/swift,swiftix/swift,Ivacker/swift,devincoughlin/swift,ahoppen/swift,Ivacker/swift,lorentey/swift,benlangmuir/swift,sschiau/swift,danielmartin/swift,CodaFi/swift,felix91gr/swift,roambotics/swift,kperryua/swift,IngmarStein/swift,KrishMunot/swift,apple/swift,swiftix/swift.old,deyton/swift,jmgc/swift,calebd/swift,alblue/swift,shahmishal/swift,JGiola/swift,Jnosh/swift,JGiola/swift,LeoShimonaka/swift,CodaFi/swift,lorentey/swift,gribozavr/swift,rudkx/swift,tjw/swift,atrick/swift,jmgc/swift,natecook1000/swift,calebd/swift,brentdax/swift,return/swift,danielmartin/swift,gribozavr/swift,frootloops/swift,zisko/swift,khizkhiz/swift,khizkhiz/swift,austinzheng/swift,kstaring/swift,uasys/swift,huonw/swift,tkremenek/swift,dreamsxin/swift,ben-ng/swift,gottesmm/swift,devincoughlin/swift,mightydeveloper/swift,parkera/swift,johnno1962d/swift,hughbe/swift,tinysun212/swift-windows,hooman/swift,tinysun212/swift-windows,zisko/swift,harlanhaskins/swift,tkremenek/swift,kstaring/swift,manavgabhawala/swift,alblue/swift,manavgabhawala/swift,harlanhaskins/swift,Jnosh/swift,xwu/swift,Jnosh/swift,gmilos/swift,mightydeveloper/swift,allevato/swift,hughbe/swift,Ivacker/swift,sschiau/swift,brentdax/swift,hooman/swift,swiftix/swift.old,JaSpa/swift,kentya6/swift,austinzheng/swift,uasys/swift,modocache/swift,karwa/swift,karwa/swift,zisko/swift,roambotics/swift,milseman/swift,amraboelela/swift,huonw/swift,lorentey/swift,deyton/swift,felix91gr/swift,kentya6/swift,khizkhiz/swift,allevato/swift,JGiola/swift,johnno1962d/swift,hooman/swift,natecook1000/swift,LeoShimonaka/swift,tardieu/swift,jtbandes/swift,apple/swift,karwa/swift,ahoppen/swift,swiftix/swift.old,Ivacker/swift,brentdax/swift,tjw/swift,Ivacker/swift,modocache/swift,allevato/swift,jckarter/swift,roambotics/swift,felix91gr/swift,gribozavr/swift,nathawes/swift,hughbe/swift,hooman/swift,swiftix/swift,brentdax/swift,shahmishal/swift,kstaring/swift,ahoppen/swift,kperryua/swift,tkremenek/swift,gribozavr/swift,adrfer/swift,frootloops/swift,kperryua/swift,modocache/swift,allevato/swift,JaSpa/swift,stephentyrone/swift,hooman/swift,aschwaighofer/swift,swiftix/swift,rudkx/swift,glessard/swift,karwa/swift,gregomni/swift,swiftix/swift.old,uasys/swift,LeoShimonaka/swift,kperryua/swift,manavgabhawala/swift,bitjammer/swift,jopamer/swift,russbishop/swift,CodaFi/swift,manavgabhawala/swift,arvedviehweger/swift,OscarSwanros/swift,frootloops/swift,austinzheng/swift,parkera/swift,slavapestov/swift,jmgc/swift,slavapestov/swift,emilstahl/swift,tkremenek/swift,atrick/swift
text
## Code Before: add_swift_library(swiftsimd SHARED IS_STDLIB simd.swift.gyb SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all SWIFT_MODULE_DEPENDS Darwin INSTALL_IN_COMPONENT stdlib) ## Instruction: Make the 'simd' module build like the rest of the overlays. At one point we were considering it to be a replacement rather than an overlay, but that's not where we are today. We can revisit that later. Necessary for next commit. Swift SVN r29438 ## Code After: add_swift_library(swiftsimd IS_SDK_OVERLAY simd.swift.gyb SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all SWIFT_MODULE_DEPENDS Darwin)
3bfdd5244238c8c4779c7e95ba685074f98a3c87
templates/default/server.xml.erb
templates/default/server.xml.erb
<server description="<%= @description %>"> <!-- Enable features --> <featureManager> <% @features.each do |feature| -%> <feature><%= feature %></feature> <% end -%> </featureManager> <% @httpendpoints.each do |httpendpoint| -%> <httpEndpoint id="<%= httpendpoint["id"] %>" host="<%= httpendpoint["host"] %>" httpPort="<%= httpendpoint["httpport"] %>" httpsPort="<%= httpendpoint["httpsport"] %>" /> <% end -%> <% if @includes != nil && @includes.size > 0 -%> <% @includes.each do |include| -%> <include location="<%= include %>" /> <% end -%> <% end -%> </server>
<server description="<%= @description %>"> <!-- Enable features --> <% if @features != nil && @features.size > 0 -%> <featureManager> <% @features.each do |feature| -%> <feature><%= feature %></feature> <% end -%> </featureManager> <% end -%> <% if @httpendpoints != nil && @httpendpoints.size > 0 -%> <% @httpendpoints.each do |httpendpoint| -%> <httpEndpoint id="<%= httpendpoint["id"] -%>" <% if httpendpoint["host"] != nil -%> host="<%= httpendpoint["host"] %>" <% end -%> <% if httpendpoint["httpport"] != nil -%> httpPort="<%= httpendpoint["httpport"] %>" <% end -%> <% if httpendpoint["httpsport"] != nil -%> httpsPort="<%= httpendpoint["httpsport"] %>" <% end -%> /> <% end -%> <% end -%> <% if @includes != nil && @includes.size > 0 -%> <% @includes.each do |include| -%> <include location="<%= include %>" /> <% end -%> <% end -%> </server>
Update template to make elements and attributes optional.
Update template to make elements and attributes optional.
HTML+ERB
apache-2.0
WASdev/ci.chef.wlp,WASdev/ci.chef.wlp
html+erb
## Code Before: <server description="<%= @description %>"> <!-- Enable features --> <featureManager> <% @features.each do |feature| -%> <feature><%= feature %></feature> <% end -%> </featureManager> <% @httpendpoints.each do |httpendpoint| -%> <httpEndpoint id="<%= httpendpoint["id"] %>" host="<%= httpendpoint["host"] %>" httpPort="<%= httpendpoint["httpport"] %>" httpsPort="<%= httpendpoint["httpsport"] %>" /> <% end -%> <% if @includes != nil && @includes.size > 0 -%> <% @includes.each do |include| -%> <include location="<%= include %>" /> <% end -%> <% end -%> </server> ## Instruction: Update template to make elements and attributes optional. ## Code After: <server description="<%= @description %>"> <!-- Enable features --> <% if @features != nil && @features.size > 0 -%> <featureManager> <% @features.each do |feature| -%> <feature><%= feature %></feature> <% end -%> </featureManager> <% end -%> <% if @httpendpoints != nil && @httpendpoints.size > 0 -%> <% @httpendpoints.each do |httpendpoint| -%> <httpEndpoint id="<%= httpendpoint["id"] -%>" <% if httpendpoint["host"] != nil -%> host="<%= httpendpoint["host"] %>" <% end -%> <% if httpendpoint["httpport"] != nil -%> httpPort="<%= httpendpoint["httpport"] %>" <% end -%> <% if httpendpoint["httpsport"] != nil -%> httpsPort="<%= httpendpoint["httpsport"] %>" <% end -%> /> <% end -%> <% end -%> <% if @includes != nil && @includes.size > 0 -%> <% @includes.each do |include| -%> <include location="<%= include %>" /> <% end -%> <% end -%> </server>
d23173dc556e3565ee1e2414d1bcab5efe962eb1
_guides/https.md
_guides/https.md
--- layout: documentation title: Protect The Lounge with HTTPS --- In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy. First, you need an HTTPS certificate. [Let's Encrypt](https://letsencrypt.org/) is a free, automated, and open Certificate Authority that provides completely free HTTPS certificates. Assuming you have a valid email address at `[email protected]`, and want to serve The Lounge at `https://thelounge.example.com`, run these commands on your server: ``` git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt/ ./letsencrypt-auto certonly --standalone --email [email protected] -d thelounge.example.com ``` Follow the instructions on screen. This should generate a private key, as well as your HTTPS certificate that will expire after 90 days. Open your configuration file, located at `${THELOUNGE_HOME}/config.js` and look for the `https` key, and set the following values: - Change `enable` to `true` - Set `key` to the private key path that was generated, `privkey.pem` - Set `certificate` to the certificate path, `fullchain.pem` Let's Encrypt will create its `/etc/letsencrypt` folder as root user, so you might have to change the owner of these files to the user that runs The Lounge.
--- layout: documentation title: Protect The Lounge with HTTPS --- In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy. {: .alert.alert-warning role="alert"} The Lounge only has basic HTTPS support, and will need to be manually to reload certificates on renewal. For advanced HTTPS support, consider [using a reverse proxy](/docs/guides/reverse-proxies.html). First, you need an HTTPS certificate. [Let's Encrypt](https://letsencrypt.org/) is a free, automated, and open Certificate Authority that provides completely free HTTPS certificates. Assuming you have a valid email address at `[email protected]`, and want to serve The Lounge at `https://thelounge.example.com`, run these commands on your server: ``` git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt/ ./letsencrypt-auto certonly --standalone --email [email protected] -d thelounge.example.com ``` Follow the instructions on screen. This should generate a private key, as well as your HTTPS certificate that will expire after 90 days. Open your configuration file, located at `${THELOUNGE_HOME}/config.js` and look for the `https` key, and set the following values: - Change `enable` to `true` - Set `key` to the private key path that was generated, `privkey.pem` - Set `certificate` to the certificate path, `fullchain.pem` Let's Encrypt will create its `/etc/letsencrypt` folder as root user, so you might have to change the owner of these files to the user that runs The Lounge.
Add a note to recommend using a reverse proxy for advanced HTTPS support
Add a note to recommend using a reverse proxy for advanced HTTPS support
Markdown
mit
thelounge/thelounge.github.io,thelounge/thelounge.github.io,thelounge/thelounge.github.io
markdown
## Code Before: --- layout: documentation title: Protect The Lounge with HTTPS --- In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy. First, you need an HTTPS certificate. [Let's Encrypt](https://letsencrypt.org/) is a free, automated, and open Certificate Authority that provides completely free HTTPS certificates. Assuming you have a valid email address at `[email protected]`, and want to serve The Lounge at `https://thelounge.example.com`, run these commands on your server: ``` git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt/ ./letsencrypt-auto certonly --standalone --email [email protected] -d thelounge.example.com ``` Follow the instructions on screen. This should generate a private key, as well as your HTTPS certificate that will expire after 90 days. Open your configuration file, located at `${THELOUNGE_HOME}/config.js` and look for the `https` key, and set the following values: - Change `enable` to `true` - Set `key` to the private key path that was generated, `privkey.pem` - Set `certificate` to the certificate path, `fullchain.pem` Let's Encrypt will create its `/etc/letsencrypt` folder as root user, so you might have to change the owner of these files to the user that runs The Lounge. ## Instruction: Add a note to recommend using a reverse proxy for advanced HTTPS support ## Code After: --- layout: documentation title: Protect The Lounge with HTTPS --- In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy. {: .alert.alert-warning role="alert"} The Lounge only has basic HTTPS support, and will need to be manually to reload certificates on renewal. For advanced HTTPS support, consider [using a reverse proxy](/docs/guides/reverse-proxies.html). First, you need an HTTPS certificate. [Let's Encrypt](https://letsencrypt.org/) is a free, automated, and open Certificate Authority that provides completely free HTTPS certificates. Assuming you have a valid email address at `[email protected]`, and want to serve The Lounge at `https://thelounge.example.com`, run these commands on your server: ``` git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt/ ./letsencrypt-auto certonly --standalone --email [email protected] -d thelounge.example.com ``` Follow the instructions on screen. This should generate a private key, as well as your HTTPS certificate that will expire after 90 days. Open your configuration file, located at `${THELOUNGE_HOME}/config.js` and look for the `https` key, and set the following values: - Change `enable` to `true` - Set `key` to the private key path that was generated, `privkey.pem` - Set `certificate` to the certificate path, `fullchain.pem` Let's Encrypt will create its `/etc/letsencrypt` folder as root user, so you might have to change the owner of these files to the user that runs The Lounge.
5da75a7bbb2f2b0551b207b6caa635ee28aa6378
omnibus-test.sh
omnibus-test.sh
/opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2"
version=$(cat VERSION) curl "https://packages.chef.io/files/unstable/omnibus-gcc/${version}/el/6/omnibus-gcc-${version}-1.el6.x86_64.rpm" -O sudo yum install "omnibus-gcc-${version}-1.el6.x86_64.rpm" -y rm -f "omnibus-gcc-${version}-1.el6.x86_64.rpm" /opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2"
Fix test to pull rpm
Fix test to pull rpm Signed-off-by: Scott Hain <[email protected]>
Shell
apache-2.0
scotthain/omnibus-gcc,scotthain/omnibus-gcc
shell
## Code Before: /opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2" ## Instruction: Fix test to pull rpm Signed-off-by: Scott Hain <[email protected]> ## Code After: version=$(cat VERSION) curl "https://packages.chef.io/files/unstable/omnibus-gcc/${version}/el/6/omnibus-gcc-${version}-1.el6.x86_64.rpm" -O sudo yum install "omnibus-gcc-${version}-1.el6.x86_64.rpm" -y rm -f "omnibus-gcc-${version}-1.el6.x86_64.rpm" /opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2"
16d6af331e5c5097934a93a4602dcc8d843fff02
app/views/application_groups/index.html.erb
app/views/application_groups/index.html.erb
<%- model_class = ApplicationGroup -%> <%t '.title', :default => model_class.model_name.human.pluralize.titleize %> <div class="page-header"> <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %> </div> <table class="table table-condensed"> <thead> <tr> <th>Primary Applicant</th> <th>No. Applicants</th> <th>No. Enrollments</th> <th>Submitted Date</th> </tr> </thead> <% @application_groups.each do |ag| %> <tbody> <tr> <td><%= link_to prepend_glyph_to_name(ag.primary_applicant_id), application_group_path(ag) %> </td> <td><%= ag.applicants.size %></td> <td><%= ag.hbx_enrollments.size %></td> <td><%= ag.submitted_date %></td> </tr> </tbody> <% end %> </table> <div class="row"> <div class="col-md-8"> <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %> </div> <div class="rol-md-4"> <p><%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %><small>(Application Groups selected / total)</small></p> </div> </div>
<%- model_class = ApplicationGroup -%> <%t '.title', :default => model_class.model_name.human.pluralize.titleize %> <div class="page-header"> <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %> </div> <div class="row"> <div class="col-md-offset-8 col-md-4"> <%= render 'shared/search', url: people_path, q: @q, placeholder: "Name, HBX ID, SSN" %> </div> </div> </div> <%= render "application_group_list", application_groups: @application_groups %> <div class="row"> <div class="col-md-8"> <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %> </div> <div class="rol-md-4"> <p><%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %><small>(Application Groups selected / total)</small></p> </div> </div>
Add search box. Move applicant list to partial
Add search box. Move applicant list to partial
HTML+ERB
mit
dchbx/gluedb,dchbx/gluedb,dchbx/gluedb,dchbx/gluedb
html+erb
## Code Before: <%- model_class = ApplicationGroup -%> <%t '.title', :default => model_class.model_name.human.pluralize.titleize %> <div class="page-header"> <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %> </div> <table class="table table-condensed"> <thead> <tr> <th>Primary Applicant</th> <th>No. Applicants</th> <th>No. Enrollments</th> <th>Submitted Date</th> </tr> </thead> <% @application_groups.each do |ag| %> <tbody> <tr> <td><%= link_to prepend_glyph_to_name(ag.primary_applicant_id), application_group_path(ag) %> </td> <td><%= ag.applicants.size %></td> <td><%= ag.hbx_enrollments.size %></td> <td><%= ag.submitted_date %></td> </tr> </tbody> <% end %> </table> <div class="row"> <div class="col-md-8"> <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %> </div> <div class="rol-md-4"> <p><%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %><small>(Application Groups selected / total)</small></p> </div> </div> ## Instruction: Add search box. Move applicant list to partial ## Code After: <%- model_class = ApplicationGroup -%> <%t '.title', :default => model_class.model_name.human.pluralize.titleize %> <div class="page-header"> <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %> </div> <div class="row"> <div class="col-md-offset-8 col-md-4"> <%= render 'shared/search', url: people_path, q: @q, placeholder: "Name, HBX ID, SSN" %> </div> </div> </div> <%= render "application_group_list", application_groups: @application_groups %> <div class="row"> <div class="col-md-8"> <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %> </div> <div class="rol-md-4"> <p><%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %><small>(Application Groups selected / total)</small></p> </div> </div>
8e9ecc61bf715a1ad9c7a5fb17ce66df4aa8040b
README.md
README.md
Repo of the bits and pieces of filling your google spreadsheet using a html form and input tags
I have been trying to figure this out for a while, and after googling away for the last week and a half or so I think I've been able to put the pieces together on how you can successfully and _unseccurely_ collect **insensitive** user information from your website page and populate a google spreadsheet. #### Early warning: In all honestly it might be way easier to just set up a google form and direct users to the form link and have the form submit the results to a spreadsheet. Also tThis should not under any circumstances be treated as an alternative to a proper database. That being said, I think this is a very easy and highly customizable way to collect data from different sources and have it fill up a spreadsheet and from there the possibilities are endless. ### Step 1 ### Step 2 ### Step 3 ### Step 4 ### Step 5
Add initial wireframe of the readme
Add initial wireframe of the readme
Markdown
mit
Gideonamani/htmlformgooglesheets,Gideonamani/htmlformgooglesheets
markdown
## Code Before: Repo of the bits and pieces of filling your google spreadsheet using a html form and input tags ## Instruction: Add initial wireframe of the readme ## Code After: I have been trying to figure this out for a while, and after googling away for the last week and a half or so I think I've been able to put the pieces together on how you can successfully and _unseccurely_ collect **insensitive** user information from your website page and populate a google spreadsheet. #### Early warning: In all honestly it might be way easier to just set up a google form and direct users to the form link and have the form submit the results to a spreadsheet. Also tThis should not under any circumstances be treated as an alternative to a proper database. That being said, I think this is a very easy and highly customizable way to collect data from different sources and have it fill up a spreadsheet and from there the possibilities are endless. ### Step 1 ### Step 2 ### Step 3 ### Step 4 ### Step 5
e67b8a59b85259ee8a1bedeb09ea773c78c2f546
Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/admin/personaBar/scripts/config.js
Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/admin/personaBar/scripts/config.js
'use strict'; define(['jquery'], function ($) { return { init: function () { var inIframe = window !== window.top && typeof window.top.dnn !== "undefined"; var tabId = inIframe ? window.top.dnn.getVar('sf_tabId') : ''; var siteRoot = inIframe ? window.top.dnn.getVar('sf_siteRoot') : ''; var antiForgeryToken = inIframe ? window.top.document.getElementsByName('__RequestVerificationToken')[0].value : ''; var config = $.extend({}, { tabId: tabId, siteRoot: siteRoot, antiForgeryToken: antiForgeryToken }, inIframe ? window.parent['personaBarSettings'] : {}); return config; } }; });
'use strict'; define(['jquery'], function ($) { return { init: function () { var inIframe = window.parent && typeof window.parent.dnn !== "undefined"; var tabId = inIframe ? window.parent.dnn.getVar('sf_tabId') : ''; var siteRoot = inIframe ? window.parent.dnn.getVar('sf_siteRoot') : ''; var antiForgeryToken = inIframe ? window.parent.document.getElementsByName('__RequestVerificationToken')[0].value : ''; var config = $.extend({}, { tabId: tabId, siteRoot: siteRoot, antiForgeryToken: antiForgeryToken }, inIframe ? window.parent['personaBarSettings'] : {}); return config; } }; });
Fix PersonaBar loading when within an iframe
Fix PersonaBar loading when within an iframe
JavaScript
mit
dnnsoftware/Dnn.Platform,bdukes/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,mitchelsellers/Dnn.Platform,dnnsoftware/Dnn.Platform,bdukes/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,nvisionative/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,nvisionative/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,nvisionative/Dnn.Platform,bdukes/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,valadas/Dnn.Platform,mitchelsellers/Dnn.Platform
javascript
## Code Before: 'use strict'; define(['jquery'], function ($) { return { init: function () { var inIframe = window !== window.top && typeof window.top.dnn !== "undefined"; var tabId = inIframe ? window.top.dnn.getVar('sf_tabId') : ''; var siteRoot = inIframe ? window.top.dnn.getVar('sf_siteRoot') : ''; var antiForgeryToken = inIframe ? window.top.document.getElementsByName('__RequestVerificationToken')[0].value : ''; var config = $.extend({}, { tabId: tabId, siteRoot: siteRoot, antiForgeryToken: antiForgeryToken }, inIframe ? window.parent['personaBarSettings'] : {}); return config; } }; }); ## Instruction: Fix PersonaBar loading when within an iframe ## Code After: 'use strict'; define(['jquery'], function ($) { return { init: function () { var inIframe = window.parent && typeof window.parent.dnn !== "undefined"; var tabId = inIframe ? window.parent.dnn.getVar('sf_tabId') : ''; var siteRoot = inIframe ? window.parent.dnn.getVar('sf_siteRoot') : ''; var antiForgeryToken = inIframe ? window.parent.document.getElementsByName('__RequestVerificationToken')[0].value : ''; var config = $.extend({}, { tabId: tabId, siteRoot: siteRoot, antiForgeryToken: antiForgeryToken }, inIframe ? window.parent['personaBarSettings'] : {}); return config; } }; });
41c54a3402da12615fd37e523efaf92f30544f24
cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/extensions/ViewExtensions.kt
cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/extensions/ViewExtensions.kt
package com.github.charbgr.cliffhanger.shared.extensions import android.view.LayoutInflater import android.view.View import android.view.ViewGroup fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View { return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot) }
package com.github.charbgr.cliffhanger.shared.extensions import android.view.LayoutInflater import android.view.View import android.view.ViewGroup fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View { return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot) } fun View.visibleOrGone(shouldBeVisible: Boolean) { if (shouldBeVisible) { this.visible() } else { this.gone() } } fun View.visible() { this.visibility = View.VISIBLE } fun View.gone() { this.visibility = View.GONE }
Add visible and gone view extensions
Add visible and gone view extensions
Kotlin
mit
charbgr/CliffHanger
kotlin
## Code Before: package com.github.charbgr.cliffhanger.shared.extensions import android.view.LayoutInflater import android.view.View import android.view.ViewGroup fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View { return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot) } ## Instruction: Add visible and gone view extensions ## Code After: package com.github.charbgr.cliffhanger.shared.extensions import android.view.LayoutInflater import android.view.View import android.view.ViewGroup fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View { return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot) } fun View.visibleOrGone(shouldBeVisible: Boolean) { if (shouldBeVisible) { this.visible() } else { this.gone() } } fun View.visible() { this.visibility = View.VISIBLE } fun View.gone() { this.visibility = View.GONE }
38ab565ef74832ddb8375b77db8b661fc71cc9f9
main.go
main.go
package main import ( "fmt" "os" "github.com/kori/surt/pkg" ) func main() { switch os.Args[1] { case "build": file := os.Args[2] p := pkg.Prepare(file) fmt.Println(p.Info.Name) case "add": fmt.Println("not implemented yet!") } }
package main import ( "fmt" "os" "github.com/kori/surt/pkg" ) func main() { switch os.Args[1] { default: fmt.Println("no operation specified") case "build": file := os.Args[2] p := pkg.Build(file) fmt.Println(p.Info.Name) case "add": fmt.Println("not implemented yet!") } }
Add default case to operation switch
Add default case to operation switch
Go
isc
kori/surt,darthlukan/surt
go
## Code Before: package main import ( "fmt" "os" "github.com/kori/surt/pkg" ) func main() { switch os.Args[1] { case "build": file := os.Args[2] p := pkg.Prepare(file) fmt.Println(p.Info.Name) case "add": fmt.Println("not implemented yet!") } } ## Instruction: Add default case to operation switch ## Code After: package main import ( "fmt" "os" "github.com/kori/surt/pkg" ) func main() { switch os.Args[1] { default: fmt.Println("no operation specified") case "build": file := os.Args[2] p := pkg.Build(file) fmt.Println(p.Info.Name) case "add": fmt.Println("not implemented yet!") } }
15bc9e70bcf6ec686f0de5b994979963368ed99b
.gitlab-ci.yml
.gitlab-ci.yml
before_script: - rm -rf /usr/local/go - apt-get update -qq - apt-get install -y curl unzip bzip2 - curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz - echo '46eecd290d8803887dec718c691cc243f2175fe0 go1.5.1.linux-amd64.tar.gz' | shasum -c - - tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz - export PATH=/usr/local/go/bin:$PATH test: script: make clean test
before_script: - rm -rf /usr/local/go - apt-get update -qq - apt-get install -y curl unzip bzip2 - curl -O https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz - echo 'cae87ed095e8d94a81871281d35da7829bd1234e go1.5.2.linux-amd64.tar.gz' | shasum -c - - tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz - export PATH=/usr/local/go/bin:$PATH test: script: make clean test
Use Go 1.5.2 for tests
Use Go 1.5.2 for tests
YAML
mit
cui-liqiang/gitlab-workhorse
yaml
## Code Before: before_script: - rm -rf /usr/local/go - apt-get update -qq - apt-get install -y curl unzip bzip2 - curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz - echo '46eecd290d8803887dec718c691cc243f2175fe0 go1.5.1.linux-amd64.tar.gz' | shasum -c - - tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz - export PATH=/usr/local/go/bin:$PATH test: script: make clean test ## Instruction: Use Go 1.5.2 for tests ## Code After: before_script: - rm -rf /usr/local/go - apt-get update -qq - apt-get install -y curl unzip bzip2 - curl -O https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz - echo 'cae87ed095e8d94a81871281d35da7829bd1234e go1.5.2.linux-amd64.tar.gz' | shasum -c - - tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz - export PATH=/usr/local/go/bin:$PATH test: script: make clean test
71fe1670921371c9a9c861a12972b59700eb8b33
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
Closes #[the issue number this PR is related to] <!-- Explain why this change is needed and the solution you propose. Provide context for others to understand it. --> #### What should we test? <!-- List which features should be tested and how. --> #### Release notes <!-- Write a one liner description of the change to be included in the release notes. Every PR is worth mentioning, because you did it for a reason. --> <!-- Please select one for your PR and delete the other. --> Changelog Category: User facing changes | Technical changes #### Dependencies <!-- Does this PR depend on another one? Add the link or remove this section. --> #### Documentation updates <!-- Are there any wiki pages that need updating after merging this PR? List them here or remove this section. -->
Closes # <!-- Insert issue number here. --> <!-- Explain why this change is needed and the solution you propose. Provide context for others to understand it. --> #### What should we test? <!-- List which features should be tested and how. This can be similar to the Steps to Reproduce in the issue. Also think of other parts of the app which could be affected by your change. --> - Visit ... page. - #### Release notes <!-- Please select one for your PR and delete the other. --> Changelog Category: User facing changes | Technical changes <!-- Choose a pull request title above which explains your change to a a user of the Open Food Network app. --> The title of the pull request will be included in the release notes. #### Dependencies <!-- Does this PR depend on another one? Add the link or remove this section. --> #### Documentation updates <!-- Are there any wiki pages that need updating after merging this PR? List them here or remove this section. -->
Move release notes to the title of the PR
Move release notes to the title of the PR Github can generate release notes from titles automatically. That's much easier than us copying the text from each pull request. Also changed: - Converted instructions for the issue number to a comment to make pasting the issue number easier. - More detail for testing instructions. Many people don't fill them out correctly. - Formatting of comments for better readability.
Markdown
agpl-3.0
mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork
markdown
## Code Before: Closes #[the issue number this PR is related to] <!-- Explain why this change is needed and the solution you propose. Provide context for others to understand it. --> #### What should we test? <!-- List which features should be tested and how. --> #### Release notes <!-- Write a one liner description of the change to be included in the release notes. Every PR is worth mentioning, because you did it for a reason. --> <!-- Please select one for your PR and delete the other. --> Changelog Category: User facing changes | Technical changes #### Dependencies <!-- Does this PR depend on another one? Add the link or remove this section. --> #### Documentation updates <!-- Are there any wiki pages that need updating after merging this PR? List them here or remove this section. --> ## Instruction: Move release notes to the title of the PR Github can generate release notes from titles automatically. That's much easier than us copying the text from each pull request. Also changed: - Converted instructions for the issue number to a comment to make pasting the issue number easier. - More detail for testing instructions. Many people don't fill them out correctly. - Formatting of comments for better readability. ## Code After: Closes # <!-- Insert issue number here. --> <!-- Explain why this change is needed and the solution you propose. Provide context for others to understand it. --> #### What should we test? <!-- List which features should be tested and how. This can be similar to the Steps to Reproduce in the issue. Also think of other parts of the app which could be affected by your change. --> - Visit ... page. - #### Release notes <!-- Please select one for your PR and delete the other. --> Changelog Category: User facing changes | Technical changes <!-- Choose a pull request title above which explains your change to a a user of the Open Food Network app. --> The title of the pull request will be included in the release notes. #### Dependencies <!-- Does this PR depend on another one? Add the link or remove this section. --> #### Documentation updates <!-- Are there any wiki pages that need updating after merging this PR? List them here or remove this section. -->
3fbe8a01d93b77b496a28229ffdf3792ebab22c1
test/helper.js
test/helper.js
var browserify = require('browserify') var cp = require('child_process') var envify = require('envify/custom') var fs = require('fs') var once = require('once') var path = require('path') var CHROME = process.env.CHROME || '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary' var BUNDLE_PATH = path.join(__dirname, 'chrome-app/bundle.js') exports.browserify = function (filename, env, cb) { if (!env) env = {} if (!cb) cb = function () {} cb = once(cb) var b = browserify() b.add(path.join(__dirname, 'client', filename)) b.transform(envify(env)) b.bundle() .pipe(fs.createWriteStream(BUNDLE_PATH)) .on('close', cb) .on('error', cb) } exports.launchBrowser = function () { // chrome 40.0.2188.2 won't open extensions without absolute path. var app = path.join(__dirname, '..', 'test/chrome-app') var command = CHROME + ' --load-and-launch-app=' + app var env = { cwd: path.join(__dirname, '..') } return cp.exec(command, env, function () {}) }
var browserify = require('browserify') var cp = require('child_process') var envify = require('envify/custom') var fs = require('fs') var once = require('once') var path = require('path') var CHROME if (process.env.CHROME) { CHROME = process.env.CHROME } else if (process.platform === 'win32') { CHROME = '"%ProgramFiles(x86)%\\Google\\Chrome\\Application\\chrome.exe"' } else { CHROME = '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary' } var BUNDLE_PATH = path.join(__dirname, 'chrome-app/bundle.js') exports.browserify = function (filename, env, cb) { if (!env) env = {} if (!cb) cb = function () {} cb = once(cb) var b = browserify() b.add(path.join(__dirname, 'client', filename)) b.transform(envify(env)) b.bundle() .pipe(fs.createWriteStream(BUNDLE_PATH)) .on('close', cb) .on('error', cb) } exports.launchBrowser = function () { // chrome 40.0.2188.2 won't open extensions without absolute path. var app = path.join(__dirname, '..', 'test/chrome-app') var command = CHROME + ' --load-and-launch-app=' + app var env = { cwd: path.join(__dirname, '..') } return cp.exec(command, env, function () {}) }
Add Chrome path for Windows
tests: Add Chrome path for Windows
JavaScript
mit
feross/chrome-net,feross/chrome-net
javascript
## Code Before: var browserify = require('browserify') var cp = require('child_process') var envify = require('envify/custom') var fs = require('fs') var once = require('once') var path = require('path') var CHROME = process.env.CHROME || '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary' var BUNDLE_PATH = path.join(__dirname, 'chrome-app/bundle.js') exports.browserify = function (filename, env, cb) { if (!env) env = {} if (!cb) cb = function () {} cb = once(cb) var b = browserify() b.add(path.join(__dirname, 'client', filename)) b.transform(envify(env)) b.bundle() .pipe(fs.createWriteStream(BUNDLE_PATH)) .on('close', cb) .on('error', cb) } exports.launchBrowser = function () { // chrome 40.0.2188.2 won't open extensions without absolute path. var app = path.join(__dirname, '..', 'test/chrome-app') var command = CHROME + ' --load-and-launch-app=' + app var env = { cwd: path.join(__dirname, '..') } return cp.exec(command, env, function () {}) } ## Instruction: tests: Add Chrome path for Windows ## Code After: var browserify = require('browserify') var cp = require('child_process') var envify = require('envify/custom') var fs = require('fs') var once = require('once') var path = require('path') var CHROME if (process.env.CHROME) { CHROME = process.env.CHROME } else if (process.platform === 'win32') { CHROME = '"%ProgramFiles(x86)%\\Google\\Chrome\\Application\\chrome.exe"' } else { CHROME = '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary' } var BUNDLE_PATH = path.join(__dirname, 'chrome-app/bundle.js') exports.browserify = function (filename, env, cb) { if (!env) env = {} if (!cb) cb = function () {} cb = once(cb) var b = browserify() b.add(path.join(__dirname, 'client', filename)) b.transform(envify(env)) b.bundle() .pipe(fs.createWriteStream(BUNDLE_PATH)) .on('close', cb) .on('error', cb) } exports.launchBrowser = function () { // chrome 40.0.2188.2 won't open extensions without absolute path. var app = path.join(__dirname, '..', 'test/chrome-app') var command = CHROME + ' --load-and-launch-app=' + app var env = { cwd: path.join(__dirname, '..') } return cp.exec(command, env, function () {}) }
4844dd00f64240ba371313b21271b07c90ea5b40
lib/toy_robot_simulator/simulator.rb
lib/toy_robot_simulator/simulator.rb
module ToyRobotSimulator class Simulator end end
module ToyRobotSimulator class Simulator attr_accessor :controller def initialize welcome_message while line = $stdin.gets do break if line.downcase.include? "quit" puts line end end def welcome_message puts %Q( This is the Toy Robot Simulator Code Challenge!\n Enter with #{available_commands}\n or type QUIT to end the simulator! Good game!\n ) end def available_commands ["PLACE", "MOVE", "LEFT", "RIGHT"].join(', ') end end end
Create Simulator with a finite loop that receives commands
Create Simulator with a finite loop that receives commands
Ruby
mit
fpgentil/toy-robot-simulator
ruby
## Code Before: module ToyRobotSimulator class Simulator end end ## Instruction: Create Simulator with a finite loop that receives commands ## Code After: module ToyRobotSimulator class Simulator attr_accessor :controller def initialize welcome_message while line = $stdin.gets do break if line.downcase.include? "quit" puts line end end def welcome_message puts %Q( This is the Toy Robot Simulator Code Challenge!\n Enter with #{available_commands}\n or type QUIT to end the simulator! Good game!\n ) end def available_commands ["PLACE", "MOVE", "LEFT", "RIGHT"].join(', ') end end end
a38fc3d53adbfec609d911587e9fa2c5a3e01d92
workflows/common/sh/sched-titan.sh
workflows/common/sh/sched-titan.sh
MACHINE="-m cray" # Swift special setting for Titan export TITAN=true # Default PROJECT for CANDLE export PROJECT=${PROJECT:-CSC249ADOA01}
MACHINE="-m cray" # Swift special setting for Titan export TITAN=true # Default PROJECT for CANDLE #export PROJECT=${PROJECT:-CSC249ADOA01} export PROJECT=${PROJECT:-MED106}
Change default project to MED106 for titan
Change default project to MED106 for titan
Shell
mit
ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor
shell
## Code Before: MACHINE="-m cray" # Swift special setting for Titan export TITAN=true # Default PROJECT for CANDLE export PROJECT=${PROJECT:-CSC249ADOA01} ## Instruction: Change default project to MED106 for titan ## Code After: MACHINE="-m cray" # Swift special setting for Titan export TITAN=true # Default PROJECT for CANDLE #export PROJECT=${PROJECT:-CSC249ADOA01} export PROJECT=${PROJECT:-MED106}
210dfcee831a1a59d935c81459d15f9ea6f29f77
plugins/inputs/system/SWAP_README.md
plugins/inputs/system/SWAP_README.md
The swap plugin collects system swap metrics. For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space). ### Configuration: ```toml # Read metrics about swap memory usage [[inputs.swap]] # no configuration ``` ### Metrics: - swap - fields: - free (int) - total (int) - used (int) - used_percent (float) - sin (int) - sout (int) ### Example Output: ``` swap total=20855394304i,used_percent=45.43883523785713,used=9476448256i,free=1715331072i 1511894782000000000 ```
The swap plugin collects system swap metrics. For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space). ### Configuration: ```toml # Read metrics about swap memory usage [[inputs.swap]] # no configuration ``` ### Metrics: - swap - fields: - free (int) - total (int) - used (int) - used_percent (float) - in (int) - out (int) ### Example Output: ``` swap total=20855394304i,used_percent=45.43883523785713,used=9476448256i,free=1715331072i 1511894782000000000 ```
Fix field name typo in swap documentation
Fix field name typo in swap documentation
Markdown
mit
puckpuck/telegraf,Heathland/telegraf,marianob85/telegraf,apigee-internal/telegraf,Heathland/telegraf,m4ce/telegraf,influxdb/telegraf,codehate/telegraf,nferch/telegraf,influxdata/telegraf,m4ce/telegraf,signalfx/telegraf,Brightspace/telegraf,mchuang3/telegraf,marianob85/telegraf,schwartzmx/telegraf,li-ang/telegraf,jonaz/telegraf,sebito91/telegraf,codehate/telegraf,schwartzmx/telegraf,sebito91/telegraf,miketonks/telegraf,nferch/telegraf,oldmantaiter/telegraf,codehate/telegraf,oldmantaiter/telegraf,marianob85/telegraf,puckpuck/telegraf,miketonks/telegraf,apigee-internal/telegraf,Heathland/telegraf,srfraser/telegraf,mchuang3/telegraf,codehate/telegraf,influxdb/telegraf,influxdb/telegraf,mchuang3/telegraf,li-ang/telegraf,m4ce/telegraf,influxdata/telegraf,sebito91/telegraf,Brightspace/telegraf,srfraser/telegraf,jonaz/telegraf,schwartzmx/telegraf,li-ang/telegraf,oldmantaiter/telegraf,nferch/telegraf,influxdb/telegraf,srfraser/telegraf,signalfx/telegraf,apigee-internal/telegraf,marianob85/telegraf,puckpuck/telegraf,signalfx/telegraf,miketonks/telegraf,jonaz/telegraf,influxdata/telegraf,Brightspace/telegraf
markdown
## Code Before: The swap plugin collects system swap metrics. For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space). ### Configuration: ```toml # Read metrics about swap memory usage [[inputs.swap]] # no configuration ``` ### Metrics: - swap - fields: - free (int) - total (int) - used (int) - used_percent (float) - sin (int) - sout (int) ### Example Output: ``` swap total=20855394304i,used_percent=45.43883523785713,used=9476448256i,free=1715331072i 1511894782000000000 ``` ## Instruction: Fix field name typo in swap documentation ## Code After: The swap plugin collects system swap metrics. For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space). ### Configuration: ```toml # Read metrics about swap memory usage [[inputs.swap]] # no configuration ``` ### Metrics: - swap - fields: - free (int) - total (int) - used (int) - used_percent (float) - in (int) - out (int) ### Example Output: ``` swap total=20855394304i,used_percent=45.43883523785713,used=9476448256i,free=1715331072i 1511894782000000000 ```
3bbe9e5aab0bcd51b95b3f718cb790807931d82b
chrome/browser/extensions/extension_message_handler.h
chrome/browser/extensions/extension_message_handler.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #pragma once #include "content/browser/renderer_host/render_view_host_observer.h" class Profile; struct ExtensionHostMsg_DomMessage_Params; // Filters and dispatches extension-related IPC messages that arrive from // renderer/extension processes. This object is created for renderers and also // ExtensionHost/BackgroundContents. Contrast this with ExtensionTabHelper, // which is only created for TabContents. class ExtensionMessageHandler : public RenderViewHostObserver { public: // |sender| is guaranteed to outlive this object. explicit ExtensionMessageHandler(RenderViewHost* render_view_host); virtual ~ExtensionMessageHandler(); // RenderViewHostObserver overrides. virtual bool OnMessageReceived(const IPC::Message& message); private: // Message handlers. void OnPostMessage(int port_id, const std::string& message); void OnRequest(const ExtensionHostMsg_DomMessage_Params& params); DISALLOW_COPY_AND_ASSIGN(ExtensionMessageHandler); }; #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #pragma once #include "content/browser/renderer_host/render_view_host_observer.h" class Profile; struct ExtensionHostMsg_DomMessage_Params; // Filters and dispatches extension-related IPC messages that arrive from // renderers. There is one of these objects for each RenderViewHost in Chrome. // Contrast this with ExtensionTabHelper, which is only created for TabContents. class ExtensionMessageHandler : public RenderViewHostObserver { public: // |sender| is guaranteed to outlive this object. explicit ExtensionMessageHandler(RenderViewHost* render_view_host); virtual ~ExtensionMessageHandler(); // RenderViewHostObserver overrides. virtual bool OnMessageReceived(const IPC::Message& message); private: // Message handlers. void OnPostMessage(int port_id, const std::string& message); void OnRequest(const ExtensionHostMsg_DomMessage_Params& params); DISALLOW_COPY_AND_ASSIGN(ExtensionMessageHandler); }; #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
Clarify class comment for ExtensionMessageHandler.
Clarify class comment for ExtensionMessageHandler. [email protected] git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium
c
## Code Before: // Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #pragma once #include "content/browser/renderer_host/render_view_host_observer.h" class Profile; struct ExtensionHostMsg_DomMessage_Params; // Filters and dispatches extension-related IPC messages that arrive from // renderer/extension processes. This object is created for renderers and also // ExtensionHost/BackgroundContents. Contrast this with ExtensionTabHelper, // which is only created for TabContents. class ExtensionMessageHandler : public RenderViewHostObserver { public: // |sender| is guaranteed to outlive this object. explicit ExtensionMessageHandler(RenderViewHost* render_view_host); virtual ~ExtensionMessageHandler(); // RenderViewHostObserver overrides. virtual bool OnMessageReceived(const IPC::Message& message); private: // Message handlers. void OnPostMessage(int port_id, const std::string& message); void OnRequest(const ExtensionHostMsg_DomMessage_Params& params); DISALLOW_COPY_AND_ASSIGN(ExtensionMessageHandler); }; #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ ## Instruction: Clarify class comment for ExtensionMessageHandler. [email protected] git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98 ## Code After: // Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #pragma once #include "content/browser/renderer_host/render_view_host_observer.h" class Profile; struct ExtensionHostMsg_DomMessage_Params; // Filters and dispatches extension-related IPC messages that arrive from // renderers. There is one of these objects for each RenderViewHost in Chrome. // Contrast this with ExtensionTabHelper, which is only created for TabContents. class ExtensionMessageHandler : public RenderViewHostObserver { public: // |sender| is guaranteed to outlive this object. explicit ExtensionMessageHandler(RenderViewHost* render_view_host); virtual ~ExtensionMessageHandler(); // RenderViewHostObserver overrides. virtual bool OnMessageReceived(const IPC::Message& message); private: // Message handlers. void OnPostMessage(int port_id, const std::string& message); void OnRequest(const ExtensionHostMsg_DomMessage_Params& params); DISALLOW_COPY_AND_ASSIGN(ExtensionMessageHandler); }; #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
a18de90de5ef80a1785dea6f2ca1be26e0fddc1d
rootx/src/rootcoreteam.h
rootx/src/rootcoreteam.h
namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this header can be included in different places (as soon as you know what you're doing). //Please, do not modify this file. //[STRINGTOREPLACE const char * gROOTCoreTeam = "Andrei Gheata, Axel Naumann, Bertrand Bellenot, Cristina Cristescu," " Danilo Piparo, Fons Rademakers, Gerardo Ganis, Ilka Antcheva," " Lorenzo Moneta, Matevz Tadel, Olivier Couet, Paul Russo, Pere Mato," " Philippe Canal, Rene Brun, Timur Pocheptsov, Valeri Onuchin," " Vassil Vassilev, Wim Lavrijsen, Wouter Verkerke\n\n"; //STRINGTOREPLACE] } } #endif
namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The names are sorted in alphabetical order. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this header can be included in different places (as soon as you know what you're doing). //Please, do not modify this file. const char * gROOTCoreTeam = //[STRINGTOREPLACE "Andrei Gheata, Axel Naumann, Bertrand Bellenot, Cristina Cristescu," " Danilo Piparo, Fons Rademakers, Gerardo Ganis, Ilka Antcheva," " Lorenzo Moneta, Matevz Tadel, Olivier Couet, Paul Russo, Pere Mato," " Philippe Canal, Rene Brun, Timur Pocheptsov, Valeri Onuchin," " Vassil Vassilev, Wim Lavrijsen, Wouter Verkerke.\n\n"; //STRINGTOREPLACE] } } #endif
Make it even simpler for a script to replace.
Make it even simpler for a script to replace.
C
lgpl-2.1
CristinaCristescu/root,esakellari/root,0x0all/ROOT,smarinac/root,pspe/root,lgiommi/root,davidlt/root,arch1tect0r/root,pspe/root,vukasinmilosevic/root,satyarth934/root,mhuwiler/rootauto,Y--/root,krafczyk/root,krafczyk/root,Y--/root,sawenzel/root,zzxuanyuan/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,sbinet/cxx-root,davidlt/root,thomaskeck/root,buuck/root,sawenzel/root,omazapa/root-old,omazapa/root,arch1tect0r/root,mkret2/root,beniz/root,agarciamontoro/root,gbitzes/root,sbinet/cxx-root,sawenzel/root,gbitzes/root,perovic/root,zzxuanyuan/root,gbitzes/root,omazapa/root-old,pspe/root,agarciamontoro/root,esakellari/root,beniz/root,gganis/root,georgtroska/root,veprbl/root,Duraznos/root,olifre/root,esakellari/root,pspe/root,sirinath/root,veprbl/root,veprbl/root,evgeny-boger/root,olifre/root,lgiommi/root,BerserkerTroll/root,omazapa/root,Y--/root,evgeny-boger/root,karies/root,sirinath/root,perovic/root,omazapa/root-old,satyarth934/root,mkret2/root,gganis/root,olifre/root,mattkretz/root,simonpf/root,krafczyk/root,dfunke/root,zzxuanyuan/root,zzxuanyuan/root,mattkretz/root,nilqed/root,0x0all/ROOT,nilqed/root,sbinet/cxx-root,davidlt/root,mkret2/root,perovic/root,abhinavmoudgil95/root,omazapa/root,abhinavmoudgil95/root,esakellari/root,omazapa/root,vukasinmilosevic/root,simonpf/root,sawenzel/root,sirinath/root,gbitzes/root,gbitzes/root,nilqed/root,pspe/root,sirinath/root,Duraznos/root,CristinaCristescu/root,davidlt/root,0x0all/ROOT,root-mirror/root,beniz/root,evgeny-boger/root,esakellari/my_root_for_test,georgtroska/root,georgtroska/root,vukasinmilosevic/root,sirinath/root,mattkretz/root,jrtomps/root,thomaskeck/root,mattkretz/root,agarciamontoro/root,arch1tect0r/root,Duraznos/root,krafczyk/root,georgtroska/root,buuck/root,arch1tect0r/root,gbitzes/root,jrtomps/root,agarciamontoro/root,arch1tect0r/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,karies/root,krafczyk/root,CristinaCristescu/root,omazapa/root,BerserkerTroll/root,root-mirror/root,veprbl/root,lgiommi/root,omazapa/root-old,gbitzes/root,mattkretz/root,lgiommi/root,vukasinmilosevic/root,lgiommi/root,evgeny-boger/root,veprbl/root,mkret2/root,beniz/root,krafczyk/root,BerserkerTroll/root,agarciamontoro/root,perovic/root,satyarth934/root,georgtroska/root,mattkretz/root,BerserkerTroll/root,gganis/root,davidlt/root,lgiommi/root,olifre/root,jrtomps/root,root-mirror/root,Duraznos/root,BerserkerTroll/root,buuck/root,arch1tect0r/root,vukasinmilosevic/root,buuck/root,zzxuanyuan/root,simonpf/root,sbinet/cxx-root,BerserkerTroll/root,dfunke/root,satyarth934/root,arch1tect0r/root,beniz/root,perovic/root,omazapa/root-old,simonpf/root,olifre/root,dfunke/root,davidlt/root,bbockelm/root,smarinac/root,perovic/root,0x0all/ROOT,olifre/root,sirinath/root,Duraznos/root,beniz/root,veprbl/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,simonpf/root,CristinaCristescu/root,gbitzes/root,gganis/root,arch1tect0r/root,BerserkerTroll/root,pspe/root,nilqed/root,vukasinmilosevic/root,root-mirror/root,buuck/root,root-mirror/root,gganis/root,perovic/root,pspe/root,pspe/root,esakellari/my_root_for_test,abhinavmoudgil95/root,sbinet/cxx-root,nilqed/root,bbockelm/root,abhinavmoudgil95/root,Y--/root,mhuwiler/rootauto,omazapa/root-old,abhinavmoudgil95/root,bbockelm/root,thomaskeck/root,buuck/root,karies/root,dfunke/root,esakellari/my_root_for_test,jrtomps/root,abhinavmoudgil95/root,simonpf/root,omazapa/root-old,esakellari/my_root_for_test,root-mirror/root,davidlt/root,karies/root,perovic/root,Y--/root,esakellari/root,esakellari/root,sawenzel/root,agarciamontoro/root,mhuwiler/rootauto,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,mattkretz/root,zzxuanyuan/root,Y--/root,olifre/root,gbitzes/root,lgiommi/root,agarciamontoro/root,vukasinmilosevic/root,simonpf/root,pspe/root,Y--/root,esakellari/my_root_for_test,beniz/root,root-mirror/root,vukasinmilosevic/root,sirinath/root,davidlt/root,jrtomps/root,satyarth934/root,lgiommi/root,sbinet/cxx-root,CristinaCristescu/root,satyarth934/root,0x0all/ROOT,sawenzel/root,mkret2/root,vukasinmilosevic/root,dfunke/root,sbinet/cxx-root,satyarth934/root,smarinac/root,nilqed/root,georgtroska/root,veprbl/root,arch1tect0r/root,bbockelm/root,0x0all/ROOT,karies/root,bbockelm/root,thomaskeck/root,CristinaCristescu/root,smarinac/root,thomaskeck/root,CristinaCristescu/root,mattkretz/root,simonpf/root,abhinavmoudgil95/root,dfunke/root,evgeny-boger/root,mhuwiler/rootauto,esakellari/my_root_for_test,esakellari/root,pspe/root,Duraznos/root,evgeny-boger/root,nilqed/root,zzxuanyuan/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,beniz/root,nilqed/root,lgiommi/root,sirinath/root,nilqed/root,gganis/root,jrtomps/root,veprbl/root,bbockelm/root,esakellari/root,olifre/root,perovic/root,buuck/root,mkret2/root,lgiommi/root,perovic/root,pspe/root,omazapa/root-old,0x0all/ROOT,beniz/root,mkret2/root,root-mirror/root,BerserkerTroll/root,sirinath/root,krafczyk/root,gbitzes/root,smarinac/root,root-mirror/root,omazapa/root,sawenzel/root,thomaskeck/root,esakellari/my_root_for_test,sawenzel/root,smarinac/root,satyarth934/root,zzxuanyuan/root,abhinavmoudgil95/root,bbockelm/root,sirinath/root,mkret2/root,veprbl/root,abhinavmoudgil95/root,thomaskeck/root,davidlt/root,karies/root,evgeny-boger/root,BerserkerTroll/root,omazapa/root-old,beniz/root,BerserkerTroll/root,jrtomps/root,karies/root,Y--/root,dfunke/root,mhuwiler/rootauto,simonpf/root,esakellari/my_root_for_test,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,zzxuanyuan/root,gganis/root,gganis/root,Duraznos/root,veprbl/root,sawenzel/root,agarciamontoro/root,omazapa/root-old,BerserkerTroll/root,CristinaCristescu/root,gbitzes/root,krafczyk/root,thomaskeck/root,buuck/root,lgiommi/root,georgtroska/root,gganis/root,mhuwiler/rootauto,mattkretz/root,nilqed/root,mkret2/root,sbinet/cxx-root,beniz/root,perovic/root,davidlt/root,sirinath/root,jrtomps/root,karies/root,jrtomps/root,mkret2/root,Y--/root,smarinac/root,sbinet/cxx-root,evgeny-boger/root,bbockelm/root,zzxuanyuan/root,Duraznos/root,mhuwiler/rootauto,omazapa/root,nilqed/root,bbockelm/root,karies/root,agarciamontoro/root,georgtroska/root,gganis/root,mhuwiler/rootauto,sbinet/cxx-root,karies/root,0x0all/ROOT,arch1tect0r/root,sawenzel/root,smarinac/root,omazapa/root,gganis/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,buuck/root,dfunke/root,thomaskeck/root,krafczyk/root,Y--/root,davidlt/root,bbockelm/root,0x0all/ROOT,evgeny-boger/root,jrtomps/root,sawenzel/root,Duraznos/root,dfunke/root,esakellari/my_root_for_test,veprbl/root,mkret2/root,Duraznos/root,satyarth934/root,georgtroska/root,buuck/root,simonpf/root,mattkretz/root,dfunke/root,Y--/root,bbockelm/root,arch1tect0r/root,root-mirror/root,CristinaCristescu/root,omazapa/root-old,sbinet/cxx-root,Duraznos/root,vukasinmilosevic/root,abhinavmoudgil95/root,thomaskeck/root,agarciamontoro/root,olifre/root,esakellari/root,karies/root,dfunke/root,krafczyk/root,mattkretz/root,smarinac/root,georgtroska/root,evgeny-boger/root,simonpf/root,olifre/root,smarinac/root,esakellari/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,olifre/root,vukasinmilosevic/root,esakellari/my_root_for_test,georgtroska/root,omazapa/root,omazapa/root,root-mirror/root,CristinaCristescu/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,krafczyk/root,buuck/root,omazapa/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,CristinaCristescu/root,esakellari/root
c
## Code Before: namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this header can be included in different places (as soon as you know what you're doing). //Please, do not modify this file. //[STRINGTOREPLACE const char * gROOTCoreTeam = "Andrei Gheata, Axel Naumann, Bertrand Bellenot, Cristina Cristescu," " Danilo Piparo, Fons Rademakers, Gerardo Ganis, Ilka Antcheva," " Lorenzo Moneta, Matevz Tadel, Olivier Couet, Paul Russo, Pere Mato," " Philippe Canal, Rene Brun, Timur Pocheptsov, Valeri Onuchin," " Vassil Vassilev, Wim Lavrijsen, Wouter Verkerke\n\n"; //STRINGTOREPLACE] } } #endif ## Instruction: Make it even simpler for a script to replace. ## Code After: namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The names are sorted in alphabetical order. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this header can be included in different places (as soon as you know what you're doing). //Please, do not modify this file. const char * gROOTCoreTeam = //[STRINGTOREPLACE "Andrei Gheata, Axel Naumann, Bertrand Bellenot, Cristina Cristescu," " Danilo Piparo, Fons Rademakers, Gerardo Ganis, Ilka Antcheva," " Lorenzo Moneta, Matevz Tadel, Olivier Couet, Paul Russo, Pere Mato," " Philippe Canal, Rene Brun, Timur Pocheptsov, Valeri Onuchin," " Vassil Vassilev, Wim Lavrijsen, Wouter Verkerke.\n\n"; //STRINGTOREPLACE] } } #endif
a21b91f5b0caff1bc32862f84a57166840fc047c
key_dates.html
key_dates.html
--- layout: main --- <h1>Key Dates for SR{{ site.sr.year }}</h1> <h2>Kickstart</h2> <p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p> <p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the start of the academic year.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list kickstart, branch, Not hosted here, true %} {% endfor %} <h2>Tech Days</h2> <p><a href="/events/tech_days">Tech Days</a> take place throughout the year to help you along with the design and development of your robot.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list tech_day, branch, TBA, true %} {% endfor %} <h2>Competition</h2> {% events_list competition, all, Date TBC, true %}
--- layout: main title: Key Dates --- <h1>Key Dates for SR{{ site.sr.year }}</h1> <h2>Kickstart</h2> <p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p> <p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the start of the academic year.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list kickstart, branch, Not hosted here, true %} {% endfor %} <h2>Tech Days</h2> <p><a href="/events/tech_days">Tech Days</a> take place throughout the year to help you along with the design and development of your robot.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list tech_day, branch, TBA, true %} {% endfor %} <h2>Competition</h2> {% events_list competition, all, Date TBC, true %}
Add a title to the key dates page
Add a title to the key dates page
HTML
mit
prophile/srweb-jekyll,prophile/srweb-jekyll,prophile/srweb-jekyll,PeterJCLaw/srweb-jekyll,PeterJCLaw/srweb-jekyll,prophile/srweb-jekyll,prophile/srweb-jekyll,PeterJCLaw/srweb-jekyll,PeterJCLaw/srweb-jekyll,prophile/srweb-jekyll,PeterJCLaw/srweb-jekyll,PeterJCLaw/srweb-jekyll
html
## Code Before: --- layout: main --- <h1>Key Dates for SR{{ site.sr.year }}</h1> <h2>Kickstart</h2> <p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p> <p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the start of the academic year.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list kickstart, branch, Not hosted here, true %} {% endfor %} <h2>Tech Days</h2> <p><a href="/events/tech_days">Tech Days</a> take place throughout the year to help you along with the design and development of your robot.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list tech_day, branch, TBA, true %} {% endfor %} <h2>Competition</h2> {% events_list competition, all, Date TBC, true %} ## Instruction: Add a title to the key dates page ## Code After: --- layout: main title: Key Dates --- <h1>Key Dates for SR{{ site.sr.year }}</h1> <h2>Kickstart</h2> <p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p> <p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the start of the academic year.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list kickstart, branch, Not hosted here, true %} {% endfor %} <h2>Tech Days</h2> <p><a href="/events/tech_days">Tech Days</a> take place throughout the year to help you along with the design and development of your robot.</p> {% for branch in site.sr.branches %} <h3>{{ branch }}</h3> {% events_list tech_day, branch, TBA, true %} {% endfor %} <h2>Competition</h2> {% events_list competition, all, Date TBC, true %}
fc5652591c650d502598479f487496a642b1ca31
README.md
README.md
Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovich
Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovitch. ESA is well described in a scientific paper. http://en.wikipedia.org/wiki/Explicit_semantic_analysis http://www.cs.technion.ac.il/~gabr/resources/code/esa/esa.html http://www.cs.technion.ac.il/~gabr/papers/ijcai-2007-sim.pdf
Update readme with links to more resources.
Update readme with links to more resources.
Markdown
agpl-3.0
pvoosten/explicit-semantic-analysis
markdown
## Code Before: Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovich ## Instruction: Update readme with links to more resources. ## Code After: Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovitch. ESA is well described in a scientific paper. http://en.wikipedia.org/wiki/Explicit_semantic_analysis http://www.cs.technion.ac.il/~gabr/resources/code/esa/esa.html http://www.cs.technion.ac.il/~gabr/papers/ijcai-2007-sim.pdf
3ed14bcd364d1843e35cd4a6d1bd48e06379c223
linter.py
linter.py
"""This module exports the Hlint plugin class.""" from SublimeLinter.lint import Linter class Hlint(Linter): """Provides an interface to hlint.""" defaults = { 'selector': 'source.haskell' } cmd = 'hlint' regex = ( r'^.+:(?P<line>\d+):' '(?P<col>\d+):\s*' '(?:(?P<error>Error)|(?P<warning>Warning)):\s*' '(?P<message>.+)$' ) multiline = True tempfile_suffix = 'hs'
"""This module exports the Hlint plugin class.""" import json from SublimeLinter.lint import Linter, LintMatch class Hlint(Linter): """Provides an interface to hlint.""" cmd = 'hlint ${args} --json -' defaults = { 'selector': 'source.haskell' } def find_errors(self, output): # type: (str) -> Iterator[LintMatch] errors = json.loads(output) for error in errors: message = "{hint}. Found: {from}".format(**error) if error['to']: message += " Perhaps: {to}".format(**error) yield LintMatch( error_type=error['severity'].lower(), line=error['startLine'] - 1, col=error['startColumn'] - 1, message=message )
Use JSON to parse hlint output
Use JSON to parse hlint output
Python
mit
SublimeLinter/SublimeLinter-hlint
python
## Code Before: """This module exports the Hlint plugin class.""" from SublimeLinter.lint import Linter class Hlint(Linter): """Provides an interface to hlint.""" defaults = { 'selector': 'source.haskell' } cmd = 'hlint' regex = ( r'^.+:(?P<line>\d+):' '(?P<col>\d+):\s*' '(?:(?P<error>Error)|(?P<warning>Warning)):\s*' '(?P<message>.+)$' ) multiline = True tempfile_suffix = 'hs' ## Instruction: Use JSON to parse hlint output ## Code After: """This module exports the Hlint plugin class.""" import json from SublimeLinter.lint import Linter, LintMatch class Hlint(Linter): """Provides an interface to hlint.""" cmd = 'hlint ${args} --json -' defaults = { 'selector': 'source.haskell' } def find_errors(self, output): # type: (str) -> Iterator[LintMatch] errors = json.loads(output) for error in errors: message = "{hint}. Found: {from}".format(**error) if error['to']: message += " Perhaps: {to}".format(**error) yield LintMatch( error_type=error['severity'].lower(), line=error['startLine'] - 1, col=error['startColumn'] - 1, message=message )
f3696c9dc77ee6e52b563174f85d8c6457283128
lib/git_trend.rb
lib/git_trend.rb
require "git_trend/cli" require "git_trend/formatter" require "git_trend/formatters/text_formatter" require "git_trend/formatters/json_formatter" require "git_trend/project" require "git_trend/scraper" require "git_trend/version" module GitTrend # GitTrend.get # GitTrend.get('ruby') # GitTrend.get(:ruby) # # GitTrend.get(since: :weekly) # GitTrend.get(since: :week) # GitTrend.get(since: :w) # # GitTrend.get('ruby', 'weekly') # GitTrend.get(:ruby, :weekly) # GitTrend.get(language: :ruby, since: :weekly) def self.get(*opts) if opts[0].instance_of?(Hash) hash = opts[0] language = hash.key?(:language) ? hash[:language] : nil since = hash.key?(:since) ? hash[:since] : nil Scraper.new.get(language, since) else Scraper.new.get(*opts) end end def self.languages Scraper.new.languages end end
require "git_trend/cli" require "git_trend/formatter" require "git_trend/formatters/text_formatter" require "git_trend/formatters/json_formatter" require "git_trend/project" require "git_trend/scraper" require "git_trend/version" module GitTrend # GitTrend.get # GitTrend.get('ruby') # GitTrend.get(:ruby) # # GitTrend.get(since: :weekly) # GitTrend.get(since: :week) # GitTrend.get(since: :w) # # GitTrend.get('ruby', 'weekly') # GitTrend.get(:ruby, :weekly) # GitTrend.get(language: :ruby, since: :weekly) def self.get(*opts) if opts[0].instance_of?(Hash) opt = opts[0] Scraper.new.get(opt[:language], opt[:since]) else Scraper.new.get(*opts) end end def self.languages Scraper.new.languages end end
Refactor to simlify arguments handling
Refactor to simlify arguments handling
Ruby
mit
rochefort/git-trend,rochefort/git-trend
ruby
## Code Before: require "git_trend/cli" require "git_trend/formatter" require "git_trend/formatters/text_formatter" require "git_trend/formatters/json_formatter" require "git_trend/project" require "git_trend/scraper" require "git_trend/version" module GitTrend # GitTrend.get # GitTrend.get('ruby') # GitTrend.get(:ruby) # # GitTrend.get(since: :weekly) # GitTrend.get(since: :week) # GitTrend.get(since: :w) # # GitTrend.get('ruby', 'weekly') # GitTrend.get(:ruby, :weekly) # GitTrend.get(language: :ruby, since: :weekly) def self.get(*opts) if opts[0].instance_of?(Hash) hash = opts[0] language = hash.key?(:language) ? hash[:language] : nil since = hash.key?(:since) ? hash[:since] : nil Scraper.new.get(language, since) else Scraper.new.get(*opts) end end def self.languages Scraper.new.languages end end ## Instruction: Refactor to simlify arguments handling ## Code After: require "git_trend/cli" require "git_trend/formatter" require "git_trend/formatters/text_formatter" require "git_trend/formatters/json_formatter" require "git_trend/project" require "git_trend/scraper" require "git_trend/version" module GitTrend # GitTrend.get # GitTrend.get('ruby') # GitTrend.get(:ruby) # # GitTrend.get(since: :weekly) # GitTrend.get(since: :week) # GitTrend.get(since: :w) # # GitTrend.get('ruby', 'weekly') # GitTrend.get(:ruby, :weekly) # GitTrend.get(language: :ruby, since: :weekly) def self.get(*opts) if opts[0].instance_of?(Hash) opt = opts[0] Scraper.new.get(opt[:language], opt[:since]) else Scraper.new.get(*opts) end end def self.languages Scraper.new.languages end end
aa1a7a8b481411f027d3931a2d52382398345ac1
tests/test-x509.c
tests/test-x509.c
static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=server"); bson_free (subject); subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL); ASSERT_CMPSTR (subject, "C=IS,ST=Kopavogur,L=Kopavogur,O=MongoDB,OU=Drivers,CN=client"); bson_free (subject); } #endif void test_x509_install (TestSuite *suite) { #ifdef MONGOC_ENABLE_OPENSSL TestSuite_Add (suite, "/X509/extract_subject", test_extract_subject); #endif }
static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=US,ST=California,L=Palo Alto,O=MongoDB,OU=Drivers,CN=server"); bson_free (subject); subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL); ASSERT_CMPSTR (subject, "C=NO,ST=Oslo,L=Oslo,O=MongoDB,OU=Drivers,CN=client"); bson_free (subject); } #endif void test_x509_install (TestSuite *suite) { #ifdef MONGOC_ENABLE_OPENSSL TestSuite_Add (suite, "/X509/extract_subject", test_extract_subject); #endif }
Fix last-minute certificate subject changes
Fix last-minute certificate subject changes
C
apache-2.0
christopherjwang/mongo-c-driver,mongodb/mongo-c-driver,bjori/mongo-c-driver,ajdavis/mongo-c-driver,ajdavis/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,ajdavis/mongo-c-driver,mongodb/mongo-c-driver,acmorrow/mongo-c-driver,Machyne/mongo-c-driver,rcsanchez97/mongo-c-driver,christopherjwang/mongo-c-driver,Machyne/mongo-c-driver,Machyne/mongo-c-driver,acmorrow/mongo-c-driver,jmikola/mongo-c-driver,remicollet/mongo-c-driver,bjori/mongo-c-driver,bjori/mongo-c-driver,jmikola/mongo-c-driver,bjori/mongo-c-driver,Convey-Compliance/mongo-c-driver,Convey-Compliance/mongo-c-driver,mschoenlaub/mongo-c-driver,mschoenlaub/mongo-c-driver,christopherjwang/mongo-c-driver,bjori/mongo-c-driver,remicollet/mongo-c-driver,derickr/mongo-c-driver,ajdavis/mongo-c-driver,jmikola/mongo-c-driver,remicollet/mongo-c-driver,remicollet/mongo-c-driver,beingmeta/mongo-c-driver,rcsanchez97/mongo-c-driver,beingmeta/mongo-c-driver,mongodb/mongo-c-driver,mschoenlaub/mongo-c-driver,Machyne/mongo-c-driver,beingmeta/mongo-c-driver,ajdavis/mongo-c-driver,ajdavis/mongo-c-driver,jmikola/mongo-c-driver,bjori/mongo-c-driver,rcsanchez97/mongo-c-driver,jmikola/mongo-c-driver,malexzx/mongo-c-driver,rcsanchez97/mongo-c-driver,malexzx/mongo-c-driver,derickr/mongo-c-driver,remicollet/mongo-c-driver,derickr/mongo-c-driver,acmorrow/mongo-c-driver,Convey-Compliance/mongo-c-driver,derickr/mongo-c-driver,mongodb/mongo-c-driver,malexzx/mongo-c-driver,derickr/mongo-c-driver,acmorrow/mongo-c-driver,mschoenlaub/mongo-c-driver,malexzx/mongo-c-driver,acmorrow/mongo-c-driver,derickr/mongo-c-driver,beingmeta/mongo-c-driver,Convey-Compliance/mongo-c-driver,bjori/mongo-c-driver,mongodb/mongo-c-driver,derickr/mongo-c-driver,ajdavis/mongo-c-driver,rcsanchez97/mongo-c-driver,rcsanchez97/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,beingmeta/mongo-c-driver,remicollet/mongo-c-driver,remicollet/mongo-c-driver,beingmeta/mongo-c-driver,christopherjwang/mongo-c-driver,acmorrow/mongo-c-driver,acmorrow/mongo-c-driver,mongodb/mongo-c-driver,Convey-Compliance/mongo-c-driver,mongodb/mongo-c-driver,rcsanchez97/mongo-c-driver
c
## Code Before: static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=server"); bson_free (subject); subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL); ASSERT_CMPSTR (subject, "C=IS,ST=Kopavogur,L=Kopavogur,O=MongoDB,OU=Drivers,CN=client"); bson_free (subject); } #endif void test_x509_install (TestSuite *suite) { #ifdef MONGOC_ENABLE_OPENSSL TestSuite_Add (suite, "/X509/extract_subject", test_extract_subject); #endif } ## Instruction: Fix last-minute certificate subject changes ## Code After: static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=US,ST=California,L=Palo Alto,O=MongoDB,OU=Drivers,CN=server"); bson_free (subject); subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL); ASSERT_CMPSTR (subject, "C=NO,ST=Oslo,L=Oslo,O=MongoDB,OU=Drivers,CN=client"); bson_free (subject); } #endif void test_x509_install (TestSuite *suite) { #ifdef MONGOC_ENABLE_OPENSSL TestSuite_Add (suite, "/X509/extract_subject", test_extract_subject); #endif }
e3da80c8c57eaba6074c0543f5576e178eeffecb
vim/startup/functions/directories.vim
vim/startup/functions/directories.vim
function! Cdfile() cd %:h pwd endfunction " cd to the root of the current file's git directory function! Cdroot() cd %:h exec "cd " . Trim(system("git rev-parse --show-toplevel")) pwd endfunction
function! Cdfile() if expand('%') != '' cd %:h else echom "Not currently in a file." endif endfunction " cd to the root of the current file's git directory function! Cdroot() call Cdfile() exec "cd " . Trim(system("git rev-parse --show-toplevel")) echom expand('.') endfunction
Make Cdf and Cdr no-ops when not in a file
Make Cdf and Cdr no-ops when not in a file
VimL
mit
yarko3/dotfiles,yarko3/dotfiles
viml
## Code Before: function! Cdfile() cd %:h pwd endfunction " cd to the root of the current file's git directory function! Cdroot() cd %:h exec "cd " . Trim(system("git rev-parse --show-toplevel")) pwd endfunction ## Instruction: Make Cdf and Cdr no-ops when not in a file ## Code After: function! Cdfile() if expand('%') != '' cd %:h else echom "Not currently in a file." endif endfunction " cd to the root of the current file's git directory function! Cdroot() call Cdfile() exec "cd " . Trim(system("git rev-parse --show-toplevel")) echom expand('.') endfunction
74482eab5bfb8d756e43293be90379e149e5c11b
README.md
README.md
**go-metrics-prometheus** [![Build Status](https://api.travis-ci.org/deathowl/go-metrics-prometheus.svg)](https://travis-ci.org/deathowl/go-metrics-prometheus) This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of exporting the metrics is still your responsibility. Usage: ``` import "github.com/deathowl/go-metrics-prometheus" import "github.com/prometheus/client_golang/prometheus" prometheusRegistry := prometheus.NewRegistry() metricsRegistry := metrics.NewRegistry() pClient := NewPrometheusProvider(metricsRegistry, "test", "subsys", prometheusRegistry, 1*time.Second) go pClient.UpdatePrometheusMetrics() ```
**go-metrics-prometheus** [![Build Status](https://api.travis-ci.org/deathowl/go-metrics-prometheus.svg)](https://travis-ci.org/deathowl/go-metrics-prometheus) This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of exporting the metrics is still your responsibility. Usage: ``` import "github.com/deathowl/go-metrics-prometheus" import "github.com/prometheus/client_golang/prometheus" metricsRegistry := metrics.NewRegistry() prometheusClient := prometheusmetrics.NewPrometheusProvider( metrics.DefaultRegistry, "whatever","something",prometheus.DefaultRegisterer, 1*time.Second) go prometheusClient.UpdatePrometheusMetrics() ```
Add info about using DefaultRegisterer to readme
Add info about using DefaultRegisterer to readme Add info about using prometheus.DefaultRegisterer instead of prometheus.NewRegistry()
Markdown
apache-2.0
deathowl/go-metrics-prometheus,deathowl/go-metrics-prometheus
markdown
## Code Before: **go-metrics-prometheus** [![Build Status](https://api.travis-ci.org/deathowl/go-metrics-prometheus.svg)](https://travis-ci.org/deathowl/go-metrics-prometheus) This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of exporting the metrics is still your responsibility. Usage: ``` import "github.com/deathowl/go-metrics-prometheus" import "github.com/prometheus/client_golang/prometheus" prometheusRegistry := prometheus.NewRegistry() metricsRegistry := metrics.NewRegistry() pClient := NewPrometheusProvider(metricsRegistry, "test", "subsys", prometheusRegistry, 1*time.Second) go pClient.UpdatePrometheusMetrics() ``` ## Instruction: Add info about using DefaultRegisterer to readme Add info about using prometheus.DefaultRegisterer instead of prometheus.NewRegistry() ## Code After: **go-metrics-prometheus** [![Build Status](https://api.travis-ci.org/deathowl/go-metrics-prometheus.svg)](https://travis-ci.org/deathowl/go-metrics-prometheus) This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of exporting the metrics is still your responsibility. Usage: ``` import "github.com/deathowl/go-metrics-prometheus" import "github.com/prometheus/client_golang/prometheus" metricsRegistry := metrics.NewRegistry() prometheusClient := prometheusmetrics.NewPrometheusProvider( metrics.DefaultRegistry, "whatever","something",prometheus.DefaultRegisterer, 1*time.Second) go prometheusClient.UpdatePrometheusMetrics() ```
a83e9866b5aad2cba207f450f373bfdb6e59ce44
README.md
README.md
U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih klasa. ## Sadržaj 1. [Uvod](## Uvod) 1. [Modeliranje procesa](## Modeliranje procesa) 1. [Povijest](### Povijest) 1. [Standardi](### Standardi) 1. [OMG](### OMG) ## Uvod ## Modeliranje procesa ### Povijest ### Standardi ### OMG ## Resursi [HTML 5 Canvas YouTube tutorial](https://www.youtube.com/watch?v=EO6OkltgudE&list=PLpPnRKq7eNW3We9VdCfx9fprhqXHwTPXL) [PaperJS Docs](http://paperjs.org/reference/global/#) [PaperJS Tuts](http://paperjs.org/tutorials/)
U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih klasa. ## Resursi [HTML 5 Canvas YouTube tutorial](https://www.youtube.com/watch?v=EO6OkltgudE&list=PLpPnRKq7eNW3We9VdCfx9fprhqXHwTPXL) [PaperJS Docs](http://paperjs.org/reference/global/#) [PaperJS Tuts](http://paperjs.org/tutorials/)
Update Readme - removed table of contents
Update Readme - removed table of contents
Markdown
mit
gloga/bpmn-canvas-app,gloga/bpmn-canvas-app
markdown
## Code Before: U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih klasa. ## Sadržaj 1. [Uvod](## Uvod) 1. [Modeliranje procesa](## Modeliranje procesa) 1. [Povijest](### Povijest) 1. [Standardi](### Standardi) 1. [OMG](### OMG) ## Uvod ## Modeliranje procesa ### Povijest ### Standardi ### OMG ## Resursi [HTML 5 Canvas YouTube tutorial](https://www.youtube.com/watch?v=EO6OkltgudE&list=PLpPnRKq7eNW3We9VdCfx9fprhqXHwTPXL) [PaperJS Docs](http://paperjs.org/reference/global/#) [PaperJS Tuts](http://paperjs.org/tutorials/) ## Instruction: Update Readme - removed table of contents ## Code After: U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih klasa. ## Resursi [HTML 5 Canvas YouTube tutorial](https://www.youtube.com/watch?v=EO6OkltgudE&list=PLpPnRKq7eNW3We9VdCfx9fprhqXHwTPXL) [PaperJS Docs](http://paperjs.org/reference/global/#) [PaperJS Tuts](http://paperjs.org/tutorials/)
afdfcef3cf7f390dd0fc7eac0806272742ffa479
core/models/payment.py
core/models/payment.py
from django.db import models from django.db.models import signals from django.utils.translation import ugettext_lazy as _ from core.mixins import AuditableMixin from .invoice import Invoice class Payment(AuditableMixin, models.Model): invoice = models.ForeignKey( Invoice, editable=False, on_delete=models.CASCADE, verbose_name=_("Invoice") ) description = models.TextField( blank=True, null=True, verbose_name=_("Description") ) total = models.DecimalField( max_digits=12, decimal_places=2, verbose_name=_("Total") ) class Meta: ordering = ['-date_creation', ] verbose_name = _("Payment") verbose_name_plural = _("Payments") def __str__(self): return "%.2f" % self.total def get_absolute_url(self): return self.parent.get_absolute_url() @property def company(self): return self.parent.company @property def parent(self): return self.invoice def post_save_payment(instance, sender, created, **kwargs): if instance.invoice.is_payed and not instance.company.is_active: instance.company.activate() signals.post_save.connect(post_save_payment, sender=Payment)
from django.db import models from django.db.models import signals from django.utils.translation import ugettext_lazy as _ from core.mixins import AuditableMixin class Payment(AuditableMixin, models.Model): invoice = models.ForeignKey( 'core.Invoice', editable=False, on_delete=models.CASCADE, verbose_name=_("Invoice") ) description = models.TextField( blank=True, null=True, verbose_name=_("Description") ) total = models.DecimalField( max_digits=12, decimal_places=2, verbose_name=_("Total") ) class Meta: ordering = ['-date_creation', ] verbose_name = _("Payment") verbose_name_plural = _("Payments") def __str__(self): return "%.2f" % self.total def get_absolute_url(self): return self.parent.get_absolute_url() @property def company(self): return self.parent.company @property def parent(self): return self.invoice def post_save_payment(instance, sender, created, **kwargs): if instance.invoice.is_paid and not instance.company.is_active: instance.company.activate() signals.post_save.connect(post_save_payment, sender=Payment)
Use string instead of class
Use string instead of class
Python
bsd-3-clause
ikcam/django-skeleton,ikcam/django-skeleton,ikcam/django-skeleton,ikcam/django-skeleton
python
## Code Before: from django.db import models from django.db.models import signals from django.utils.translation import ugettext_lazy as _ from core.mixins import AuditableMixin from .invoice import Invoice class Payment(AuditableMixin, models.Model): invoice = models.ForeignKey( Invoice, editable=False, on_delete=models.CASCADE, verbose_name=_("Invoice") ) description = models.TextField( blank=True, null=True, verbose_name=_("Description") ) total = models.DecimalField( max_digits=12, decimal_places=2, verbose_name=_("Total") ) class Meta: ordering = ['-date_creation', ] verbose_name = _("Payment") verbose_name_plural = _("Payments") def __str__(self): return "%.2f" % self.total def get_absolute_url(self): return self.parent.get_absolute_url() @property def company(self): return self.parent.company @property def parent(self): return self.invoice def post_save_payment(instance, sender, created, **kwargs): if instance.invoice.is_payed and not instance.company.is_active: instance.company.activate() signals.post_save.connect(post_save_payment, sender=Payment) ## Instruction: Use string instead of class ## Code After: from django.db import models from django.db.models import signals from django.utils.translation import ugettext_lazy as _ from core.mixins import AuditableMixin class Payment(AuditableMixin, models.Model): invoice = models.ForeignKey( 'core.Invoice', editable=False, on_delete=models.CASCADE, verbose_name=_("Invoice") ) description = models.TextField( blank=True, null=True, verbose_name=_("Description") ) total = models.DecimalField( max_digits=12, decimal_places=2, verbose_name=_("Total") ) class Meta: ordering = ['-date_creation', ] verbose_name = _("Payment") verbose_name_plural = _("Payments") def __str__(self): return "%.2f" % self.total def get_absolute_url(self): return self.parent.get_absolute_url() @property def company(self): return self.parent.company @property def parent(self): return self.invoice def post_save_payment(instance, sender, created, **kwargs): if instance.invoice.is_paid and not instance.company.is_active: instance.company.activate() signals.post_save.connect(post_save_payment, sender=Payment)
a8857834ca63ead1d53c7136ada3f27d77bc7a99
src/store.js
src/store.js
//@flow import { createStore, compose, applyMiddleware } from "redux"; import { routerMiddleware } from "react-router-redux"; import createHistory from "history/createBrowserHistory"; import reducers from "./data/reducers"; const defaultState = {}; export const history = createHistory(); const middlewares = [routerMiddleware(history)]; if (process.env.NODE_ENV === `development`) { const { logger } = require(`redux-logger`); middlewares.push(logger); } const enhancers = compose( window.devToolsExtension ? window.devToolsExtension() : f => f, applyMiddleware(...middlewares) ); const store = createStore(reducers, defaultState, enhancers); export default function configureStore() { const store = createStore(reducers, defaultState, enhancers); if (module.hot) { module.hot.accept(reducers, () => { const nextRootReducer = require("./data/reducers").default; store.replaceReducer(nextRootReducer); }); } }
//@flow import { createStore, compose, applyMiddleware } from "redux"; import { routerMiddleware } from "react-router-redux"; import createHistory from "history/createBrowserHistory"; import reducers from "./data/reducers"; import cards from "./data/state/cards"; const defaultState = { cards }; export const history = createHistory(); const middlewares = [routerMiddleware(history)]; if (process.env.NODE_ENV === `development`) { const { logger } = require(`redux-logger`); middlewares.push(logger); } const enhancers = compose( window.devToolsExtension ? window.devToolsExtension() : f => f, applyMiddleware(...middlewares) ); const store = createStore(reducers, defaultState, enhancers); if (module.hot) { module.hot.accept("./data/reducers", () => { store.replaceReducer(reducers); }); } export default store;
Add cards to default state and hot reload reducers
Add cards to default state and hot reload reducers
JavaScript
mit
slightly-askew/portfolio-2017,slightly-askew/portfolio-2017
javascript
## Code Before: //@flow import { createStore, compose, applyMiddleware } from "redux"; import { routerMiddleware } from "react-router-redux"; import createHistory from "history/createBrowserHistory"; import reducers from "./data/reducers"; const defaultState = {}; export const history = createHistory(); const middlewares = [routerMiddleware(history)]; if (process.env.NODE_ENV === `development`) { const { logger } = require(`redux-logger`); middlewares.push(logger); } const enhancers = compose( window.devToolsExtension ? window.devToolsExtension() : f => f, applyMiddleware(...middlewares) ); const store = createStore(reducers, defaultState, enhancers); export default function configureStore() { const store = createStore(reducers, defaultState, enhancers); if (module.hot) { module.hot.accept(reducers, () => { const nextRootReducer = require("./data/reducers").default; store.replaceReducer(nextRootReducer); }); } } ## Instruction: Add cards to default state and hot reload reducers ## Code After: //@flow import { createStore, compose, applyMiddleware } from "redux"; import { routerMiddleware } from "react-router-redux"; import createHistory from "history/createBrowserHistory"; import reducers from "./data/reducers"; import cards from "./data/state/cards"; const defaultState = { cards }; export const history = createHistory(); const middlewares = [routerMiddleware(history)]; if (process.env.NODE_ENV === `development`) { const { logger } = require(`redux-logger`); middlewares.push(logger); } const enhancers = compose( window.devToolsExtension ? window.devToolsExtension() : f => f, applyMiddleware(...middlewares) ); const store = createStore(reducers, defaultState, enhancers); if (module.hot) { module.hot.accept("./data/reducers", () => { store.replaceReducer(reducers); }); } export default store;
12ea2e331e23eb4e8d05b14b81d67d01d5a87b28
.github/workflows/release.yml
.github/workflows/release.yml
name: tag on: push: tags: # this is a glob, not a regexp - '[0-9]*' jobs: release: runs-on: ubuntu-latest steps: - name: Clone repository uses: actions/checkout@v2 - name: Build release tarball # run as root; current Ubuntu podman breaks user networking ("could not find slirp4netns") run: sudo PUBLISH_TAR=1 tests/run-apt - name: Create GitHub release uses: docker://antonyurchenko/git-release:latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CHANGELOG_FILE: "NEWS" with: args: umockdev-*.tar.xz
name: tag on: push: tags: # this is a glob, not a regexp - '[0-9]*' jobs: release: runs-on: ubuntu-latest steps: - name: Clone repository uses: actions/checkout@v2 - name: Workaround for https://github.com/actions/checkout/pull/697 run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags) - name: Build release tarball # run as root; current Ubuntu podman breaks user networking ("could not find slirp4netns") run: sudo PUBLISH_TAR=1 tests/run-apt - name: Create GitHub release uses: docker://antonyurchenko/git-release:latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CHANGELOG_FILE: "NEWS" with: args: umockdev-*.tar.xz
Add workaround for actions/checkout tag breakage
workflows: Add workaround for actions/checkout tag breakage See https://github.com/actions/checkout/pull/697
YAML
lgpl-2.1
martinpitt/umockdev,martinpitt/umockdev,martinpitt/umockdev
yaml
## Code Before: name: tag on: push: tags: # this is a glob, not a regexp - '[0-9]*' jobs: release: runs-on: ubuntu-latest steps: - name: Clone repository uses: actions/checkout@v2 - name: Build release tarball # run as root; current Ubuntu podman breaks user networking ("could not find slirp4netns") run: sudo PUBLISH_TAR=1 tests/run-apt - name: Create GitHub release uses: docker://antonyurchenko/git-release:latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CHANGELOG_FILE: "NEWS" with: args: umockdev-*.tar.xz ## Instruction: workflows: Add workaround for actions/checkout tag breakage See https://github.com/actions/checkout/pull/697 ## Code After: name: tag on: push: tags: # this is a glob, not a regexp - '[0-9]*' jobs: release: runs-on: ubuntu-latest steps: - name: Clone repository uses: actions/checkout@v2 - name: Workaround for https://github.com/actions/checkout/pull/697 run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags) - name: Build release tarball # run as root; current Ubuntu podman breaks user networking ("could not find slirp4netns") run: sudo PUBLISH_TAR=1 tests/run-apt - name: Create GitHub release uses: docker://antonyurchenko/git-release:latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CHANGELOG_FILE: "NEWS" with: args: umockdev-*.tar.xz
0ce686badf30cf4769fb7fc5af793c9b65a6e0a4
docs/assets/scss/components/_sidebar.scss
docs/assets/scss/components/_sidebar.scss
.docs-sidebar { padding: 0 !important; background: #f9f9f9 !important; border-right: 1px solid #e7e7e7; transition-timing-function: get-timing(bounceInOut) !important; @include breakpoint(medium) { @include grid-panel-reset; @include grid-block(3); @include grid-orient(vertical); } @include breakpoint(large) { @include grid-size(2); } .menu-bar { background: #f9f9f9 !important; a { font-size: .8rem; color: $primary-color; align-items: flex-start; } .title { font-size: 0.85rem; text-transform: uppercase; color: #666; font-weight: bold; padding-top: 1.5rem; padding-bottom: 0; } } }
.docs-sidebar { padding: 0 !important; background: #f9f9f9 !important; border-right: 1px solid #e7e7e7; transition-timing-function: get-timing(bounceInOut) !important; @include breakpoint(medium) { @include grid-panel-reset; @include grid-block(3); @include grid-orient(vertical); } @include breakpoint(large) { @include grid-size(2); } .menu-bar { background: #f9f9f9 !important; a { font-size: .8rem; color: $primary-color; align-items: flex-start; padding-top: 0.75rem; padding-bottom: 0.75rem; } .title { font-size: 0.85rem; text-transform: uppercase; color: #666; font-weight: bold; padding-top: 1rem; padding-bottom: 0.25rem; } } }
Compress appearance of sidebar component list in docs
Compress appearance of sidebar component list in docs
SCSS
mit
pioug/foundation-apps,nolimitid/foundation-apps,laurent-le-graverend/foundation-apps,fatpixel/mv-foundation-apps,GeorgeMe/foundation-apps,silencekillsdesign/foundation-apps,lunks/foundation-apps,dragthor/foundation-apps,pioug/foundation-apps,erikmellum/foundation-apps,bpbp-boop/foundation-apps,fatpixel/mv-foundation-apps,silencekillsdesign/foundation-apps,dragthor/foundation-apps,zurb/foundation-apps,bitsandco/foundation-apps,SaiNadh001/foundation-apps,zurb/foundation-apps,kristianmandrup/foundation-apps,chirilo/foundation-apps,dortort/foundation-apps-grid,chirilo/foundation-apps,erikmellum/foundation-apps,digideskio/foundation-apps,silencekillsdesign/foundation-apps,dortort/foundation-apps-grid,zurb/foundation-apps,laurent-le-graverend/foundation-apps,KalisaFalzone/foundation-apps,nolimitid/foundation-apps,bitsandco/foundation-apps,digideskio/foundation-apps,fatpixel/mv-foundation-apps,base-apps/angular-base,kristianmandrup/foundation-apps,laurent-le-graverend/foundation-apps,SaiNadh001/foundation-apps,base-apps/angular-base,kristianmandrup/foundation-apps,nolimitid/foundation-apps,chrisdubya/foundation-apps,chirilo/foundation-apps,chrisdubya/foundation-apps,digideskio/foundation-apps,bpbp-boop/foundation-apps,lunks/foundation-apps,erikmellum/foundation-apps,KalisaFalzone/foundation-apps,bpbp-boop/foundation-apps,GeorgeMe/foundation-apps,GeorgeMe/foundation-apps,base-apps/angular-base-apps,chrisdubya/foundation-apps,SaiNadh001/foundation-apps,base-apps/angular-base-apps,dragthor/foundation-apps,KalisaFalzone/foundation-apps,lunks/foundation-apps,pioug/foundation-apps,bitsandco/foundation-apps,dortort/foundation-apps-grid
scss
## Code Before: .docs-sidebar { padding: 0 !important; background: #f9f9f9 !important; border-right: 1px solid #e7e7e7; transition-timing-function: get-timing(bounceInOut) !important; @include breakpoint(medium) { @include grid-panel-reset; @include grid-block(3); @include grid-orient(vertical); } @include breakpoint(large) { @include grid-size(2); } .menu-bar { background: #f9f9f9 !important; a { font-size: .8rem; color: $primary-color; align-items: flex-start; } .title { font-size: 0.85rem; text-transform: uppercase; color: #666; font-weight: bold; padding-top: 1.5rem; padding-bottom: 0; } } } ## Instruction: Compress appearance of sidebar component list in docs ## Code After: .docs-sidebar { padding: 0 !important; background: #f9f9f9 !important; border-right: 1px solid #e7e7e7; transition-timing-function: get-timing(bounceInOut) !important; @include breakpoint(medium) { @include grid-panel-reset; @include grid-block(3); @include grid-orient(vertical); } @include breakpoint(large) { @include grid-size(2); } .menu-bar { background: #f9f9f9 !important; a { font-size: .8rem; color: $primary-color; align-items: flex-start; padding-top: 0.75rem; padding-bottom: 0.75rem; } .title { font-size: 0.85rem; text-transform: uppercase; color: #666; font-weight: bold; padding-top: 1rem; padding-bottom: 0.25rem; } } }
9505543f21a188c38720750b931863a2de84effe
README.md
README.md
xmpp-ftw-item-parser ==================== Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML
xmpp-ftw-item-parser ==================== Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML. # Build status [![Build Status](https://secure.travis-ci.org/lloydwatkin/xmpp-ftw-item-parser.png)](http://travis-ci.org/lloydwatkin/xmpp-ftw-item-parser)
Add travis build status image
Add travis build status image
Markdown
apache-2.0
xmpp-ftw/xmpp-ftw-item-parser
markdown
## Code Before: xmpp-ftw-item-parser ==================== Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML ## Instruction: Add travis build status image ## Code After: xmpp-ftw-item-parser ==================== Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML. # Build status [![Build Status](https://secure.travis-ci.org/lloydwatkin/xmpp-ftw-item-parser.png)](http://travis-ci.org/lloydwatkin/xmpp-ftw-item-parser)
f0c8547d2c0de6cde9d58da2aebd6d5644ebb98e
lib/twitter_client.rb
lib/twitter_client.rb
require 'contracts' require 'twitter' # Establishes the Twitter client class TwitterClient include Contracts::Core # Shortcut for contracts C = Contracts Contract Hash => nil def initialize(credentials) # @config = { # consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs', # consumer_secret: 'hjKJVdd2ikwHdD8SMJjDQQOxxw8FmhI22s3oGXtR7u3OllcDqf', # access_token: '794719566966333440-dR7EPJfd6wR5Wc0nhSR1yGZfKmrqPpI', # access_token_secret: 'YWwWVFhRRx84NH2VxjyxnUIiyeT2tEZZiBb8wjQ72ARRX' # } @client = Twitter::REST::Client.new(credentials) fail 'Unable to load your credentials' unless @client.credentials? end Contract String => nil # Wrapper for Twitter::Rest::Client.update with retries if too many requests def update(post) @client.update(post) rescue Twitter::Error::TooManyRequests => error # NOTE: Your process could go to sleep for up to 15 minutes but if you # retry any sooner, it will almost certainly fail with the same exception. sleep error.rate_limit.reset_in + 1 retry end end
require 'contracts' require 'twitter' # Establishes the Twitter client class TwitterClient include Contracts::Core # Shortcut for contracts C = Contracts Contract Hash => nil def initialize(credentials) # @config = { # consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs', # consumer_secret: 'hjKJVdd2ikwHdD8SMJjDQQOxxw8FmhI22s3oGXtR7u3OllcDqf', # access_token: '794719566966333440-dR7EPJfd6wR5Wc0nhSR1yGZfKmrqPpI', # access_token_secret: 'YWwWVFhRRx84NH2VxjyxnUIiyeT2tEZZiBb8wjQ72ARRX' # } @client = Twitter::REST::Client.new(credentials) fail 'Unable to load your credentials' unless @client.credentials? end Contract String => Twitter::Tweet # Wrapper for Twitter::Rest::Client.update with retries if too many requests def update(post) @client.update(post) rescue Twitter::Error::TooManyRequests => error # NOTE: Your process could go to sleep for up to 15 minutes but if you # retry any sooner, it will almost certainly fail with the same exception. sleep error.rate_limit.reset_in + 1 retry end end
Fix contract for twitter client
Fix contract for twitter client
Ruby
mit
ellisandy/awl_tags_twitter
ruby
## Code Before: require 'contracts' require 'twitter' # Establishes the Twitter client class TwitterClient include Contracts::Core # Shortcut for contracts C = Contracts Contract Hash => nil def initialize(credentials) # @config = { # consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs', # consumer_secret: 'hjKJVdd2ikwHdD8SMJjDQQOxxw8FmhI22s3oGXtR7u3OllcDqf', # access_token: '794719566966333440-dR7EPJfd6wR5Wc0nhSR1yGZfKmrqPpI', # access_token_secret: 'YWwWVFhRRx84NH2VxjyxnUIiyeT2tEZZiBb8wjQ72ARRX' # } @client = Twitter::REST::Client.new(credentials) fail 'Unable to load your credentials' unless @client.credentials? end Contract String => nil # Wrapper for Twitter::Rest::Client.update with retries if too many requests def update(post) @client.update(post) rescue Twitter::Error::TooManyRequests => error # NOTE: Your process could go to sleep for up to 15 minutes but if you # retry any sooner, it will almost certainly fail with the same exception. sleep error.rate_limit.reset_in + 1 retry end end ## Instruction: Fix contract for twitter client ## Code After: require 'contracts' require 'twitter' # Establishes the Twitter client class TwitterClient include Contracts::Core # Shortcut for contracts C = Contracts Contract Hash => nil def initialize(credentials) # @config = { # consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs', # consumer_secret: 'hjKJVdd2ikwHdD8SMJjDQQOxxw8FmhI22s3oGXtR7u3OllcDqf', # access_token: '794719566966333440-dR7EPJfd6wR5Wc0nhSR1yGZfKmrqPpI', # access_token_secret: 'YWwWVFhRRx84NH2VxjyxnUIiyeT2tEZZiBb8wjQ72ARRX' # } @client = Twitter::REST::Client.new(credentials) fail 'Unable to load your credentials' unless @client.credentials? end Contract String => Twitter::Tweet # Wrapper for Twitter::Rest::Client.update with retries if too many requests def update(post) @client.update(post) rescue Twitter::Error::TooManyRequests => error # NOTE: Your process could go to sleep for up to 15 minutes but if you # retry any sooner, it will almost certainly fail with the same exception. sleep error.rate_limit.reset_in + 1 retry end end
76517de87d1a38753619b27fb5f787892d533512
lms/djangoapps/courseware/features/annotatable.feature
lms/djangoapps/courseware/features/annotatable.feature
@shard_2 Feature: LMS.Annotatable Component As a student, I want to view an Annotatable component in the LMS Scenario: An Annotatable component can be rendered in the LMS Given that a course has an annotatable component with 2 annotations When I view the annotatable component Then the annotatable component has rendered And the annotatable component has 2 highlighted passages Scenario: An Annotatable component links to annonation problems in the LMS Given that a course has an annotatable component with 2 annotations And the course has 2 annotatation problems When I view the annotatable component And I click "Reply to annotation" on passage <problem> Then I am scrolled to that annotation problem When I answer that annotation problem Then I receive feedback on that annotation problem When I click "Return to annotation" on that problem Then I am scrolled to the annotatable component Examples: | problem | | 0 | | 1 |
@shard_2 Feature: LMS.Annotatable Component As a student, I want to view an Annotatable component in the LMS Scenario: An Annotatable component can be rendered in the LMS Given that a course has an annotatable component with 2 annotations When I view the annotatable component Then the annotatable component has rendered And the annotatable component has 2 highlighted passages # Disabling due to frequent intermittent failures. TNL-353 # This features's acceptance tests should be rewritten in bok-choy, rather than fixed here. # # Scenario: An Annotatable component links to annonation problems in the LMS # Given that a course has an annotatable component with 2 annotations # And the course has 2 annotatation problems # When I view the annotatable component # And I click "Reply to annotation" on passage <problem> # Then I am scrolled to that annotation problem # When I answer that annotation problem # Then I receive feedback on that annotation problem # When I click "Return to annotation" on that problem # Then I am scrolled to the annotatable component # # Examples: # | problem | # | 0 | # | 1 |
Disable intermittently failing annotation acceptance test TNL-353
Disable intermittently failing annotation acceptance test TNL-353
Cucumber
agpl-3.0
halvertoluke/edx-platform,pomegranited/edx-platform,shurihell/testasia,longmen21/edx-platform,shubhdev/edx-platform,nttks/jenkins-test,sameetb-cuelogic/edx-platform-test,zofuthan/edx-platform,alu042/edx-platform,devs1991/test_edx_docmode,knehez/edx-platform,ahmadiga/min_edx,stvstnfrd/edx-platform,ahmadio/edx-platform,xinjiguaike/edx-platform,shabab12/edx-platform,Kalyzee/edx-platform,eestay/edx-platform,kursitet/edx-platform,cpennington/edx-platform,chauhanhardik/populo,rue89-tech/edx-platform,ak2703/edx-platform,appsembler/edx-platform,xingyepei/edx-platform,devs1991/test_edx_docmode,y12uc231/edx-platform,MakeHer/edx-platform,arifsetiawan/edx-platform,jazkarta/edx-platform-for-isc,mitocw/edx-platform,B-MOOC/edx-platform,inares/edx-platform,jonathan-beard/edx-platform,deepsrijit1105/edx-platform,jbassen/edx-platform,cognitiveclass/edx-platform,caesar2164/edx-platform,nanolearningllc/edx-platform-cypress-2,chudaol/edx-platform,zadgroup/edx-platform,inares/edx-platform,xinjiguaike/edx-platform,dsajkl/reqiop,gymnasium/edx-platform,mcgachey/edx-platform,pepeportela/edx-platform,prarthitm/edxplatform,Ayub-Khan/edx-platform,Shrhawk/edx-platform,Kalyzee/edx-platform,simbs/edx-platform,Edraak/circleci-edx-platform,jonathan-beard/edx-platform,vismartltd/edx-platform,zofuthan/edx-platform,lduarte1991/edx-platform,jbzdak/edx-platform,cecep-edu/edx-platform,shashank971/edx-platform,ubc/edx-platform,alexthered/kienhoc-platform,DNFcode/edx-platform,OmarIthawi/edx-platform,gsehub/edx-platform,cecep-edu/edx-platform,itsjeyd/edx-platform,Stanford-Online/edx-platform,franosincic/edx-platform,naresh21/synergetics-edx-platform,tiagochiavericosta/edx-platform,jbzdak/edx-platform,tanmaykm/edx-platform,beni55/edx-platform,ESOedX/edx-platform,romain-li/edx-platform,wwj718/ANALYSE,martynovp/edx-platform,knehez/edx-platform,antoviaque/edx-platform,jamesblunt/edx-platform,devs1991/test_edx_docmode,xuxiao19910803/edx,hastexo/edx-platform,synergeticsedx/deployment-wipro,jamiefolsom/edx-platform,UOMx/edx-platform,gymnasium/edx-platform,teltek/edx-platform,fly19890211/edx-platform,mitocw/edx-platform,raccoongang/edx-platform,OmarIthawi/edx-platform,beni55/edx-platform,etzhou/edx-platform,jazztpt/edx-platform,wwj718/edx-platform,solashirai/edx-platform,hastexo/edx-platform,chand3040/cloud_that,SivilTaram/edx-platform,eduNEXT/edx-platform,edx-solutions/edx-platform,miptliot/edx-platform,ovnicraft/edx-platform,jbzdak/edx-platform,alu042/edx-platform,andyzsf/edx,mtlchun/edx,xinjiguaike/edx-platform,romain-li/edx-platform,tiagochiavericosta/edx-platform,cognitiveclass/edx-platform,jazkarta/edx-platform,Edraak/circleci-edx-platform,ak2703/edx-platform,JCBarahona/edX,atsolakid/edx-platform,ahmadiga/min_edx,chauhanhardik/populo_2,JCBarahona/edX,simbs/edx-platform,raccoongang/edx-platform,edx-solutions/edx-platform,kmoocdev/edx-platform,nagyistoce/edx-platform,rue89-tech/edx-platform,arifsetiawan/edx-platform,zerobatu/edx-platform,procangroup/edx-platform,nttks/jenkins-test,ESOedX/edx-platform,kxliugang/edx-platform,pepeportela/edx-platform,cecep-edu/edx-platform,xuxiao19910803/edx,adoosii/edx-platform,leansoft/edx-platform,waheedahmed/edx-platform,arifsetiawan/edx-platform,cselis86/edx-platform,zhenzhai/edx-platform,proversity-org/edx-platform,SivilTaram/edx-platform,xuxiao19910803/edx-platform,4eek/edx-platform,deepsrijit1105/edx-platform,BehavioralInsightsTeam/edx-platform,IONISx/edx-platform,atsolakid/edx-platform,beacloudgenius/edx-platform,Ayub-Khan/edx-platform,SravanthiSinha/edx-platform,rhndg/openedx,dcosentino/edx-platform,Endika/edx-platform,eduNEXT/edunext-platform,msegado/edx-platform,proversity-org/edx-platform,mjirayu/sit_academy,atsolakid/edx-platform,beni55/edx-platform,mtlchun/edx,eduNEXT/edx-platform,nttks/edx-platform,Semi-global/edx-platform,cyanna/edx-platform,CredoReference/edx-platform,franosincic/edx-platform,nagyistoce/edx-platform,IndonesiaX/edx-platform,doganov/edx-platform,franosincic/edx-platform,iivic/BoiseStateX,iivic/BoiseStateX,xuxiao19910803/edx,ZLLab-Mooc/edx-platform,pomegranited/edx-platform,CourseTalk/edx-platform,jazztpt/edx-platform,edry/edx-platform,nttks/edx-platform,vismartltd/edx-platform,pomegranited/edx-platform,xuxiao19910803/edx,wwj718/edx-platform,louyihua/edx-platform,ampax/edx-platform-backup,chauhanhardik/populo_2,ubc/edx-platform,Softmotions/edx-platform,jolyonb/edx-platform,Semi-global/edx-platform,sameetb-cuelogic/edx-platform-test,RPI-OPENEDX/edx-platform,jolyonb/edx-platform,gsehub/edx-platform,vasyarv/edx-platform,jamiefolsom/edx-platform,appliedx/edx-platform,zadgroup/edx-platform,benpatterson/edx-platform,kxliugang/edx-platform,jswope00/griffinx,cpennington/edx-platform,jelugbo/tundex,valtech-mooc/edx-platform,nanolearningllc/edx-platform-cypress,amir-qayyum-khan/edx-platform,miptliot/edx-platform,synergeticsedx/deployment-wipro,hamzehd/edx-platform,shashank971/edx-platform,jzoldak/edx-platform,martynovp/edx-platform,kursitet/edx-platform,jelugbo/tundex,defance/edx-platform,vasyarv/edx-platform,etzhou/edx-platform,Softmotions/edx-platform,motion2015/edx-platform,devs1991/test_edx_docmode,leansoft/edx-platform,peterm-itr/edx-platform,ovnicraft/edx-platform,SivilTaram/edx-platform,jonathan-beard/edx-platform,xuxiao19910803/edx-platform,4eek/edx-platform,alexthered/kienhoc-platform,pomegranited/edx-platform,AkA84/edx-platform,xuxiao19910803/edx-platform,don-github/edx-platform,shurihell/testasia,tanmaykm/edx-platform,Edraak/edx-platform,utecuy/edx-platform,dsajkl/123,procangroup/edx-platform,SravanthiSinha/edx-platform,mitocw/edx-platform,tanmaykm/edx-platform,a-parhom/edx-platform,longmen21/edx-platform,CredoReference/edx-platform,valtech-mooc/edx-platform,mushtaqak/edx-platform,vismartltd/edx-platform,cognitiveclass/edx-platform,hamzehd/edx-platform,ak2703/edx-platform,teltek/edx-platform,chudaol/edx-platform,ferabra/edx-platform,doismellburning/edx-platform,unicri/edx-platform,hastexo/edx-platform,chauhanhardik/populo_2,stvstnfrd/edx-platform,jelugbo/tundex,ferabra/edx-platform,xingyepei/edx-platform,nttks/jenkins-test,4eek/edx-platform,doganov/edx-platform,shubhdev/openedx,deepsrijit1105/edx-platform,shubhdev/openedx,doganov/edx-platform,dcosentino/edx-platform,Stanford-Online/edx-platform,DefyVentures/edx-platform,shubhdev/openedx,TeachAtTUM/edx-platform,jruiperezv/ANALYSE,utecuy/edx-platform,rhndg/openedx,ahmedaljazzar/edx-platform,jjmiranda/edx-platform,J861449197/edx-platform,marcore/edx-platform,UXE/local-edx,antoviaque/edx-platform,jswope00/griffinx,louyihua/edx-platform,ZLLab-Mooc/edx-platform,knehez/edx-platform,MSOpenTech/edx-platform,UOMx/edx-platform,eduNEXT/edunext-platform,jazkarta/edx-platform-for-isc,shubhdev/edxOnBaadal,DefyVentures/edx-platform,jazkarta/edx-platform,angelapper/edx-platform,MSOpenTech/edx-platform,RPI-OPENEDX/edx-platform,mushtaqak/edx-platform,etzhou/edx-platform,zerobatu/edx-platform,chauhanhardik/populo_2,arbrandes/edx-platform,cyanna/edx-platform,Edraak/edx-platform,arifsetiawan/edx-platform,rhndg/openedx,edx/edx-platform,zhenzhai/edx-platform,nanolearningllc/edx-platform-cypress-2,vismartltd/edx-platform,romain-li/edx-platform,IONISx/edx-platform,analyseuc3m/ANALYSE-v1,motion2015/a3,chauhanhardik/populo,benpatterson/edx-platform,10clouds/edx-platform,LearnEra/LearnEraPlaftform,TeachAtTUM/edx-platform,longmen21/edx-platform,IONISx/edx-platform,louyihua/edx-platform,jbassen/edx-platform,zhenzhai/edx-platform,ampax/edx-platform-backup,IndonesiaX/edx-platform,dcosentino/edx-platform,vikas1885/test1,eduNEXT/edx-platform,bitifirefly/edx-platform,motion2015/a3,don-github/edx-platform,caesar2164/edx-platform,Lektorium-LLC/edx-platform,ampax/edx-platform,zadgroup/edx-platform,waheedahmed/edx-platform,bigdatauniversity/edx-platform,chand3040/cloud_that,rismalrv/edx-platform,gsehub/edx-platform,rue89-tech/edx-platform,antonve/s4-project-mooc,mitocw/edx-platform,jswope00/griffinx,wwj718/ANALYSE,shubhdev/edxOnBaadal,don-github/edx-platform,dsajkl/reqiop,cecep-edu/edx-platform,dsajkl/123,adoosii/edx-platform,ESOedX/edx-platform,itsjeyd/edx-platform,MSOpenTech/edx-platform,IndonesiaX/edx-platform,alexthered/kienhoc-platform,chand3040/cloud_that,nikolas/edx-platform,naresh21/synergetics-edx-platform,mbareta/edx-platform-ft,motion2015/edx-platform,naresh21/synergetics-edx-platform,edry/edx-platform,nikolas/edx-platform,doismellburning/edx-platform,pepeportela/edx-platform,OmarIthawi/edx-platform,mahendra-r/edx-platform,shubhdev/edx-platform,alexthered/kienhoc-platform,Edraak/edx-platform,MSOpenTech/edx-platform,zadgroup/edx-platform,prarthitm/edxplatform,jamesblunt/edx-platform,edx-solutions/edx-platform,synergeticsedx/deployment-wipro,inares/edx-platform,utecuy/edx-platform,marcore/edx-platform,martynovp/edx-platform,edx/edx-platform,doganov/edx-platform,leansoft/edx-platform,wwj718/ANALYSE,ESOedX/edx-platform,motion2015/edx-platform,bitifirefly/edx-platform,bigdatauniversity/edx-platform,halvertoluke/edx-platform,dkarakats/edx-platform,sameetb-cuelogic/edx-platform-test,mahendra-r/edx-platform,etzhou/edx-platform,kmoocdev2/edx-platform,nttks/edx-platform,nikolas/edx-platform,Ayub-Khan/edx-platform,analyseuc3m/ANALYSE-v1,mjirayu/sit_academy,mtlchun/edx,JioEducation/edx-platform,prarthitm/edxplatform,valtech-mooc/edx-platform,kxliugang/edx-platform,shubhdev/edx-platform,proversity-org/edx-platform,rismalrv/edx-platform,jazkarta/edx-platform-for-isc,antoviaque/edx-platform,B-MOOC/edx-platform,zubair-arbi/edx-platform,wwj718/edx-platform,chand3040/cloud_that,miptliot/edx-platform,SravanthiSinha/edx-platform,appliedx/edx-platform,jamesblunt/edx-platform,arifsetiawan/edx-platform,waheedahmed/edx-platform,doganov/edx-platform,fly19890211/edx-platform,cpennington/edx-platform,nanolearningllc/edx-platform-cypress,shashank971/edx-platform,philanthropy-u/edx-platform,dsajkl/reqiop,antoviaque/edx-platform,nttks/edx-platform,playm2mboy/edx-platform,jamesblunt/edx-platform,nanolearningllc/edx-platform-cypress,philanthropy-u/edx-platform,xingyepei/edx-platform,kursitet/edx-platform,Endika/edx-platform,Lektorium-LLC/edx-platform,DefyVentures/edx-platform,jamesblunt/edx-platform,defance/edx-platform,ferabra/edx-platform,bitifirefly/edx-platform,JioEducation/edx-platform,shurihell/testasia,Softmotions/edx-platform,olexiim/edx-platform,pabloborrego93/edx-platform,y12uc231/edx-platform,jzoldak/edx-platform,wwj718/ANALYSE,motion2015/edx-platform,mahendra-r/edx-platform,shubhdev/openedx,openfun/edx-platform,devs1991/test_edx_docmode,DNFcode/edx-platform,caesar2164/edx-platform,vasyarv/edx-platform,ak2703/edx-platform,MakeHer/edx-platform,SravanthiSinha/edx-platform,devs1991/test_edx_docmode,kamalx/edx-platform,pomegranited/edx-platform,bigdatauniversity/edx-platform,MakeHer/edx-platform,nanolearningllc/edx-platform-cypress,edx-solutions/edx-platform,AkA84/edx-platform,OmarIthawi/edx-platform,franosincic/edx-platform,Edraak/edraak-platform,IONISx/edx-platform,mjirayu/sit_academy,JCBarahona/edX,eestay/edx-platform,eduNEXT/edunext-platform,halvertoluke/edx-platform,kxliugang/edx-platform,angelapper/edx-platform,nagyistoce/edx-platform,kmoocdev/edx-platform,raccoongang/edx-platform,valtech-mooc/edx-platform,Semi-global/edx-platform,beacloudgenius/edx-platform,shubhdev/edxOnBaadal,UXE/local-edx,polimediaupv/edx-platform,mushtaqak/edx-platform,etzhou/edx-platform,valtech-mooc/edx-platform,jbassen/edx-platform,alu042/edx-platform,openfun/edx-platform,chrisndodge/edx-platform,hamzehd/edx-platform,cselis86/edx-platform,eemirtekin/edx-platform,jruiperezv/ANALYSE,ahmadio/edx-platform,a-parhom/edx-platform,hamzehd/edx-platform,DefyVentures/edx-platform,nikolas/edx-platform,mbareta/edx-platform-ft,jolyonb/edx-platform,vikas1885/test1,shubhdev/edxOnBaadal,CourseTalk/edx-platform,Livit/Livit.Learn.EdX,gymnasium/edx-platform,MakeHer/edx-platform,hastexo/edx-platform,beni55/edx-platform,Shrhawk/edx-platform,mcgachey/edx-platform,Edraak/circleci-edx-platform,jonathan-beard/edx-platform,DNFcode/edx-platform,andyzsf/edx,longmen21/edx-platform,y12uc231/edx-platform,adoosii/edx-platform,LearnEra/LearnEraPlaftform,wwj718/edx-platform,dcosentino/edx-platform,jonathan-beard/edx-platform,beacloudgenius/edx-platform,BehavioralInsightsTeam/edx-platform,ZLLab-Mooc/edx-platform,AkA84/edx-platform,alexthered/kienhoc-platform,Livit/Livit.Learn.EdX,Endika/edx-platform,kamalx/edx-platform,louyihua/edx-platform,JCBarahona/edX,teltek/edx-platform,philanthropy-u/edx-platform,iivic/BoiseStateX,Livit/Livit.Learn.EdX,IONISx/edx-platform,ahmedaljazzar/edx-platform,shashank971/edx-platform,jazkarta/edx-platform,zubair-arbi/edx-platform,cpennington/edx-platform,mcgachey/edx-platform,olexiim/edx-platform,simbs/edx-platform,jazkarta/edx-platform,simbs/edx-platform,Softmotions/edx-platform,andyzsf/edx,gymnasium/edx-platform,iivic/BoiseStateX,xuxiao19910803/edx-platform,cyanna/edx-platform,pabloborrego93/edx-platform,ovnicraft/edx-platform,kursitet/edx-platform,fly19890211/edx-platform,zhenzhai/edx-platform,appliedx/edx-platform,bigdatauniversity/edx-platform,xingyepei/edx-platform,SivilTaram/edx-platform,CourseTalk/edx-platform,olexiim/edx-platform,arbrandes/edx-platform,ampax/edx-platform,kamalx/edx-platform,chudaol/edx-platform,atsolakid/edx-platform,waheedahmed/edx-platform,stvstnfrd/edx-platform,pabloborrego93/edx-platform,Softmotions/edx-platform,cecep-edu/edx-platform,inares/edx-platform,Lektorium-LLC/edx-platform,motion2015/a3,mcgachey/edx-platform,halvertoluke/edx-platform,polimediaupv/edx-platform,leansoft/edx-platform,AkA84/edx-platform,romain-li/edx-platform,dsajkl/123,stvstnfrd/edx-platform,J861449197/edx-platform,amir-qayyum-khan/edx-platform,utecuy/edx-platform,longmen21/edx-platform,jjmiranda/edx-platform,kmoocdev2/edx-platform,appliedx/edx-platform,SravanthiSinha/edx-platform,solashirai/edx-platform,msegado/edx-platform,edry/edx-platform,mbareta/edx-platform-ft,atsolakid/edx-platform,tiagochiavericosta/edx-platform,alu042/edx-platform,naresh21/synergetics-edx-platform,Edraak/edraak-platform,openfun/edx-platform,ferabra/edx-platform,lduarte1991/edx-platform,antonve/s4-project-mooc,tanmaykm/edx-platform,miptliot/edx-platform,tiagochiavericosta/edx-platform,J861449197/edx-platform,shabab12/edx-platform,SivilTaram/edx-platform,beacloudgenius/edx-platform,arbrandes/edx-platform,prarthitm/edxplatform,dsajkl/123,cyanna/edx-platform,openfun/edx-platform,pabloborrego93/edx-platform,amir-qayyum-khan/edx-platform,RPI-OPENEDX/edx-platform,eduNEXT/edunext-platform,doismellburning/edx-platform,dkarakats/edx-platform,rhndg/openedx,solashirai/edx-platform,kxliugang/edx-platform,ovnicraft/edx-platform,itsjeyd/edx-platform,philanthropy-u/edx-platform,EDUlib/edx-platform,jazztpt/edx-platform,Stanford-Online/edx-platform,devs1991/test_edx_docmode,RPI-OPENEDX/edx-platform,nttks/jenkins-test,bitifirefly/edx-platform,LearnEra/LearnEraPlaftform,bitifirefly/edx-platform,eemirtekin/edx-platform,Semi-global/edx-platform,10clouds/edx-platform,rismalrv/edx-platform,knehez/edx-platform,ahmadio/edx-platform,chrisndodge/edx-platform,polimediaupv/edx-platform,appliedx/edx-platform,pepeportela/edx-platform,arbrandes/edx-platform,martynovp/edx-platform,BehavioralInsightsTeam/edx-platform,rismalrv/edx-platform,eemirtekin/edx-platform,kamalx/edx-platform,playm2mboy/edx-platform,vasyarv/edx-platform,ahmedaljazzar/edx-platform,ahmadiga/min_edx,CredoReference/edx-platform,ZLLab-Mooc/edx-platform,DNFcode/edx-platform,nanolearningllc/edx-platform-cypress-2,appsembler/edx-platform,UXE/local-edx,zubair-arbi/edx-platform,angelapper/edx-platform,angelapper/edx-platform,don-github/edx-platform,beni55/edx-platform,Edraak/edx-platform,jbassen/edx-platform,zhenzhai/edx-platform,iivic/BoiseStateX,ubc/edx-platform,shubhdev/edx-platform,fintech-circle/edx-platform,eemirtekin/edx-platform,EDUlib/edx-platform,B-MOOC/edx-platform,mtlchun/edx,dkarakats/edx-platform,msegado/edx-platform,dsajkl/reqiop,shurihell/testasia,inares/edx-platform,IndonesiaX/edx-platform,peterm-itr/edx-platform,mjirayu/sit_academy,xingyepei/edx-platform,benpatterson/edx-platform,CredoReference/edx-platform,mcgachey/edx-platform,amir-qayyum-khan/edx-platform,mahendra-r/edx-platform,eestay/edx-platform,shubhdev/openedx,Edraak/edx-platform,deepsrijit1105/edx-platform,defance/edx-platform,olexiim/edx-platform,DNFcode/edx-platform,edx/edx-platform,kmoocdev2/edx-platform,doismellburning/edx-platform,UXE/local-edx,lduarte1991/edx-platform,lduarte1991/edx-platform,jamiefolsom/edx-platform,kursitet/edx-platform,caesar2164/edx-platform,4eek/edx-platform,cselis86/edx-platform,nttks/edx-platform,halvertoluke/edx-platform,openfun/edx-platform,Lektorium-LLC/edx-platform,jswope00/griffinx,Shrhawk/edx-platform,UOMx/edx-platform,jazztpt/edx-platform,ahmedaljazzar/edx-platform,nagyistoce/edx-platform,Edraak/edraak-platform,ampax/edx-platform-backup,xinjiguaike/edx-platform,RPI-OPENEDX/edx-platform,J861449197/edx-platform,MakeHer/edx-platform,chrisndodge/edx-platform,jamiefolsom/edx-platform,kamalx/edx-platform,jelugbo/tundex,chauhanhardik/populo_2,peterm-itr/edx-platform,jazkarta/edx-platform,romain-li/edx-platform,procangroup/edx-platform,vikas1885/test1,Ayub-Khan/edx-platform,shashank971/edx-platform,bigdatauniversity/edx-platform,JioEducation/edx-platform,Ayub-Khan/edx-platform,a-parhom/edx-platform,peterm-itr/edx-platform,10clouds/edx-platform,dsajkl/123,fly19890211/edx-platform,Shrhawk/edx-platform,zadgroup/edx-platform,solashirai/edx-platform,utecuy/edx-platform,jruiperezv/ANALYSE,zerobatu/edx-platform,playm2mboy/edx-platform,xuxiao19910803/edx,ZLLab-Mooc/edx-platform,MSOpenTech/edx-platform,J861449197/edx-platform,cyanna/edx-platform,dkarakats/edx-platform,andyzsf/edx,edx/edx-platform,shurihell/testasia,y12uc231/edx-platform,jzoldak/edx-platform,procangroup/edx-platform,olexiim/edx-platform,fintech-circle/edx-platform,msegado/edx-platform,playm2mboy/edx-platform,eemirtekin/edx-platform,kmoocdev2/edx-platform,B-MOOC/edx-platform,ahmadiga/min_edx,msegado/edx-platform,unicri/edx-platform,knehez/edx-platform,TeachAtTUM/edx-platform,beacloudgenius/edx-platform,fintech-circle/edx-platform,motion2015/a3,teltek/edx-platform,jazkarta/edx-platform-for-isc,cselis86/edx-platform,synergeticsedx/deployment-wipro,jjmiranda/edx-platform,mtlchun/edx,Kalyzee/edx-platform,zubair-arbi/edx-platform,rue89-tech/edx-platform,jruiperezv/ANALYSE,Edraak/circleci-edx-platform,jolyonb/edx-platform,Livit/Livit.Learn.EdX,devs1991/test_edx_docmode,ak2703/edx-platform,zerobatu/edx-platform,ampax/edx-platform,kmoocdev/edx-platform,eestay/edx-platform,xuxiao19910803/edx-platform,nanolearningllc/edx-platform-cypress-2,jjmiranda/edx-platform,ahmadiga/min_edx,antonve/s4-project-mooc,marcore/edx-platform,EDUlib/edx-platform,ampax/edx-platform,defance/edx-platform,mbareta/edx-platform-ft,marcore/edx-platform,wwj718/edx-platform,chrisndodge/edx-platform,unicri/edx-platform,gsehub/edx-platform,zofuthan/edx-platform,vikas1885/test1,jbassen/edx-platform,jamiefolsom/edx-platform,shabab12/edx-platform,vismartltd/edx-platform,EDUlib/edx-platform,ferabra/edx-platform,shabab12/edx-platform,Edraak/edraak-platform,benpatterson/edx-platform,chand3040/cloud_that,edry/edx-platform,10clouds/edx-platform,hamzehd/edx-platform,adoosii/edx-platform,cselis86/edx-platform,Kalyzee/edx-platform,mushtaqak/edx-platform,JCBarahona/edX,rue89-tech/edx-platform,shubhdev/edx-platform,itsjeyd/edx-platform,shubhdev/edxOnBaadal,cognitiveclass/edx-platform,jbzdak/edx-platform,ovnicraft/edx-platform,appsembler/edx-platform,wwj718/ANALYSE,kmoocdev/edx-platform,benpatterson/edx-platform,eestay/edx-platform,Kalyzee/edx-platform,jruiperezv/ANALYSE,unicri/edx-platform,Shrhawk/edx-platform,dkarakats/edx-platform,motion2015/edx-platform,zofuthan/edx-platform,martynovp/edx-platform,jzoldak/edx-platform,sameetb-cuelogic/edx-platform-test,JioEducation/edx-platform,chauhanhardik/populo,ampax/edx-platform-backup,jbzdak/edx-platform,vasyarv/edx-platform,edry/edx-platform,motion2015/a3,CourseTalk/edx-platform,fintech-circle/edx-platform,playm2mboy/edx-platform,y12uc231/edx-platform,tiagochiavericosta/edx-platform,raccoongang/edx-platform,ampax/edx-platform-backup,ahmadio/edx-platform,AkA84/edx-platform,UOMx/edx-platform,analyseuc3m/ANALYSE-v1,kmoocdev2/edx-platform,adoosii/edx-platform,analyseuc3m/ANALYSE-v1,jswope00/griffinx,dcosentino/edx-platform,rhndg/openedx,Endika/edx-platform,a-parhom/edx-platform,don-github/edx-platform,simbs/edx-platform,nanolearningllc/edx-platform-cypress-2,mjirayu/sit_academy,zofuthan/edx-platform,eduNEXT/edx-platform,antonve/s4-project-mooc,IndonesiaX/edx-platform,nikolas/edx-platform,solashirai/edx-platform,nagyistoce/edx-platform,zerobatu/edx-platform,kmoocdev/edx-platform,antonve/s4-project-mooc,Stanford-Online/edx-platform,chudaol/edx-platform,zubair-arbi/edx-platform,mahendra-r/edx-platform,sameetb-cuelogic/edx-platform-test,jazztpt/edx-platform,chauhanhardik/populo,nanolearningllc/edx-platform-cypress,doismellburning/edx-platform,ahmadio/edx-platform,waheedahmed/edx-platform,appsembler/edx-platform,jelugbo/tundex,polimediaupv/edx-platform,Semi-global/edx-platform,jazkarta/edx-platform-for-isc,BehavioralInsightsTeam/edx-platform,franosincic/edx-platform,leansoft/edx-platform,vikas1885/test1,mushtaqak/edx-platform,ubc/edx-platform,cognitiveclass/edx-platform,rismalrv/edx-platform,LearnEra/LearnEraPlaftform,unicri/edx-platform,proversity-org/edx-platform,nttks/jenkins-test,DefyVentures/edx-platform,Edraak/circleci-edx-platform,chudaol/edx-platform,TeachAtTUM/edx-platform,B-MOOC/edx-platform,polimediaupv/edx-platform,xinjiguaike/edx-platform,fly19890211/edx-platform,ubc/edx-platform,4eek/edx-platform,chauhanhardik/populo
cucumber
## Code Before: @shard_2 Feature: LMS.Annotatable Component As a student, I want to view an Annotatable component in the LMS Scenario: An Annotatable component can be rendered in the LMS Given that a course has an annotatable component with 2 annotations When I view the annotatable component Then the annotatable component has rendered And the annotatable component has 2 highlighted passages Scenario: An Annotatable component links to annonation problems in the LMS Given that a course has an annotatable component with 2 annotations And the course has 2 annotatation problems When I view the annotatable component And I click "Reply to annotation" on passage <problem> Then I am scrolled to that annotation problem When I answer that annotation problem Then I receive feedback on that annotation problem When I click "Return to annotation" on that problem Then I am scrolled to the annotatable component Examples: | problem | | 0 | | 1 | ## Instruction: Disable intermittently failing annotation acceptance test TNL-353 ## Code After: @shard_2 Feature: LMS.Annotatable Component As a student, I want to view an Annotatable component in the LMS Scenario: An Annotatable component can be rendered in the LMS Given that a course has an annotatable component with 2 annotations When I view the annotatable component Then the annotatable component has rendered And the annotatable component has 2 highlighted passages # Disabling due to frequent intermittent failures. TNL-353 # This features's acceptance tests should be rewritten in bok-choy, rather than fixed here. # # Scenario: An Annotatable component links to annonation problems in the LMS # Given that a course has an annotatable component with 2 annotations # And the course has 2 annotatation problems # When I view the annotatable component # And I click "Reply to annotation" on passage <problem> # Then I am scrolled to that annotation problem # When I answer that annotation problem # Then I receive feedback on that annotation problem # When I click "Return to annotation" on that problem # Then I am scrolled to the annotatable component # # Examples: # | problem | # | 0 | # | 1 |
d9bd04b90c7424e2dc0c95e3bbdbf7d72ce059d1
pkgs/tools/networking/spiped/default.nix
pkgs/tools/networking/spiped/default.nix
{ stdenv, fetchurl, openssl, coreutils }: stdenv.mkDerivation rec { name = "spiped-${version}"; version = "1.4.0"; src = fetchurl { url = "http://www.tarsnap.com/spiped/${name}.tgz"; sha256 = "0pyg1llnqgfx7n7mi3dq4ra9xg3vkxlf01z5jzn7ncq5d6ii7ynq"; }; buildInputs = [ openssl ]; patches = [ ./no-dev-stderr.patch ]; postPatch = '' substituteInPlace POSIX/posix-l.sh --replace "rm" "${coreutils}/bin/rm" ''; installPhase = '' mkdir -p $out/bin $out/share/man/man1 make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1 ''; meta = { description = "utility for secure encrypted channels between sockets"; homepage = "https://www.tarsnap.com/spiped.html"; license = stdenv.lib.licenses.bsd2; platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; }
{ stdenv, fetchurl, openssl, coreutils }: stdenv.mkDerivation rec { name = "spiped-${version}"; version = "1.3.1"; src = fetchurl { url = "http://www.tarsnap.com/spiped/${name}.tgz"; sha256 = "1viglk61v1v2ga1n31r0h8rvib5gy2h02lhhbbnqh2s6ps1sjn4a"; }; buildInputs = [ openssl ]; patches = [ ./no-dev-stderr.patch ]; postPatch = '' substituteInPlace POSIX/posix-l.sh --replace "rm" "${coreutils}/bin/rm" ''; installPhase = '' mkdir -p $out/bin $out/share/man/man1 make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1 ''; meta = { description = "utility for secure encrypted channels between sockets"; homepage = "https://www.tarsnap.com/spiped.html"; license = stdenv.lib.licenses.bsd2; platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; }
Revert "spiped: 1.3.1 -> 1.4.0"
Revert "spiped: 1.3.1 -> 1.4.0" This reverts commit 792afca11318aaac0715f343d7454ea4933a932a. Version 1.4.0 failed to build.
Nix
mit
NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs
nix
## Code Before: { stdenv, fetchurl, openssl, coreutils }: stdenv.mkDerivation rec { name = "spiped-${version}"; version = "1.4.0"; src = fetchurl { url = "http://www.tarsnap.com/spiped/${name}.tgz"; sha256 = "0pyg1llnqgfx7n7mi3dq4ra9xg3vkxlf01z5jzn7ncq5d6ii7ynq"; }; buildInputs = [ openssl ]; patches = [ ./no-dev-stderr.patch ]; postPatch = '' substituteInPlace POSIX/posix-l.sh --replace "rm" "${coreutils}/bin/rm" ''; installPhase = '' mkdir -p $out/bin $out/share/man/man1 make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1 ''; meta = { description = "utility for secure encrypted channels between sockets"; homepage = "https://www.tarsnap.com/spiped.html"; license = stdenv.lib.licenses.bsd2; platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; } ## Instruction: Revert "spiped: 1.3.1 -> 1.4.0" This reverts commit 792afca11318aaac0715f343d7454ea4933a932a. Version 1.4.0 failed to build. ## Code After: { stdenv, fetchurl, openssl, coreutils }: stdenv.mkDerivation rec { name = "spiped-${version}"; version = "1.3.1"; src = fetchurl { url = "http://www.tarsnap.com/spiped/${name}.tgz"; sha256 = "1viglk61v1v2ga1n31r0h8rvib5gy2h02lhhbbnqh2s6ps1sjn4a"; }; buildInputs = [ openssl ]; patches = [ ./no-dev-stderr.patch ]; postPatch = '' substituteInPlace POSIX/posix-l.sh --replace "rm" "${coreutils}/bin/rm" ''; installPhase = '' mkdir -p $out/bin $out/share/man/man1 make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1 ''; meta = { description = "utility for secure encrypted channels between sockets"; homepage = "https://www.tarsnap.com/spiped.html"; license = stdenv.lib.licenses.bsd2; platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; }
d3f6b0e980acfbf6dc6d016a466e19c88cfdf33d
src/tasks/daily_verses.ts
src/tasks/daily_verses.ts
import { Client, TextChannel } from 'discord.js'; import * as cron from 'node-cron'; import * as moment from 'moment'; import 'moment-timezone'; import GuildPreference from '../models/guild_preference'; import { DailyVerseRouter } from '../routes/resources/daily_verse'; import Context from '../models/context'; import Language from '../models/language'; const dailyVerseRouter = DailyVerseRouter.getInstance(); export const startDailyVerse = (bot: Client): void => { cron.schedule('* * * * *', () => { const currentTime = moment().tz('UTC').format('HH:mm'); GuildPreference.find({ dailyVerseTime: currentTime }, (err, guilds) => { if (err) { return; } else if (guilds.length > 0) { for (const guildPref of guilds) { try { bot.guilds.fetch(guildPref.guild).then((guild) => { const chan = guild.channels.resolve(guildPref.dailyVerseChannel); const ctx = new Context('auto', bot, (chan as TextChannel), guild, null, null, null, guildPref, null); Language.findOne({ objectName: guildPref.language }, (err, lang) => { (chan as TextChannel).send(lang.getString('votd')); dailyVerseRouter.sendDailyVerse(ctx, { version: guildPref.version }); }); }); } catch { continue; } } } }); }).start(); };
import { Client, TextChannel } from 'discord.js'; import * as cron from 'node-cron'; import * as moment from 'moment'; import 'moment-timezone'; import GuildPreference from '../models/guild_preference'; import { DailyVerseRouter } from '../routes/resources/daily_verse'; import Context from '../models/context'; import Language from '../models/language'; const dailyVerseRouter = DailyVerseRouter.getInstance(); export const startDailyVerse = (bot: Client): void => { cron.schedule('* * * * *', () => { const currentTime = moment().tz('UTC').format('HH:mm'); GuildPreference.find({ dailyVerseTime: currentTime }, (err, guilds) => { if (err) { return; } else if (guilds.length > 0) { for (const guildPref of guilds) { try { bot.guilds.fetch(guildPref.guild).then((guild) => { const chan = guild.channels.resolve(guildPref.dailyVerseChannel); const ctx = new Context('auto', bot, (chan as TextChannel), guild, null, null, { headings: true, verseNumbers: true, display: 'embed' }, guildPref, null); Language.findOne({ objectName: guildPref.language }, (err, lang) => { (chan as TextChannel).send(lang.getString('votd')); dailyVerseRouter.sendDailyVerse(ctx, { version: guildPref.version }); }); }); } catch { continue; } } } }); }).start(); };
Fix a bug where preferences weren't accessible for automatic daily verses.
Fix a bug where preferences weren't accessible for automatic daily verses.
TypeScript
mpl-2.0
BibleBot/BibleBot,BibleBot/BibleBot,BibleBot/BibleBot
typescript
## Code Before: import { Client, TextChannel } from 'discord.js'; import * as cron from 'node-cron'; import * as moment from 'moment'; import 'moment-timezone'; import GuildPreference from '../models/guild_preference'; import { DailyVerseRouter } from '../routes/resources/daily_verse'; import Context from '../models/context'; import Language from '../models/language'; const dailyVerseRouter = DailyVerseRouter.getInstance(); export const startDailyVerse = (bot: Client): void => { cron.schedule('* * * * *', () => { const currentTime = moment().tz('UTC').format('HH:mm'); GuildPreference.find({ dailyVerseTime: currentTime }, (err, guilds) => { if (err) { return; } else if (guilds.length > 0) { for (const guildPref of guilds) { try { bot.guilds.fetch(guildPref.guild).then((guild) => { const chan = guild.channels.resolve(guildPref.dailyVerseChannel); const ctx = new Context('auto', bot, (chan as TextChannel), guild, null, null, null, guildPref, null); Language.findOne({ objectName: guildPref.language }, (err, lang) => { (chan as TextChannel).send(lang.getString('votd')); dailyVerseRouter.sendDailyVerse(ctx, { version: guildPref.version }); }); }); } catch { continue; } } } }); }).start(); }; ## Instruction: Fix a bug where preferences weren't accessible for automatic daily verses. ## Code After: import { Client, TextChannel } from 'discord.js'; import * as cron from 'node-cron'; import * as moment from 'moment'; import 'moment-timezone'; import GuildPreference from '../models/guild_preference'; import { DailyVerseRouter } from '../routes/resources/daily_verse'; import Context from '../models/context'; import Language from '../models/language'; const dailyVerseRouter = DailyVerseRouter.getInstance(); export const startDailyVerse = (bot: Client): void => { cron.schedule('* * * * *', () => { const currentTime = moment().tz('UTC').format('HH:mm'); GuildPreference.find({ dailyVerseTime: currentTime }, (err, guilds) => { if (err) { return; } else if (guilds.length > 0) { for (const guildPref of guilds) { try { bot.guilds.fetch(guildPref.guild).then((guild) => { const chan = guild.channels.resolve(guildPref.dailyVerseChannel); const ctx = new Context('auto', bot, (chan as TextChannel), guild, null, null, { headings: true, verseNumbers: true, display: 'embed' }, guildPref, null); Language.findOne({ objectName: guildPref.language }, (err, lang) => { (chan as TextChannel).send(lang.getString('votd')); dailyVerseRouter.sendDailyVerse(ctx, { version: guildPref.version }); }); }); } catch { continue; } } } }); }).start(); };
b50359e01b5c9fd5a6e06f0e145c51560e2b5a2d
src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java
src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java
package uk.ac.ic.wlgitbridge.snapshot.base; import com.google.gson.JsonElement; import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException; import java.util.Arrays; import java.util.List; public class MissingRepositoryException extends SnapshotAPIException { public static final String GENERIC_REASON = "This Overleaf project currently has no git access.\n" + "\n" + "If you think this is an error, contact support at [email protected]."; public static final String EXPORTED_TO_V2 = "This Overleaf project has been moved to Overleaf v2, and git access is temporarily unsupported.\n" + "\n" + "See https://www.overleaf.com/help/342 for more information."; private String message = ""; public MissingRepositoryException() { } public MissingRepositoryException(String message) { this.message = message; } @Override public void fromJSON(JsonElement json) {} @Override public String getMessage() { return message; } @Override public List<String> getDescriptionLines() { return Arrays.asList(getMessage()); } }
package uk.ac.ic.wlgitbridge.snapshot.base; import com.google.gson.JsonElement; import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException; import java.util.Arrays; import java.util.List; public class MissingRepositoryException extends SnapshotAPIException { public static final String GENERIC_REASON = "This Overleaf project currently has no git access.\n" + "\n" + "If this problem persists, please contact us."; public static final String EXPORTED_TO_V2 = "This Overleaf project has been moved to Overleaf v2, and git access is temporarily unsupported.\n" + "\n" + "See https://www.overleaf.com/help/342 for more information."; private String message = ""; public MissingRepositoryException() { } public MissingRepositoryException(String message) { this.message = message; } @Override public void fromJSON(JsonElement json) {} @Override public String getMessage() { return message; } @Override public List<String> getDescriptionLines() { return Arrays.asList(getMessage()); } }
Make GENERIC_REASON consistent with web messages.
Make GENERIC_REASON consistent with web messages.
Java
mit
overleaf/writelatex-git-bridge,overleaf/writelatex-git-bridge
java
## Code Before: package uk.ac.ic.wlgitbridge.snapshot.base; import com.google.gson.JsonElement; import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException; import java.util.Arrays; import java.util.List; public class MissingRepositoryException extends SnapshotAPIException { public static final String GENERIC_REASON = "This Overleaf project currently has no git access.\n" + "\n" + "If you think this is an error, contact support at [email protected]."; public static final String EXPORTED_TO_V2 = "This Overleaf project has been moved to Overleaf v2, and git access is temporarily unsupported.\n" + "\n" + "See https://www.overleaf.com/help/342 for more information."; private String message = ""; public MissingRepositoryException() { } public MissingRepositoryException(String message) { this.message = message; } @Override public void fromJSON(JsonElement json) {} @Override public String getMessage() { return message; } @Override public List<String> getDescriptionLines() { return Arrays.asList(getMessage()); } } ## Instruction: Make GENERIC_REASON consistent with web messages. ## Code After: package uk.ac.ic.wlgitbridge.snapshot.base; import com.google.gson.JsonElement; import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException; import java.util.Arrays; import java.util.List; public class MissingRepositoryException extends SnapshotAPIException { public static final String GENERIC_REASON = "This Overleaf project currently has no git access.\n" + "\n" + "If this problem persists, please contact us."; public static final String EXPORTED_TO_V2 = "This Overleaf project has been moved to Overleaf v2, and git access is temporarily unsupported.\n" + "\n" + "See https://www.overleaf.com/help/342 for more information."; private String message = ""; public MissingRepositoryException() { } public MissingRepositoryException(String message) { this.message = message; } @Override public void fromJSON(JsonElement json) {} @Override public String getMessage() { return message; } @Override public List<String> getDescriptionLines() { return Arrays.asList(getMessage()); } }
cadcfc29745935e610529b3e54d8c1cd9dc8d0a5
spec/controllers/admin/white_list_users_controller_spec.rb
spec/controllers/admin/white_list_users_controller_spec.rb
require 'spec_helper' describe GreenFlag::Admin::WhiteListUsersController do let(:user) { FactoryGirl.create(:user) } let(:feature) { GreenFlag::Feature.create(code: 'asdf') } let(:site_visitor) { GreenFlag::SiteVisitor.create!(user_id: user.id, visitor_code: '123') } let(:whitelist_feature_decision) { GreenFlag::FeatureDecision.create!(feature: feature, site_visitor: site_visitor, enabled: true, manual: true) } describe '#index' do subject { get :index, feature_id: feature.id, format: 'js' } it { should be_successful } end end
require 'spec_helper' describe GreenFlag::Admin::WhiteListUsersController do describe '#index' do subject { get :index, feature_id: 1, format: 'js' } context 'with no whitelisted users' do before(:each) do allow(GreenFlag::FeatureDecision).to receive(:whitelisted_users) { [] } end it { should be_successful } end end end
Use stubs to avoid setup in controller test
Use stubs to avoid setup in controller test
Ruby
mit
websdotcom/green_flag,websdotcom/green_flag,websdotcom/green_flag
ruby
## Code Before: require 'spec_helper' describe GreenFlag::Admin::WhiteListUsersController do let(:user) { FactoryGirl.create(:user) } let(:feature) { GreenFlag::Feature.create(code: 'asdf') } let(:site_visitor) { GreenFlag::SiteVisitor.create!(user_id: user.id, visitor_code: '123') } let(:whitelist_feature_decision) { GreenFlag::FeatureDecision.create!(feature: feature, site_visitor: site_visitor, enabled: true, manual: true) } describe '#index' do subject { get :index, feature_id: feature.id, format: 'js' } it { should be_successful } end end ## Instruction: Use stubs to avoid setup in controller test ## Code After: require 'spec_helper' describe GreenFlag::Admin::WhiteListUsersController do describe '#index' do subject { get :index, feature_id: 1, format: 'js' } context 'with no whitelisted users' do before(:each) do allow(GreenFlag::FeatureDecision).to receive(:whitelisted_users) { [] } end it { should be_successful } end end end
37c5511de5eb6930e3e1f5723b25d7c139b93016
README.md
README.md
MolML ===== A library to interface molecules and machine learning.
MolML ===== [![Build Status](https://travis-ci.org/crcollins/molml.svg?branch=master)](https://travis-ci.org/crcollins/molml) [![Coverage Status](https://coveralls.io/repos/github/crcollins/molml/badge.svg?branch=master)](https://coveralls.io/github/crcollins/molml?branch=master) A library to interface molecules and machine learning.
Add build and coverage status badges
Add build and coverage status badges
Markdown
mit
crcollins/molml
markdown
## Code Before: MolML ===== A library to interface molecules and machine learning. ## Instruction: Add build and coverage status badges ## Code After: MolML ===== [![Build Status](https://travis-ci.org/crcollins/molml.svg?branch=master)](https://travis-ci.org/crcollins/molml) [![Coverage Status](https://coveralls.io/repos/github/crcollins/molml/badge.svg?branch=master)](https://coveralls.io/github/crcollins/molml?branch=master) A library to interface molecules and machine learning.
920dbc6a1de0a8b0715a82d331f4dc9fe2b39611
index.js
index.js
import { AppRegistry, StatusBar, } from 'react-native'; import Finance from './Finance'; StatusBar.setBarStyle('light-content', true); AppRegistry.registerComponent('Finance', () => Finance);
import { AppRegistry, StatusBar, } from 'react-native'; import Finance from './Finance'; console.disableYellowBox = true; StatusBar.setBarStyle('light-content', true); AppRegistry.registerComponent('Finance', () => Finance);
Disable new yellow componentWillMount() lifecycle warnings
Disable new yellow componentWillMount() lifecycle warnings
JavaScript
mit
7kfpun/FinanceReactNative,7kfpun/FinanceReactNative,7kfpun/FinanceReactNative
javascript
## Code Before: import { AppRegistry, StatusBar, } from 'react-native'; import Finance from './Finance'; StatusBar.setBarStyle('light-content', true); AppRegistry.registerComponent('Finance', () => Finance); ## Instruction: Disable new yellow componentWillMount() lifecycle warnings ## Code After: import { AppRegistry, StatusBar, } from 'react-native'; import Finance from './Finance'; console.disableYellowBox = true; StatusBar.setBarStyle('light-content', true); AppRegistry.registerComponent('Finance', () => Finance);
b84f306248d7c64acf55705834e2166a5eda3843
compile/OSX-x86-64-gcc-serial/make_head.mk
compile/OSX-x86-64-gcc-serial/make_head.mk
EXE_NAME = piny LIB_NAME = libpiny.so # compilers and options FC = gfortran CC = gcc DEFINE = -DLINUX -DNO_CFREE OPT = -O2 OPT_CARE = -O2 OPT_GRP = -O2 CFLAGS = -fPIC $(DEFINE) FFLAGS = -fPIC $(DEFINE) LIBS = -lm INCLUDES = $(CODE)/include/pentium_nopar CODE = $(realpath ../..) EXE = $(CODE)/bin/$(EXE_NAME) LIBPINY = $(CODE)/lib/$(LIB_NAME) SPEC_FILES = math_generic.o
EXE_NAME = piny LIB_NAME = libpiny.so # compilers and options FC = gfortran CC = gcc DEFINE = -DNO_CFREE OPT = -O2 OPT_CARE = -O2 OPT_GRP = -O2 CFLAGS = -fPIC $(DEFINE) FFLAGS = -fPIC $(DEFINE) LIBS = -lm BASE = $(realpath ../..) CODE = $(BASE)/src INCLUDES = $(BASE)/include/pentium_nopar EXE = $(BASE)/bin/$(EXE_NAME) LIBPINY = $(BASE)/lib/$(LIB_NAME) SPEC_FILES = math_generic.o
Update OS X settings as well
Update OS X settings as well
Makefile
epl-1.0
TuckermanGroup/PINY,yuhangwang/PINY,yuhangwang/PINY,TuckermanGroup/PINY,TuckermanGroup/PINY,TuckermanGroup/PINY,TuckermanGroup/PINY,yuhangwang/PINY,yuhangwang/PINY
makefile
## Code Before: EXE_NAME = piny LIB_NAME = libpiny.so # compilers and options FC = gfortran CC = gcc DEFINE = -DLINUX -DNO_CFREE OPT = -O2 OPT_CARE = -O2 OPT_GRP = -O2 CFLAGS = -fPIC $(DEFINE) FFLAGS = -fPIC $(DEFINE) LIBS = -lm INCLUDES = $(CODE)/include/pentium_nopar CODE = $(realpath ../..) EXE = $(CODE)/bin/$(EXE_NAME) LIBPINY = $(CODE)/lib/$(LIB_NAME) SPEC_FILES = math_generic.o ## Instruction: Update OS X settings as well ## Code After: EXE_NAME = piny LIB_NAME = libpiny.so # compilers and options FC = gfortran CC = gcc DEFINE = -DNO_CFREE OPT = -O2 OPT_CARE = -O2 OPT_GRP = -O2 CFLAGS = -fPIC $(DEFINE) FFLAGS = -fPIC $(DEFINE) LIBS = -lm BASE = $(realpath ../..) CODE = $(BASE)/src INCLUDES = $(BASE)/include/pentium_nopar EXE = $(BASE)/bin/$(EXE_NAME) LIBPINY = $(BASE)/lib/$(LIB_NAME) SPEC_FILES = math_generic.o
79cbfcad75454075dacf064763dd2f9ce1fa7766
Resources/Private/Templates/Registration/ActivateAccount.html
Resources/Private/Templates/Registration/ActivateAccount.html
<f:layout name="Default"/> <f:section name="Title">Activate Account</f:section> <f:comment> VARIABLES: - tokenNotFound: if set, the auth token was not found. - tokenTimeout: if set, the token had a timeout. - success: all worked. </f:comment> <f:section name="Content"> <f:if condition="{tokenNotFound}"> Der Aktivierungslink war nicht gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{tokenTimeout}"> Der Aktivierungslink ist nicht mehr gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{success}"> Sie sind nun aktiviert und können sich anmelden. </f:if> </f:section>
<f:layout name="Default"/> <f:section name="Title">Activate Account</f:section> <f:comment> VARIABLES: - tokenNotFound: if set, the auth token was not found. - tokenTimeout: if set, the token had a timeout. - success: all worked. </f:comment> <f:section name="Content"> <f:if condition="{tokenNotFound}"> Der Aktivierungslink war nicht gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{tokenTimeout}"> Der Aktivierungslink ist nicht mehr gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{success}"> Sie sind nun aktiviert und können sich anmelden. <f:link.action action="login" controller="Login">Zum Login</f:link.action> </f:if> </f:section>
Add link to Login on activation success
TASK: Add link to Login on activation success
HTML
mit
sandstorm/UserManagement,sandstorm/UserManagement
html
## Code Before: <f:layout name="Default"/> <f:section name="Title">Activate Account</f:section> <f:comment> VARIABLES: - tokenNotFound: if set, the auth token was not found. - tokenTimeout: if set, the token had a timeout. - success: all worked. </f:comment> <f:section name="Content"> <f:if condition="{tokenNotFound}"> Der Aktivierungslink war nicht gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{tokenTimeout}"> Der Aktivierungslink ist nicht mehr gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{success}"> Sie sind nun aktiviert und können sich anmelden. </f:if> </f:section> ## Instruction: TASK: Add link to Login on activation success ## Code After: <f:layout name="Default"/> <f:section name="Title">Activate Account</f:section> <f:comment> VARIABLES: - tokenNotFound: if set, the auth token was not found. - tokenTimeout: if set, the token had a timeout. - success: all worked. </f:comment> <f:section name="Content"> <f:if condition="{tokenNotFound}"> Der Aktivierungslink war nicht gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{tokenTimeout}"> Der Aktivierungslink ist nicht mehr gültig. <f:link.action action="index">Bitte registrieren Sie sich erneut.</f:link.action> </f:if> <f:if condition="{success}"> Sie sind nun aktiviert und können sich anmelden. <f:link.action action="login" controller="Login">Zum Login</f:link.action> </f:if> </f:section>
b979651804883c08a1f654cc3df168f841e6b546
index.js
index.js
bookcrossing.handler = function(event, context, callback) { console.log("Batatas"); }
exports.handler = function(event, context, callback) { console.log("Batatas"); }
Fix the header of function for AWS Lambda.
Fix the header of function for AWS Lambda.
JavaScript
mit
pontoporponto/bookCrossing
javascript
## Code Before: bookcrossing.handler = function(event, context, callback) { console.log("Batatas"); } ## Instruction: Fix the header of function for AWS Lambda. ## Code After: exports.handler = function(event, context, callback) { console.log("Batatas"); }
fd7dda54d0586906ccd07726352ba8566176ef71
app/scripts/app.js
app/scripts/app.js
(function () { 'use strict'; /** * ngInject */ function StateConfig($urlRouterProvider) { $urlRouterProvider.otherwise('/'); } // color ramp for sectors var sectorColors = { 'School (K-12)': '#A6CEE3', 'Office': '#1F78B4', 'Warehouse': '#B2DF8A', 'College/ University': '#33A02C', 'Other': '#FB9A99', 'Retail': '#E31A1C', 'Municipal': '#FDBF6F', 'Multifamily': '#FF7F00', 'Hotel': '#CAB2D6', 'Industrial': '#6A3D9A', 'Unknown': '#DDDDDD' }; /** * @ngdoc overview * @name mos * @description * # mos * * Main module of the application. */ angular .module('mos', [ 'mos.views.charts', 'mos.views.map', 'mos.views.info', 'mos.views.detail', 'mos.views.compare', 'headroom' ]).config(StateConfig); angular.module('mos').constant('MOSColors', sectorColors); })();
(function () { 'use strict'; /** * ngInject */ function StateConfig($urlRouterProvider) { $urlRouterProvider.otherwise('/'); } // color ramp for sectors var sectorColors = { 'School (K-12)': '#A6CEE3', 'Office': '#1F78B4', 'Medical Office': '#52A634', 'Warehouse': '#B2DF8A', 'College/ University': '#33A02C', 'Other': '#FB9A99', 'Retail': '#E31A1C', 'Municipal': '#FDBF6F', 'Multifamily': '#FF7F00', 'Hotel': '#CAB2D6', 'Industrial': '#6A3D9A', 'Worship': '#9C90C4', 'Supermarket': '#E8AE6C', 'Parking': '#C9DBE6', 'Laboratory': '#3AA3FF', 'Hospital': '#C6B4FF', 'Data Center': '#B8FFA8', 'Unknown': '#DDDDDD' }; /** * @ngdoc overview * @name mos * @description * # mos * * Main module of the application. */ angular .module('mos', [ 'mos.views.charts', 'mos.views.map', 'mos.views.info', 'mos.views.detail', 'mos.views.compare', 'headroom' ]).config(StateConfig); angular.module('mos').constant('MOSColors', sectorColors); })();
Add remaining building types to MOSColors
Add remaining building types to MOSColors
JavaScript
mit
azavea/mos-energy-benchmark,azavea/mos-energy-benchmark,azavea/mos-energy-benchmark
javascript
## Code Before: (function () { 'use strict'; /** * ngInject */ function StateConfig($urlRouterProvider) { $urlRouterProvider.otherwise('/'); } // color ramp for sectors var sectorColors = { 'School (K-12)': '#A6CEE3', 'Office': '#1F78B4', 'Warehouse': '#B2DF8A', 'College/ University': '#33A02C', 'Other': '#FB9A99', 'Retail': '#E31A1C', 'Municipal': '#FDBF6F', 'Multifamily': '#FF7F00', 'Hotel': '#CAB2D6', 'Industrial': '#6A3D9A', 'Unknown': '#DDDDDD' }; /** * @ngdoc overview * @name mos * @description * # mos * * Main module of the application. */ angular .module('mos', [ 'mos.views.charts', 'mos.views.map', 'mos.views.info', 'mos.views.detail', 'mos.views.compare', 'headroom' ]).config(StateConfig); angular.module('mos').constant('MOSColors', sectorColors); })(); ## Instruction: Add remaining building types to MOSColors ## Code After: (function () { 'use strict'; /** * ngInject */ function StateConfig($urlRouterProvider) { $urlRouterProvider.otherwise('/'); } // color ramp for sectors var sectorColors = { 'School (K-12)': '#A6CEE3', 'Office': '#1F78B4', 'Medical Office': '#52A634', 'Warehouse': '#B2DF8A', 'College/ University': '#33A02C', 'Other': '#FB9A99', 'Retail': '#E31A1C', 'Municipal': '#FDBF6F', 'Multifamily': '#FF7F00', 'Hotel': '#CAB2D6', 'Industrial': '#6A3D9A', 'Worship': '#9C90C4', 'Supermarket': '#E8AE6C', 'Parking': '#C9DBE6', 'Laboratory': '#3AA3FF', 'Hospital': '#C6B4FF', 'Data Center': '#B8FFA8', 'Unknown': '#DDDDDD' }; /** * @ngdoc overview * @name mos * @description * # mos * * Main module of the application. */ angular .module('mos', [ 'mos.views.charts', 'mos.views.map', 'mos.views.info', 'mos.views.detail', 'mos.views.compare', 'headroom' ]).config(StateConfig); angular.module('mos').constant('MOSColors', sectorColors); })();
75b38e427d4273bd01448bdf30a1cbd5dfe9157e
app/assets/javascripts/jobbr/application.js.coffee
app/assets/javascripts/jobbr/application.js.coffee
autoRefreshInterval = 3000 timeout = undefined scrollToBottom = ($container) -> if $container.length > 0 $container.scrollTop($container[0].scrollHeight) toggleRefreshButton = -> $('#auto-refresh').toggleClass('active') $('#auto-refresh i').toggleClass('fa-spin') $('#auto-refresh').hasClass('active') enableAutoRefresh = (force = false) -> if force || (getURLParameter('refresh') == '1') if toggleRefreshButton() timeout = setTimeout(-> Turbolinks.visit("#{document.location.pathname}?refresh=1") , autoRefreshInterval) else clearTimeout(timeout) Turbolinks.visit(document.location.pathname) init = -> scrollToBottom($('.logs')) enableAutoRefresh() $('#auto-refresh').on 'click', -> enableAutoRefresh(true) $(document).ready -> init() $(document).on 'page:load', init
autoRefreshInterval = 3000 timeout = undefined scrollToBottom = ($container) -> if $container.length > 0 $container.scrollTop($container[0].scrollHeight) toggleRefreshButton = -> $('#auto-refresh').toggleClass('active') $('#auto-refresh i').toggleClass('fa-spin') $('#auto-refresh').hasClass('active') enableAutoRefresh = (force = false) -> if force || (getURLParameter('refresh') == '1') if toggleRefreshButton() timeout = setTimeout(-> location.assign("#{document.location.pathname}?refresh=1") , autoRefreshInterval) else clearTimeout(timeout) location.assign(document.location.pathname) init = -> scrollToBottom($('.logs')) enableAutoRefresh() $('#auto-refresh').on 'click', -> enableAutoRefresh(true) $(document).ready -> init() $(document).on 'page:load', init
Refresh a page automatically, without using turbolinks.
Refresh a page automatically, without using turbolinks.
CoffeeScript
mit
PrimeRevenue/jobbr,PrimeRevenue/jobbr,PrimeRevenue/jobbr
coffeescript
## Code Before: autoRefreshInterval = 3000 timeout = undefined scrollToBottom = ($container) -> if $container.length > 0 $container.scrollTop($container[0].scrollHeight) toggleRefreshButton = -> $('#auto-refresh').toggleClass('active') $('#auto-refresh i').toggleClass('fa-spin') $('#auto-refresh').hasClass('active') enableAutoRefresh = (force = false) -> if force || (getURLParameter('refresh') == '1') if toggleRefreshButton() timeout = setTimeout(-> Turbolinks.visit("#{document.location.pathname}?refresh=1") , autoRefreshInterval) else clearTimeout(timeout) Turbolinks.visit(document.location.pathname) init = -> scrollToBottom($('.logs')) enableAutoRefresh() $('#auto-refresh').on 'click', -> enableAutoRefresh(true) $(document).ready -> init() $(document).on 'page:load', init ## Instruction: Refresh a page automatically, without using turbolinks. ## Code After: autoRefreshInterval = 3000 timeout = undefined scrollToBottom = ($container) -> if $container.length > 0 $container.scrollTop($container[0].scrollHeight) toggleRefreshButton = -> $('#auto-refresh').toggleClass('active') $('#auto-refresh i').toggleClass('fa-spin') $('#auto-refresh').hasClass('active') enableAutoRefresh = (force = false) -> if force || (getURLParameter('refresh') == '1') if toggleRefreshButton() timeout = setTimeout(-> location.assign("#{document.location.pathname}?refresh=1") , autoRefreshInterval) else clearTimeout(timeout) location.assign(document.location.pathname) init = -> scrollToBottom($('.logs')) enableAutoRefresh() $('#auto-refresh').on 'click', -> enableAutoRefresh(true) $(document).ready -> init() $(document).on 'page:load', init
4057310ae8cd5a59dc21ff8c9168653119539cdb
buckets.yaml
buckets.yaml
gs://kubernetes-jenkins/logs/: prefix: "" gs://kube_azure_log/: prefix: "azure:" gs://rktnetes-jenkins/logs/: prefix: "rktnetes:" gs://kopeio-kubernetes-e2e/logs/: prefix: "kopeio:" sequential: false
gs://kubernetes-jenkins/logs/: contact: "fejta" prefix: "" gs://kube_azure_log/: contact: "travisnewhouse" prefix: "azure:" gs://rktnetes-jenkins/logs/: contact: "euank" prefix: "rktnetes:" gs://kopeio-kubernetes-e2e/logs/: contact: "justinsb" prefix: "kopeio:" sequential: false
Add contact info for each prefix
Add contact info for each prefix
YAML
apache-2.0
mtaufen/test-infra,michelle192837/test-infra,shyamjvs/test-infra,michelle192837/test-infra,cblecker/test-infra,mikedanese/test-infra,shyamjvs/test-infra,monopole/test-infra,cblecker/test-infra,dchen1107/test-infra,ixdy/kubernetes-test-infra,brahmaroutu/test-infra,mindprince/test-infra,jlowdermilk/test-infra,kargakis/test-infra,jlowdermilk/test-infra,krousey/test-infra,dims/test-infra,lavalamp/test-infra,piosz/test-infra,shyamjvs/test-infra,rmmh/kubernetes-test-infra,mikedanese/test-infra,dims/test-infra,grodrigues3/test-infra,nlandolfi/test-infra-1,foxish/test-infra,mikedanese/test-infra,kubernetes/test-infra,madhusudancs/test-infra,madhusudancs/test-infra,madhusudancs/test-infra,mindprince/test-infra,mikedanese/test-infra,BenTheElder/test-infra,brahmaroutu/test-infra,nlandolfi/test-infra-1,grodrigues3/test-infra,dchen1107/test-infra,shashidharatd/test-infra,monopole/test-infra,spxtr/test-infra,shyamjvs/test-infra,monopole/test-infra,pwittrock/test-infra,maisem/test-infra,cblecker/test-infra,spxtr/test-infra,foxish/test-infra,monopole/test-infra,michelle192837/test-infra,pwittrock/test-infra,mtaufen/test-infra,cblecker/test-infra,cjwagner/test-infra,michelle192837/test-infra,ixdy/kubernetes-test-infra,cjwagner/test-infra,jessfraz/test-infra,foxish/test-infra,brahmaroutu/test-infra,gmarek/test-infra,maisem/test-infra,nlandolfi/test-infra-1,madhusudancs/test-infra,abgworrall/test-infra,brahmaroutu/test-infra,girishkalele/test-infra,girishkalele/test-infra,jessfraz/test-infra,fejta/test-infra,ixdy/kubernetes-test-infra,spxtr/test-infra,krzyzacy/test-infra,ixdy/kubernetes-test-infra,fejta/test-infra,mindprince/test-infra,mindprince/test-infra,abgworrall/test-infra,piosz/test-infra,gmarek/test-infra,gmarek/test-infra,krousey/test-infra,krousey/test-infra,BenTheElder/test-infra,kargakis/test-infra,brahmaroutu/test-infra,grodrigues3/test-infra,rmmh/kubernetes-test-infra,cjwagner/test-infra,maisem/test-infra,BenTheElder/test-infra,shashidharatd/test-infra,piosz/test-infra,kargakis/test-infra,nlandolfi/test-infra-1,piosz/test-infra,mtaufen/test-infra,lavalamp/test-infra,kewu1992/test-infra,kubernetes/test-infra,lavalamp/test-infra,foxish/test-infra,dchen1107/test-infra,abgworrall/test-infra,krousey/test-infra,rmmh/kubernetes-test-infra,kewu1992/test-infra,krzyzacy/test-infra,maisem/test-infra,fejta/test-infra,dims/test-infra,girishkalele/test-infra,lavalamp/test-infra,kargakis/test-infra,nlandolfi/test-infra-1,brahmaroutu/test-infra,BenTheElder/test-infra,dchen1107/test-infra,michelle192837/test-infra,dims/test-infra,pwittrock/test-infra,jlowdermilk/test-infra,shashidharatd/test-infra,cjwagner/test-infra,mikedanese/test-infra,rmmh/kubernetes-test-infra,shyamjvs/test-infra,monopole/test-infra,jlowdermilk/test-infra,pwittrock/test-infra,abgworrall/test-infra,mindprince/test-infra,cjwagner/test-infra,krousey/test-infra,fejta/test-infra,pwittrock/test-infra,dims/test-infra,shashidharatd/test-infra,ixdy/kubernetes-test-infra,lavalamp/test-infra,rmmh/kubernetes-test-infra,krzyzacy/test-infra,mtaufen/test-infra,maisem/test-infra,girishkalele/test-infra,fejta/test-infra,dims/test-infra,krzyzacy/test-infra,lavalamp/test-infra,cblecker/test-infra,michelle192837/test-infra,kewu1992/test-infra,kargakis/test-infra,jessfraz/test-infra,spxtr/test-infra,kewu1992/test-infra,mtaufen/test-infra,kubernetes/test-infra,foxish/test-infra,cblecker/test-infra,kubernetes/test-infra,kubernetes/test-infra,kewu1992/test-infra,abgworrall/test-infra,madhusudancs/test-infra,jessfraz/test-infra,piosz/test-infra,BenTheElder/test-infra,cjwagner/test-infra,kargakis/test-infra,grodrigues3/test-infra,krzyzacy/test-infra,fejta/test-infra,jlowdermilk/test-infra,jlowdermilk/test-infra,gmarek/test-infra,krzyzacy/test-infra,grodrigues3/test-infra,jessfraz/test-infra,kubernetes/test-infra,monopole/test-infra,dchen1107/test-infra,gmarek/test-infra,BenTheElder/test-infra,spxtr/test-infra,jessfraz/test-infra,shyamjvs/test-infra,girishkalele/test-infra,shashidharatd/test-infra
yaml
## Code Before: gs://kubernetes-jenkins/logs/: prefix: "" gs://kube_azure_log/: prefix: "azure:" gs://rktnetes-jenkins/logs/: prefix: "rktnetes:" gs://kopeio-kubernetes-e2e/logs/: prefix: "kopeio:" sequential: false ## Instruction: Add contact info for each prefix ## Code After: gs://kubernetes-jenkins/logs/: contact: "fejta" prefix: "" gs://kube_azure_log/: contact: "travisnewhouse" prefix: "azure:" gs://rktnetes-jenkins/logs/: contact: "euank" prefix: "rktnetes:" gs://kopeio-kubernetes-e2e/logs/: contact: "justinsb" prefix: "kopeio:" sequential: false
04649c101a33074c7745c867aab8eacc322a057a
www/js/app.js
www/js/app.js
(function () { RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html()); RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html()); var service = new RecipeService(); service.initialize().done(function () { router.addRoute('', function() { service.printRecipes(); }); router.addRoute('recipes/:id', function(id) { service.findById(parseInt(id)).done(function(recipe) { $('#content').html(new RecipeView(recipe).render().$el); }); }); router.addRoute('about', function() { $('#content').load("about.html"); }); router.start(); }); }());
(function () { RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html()); RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html()); Handlebars.registerHelper('recipe_image', function(image_id) { return _.find(recipe_images, function(recipe){ return recipe.id == image_id; }).source_url; }); var service = new RecipeService(); service.initialize().done(function () { router.addRoute('', function() { service.printRecipes(); }); router.addRoute('recipes/:id', function(id) { service.findById(parseInt(id)).done(function(recipe) { $('#content').html(new RecipeView(recipe).render().$el); }); }); router.addRoute('about', function() { $('#content').load("about.html"); }); router.start(); }); }());
Add handlebars helper in order to show recipe image
Add handlebars helper in order to show recipe image
JavaScript
mit
enoliglesias/wpreader,enoliglesias/wpreader
javascript
## Code Before: (function () { RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html()); RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html()); var service = new RecipeService(); service.initialize().done(function () { router.addRoute('', function() { service.printRecipes(); }); router.addRoute('recipes/:id', function(id) { service.findById(parseInt(id)).done(function(recipe) { $('#content').html(new RecipeView(recipe).render().$el); }); }); router.addRoute('about', function() { $('#content').load("about.html"); }); router.start(); }); }()); ## Instruction: Add handlebars helper in order to show recipe image ## Code After: (function () { RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html()); RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html()); Handlebars.registerHelper('recipe_image', function(image_id) { return _.find(recipe_images, function(recipe){ return recipe.id == image_id; }).source_url; }); var service = new RecipeService(); service.initialize().done(function () { router.addRoute('', function() { service.printRecipes(); }); router.addRoute('recipes/:id', function(id) { service.findById(parseInt(id)).done(function(recipe) { $('#content').html(new RecipeView(recipe).render().$el); }); }); router.addRoute('about', function() { $('#content').load("about.html"); }); router.start(); }); }());
79a141fd2a6628ec812496e947f3d7c6e59a2b0e
config/initializers/mweb_events.rb
config/initializers/mweb_events.rb
Rails.application.config.to_prepare do # Monkey patching events controller for pagination and recent activity MwebEvents::EventsController.class_eval do before_filter(:only => [:index]) do @events = @events.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create, :update] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Event.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.id, :username => user.name } end end # Same for participants, public activity is still missing MwebEvents::ParticipantsController.class_eval do before_filter(:only => [:index]) do @participants = @participants.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Participant.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.id, :username => user.name } end end end
Rails.application.config.to_prepare do # Monkey patching events controller for pagination and recent activity MwebEvents::EventsController.class_eval do before_filter(:only => [:index]) do @events = @events.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create, :update] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Event.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.try(:id), :username => user.try(:name) } end end # Same for participants, public activity is still missing MwebEvents::ParticipantsController.class_eval do before_filter(:only => [:index]) do @participants = @participants.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Participant.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.id, :username => user.name } end end end
Correct problem with participant recent activity
Correct problem with participant recent activity
Ruby
agpl-3.0
akratech/Akraconference,mconftec/mconf-web-mytruecloud,akratech/Akraconference,mconftec/mconf-web-cedia,mconf/mconf-web,mconftec/mconf-web-cedia,mconftec/mconf-web-uergs,mconftec/mconf-web-mytruecloud,becueb/MconfWeb,mconf/mconf-web,mconftec/mconf-web-santacasa,mconftec/mconf-web-ufpe,mconf/mconf-web,amreis/mconf-web,akratech/Akraconference,mconftec/mconf-web-cedia,mconf-rnp/mconf-web,fbottin/mconf-web,mconftec/mconf-web-uergs,amreis/mconf-web,mconf-ufrgs/mconf-web,lfzawacki/mconf-web,mconf-ufrgs/mconf-web,becueb/MconfWeb,mconftec/mconf-web-santacasa,mconf/mconf-web,becueb/MconfWeb,mconf-ufrgs/mconf-web,lfzawacki/mconf-web,mconftec/mconf-web-ufpe,becueb/MconfWeb,mconftec/mconf-web-uergs,fbottin/mconf-web,mconftec/mconf-web-mytruecloud,amreis/mconf-web,mconftec/mconf-web-ufpe,lfzawacki/mconf-web,mconftec/mconf-web-mytruecloud,lfzawacki/mconf-web,mconf-rnp/mconf-web,fbottin/mconf-web,mconftec/mconf-web-santacasa,mconftec/mconf-web-uergs,mconftec/mconf-web-santacasa,amreis/mconf-web,akratech/Akraconference,mconf-ufrgs/mconf-web,mconf-rnp/mconf-web,mconf-rnp/mconf-web,mconftec/mconf-web-ufpe,fbottin/mconf-web
ruby
## Code Before: Rails.application.config.to_prepare do # Monkey patching events controller for pagination and recent activity MwebEvents::EventsController.class_eval do before_filter(:only => [:index]) do @events = @events.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create, :update] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Event.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.id, :username => user.name } end end # Same for participants, public activity is still missing MwebEvents::ParticipantsController.class_eval do before_filter(:only => [:index]) do @participants = @participants.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Participant.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.id, :username => user.name } end end end ## Instruction: Correct problem with participant recent activity ## Code After: Rails.application.config.to_prepare do # Monkey patching events controller for pagination and recent activity MwebEvents::EventsController.class_eval do before_filter(:only => [:index]) do @events = @events.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create, :update] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Event.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.try(:id), :username => user.try(:name) } end end # Same for participants, public activity is still missing MwebEvents::ParticipantsController.class_eval do before_filter(:only => [:index]) do @participants = @participants.accessible_by(current_ability).paginate(:page => params[:page]) end after_filter :only => [:create] do @event.new_activity params[:action], current_user unless @event.errors.any? end end MwebEvents::Participant.class_eval do include PublicActivity::Common def new_activity key, user create_activity key, :owner => owner, :parameters => { :user_id => user.id, :username => user.name } end end end
a1cb75de2d21e3fce2f142696d07593ea8456bce
api-ref/src/wadls/orchestration-api/src/v1/samples/stack_adopt_resp.json
api-ref/src/wadls/orchestration-api/src/v1/samples/stack_adopt_resp.json
{ "stack": { "id": "5333af0c-cc26-47ee-ac3d-8784cefafbd7", "links": [ { "href": "http://192.168.123.200:8004/v1/eb1c63a4f77141548385f113a28f0f52/stacks/simple_stack/5333af0c-cc26-47ee-ac3d-8784cefafbd7", "rel": "self" } ] } }
{ "action": "CREATE", "id": "46c927bb-671a-43db-a29c-16a2610865ca", "name": "trove", "resources": { "MySqlCloudDatabaseServer": { "action": "CREATE", "metadata": {}, "name": "MySqlCloudDatabaseServer", "resource_data": {}, "resource_id": "74c5be7e-3e62-41e7-b455-93d1c32d56e3", "status": "COMPLETE", "type": "OS::Trove::Instance" } }, "status": "COMPLETE", "template": { "AWSTemplateFormatVersion": "2010-09-09", "Description": "MYSQL server cloud database instance", "Parameters": { "InstanceName": { "Description": "The database instance name", "Type": "String" } }, "Resources": { "MySqlCloudDatabaseServer": { "Properties": { "databases": [ { "name": "testdbonetwo" } ], "flavor": "1GB Instance", "name": "test-trove-db", "size": 30, "users": [ { "databases": [ "testdbonetwo" ], "name": "testuser", "password": "testpass123" } ] }, "Type": "OS::Trove::Instance" } } } }
Improve stack adopt reponse sample
Improve stack adopt reponse sample Change-Id: I6d0f2a0958ceafa2d4eab7931fb515ac745297dd
JSON
apache-2.0
Tesora/tesora-api-site,dreamhost/api-site,DonSchenck/api-site,DonSchenck/api-site,dreamhost/api-site,openstack/api-site,Tesora/tesora-api-site,dreamhost/api-site,openstack/api-site,dreamhost/api-site,Tesora/tesora-api-site,dreamhost/api-site,Tesora/tesora-api-site,DonSchenck/api-site,DonSchenck/api-site,Tesora/tesora-api-site,openstack/api-site,Tesora/tesora-api-site,Tesora/tesora-api-site,dreamhost/api-site,dreamhost/api-site,DonSchenck/api-site,openstack/api-site
json
## Code Before: { "stack": { "id": "5333af0c-cc26-47ee-ac3d-8784cefafbd7", "links": [ { "href": "http://192.168.123.200:8004/v1/eb1c63a4f77141548385f113a28f0f52/stacks/simple_stack/5333af0c-cc26-47ee-ac3d-8784cefafbd7", "rel": "self" } ] } } ## Instruction: Improve stack adopt reponse sample Change-Id: I6d0f2a0958ceafa2d4eab7931fb515ac745297dd ## Code After: { "action": "CREATE", "id": "46c927bb-671a-43db-a29c-16a2610865ca", "name": "trove", "resources": { "MySqlCloudDatabaseServer": { "action": "CREATE", "metadata": {}, "name": "MySqlCloudDatabaseServer", "resource_data": {}, "resource_id": "74c5be7e-3e62-41e7-b455-93d1c32d56e3", "status": "COMPLETE", "type": "OS::Trove::Instance" } }, "status": "COMPLETE", "template": { "AWSTemplateFormatVersion": "2010-09-09", "Description": "MYSQL server cloud database instance", "Parameters": { "InstanceName": { "Description": "The database instance name", "Type": "String" } }, "Resources": { "MySqlCloudDatabaseServer": { "Properties": { "databases": [ { "name": "testdbonetwo" } ], "flavor": "1GB Instance", "name": "test-trove-db", "size": 30, "users": [ { "databases": [ "testdbonetwo" ], "name": "testuser", "password": "testpass123" } ] }, "Type": "OS::Trove::Instance" } } } }
ca99fd703d5431246defb8ef35f9e6b092a48621
coursemology2/db/transforms/models/file_upload.rb
coursemology2/db/transforms/models/file_upload.rb
module CoursemologyV1::Source def_model 'file_uploads' do scope :visible, ->() { where(is_public: true) } require 'open-uri' URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/' belongs_to :owner, polymorphic: true # Return the attachment reference or nil def transform_attachment_reference hash = $url_mapper.get_hash(url) if hash && attachment = ::Attachment.find_by(name: hash) ::AttachmentReference.new( attachment: attachment, name: sanitized_name ) elsif local_file = download_to_local reference = ::AttachmentReference.new(file: local_file) reference.name = sanitized_name $url_mapper.set(url, reference.attachment.name, reference.url) reference end end def url if copy_url copy_url else URL_PREFIX + id_partition + '/original/' + file_file_name end end def download_to_local Downloader.download_to_local(url, self, file_file_name) end private def id_partition # Generate id format like 000/056/129 str = id.to_s.rjust(9, '0') str[0..2] + '/' + str[3..5] + '/' + str[6..8] end def sanitized_name Pathname.normalize_filename(original_name) end end end
module CoursemologyV1::Source def_model 'file_uploads' do scope :visible, ->() { where(is_public: true) } require 'open-uri' URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/' belongs_to :owner, polymorphic: true # Return the attachment reference or nil def transform_attachment_reference hash = $url_mapper.get_hash(url) reference = nil if hash && attachment = ::Attachment.find_by(name: hash) reference = ::AttachmentReference.new( attachment: attachment, name: sanitized_name ) elsif local_file = download_to_local attachment = ::Attachment.find_or_initialize_by(file: local_file) attachment.save! local_file.close unless local_file.closed? reference = ::AttachmentReference.new(attachment: attachment) reference.name = sanitized_name $url_mapper.set(url, reference.attachment.name, reference.url) end reference end def url if copy_url copy_url else URL_PREFIX + id_partition + '/original/' + file_file_name end end def download_to_local Downloader.download_to_local(url, self, file_file_name) end private def id_partition # Generate id format like 000/056/129 str = id.to_s.rjust(9, '0') str[0..2] + '/' + str[3..5] + '/' + str[6..8] end def sanitized_name Pathname.normalize_filename(original_name) end end end
Create attachment first before build the reference
Create attachment first before build the reference
Ruby
mit
allenwq/migration,Coursemology/migration,allenwq/migration,Coursemology/migration
ruby
## Code Before: module CoursemologyV1::Source def_model 'file_uploads' do scope :visible, ->() { where(is_public: true) } require 'open-uri' URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/' belongs_to :owner, polymorphic: true # Return the attachment reference or nil def transform_attachment_reference hash = $url_mapper.get_hash(url) if hash && attachment = ::Attachment.find_by(name: hash) ::AttachmentReference.new( attachment: attachment, name: sanitized_name ) elsif local_file = download_to_local reference = ::AttachmentReference.new(file: local_file) reference.name = sanitized_name $url_mapper.set(url, reference.attachment.name, reference.url) reference end end def url if copy_url copy_url else URL_PREFIX + id_partition + '/original/' + file_file_name end end def download_to_local Downloader.download_to_local(url, self, file_file_name) end private def id_partition # Generate id format like 000/056/129 str = id.to_s.rjust(9, '0') str[0..2] + '/' + str[3..5] + '/' + str[6..8] end def sanitized_name Pathname.normalize_filename(original_name) end end end ## Instruction: Create attachment first before build the reference ## Code After: module CoursemologyV1::Source def_model 'file_uploads' do scope :visible, ->() { where(is_public: true) } require 'open-uri' URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/' belongs_to :owner, polymorphic: true # Return the attachment reference or nil def transform_attachment_reference hash = $url_mapper.get_hash(url) reference = nil if hash && attachment = ::Attachment.find_by(name: hash) reference = ::AttachmentReference.new( attachment: attachment, name: sanitized_name ) elsif local_file = download_to_local attachment = ::Attachment.find_or_initialize_by(file: local_file) attachment.save! local_file.close unless local_file.closed? reference = ::AttachmentReference.new(attachment: attachment) reference.name = sanitized_name $url_mapper.set(url, reference.attachment.name, reference.url) end reference end def url if copy_url copy_url else URL_PREFIX + id_partition + '/original/' + file_file_name end end def download_to_local Downloader.download_to_local(url, self, file_file_name) end private def id_partition # Generate id format like 000/056/129 str = id.to_s.rjust(9, '0') str[0..2] + '/' + str[3..5] + '/' + str[6..8] end def sanitized_name Pathname.normalize_filename(original_name) end end end
c8ec48eb4f3903295fbd4dfbc869fed327bf6d9d
app/models/tree_node.rb
app/models/tree_node.rb
class TreeNode attr_reader :taxon, :children delegate :title, :base_path, :content_id, :parent_taxons, :parent_taxons=, to: :taxon attr_accessor :parent_node delegate :map, :each, to: :tree def initialize(title:, content_id:) @taxon = Taxon.new(title: title, content_id: content_id) @children = [] end def <<(child_node) child_node.parent_node = self @children << child_node end def tree return [self] if @children.empty? @children.each_with_object([self]) do |child, tree| tree.concat(child.tree) end end def count tree.count end def root? parent_node.nil? end def node_depth return 0 if root? 1 + parent_node.node_depth end end
class TreeNode attr_reader :taxon, :children attr_accessor :parent_node delegate :title, :base_path, :content_id, to: :taxon delegate :map, :each, to: :tree def initialize(title:, content_id:) @taxon = Taxon.new(title: title, content_id: content_id) @children = [] end def <<(child_node) child_node.parent_node = self @children << child_node end def tree return [self] if @children.empty? @children.each_with_object([self]) do |child, tree| tree.concat(child.tree) end end def count tree.count end def root? parent_node.nil? end def node_depth return 0 if root? 1 + parent_node.node_depth end end
Remove unused methods in TreeNode
Remove unused methods in TreeNode
Ruby
mit
alphagov/content-tagger,alphagov/content-tagger,alphagov/content-tagger
ruby
## Code Before: class TreeNode attr_reader :taxon, :children delegate :title, :base_path, :content_id, :parent_taxons, :parent_taxons=, to: :taxon attr_accessor :parent_node delegate :map, :each, to: :tree def initialize(title:, content_id:) @taxon = Taxon.new(title: title, content_id: content_id) @children = [] end def <<(child_node) child_node.parent_node = self @children << child_node end def tree return [self] if @children.empty? @children.each_with_object([self]) do |child, tree| tree.concat(child.tree) end end def count tree.count end def root? parent_node.nil? end def node_depth return 0 if root? 1 + parent_node.node_depth end end ## Instruction: Remove unused methods in TreeNode ## Code After: class TreeNode attr_reader :taxon, :children attr_accessor :parent_node delegate :title, :base_path, :content_id, to: :taxon delegate :map, :each, to: :tree def initialize(title:, content_id:) @taxon = Taxon.new(title: title, content_id: content_id) @children = [] end def <<(child_node) child_node.parent_node = self @children << child_node end def tree return [self] if @children.empty? @children.each_with_object([self]) do |child, tree| tree.concat(child.tree) end end def count tree.count end def root? parent_node.nil? end def node_depth return 0 if root? 1 + parent_node.node_depth end end
ef1ec65ae70bdbb5515b50264ba63ca618eecdcf
lib/active_model/default_serializer.rb
lib/active_model/default_serializer.rb
module ActiveModel # DefaultSerializer # # Provides a constant interface for all items class DefaultSerializer attr_reader :object def initialize(object, options=nil) @object = object end def serializable_hash(*) @object.as_json end alias serializable_object serializable_hash end end
require 'active_model/serializable' module ActiveModel # DefaultSerializer # # Provides a constant interface for all items class DefaultSerializer include ActiveModel::Serializable attr_reader :object def initialize(object, options=nil) @object = object end def as_json(options={}) @object.as_json end alias serializable_hash as_json alias serializable_object as_json end end
Make DefaultSerializer include AM::Serializable so embedded_in_root_associations is always defined also there
Make DefaultSerializer include AM::Serializable so embedded_in_root_associations is always defined also there
Ruby
mit
onehub/active_model_serializers,getoutreach/active_model_serializers,adparlor/active_model_serializers,ahey/active_model_serializers_latest
ruby
## Code Before: module ActiveModel # DefaultSerializer # # Provides a constant interface for all items class DefaultSerializer attr_reader :object def initialize(object, options=nil) @object = object end def serializable_hash(*) @object.as_json end alias serializable_object serializable_hash end end ## Instruction: Make DefaultSerializer include AM::Serializable so embedded_in_root_associations is always defined also there ## Code After: require 'active_model/serializable' module ActiveModel # DefaultSerializer # # Provides a constant interface for all items class DefaultSerializer include ActiveModel::Serializable attr_reader :object def initialize(object, options=nil) @object = object end def as_json(options={}) @object.as_json end alias serializable_hash as_json alias serializable_object as_json end end
e5c5c82d4e6602edcc3a275795a92db26ee78452
example/oauth-provider/src/net/oauth/example/provider/core/provider.properties
example/oauth-provider/src/net/oauth/example/provider/core/provider.properties
-- for clients do not add callbackURL myKey=mySecret myKey.description=CookieJar myKey.callbackURL=http://localhost/CookieJar/Callback noCallbackConsumer=noCallbackSecret noCallbackConsumer.description=sample consumer
-- for clients do not add callbackURL myKey=mySecret myKey.description=CookieJar myKey.callbackURL=http://localhost/CookieJar/Callback noCallbackConsumer=noCallbackSecret noCallbackConsumer.description=sample consumer gadgetConsumer=gadgetSecret gadgetConsumer.description=Gadget running on Shindig gadgetConsumer.callbackURL=http://localhost:8080/gadgets/oauthcallback
Add the ability to demo a Shindig gadget with a callback.
Add the ability to demo a Shindig gadget with a callback.
INI
apache-2.0
luosx/oauth,luosx/oauth,luosx/oauth
ini
## Code Before: -- for clients do not add callbackURL myKey=mySecret myKey.description=CookieJar myKey.callbackURL=http://localhost/CookieJar/Callback noCallbackConsumer=noCallbackSecret noCallbackConsumer.description=sample consumer ## Instruction: Add the ability to demo a Shindig gadget with a callback. ## Code After: -- for clients do not add callbackURL myKey=mySecret myKey.description=CookieJar myKey.callbackURL=http://localhost/CookieJar/Callback noCallbackConsumer=noCallbackSecret noCallbackConsumer.description=sample consumer gadgetConsumer=gadgetSecret gadgetConsumer.description=Gadget running on Shindig gadgetConsumer.callbackURL=http://localhost:8080/gadgets/oauthcallback
330c620c3ddfb6ba0b2741647e0a92d236b78017
examples/single-file/main.clj
examples/single-file/main.clj
(set-env! :dependencies '[[org.clojure/clojure "1.7.0-RC1" :scope "provided"] [funcool/catacumba "0.2.0-SNAPSHOT"]]) (require '[catacumba.core :as ct]) (defn home-page [content] "Hello world") (def app (ct/routes [[:get home-page]])) (defn -main "The main entry point to your application." [& args] (let [lt (java.util.concurrent.CountDownLatch. 1)] (ct/run-server app {:port 5050 :basedir "."}) (.await lt)))
(set-env! :dependencies '[[org.clojure/clojure "1.7.0-RC1"] [funcool/catacumba "0.2.0"]]) (require '[catacumba.core :as ct]) (defn home-page [content] "Hello world") (def app (ct/routes [[:get home-page]])) (defn -main "The main entry point to your application." [& args] (let [lt (java.util.concurrent.CountDownLatch. 1)] (ct/run-server app {:port 5050 :basedir "."}) (.await lt)))
Update catacumba version on single-file example.
Update catacumba version on single-file example.
Clojure
bsd-2-clause
prepor/catacumba,funcool/catacumba,coopsource/catacumba,prepor/catacumba,funcool/catacumba,funcool/catacumba,mitchelkuijpers/catacumba,coopsource/catacumba,mitchelkuijpers/catacumba
clojure
## Code Before: (set-env! :dependencies '[[org.clojure/clojure "1.7.0-RC1" :scope "provided"] [funcool/catacumba "0.2.0-SNAPSHOT"]]) (require '[catacumba.core :as ct]) (defn home-page [content] "Hello world") (def app (ct/routes [[:get home-page]])) (defn -main "The main entry point to your application." [& args] (let [lt (java.util.concurrent.CountDownLatch. 1)] (ct/run-server app {:port 5050 :basedir "."}) (.await lt))) ## Instruction: Update catacumba version on single-file example. ## Code After: (set-env! :dependencies '[[org.clojure/clojure "1.7.0-RC1"] [funcool/catacumba "0.2.0"]]) (require '[catacumba.core :as ct]) (defn home-page [content] "Hello world") (def app (ct/routes [[:get home-page]])) (defn -main "The main entry point to your application." [& args] (let [lt (java.util.concurrent.CountDownLatch. 1)] (ct/run-server app {:port 5050 :basedir "."}) (.await lt)))
8f44f0ba04f43105106e934693d3fbe3afae0ca5
index.js
index.js
'use strict'; var dir = './lib'; if (process.env.COVERAGE){ dir = './lib-cov'; } var M = require(dir); if (typeof window !== 'undefined') { var _M = window.M; window.M = M; M.noConflict = function () { window.M = _M; return M; }; } if (typeof module !== 'undefined') { module.exports = M; }
'use strict'; var M = require('./lib'); if (process.env.COVERAGE){ var dir = './lib-cov'; M = require(dir); } if (typeof window !== 'undefined') { var _M = window.M; window.M = M; M.noConflict = function () { window.M = _M; return M; }; } if (typeof module !== 'undefined') { module.exports = M; }
Fix lib-cov require when using browserify
Fix lib-cov require when using browserify
JavaScript
mit
kwangkim/javascript-cas,aantthony/javascript-cas,kwangkim/javascript-cas
javascript
## Code Before: 'use strict'; var dir = './lib'; if (process.env.COVERAGE){ dir = './lib-cov'; } var M = require(dir); if (typeof window !== 'undefined') { var _M = window.M; window.M = M; M.noConflict = function () { window.M = _M; return M; }; } if (typeof module !== 'undefined') { module.exports = M; } ## Instruction: Fix lib-cov require when using browserify ## Code After: 'use strict'; var M = require('./lib'); if (process.env.COVERAGE){ var dir = './lib-cov'; M = require(dir); } if (typeof window !== 'undefined') { var _M = window.M; window.M = M; M.noConflict = function () { window.M = _M; return M; }; } if (typeof module !== 'undefined') { module.exports = M; }
e95d28d983ad0e0cd6a9343096974209eb506a9e
package.json
package.json
{ "name": "Dota2_Stats", "description": "Personal Dota 2 stats", "version": "0.0.1", "license": "MIT", "private": true, "scripts": { "postinstall": "node ./node_modules/bower/bin/bower install", "prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public/app.all.js ./public/src", "start": "node ./app/app.js" }, "dependencies": { "bower": "^1.3.8", "coffee-script": "^1.7.1", "compression": "^1.0.9", "express": "~4.2.0", "q": "^1.0.1", "q-io": "^1.11.3", "redis": "^0.11.0" } }
{ "name": "Dota2_Stats", "description": "Personal Dota 2 stats", "version": "0.0.1", "license": "MIT", "private": true, "scripts": { "postinstall": "bower install", "prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public/app.all.js ./public/src", "start": "node ./app/app.js" }, "dependencies": { "coffee-script": "^1.7.1", "compression": "^1.0.9", "express": "~4.2.0", "q": "^1.0.1", "q-io": "^1.11.3", "redis": "^0.11.0" } }
Revert "Added bower as a local dependency."
Revert "Added bower as a local dependency." This reverts commit f9159056ce53bc4821af3841da90adb6dc232603.
JSON
mit
verath/dota-stats,verath/dota-stats
json
## Code Before: { "name": "Dota2_Stats", "description": "Personal Dota 2 stats", "version": "0.0.1", "license": "MIT", "private": true, "scripts": { "postinstall": "node ./node_modules/bower/bin/bower install", "prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public/app.all.js ./public/src", "start": "node ./app/app.js" }, "dependencies": { "bower": "^1.3.8", "coffee-script": "^1.7.1", "compression": "^1.0.9", "express": "~4.2.0", "q": "^1.0.1", "q-io": "^1.11.3", "redis": "^0.11.0" } } ## Instruction: Revert "Added bower as a local dependency." This reverts commit f9159056ce53bc4821af3841da90adb6dc232603. ## Code After: { "name": "Dota2_Stats", "description": "Personal Dota 2 stats", "version": "0.0.1", "license": "MIT", "private": true, "scripts": { "postinstall": "bower install", "prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public/app.all.js ./public/src", "start": "node ./app/app.js" }, "dependencies": { "coffee-script": "^1.7.1", "compression": "^1.0.9", "express": "~4.2.0", "q": "^1.0.1", "q-io": "^1.11.3", "redis": "^0.11.0" } }
1e1430d89d0cbd5f1de04194ac394b703c86693d
virtool/api/genbank.py
virtool/api/genbank.py
import aiohttp import aiohttp.web import virtool.genbank import virtool.http.proxy import virtool.http.routes from virtool.api.utils import bad_gateway, json_response, not_found routes = virtool.http.routes.Routes() @routes.get("/api/genbank/{accession}") async def get(req): """ Retrieve the Genbank data associated with the given accession and transform it into a Virtool-style sequence document. """ accession = req.match_info["accession"] session = req.app["client"] settings = req.app["settings"] try: data = await virtool.genbank.fetch(settings, session, accession) if data is None: return not_found() return json_response(data) except aiohttp.client_exceptions.ClientConnectorError: return bad_gateway("Could not reach Genbank")
import aiohttp import aiohttp.client_exceptions import virtool.genbank import virtool.http.proxy import virtool.http.routes from virtool.api.utils import bad_gateway, json_response, not_found routes = virtool.http.routes.Routes() @routes.get("/api/genbank/{accession}") async def get(req): """ Retrieve the Genbank data associated with the given accession and transform it into a Virtool-style sequence document. """ accession = req.match_info["accession"] session = req.app["client"] settings = req.app["settings"] try: data = await virtool.genbank.fetch(settings, session, accession) if data is None: return not_found() return json_response(data) except aiohttp.client_exceptions.ClientConnectorError: return bad_gateway("Could not reach NCBI")
Return 502 when NCBI unavailable
Return 502 when NCBI unavailable
Python
mit
virtool/virtool,virtool/virtool,igboyes/virtool,igboyes/virtool
python
## Code Before: import aiohttp import aiohttp.web import virtool.genbank import virtool.http.proxy import virtool.http.routes from virtool.api.utils import bad_gateway, json_response, not_found routes = virtool.http.routes.Routes() @routes.get("/api/genbank/{accession}") async def get(req): """ Retrieve the Genbank data associated with the given accession and transform it into a Virtool-style sequence document. """ accession = req.match_info["accession"] session = req.app["client"] settings = req.app["settings"] try: data = await virtool.genbank.fetch(settings, session, accession) if data is None: return not_found() return json_response(data) except aiohttp.client_exceptions.ClientConnectorError: return bad_gateway("Could not reach Genbank") ## Instruction: Return 502 when NCBI unavailable ## Code After: import aiohttp import aiohttp.client_exceptions import virtool.genbank import virtool.http.proxy import virtool.http.routes from virtool.api.utils import bad_gateway, json_response, not_found routes = virtool.http.routes.Routes() @routes.get("/api/genbank/{accession}") async def get(req): """ Retrieve the Genbank data associated with the given accession and transform it into a Virtool-style sequence document. """ accession = req.match_info["accession"] session = req.app["client"] settings = req.app["settings"] try: data = await virtool.genbank.fetch(settings, session, accession) if data is None: return not_found() return json_response(data) except aiohttp.client_exceptions.ClientConnectorError: return bad_gateway("Could not reach NCBI")
b65f65407f27a3352535c882fe3b852a1bc27d59
.github/actions/generate-locales/entrypoint.sh
.github/actions/generate-locales/entrypoint.sh
composer install --no-interaction # Import locales on backend bin/console locale:generate # Install NPM dependencies cd frontend npm ci # Import locales on frontend npm run generate-locales eval "$@"
composer install --no-interaction --ignore-platform-req=ext-maxminddb # Import locales on backend bin/console locale:generate # Install NPM dependencies cd frontend npm ci # Import locales on frontend npm run generate-locales eval "$@"
Add exclusion for maxminddb in Composer reqs.
Add exclusion for maxminddb in Composer reqs.
Shell
agpl-3.0
SlvrEagle23/AzuraCast,AzuraCast/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,AzuraCast/AzuraCast,AzuraCast/AzuraCast,AzuraCast/AzuraCast
shell
## Code Before: composer install --no-interaction # Import locales on backend bin/console locale:generate # Install NPM dependencies cd frontend npm ci # Import locales on frontend npm run generate-locales eval "$@" ## Instruction: Add exclusion for maxminddb in Composer reqs. ## Code After: composer install --no-interaction --ignore-platform-req=ext-maxminddb # Import locales on backend bin/console locale:generate # Install NPM dependencies cd frontend npm ci # Import locales on frontend npm run generate-locales eval "$@"
fdcb03a8e6bb3164d2e616e5f5d52c522a33a31e
pillar/vault/roles/bootcamps.sls
pillar/vault/roles/bootcamps.sls
vault: roles: bootcamps-app: backend: postgresql-bootcamps name: app options: {% raw %} sql: >- CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT; GRANT "{{name}}" TO odldevops; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "{{name}}" WITH GRANT OPTION; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "{{name}}" WITH GRANT OPTION; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL PRIVILEGES ON TABLES TO "{{name}}" WITH GRANT OPTION; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL PRIVILEGES ON SEQUENCES TO "{{name}}" WITH GRANT OPTION; {% endraw %} bootcamps-readonly: backend: postgresql-bootcamps name: readonly options: {% raw %} sql: >- CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO "{{name}}"; GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO "{{name}}"; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO "{{name}}"; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON SEQUENCES TO "{{name}}"; {% endraw %}
vault: roles: bootcamps-app: backend: postgresql-bootcamps name: app options: {% raw %} sql: >- CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "bootcamp-ecommerce" WITH GRANT OPTION; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "bootcamp-ecommerce" WITH GRANT OPTION; SET ROLE "bootcamp-ecommerce"; ALTER DEFAULT PRIVILEGES FOR ROLE "bootcamp-ecommerce" IN SCHEMA public GRANT ALL PRIVILEGES ON TABLES TO "bootcamp-ecommerce" WITH GRANT OPTION; ALTER DEFAULT PRIVILEGES FOR ROLE "bootcamp-ecommerce" IN SCHEMA public GRANT ALL PRIVILEGES ON SEQUENCES TO "bootcamp-ecommerce" WITH GRANT OPTION; RESET ROLE; ALTER ROLE "{{name}}" SET ROLE "bootcamp-ecommerce"; {% endraw %} bootcamps-readonly: backend: postgresql-bootcamps name: readonly options: {% raw %} sql: >- REVOKE "bootcamp-ecommerce" FROM "{{name}}"; GRANT "{{name}}" TO bootcamp-ecommerce WITH ADMIN OPTION; SET ROLE bootcamp-ecommerce; REASSIGN OWNED BY "{{name}}" TO "bootcamp-ecommerce"; RESET ROLE; DROP OWNED BY "{{name}}"; REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA public FROM "{{name}}"; REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public FROM "{{name}}"; REVOKE USAGE ON SCHEMA public FROM "{{name}}"; DROP USER "{{name}}";""" {% endraw %}
Fix DB role definition for Bootcamps user in Vault
Fix DB role definition for Bootcamps user in Vault
SaltStack
bsd-3-clause
mitodl/salt-ops,mitodl/salt-ops
saltstack
## Code Before: vault: roles: bootcamps-app: backend: postgresql-bootcamps name: app options: {% raw %} sql: >- CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT; GRANT "{{name}}" TO odldevops; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "{{name}}" WITH GRANT OPTION; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "{{name}}" WITH GRANT OPTION; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL PRIVILEGES ON TABLES TO "{{name}}" WITH GRANT OPTION; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL PRIVILEGES ON SEQUENCES TO "{{name}}" WITH GRANT OPTION; {% endraw %} bootcamps-readonly: backend: postgresql-bootcamps name: readonly options: {% raw %} sql: >- CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO "{{name}}"; GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO "{{name}}"; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO "{{name}}"; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON SEQUENCES TO "{{name}}"; {% endraw %} ## Instruction: Fix DB role definition for Bootcamps user in Vault ## Code After: vault: roles: bootcamps-app: backend: postgresql-bootcamps name: app options: {% raw %} sql: >- CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "bootcamp-ecommerce" WITH GRANT OPTION; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "bootcamp-ecommerce" WITH GRANT OPTION; SET ROLE "bootcamp-ecommerce"; ALTER DEFAULT PRIVILEGES FOR ROLE "bootcamp-ecommerce" IN SCHEMA public GRANT ALL PRIVILEGES ON TABLES TO "bootcamp-ecommerce" WITH GRANT OPTION; ALTER DEFAULT PRIVILEGES FOR ROLE "bootcamp-ecommerce" IN SCHEMA public GRANT ALL PRIVILEGES ON SEQUENCES TO "bootcamp-ecommerce" WITH GRANT OPTION; RESET ROLE; ALTER ROLE "{{name}}" SET ROLE "bootcamp-ecommerce"; {% endraw %} bootcamps-readonly: backend: postgresql-bootcamps name: readonly options: {% raw %} sql: >- REVOKE "bootcamp-ecommerce" FROM "{{name}}"; GRANT "{{name}}" TO bootcamp-ecommerce WITH ADMIN OPTION; SET ROLE bootcamp-ecommerce; REASSIGN OWNED BY "{{name}}" TO "bootcamp-ecommerce"; RESET ROLE; DROP OWNED BY "{{name}}"; REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA public FROM "{{name}}"; REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public FROM "{{name}}"; REVOKE USAGE ON SCHEMA public FROM "{{name}}"; DROP USER "{{name}}";""" {% endraw %}
376df8ba93b7cb273a0143839e50a1dbf7cc0dc6
tests/errors/bug579101.vala
tests/errors/bug579101.vala
void do_foo (out int i) { i = 0; try { return; } finally { i = 42; } } void main () { int i; do_foo (out i); assert (i == 42); }
errordomain FooError { FAIL } void do_foo (out int i) { i = 0; try { return; } finally { i = 42; } assert_not_reached (); } string do_bar (out int i) { string s = "bar"; try { if (s == "bar") { return s; } } finally { i = 23; } assert_not_reached (); } string do_manam (out int i) { string s = "manam"; try { throw new FooError.FAIL ("manam"); } catch { if (s == "manam") { return s; } } finally { i = 4711; } assert_not_reached (); } void main () { { int i; do_foo (out i); assert (i == 42); } { int i; string s = do_bar (out i); assert (i == 23); assert (s == "bar"); } { int i; string s = do_manam (out i); assert (i == 4711); assert (s == "manam"); } }
Extend "finally block execution" test to increase coverage
tests: Extend "finally block execution" test to increase coverage In addition to 9f21d0b182edad861f93a91674787b8b3b4fc2c5 See https://bugzilla.gnome.org/show_bug.cgi?id=579101
Vala
lgpl-2.1
frida/vala,GNOME/vala,GNOME/vala,frida/vala,GNOME/vala,frida/vala,frida/vala,GNOME/vala,frida/vala
vala
## Code Before: void do_foo (out int i) { i = 0; try { return; } finally { i = 42; } } void main () { int i; do_foo (out i); assert (i == 42); } ## Instruction: tests: Extend "finally block execution" test to increase coverage In addition to 9f21d0b182edad861f93a91674787b8b3b4fc2c5 See https://bugzilla.gnome.org/show_bug.cgi?id=579101 ## Code After: errordomain FooError { FAIL } void do_foo (out int i) { i = 0; try { return; } finally { i = 42; } assert_not_reached (); } string do_bar (out int i) { string s = "bar"; try { if (s == "bar") { return s; } } finally { i = 23; } assert_not_reached (); } string do_manam (out int i) { string s = "manam"; try { throw new FooError.FAIL ("manam"); } catch { if (s == "manam") { return s; } } finally { i = 4711; } assert_not_reached (); } void main () { { int i; do_foo (out i); assert (i == 42); } { int i; string s = do_bar (out i); assert (i == 23); assert (s == "bar"); } { int i; string s = do_manam (out i); assert (i == 4711); assert (s == "manam"); } }
6280cd7d0d5c91fdb956134e4953c13e0dae376f
opensuse-useful-packages.sh
opensuse-useful-packages.sh
sudo zypper install \ autoconf \ automake \ bzr \ chromium \ emacs-x11 \ htop \ gcc gcc-c++ \ git git-daemon git-gui gitk \ libtool \ make \ mercurial \ ncurses-devel \ osc \ python-devel \ python-Pygments \ python-six \ python-Sphinx \ python3 \ python3-devel \ python3-Pygments \ python3-six \ python3-Sphinx \ quilt \ sqlite3 \ systemd-analyze
sudo zypper install \ autoconf \ automake \ bzr \ calibre \ chromium \ emacs-x11 \ htop \ gcc gcc-c++ \ git git-daemon git-gui gitk \ iotop \ libtool \ make \ mercurial \ ncurses-devel \ osc \ python-devel \ python-Pygments \ python-six \ python-Sphinx \ python3 \ python3-devel \ python3-Pygments \ python3-six \ python3-Sphinx \ quilt \ sqlite3 \ systemd-analyze
Add iotop and calibre packages
Add iotop and calibre packages
Shell
mit
cataliniacob/misc,cataliniacob/misc
shell
## Code Before: sudo zypper install \ autoconf \ automake \ bzr \ chromium \ emacs-x11 \ htop \ gcc gcc-c++ \ git git-daemon git-gui gitk \ libtool \ make \ mercurial \ ncurses-devel \ osc \ python-devel \ python-Pygments \ python-six \ python-Sphinx \ python3 \ python3-devel \ python3-Pygments \ python3-six \ python3-Sphinx \ quilt \ sqlite3 \ systemd-analyze ## Instruction: Add iotop and calibre packages ## Code After: sudo zypper install \ autoconf \ automake \ bzr \ calibre \ chromium \ emacs-x11 \ htop \ gcc gcc-c++ \ git git-daemon git-gui gitk \ iotop \ libtool \ make \ mercurial \ ncurses-devel \ osc \ python-devel \ python-Pygments \ python-six \ python-Sphinx \ python3 \ python3-devel \ python3-Pygments \ python3-six \ python3-Sphinx \ quilt \ sqlite3 \ systemd-analyze
12276bf6a6e138ef68ca5356fdd6c53ca42dd538
app/views/patients/index.haml
app/views/patients/index.haml
/ XXX: Pull out the labels from a config file. .row.pull-right.align-right = link_to new_patient_path, class: "btn btn-success" do <i class="fa fa-male"></i> Nuevo paciente %table.table.table-striped %thead %tr %th Historia %th Apellidos %th Nombres %th Sexo %th Fecha Nacimiento %tbody - @patients.each do |patient| %tr %td= patient.medical_history %td= patient.last_name %td= patient.first_name %td= patient.gender %td= patient.birthdate.strftime("%Y-%m-%d")
/ XXX: Pull out the labels from a config file. .row.pull-right.align-right = link_to "Nuevo paciente", new_patient_path, class: "btn btn-success" %table.table.table-striped %thead %tr %th Historia %th Apellidos %th Nombres %th Sexo %th Fecha Nacimiento %tbody - @patients.each do |patient| %tr %td= patient.medical_history %td= patient.last_name %td= patient.first_name %td= patient.gender %td= patient.birthdate.strftime("%Y-%m-%d")
Remove icon from new patient button
Remove icon from new patient button
Haml
mit
acamino/hippocrates,acamino/hippocrates,acamino/hippocrates
haml
## Code Before: / XXX: Pull out the labels from a config file. .row.pull-right.align-right = link_to new_patient_path, class: "btn btn-success" do <i class="fa fa-male"></i> Nuevo paciente %table.table.table-striped %thead %tr %th Historia %th Apellidos %th Nombres %th Sexo %th Fecha Nacimiento %tbody - @patients.each do |patient| %tr %td= patient.medical_history %td= patient.last_name %td= patient.first_name %td= patient.gender %td= patient.birthdate.strftime("%Y-%m-%d") ## Instruction: Remove icon from new patient button ## Code After: / XXX: Pull out the labels from a config file. .row.pull-right.align-right = link_to "Nuevo paciente", new_patient_path, class: "btn btn-success" %table.table.table-striped %thead %tr %th Historia %th Apellidos %th Nombres %th Sexo %th Fecha Nacimiento %tbody - @patients.each do |patient| %tr %td= patient.medical_history %td= patient.last_name %td= patient.first_name %td= patient.gender %td= patient.birthdate.strftime("%Y-%m-%d")
aba731a6b68d09a065e2b97c4eff2d51a86195e1
index.js
index.js
const express = require('express'); const helmet = require('helmet'); const winston = require('winston'); const bodyParser = require('body-parser'); const env = require('./src/env'); var server = express(); var router = require('./src/router'); var PORT = env.PORT || 8000; server.use(bodyParser.urlencoded({ extended: false })); server.use(helmet()); server.use('/', router); function _get() { return server; } function run(fn) { fn = fn || function _defaultStart() { winston.info('Listening at ' + PORT); }; return server.listen(PORT, fn); } if (require.main === module) { run(); } module.exports = { _get: _get, run: run };
const express = require('express'); const helmet = require('helmet'); const winston = require('winston'); const bodyParser = require('body-parser'); const env = require('./src/env'); var server = express(); var router = require('./src/router'); var PORT = env.PORT || 8000; server.use(bodyParser.json()); server.use(helmet()); server.use('/', router); function _get() { return server; } function run(fn) { fn = fn || function _defaultStart() { winston.info('Listening at ' + PORT); }; return server.listen(PORT, fn); } if (require.main === module) { run(); } module.exports = { _get: _get, run: run };
Switch to use JSON payload parser
fix: Switch to use JSON payload parser
JavaScript
mit
NSAppsTeam/nickel-bot
javascript
## Code Before: const express = require('express'); const helmet = require('helmet'); const winston = require('winston'); const bodyParser = require('body-parser'); const env = require('./src/env'); var server = express(); var router = require('./src/router'); var PORT = env.PORT || 8000; server.use(bodyParser.urlencoded({ extended: false })); server.use(helmet()); server.use('/', router); function _get() { return server; } function run(fn) { fn = fn || function _defaultStart() { winston.info('Listening at ' + PORT); }; return server.listen(PORT, fn); } if (require.main === module) { run(); } module.exports = { _get: _get, run: run }; ## Instruction: fix: Switch to use JSON payload parser ## Code After: const express = require('express'); const helmet = require('helmet'); const winston = require('winston'); const bodyParser = require('body-parser'); const env = require('./src/env'); var server = express(); var router = require('./src/router'); var PORT = env.PORT || 8000; server.use(bodyParser.json()); server.use(helmet()); server.use('/', router); function _get() { return server; } function run(fn) { fn = fn || function _defaultStart() { winston.info('Listening at ' + PORT); }; return server.listen(PORT, fn); } if (require.main === module) { run(); } module.exports = { _get: _get, run: run };
fabc9983afdfa17ff680ed9238be1d35f751137b
README.md
README.md
[![Latest Version][1]][2] Generate your license. Yet another [lice][3], but implement with Jinja. ## Install $ pip install licen ## Usage A gif is worth than a thousand words. ![demo_gif][gif] Or get detailed help message from the terminal. $ licen -h licen, generates license for you via command line Usage: licen [header] (-l | --list) licen [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_NAME licen header [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_HEADER licen --var NAME licen (-h | --help) licen (-V | --version) Options: -l --list List all the support licenses or headers. -y YEAR Specify the year. -f FULLNAME Specify the owner's fullname. -e EMAIL Specify the email. --var List all the variables in the template. -h --help Show the help message. -V --version Show the version info. ## License MIT. [1]: http://img.shields.io/pypi/v/licen.svg [2]: https://pypi.python.org/pypi/licen [3]: https://github.com/licenses/lice [gif]: https://github.com/lord63/licen/blob/master/licen_demo.gif
[![Latest Version][1]][2] [![Build Status][3]][4] Generate your license. Yet another [lice][3], but implement with Jinja. ## Install $ pip install licen ## Usage A gif is worth than a thousand words. ![demo_gif][gif] Or get detailed help message from the terminal. $ licen -h licen, generates license for you via command line Usage: licen [header] (-l | --list) licen [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_NAME licen header [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_HEADER licen --var NAME licen (-h | --help) licen (-V | --version) Options: -l --list List all the support licenses or headers. -y YEAR Specify the year. -f FULLNAME Specify the owner's fullname. -e EMAIL Specify the email. --var List all the variables in the template. -h --help Show the help message. -V --version Show the version info. ## License MIT. [1]: http://img.shields.io/pypi/v/licen.svg [2]: https://pypi.python.org/pypi/licen [3]: https://github.com/licenses/lice [3]: https://travis-ci.org/lord63/licen.svg [4]: https://travis-ci.org/lord63/licen [gif]: https://github.com/lord63/licen/blob/master/licen_demo.gif
Add badage for building status
Add badage for building status
Markdown
mit
lord63/licen
markdown
## Code Before: [![Latest Version][1]][2] Generate your license. Yet another [lice][3], but implement with Jinja. ## Install $ pip install licen ## Usage A gif is worth than a thousand words. ![demo_gif][gif] Or get detailed help message from the terminal. $ licen -h licen, generates license for you via command line Usage: licen [header] (-l | --list) licen [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_NAME licen header [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_HEADER licen --var NAME licen (-h | --help) licen (-V | --version) Options: -l --list List all the support licenses or headers. -y YEAR Specify the year. -f FULLNAME Specify the owner's fullname. -e EMAIL Specify the email. --var List all the variables in the template. -h --help Show the help message. -V --version Show the version info. ## License MIT. [1]: http://img.shields.io/pypi/v/licen.svg [2]: https://pypi.python.org/pypi/licen [3]: https://github.com/licenses/lice [gif]: https://github.com/lord63/licen/blob/master/licen_demo.gif ## Instruction: Add badage for building status ## Code After: [![Latest Version][1]][2] [![Build Status][3]][4] Generate your license. Yet another [lice][3], but implement with Jinja. ## Install $ pip install licen ## Usage A gif is worth than a thousand words. ![demo_gif][gif] Or get detailed help message from the terminal. $ licen -h licen, generates license for you via command line Usage: licen [header] (-l | --list) licen [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_NAME licen header [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_HEADER licen --var NAME licen (-h | --help) licen (-V | --version) Options: -l --list List all the support licenses or headers. -y YEAR Specify the year. -f FULLNAME Specify the owner's fullname. -e EMAIL Specify the email. --var List all the variables in the template. -h --help Show the help message. -V --version Show the version info. ## License MIT. [1]: http://img.shields.io/pypi/v/licen.svg [2]: https://pypi.python.org/pypi/licen [3]: https://github.com/licenses/lice [3]: https://travis-ci.org/lord63/licen.svg [4]: https://travis-ci.org/lord63/licen [gif]: https://github.com/lord63/licen/blob/master/licen_demo.gif
ae1cbdd033c2dbedb6e5380531a49f947f41002b
cartodb/maintenance/selectTestRecords.sql
cartodb/maintenance/selectTestRecords.sql
-- SQL to show number of records recorded earlier than tracking_start_date_time. -- Those records should be removed. -- https://lifewatch-inbo.cartodb.com/viz/5d42a40a-9951-11e3-8315-0ed66c7bc7f3/table select count(*) from bird_tracking as t left join bird_tracking_devices as d on t.device_info_serial = d.device_info_serial where t.date_time < d.tracking_start_date_time
-- SQL to show number of records recorded earlier than tracking_start_date_time. -- Those records should be removed. select count(*) from bird_tracking as t left join bird_tracking_devices as d on t.device_info_serial = d.device_info_serial where t.date_time < d.tracking_start_date_time
Remove link that does not work
Remove link that does not work
SQL
mit
LifeWatchINBO/bird-tracking,LifeWatchINBO/bird-tracking
sql
## Code Before: -- SQL to show number of records recorded earlier than tracking_start_date_time. -- Those records should be removed. -- https://lifewatch-inbo.cartodb.com/viz/5d42a40a-9951-11e3-8315-0ed66c7bc7f3/table select count(*) from bird_tracking as t left join bird_tracking_devices as d on t.device_info_serial = d.device_info_serial where t.date_time < d.tracking_start_date_time ## Instruction: Remove link that does not work ## Code After: -- SQL to show number of records recorded earlier than tracking_start_date_time. -- Those records should be removed. select count(*) from bird_tracking as t left join bird_tracking_devices as d on t.device_info_serial = d.device_info_serial where t.date_time < d.tracking_start_date_time
48aeb44374abc3baae4bb098f9e94dea26c91494
index.js
index.js
var opts = require('optimist').argv var through = require('through2'); function indexhtmlify(opts) { var s = through(function onwrite(chunk, enc, cb) { s.push(chunk) cb() }, function onend(cb) { s.push('</script>\n') s.push('</html>\n') cb() }) s.push('<!DOCTYPE html>\n') s.push('<html>\n') s.push('<head>\n') s.push('<title>---</title>\n') s.push('<meta content="width=device-width, initial-scale=1.0, ' + 'maximum-scale=1.0, user-scalable=0" name="viewport" />\n') s.push('<meta charset=utf-8></head>\n') if (opts.style) { s.push('<style>\n') s.push(require('fs').readFileSync(opts.style, 'utf8')) s.push('</style>\n') } s.push('<body></body>\n') s.push('<script language=javascript>\n') return s } module.exports = indexhtmlify if (require.main === module) { if(process.stdin.isTTY) { console.error('USAGE: browserify client.js | indexhtmlify ' + '--style style.css > index.html') process.exit(1) } process.stdin .pipe(indexhtmlify(opts)) .pipe(process.stdout) }
var opts = require('optimist').argv var through = require('through2'); function indexhtmlify(opts) { opts = opts || {} var s = through(function onwrite(chunk, enc, cb) { s.push(chunk) cb() }, function onend(cb) { s.push('</script>\n') s.push('</html>\n') cb() }) s.push('<!DOCTYPE html>\n') s.push('<html>\n') s.push('<head>\n') s.push('<title>' + (opts.title || '---') + '</title>\n') s.push('<meta content="width=device-width, initial-scale=1.0, ' + 'maximum-scale=1.0, user-scalable=0" name="viewport" />\n') s.push('<meta charset=utf-8></head>\n') if (opts.style) { s.push('<style>\n') s.push(require('fs').readFileSync(opts.style, 'utf8')) s.push('</style>\n') } s.push('<body></body>\n') s.push('<script language=javascript>\n') return s } module.exports = indexhtmlify if (require.main === module) { if(process.stdin.isTTY) { console.error('USAGE: browserify client.js | indexhtmlify ' + '--style style.css > index.html') process.exit(1) } process.stdin .pipe(indexhtmlify(opts)) .pipe(process.stdout) }
Allow passing in a title
Allow passing in a title
JavaScript
mit
dominictarr/indexhtmlify
javascript
## Code Before: var opts = require('optimist').argv var through = require('through2'); function indexhtmlify(opts) { var s = through(function onwrite(chunk, enc, cb) { s.push(chunk) cb() }, function onend(cb) { s.push('</script>\n') s.push('</html>\n') cb() }) s.push('<!DOCTYPE html>\n') s.push('<html>\n') s.push('<head>\n') s.push('<title>---</title>\n') s.push('<meta content="width=device-width, initial-scale=1.0, ' + 'maximum-scale=1.0, user-scalable=0" name="viewport" />\n') s.push('<meta charset=utf-8></head>\n') if (opts.style) { s.push('<style>\n') s.push(require('fs').readFileSync(opts.style, 'utf8')) s.push('</style>\n') } s.push('<body></body>\n') s.push('<script language=javascript>\n') return s } module.exports = indexhtmlify if (require.main === module) { if(process.stdin.isTTY) { console.error('USAGE: browserify client.js | indexhtmlify ' + '--style style.css > index.html') process.exit(1) } process.stdin .pipe(indexhtmlify(opts)) .pipe(process.stdout) } ## Instruction: Allow passing in a title ## Code After: var opts = require('optimist').argv var through = require('through2'); function indexhtmlify(opts) { opts = opts || {} var s = through(function onwrite(chunk, enc, cb) { s.push(chunk) cb() }, function onend(cb) { s.push('</script>\n') s.push('</html>\n') cb() }) s.push('<!DOCTYPE html>\n') s.push('<html>\n') s.push('<head>\n') s.push('<title>' + (opts.title || '---') + '</title>\n') s.push('<meta content="width=device-width, initial-scale=1.0, ' + 'maximum-scale=1.0, user-scalable=0" name="viewport" />\n') s.push('<meta charset=utf-8></head>\n') if (opts.style) { s.push('<style>\n') s.push(require('fs').readFileSync(opts.style, 'utf8')) s.push('</style>\n') } s.push('<body></body>\n') s.push('<script language=javascript>\n') return s } module.exports = indexhtmlify if (require.main === module) { if(process.stdin.isTTY) { console.error('USAGE: browserify client.js | indexhtmlify ' + '--style style.css > index.html') process.exit(1) } process.stdin .pipe(indexhtmlify(opts)) .pipe(process.stdout) }
786c9c5dfdbdf06c8df1f2ec5ec47a49bf9d9d8c
gumbo/element.lua
gumbo/element.lua
local Element = {} Element.__index = Element local function attr_next(attrs, i) local j = i + 1 local a = attrs[j] if a then return j, a.name, a.value, a.namespace, a.line, a.column, a.offset end end function Element:attr_iter() return attr_next, self.attr or {}, 0 end function Element:attr_iter_sorted() local attrs = self.attr if not attrs then return function() return nil end end local copy = {} for i = 1, #attrs do local attr = attrs[i] copy[i] = { name = attr.name, value = attr.value, namespace = attr.namespace } end table.sort(copy, function(a, b) return a.name < b.name end) return attr_next, copy, 0 end return Element
local yield = coroutine.yield local wrap = coroutine.wrap local sort = table.sort local Element = {} Element.__index = Element local function attr_yield(attrs) for i = 1, #attrs do local a = attrs[i] yield(i, a.name, a.value, a.namespace, a.line, a.column, a.offset) end end function Element:attr_iter() return wrap(function() attr_yield(self.attr) end) end function Element:attr_iter_sorted() local attrs = self.attr if not attrs then return function() return nil end end local copy = {} for i = 1, #attrs do local attr = attrs[i] copy[i] = { name = attr.name, value = attr.value, namespace = attr.namespace } end sort(copy, function(a, b) return a.name < b.name end) return wrap(function() attr_yield(copy) end) end return Element
Use coroutines for attribute iterators
Use coroutines for attribute iterators
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
lua
## Code Before: local Element = {} Element.__index = Element local function attr_next(attrs, i) local j = i + 1 local a = attrs[j] if a then return j, a.name, a.value, a.namespace, a.line, a.column, a.offset end end function Element:attr_iter() return attr_next, self.attr or {}, 0 end function Element:attr_iter_sorted() local attrs = self.attr if not attrs then return function() return nil end end local copy = {} for i = 1, #attrs do local attr = attrs[i] copy[i] = { name = attr.name, value = attr.value, namespace = attr.namespace } end table.sort(copy, function(a, b) return a.name < b.name end) return attr_next, copy, 0 end return Element ## Instruction: Use coroutines for attribute iterators ## Code After: local yield = coroutine.yield local wrap = coroutine.wrap local sort = table.sort local Element = {} Element.__index = Element local function attr_yield(attrs) for i = 1, #attrs do local a = attrs[i] yield(i, a.name, a.value, a.namespace, a.line, a.column, a.offset) end end function Element:attr_iter() return wrap(function() attr_yield(self.attr) end) end function Element:attr_iter_sorted() local attrs = self.attr if not attrs then return function() return nil end end local copy = {} for i = 1, #attrs do local attr = attrs[i] copy[i] = { name = attr.name, value = attr.value, namespace = attr.namespace } end sort(copy, function(a, b) return a.name < b.name end) return wrap(function() attr_yield(copy) end) end return Element
b6f4eba461661bc6e4f03b07ade7bd4f3542e6e5
.travis.yml
.travis.yml
language: php os: linux cache: directories: - $HOME/.composer/cache/files php: - 7.0 - 7.1 - 7.2 - 7.3 - 7.4 - nightly install: - composer update --prefer-dist --prefer-stable --no-interaction script: >- vendor/bin/phpunit --coverage-clover=build/coverage-report.xml && bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml jobs: fast_finish: true include: - name: Lowest deps php: 7.0 install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction - name: Composer 2 php: 7.0 before_install: composer self-update --snapshot - stage: Additional checks name: Backward compatibility check php: 7.4 script: - composer require --dev roave/backward-compatibility-check - vendor/bin/roave-backward-compatibility-check
language: php os: linux cache: directories: - $HOME/.composer/cache/files php: - 7.0 - 7.1 - 7.2 - 7.3 - 7.4 install: - composer update --prefer-dist --prefer-stable --no-interaction script: >- vendor/bin/phpunit --coverage-clover=build/coverage-report.xml && bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml jobs: fast_finish: true include: - name: Lowest deps php: 7.0 install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction - name: Composer 2 php: 7.0 before_install: composer self-update --snapshot - name: PHP 8 php: nightly install: composer update --ignore-platform-reqs --prefer-dist --prefer-stable --no-interaction - stage: Additional checks name: Backward compatibility check php: 7.4 script: - composer require --dev roave/backward-compatibility-check - vendor/bin/roave-backward-compatibility-check
Fix PHP 8 CI build
Fix PHP 8 CI build
YAML
mit
Jean85/pretty-package-versions
yaml
## Code Before: language: php os: linux cache: directories: - $HOME/.composer/cache/files php: - 7.0 - 7.1 - 7.2 - 7.3 - 7.4 - nightly install: - composer update --prefer-dist --prefer-stable --no-interaction script: >- vendor/bin/phpunit --coverage-clover=build/coverage-report.xml && bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml jobs: fast_finish: true include: - name: Lowest deps php: 7.0 install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction - name: Composer 2 php: 7.0 before_install: composer self-update --snapshot - stage: Additional checks name: Backward compatibility check php: 7.4 script: - composer require --dev roave/backward-compatibility-check - vendor/bin/roave-backward-compatibility-check ## Instruction: Fix PHP 8 CI build ## Code After: language: php os: linux cache: directories: - $HOME/.composer/cache/files php: - 7.0 - 7.1 - 7.2 - 7.3 - 7.4 install: - composer update --prefer-dist --prefer-stable --no-interaction script: >- vendor/bin/phpunit --coverage-clover=build/coverage-report.xml && bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml jobs: fast_finish: true include: - name: Lowest deps php: 7.0 install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction - name: Composer 2 php: 7.0 before_install: composer self-update --snapshot - name: PHP 8 php: nightly install: composer update --ignore-platform-reqs --prefer-dist --prefer-stable --no-interaction - stage: Additional checks name: Backward compatibility check php: 7.4 script: - composer require --dev roave/backward-compatibility-check - vendor/bin/roave-backward-compatibility-check
32d745aa6a1159bb11ef804134841d0a9ffff53b
package.json
package.json
{ "name": "bkb", "version": "0.23.0", "description": "A JavaScript Framework for Front-end Applications", "main": "bkb.min.js", "types": "bkb.d.ts", "devDependencies": { "rollup": "0.57.1", "typescript": "2.8.1", "uglify-es": "3.3.9", "npm-run-all": "4.1.2", "rimraf": "2.6.2" }, "scripts": { "_clear": "rimraf build/compiled/*", "_tsc": "tsc", "_make-bundle": "node build/make-bundle", "build": "run-s _clear _tsc _make-bundle", "watch": "tsc --watch" }, "repository": { "type": "git", "url": "git+https://github.com/paleo/bkb.git" }, "author": { "name": "Paleo" }, "license": "CC0-1.0", "homepage": "http://paleo.github.io/bkb/", "keywords": [ "frontend", "framework", "components", "lightweight", "non-opinionated" ] }
{ "name": "bkb", "version": "0.23.1", "description": "A JavaScript Framework for Front-end Applications", "main": "bkb.min.js", "types": "bkb.d.ts", "devDependencies": { "rollup": "0.57.1", "typescript": "2.8.1", "uglify-es": "3.3.9", "npm-run-all": "4.1.2", "rimraf": "2.6.2" }, "scripts": { "_clear": "rimraf build/compiled/*", "_tsc": "tsc", "_make-bundle": "node build/make-bundle", "build": "run-s _clear _tsc _make-bundle", "watch": "tsc --watch" }, "repository": { "type": "git", "url": "git+https://github.com/paleo/bkb.git" }, "author": { "name": "Paleo" }, "license": "CC0-1.0", "keywords": [ "frontend", "framework", "components", "lightweight", "non-opinionated" ] }
Remove the obsolete home page
Remove the obsolete home page
JSON
cc0-1.0
paleo/bkb,paleo/bkb
json
## Code Before: { "name": "bkb", "version": "0.23.0", "description": "A JavaScript Framework for Front-end Applications", "main": "bkb.min.js", "types": "bkb.d.ts", "devDependencies": { "rollup": "0.57.1", "typescript": "2.8.1", "uglify-es": "3.3.9", "npm-run-all": "4.1.2", "rimraf": "2.6.2" }, "scripts": { "_clear": "rimraf build/compiled/*", "_tsc": "tsc", "_make-bundle": "node build/make-bundle", "build": "run-s _clear _tsc _make-bundle", "watch": "tsc --watch" }, "repository": { "type": "git", "url": "git+https://github.com/paleo/bkb.git" }, "author": { "name": "Paleo" }, "license": "CC0-1.0", "homepage": "http://paleo.github.io/bkb/", "keywords": [ "frontend", "framework", "components", "lightweight", "non-opinionated" ] } ## Instruction: Remove the obsolete home page ## Code After: { "name": "bkb", "version": "0.23.1", "description": "A JavaScript Framework for Front-end Applications", "main": "bkb.min.js", "types": "bkb.d.ts", "devDependencies": { "rollup": "0.57.1", "typescript": "2.8.1", "uglify-es": "3.3.9", "npm-run-all": "4.1.2", "rimraf": "2.6.2" }, "scripts": { "_clear": "rimraf build/compiled/*", "_tsc": "tsc", "_make-bundle": "node build/make-bundle", "build": "run-s _clear _tsc _make-bundle", "watch": "tsc --watch" }, "repository": { "type": "git", "url": "git+https://github.com/paleo/bkb.git" }, "author": { "name": "Paleo" }, "license": "CC0-1.0", "keywords": [ "frontend", "framework", "components", "lightweight", "non-opinionated" ] }
fd2dd88acb4c05cb6b634a2d5048e3457b5c198d
README.md
README.md
`tumorr`, an R interface of `tumopp`, has been integrated into [tumopp repository](https://github.com/heavywatal/tumopp).
`tumorr` is R interface of [tumopp](https://github.com/heavywatal/tumopp), a tumor growth simulator in C++. ## Installation 1. Install [tumopp](https://github.com/heavywatal/tumopp) with Homebrew/Linuxbrew or CMake. 2. Install [devtools](https://github.com/hadley/devtools) in R: `install.packages('devtools')` 3. Execute `devtools::install_github('heavywatal/tumorr')` in R. You may need `Sys.setenv(CMAKE_PREFIX_PATH='/prefix/to/tumopp')` to tell R the location of tumopp installation.
Move all to r/ for integration
:construction: Move all to r/ for integration
Markdown
mit
heavywatal/tumorr,heavywatal/tumorr
markdown
## Code Before: `tumorr`, an R interface of `tumopp`, has been integrated into [tumopp repository](https://github.com/heavywatal/tumopp). ## Instruction: :construction: Move all to r/ for integration ## Code After: `tumorr` is R interface of [tumopp](https://github.com/heavywatal/tumopp), a tumor growth simulator in C++. ## Installation 1. Install [tumopp](https://github.com/heavywatal/tumopp) with Homebrew/Linuxbrew or CMake. 2. Install [devtools](https://github.com/hadley/devtools) in R: `install.packages('devtools')` 3. Execute `devtools::install_github('heavywatal/tumorr')` in R. You may need `Sys.setenv(CMAKE_PREFIX_PATH='/prefix/to/tumopp')` to tell R the location of tumopp installation.
b3cb09510be89ae26fa057e083b3a8bb678ba419
Python/racy/plugins/cppunit/rc/testBundle.cpp
Python/racy/plugins/cppunit/rc/testBundle.cpp
/* ***** BEGIN LICENSE BLOCK ***** * Sconspiracy - Copyright (C) IRCAD, 2004-2010. * Distributed under the terms of the BSD Licence as * published by the Open Source Initiative. * ****** END LICENSE BLOCK ****** */ MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath ) { ::boost::filesystem::path cwd = ::boost::filesystem::current_path(); ::boost::filesystem::path bundlePath = cwd / "Bundles"; ::fwRuntime::addBundles(bundlePath); if (!::boost::filesystem::exists( profilePath )) { profilePath = cwd / profilePath; } if (!::boost::filesystem::exists( profilePath )) { throw (std::invalid_argument("<" + profilePath.string() + "> not found." )); } m_profile = ::fwRuntime::io::ProfileReader::createProfile(profilePath); ::fwRuntime::profile::setCurrentProfile(m_profile); m_profile->setParams(0, NULL); m_profile->start(); // m_profile->run(); } MiniLauncher::~MiniLauncher() { m_profile->stop(); m_profile.reset(); ::fwRuntime::profile::setCurrentProfile(m_profile); }
/* ***** BEGIN LICENSE BLOCK ***** * Sconspiracy - Copyright (C) IRCAD, 2004-2010. * Distributed under the terms of the BSD Licence as * published by the Open Source Initiative. * ****** END LICENSE BLOCK ****** */ MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath ) { ::boost::filesystem::path cwd = ::boost::filesystem::current_path(); ::boost::filesystem::path bundlePath = cwd / "Bundles"; ::fwRuntime::addBundles(bundlePath); if (!::boost::filesystem::exists( profilePath )) { profilePath = cwd / profilePath; } if (!::boost::filesystem::exists( profilePath )) { throw (std::invalid_argument("<" + profilePath.string() + "> not found." )); } m_profile = ::fwRuntime::io::ProfileReader::createProfile(profilePath); ::fwRuntime::profile::setCurrentProfile(m_profile); m_profile->setParams(0, NULL); m_profile->start(); ::fwRuntime::profile::getCurrentProfile()->setup(); // m_profile->run(); } MiniLauncher::~MiniLauncher() { ::fwRuntime::profile::getCurrentProfile()->cleanup(); m_profile->stop(); m_profile.reset(); ::fwRuntime::profile::setCurrentProfile(m_profile); }
Add setup/cleanup for bundle test unit
Add setup/cleanup for bundle test unit --HG-- branch : experimental
C++
bsd-3-clause
cfobel/sconspiracy,cfobel/sconspiracy,cfobel/sconspiracy
c++
## Code Before: /* ***** BEGIN LICENSE BLOCK ***** * Sconspiracy - Copyright (C) IRCAD, 2004-2010. * Distributed under the terms of the BSD Licence as * published by the Open Source Initiative. * ****** END LICENSE BLOCK ****** */ MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath ) { ::boost::filesystem::path cwd = ::boost::filesystem::current_path(); ::boost::filesystem::path bundlePath = cwd / "Bundles"; ::fwRuntime::addBundles(bundlePath); if (!::boost::filesystem::exists( profilePath )) { profilePath = cwd / profilePath; } if (!::boost::filesystem::exists( profilePath )) { throw (std::invalid_argument("<" + profilePath.string() + "> not found." )); } m_profile = ::fwRuntime::io::ProfileReader::createProfile(profilePath); ::fwRuntime::profile::setCurrentProfile(m_profile); m_profile->setParams(0, NULL); m_profile->start(); // m_profile->run(); } MiniLauncher::~MiniLauncher() { m_profile->stop(); m_profile.reset(); ::fwRuntime::profile::setCurrentProfile(m_profile); } ## Instruction: Add setup/cleanup for bundle test unit --HG-- branch : experimental ## Code After: /* ***** BEGIN LICENSE BLOCK ***** * Sconspiracy - Copyright (C) IRCAD, 2004-2010. * Distributed under the terms of the BSD Licence as * published by the Open Source Initiative. * ****** END LICENSE BLOCK ****** */ MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath ) { ::boost::filesystem::path cwd = ::boost::filesystem::current_path(); ::boost::filesystem::path bundlePath = cwd / "Bundles"; ::fwRuntime::addBundles(bundlePath); if (!::boost::filesystem::exists( profilePath )) { profilePath = cwd / profilePath; } if (!::boost::filesystem::exists( profilePath )) { throw (std::invalid_argument("<" + profilePath.string() + "> not found." )); } m_profile = ::fwRuntime::io::ProfileReader::createProfile(profilePath); ::fwRuntime::profile::setCurrentProfile(m_profile); m_profile->setParams(0, NULL); m_profile->start(); ::fwRuntime::profile::getCurrentProfile()->setup(); // m_profile->run(); } MiniLauncher::~MiniLauncher() { ::fwRuntime::profile::getCurrentProfile()->cleanup(); m_profile->stop(); m_profile.reset(); ::fwRuntime::profile::setCurrentProfile(m_profile); }
4d4423e4405598bf95738f10b2c6075aee0466a9
app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :configure_permitted_parameters, if: :devise_controller? def index @updates = ProgressUpdate.all end protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation, :remember_me, :avatar, :avatar_cache, :remove_avatar) } devise_parameter_sanitizer.permit(:account_update) { |u| u.permit(:username, :email, :password, :password_confirmation, :current_password, :avatar, :avatar_cache, :remove_avatar) } end end
class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :configure_permitted_parameters, if: :devise_controller? def index @updates = ProgressUpdate.order("created_at DESC") end protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation, :remember_me, :avatar, :avatar_cache, :remove_avatar) } devise_parameter_sanitizer.permit(:account_update) { |u| u.permit(:username, :email, :password, :password_confirmation, :current_password, :avatar, :avatar_cache, :remove_avatar) } end end
Make newest updates display first on index
Make newest updates display first on index
Ruby
mit
Cecily2/writing-project-tracker,Cecily2/writing-project-tracker,Cecily2/writing-project-tracker
ruby
## Code Before: class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :configure_permitted_parameters, if: :devise_controller? def index @updates = ProgressUpdate.all end protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation, :remember_me, :avatar, :avatar_cache, :remove_avatar) } devise_parameter_sanitizer.permit(:account_update) { |u| u.permit(:username, :email, :password, :password_confirmation, :current_password, :avatar, :avatar_cache, :remove_avatar) } end end ## Instruction: Make newest updates display first on index ## Code After: class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :configure_permitted_parameters, if: :devise_controller? def index @updates = ProgressUpdate.order("created_at DESC") end protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation, :remember_me, :avatar, :avatar_cache, :remove_avatar) } devise_parameter_sanitizer.permit(:account_update) { |u| u.permit(:username, :email, :password, :password_confirmation, :current_password, :avatar, :avatar_cache, :remove_avatar) } end end
17b44dce06c2a70639bbad45bee696075fa21598
app/workers/check_gcp_project_billing_worker.rb
app/workers/check_gcp_project_billing_worker.rb
class CheckGcpProjectBillingWorker include ApplicationWorker LEASE_TIMEOUT = 15.seconds.to_i def self.redis_shared_state_key_for(token) "gitlab:gcp:#{token}:billing_enabled" end def perform(token) return unless token return unless try_obtain_lease_for(token) billing_enabled_projects = CheckGcpProjectBillingService.new.execute(token) Gitlab::Redis::SharedState.with do |redis| redis.set(self.class.redis_shared_state_key_for(token), !billing_enabled_projects.empty?) end end private def try_obtain_lease_for(token) Gitlab::ExclusiveLease .new("check_gcp_project_billing_worker:#{token}", timeout: LEASE_TIMEOUT) .try_obtain end end
class CheckGcpProjectBillingWorker include ApplicationWorker LEASE_TIMEOUT = 15.seconds.to_i def self.redis_shared_state_key_for(token) "gitlab:gcp:#{token.hash}:billing_enabled" end def perform(token) return unless token return unless try_obtain_lease_for(token) billing_enabled_projects = CheckGcpProjectBillingService.new.execute(token) Gitlab::Redis::SharedState.with do |redis| redis.set(self.class.redis_shared_state_key_for(token), !billing_enabled_projects.empty?) end end private def try_obtain_lease_for(token) Gitlab::ExclusiveLease .new("check_gcp_project_billing_worker:#{token.hash}", timeout: LEASE_TIMEOUT) .try_obtain end end
Use token hash for redis key
Use token hash for redis key
Ruby
mit
jirutka/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,iiet/iiet-git,iiet/iiet-git,jirutka/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq
ruby
## Code Before: class CheckGcpProjectBillingWorker include ApplicationWorker LEASE_TIMEOUT = 15.seconds.to_i def self.redis_shared_state_key_for(token) "gitlab:gcp:#{token}:billing_enabled" end def perform(token) return unless token return unless try_obtain_lease_for(token) billing_enabled_projects = CheckGcpProjectBillingService.new.execute(token) Gitlab::Redis::SharedState.with do |redis| redis.set(self.class.redis_shared_state_key_for(token), !billing_enabled_projects.empty?) end end private def try_obtain_lease_for(token) Gitlab::ExclusiveLease .new("check_gcp_project_billing_worker:#{token}", timeout: LEASE_TIMEOUT) .try_obtain end end ## Instruction: Use token hash for redis key ## Code After: class CheckGcpProjectBillingWorker include ApplicationWorker LEASE_TIMEOUT = 15.seconds.to_i def self.redis_shared_state_key_for(token) "gitlab:gcp:#{token.hash}:billing_enabled" end def perform(token) return unless token return unless try_obtain_lease_for(token) billing_enabled_projects = CheckGcpProjectBillingService.new.execute(token) Gitlab::Redis::SharedState.with do |redis| redis.set(self.class.redis_shared_state_key_for(token), !billing_enabled_projects.empty?) end end private def try_obtain_lease_for(token) Gitlab::ExclusiveLease .new("check_gcp_project_billing_worker:#{token.hash}", timeout: LEASE_TIMEOUT) .try_obtain end end
8ff47b1cb1a449593d58657afae0a50577ff35bd
config.cson
config.cson
"*": "exception-reporting": userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d" welcome: showOnStartup: false core: {} editor: invisibles: {}
"*": "exception-reporting": userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d" welcome: showOnStartup: false editor: invisibles: {} tabs: usePreviewTabs: true
Use preview tab like sublime
Use preview tab like sublime
CoffeeScript
mit
substantial/atomfiles,substantial/atomfiles
coffeescript
## Code Before: "*": "exception-reporting": userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d" welcome: showOnStartup: false core: {} editor: invisibles: {} ## Instruction: Use preview tab like sublime ## Code After: "*": "exception-reporting": userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d" welcome: showOnStartup: false editor: invisibles: {} tabs: usePreviewTabs: true
0ca92ea5eeae2ff2f13eb03fed21c0f77eb2f66f
src/site_source/_layouts/default.html
src/site_source/_layouts/default.html
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{ page.title }}</title> <!-- fonts: --> <!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are locked down it should be pared down to what's necessary. --> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'> <!-- our styles: --> {% stylesheet main %} </head> <body> {% include header.html %} {{ content }} {% include footer.html %} {% javascript app %} <!-- syntax highlighter: --> <script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> </body> </html>
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{ page.title }}</title> <!-- fonts: --> <!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are locked down it should be pared down to what's necessary. --> <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'> <!-- our styles: --> {% stylesheet main %} </head> <body> {% include header.html %} {{ content }} {% include footer.html %} {% javascript app %} <!-- syntax highlighter: --> <script src="//yandex.st/highlightjs/8.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> </body> </html>
Use protocol-less // resource URIs.
Use protocol-less // resource URIs.
HTML
apache-2.0
annegentle/developer.rackspace.com,wbentley15/developer.rackspace.com,rackerlabs/developer.rackspace.com,wbentley15/developer.rackspace.com,rackerlabs/developer.rackspace.com,ktbartholomew/developer.rackspace.com,smashwilson/developer.rackspace.com,rgbkrk/developer.rackspace.com,sigmavirus24/developer.rackspace.com,ktbartholomew/developer.rackspace.com,annegentle/developer.rackspace.com,annegentle/developer.rackspace.com,ktbartholomew/developer.rackspace.com,sigmavirus24/developer.rackspace.com,wbentley15/developer.rackspace.com,smashwilson/developer.rackspace.com,smashwilson/developer.rackspace.com,wbentley15/developer.rackspace.com,annegentle/developer.rackspace.com,rgbkrk/developer.rackspace.com,rackerlabs/developer.rackspace.com,sigmavirus24/developer.rackspace.com,sigmavirus24/developer.rackspace.com,rackerlabs/developer.rackspace.com,rackerlabs/developer.rackspace.com,annegentle/developer.rackspace.com,ktbartholomew/developer.rackspace.com,smashwilson/developer.rackspace.com,rackerlabs/developer.rackspace.com,sigmavirus24/developer.rackspace.com,rgbkrk/developer.rackspace.com,rgbkrk/developer.rackspace.com,sigmavirus24/developer.rackspace.com,smashwilson/developer.rackspace.com,ktbartholomew/developer.rackspace.com,wbentley15/developer.rackspace.com,ktbartholomew/developer.rackspace.com,annegentle/developer.rackspace.com,rgbkrk/developer.rackspace.com
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{ page.title }}</title> <!-- fonts: --> <!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are locked down it should be pared down to what's necessary. --> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'> <!-- our styles: --> {% stylesheet main %} </head> <body> {% include header.html %} {{ content }} {% include footer.html %} {% javascript app %} <!-- syntax highlighter: --> <script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> </body> </html> ## Instruction: Use protocol-less // resource URIs. ## Code After: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{ page.title }}</title> <!-- fonts: --> <!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are locked down it should be pared down to what's necessary. --> <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'> <!-- our styles: --> {% stylesheet main %} </head> <body> {% include header.html %} {{ content }} {% include footer.html %} {% javascript app %} <!-- syntax highlighter: --> <script src="//yandex.st/highlightjs/8.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> </body> </html>
24f62c26418ee8aa5ff2ccfe59641e58b1ceabfc
karbor/tests/contrib/gate_hook.sh
karbor/tests/contrib/gate_hook.sh
set -ex VENV=${1:-"fullstack"} GATE_DEST=$BASE/new DEVSTACK_PATH=$GATE_DEST/devstack echo "Projects: $PROJECTS" $BASE/new/devstack-gate/devstack-vm-gate.sh
set -ex VENV=${1:-"fullstack"} GATE_DEST=$BASE/new DEVSTACK_PATH=$GATE_DEST/devstack $BASE/new/devstack-gate/devstack-vm-gate.sh
Revert "Print PROJECTS before devstack-vm-gate"
Revert "Print PROJECTS before devstack-vm-gate" Change-Id: I89aafcd37d21bf47c223c5cae81aa3834882cabb
Shell
apache-2.0
openstack/smaug,openstack/smaug
shell
## Code Before: set -ex VENV=${1:-"fullstack"} GATE_DEST=$BASE/new DEVSTACK_PATH=$GATE_DEST/devstack echo "Projects: $PROJECTS" $BASE/new/devstack-gate/devstack-vm-gate.sh ## Instruction: Revert "Print PROJECTS before devstack-vm-gate" Change-Id: I89aafcd37d21bf47c223c5cae81aa3834882cabb ## Code After: set -ex VENV=${1:-"fullstack"} GATE_DEST=$BASE/new DEVSTACK_PATH=$GATE_DEST/devstack $BASE/new/devstack-gate/devstack-vm-gate.sh
8810190115dc1fa531f468245faf86e39380b199
package.json
package.json
{ "name": "storycrm.compile", "private": true, "version": "1.0.0", "description": "PDF rendering microservice for Story CRM", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Untold Story", "license": "MIT", "dependencies": { "async": "^0.9.0", "bunyan": "^1.3.4", "latex": "0.0.1", "lodash": "^3.6.0", "mustache": "^2.0.0", "restify": "^3.0.1" }, "devDependencies": { "gulp": "^3.8.11", "gulp-eslint": "^0.8.0", "gulp-nodemon": "^2.0.2" } }
{ "name": "storycrm.compile", "version": "0.1.0", "description": "PDF rendering microservice for Story CRM", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Untold Story", "license": "MIT", "dependencies": { "async": "^0.9.0", "bunyan": "^1.3.4", "latex": "0.0.1", "lodash": "^3.6.0", "mustache": "^2.0.0", "restify": "^3.0.1" }, "devDependencies": { "gulp": "^3.8.11", "gulp-eslint": "^0.8.0", "gulp-nodemon": "^2.0.2" } }
Make npm module public and change version to 0.1.0
Make npm module public and change version to 0.1.0
JSON
mit
d-koppenhagen/compile,d-koppenhagen/compile
json
## Code Before: { "name": "storycrm.compile", "private": true, "version": "1.0.0", "description": "PDF rendering microservice for Story CRM", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Untold Story", "license": "MIT", "dependencies": { "async": "^0.9.0", "bunyan": "^1.3.4", "latex": "0.0.1", "lodash": "^3.6.0", "mustache": "^2.0.0", "restify": "^3.0.1" }, "devDependencies": { "gulp": "^3.8.11", "gulp-eslint": "^0.8.0", "gulp-nodemon": "^2.0.2" } } ## Instruction: Make npm module public and change version to 0.1.0 ## Code After: { "name": "storycrm.compile", "version": "0.1.0", "description": "PDF rendering microservice for Story CRM", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Untold Story", "license": "MIT", "dependencies": { "async": "^0.9.0", "bunyan": "^1.3.4", "latex": "0.0.1", "lodash": "^3.6.0", "mustache": "^2.0.0", "restify": "^3.0.1" }, "devDependencies": { "gulp": "^3.8.11", "gulp-eslint": "^0.8.0", "gulp-nodemon": "^2.0.2" } }
2d077d99e7bfbce30642db21f0cecaee7a522fc5
.travis.yml
.travis.yml
sudo: false language: go go: - 1.3.1 env: global: - PATH=$HOME/gopath/bin:$PATH before_install: - go get code.google.com/p/go.tools/cmd/cover - go get github.com/tools/godep - godep restore script: - make test
sudo: false language: go go: - 1.6 env: global: - PATH=$HOME/gopath/bin:$PATH before_install: - go get github.com/tools/godep - godep restore script: - make test
Fix Travis by upgrading to Go 1.6 (which includes cover)
Fix Travis by upgrading to Go 1.6 (which includes cover)
YAML
mit
jwilder/forego,jwilder/forego,jwilder/forego
yaml
## Code Before: sudo: false language: go go: - 1.3.1 env: global: - PATH=$HOME/gopath/bin:$PATH before_install: - go get code.google.com/p/go.tools/cmd/cover - go get github.com/tools/godep - godep restore script: - make test ## Instruction: Fix Travis by upgrading to Go 1.6 (which includes cover) ## Code After: sudo: false language: go go: - 1.6 env: global: - PATH=$HOME/gopath/bin:$PATH before_install: - go get github.com/tools/godep - godep restore script: - make test
cbd4fdfd80f5a3f88c6c00711b130b2695477eec
lib/Tooling/Refactoring/CMakeLists.txt
lib/Tooling/Refactoring/CMakeLists.txt
set(LLVM_LINK_COMPONENTS Support) add_clang_library(clangToolingRefactor ASTSelection.cpp ASTSelectionRequirements.cpp AtomicChange.cpp Extract.cpp RefactoringActions.cpp Rename/RenamingAction.cpp Rename/SymbolOccurrences.cpp Rename/USRFinder.cpp Rename/USRFindingAction.cpp Rename/USRLocFinder.cpp LINK_LIBS clangAST clangASTMatchers clangBasic clangFormat clangIndex clangLex clangToolingCore )
set(LLVM_LINK_COMPONENTS Support) add_clang_library(clangToolingRefactor ASTSelection.cpp ASTSelectionRequirements.cpp AtomicChange.cpp Extract.cpp RefactoringActions.cpp Rename/RenamingAction.cpp Rename/SymbolOccurrences.cpp Rename/USRFinder.cpp Rename/USRFindingAction.cpp Rename/USRLocFinder.cpp LINK_LIBS clangAST clangASTMatchers clangBasic clangFormat clangIndex clangLex clangRewrite clangToolingCore )
Add missing clangRewrite lib dependency for clangToolingRefactor
Add missing clangRewrite lib dependency for clangToolingRefactor git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@316467 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
text
## Code Before: set(LLVM_LINK_COMPONENTS Support) add_clang_library(clangToolingRefactor ASTSelection.cpp ASTSelectionRequirements.cpp AtomicChange.cpp Extract.cpp RefactoringActions.cpp Rename/RenamingAction.cpp Rename/SymbolOccurrences.cpp Rename/USRFinder.cpp Rename/USRFindingAction.cpp Rename/USRLocFinder.cpp LINK_LIBS clangAST clangASTMatchers clangBasic clangFormat clangIndex clangLex clangToolingCore ) ## Instruction: Add missing clangRewrite lib dependency for clangToolingRefactor git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@316467 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: set(LLVM_LINK_COMPONENTS Support) add_clang_library(clangToolingRefactor ASTSelection.cpp ASTSelectionRequirements.cpp AtomicChange.cpp Extract.cpp RefactoringActions.cpp Rename/RenamingAction.cpp Rename/SymbolOccurrences.cpp Rename/USRFinder.cpp Rename/USRFindingAction.cpp Rename/USRLocFinder.cpp LINK_LIBS clangAST clangASTMatchers clangBasic clangFormat clangIndex clangLex clangRewrite clangToolingCore )
fadd3a218ab673b24e8226c4b99734d98de71540
src/main/resources/atlassian-plugin.xml
src/main/resources/atlassian-plugin.xml
<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="deploytask"/> <!-- add our web resources --> <web-resource key="deploytask-resources" name="deploytask Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <resource type="download" name="deploytask.css" location="/css/deploytask.css"/> <resource type="download" name="deploytask.js" location="/js/deploytask.js"/> <resource type="download" name="images/" location="/images"/> <context>deploytask</context> </web-resource> <taskType key="deployTask" name="Trigger Deployment Task" class="com.example.DeployTask"> <description>A task that Triggers Bamboo Deployments.</description> <configuration class="com.example.DeployTaskConfigurator"/> <resource type="freemarker" name="edit" location="deploytask.ftl"/> </taskType> </atlassian-plugin>
<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="deploytask"/> <!-- add our web resources --> <web-resource key="deploytask-resources" name="deploytask Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <resource type="download" name="deploytask.css" location="/css/deploytask.css"/> <resource type="download" name="deploytask.js" location="/js/deploytask.js"/> <resource type="download" name="images/" location="/images"/> <context>deploytask</context> </web-resource> <taskType key="deployTask" name="Trigger Deployment Task" class="com.example.bamboo.DeployTask"> <description>A task that Triggers Bamboo Deployments.</description> <configuration class="com.example.bamboo.DeployTaskConfigurator"/> <resource type="freemarker" name="edit" location="deploytask.ftl"/> </taskType> </atlassian-plugin>
Correct packages names for plugin loading.
Correct packages names for plugin loading.
XML
mit
vicsz/Bamboo-Deployment-Trigger-Task-Plugin
xml
## Code Before: <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="deploytask"/> <!-- add our web resources --> <web-resource key="deploytask-resources" name="deploytask Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <resource type="download" name="deploytask.css" location="/css/deploytask.css"/> <resource type="download" name="deploytask.js" location="/js/deploytask.js"/> <resource type="download" name="images/" location="/images"/> <context>deploytask</context> </web-resource> <taskType key="deployTask" name="Trigger Deployment Task" class="com.example.DeployTask"> <description>A task that Triggers Bamboo Deployments.</description> <configuration class="com.example.DeployTaskConfigurator"/> <resource type="freemarker" name="edit" location="deploytask.ftl"/> </taskType> </atlassian-plugin> ## Instruction: Correct packages names for plugin loading. ## Code After: <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="deploytask"/> <!-- add our web resources --> <web-resource key="deploytask-resources" name="deploytask Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <resource type="download" name="deploytask.css" location="/css/deploytask.css"/> <resource type="download" name="deploytask.js" location="/js/deploytask.js"/> <resource type="download" name="images/" location="/images"/> <context>deploytask</context> </web-resource> <taskType key="deployTask" name="Trigger Deployment Task" class="com.example.bamboo.DeployTask"> <description>A task that Triggers Bamboo Deployments.</description> <configuration class="com.example.bamboo.DeployTaskConfigurator"/> <resource type="freemarker" name="edit" location="deploytask.ftl"/> </taskType> </atlassian-plugin>
c29d2f92456d35b5f92e521f551e089c7f8c94f8
src/Paths.js
src/Paths.js
let argv = require('yargs').argv; class Paths { /** * Create a new Paths instance. */ constructor() { if (argv['$0'].includes('ava')) { this.rootPath = path.resolve(__dirname, '../'); } else { this.rootPath = process.cwd(); } } /** * Set the root path to resolve webpack.mix.js. * * @param {string} path */ setRootPath(path) { this.rootPath = path; return this; } /** * Determine the path to the user's webpack.mix.js file. */ mix() { return this.root( argv.env && argv.env.mixfile ? argv.env.mixfile : 'webpack.mix' ); } /** * Determine the project root. * * @param {string|null} append */ root(append = '') { return path.resolve(this.rootPath, append); } } module.exports = Paths;
let argv = require('yargs').argv; class Paths { /** * Create a new Paths instance. */ constructor() { if (argv['$0'].includes('ava')) { this.rootPath = path.resolve(__dirname, '../'); } else { this.rootPath = process.cwd(); } } /** * Set the root path to resolve webpack.mix.js. * * @param {string} path */ setRootPath(path) { this.rootPath = path; return this; } /** * Determine the path to the user's webpack.mix.js file. */ mix() { return this.root( process.env && process.env.MIX_FILE ? process.env.MIX_FILE : 'webpack.mix' ); } /** * Determine the project root. * * @param {string|null} append */ root(append = '') { return path.resolve(this.rootPath, append); } } module.exports = Paths;
Use real env var for custom mix file
Use real env var for custom mix file The previous approach doesn’t work with current webpack cli now.
JavaScript
mit
JeffreyWay/laravel-mix
javascript
## Code Before: let argv = require('yargs').argv; class Paths { /** * Create a new Paths instance. */ constructor() { if (argv['$0'].includes('ava')) { this.rootPath = path.resolve(__dirname, '../'); } else { this.rootPath = process.cwd(); } } /** * Set the root path to resolve webpack.mix.js. * * @param {string} path */ setRootPath(path) { this.rootPath = path; return this; } /** * Determine the path to the user's webpack.mix.js file. */ mix() { return this.root( argv.env && argv.env.mixfile ? argv.env.mixfile : 'webpack.mix' ); } /** * Determine the project root. * * @param {string|null} append */ root(append = '') { return path.resolve(this.rootPath, append); } } module.exports = Paths; ## Instruction: Use real env var for custom mix file The previous approach doesn’t work with current webpack cli now. ## Code After: let argv = require('yargs').argv; class Paths { /** * Create a new Paths instance. */ constructor() { if (argv['$0'].includes('ava')) { this.rootPath = path.resolve(__dirname, '../'); } else { this.rootPath = process.cwd(); } } /** * Set the root path to resolve webpack.mix.js. * * @param {string} path */ setRootPath(path) { this.rootPath = path; return this; } /** * Determine the path to the user's webpack.mix.js file. */ mix() { return this.root( process.env && process.env.MIX_FILE ? process.env.MIX_FILE : 'webpack.mix' ); } /** * Determine the project root. * * @param {string|null} append */ root(append = '') { return path.resolve(this.rootPath, append); } } module.exports = Paths;
24d3898d9b05395333f9f256307b41ab31ec5026
app/assets/stylesheets/layout/_footer.scss
app/assets/stylesheets/layout/_footer.scss
.l-footer { margin-top: $baseline-unit*6; .social-links { float: right; } .icon--logo { margin-top: $baseline-unit*2; } }
.l-footer { .social-links { float: right; } .icon--logo { margin-top: $baseline-unit*2; } }
Remove footer margin-top so home page has harmonious alignment
Remove footer margin-top so home page has harmonious alignment
SCSS
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
scss
## Code Before: .l-footer { margin-top: $baseline-unit*6; .social-links { float: right; } .icon--logo { margin-top: $baseline-unit*2; } } ## Instruction: Remove footer margin-top so home page has harmonious alignment ## Code After: .l-footer { .social-links { float: right; } .icon--logo { margin-top: $baseline-unit*2; } }