commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
4db251b7d8bbf40ce37354a48fa61dcc0a5a6c44
stolaf-background.widget/printers.js
stolaf-background.widget/printers.js
command: '/bin/bash stolaf-base/snmpGet.sh', refreshFrequency: 600000, lastUpdateTime: undefined, style: [ "bottom: 0", "left: 75%", "width: 25%", "text-align: center", "border: 0", "height: 3%", "vertical-align: middle", "color: rgba(255, 255, 255, 0.25)", "font-weight: 300", ].join('\n'), render: function(argument) { return 'Printers: <span class="last-updated"></span>'; }, update: function(output, domEl) { if (!window.sto) return ''; if (!window.sto.libs.csv) return ''; if (!window.sto.libs.moment) return ''; var csv = window.sto.libs.csv; var moment = window.sto.libs.moment; window.sto.data.printers = csv.parse(output, {header: true, cast: ['String', 'String', 'String', 'String']});; this.lastUpdateTime = new Date(); domEl.querySelector('.last-updated').textContent = moment(this.lastUpdateTime).calendar(); },
command: '/usr/bin/env python stolaf-base/snmpGet.py', refreshFrequency: 300000, lastUpdateTime: undefined, style: [ "bottom: 0", "left: 75%", "width: 25%", "text-align: center", "border: 0", "height: 3%", "vertical-align: middle", "color: rgba(255, 255, 255, 0.25)", "font-weight: 300", ].join('\n'), render: function(argument) { return 'Printers: <span class="last-updated"></span>'; }, update: function(output, domEl) { if (!window.sto) return ''; if (!window.sto.libs.csv) return ''; if (!window.sto.libs.moment) return ''; var csv = window.sto.libs.csv; var moment = window.sto.libs.moment; window.sto.data.printers = csv.parse(output, {header: true, cast: ['String', 'String', 'String', 'String']});; this.lastUpdateTime = new Date(); domEl.querySelector('.last-updated').textContent = moment(this.lastUpdateTime).calendar(); },
Make the printer data widget use the python script
Make the printer data widget use the python script
JavaScript
mit
hawkrives/stolaf-ubersicht-widgets,hawkrives/stolaf-ubersicht-widgets,hawkrives/stolaf-ubersicht-widgets
javascript
## Code Before: command: '/bin/bash stolaf-base/snmpGet.sh', refreshFrequency: 600000, lastUpdateTime: undefined, style: [ "bottom: 0", "left: 75%", "width: 25%", "text-align: center", "border: 0", "height: 3%", "vertical-align: middle", "color: rgba(255, 255, 255, 0.25)", "font-weight: 300", ].join('\n'), render: function(argument) { return 'Printers: <span class="last-updated"></span>'; }, update: function(output, domEl) { if (!window.sto) return ''; if (!window.sto.libs.csv) return ''; if (!window.sto.libs.moment) return ''; var csv = window.sto.libs.csv; var moment = window.sto.libs.moment; window.sto.data.printers = csv.parse(output, {header: true, cast: ['String', 'String', 'String', 'String']});; this.lastUpdateTime = new Date(); domEl.querySelector('.last-updated').textContent = moment(this.lastUpdateTime).calendar(); }, ## Instruction: Make the printer data widget use the python script ## Code After: command: '/usr/bin/env python stolaf-base/snmpGet.py', refreshFrequency: 300000, lastUpdateTime: undefined, style: [ "bottom: 0", "left: 75%", "width: 25%", "text-align: center", "border: 0", "height: 3%", "vertical-align: middle", "color: rgba(255, 255, 255, 0.25)", "font-weight: 300", ].join('\n'), render: function(argument) { return 'Printers: <span class="last-updated"></span>'; }, update: function(output, domEl) { if (!window.sto) return ''; if (!window.sto.libs.csv) return ''; if (!window.sto.libs.moment) return ''; var csv = window.sto.libs.csv; var moment = window.sto.libs.moment; window.sto.data.printers = csv.parse(output, {header: true, cast: ['String', 'String', 'String', 'String']});; this.lastUpdateTime = new Date(); domEl.querySelector('.last-updated').textContent = moment(this.lastUpdateTime).calendar(); },
- command: '/bin/bash stolaf-base/snmpGet.sh', ? ^^^ ^^ + command: '/usr/bin/env python stolaf-base/snmpGet.py', ? ++++ ^^^^^^^ ++ ^^ - refreshFrequency: 600000, ? ^ + refreshFrequency: 300000, ? ^ lastUpdateTime: undefined, style: [ "bottom: 0", "left: 75%", "width: 25%", "text-align: center", "border: 0", "height: 3%", "vertical-align: middle", "color: rgba(255, 255, 255, 0.25)", "font-weight: 300", ].join('\n'), render: function(argument) { return 'Printers: <span class="last-updated"></span>'; }, update: function(output, domEl) { if (!window.sto) return ''; if (!window.sto.libs.csv) return ''; if (!window.sto.libs.moment) return ''; var csv = window.sto.libs.csv; var moment = window.sto.libs.moment; window.sto.data.printers = csv.parse(output, {header: true, cast: ['String', 'String', 'String', 'String']});; this.lastUpdateTime = new Date(); domEl.querySelector('.last-updated').textContent = moment(this.lastUpdateTime).calendar(); },
4
0.121212
2
2
4315585e108ca5b428a0bcaf1eb17e9df74f88a3
src/Storage/ContentLegacyService.php
src/Storage/ContentLegacyService.php
<?php namespace Bolt\Storage; use Bolt\Storage\Mapping\ContentType; use Silex\Application; /** * Legacy bridge for Content object backward compatibility. * * @author Ross Riley <riley.ross@gmail.com> */ class ContentLegacyService { use Entity\ContentRelationTrait; use Entity\ContentRouteTrait; use Entity\ContentSearchTrait; use Entity\ContentTaxonomyTrait; use Entity\ContentValuesTrait; protected $app; /** * Constructor. * * @param Application $app */ public function __construct(Application $app) { $this->app = $app; } /** * Initialise. * * @param Entity\Entity $entity */ public function initialize(Entity\Entity $entity) { $this->setupContenttype($entity); $this->setupContainer($entity); } /** * Set the legacy ContentType object on the Entity. * * @param Entity\Entity $entity */ public function setupContenttype(Entity\Entity $entity) { $contentType = $entity->getContenttype(); if (is_string($contentType)) { $entity->contenttype = new ContentType($contentType, $this->app['storage']->getContenttype($contentType)); } } public function setupContainer($entity) { $entity->app = $this->app; } }
<?php namespace Bolt\Storage; use Bolt\Storage\Mapping\ContentType; use Silex\Application; /** * Legacy bridge for Content object backward compatibility. * * @author Ross Riley <riley.ross@gmail.com> */ class ContentLegacyService { use Entity\ContentRelationTrait; use Entity\ContentRouteTrait; use Entity\ContentSearchTrait; use Entity\ContentTaxonomyTrait; use Entity\ContentValuesTrait; protected $app; /** * Constructor. * * @param Application $app */ public function __construct(Application $app) { $this->app = $app; } /** * Initialise. * * @param Entity\Entity $entity */ public function initialize(Entity\Entity $entity) { $this->setupContenttype($entity); $this->setupContainer($entity); } /** * Set the legacy ContentType object on the Entity. * * @param Entity\Entity $entity */ public function setupContenttype(Entity\Entity $entity) { $contentType = $entity->getContenttype(); if (is_string($contentType)) { $contentTypeData = $this->app['storage']->getContenttype($contentType); if ($contentTypeData instanceof ContentType) { $contentTypeObject = $contentTypeData; } else { $contentTypeObject = new ContentType($contentType, $contentTypeData); } $entity->contenttype = $contentTypeObject; } } public function setupContainer($entity) { $entity->app = $this->app; } }
Fix setting up legacy Contenttype object
Fix setting up legacy Contenttype object $this->app['storage']->getContenttype($contentType) can return object or array.
PHP
mit
romulo1984/bolt,romulo1984/bolt,bolt/bolt,bolt/bolt,romulo1984/bolt,bolt/bolt,romulo1984/bolt,bolt/bolt
php
## Code Before: <?php namespace Bolt\Storage; use Bolt\Storage\Mapping\ContentType; use Silex\Application; /** * Legacy bridge for Content object backward compatibility. * * @author Ross Riley <riley.ross@gmail.com> */ class ContentLegacyService { use Entity\ContentRelationTrait; use Entity\ContentRouteTrait; use Entity\ContentSearchTrait; use Entity\ContentTaxonomyTrait; use Entity\ContentValuesTrait; protected $app; /** * Constructor. * * @param Application $app */ public function __construct(Application $app) { $this->app = $app; } /** * Initialise. * * @param Entity\Entity $entity */ public function initialize(Entity\Entity $entity) { $this->setupContenttype($entity); $this->setupContainer($entity); } /** * Set the legacy ContentType object on the Entity. * * @param Entity\Entity $entity */ public function setupContenttype(Entity\Entity $entity) { $contentType = $entity->getContenttype(); if (is_string($contentType)) { $entity->contenttype = new ContentType($contentType, $this->app['storage']->getContenttype($contentType)); } } public function setupContainer($entity) { $entity->app = $this->app; } } ## Instruction: Fix setting up legacy Contenttype object $this->app['storage']->getContenttype($contentType) can return object or array. ## Code After: <?php namespace Bolt\Storage; use Bolt\Storage\Mapping\ContentType; use Silex\Application; /** * Legacy bridge for Content object backward compatibility. * * @author Ross Riley <riley.ross@gmail.com> */ class ContentLegacyService { use Entity\ContentRelationTrait; use Entity\ContentRouteTrait; use Entity\ContentSearchTrait; use Entity\ContentTaxonomyTrait; use Entity\ContentValuesTrait; protected $app; /** * Constructor. * * @param Application $app */ public function __construct(Application $app) { $this->app = $app; } /** * Initialise. * * @param Entity\Entity $entity */ public function initialize(Entity\Entity $entity) { $this->setupContenttype($entity); $this->setupContainer($entity); } /** * Set the legacy ContentType object on the Entity. * * @param Entity\Entity $entity */ public function setupContenttype(Entity\Entity $entity) { $contentType = $entity->getContenttype(); if (is_string($contentType)) { $contentTypeData = $this->app['storage']->getContenttype($contentType); if ($contentTypeData instanceof ContentType) { $contentTypeObject = $contentTypeData; } else { $contentTypeObject = new ContentType($contentType, $contentTypeData); } $entity->contenttype = $contentTypeObject; } } public function setupContainer($entity) { $entity->app = $this->app; } }
<?php namespace Bolt\Storage; use Bolt\Storage\Mapping\ContentType; use Silex\Application; /** * Legacy bridge for Content object backward compatibility. * * @author Ross Riley <riley.ross@gmail.com> */ class ContentLegacyService { use Entity\ContentRelationTrait; use Entity\ContentRouteTrait; use Entity\ContentSearchTrait; use Entity\ContentTaxonomyTrait; use Entity\ContentValuesTrait; protected $app; /** * Constructor. * * @param Application $app */ public function __construct(Application $app) { $this->app = $app; } /** * Initialise. * * @param Entity\Entity $entity */ public function initialize(Entity\Entity $entity) { $this->setupContenttype($entity); $this->setupContainer($entity); } /** * Set the legacy ContentType object on the Entity. * * @param Entity\Entity $entity */ public function setupContenttype(Entity\Entity $entity) { $contentType = $entity->getContenttype(); if (is_string($contentType)) { - $entity->contenttype = new ContentType($contentType, $this->app['storage']->getContenttype($contentType)); ? --------------------------------------- ^ - + $contentTypeData = $this->app['storage']->getContenttype($contentType); ? ^^^^^^ + if ($contentTypeData instanceof ContentType) { + $contentTypeObject = $contentTypeData; + } else { + $contentTypeObject = new ContentType($contentType, $contentTypeData); + } + $entity->contenttype = $contentTypeObject; } } public function setupContainer($entity) { $entity->app = $this->app; } }
8
0.131148
7
1
4adffdc9f3de7657a206df17c774342079c33c0a
src/extensions/command-interpreter/regex-address.coffee
src/extensions/command-interpreter/regex-address.coffee
Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null constructor: (pattern, reverse) -> @reverse = reverse @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new Range([0, 0], currentRange.start) rangeAfter = new Range(currentRange.end, editor.getEofPosition()) rangeToSearch = if @reverse then rangeBefore else rangeAfter rangeToReturn = null scanMethodName = if @reverse then "backwardsScanInRange" else "scanInRange" editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range if rangeToReturn rangeToReturn else rangeToSearch = if @reverse then rangeAfter else rangeBefore editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range rangeToReturn or currentRange isRelative: -> true
Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null constructor: (pattern, isReversed) -> @isReversed = isReversed @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new Range([0, 0], currentRange.start) rangeAfter = new Range(currentRange.end, editor.getEofPosition()) rangeToSearch = if @isReversed then rangeBefore else rangeAfter rangeToReturn = null scanMethodName = if @isReversed then "backwardsScanInRange" else "scanInRange" editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range if rangeToReturn rangeToReturn else rangeToSearch = if @isReversed then rangeAfter else rangeBefore editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range rangeToReturn or currentRange isRelative: -> true
Use isReverse instead of reverse in RegexAddress
Use isReverse instead of reverse in RegexAddress
CoffeeScript
mit
oggy/atom,niklabh/atom,kandros/atom,deepfox/atom,kevinrenaers/atom,sekcheong/atom,vjeux/atom,dkfiresky/atom,alexandergmann/atom,vcarrera/atom,dannyflax/atom,gisenberg/atom,Austen-G/BlockBuilder,ezeoleaf/atom,fredericksilva/atom,kevinrenaers/atom,efatsi/atom,beni55/atom,dijs/atom,Hasimir/atom,boomwaiza/atom,avdg/atom,einarmagnus/atom,jjz/atom,Andrey-Pavlov/atom,erikhakansson/atom,g2p/atom,me6iaton/atom,jlord/atom,ironbox360/atom,chfritz/atom,liuxiong332/atom,ivoadf/atom,dsandstrom/atom,vinodpanicker/atom,constanzaurzua/atom,kjav/atom,fredericksilva/atom,omarhuanca/atom,Huaraz2/atom,medovob/atom,jlord/atom,kdheepak89/atom,efatsi/atom,Jdesk/atom,phord/atom,h0dgep0dge/atom,execjosh/atom,ykeisuke/atom,helber/atom,rsvip/aTom,hpham04/atom,acontreras89/atom,NunoEdgarGub1/atom,ilovezy/atom,davideg/atom,splodingsocks/atom,MjAbuz/atom,toqz/atom,yalexx/atom,bj7/atom,codex8/atom,dsandstrom/atom,oggy/atom,Jdesk/atom,isghe/atom,prembasumatary/atom,Galactix/atom,champagnez/atom,lovesnow/atom,andrewleverette/atom,toqz/atom,AlisaKiatkongkumthon/atom,basarat/atom,RuiDGoncalves/atom,pengshp/atom,RuiDGoncalves/atom,Ingramz/atom,bsmr-x-script/atom,hakatashi/atom,isghe/atom,bsmr-x-script/atom,vhutheesing/atom,pengshp/atom,DiogoXRP/atom,woss/atom,jtrose2/atom,Jonekee/atom,ObviouslyGreen/atom,bcoe/atom,ardeshirj/atom,folpindo/atom,rxkit/atom,Klozz/atom,jlord/atom,kc8wxm/atom,hharchani/atom,G-Baby/atom,vhutheesing/atom,jacekkopecky/atom,h0dgep0dge/atom,champagnez/atom,isghe/atom,nrodriguez13/atom,GHackAnonymous/atom,Hasimir/atom,palita01/atom,fedorov/atom,fscherwi/atom,john-kelly/atom,alfredxing/atom,hpham04/atom,FoldingText/atom,toqz/atom,jtrose2/atom,kjav/atom,tisu2tisu/atom,mertkahyaoglu/atom,CraZySacX/atom,tony612/atom,scv119/atom,SlimeQ/atom,n-riesco/atom,sillvan/atom,SlimeQ/atom,CraZySacX/atom,sillvan/atom,Ju2ender/atom,jtrose2/atom,omarhuanca/atom,ardeshirj/atom,RobinTec/atom,AlexxNica/atom,wiggzz/atom,me6iaton/atom,qskycolor/atom,sxgao3001/atom,BogusCurry/atom,001szymon/atom,crazyquark/atom,stuartquin/atom,Mokolea/atom,ivoadf/atom,avdg/atom,jacekkopecky/atom,devoncarew/atom,bryonwinger/atom,abcP9110/atom,NunoEdgarGub1/atom,johnrizzo1/atom,yomybaby/atom,chfritz/atom,Shekharrajak/atom,niklabh/atom,Huaraz2/atom,AlisaKiatkongkumthon/atom,nrodriguez13/atom,fredericksilva/atom,daxlab/atom,tisu2tisu/atom,rsvip/aTom,kc8wxm/atom,dannyflax/atom,bj7/atom,helber/atom,john-kelly/atom,GHackAnonymous/atom,vcarrera/atom,dijs/atom,hellendag/atom,AlisaKiatkongkumthon/atom,panuchart/atom,jordanbtucker/atom,woss/atom,mertkahyaoglu/atom,MjAbuz/atom,tanin47/atom,jeremyramin/atom,liuderchi/atom,hharchani/atom,githubteacher/atom,yomybaby/atom,rmartin/atom,fang-yufeng/atom,ali/atom,ashneo76/atom,matthewclendening/atom,Abdillah/atom,elkingtonmcb/atom,lpommers/atom,palita01/atom,Ju2ender/atom,me-benni/atom,Austen-G/BlockBuilder,n-riesco/atom,mrodalgaard/atom,acontreras89/atom,Jandersoft/atom,codex8/atom,mostafaeweda/atom,ObviouslyGreen/atom,yamhon/atom,mostafaeweda/atom,Jandersoft/atom,svanharmelen/atom,hharchani/atom,transcranial/atom,yomybaby/atom,decaffeinate-examples/atom,originye/atom,jacekkopecky/atom,kdheepak89/atom,abcP9110/atom,vjeux/atom,anuwat121/atom,sekcheong/atom,nvoron23/atom,fang-yufeng/atom,liuderchi/atom,Dennis1978/atom,githubteacher/atom,KENJU/atom,ezeoleaf/atom,Shekharrajak/atom,bradgearon/atom,BogusCurry/atom,hakatashi/atom,qiujuer/atom,mostafaeweda/atom,johnrizzo1/atom,mdumrauf/atom,hpham04/atom,nvoron23/atom,bencolon/atom,pkdevbox/atom,scv119/atom,hellendag/atom,matthewclendening/atom,liuxiong332/atom,stinsonga/atom,darwin/atom,me-benni/atom,tony612/atom,helber/atom,gisenberg/atom,sebmck/atom,KENJU/atom,vjeux/atom,beni55/atom,florianb/atom,alexandergmann/atom,johnhaley81/atom,Galactix/atom,GHackAnonymous/atom,t9md/atom,rookie125/atom,prembasumatary/atom,stuartquin/atom,florianb/atom,sillvan/atom,yamhon/atom,synaptek/atom,0x73/atom,dkfiresky/atom,deepfox/atom,lisonma/atom,kittens/atom,paulcbetts/atom,devmario/atom,gontadu/atom,qiujuer/atom,h0dgep0dge/atom,FoldingText/atom,jeremyramin/atom,hakatashi/atom,boomwaiza/atom,bencolon/atom,darwin/atom,ykeisuke/atom,woss/atom,vcarrera/atom,russlescai/atom,Abdillah/atom,yalexx/atom,bcoe/atom,nvoron23/atom,jeremyramin/atom,anuwat121/atom,targeter21/atom,mnquintana/atom,Andrey-Pavlov/atom,SlimeQ/atom,FIT-CSE2410-A-Bombs/atom,Hasimir/atom,acontreras89/atom,chengky/atom,gabrielPeart/atom,amine7536/atom,Hasimir/atom,batjko/atom,lpommers/atom,burodepeper/atom,kittens/atom,me6iaton/atom,RobinTec/atom,oggy/atom,rlugojr/atom,Jdesk/atom,NunoEdgarGub1/atom,execjosh/atom,ilovezy/atom,me6iaton/atom,scippio/atom,kdheepak89/atom,bcoe/atom,Locke23rus/atom,Rychard/atom,Jandersolutions/atom,pombredanne/atom,kaicataldo/atom,ali/atom,sekcheong/atom,crazyquark/atom,basarat/atom,Shekharrajak/atom,vhutheesing/atom,abe33/atom,hagb4rd/atom,tmunro/atom,acontreras89/atom,erikhakansson/atom,davideg/atom,tony612/atom,john-kelly/atom,KENJU/atom,johnhaley81/atom,russlescai/atom,ivoadf/atom,basarat/atom,Mokolea/atom,ppamorim/atom,nvoron23/atom,john-kelly/atom,sxgao3001/atom,einarmagnus/atom,Locke23rus/atom,isghe/atom,panuchart/atom,kandros/atom,Jandersolutions/atom,gontadu/atom,n-riesco/atom,sotayamashita/atom,jtrose2/atom,ilovezy/atom,YunchengLiao/atom,Jdesk/atom,hagb4rd/atom,brumm/atom,tmunro/atom,crazyquark/atom,hpham04/atom,bolinfest/atom,PKRoma/atom,oggy/atom,rlugojr/atom,MjAbuz/atom,stinsonga/atom,andrewleverette/atom,Rodjana/atom,oggy/atom,brumm/atom,tony612/atom,sebmck/atom,vcarrera/atom,liuderchi/atom,burodepeper/atom,PKRoma/atom,constanzaurzua/atom,toqz/atom,sebmck/atom,RobinTec/atom,rmartin/atom,rmartin/atom,kjav/atom,palita01/atom,jordanbtucker/atom,devoncarew/atom,efatsi/atom,hagb4rd/atom,fedorov/atom,ppamorim/atom,Jonekee/atom,FoldingText/atom,gisenberg/atom,russlescai/atom,prembasumatary/atom,ali/atom,ezeoleaf/atom,seedtigo/atom,rjattrill/atom,panuchart/atom,einarmagnus/atom,cyzn/atom,jacekkopecky/atom,wiggzz/atom,rsvip/aTom,mnquintana/atom,kaicataldo/atom,YunchengLiao/atom,me-benni/atom,alexandergmann/atom,bryonwinger/atom,prembasumatary/atom,seedtigo/atom,GHackAnonymous/atom,Jandersoft/atom,Abdillah/atom,kandros/atom,champagnez/atom,florianb/atom,jlord/atom,tmunro/atom,Austen-G/BlockBuilder,tisu2tisu/atom,batjko/atom,tony612/atom,n-riesco/atom,gabrielPeart/atom,andrewleverette/atom,batjko/atom,mostafaeweda/atom,transcranial/atom,devmario/atom,svanharmelen/atom,Neron-X5/atom,Ingramz/atom,jacekkopecky/atom,medovob/atom,mertkahyaoglu/atom,russlescai/atom,FoldingText/atom,basarat/atom,jjz/atom,omarhuanca/atom,kjav/atom,kdheepak89/atom,amine7536/atom,mertkahyaoglu/atom,ali/atom,vinodpanicker/atom,matthewclendening/atom,AlbertoBarrago/atom,qskycolor/atom,constanzaurzua/atom,0x73/atom,sebmck/atom,dkfiresky/atom,dsandstrom/atom,beni55/atom,mrodalgaard/atom,rxkit/atom,0x73/atom,jacekkopecky/atom,Rychard/atom,omarhuanca/atom,abe33/atom,Abdillah/atom,hakatashi/atom,g2p/atom,RobinTec/atom,decaffeinate-examples/atom,ralphtheninja/atom,Arcanemagus/atom,ironbox360/atom,nucked/atom,sxgao3001/atom,folpindo/atom,acontreras89/atom,basarat/atom,xream/atom,splodingsocks/atom,ReddTea/atom,qiujuer/atom,kdheepak89/atom,sotayamashita/atom,Austen-G/BlockBuilder,toqz/atom,dannyflax/atom,pkdevbox/atom,mnquintana/atom,Jandersoft/atom,elkingtonmcb/atom,bencolon/atom,deoxilix/atom,kc8wxm/atom,Galactix/atom,gabrielPeart/atom,Andrey-Pavlov/atom,mertkahyaoglu/atom,Austen-G/BlockBuilder,constanzaurzua/atom,Rodjana/atom,nucked/atom,originye/atom,lovesnow/atom,fredericksilva/atom,batjko/atom,sxgao3001/atom,cyzn/atom,bradgearon/atom,xream/atom,Arcanemagus/atom,nucked/atom,Huaraz2/atom,YunchengLiao/atom,Rodjana/atom,NunoEdgarGub1/atom,devoncarew/atom,dannyflax/atom,kc8wxm/atom,synaptek/atom,charleswhchan/atom,hagb4rd/atom,t9md/atom,brettle/atom,deoxilix/atom,abcP9110/atom,vinodpanicker/atom,svanharmelen/atom,Andrey-Pavlov/atom,YunchengLiao/atom,ilovezy/atom,deepfox/atom,g2p/atom,elkingtonmcb/atom,wiggzz/atom,lovesnow/atom,ezeoleaf/atom,rmartin/atom,seedtigo/atom,MjAbuz/atom,nvoron23/atom,dsandstrom/atom,fedorov/atom,synaptek/atom,Sangaroonaom/atom,rsvip/aTom,yangchenghu/atom,Jdesk/atom,kittens/atom,tjkr/atom,RobinTec/atom,matthewclendening/atom,dsandstrom/atom,vjeux/atom,tanin47/atom,scippio/atom,bcoe/atom,AlbertoBarrago/atom,abcP9110/atom,Jandersolutions/atom,harshdattani/atom,ReddTea/atom,kevinrenaers/atom,dijs/atom,ashneo76/atom,jjz/atom,KENJU/atom,pombredanne/atom,paulcbetts/atom,n-riesco/atom,codex8/atom,YunchengLiao/atom,hagb4rd/atom,charleswhchan/atom,Sangaroonaom/atom,ashneo76/atom,jjz/atom,Locke23rus/atom,hellendag/atom,mrodalgaard/atom,woss/atom,001szymon/atom,ReddTea/atom,dannyflax/atom,florianb/atom,medovob/atom,deepfox/atom,abcP9110/atom,lpommers/atom,Dennis1978/atom,yomybaby/atom,Ju2ender/atom,targeter21/atom,tjkr/atom,devoncarew/atom,Dennis1978/atom,yalexx/atom,harshdattani/atom,KENJU/atom,kaicataldo/atom,splodingsocks/atom,vjeux/atom,originye/atom,Rychard/atom,ReddTea/atom,AdrianVovk/substance-ide,vinodpanicker/atom,decaffeinate-examples/atom,Neron-X5/atom,ppamorim/atom,chfritz/atom,avdg/atom,yamhon/atom,qiujuer/atom,lisonma/atom,deoxilix/atom,alfredxing/atom,FoldingText/atom,ali/atom,abe33/atom,githubteacher/atom,mdumrauf/atom,einarmagnus/atom,sebmck/atom,lisonma/atom,FIT-CSE2410-A-Bombs/atom,bsmr-x-script/atom,Ju2ender/atom,Mokolea/atom,hharchani/atom,mnquintana/atom,sillvan/atom,chengky/atom,paulcbetts/atom,sekcheong/atom,qskycolor/atom,crazyquark/atom,davideg/atom,rookie125/atom,gisenberg/atom,AlexxNica/atom,fscherwi/atom,pombredanne/atom,rmartin/atom,gontadu/atom,vinodpanicker/atom,ralphtheninja/atom,devmario/atom,ykeisuke/atom,crazyquark/atom,batjko/atom,DiogoXRP/atom,mostafaeweda/atom,PKRoma/atom,execjosh/atom,gzzhanghao/atom,SlimeQ/atom,rjattrill/atom,bcoe/atom,qskycolor/atom,jtrose2/atom,atom/atom,AdrianVovk/substance-ide,AlbertoBarrago/atom,GHackAnonymous/atom,sekcheong/atom,codex8/atom,hpham04/atom,bryonwinger/atom,jlord/atom,folpindo/atom,Neron-X5/atom,CraZySacX/atom,constanzaurzua/atom,kittens/atom,amine7536/atom,rjattrill/atom,ilovezy/atom,Klozz/atom,fscherwi/atom,cyzn/atom,phord/atom,Jandersolutions/atom,johnrizzo1/atom,florianb/atom,stinsonga/atom,bradgearon/atom,splodingsocks/atom,dkfiresky/atom,charleswhchan/atom,0x73/atom,fredericksilva/atom,Andrey-Pavlov/atom,davideg/atom,paulcbetts/atom,fang-yufeng/atom,yangchenghu/atom,mdumrauf/atom,Galactix/atom,jordanbtucker/atom,chengky/atom,Shekharrajak/atom,darwin/atom,tjkr/atom,bryonwinger/atom,h0dgep0dge/atom,ppamorim/atom,isghe/atom,Abdillah/atom,stinsonga/atom,dkfiresky/atom,devmario/atom,qskycolor/atom,ObviouslyGreen/atom,Arcanemagus/atom,charleswhchan/atom,jjz/atom,tanin47/atom,lisonma/atom,AdrianVovk/substance-ide,woss/atom,rsvip/aTom,Austen-G/BlockBuilder,yangchenghu/atom,t9md/atom,FIT-CSE2410-A-Bombs/atom,liuxiong332/atom,me6iaton/atom,dannyflax/atom,charleswhchan/atom,targeter21/atom,sxgao3001/atom,vcarrera/atom,chengky/atom,lovesnow/atom,pombredanne/atom,Jandersoft/atom,mnquintana/atom,alfredxing/atom,rjattrill/atom,lisonma/atom,einarmagnus/atom,synaptek/atom,fedorov/atom,yalexx/atom,johnhaley81/atom,brettle/atom,G-Baby/atom,pkdevbox/atom,scv119/atom,daxlab/atom,Hasimir/atom,ironbox360/atom,chengky/atom,MjAbuz/atom,Jandersolutions/atom,daxlab/atom,gzzhanghao/atom,Neron-X5/atom,amine7536/atom,pengshp/atom,kc8wxm/atom,gisenberg/atom,rlugojr/atom,bj7/atom,ardeshirj/atom,atom/atom,decaffeinate-examples/atom,Ingramz/atom,fang-yufeng/atom,liuxiong332/atom,ReddTea/atom,omarhuanca/atom,scv119/atom,Neron-X5/atom,fedorov/atom,burodepeper/atom,niklabh/atom,transcranial/atom,sillvan/atom,matthewclendening/atom,RuiDGoncalves/atom,nrodriguez13/atom,yalexx/atom,Galactix/atom,synaptek/atom,NunoEdgarGub1/atom,targeter21/atom,sotayamashita/atom,erikhakansson/atom,basarat/atom,deepfox/atom,phord/atom,AlexxNica/atom,harshdattani/atom,xream/atom,scippio/atom,brettle/atom,fang-yufeng/atom,FoldingText/atom,devmario/atom,devoncarew/atom,codex8/atom,BogusCurry/atom,atom/atom,Jonekee/atom,ppamorim/atom,Shekharrajak/atom,boomwaiza/atom,SlimeQ/atom,G-Baby/atom,russlescai/atom,amine7536/atom,lovesnow/atom,prembasumatary/atom,brumm/atom,davideg/atom,anuwat121/atom,kjav/atom,001szymon/atom,yomybaby/atom,targeter21/atom,rxkit/atom,gzzhanghao/atom,Ju2ender/atom,pombredanne/atom,bolinfest/atom,rookie125/atom,liuxiong332/atom,DiogoXRP/atom,Sangaroonaom/atom,ralphtheninja/atom,stuartquin/atom,john-kelly/atom,kittens/atom,liuderchi/atom,Klozz/atom,qiujuer/atom,bolinfest/atom,hharchani/atom
coffeescript
## Code Before: Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null constructor: (pattern, reverse) -> @reverse = reverse @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new Range([0, 0], currentRange.start) rangeAfter = new Range(currentRange.end, editor.getEofPosition()) rangeToSearch = if @reverse then rangeBefore else rangeAfter rangeToReturn = null scanMethodName = if @reverse then "backwardsScanInRange" else "scanInRange" editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range if rangeToReturn rangeToReturn else rangeToSearch = if @reverse then rangeAfter else rangeBefore editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range rangeToReturn or currentRange isRelative: -> true ## Instruction: Use isReverse instead of reverse in RegexAddress ## Code After: Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null constructor: (pattern, isReversed) -> @isReversed = isReversed @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new Range([0, 0], currentRange.start) rangeAfter = new Range(currentRange.end, editor.getEofPosition()) rangeToSearch = if @isReversed then rangeBefore else rangeAfter rangeToReturn = null scanMethodName = if @isReversed then "backwardsScanInRange" else "scanInRange" editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range if rangeToReturn rangeToReturn else rangeToSearch = if @isReversed then rangeAfter else rangeBefore editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range rangeToReturn or currentRange isRelative: -> true
Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null - constructor: (pattern, reverse) -> ? ^ + constructor: (pattern, isReversed) -> ? ^^^ + - @reverse = reverse ? ^ ^ + @isReversed = isReversed ? ^^^ + ^^^ + @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new Range([0, 0], currentRange.start) rangeAfter = new Range(currentRange.end, editor.getEofPosition()) - rangeToSearch = if @reverse then rangeBefore else rangeAfter ? ^ + rangeToSearch = if @isReversed then rangeBefore else rangeAfter ? ^^^ + rangeToReturn = null - scanMethodName = if @reverse then "backwardsScanInRange" else "scanInRange" ? ^ + scanMethodName = if @isReversed then "backwardsScanInRange" else "scanInRange" ? ^^^ + editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range if rangeToReturn rangeToReturn else - rangeToSearch = if @reverse then rangeAfter else rangeBefore ? ^ + rangeToSearch = if @isReversed then rangeAfter else rangeBefore ? ^^^ + editor[scanMethodName] @regex, rangeToSearch, (match, range) -> rangeToReturn = range rangeToReturn or currentRange isRelative: -> true
10
0.30303
5
5
96ace17d9cd800a5649ad32a8cb496a55d73ca9f
wapps/templatetags/wagtail.py
wapps/templatetags/wagtail.py
import jinja2 from django.conf import settings from django_jinja import library from jinja2.ext import Extension from wagtail.wagtailcore.models import Page from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import ( routablepageurl as dj_routablepageurl ) from wapps.utils import get_image_url @library.global_function def menu(): return Page.objects.live().in_menu().filter(depth__lte=3) @library.global_function @jinja2.contextfunction def is_site_root(context, page): if 'request' not in context or not context['request'].site: return False site = context['request'].site return site.root_page.pk == page.pk @library.global_function def image_url(image, specs): return get_image_url(image, specs) @library.global_function @jinja2.contextfunction def routablepageurl(context, page, name, *args, **kwargs): return dj_routablepageurl(context, page, name, *args, **kwargs) @library.extension class WagtailSettings(Extension): def __init__(self, environment): super(WagtailSettings, self).__init__(environment) environment.globals['WAGTAIL_SITE_NAME'] = getattr(settings, 'WAGTAIL_SITE_NAME', None)
import jinja2 from django.conf import settings from django_jinja import library from jinja2.ext import Extension from wagtail.wagtailcore.models import Page from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import ( routablepageurl as dj_routablepageurl ) from wapps.utils import get_image_url @library.global_function def menu(): return Page.objects.live().in_menu().filter(depth__lte=3) @library.global_function @jinja2.contextfunction def is_site_root(context, page): if 'request' not in context or not context['request'].site or not page: return False site = context['request'].site return site.root_page.pk == page.pk @library.global_function def image_url(image, specs): return get_image_url(image, specs) @library.global_function @jinja2.contextfunction def routablepageurl(context, page, name, *args, **kwargs): return dj_routablepageurl(context, page, name, *args, **kwargs) @library.extension class WagtailSettings(Extension): def __init__(self, environment): super(WagtailSettings, self).__init__(environment) environment.globals['WAGTAIL_SITE_NAME'] = getattr(settings, 'WAGTAIL_SITE_NAME', None)
Fix is_site_root when no page
Fix is_site_root when no page
Python
mit
apihackers/wapps,apihackers/wapps,apihackers/wapps,apihackers/wapps
python
## Code Before: import jinja2 from django.conf import settings from django_jinja import library from jinja2.ext import Extension from wagtail.wagtailcore.models import Page from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import ( routablepageurl as dj_routablepageurl ) from wapps.utils import get_image_url @library.global_function def menu(): return Page.objects.live().in_menu().filter(depth__lte=3) @library.global_function @jinja2.contextfunction def is_site_root(context, page): if 'request' not in context or not context['request'].site: return False site = context['request'].site return site.root_page.pk == page.pk @library.global_function def image_url(image, specs): return get_image_url(image, specs) @library.global_function @jinja2.contextfunction def routablepageurl(context, page, name, *args, **kwargs): return dj_routablepageurl(context, page, name, *args, **kwargs) @library.extension class WagtailSettings(Extension): def __init__(self, environment): super(WagtailSettings, self).__init__(environment) environment.globals['WAGTAIL_SITE_NAME'] = getattr(settings, 'WAGTAIL_SITE_NAME', None) ## Instruction: Fix is_site_root when no page ## Code After: import jinja2 from django.conf import settings from django_jinja import library from jinja2.ext import Extension from wagtail.wagtailcore.models import Page from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import ( routablepageurl as dj_routablepageurl ) from wapps.utils import get_image_url @library.global_function def menu(): return Page.objects.live().in_menu().filter(depth__lte=3) @library.global_function @jinja2.contextfunction def is_site_root(context, page): if 'request' not in context or not context['request'].site or not page: return False site = context['request'].site return site.root_page.pk == page.pk @library.global_function def image_url(image, specs): return get_image_url(image, specs) @library.global_function @jinja2.contextfunction def routablepageurl(context, page, name, *args, **kwargs): return dj_routablepageurl(context, page, name, *args, **kwargs) @library.extension class WagtailSettings(Extension): def __init__(self, environment): super(WagtailSettings, self).__init__(environment) environment.globals['WAGTAIL_SITE_NAME'] = getattr(settings, 'WAGTAIL_SITE_NAME', None)
import jinja2 from django.conf import settings from django_jinja import library from jinja2.ext import Extension from wagtail.wagtailcore.models import Page from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import ( routablepageurl as dj_routablepageurl ) from wapps.utils import get_image_url @library.global_function def menu(): return Page.objects.live().in_menu().filter(depth__lte=3) @library.global_function @jinja2.contextfunction def is_site_root(context, page): - if 'request' not in context or not context['request'].site: + if 'request' not in context or not context['request'].site or not page: ? ++++++++++++ return False site = context['request'].site return site.root_page.pk == page.pk @library.global_function def image_url(image, specs): return get_image_url(image, specs) @library.global_function @jinja2.contextfunction def routablepageurl(context, page, name, *args, **kwargs): return dj_routablepageurl(context, page, name, *args, **kwargs) @library.extension class WagtailSettings(Extension): def __init__(self, environment): super(WagtailSettings, self).__init__(environment) environment.globals['WAGTAIL_SITE_NAME'] = getattr(settings, 'WAGTAIL_SITE_NAME', None)
2
0.046512
1
1
819300cace4896c2dfef89322b8d72258e7582f8
.travis.yml
.travis.yml
language: java script: mvn verify jdk: - openjdk7 - oraclejdk7 - oraclejdk8 cache: directories: - $HOME/.m2 notifications: email: recipients: - eg.oss@e-gineering.com
language: java script: mvn verify jdk: - openjdk7 - oraclejdk8 cache: directories: - $HOME/.m2 notifications: email: recipients: - eg.oss@e-gineering.com
Update to remove the OracleJDK7 build.
Update to remove the OracleJDK7 build.
YAML
apache-2.0
egineering-llc/gitflow-helper-maven-plugin
yaml
## Code Before: language: java script: mvn verify jdk: - openjdk7 - oraclejdk7 - oraclejdk8 cache: directories: - $HOME/.m2 notifications: email: recipients: - eg.oss@e-gineering.com ## Instruction: Update to remove the OracleJDK7 build. ## Code After: language: java script: mvn verify jdk: - openjdk7 - oraclejdk8 cache: directories: - $HOME/.m2 notifications: email: recipients: - eg.oss@e-gineering.com
language: java script: mvn verify jdk: - openjdk7 - - oraclejdk7 - oraclejdk8 cache: directories: - $HOME/.m2 notifications: email: recipients: - eg.oss@e-gineering.com
1
0.058824
0
1
cffed12b1648b63514a5efa1a708ac744341f8be
lib/pycall/pyobject_wrapper.rb
lib/pycall/pyobject_wrapper.rb
module PyCall module PyObjectWrapper def initialize(pyobj, pytype) check_type pyobj, pytype @__pyobj__ = pyobj end attr_reader :__pyobj__ def ==(other) case other when self.class __pyobj__ == other.__pyobj__ when PyObject __pyobj__ == other else super end end def call(*args, **kwargs) __pyobj__.call(*args, **kwargs) end def method_missing(name, *args, **kwargs) if PyCall.hasattr?(__pyobj__, name.to_s) PyCall.getattr(__pyobj__, name) else super end end def to_s __pyobj__.to_s end def inspect __pyobj__.inspect end private def check_type(pyobj, pytype) return if pyobj.kind_of?(PyObject) && pyobj.kind_of?(pytype) raise TypeError, "the argument must be a PyObject of #{pytype}" end end end
module PyCall module PyObjectWrapper def initialize(pyobj, pytype=nil) check_type pyobj, pytype pytype ||= LibPython.PyObject_Type(pyobj) @__pyobj__ = pyobj end attr_reader :__pyobj__ def ==(other) case other when self.class __pyobj__ == other.__pyobj__ when PyObject __pyobj__ == other else super end end def call(*args, **kwargs) __pyobj__.call(*args, **kwargs) end def method_missing(name, *args, **kwargs) if PyCall.hasattr?(__pyobj__, name.to_s) PyCall.getattr(__pyobj__, name) else super end end def to_s __pyobj__.to_s end def inspect __pyobj__.inspect end private def check_type(pyobj, pytype) return if pyobj.kind_of?(PyObject) return if pytype.nil? || pyobj.kind_of?(pytype) raise TypeError, "the argument must be a PyObject of #{pytype}" end end end
Make pytype ignorable in PyObjectWrapper
Make pytype ignorable in PyObjectWrapper
Ruby
mit
mrkn/pycall,mrkn/pycall.rb,mrkn/pycall,mrkn/pycall.rb,mrkn/pycall,mrkn/pycall.rb,mrkn/pycall,mrkn/pycall.rb
ruby
## Code Before: module PyCall module PyObjectWrapper def initialize(pyobj, pytype) check_type pyobj, pytype @__pyobj__ = pyobj end attr_reader :__pyobj__ def ==(other) case other when self.class __pyobj__ == other.__pyobj__ when PyObject __pyobj__ == other else super end end def call(*args, **kwargs) __pyobj__.call(*args, **kwargs) end def method_missing(name, *args, **kwargs) if PyCall.hasattr?(__pyobj__, name.to_s) PyCall.getattr(__pyobj__, name) else super end end def to_s __pyobj__.to_s end def inspect __pyobj__.inspect end private def check_type(pyobj, pytype) return if pyobj.kind_of?(PyObject) && pyobj.kind_of?(pytype) raise TypeError, "the argument must be a PyObject of #{pytype}" end end end ## Instruction: Make pytype ignorable in PyObjectWrapper ## Code After: module PyCall module PyObjectWrapper def initialize(pyobj, pytype=nil) check_type pyobj, pytype pytype ||= LibPython.PyObject_Type(pyobj) @__pyobj__ = pyobj end attr_reader :__pyobj__ def ==(other) case other when self.class __pyobj__ == other.__pyobj__ when PyObject __pyobj__ == other else super end end def call(*args, **kwargs) __pyobj__.call(*args, **kwargs) end def method_missing(name, *args, **kwargs) if PyCall.hasattr?(__pyobj__, name.to_s) PyCall.getattr(__pyobj__, name) else super end end def to_s __pyobj__.to_s end def inspect __pyobj__.inspect end private def check_type(pyobj, pytype) return if pyobj.kind_of?(PyObject) return if pytype.nil? || pyobj.kind_of?(pytype) raise TypeError, "the argument must be a PyObject of #{pytype}" end end end
module PyCall module PyObjectWrapper - def initialize(pyobj, pytype) + def initialize(pyobj, pytype=nil) ? ++++ check_type pyobj, pytype + pytype ||= LibPython.PyObject_Type(pyobj) @__pyobj__ = pyobj end attr_reader :__pyobj__ def ==(other) case other when self.class __pyobj__ == other.__pyobj__ when PyObject __pyobj__ == other else super end end def call(*args, **kwargs) __pyobj__.call(*args, **kwargs) end def method_missing(name, *args, **kwargs) if PyCall.hasattr?(__pyobj__, name.to_s) PyCall.getattr(__pyobj__, name) else super end end def to_s __pyobj__.to_s end def inspect __pyobj__.inspect end private def check_type(pyobj, pytype) + return if pyobj.kind_of?(PyObject) - return if pyobj.kind_of?(PyObject) && pyobj.kind_of?(pytype) ? ^^^ ^ ^^^^^ ---------- ^^ + return if pytype.nil? || pyobj.kind_of?(pytype) ? ^^^^ ^ ^ ^^ raise TypeError, "the argument must be a PyObject of #{pytype}" end end end
6
0.125
4
2
330ffd6fcec2e7f87bda248e6320148546c2f221
project.clj
project.clj
(defproject mkremins/flense-nw "0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2665"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] [com.facebook/react "0.12.2.1"] [org.om/om "0.8.0"] [spellhouse/phalanges "0.1.4"] [mkremins/flense "0.0-SNAPSHOT"] [mkremins/fs "0.3.0"]] :plugins [[lein-cljsbuild "1.0.4"]] :source-paths ["src"] :cljsbuild {:builds [{:source-paths ["src"] :compiler {:preamble ["react/react.js"] :output-to "target/flense.js" :source-map "target/flense.js.map" :optimizations :whitespace :pretty-print true}}]})
(defproject mkremins/flense-nw "0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2727"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] [org.omcljs/om "0.8.4"] [spellhouse/phalanges "0.1.4"] [mkremins/flense "0.0-SNAPSHOT"] [mkremins/fs "0.3.0"]] :plugins [[lein-cljsbuild "1.0.4"]] :cljsbuild {:builds [{:source-paths ["src"] :compiler {:main flense-nw.app :output-to "target/flense.js" :source-map "target/flense.js.map" :optimizations :none}}]})
Clean up dependencies and build options
Clean up dependencies and build options * Don't depend directly on React (pulled in via Om) * Bump ClojureScript to 0.0-2727 * Bump Om to 0.8.4 * Drop :preamble (made unnecessary by latest CLJS) * Use :optimizations :none to improve compile times
Clojure
mit
mkremins/flense-nw,mkremins/flense-nw
clojure
## Code Before: (defproject mkremins/flense-nw "0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2665"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] [com.facebook/react "0.12.2.1"] [org.om/om "0.8.0"] [spellhouse/phalanges "0.1.4"] [mkremins/flense "0.0-SNAPSHOT"] [mkremins/fs "0.3.0"]] :plugins [[lein-cljsbuild "1.0.4"]] :source-paths ["src"] :cljsbuild {:builds [{:source-paths ["src"] :compiler {:preamble ["react/react.js"] :output-to "target/flense.js" :source-map "target/flense.js.map" :optimizations :whitespace :pretty-print true}}]}) ## Instruction: Clean up dependencies and build options * Don't depend directly on React (pulled in via Om) * Bump ClojureScript to 0.0-2727 * Bump Om to 0.8.4 * Drop :preamble (made unnecessary by latest CLJS) * Use :optimizations :none to improve compile times ## Code After: (defproject mkremins/flense-nw "0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2727"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] [org.omcljs/om "0.8.4"] [spellhouse/phalanges "0.1.4"] [mkremins/flense "0.0-SNAPSHOT"] [mkremins/fs "0.3.0"]] :plugins [[lein-cljsbuild "1.0.4"]] :cljsbuild {:builds [{:source-paths ["src"] :compiler {:main flense-nw.app :output-to "target/flense.js" :source-map "target/flense.js.map" :optimizations :none}}]})
(defproject mkremins/flense-nw "0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] - [org.clojure/clojurescript "0.0-2665"] ? ^^^ + [org.clojure/clojurescript "0.0-2727"] ? ^^^ [org.clojure/core.async "0.1.346.0-17112a-alpha"] - [com.facebook/react "0.12.2.1"] - [org.om/om "0.8.0"] ? ^ + [org.omcljs/om "0.8.4"] ? ++++ ^ [spellhouse/phalanges "0.1.4"] [mkremins/flense "0.0-SNAPSHOT"] [mkremins/fs "0.3.0"]] :plugins [[lein-cljsbuild "1.0.4"]] - :source-paths ["src"] - :cljsbuild {:builds [{:source-paths ["src"] - :compiler {:preamble ["react/react.js"] + :compiler {:main flense-nw.app :output-to "target/flense.js" :source-map "target/flense.js.map" - :optimizations :whitespace ? ^^^^ ^^^^^ + :optimizations :none}}]}) ? ^^^ ^^^^^ - :pretty-print true}}]})
12
0.5
4
8
59f3e99b3ae8954dfd056671e0a49d11eda6468a
build/prod/uwsgi.ini
build/prod/uwsgi.ini
[uwsgi] socket = 127.0.0.1:8000 module = cutepaste.wsgi master = true processes = 4 threads = 4 cheaper-algo = spare cheaper = 1 cheaper-initial = 1 vacuum = true
[uwsgi] socket = 127.0.0.1:8000 module = cutepaste.wsgi master = true processes = 4 threads = 4 cheaper-algo = spare cheaper = 1 cheaper-initial = 1 vacuum = true harakiri = 300
Set a high harakiri value, given file copying is being done synchronously within the request thread
Set a high harakiri value, given file copying is being done synchronously within the request thread
INI
apache-2.0
msurdi/cutepaste,msurdi/cutepaste,msurdi/cutepaste
ini
## Code Before: [uwsgi] socket = 127.0.0.1:8000 module = cutepaste.wsgi master = true processes = 4 threads = 4 cheaper-algo = spare cheaper = 1 cheaper-initial = 1 vacuum = true ## Instruction: Set a high harakiri value, given file copying is being done synchronously within the request thread ## Code After: [uwsgi] socket = 127.0.0.1:8000 module = cutepaste.wsgi master = true processes = 4 threads = 4 cheaper-algo = spare cheaper = 1 cheaper-initial = 1 vacuum = true harakiri = 300
[uwsgi] socket = 127.0.0.1:8000 module = cutepaste.wsgi master = true processes = 4 threads = 4 cheaper-algo = spare cheaper = 1 cheaper-initial = 1 vacuum = true + harakiri = 300
1
0.1
1
0
c3ff50a7013280fdc3686e9ca676882ceddeef7b
app/assets/javascripts/admin/application.js
app/assets/javascripts/admin/application.js
//= require trix //= require jquery.geocomplete //= require cleave //= require ./trix_events //= require ./trix_toolbar //= require ./app/init //= require_tree ./app $(document).on('turbolinks:load', function() { // Datepicker $('.air-datepicker').datepicker({ autoClose: true, onSelect: function onSelect(_, _, instance) { $(instance.el).trigger("datepicker-change"); } }); });
//= require trix //= require jquery.geocomplete //= require cleave //= require ./trix_events //= require ./trix_toolbar //= require ./app/init //= require_tree ./app $(document).on('turbolinks:load', function() { // Datepicker $('.air-datepicker').datepicker({ autoClose: true, minutesStep: 5, onSelect: function onSelect(_, _, instance) { $(instance.el).trigger("datepicker-change"); } }); });
Allow only 5 minute increments for date picker so we reduce the number of steps
Allow only 5 minute increments for date picker so we reduce the number of steps
JavaScript
agpl-3.0
PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev
javascript
## Code Before: //= require trix //= require jquery.geocomplete //= require cleave //= require ./trix_events //= require ./trix_toolbar //= require ./app/init //= require_tree ./app $(document).on('turbolinks:load', function() { // Datepicker $('.air-datepicker').datepicker({ autoClose: true, onSelect: function onSelect(_, _, instance) { $(instance.el).trigger("datepicker-change"); } }); }); ## Instruction: Allow only 5 minute increments for date picker so we reduce the number of steps ## Code After: //= require trix //= require jquery.geocomplete //= require cleave //= require ./trix_events //= require ./trix_toolbar //= require ./app/init //= require_tree ./app $(document).on('turbolinks:load', function() { // Datepicker $('.air-datepicker').datepicker({ autoClose: true, minutesStep: 5, onSelect: function onSelect(_, _, instance) { $(instance.el).trigger("datepicker-change"); } }); });
//= require trix //= require jquery.geocomplete //= require cleave //= require ./trix_events //= require ./trix_toolbar //= require ./app/init //= require_tree ./app $(document).on('turbolinks:load', function() { // Datepicker $('.air-datepicker').datepicker({ autoClose: true, + minutesStep: 5, onSelect: function onSelect(_, _, instance) { $(instance.el).trigger("datepicker-change"); } }); });
1
0.052632
1
0
d351c50c960d6bad2469b08fd547936512c58a08
uart_echo.c
uart_echo.c
int main (void) { uart_enable(UM_Asynchronous); sei(); unsigned char c = 0; do { c = uart_receive(); uart_transmit(c); } while (c); return 0; }
int main (void) { uart_enable(UM_Asynchronous); sei(); DDRB = 0xFF; unsigned char c = 0; do { c = uart_receive(); // Do some blinking if we receive a number between 1 and 9. if (c >= '1' && c <= '9') { for (int i = 0; i < (c-'0'); ++i) { PORTB = 0xFF; _delay_ms(100); PORTB = 0x00; _delay_ms(100); } } uart_transmit(c); } while (1); return 0; }
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
C
mpl-2.0
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
c
## Code Before: int main (void) { uart_enable(UM_Asynchronous); sei(); unsigned char c = 0; do { c = uart_receive(); uart_transmit(c); } while (c); return 0; } ## Instruction: Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway. ## Code After: int main (void) { uart_enable(UM_Asynchronous); sei(); DDRB = 0xFF; unsigned char c = 0; do { c = uart_receive(); // Do some blinking if we receive a number between 1 and 9. if (c >= '1' && c <= '9') { for (int i = 0; i < (c-'0'); ++i) { PORTB = 0xFF; _delay_ms(100); PORTB = 0x00; _delay_ms(100); } } uart_transmit(c); } while (1); return 0; }
int main (void) { uart_enable(UM_Asynchronous); sei(); + DDRB = 0xFF; + unsigned char c = 0; do { c = uart_receive(); + + // Do some blinking if we receive a number between 1 and 9. + if (c >= '1' && c <= '9') { + for (int i = 0; i < (c-'0'); ++i) { + PORTB = 0xFF; + _delay_ms(100); + PORTB = 0x00; + _delay_ms(100); + } + } + uart_transmit(c); - } while (c); ? ^ + } while (1); ? ^ return 0; }
15
1.071429
14
1
330c1efdedc14974e84335ae59e7d2327665c874
app/views/coronavirus_landing_page/components/hub/_guidance_section.html.erb
app/views/coronavirus_landing_page/components/hub/_guidance_section.html.erb
<div class="covid__page-guidance"> <div class="govuk-width-container"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <%= render "govuk_publishing_components/components/heading", { text: guidance["header"], font_size: 19, margin_bottom: 5 } %> <ul class="covid__list"> <% guidance["list"].each do | item | %> <li class="covid__list-item"> <a class="govuk-link covid__page-guidance-link" href="<%= item["url"] %>"> <%= item["text"] %> </a> </li> <% end %> </ul> </div> <%# render partial: 'coronavirus_landing_page/components/shared/related_links', locals: { related: related } %> </div> </div> </div>
<div class="covid__page-guidance"> <div class="govuk-width-container"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <%= render "govuk_publishing_components/components/heading", { text: guidance["header"], font_size: 19, margin_bottom: 5 } %> <ul class="covid__list"> <% guidance["list"].each do | item | %> <li class="covid__list-item"> <a class="govuk-link covid__page-guidance-link" href="<%= item["url"] %>" data-module="track-click" data-track-category="pageElementInteraction" data-track-action="What you can do now" data-track-label="<%= item["url"] %>" > <%= item["text"] %> </a> </li> <% end %> </ul> </div> <%# render partial: 'coronavirus_landing_page/components/shared/related_links', locals: { related: related } %> </div> </div> </div>
Add tracking for What you can do now section
Add tracking for What you can do now section
HTML+ERB
mit
alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections
html+erb
## Code Before: <div class="covid__page-guidance"> <div class="govuk-width-container"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <%= render "govuk_publishing_components/components/heading", { text: guidance["header"], font_size: 19, margin_bottom: 5 } %> <ul class="covid__list"> <% guidance["list"].each do | item | %> <li class="covid__list-item"> <a class="govuk-link covid__page-guidance-link" href="<%= item["url"] %>"> <%= item["text"] %> </a> </li> <% end %> </ul> </div> <%# render partial: 'coronavirus_landing_page/components/shared/related_links', locals: { related: related } %> </div> </div> </div> ## Instruction: Add tracking for What you can do now section ## Code After: <div class="covid__page-guidance"> <div class="govuk-width-container"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <%= render "govuk_publishing_components/components/heading", { text: guidance["header"], font_size: 19, margin_bottom: 5 } %> <ul class="covid__list"> <% guidance["list"].each do | item | %> <li class="covid__list-item"> <a class="govuk-link covid__page-guidance-link" href="<%= item["url"] %>" data-module="track-click" data-track-category="pageElementInteraction" data-track-action="What you can do now" data-track-label="<%= item["url"] %>" > <%= item["text"] %> </a> </li> <% end %> </ul> </div> <%# render partial: 'coronavirus_landing_page/components/shared/related_links', locals: { related: related } %> </div> </div> </div>
<div class="covid__page-guidance"> <div class="govuk-width-container"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <%= render "govuk_publishing_components/components/heading", { text: guidance["header"], font_size: 19, margin_bottom: 5 } %> <ul class="covid__list"> <% guidance["list"].each do | item | %> <li class="covid__list-item"> + <a - <a class="govuk-link covid__page-guidance-link" href="<%= item["url"] %>"> ? ^^ --------------------------- + class="govuk-link covid__page-guidance-link" ? ^ + href="<%= item["url"] %>" + data-module="track-click" + data-track-category="pageElementInteraction" + data-track-action="What you can do now" + data-track-label="<%= item["url"] %>" + > <%= item["text"] %> </a> </li> <% end %> </ul> </div> <%# render partial: 'coronavirus_landing_page/components/shared/related_links', locals: { related: related } %> </div> </div> </div>
9
0.391304
8
1
ad49e40144d10d556af146a993aa1173da9de891
README.md
README.md
Generate changes as part of `npm version [patch|minor|major]`. ## Install ```bash $ npm install @studio/changes -D ``` ## Configure Add this to your `package.json`: ```json { "scripts": { "version": "changes" } } ``` ## Usage - Use the [npm version feature][1] as usual - You editor will open with a generated `CHANGES.md` file - Save and close the editor to continue - Remove the line with the next version number to abort [1]: https://docs.npmjs.com/cli/version
Generate changes as part of `npm version [patch|minor|major]`. ## Install ```bash $ npm install @studio/changes -D ``` ## Configure Add this to your `package.json`: ```json { "scripts": { "preversion": "npm test", "version": "changes", "postversion": "git push --follow-tags && npm publish" } } ``` ## Usage - Use the [npm version feature][1] as usual - You editor will open with a generated `CHANGES.md` file - Save and close the editor to continue - Remove the line with the next version number to abort [1]: https://docs.npmjs.com/cli/version
Add `preversion` and `postversion` scripts to docs
Add `preversion` and `postversion` scripts to docs
Markdown
mit
javascript-studio/studio-changes
markdown
## Code Before: Generate changes as part of `npm version [patch|minor|major]`. ## Install ```bash $ npm install @studio/changes -D ``` ## Configure Add this to your `package.json`: ```json { "scripts": { "version": "changes" } } ``` ## Usage - Use the [npm version feature][1] as usual - You editor will open with a generated `CHANGES.md` file - Save and close the editor to continue - Remove the line with the next version number to abort [1]: https://docs.npmjs.com/cli/version ## Instruction: Add `preversion` and `postversion` scripts to docs ## Code After: Generate changes as part of `npm version [patch|minor|major]`. ## Install ```bash $ npm install @studio/changes -D ``` ## Configure Add this to your `package.json`: ```json { "scripts": { "preversion": "npm test", "version": "changes", "postversion": "git push --follow-tags && npm publish" } } ``` ## Usage - Use the [npm version feature][1] as usual - You editor will open with a generated `CHANGES.md` file - Save and close the editor to continue - Remove the line with the next version number to abort [1]: https://docs.npmjs.com/cli/version
Generate changes as part of `npm version [patch|minor|major]`. ## Install ```bash $ npm install @studio/changes -D ``` ## Configure Add this to your `package.json`: ```json { "scripts": { + "preversion": "npm test", - "version": "changes" + "version": "changes", ? + + "postversion": "git push --follow-tags && npm publish" } } ``` ## Usage - Use the [npm version feature][1] as usual - You editor will open with a generated `CHANGES.md` file - Save and close the editor to continue - Remove the line with the next version number to abort [1]: https://docs.npmjs.com/cli/version
4
0.137931
3
1
ea0f9f97f4a0a8338bed30724ab92a8acc4b6efa
tests/panels/test_cache.py
tests/panels/test_cache.py
from __future__ import absolute_import, unicode_literals import django from django.core import cache from django.utils.unittest import skipIf from ..base import BaseTestCase class CachePanelTestCase(BaseTestCase): def setUp(self): super(CachePanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('CachePanel') self.panel.enable_instrumentation() def tearDown(self): self.panel.disable_instrumentation() super(CachePanelTestCase, self).tearDown() def test_recording(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.cache.get('foo') cache.cache.delete('foo') self.assertEqual(len(self.panel.calls), 3) @skipIf(django.VERSION < (1, 7), "Caches was added in Django 1.7") def test_recording_caches(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.caches[cache.DEFAULT_CACHE_ALIAS].get('foo') self.assertEqual(len(self.panel.calls), 2)
from __future__ import absolute_import, unicode_literals import django from django.core import cache from django.utils.unittest import skipIf from ..base import BaseTestCase class CachePanelTestCase(BaseTestCase): def setUp(self): super(CachePanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('CachePanel') self.panel.enable_instrumentation() def tearDown(self): self.panel.disable_instrumentation() super(CachePanelTestCase, self).tearDown() def test_recording(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.cache.get('foo') cache.cache.delete('foo') # Verify that the cache has a valid clear method. cache.cache.clear() self.assertEqual(len(self.panel.calls), 5) @skipIf(django.VERSION < (1, 7), "Caches was added in Django 1.7") def test_recording_caches(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.caches[cache.DEFAULT_CACHE_ALIAS].get('foo') self.assertEqual(len(self.panel.calls), 2)
Add a test that verifies the cache has a clear method.
Add a test that verifies the cache has a clear method.
Python
bsd-3-clause
peap/django-debug-toolbar,seperman/django-debug-toolbar,stored/django-debug-toolbar,megcunningham/django-debug-toolbar,calvinpy/django-debug-toolbar,spookylukey/django-debug-toolbar,guilhermetavares/django-debug-toolbar,megcunningham/django-debug-toolbar,tim-schilling/django-debug-toolbar,jazzband/django-debug-toolbar,ChristosChristofidis/django-debug-toolbar,barseghyanartur/django-debug-toolbar,pevzi/django-debug-toolbar,Endika/django-debug-toolbar,guilhermetavares/django-debug-toolbar,pevzi/django-debug-toolbar,calvinpy/django-debug-toolbar,spookylukey/django-debug-toolbar,megcunningham/django-debug-toolbar,tim-schilling/django-debug-toolbar,barseghyanartur/django-debug-toolbar,Endika/django-debug-toolbar,peap/django-debug-toolbar,tim-schilling/django-debug-toolbar,stored/django-debug-toolbar,sidja/django-debug-toolbar,spookylukey/django-debug-toolbar,jazzband/django-debug-toolbar,django-debug-toolbar/django-debug-toolbar,peap/django-debug-toolbar,seperman/django-debug-toolbar,calvinpy/django-debug-toolbar,django-debug-toolbar/django-debug-toolbar,django-debug-toolbar/django-debug-toolbar,barseghyanartur/django-debug-toolbar,jazzband/django-debug-toolbar,pevzi/django-debug-toolbar,stored/django-debug-toolbar,seperman/django-debug-toolbar,guilhermetavares/django-debug-toolbar,Endika/django-debug-toolbar,sidja/django-debug-toolbar,ChristosChristofidis/django-debug-toolbar,sidja/django-debug-toolbar,ChristosChristofidis/django-debug-toolbar
python
## Code Before: from __future__ import absolute_import, unicode_literals import django from django.core import cache from django.utils.unittest import skipIf from ..base import BaseTestCase class CachePanelTestCase(BaseTestCase): def setUp(self): super(CachePanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('CachePanel') self.panel.enable_instrumentation() def tearDown(self): self.panel.disable_instrumentation() super(CachePanelTestCase, self).tearDown() def test_recording(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.cache.get('foo') cache.cache.delete('foo') self.assertEqual(len(self.panel.calls), 3) @skipIf(django.VERSION < (1, 7), "Caches was added in Django 1.7") def test_recording_caches(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.caches[cache.DEFAULT_CACHE_ALIAS].get('foo') self.assertEqual(len(self.panel.calls), 2) ## Instruction: Add a test that verifies the cache has a clear method. ## Code After: from __future__ import absolute_import, unicode_literals import django from django.core import cache from django.utils.unittest import skipIf from ..base import BaseTestCase class CachePanelTestCase(BaseTestCase): def setUp(self): super(CachePanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('CachePanel') self.panel.enable_instrumentation() def tearDown(self): self.panel.disable_instrumentation() super(CachePanelTestCase, self).tearDown() def test_recording(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.cache.get('foo') cache.cache.delete('foo') # Verify that the cache has a valid clear method. cache.cache.clear() self.assertEqual(len(self.panel.calls), 5) @skipIf(django.VERSION < (1, 7), "Caches was added in Django 1.7") def test_recording_caches(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.caches[cache.DEFAULT_CACHE_ALIAS].get('foo') self.assertEqual(len(self.panel.calls), 2)
from __future__ import absolute_import, unicode_literals import django from django.core import cache from django.utils.unittest import skipIf from ..base import BaseTestCase class CachePanelTestCase(BaseTestCase): def setUp(self): super(CachePanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('CachePanel') self.panel.enable_instrumentation() def tearDown(self): self.panel.disable_instrumentation() super(CachePanelTestCase, self).tearDown() def test_recording(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.cache.get('foo') cache.cache.delete('foo') + # Verify that the cache has a valid clear method. + cache.cache.clear() - self.assertEqual(len(self.panel.calls), 3) ? ^ + self.assertEqual(len(self.panel.calls), 5) ? ^ @skipIf(django.VERSION < (1, 7), "Caches was added in Django 1.7") def test_recording_caches(self): self.assertEqual(len(self.panel.calls), 0) cache.cache.set('foo', 'bar') cache.caches[cache.DEFAULT_CACHE_ALIAS].get('foo') self.assertEqual(len(self.panel.calls), 2)
4
0.117647
3
1
06291110313fdba2556a971305066274c936d335
examples/swing.js
examples/swing.js
var {JFrame, JButton, ImageIcon, JLabel} = javax.swing; var {setInterval} = require('ringo/scheduler'); var n = 0; function main() { var frame = new JFrame("Swing Demo"); var button = new JButton(new ImageIcon("img/ringo-drums.png")); button.addActionListener(function(e) { setInterval(function() { if (n++ > 200) system.exit(); frame.setLocation(200 + random(), 200 + random()); }, 5); }); frame.add("Center", button); frame.add("South", new JLabel("Click Button for Visual Drumroll!")); frame.setSize(300, 300); frame.setLocation(200, 200); frame.setVisible(true); } function random() (Math.random() - 0.5) * 50; if (require.main == module) { main(); }
var {JFrame, JButton, ImageIcon, JLabel} = javax.swing; var {setInterval} = require('ringo/scheduler'); var n = 0; function main() { var frame = new JFrame("Swing Demo"); var button = new JButton(new ImageIcon(module.resolve("img/ringo-drums.png"))); button.addActionListener(function(e) { setInterval(function() { if (n++ > 200) system.exit(); frame.setLocation(200 + random(), 200 + random()); }, 5); }); frame.add("Center", button); frame.add("South", new JLabel("Click Button for Visual Drumroll!")); frame.setSize(300, 300); frame.setLocation(200, 200); frame.setVisible(true); } function random() (Math.random() - 0.5) * 50; if (require.main == module) { main(); }
Resolve image icon path relative to module
Resolve image icon path relative to module
JavaScript
apache-2.0
Transcordia/ringojs,ringo/ringojs,Transcordia/ringojs,ashwinrayaprolu1984/ringojs,ashwinrayaprolu1984/ringojs,oberhamsi/ringojs,Transcordia/ringojs,ashwinrayaprolu1984/ringojs,Transcordia/ringojs,oberhamsi/ringojs,ringo/ringojs,ringo/ringojs,ringo/ringojs,ashwinrayaprolu1984/ringojs,oberhamsi/ringojs
javascript
## Code Before: var {JFrame, JButton, ImageIcon, JLabel} = javax.swing; var {setInterval} = require('ringo/scheduler'); var n = 0; function main() { var frame = new JFrame("Swing Demo"); var button = new JButton(new ImageIcon("img/ringo-drums.png")); button.addActionListener(function(e) { setInterval(function() { if (n++ > 200) system.exit(); frame.setLocation(200 + random(), 200 + random()); }, 5); }); frame.add("Center", button); frame.add("South", new JLabel("Click Button for Visual Drumroll!")); frame.setSize(300, 300); frame.setLocation(200, 200); frame.setVisible(true); } function random() (Math.random() - 0.5) * 50; if (require.main == module) { main(); } ## Instruction: Resolve image icon path relative to module ## Code After: var {JFrame, JButton, ImageIcon, JLabel} = javax.swing; var {setInterval} = require('ringo/scheduler'); var n = 0; function main() { var frame = new JFrame("Swing Demo"); var button = new JButton(new ImageIcon(module.resolve("img/ringo-drums.png"))); button.addActionListener(function(e) { setInterval(function() { if (n++ > 200) system.exit(); frame.setLocation(200 + random(), 200 + random()); }, 5); }); frame.add("Center", button); frame.add("South", new JLabel("Click Button for Visual Drumroll!")); frame.setSize(300, 300); frame.setLocation(200, 200); frame.setVisible(true); } function random() (Math.random() - 0.5) * 50; if (require.main == module) { main(); }
var {JFrame, JButton, ImageIcon, JLabel} = javax.swing; var {setInterval} = require('ringo/scheduler'); var n = 0; function main() { var frame = new JFrame("Swing Demo"); - var button = new JButton(new ImageIcon("img/ringo-drums.png")); + var button = new JButton(new ImageIcon(module.resolve("img/ringo-drums.png"))); ? +++++++++++++++ + button.addActionListener(function(e) { setInterval(function() { if (n++ > 200) system.exit(); frame.setLocation(200 + random(), 200 + random()); }, 5); }); frame.add("Center", button); frame.add("South", new JLabel("Click Button for Visual Drumroll!")); frame.setSize(300, 300); frame.setLocation(200, 200); frame.setVisible(true); } function random() (Math.random() - 0.5) * 50; if (require.main == module) { main(); }
2
0.076923
1
1
6351317e59bb8087db452676fa58e8a9fe12df6a
assets/stylesheets/app.sass
assets/stylesheets/app.sass
@import 'bootstrap' #zonks .zonk padding-top: 20px .name padding-top: 10px padding-bottom: 20px #zonk_awards padding-top: 10px .award padding-bottom: 5px padding-top: 5px #footer padding-top: 20px padding-bottom: 20px
@import 'bootstrap' #zonks .zonk img border: 1px solid gold padding-top: 20px .name padding-top: 10px padding-bottom: 20px #zonk_awards padding-top: 10px .award img border: 1px solid gold padding-bottom: 5px padding-top: 5px #footer padding-top: 20px padding-bottom: 20px
Add a border around zonks
Add a border around zonks
Sass
mit
zimkies/zonks,zimkies/zonks
sass
## Code Before: @import 'bootstrap' #zonks .zonk padding-top: 20px .name padding-top: 10px padding-bottom: 20px #zonk_awards padding-top: 10px .award padding-bottom: 5px padding-top: 5px #footer padding-top: 20px padding-bottom: 20px ## Instruction: Add a border around zonks ## Code After: @import 'bootstrap' #zonks .zonk img border: 1px solid gold padding-top: 20px .name padding-top: 10px padding-bottom: 20px #zonk_awards padding-top: 10px .award img border: 1px solid gold padding-bottom: 5px padding-top: 5px #footer padding-top: 20px padding-bottom: 20px
@import 'bootstrap' #zonks .zonk + img + border: 1px solid gold padding-top: 20px .name padding-top: 10px padding-bottom: 20px #zonk_awards padding-top: 10px .award + img + border: 1px solid gold padding-bottom: 5px padding-top: 5px #footer padding-top: 20px padding-bottom: 20px
4
0.210526
4
0
4125c25bfaf12aeb90b2c3bb93cb42ddfa85ee2a
frontend/javascripts/components/Alert.js
frontend/javascripts/components/Alert.js
// @flow import React, { Component } from 'react' import type { Alert as AlertType } from '../types/application' import type { clearAlert } from '../types/actions' type Props = { alert: AlertType, clearAlert: clearAlert } export default class Alert extends Component { props: Props componentDidUpdate() { if (this.props.alert.messages.length == 0) { return } setTimeout(() => { this.props.clearAlert() }, 5000) } render() { if (this.props.alert.messages.length == 0) { return null } const messages = this.props.alert.messages.map((message, i) => { return (<div key={`message-${i + 1}`} className="Alert-message">{message}</div>) }) if (this.props.alert.type == null) { return null } return ( <div className={`Alert is-${this.props.alert.type}`}> <div className="Alert-messages">{messages}</div> </div> ) } }
// @flow import React, { Component } from 'react' import { lifecycle } from 'recompose' import type { Alert as AlertType } from '../types/application' import type { clearAlert } from '../types/actions' type Props = { alert: AlertType, clearAlert: clearAlert } const Alert = ({ alert, clearAlert }: Props) => { if (alert.messages.length == 0) { return null } const messages = alert.messages.map((message, i) => { return (<div key={`message-${i + 1}`} className="Alert-message">{message}</div>) }) if (alert.type == null) { return null } return ( <div className={`Alert is-${alert.type}`}> <div className="Alert-messages">{messages}</div> </div> ) } export default lifecycle({ componentDidUpdate() { if (this.props.alert.messages.length == 0) { return } setTimeout(() => { this.props.clearAlert() }, 5000) } })(Alert)
Fix Stateless functional components + HOC
Fix Stateless functional components + HOC
JavaScript
mit
f96q/kptboard,f96q/kptboard,f96q/kptboard,f96q/kptboard
javascript
## Code Before: // @flow import React, { Component } from 'react' import type { Alert as AlertType } from '../types/application' import type { clearAlert } from '../types/actions' type Props = { alert: AlertType, clearAlert: clearAlert } export default class Alert extends Component { props: Props componentDidUpdate() { if (this.props.alert.messages.length == 0) { return } setTimeout(() => { this.props.clearAlert() }, 5000) } render() { if (this.props.alert.messages.length == 0) { return null } const messages = this.props.alert.messages.map((message, i) => { return (<div key={`message-${i + 1}`} className="Alert-message">{message}</div>) }) if (this.props.alert.type == null) { return null } return ( <div className={`Alert is-${this.props.alert.type}`}> <div className="Alert-messages">{messages}</div> </div> ) } } ## Instruction: Fix Stateless functional components + HOC ## Code After: // @flow import React, { Component } from 'react' import { lifecycle } from 'recompose' import type { Alert as AlertType } from '../types/application' import type { clearAlert } from '../types/actions' type Props = { alert: AlertType, clearAlert: clearAlert } const Alert = ({ alert, clearAlert }: Props) => { if (alert.messages.length == 0) { return null } const messages = alert.messages.map((message, i) => { return (<div key={`message-${i + 1}`} className="Alert-message">{message}</div>) }) if (alert.type == null) { return null } return ( <div className={`Alert is-${alert.type}`}> <div className="Alert-messages">{messages}</div> </div> ) } export default lifecycle({ componentDidUpdate() { if (this.props.alert.messages.length == 0) { return } setTimeout(() => { this.props.clearAlert() }, 5000) } })(Alert)
// @flow import React, { Component } from 'react' + import { lifecycle } from 'recompose' import type { Alert as AlertType } from '../types/application' import type { clearAlert } from '../types/actions' type Props = { alert: AlertType, clearAlert: clearAlert } - export default class Alert extends Component { - props: Props + const Alert = ({ alert, clearAlert }: Props) => { + if (alert.messages.length == 0) { + return null + } + const messages = alert.messages.map((message, i) => { + return (<div key={`message-${i + 1}`} className="Alert-message">{message}</div>) + }) + if (alert.type == null) { + return null + } + return ( + <div className={`Alert is-${alert.type}`}> + <div className="Alert-messages">{messages}</div> + </div> + ) + } + export default lifecycle({ componentDidUpdate() { if (this.props.alert.messages.length == 0) { return } setTimeout(() => { this.props.clearAlert() }, 5000) } + })(Alert) - render() { - if (this.props.alert.messages.length == 0) { - return null - } - const messages = this.props.alert.messages.map((message, i) => { - return (<div key={`message-${i + 1}`} className="Alert-message">{message}</div>) - }) - if (this.props.alert.type == null) { - return null - } - return ( - <div className={`Alert is-${this.props.alert.type}`}> - <div className="Alert-messages">{messages}</div> - </div> - ) - } - }
38
0.95
19
19
f59be7630ce5d929caf4e305991e20d133f55926
app/views/application/_search_banner.html.haml
app/views/application/_search_banner.html.haml
.banner-search.banner .container .search-header =form_tag search_path, method: "get", class: "form-inline" do %h1.label-heading %small.pre-heading Find data and code you can use %label Search over = pluralize(floor_to_hundreds(Scraper.count), "scraper") .input-group.col-sm-12.col-md-9.col-lg-8 = hidden_field_tag :type, @type %input.form-control#query{required: "required", type: "search", maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/ .input-group-btn %button.btn.btn-primary{type: "submit"} Search - if @q.blank? %p.search-suggestions Try #{link_to "parliament", search_path(q: "parliament")}, #{ link_to "planning", search_path(q: "planning")} or #{ link_to "Ghana", search_path(q: "Ghana")}
.banner-search.banner .container .search-header =form_tag search_path, method: "get", class: "form-inline" do %h1.label-heading %small.pre-heading Find data and code you can use %label Search over = pluralize(floor_to_hundreds(Scraper.count), "scraper") .input-group.col-sm-12.col-md-9.col-lg-8 = hidden_field_tag :type, @type %input.form-control#query{required: "required", type: "search", maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/ .input-group-btn %button.btn.btn-primary{type: "submit"} Search - if @q.blank? %p.search-suggestions Try #{link_to "parliament", search_path(q: "parliament")}, #{ link_to "gov.uk", search_path(q: "gov.uk")} or #{ link_to "slovakia", search_path(q: "slovakia")}
Return country search with decent results and add url search
Return country search with decent results and add url search
Haml
agpl-3.0
openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph
haml
## Code Before: .banner-search.banner .container .search-header =form_tag search_path, method: "get", class: "form-inline" do %h1.label-heading %small.pre-heading Find data and code you can use %label Search over = pluralize(floor_to_hundreds(Scraper.count), "scraper") .input-group.col-sm-12.col-md-9.col-lg-8 = hidden_field_tag :type, @type %input.form-control#query{required: "required", type: "search", maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/ .input-group-btn %button.btn.btn-primary{type: "submit"} Search - if @q.blank? %p.search-suggestions Try #{link_to "parliament", search_path(q: "parliament")}, #{ link_to "planning", search_path(q: "planning")} or #{ link_to "Ghana", search_path(q: "Ghana")} ## Instruction: Return country search with decent results and add url search ## Code After: .banner-search.banner .container .search-header =form_tag search_path, method: "get", class: "form-inline" do %h1.label-heading %small.pre-heading Find data and code you can use %label Search over = pluralize(floor_to_hundreds(Scraper.count), "scraper") .input-group.col-sm-12.col-md-9.col-lg-8 = hidden_field_tag :type, @type %input.form-control#query{required: "required", type: "search", maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/ .input-group-btn %button.btn.btn-primary{type: "submit"} Search - if @q.blank? %p.search-suggestions Try #{link_to "parliament", search_path(q: "parliament")}, #{ link_to "gov.uk", search_path(q: "gov.uk")} or #{ link_to "slovakia", search_path(q: "slovakia")}
.banner-search.banner .container .search-header =form_tag search_path, method: "get", class: "form-inline" do %h1.label-heading %small.pre-heading Find data and code you can use %label Search over = pluralize(floor_to_hundreds(Scraper.count), "scraper") .input-group.col-sm-12.col-md-9.col-lg-8 = hidden_field_tag :type, @type %input.form-control#query{required: "required", type: "search", maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/ .input-group-btn %button.btn.btn-primary{type: "submit"} Search - if @q.blank? %p.search-suggestions Try #{link_to "parliament", search_path(q: "parliament")}, - #{ link_to "planning", search_path(q: "planning")} or ? ------- ------- + #{ link_to "gov.uk", search_path(q: "gov.uk")} or ? +++++ +++++ - #{ link_to "Ghana", search_path(q: "Ghana")} ? ^^ ^ ^^ ^ + #{ link_to "slovakia", search_path(q: "slovakia")} ? ^^^^ ^^ ^^^^ ^^
4
0.210526
2
2
dcf7f8430ef547f551187e4d6a822d01315889e9
.github/workflows/ubuntu-latest.yml
.github/workflows/ubuntu-latest.yml
name: Ubuntu/latest CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: set up environment run: | sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection libgirepository1.0-dev libglib2.0-dev ninja-build python3-setuptools python3-wheel sudo pip3 install meson==0.54.3 - name: configure the build run: meson _build . - name: build run: ninja -C _build - name: check run: meson test -C _build - name: dist run: meson dist -C _build
name: Ubuntu Build on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: set up environment run: | sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection gtk-doc-tools libgirepository1.0-dev libglib2.0-dev ninja-build python3-setuptools python3-wheel sudo pip3 install meson==0.54.3 - name: configure the build run: meson setup -Dgtk_doc=true --werror --fatal-meson-warnings _build - name: build run: meson compile -C _build - name: check run: meson test -C _build - name: docs run: ninja -C _build graphene-doc - name: dist run: meson dist -C _build
Add a job for building the API reference
ci: Add a job for building the API reference
YAML
mit
ebassi/graphene,ebassi/graphene
yaml
## Code Before: name: Ubuntu/latest CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: set up environment run: | sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection libgirepository1.0-dev libglib2.0-dev ninja-build python3-setuptools python3-wheel sudo pip3 install meson==0.54.3 - name: configure the build run: meson _build . - name: build run: ninja -C _build - name: check run: meson test -C _build - name: dist run: meson dist -C _build ## Instruction: ci: Add a job for building the API reference ## Code After: name: Ubuntu Build on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: set up environment run: | sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection gtk-doc-tools libgirepository1.0-dev libglib2.0-dev ninja-build python3-setuptools python3-wheel sudo pip3 install meson==0.54.3 - name: configure the build run: meson setup -Dgtk_doc=true --werror --fatal-meson-warnings _build - name: build run: meson compile -C _build - name: check run: meson test -C _build - name: docs run: ninja -C _build graphene-doc - name: dist run: meson dist -C _build
- name: Ubuntu/latest CI + name: Ubuntu Build on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: set up environment run: | - sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection libgirepository1.0-dev libglib2.0-dev ninja-build python3-setuptools python3-wheel + sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection gtk-doc-tools libgirepository1.0-dev libglib2.0-dev ninja-build python3-setuptools python3-wheel ? ++++++++++++++ sudo pip3 install meson==0.54.3 + - name: configure the build - run: meson _build . + run: meson setup -Dgtk_doc=true --werror --fatal-meson-warnings _build + - name: build - run: ninja -C _build ? ^^^ + run: meson compile -C _build ? ++++ +++++ ^^ + - name: check run: meson test -C _build + + - name: docs + run: ninja -C _build graphene-doc + - name: dist run: meson dist -C _build
15
0.555556
11
4
8f498053041a216f04373380822016c90efc309b
_TEMPLATE/applications/-Application-.js
_TEMPLATE/applications/-Application-.js
var controller; $(function(){ var appName = "[ENTER YOUR APP NAME HERE]", app = $.ku4webApp.app(); controller = $.ku4webApp.controllers[appName](app) $.ku4webApp.views[appName](app); /*======================================================*/ //[Other desired views or initialization scripting HERE] /*======================================================*/ });
var controller; $(function(){ var appName = "[ENTER YOUR APP NAME HERE]", app = $.ku4webApp.app().throwErrors(); controller = $.ku4webApp.controllers[appName](app) $.ku4webApp.views[appName](app); /*======================================================*/ //[Other desired views or initialization scripting HERE] /*======================================================*/ });
Set app to throwErrors on by default
Set app to throwErrors on by default
JavaScript
mit
kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp
javascript
## Code Before: var controller; $(function(){ var appName = "[ENTER YOUR APP NAME HERE]", app = $.ku4webApp.app(); controller = $.ku4webApp.controllers[appName](app) $.ku4webApp.views[appName](app); /*======================================================*/ //[Other desired views or initialization scripting HERE] /*======================================================*/ }); ## Instruction: Set app to throwErrors on by default ## Code After: var controller; $(function(){ var appName = "[ENTER YOUR APP NAME HERE]", app = $.ku4webApp.app().throwErrors(); controller = $.ku4webApp.controllers[appName](app) $.ku4webApp.views[appName](app); /*======================================================*/ //[Other desired views or initialization scripting HERE] /*======================================================*/ });
var controller; $(function(){ var appName = "[ENTER YOUR APP NAME HERE]", - app = $.ku4webApp.app(); + app = $.ku4webApp.app().throwErrors(); ? ++++++++++++++ controller = $.ku4webApp.controllers[appName](app) $.ku4webApp.views[appName](app); /*======================================================*/ //[Other desired views or initialization scripting HERE] /*======================================================*/ });
2
0.142857
1
1
f3b66a24761b4e121ab4374496cf7505b1393ce4
payments/static/payments/js/wallet.js
payments/static/payments/js/wallet.js
// Success handler var successHandler = function(status){ if (window.console != undefined) { console.log("Purchase completed successfully: ", status); } window.location = $('input#google-wallet-id').data('success-url'); }; // Failure handler var failureHandler = function(status){ if (window.console != undefined) { console.log("Purchase failed ", status); } window.location = $('input#google-wallet-id').data('failure-url'); }; function purchase() { var generated_jwt = $('input#google-wallet-id').data('jwt'); google.payments.inapp.buy({ 'jwt' : generated_jwt, 'success' : successHandler, 'failure' : failureHandler }); return false } jQuery(document).ready(function() { purchase(); });
(function() { // Success handler var successHandler = function(status){ if (window.console != undefined) { console.log("Purchase completed successfully: ", status); } window.location = document.getElementById('google-wallet-id').getAttribute('data-success-url'); }; // Failure handler var failureHandler = function(status){ if (window.console != undefined) { console.log("Purchase failed ", status); } window.location = document.getElementById('google-wallet-id').getAttribute('data-failure-url'); }; function purchase() { var generated_jwt = document.getElementById('google-wallet-id').getAttribute('data-jwt'); google.payments.inapp.buy({ 'jwt' : generated_jwt, 'success' : successHandler, 'failure' : failureHandler }); return false } $ = this.jQuery || this.Zepto || this.ender || this.$; if($) { $(purchase) } else { window.onload = purchase } })()
Make widget independent from jquery
Make widget independent from jquery
JavaScript
bsd-3-clause
bogdal/django-payments,derenio/django-payments,bogdal/django-payments,artursmet/django-payments,polonat/django-payments,imakin/pysar-payments,polonat/django-payments,dashmug/django-payments,dashmug/django-payments,dashmug/django-payments,imakin/pysar-payments,artursmet/django-payments,derenio/django-payments,derenio/django-payments,polonat/django-payments,illing2005/django-payments,illing2005/django-payments,imakin/pysar-payments,artursmet/django-payments,illing2005/django-payments
javascript
## Code Before: // Success handler var successHandler = function(status){ if (window.console != undefined) { console.log("Purchase completed successfully: ", status); } window.location = $('input#google-wallet-id').data('success-url'); }; // Failure handler var failureHandler = function(status){ if (window.console != undefined) { console.log("Purchase failed ", status); } window.location = $('input#google-wallet-id').data('failure-url'); }; function purchase() { var generated_jwt = $('input#google-wallet-id').data('jwt'); google.payments.inapp.buy({ 'jwt' : generated_jwt, 'success' : successHandler, 'failure' : failureHandler }); return false } jQuery(document).ready(function() { purchase(); }); ## Instruction: Make widget independent from jquery ## Code After: (function() { // Success handler var successHandler = function(status){ if (window.console != undefined) { console.log("Purchase completed successfully: ", status); } window.location = document.getElementById('google-wallet-id').getAttribute('data-success-url'); }; // Failure handler var failureHandler = function(status){ if (window.console != undefined) { console.log("Purchase failed ", status); } window.location = document.getElementById('google-wallet-id').getAttribute('data-failure-url'); }; function purchase() { var generated_jwt = document.getElementById('google-wallet-id').getAttribute('data-jwt'); google.payments.inapp.buy({ 'jwt' : generated_jwt, 'success' : successHandler, 'failure' : failureHandler }); return false } $ = this.jQuery || this.Zepto || this.ender || this.$; if($) { $(purchase) } else { window.onload = purchase } })()
+ (function() { - // Success handler + // Success handler ? ++++ - var successHandler = function(status){ + var successHandler = function(status){ ? ++++ - if (window.console != undefined) { + if (window.console != undefined) { ? ++++ - console.log("Purchase completed successfully: ", status); + console.log("Purchase completed successfully: ", status); ? ++++ + } + window.location = document.getElementById('google-wallet-id').getAttribute('data-success-url'); + }; + + // Failure handler + var failureHandler = function(status){ + if (window.console != undefined) { + console.log("Purchase failed ", status); + } + window.location = document.getElementById('google-wallet-id').getAttribute('data-failure-url'); + }; + + function purchase() { + var generated_jwt = document.getElementById('google-wallet-id').getAttribute('data-jwt'); + + google.payments.inapp.buy({ + 'jwt' : generated_jwt, + 'success' : successHandler, + 'failure' : failureHandler + }); + return false } - window.location = $('input#google-wallet-id').data('success-url'); - }; - // Failure handler - var failureHandler = function(status){ - if (window.console != undefined) { - console.log("Purchase failed ", status); + $ = this.jQuery || this.Zepto || this.ender || this.$; + + if($) { + $(purchase) + } else { + window.onload = purchase } + })() - window.location = $('input#google-wallet-id').data('failure-url'); - }; - - function purchase() { - var generated_jwt = $('input#google-wallet-id').data('jwt'); - - google.payments.inapp.buy({ - 'jwt' : generated_jwt, - 'success' : successHandler, - 'failure' : failureHandler - }); - return false - } - - jQuery(document).ready(function() { - purchase(); - });
60
1.935484
33
27
eb9200dde855ae1c181a222e935c72035b3913a7
resources/chef-repo/roles/db_setup.json
resources/chef-repo/roles/db_setup.json
{ "json_class":"Chef::Role", "run_list": [ "recipe[mysql::server]" ] }
{ "json_class":"Chef::Role", "run_list": [ "recipe[mysql::server]" ], "default_attributes":{ "mysql":{ "version":"5.6" } } }
Add db_setuo.json for mysql version.
Add db_setuo.json for mysql version.
JSON
apache-2.0
cloudconductor-patterns/rails_pattern,cloudconductor-patterns/rails_pattern,cloudconductor-patterns/rails_pattern,cloudconductor-patterns/rails_pattern
json
## Code Before: { "json_class":"Chef::Role", "run_list": [ "recipe[mysql::server]" ] } ## Instruction: Add db_setuo.json for mysql version. ## Code After: { "json_class":"Chef::Role", "run_list": [ "recipe[mysql::server]" ], "default_attributes":{ "mysql":{ "version":"5.6" } } }
{ "json_class":"Chef::Role", "run_list": [ "recipe[mysql::server]" - ] + ], ? + + "default_attributes":{ + "mysql":{ + "version":"5.6" + } + } }
7
1
6
1
0f27e6175c44853eb519417e933a78b59d5c1ccf
app/views/excursions/_excursion.html.erb
app/views/excursions/_excursion.html.erb
<%= div_for excursion, :class => 'content_size' do %> <ul class="thumbnails"> <li class="span3"> <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %> <div class='number_pages'><%= excursion.slide_count %></div> </li> <li class="span9"> <div class="title"> <h4><%= excursion.title %></h4> </div> <p><%= simple_format auto_link(excursion.description) %></p> <p><%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %></p> <div class="verb_like" id="like_<%= dom_id(excursion.activities.first) %>"><%= link_like(excursion.activities.first)%></div> </li> </ul> <% end %>
<%= div_for excursion, :class => 'content_size' do %> <ul class="thumbnails"> <li class="span3"> <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %> <div class='number_pages'><%= excursion.slide_count %></div> </li> <li class="span9"> <div class="title"> <h4><%= excursion.title %></h4> </div> <p><%= simple_format auto_link(excursion.description) %></p> <p><%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %></p> </li> </ul> <% end %>
Remove duplicate star for excursion
Remove duplicate star for excursion
HTML+ERB
agpl-3.0
rogervaas/vish,ging/vish_orange,rogervaas/vish,agordillo/vish,suec78/vish_storyrobin,ging/vish,nathanV38/vishTst,ging/vish_orange,nathanV38/vishTst,ging/vish,agordillo/vish,ging/vish_orange,suec78/vish_storyrobin,ging/vish,suec78/vish_storyrobin,agordillo/vish,ging/vish_orange,ging/vish,agordillo/vish,ging/vish,rogervaas/vish,rogervaas/vish,ging/vish_orange,suec78/vish_storyrobin
html+erb
## Code Before: <%= div_for excursion, :class => 'content_size' do %> <ul class="thumbnails"> <li class="span3"> <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %> <div class='number_pages'><%= excursion.slide_count %></div> </li> <li class="span9"> <div class="title"> <h4><%= excursion.title %></h4> </div> <p><%= simple_format auto_link(excursion.description) %></p> <p><%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %></p> <div class="verb_like" id="like_<%= dom_id(excursion.activities.first) %>"><%= link_like(excursion.activities.first)%></div> </li> </ul> <% end %> ## Instruction: Remove duplicate star for excursion ## Code After: <%= div_for excursion, :class => 'content_size' do %> <ul class="thumbnails"> <li class="span3"> <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %> <div class='number_pages'><%= excursion.slide_count %></div> </li> <li class="span9"> <div class="title"> <h4><%= excursion.title %></h4> </div> <p><%= simple_format auto_link(excursion.description) %></p> <p><%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %></p> </li> </ul> <% end %>
<%= div_for excursion, :class => 'content_size' do %> <ul class="thumbnails"> <li class="span3"> <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %> <div class='number_pages'><%= excursion.slide_count %></div> </li> <li class="span9"> <div class="title"> <h4><%= excursion.title %></h4> </div> <p><%= simple_format auto_link(excursion.description) %></p> <p><%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %></p> - <div class="verb_like" id="like_<%= dom_id(excursion.activities.first) %>"><%= link_like(excursion.activities.first)%></div> </li> </ul> <% end %>
1
0.055556
0
1
5ec3bc8e5b799d687b9414b62c16f2916a9ee169
lib/zohax/crm.rb
lib/zohax/crm.rb
module Zohax require 'httparty' require 'json' require 'xmlsimple' class Crm include HTTParty def initialize(username, password, token = nil) @api = Zohax::Api.new(username, password, token) end def find_leads(queryParameters) @api.call('Leads', 'getRecords', queryParameters, :get) end def add_lead(data) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'insertRecords', {:xmlData => xmlData, :newFormat => 1}, :post) record['Id'] end def update_lead(data, record_id) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'updateRecords', {:xmlData => xmlData, :newFormat => 1, :id => record_id}, :post) end private def parse_data(data, entry) fl = data.map {|e| Hash['val', e[0], 'content', e[1]]} row = Hash['no', '1', 'FL', fl] data = Hash['row', row] XmlSimple.xml_out(data, :RootName => entry) end end end
module Zohax require 'httparty' require 'json' require 'xmlsimple' class Crm include HTTParty def initialize(username, password, token = nil) @api = Zohax::Api.new(username, password, token) end def find_leads(queryParameters) @api.call('Leads', 'getRecords', queryParameters, :get) end def search_leads(searchConditions) @api.call('Leads', 'getSearchRecords', searchConditions, :get) end def add_lead(data) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'insertRecords', {:xmlData => xmlData, :newFormat => 1}, :post) record['Id'] end def update_lead(data, record_id) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'updateRecords', {:xmlData => xmlData, :newFormat => 1, :id => record_id}, :post) end private def parse_data(data, entry) fl = data.map {|e| Hash['val', e[0], 'content', e[1]]} row = Hash['no', '1', 'FL', fl] data = Hash['row', row] XmlSimple.xml_out(data, :RootName => entry) end end end
Add the ability to search leads.
Add the ability to search leads.
Ruby
mit
domness/zohax
ruby
## Code Before: module Zohax require 'httparty' require 'json' require 'xmlsimple' class Crm include HTTParty def initialize(username, password, token = nil) @api = Zohax::Api.new(username, password, token) end def find_leads(queryParameters) @api.call('Leads', 'getRecords', queryParameters, :get) end def add_lead(data) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'insertRecords', {:xmlData => xmlData, :newFormat => 1}, :post) record['Id'] end def update_lead(data, record_id) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'updateRecords', {:xmlData => xmlData, :newFormat => 1, :id => record_id}, :post) end private def parse_data(data, entry) fl = data.map {|e| Hash['val', e[0], 'content', e[1]]} row = Hash['no', '1', 'FL', fl] data = Hash['row', row] XmlSimple.xml_out(data, :RootName => entry) end end end ## Instruction: Add the ability to search leads. ## Code After: module Zohax require 'httparty' require 'json' require 'xmlsimple' class Crm include HTTParty def initialize(username, password, token = nil) @api = Zohax::Api.new(username, password, token) end def find_leads(queryParameters) @api.call('Leads', 'getRecords', queryParameters, :get) end def search_leads(searchConditions) @api.call('Leads', 'getSearchRecords', searchConditions, :get) end def add_lead(data) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'insertRecords', {:xmlData => xmlData, :newFormat => 1}, :post) record['Id'] end def update_lead(data, record_id) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'updateRecords', {:xmlData => xmlData, :newFormat => 1, :id => record_id}, :post) end private def parse_data(data, entry) fl = data.map {|e| Hash['val', e[0], 'content', e[1]]} row = Hash['no', '1', 'FL', fl] data = Hash['row', row] XmlSimple.xml_out(data, :RootName => entry) end end end
module Zohax require 'httparty' require 'json' require 'xmlsimple' class Crm include HTTParty def initialize(username, password, token = nil) @api = Zohax::Api.new(username, password, token) end def find_leads(queryParameters) @api.call('Leads', 'getRecords', queryParameters, :get) + end + + def search_leads(searchConditions) + @api.call('Leads', 'getSearchRecords', searchConditions, :get) end def add_lead(data) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'insertRecords', {:xmlData => xmlData, :newFormat => 1}, :post) record['Id'] end def update_lead(data, record_id) xmlData = parse_data(data, 'Leads') record = @api.call('Leads', 'updateRecords', {:xmlData => xmlData, :newFormat => 1, :id => record_id}, :post) end private def parse_data(data, entry) fl = data.map {|e| Hash['val', e[0], 'content', e[1]]} row = Hash['no', '1', 'FL', fl] data = Hash['row', row] XmlSimple.xml_out(data, :RootName => entry) end end end
4
0.105263
4
0
58f0f874e23a5800eb23bcce4226c53310ceb103
modules/people/README.md
modules/people/README.md
Per-user manifests live in `modules/people/manifests/$login.pp`, where `$login` is a GitHub login. A simple user manifest example: ```puppet class people::jbarnette { include emacs $home = '/Users/jbarnette' $my = "${home}/my" $dotfiles = "${my}/dotfiles" repository { $dotfiles: source => 'jbarnette/dotfiles', require => File[$my] } } ```
Per-user manifests live in `modules/people/manifests/$login.pp`, where `$login` is a GitHub login. A simple user manifest example: ```puppet class people::jbarnette { include emacs # requires emacs module in Puppetfile include sparrow # requires sparrow module in Puppetfile $home = '/Users/jbarnette' $my = "${home}/my" $dotfiles = "${my}/dotfiles" repository { $dotfiles: source => 'jbarnette/dotfiles', require => File[$my] } } ```
Update docs a bit for people example
Update docs a bit for people example
Markdown
mit
ebruning/boxen,juherpin/myboxen,jtligon/voboxen,smh/my-boxen,ArpitJalan/boxen,jonmosco/boxen-test,juananruiz/boxen,pedro-mass/boxentest,billyvg/my-boxen,mkilpatrick/boxen_test,weiliv/boxen,morgante/boxen-saturn,urimikhli/myboxen,alvinlai/boxen,caciasmith/my-boxen,ggoodyer/boxen,kayleg/my-boxen,vindir/vindy-boxen,all9lives/lv-boxen,alf/boxen,cmstarks/boxen,ONSdigital/ons-boxen,hgsk/my-boxen,rebootd/myboxen,chollier/my-boxen,AVVS/boxen,ozw-sei/boxen,newta/my-boxen,atayarani/myboxen,christian-blades-cb/blades-boxen,jwalsh/our-boxen,fbernitt/our-boxen,andschwa/boxen,weyert/boxen,ykt/boxen-silverbox,yamayo/boxen,johnsoga/my_boxen,vincentpeyrouse/my-boxen,mickengland/boxen,gaohao/our-boxen,awaxa/awaxa-boxen,flannon/boxen-dyson,StEdwardsTeam/our-boxen,joeybaker/boxen-personal,csaura/my_boxen,tsphethean/my-boxen,traethethird/boxen-python,distributedlife/boxen,dgiunta/boxen,ChrisWeiss/our-boxen,julienlavergne/my-boxen,cmpowell/boxen,mozilla/ambient-boxen,xenolf/real-boxen,cerodriguezl/my-boxen,rprimus/my-boxen,kseta/my-boxen,noriaki/my-boxen,cqwense/our-boxen,hamzarazzak/test_box,tomiacannondale/our-boxen,spacepants/my-boxen,ykt/boxen-silverbox,Royce/my-boxen,crizCraig/boxen,padi/my-boxen,ryanaslett/mixologic-boxen,cqwense/our-boxen,waisbrot/boxen,lattwood/boxen,pagrawl3/boxen,akiellor/our-boxen,salekseev/boxen,novakps/our-boxen,sorenmat/our-boxen,john-griffin/boxen,dgiunta/boxen,scheibinger/my-boxen,patrikbreitenmoser/my_boxen,mhan/my-boxen,raffone/boxen,kitatuba/my-boxen,Maarc/our-boxen,filaraujo/our-boxen,springaki/boxen,weih/boxen,cutmail/my-boxen,cbi/cbi-boxen,gaahrdner/my-boxen,morganloehr/setup,tischler/tims-boxen,Tr4pSt3R/boxen,devboy/our-boxen,takashi/my-boxen,bmihelac/our-boxen,ap1kenobi/my-boxen,pattichan/boxen,glarizza/my-boxen,niallmccullagh/our-boxen,allanma/BBoxen,artemdinaburg/boxentest,moveline/our-boxen,gl0wa/my-boxen,heflinao/boxen,railslove/our-boxen,tcarmean/my-boxen,lorn/lorn-boxen,tdm00/my-boxen,mgriffin/my-boxen,RossKinsella/our-boxen,garetjax-setup/my-boxen,kdimiche/boxen,crpdm/our-boxen,leonardoobaptistaa/my-boxen,makersquare/student-boxen,patrickkelso/boxen-test,digitaljamfactory/boxen,spacepants/my-boxen,rperello/boxenized,namesco/our-boxen,deone/boxen,kskotetsu/my-boxen,dubilla/VTS-Boxen,dansmithy/danny-boxen,phathocker/loxen-phathocker,JamshedVesuna/our-boxen,jtligon/voboxen,zovafit/our-boxen,ryanycoleman/my-boxen,wideopenspaces/jake-boxen,SBoudrias/my-boxen,k-nishijima/our-boxen,amerdidit/my-boxen,woowee/my-boxen,jacksingleton/our-boxen,jtjurick/DEPRECATED--boxen,yamayo/boxen,tatsuma/boxen,yayao/my-boxen,blamarvt/boxen,etaroza/our-boxen,ta9o/our-boxen,heruan/boxen,xebu/boxen-minimal,scobal/boxen,ta9o/our-boxen,wbs75/my-boxen,Couto/my-boxen,jkemsley/boxen-def,terbolous/our-boxen,tcarmean/yosemite-boxen,jde/boxen,chrisklaiber/khan-boxen,kabostime/my-boxen,satiar/arpita-boxen,mdepuy/boxen,thomaswelton/boxen,kieranja/mac,sfcabdriver/sfcabdriver-boxen,flyingbuddha/boxen,jiamat/dragonbox,cdenneen/our-boxen,delba/boxen,anuforok/HQ,springaki/boxen,moredip/my-boxen,mingderwang/our-boxen,robjacoby/my-boxen,blangenfeld/boxen,cleblanc87/boxen,TechEnterprises/our-boxen,theand/our-boxen,albac/my-boxen,psi/my-boxen,rtircher/my-boxen,mdavezac/our-boxen,thejonanshow/my-boxen,jeff-french/my-boxen,chrissav/2u_boxen,gravityrail/our-boxen,huyennh/boxen,apackeer/my-boxen-old,goncalopereira/boxen,tdm00/my-boxen,ysoussov/boxenz,heptat/boxen,mrbrett/bretts-boxen,flyingbuddha/boxen,imdhmd/my-boxen,namesco/our-boxen,KazukiOhashi/my-boxen,jonnangle/my-boxen,josemvidal/my-boxen,raymaung/ray-boxen,josemarluedke/my-boxen,levithomason/my-boxen,kevronthread/boxen-test,mikecardii/nerdboxen,dyoung522/my-boxen,ryanycoleman/my-boxen,jamsilver/our-boxen,appcues/our-boxen,smozely/boxen,jiamat/dragonbox,inokappa/myboxen,staxmanade/boxen-vertigo,ralphreid/boxen,jeffreybaird/jeffs-boxen,rob-murray/my-osx,shao1555/my-boxen,portaltechdevenv/tbsdevenvtest,netdev/our-boxen,nrako/my-boxen,oddhill/oddboxen,hjuutilainen/myboxen,panderp/my-boxen,josharian/our-boxen,ronco/my-tomputor,markkendall/boxen,dspeele/boxen,dolhana/my-boxen,gyllen/boxen,dannyviti/our-boxen,jiananlu/our-boxen,redbarron23/myboxen,hirocaster/boxen,kevinprince/our-boxen,manolin/manolin-boxen,rvora/rvora-boxen,lsylvester/boxen,jpogran/puppetlabs-boxen,jamesperet/my-boxen,baek-jinoo/my-boxen,alf/boxen,gdks/our-boxen,logicminds/mybox,scottgearyau/boxen,benwtr/our-boxen,nathankot/our-boxen,potix2/my-boxen,nicolasbrechet/our-boxen,bayster/boxen,rudazhan/my-boxen,0xabad1deaf/boxen,noahrc/boxen,coreone/tex-boxen,dmccown/boxen,anicet/boxen,bentrevor/my-boxen,lpmulligan/lpm-boxen,christopher-b/boxen,donmullen/myboxen,mrchrisadams/mrchrisadamsboxen,jorgemancheno/boxen,RossKinsella/our-boxen,XiaoYy/boxen,codekipple/my-boxen,kieran-bamforth/our-boxen,flannon/dh-boxen,aestrea/aestrea-boxen,molst/our-boxen,gravit/boxen,jonnangle/my-boxen,tanihito/my-boxen,pathable/pathable-boxen,shaunoconnor/my-boxen,leanmoves/boxen,AnneTheAgile/AnneTheAgile-boxen,dangig/a1-boxen,conatus/boxen,hackers-jp/our-boxen,macasek/my_boxen,featherweightlabs/our-boxen,FrancisVarga/dev-boxen,weareinstrumental/boxen,halyard/halyard,aibooooo/boxen,appcues/our-boxen,libk3n/my-boxen,tgarrier/boxen,Mizune/boxen,blacktorn/my-boxen,acarl005/our-boxen,alserik/a-boxen,rudymccomb/my-boxen17,fefranca/boxen,samant/boxen,katryo/boxen_katryo,openfcci/our-boxen,ryan-robeson/osx-workstation,ustun/boxen,drmaruyama/my-boxen,jniesen/my-boxen,yamayo/boxen,thejonanshow/my-boxen,mruser/boxen,zovafit/our-boxen,domingusj/our-boxen,FrancisVarga/dev-boxen,iowillhoit/boxen,mmickan/our-boxen,phase2/our-confroom-boxen,chollier/my-boxen,CaseyLeask/my-boxen,tbueno/my-boxen,MAECProject/maec-boxen,chinafanghao/forBoxen,dbld-org/our-boxen,apotact/boxen,morganloehr/setup,moredip/my-boxen,huit/cloudeng-boxen,tarVolcano/my-boxen,friederikewild/boxen,dyoung522/my-boxen,ebruning/boxen,burin/whee-boxen,tamlyn/boxen,azumafuji/boxen,josemvidal/my-boxen,Nanshan/Nanshan-boxen,clburlison/my-boxen,garycrawford/my-boxen,mediasuitenz/our-boxen-xcode5.1,adamchandra/my-boxen,seancallanan/my-boxen,singuerinc/singuerinc-boxen,hussfelt/my-boxen,Lavoaster/our-boxen,abuxton/our-boxen,mongorian-chop/boxen,cbrock/my-boxen,adasescu/asl-boxen,crpeck/boxen,spuder/spuder-boxen,filaraujo/our-boxen,erivello/my-boxen,hydradevelopment/our-boxen,judytuna/boxen-judy,jedcn/mac-config,rperello/boxenized,mainyaa/boxen,bazbremner/our-boxen,lattwood/boxen,philipsdoctor/try-boxen,quintel/boxen,enriqueruiz/ninja-boxen,mlevitt/boxen,seanhandley/my_boxen,fbernitt/our-boxen,jtao826/mscp-boxen,mztaylor/our_boxen,han/hana-boxen,rozza/my-boxen,felixcohen/my-boxen,marcinkwiatkowski/ios-build-boxen,josharian/our-boxen,PKaung/boxen,jasonamyers/my-boxen,cmckni3/my-boxen,kayleg/my-boxen,bdossantos/my-boxen,scottgearyau/boxen,ktec/boxen-laptop,psi/my-boxen,puppetlabs/eduteam-boxen,jcarlson/cdx-boxen,bryfox/foxen-boxen,dstack4273/MyBoxenBootstrap,dannydover/boxen-dover,jldbasa/boxen,clburlison/my-boxen,cubicmushroom/our-boxen,mcrumm/my-boxen,amitmula/boxen-test,empty23/myboxen,ofl/my-boxen,mattgoldspink/personal-boxen,chrisklaiber/khan-boxen,devpg/my-boxen,ONSdigital/ons-boxen,amerdidit/my-boxen,leehanel/my_boxen,tcarmean/my-boxen,middle8media/myboxen,billyvg/my-boxen,anantkpal/our-boxen,href/boxen,davidcunningham/my-boxen,jwalsh/jwalsh-boxen,puttiz/bird-boxen,otternq/our-boxen,gabrielalmeida/my-boxen,maxdeviant/boxen,mmrobins/my-boxen,pathable/pathable-boxen,ta9o/our-boxen,changtc8/changtc8-boxen,jamielennox1/boxen,tetsuo6666/tetsuo-boxen,jypandjio/my-boxen,wbs75/myboxen_yosemite,Tombar/our-boxen,Tombar/our-boxen,hkaju/boxen,dotfold/dotboxen,dannydover/boxen-dover,cmstarks/boxen,thesmart/UltimateChart-Boxen,evalphobia/my-boxen,wesscho/boxen,robbiegill/a-boxen,edk/boxen-test,stephenyeargin/boxen,ngalchonkova/lohika,enriqueruiz/ninja-boxen,tylerbeck/my-boxen,discoverydev/my-boxen,sreid/my-boxen,shaunoconnor/my-boxen,zywy/boxen,jamielennox1/boxen,hkrishna/boxen,barm4ley/crash_analyzer_boxen,sfcabdriver/sfcabdriver-boxen,fasrc/boxen,jonkessler/boxen,NoUseFreak/our-boxen,jcvanderwal/boxen,noriaki/my-boxen,rolfvandekrol/my-boxen,trq/my-boxen,gaishimo/my-boxen,smozely/our-boxen,crpdm/our-boxen,jamesvulling/my-boxen,bauricio/my-boxen,moriarty/my-boxen,stereobooster/my-boxen,Jun-Chang/my-boxen,erickreutz/our-boxen,jamesvulling/my-boxen,anuforok/HQ,italoag/boxen,losthyena/my-boxen,brianluby/boxen,apackeer/my-boxen-old,ErikEvenson/boxen,wkimeria/boxen_research,sveinung/my-boxen,snieto/myboxen,tatsuma/boxen,blamattina/my-boxen,kthukral/my-boxen,allanma/BBoxen,andrewdlong/boxen,rafaelfelini/my-boxen,avihut/boxen,davidmyers9000/my-boxen,raymaung/ray-boxen,jamielennox1/boxen,TaylorMonacelli/our-boxen,hkaju/boxen,ralphreid/my_boxen,bentrevor/my-boxen,fluentglobe/our-boxen,marcinkwiatkowski/ios-build-boxen,msuess/my-boxen,rprimus/my-boxen,geapi/boxen,rob-murray/my-osx,bentsou-com/ben-boxen,JF0h/boxen2,sigriston/my-boxen,jhonathas/boxen,flyingpig16/boxen,MrBri/a-go-at-boxen,skothavale/workboxen,kizard09/my-boxen,dubilla/VTS-Boxen,cloudnautique/home-boxen,winklercoop/boxen,Berico-Technologies/bt-boxen,bradwright/my-boxen,agilecreativity/boxen-2015,greatjam/boxenbase,taylorzane/adelyte-boxen,pfeff/my-boxen,bluesalt/my-boxen,joseluis2g/my-boxen,singuerinc/singuerinc-boxen,garethr/my-boxen,vaddirajesh/boxen,carthik/our-boxen,terbolous/our-boxen,kchygoe/my-boxen,tobyhede/my-boxen,makersquare/student-boxen,bkreider/boxen,andschwa/boxen,hjfbynara/hjf-boxen,trq/my-boxen,stephenyeargin/boxen,cframe/my-boxen,mavant/our-boxen,plainfingers/adfiboxen,bwl/bwl-boxen,bkreider/boxen,vesan/boxen,lenciel/my-box,elbuo8/boxen,billyvg/my-boxen,donmullen/myboxen,threetreeslight/my-boxen,thejonanshow/my-boxen,smozely/our-boxen,ErikEvenson/boxen,mirajsanghvi/boxen_tidepool,padwasabimasala/my-boxen,AntiTyping/boxen-workstation,gl0wa/my-boxen,JanGorman/my-boxen,jpamaya/myboxen,kidylee/our-boxen,jasonleibowitz/tigerspike-boxen,stefanfoulis/divio-boxen,jbecker42/boxen,ckesurf/patch-boxen,chai/boxen,kyosuke/my-boxen,jingweno/owen-boxen,brettswift/bs_boxen,rafaelportela/my-boxen,charleshbaker/chb-boxen,zachseifts/boxen,bjarkehs/my-boxen,dyoung522/my-boxen,Ditofry/dito-boxen,pizzaops/drunken-tribble,chrisng/boxen,hmatsuda/my-boxen,middle8media/myboxen,jfx41/voraa,mefellows/my-boxen,mediba-Kitada/mdev3g-boxen,weih/boxen,GrandSlam/my-boxen,darvin/apportable-boxen,dstack27/MyBoxenBootstrap,faizhasim/our-boxen,braitom/my-boxen,jeffreybaird/my-boxen,mavant/our-boxen,andrewhao/our-boxen,weih/boxen,rancher/boxen,ArpitJalan/boxen,Ceasar/my-boxen,hiroooo/boxen,pixeldetective/myboxen,csaura/my_boxen,carthik/our-boxen,kcparashar/boxen,kevcolwell/Boxen,villamor/villamor-boxen,jgrau/default-boxen,panderp/boxen,rvora/rvora-boxen,adaptivelab/our-boxen,shiftit/our-boxen,greatjam/boxenbase,TinyDragonApps/boxen,vinhnx/my-boxen,adamchandra/my-boxen,Glipho/boxen,rusty0606/my-boxen,anicet/boxen,coreone/tex-boxen,indika/boxen,Jun-Chang/my-boxen,plyfe/our-boxen,geekles/my-boxen,kevintfly/boxen_test,milan/our-boxen,jp-a/boxen,antigremlin/my-boxen,jcfigueiredo/boxen,girishpandit88/boxen,weyert/our-boxen,elovelan/our-boxen,zooland/our-boxen,joelhooks/my-boxen,elsom25/secret-dubstep,bgerstle/my-boxen,ItGumby/boxen,JanGorman/my-boxen,buritica/our-boxen,garetjax-setup/my-boxen,caciasmith/my-boxen,chris-horder/boxen,josharian/our-boxen,nonsense/my-boxen,Nanshan/Nanshan-boxen,judytuna/boxen-judy,loregood/boxen,albertofem/boxen,brianluby/boxen,reon7902/boxen,Yeriwyn/my-boxen,bartvanremortele/my-boxen,kcmartin/our-boxen,gravit/boxen,ItGumby/boxen,zjjw/jjbox,gsamokovarov/my-boxen,yuma-iwasaki/my-boxen,scottstanfield/boxen,hernandezgustavo/boxenTest,nik/my-boxen,eliperkins/my-boxen,erivello/my-boxen,siddhuwarrier/my-boxen,kenmazaika/firehose-boxen,WeAreMiles/myBoxen,DylanSchell/boxen,padwasabimasala/my-boxen,hk41/my-boxen,lukwam/boxen,meatherly/my-boxen,atomaka/my-boxen,junior-ales/oh-my-mac,girishpandit88/boxen,jtjurick/boxen-custom,trvrplk/my-boxen,chai/boxen,designbyraychou/boxen,klloydh/dynamo-boxen,msaunby/our-boxen,grahambeedie/my-boxen,juliogarciag/boxen-box,vindir/vindy-boxen,alexfish/boxen,jonatanmendozaboxen/platformboxen,kakuda/my-boxen,BrandonCummings/BoxenRepo,indika/boxen,decobisu/my-boxen,Americastestkitchen/our-boxen,jcarlson/cdx-boxen,barkingiguana/our-boxen,gsamokovarov/my-boxen,wkimeria/boxen_research,raffone/boxen,arron-green/my-boxen,DanLindeman/boxen,xcompass/our-boxen,zakuni/my-boxen,marcovanest/boxen,nickb-minted/boxen,natewalck/my-boxen_old,calorie/my-boxen,domingusj/our-boxen,alexmuller/personal-boxen,jandoubek/boxen,rujiali/ibis,PKaung/boxen,mcrumm/my-boxen,ebruning/boxen,manbous/my-boxen,kdimiche/boxen,codekipple/my-boxen,mvandevy/our-boxen,mpherg/new-boxen,goncalopereira/boxen,jacderida/boxen,jcfigueiredo/boxen,bash0C7/my-boxen,jiananlu/our-boxen,bartul/boxen,calebrosario/boxen,ssabljak/my-boxen,inakiabt/boxen-productgram,mingderwang/our-boxen,coreone/tex-boxen,bdossantos/my-boxen,seancallanan/my-boxen,maxwellwall/boxentest,cbi/cbi-boxen,0xabad1deaf/boxen,justinmeader/whipple-boxen,Jaco-Pretorius/Workstation,joboscribe/my_boxen,toocheap/my-boxen,AV4TAr/MyBoxen,raganw/my-boxen,barklyprotects/our-boxen,412andrewmortimer/my-boxen,theand/our-boxen,rmjasmin/diablo-boxen,belighted/our-boxen,vinhnx/my-boxen,dwpdigitaltech/dwp-boxen,scopp/boxen,davidcunningham/my-boxen,Genki-S/boxen,bartekrutkowski/our-boxen,tinygrasshopper/boxen,fordlee404/code-boxen,jdhom/my-boxen,boxen/our-boxen,wideopenspaces/jake-boxen,salimane/our-boxen,bitbier/my-boxen,bradwright/my-boxen,villamor/villamor-boxen,delba/boxen,kabostime/my-boxen,brendancarney/my-boxen,scoutbrandie/my-boxen,bleech/general-boxen,natewalck/my-boxen,jeffleeismyhero/our-boxen,marr/our-boxen,miguelalvarado/my-boxen,liatrio/our_boxen,jongold/boxen,thuai/boxen,fordlee404/code-boxen,Shekharv/open,palcisto/my-boxen,nik/my-boxen,hgsk/my-boxen,nimashariatian/our-boxen,mdavezac/our-boxen,hamazy/my-boxen,kevinSuttle/my-boxen,acarl005/our-boxen,arntzel/BoxenRepo,stedwards/our-boxen,bigashman/boxen,tarVolcano/my-boxen,devpg/my-boxen,mbraak/my-box,bjarkehs/my-boxen,webbj74/webbj74-boxen,adasescu/asl-boxen,nicknovitski/my-boxen,arjunvenkat/boxen,kieran-bamforth/our-boxen,robinbowes/boxen,jacksingleton/our-boxen,schlick/my-boxen,usmanismail/boxen,jhuston/our-boxen,chieping/my-boxen,mwagg/our-boxen,andrewdlong/boxen,gregimba/boxen-personal,seanknox/exygy-boxen,mpherg/new-boxen,ddaugher/baseBoxen,avihut/boxen,zenstyle-inc/our-boxen,jbennett/our-boxen,fukayatsu/my-boxen,schani/xamarin-boxen,nithyan/rcc-boxen,rfink/my-boxen,jjperezaguinaga/frontend-boxen,wln/my-boxen,itismadhan/boxen,akiomik/my-boxen,msaunby/our-boxen,uniite/my-boxen,randym/boxen,Ceasar/my-boxen,macboi86/boxen,malt3/boxen-test,matildabellak/my-boxen,charleshbaker/chb-boxen,Lavoaster/our-boxen,deone/boxen,rhussmann/boxen,davedash/my-boxen,codingricky/my-boxen,miguelscopely/boxen,akiellor/our-boxen,darvin/apportable-boxen,ugoletti/my-boxen,lynndylanhurley/lynn-boxen,catesandrew/cates-boxen,ralphreid/my_boxen,masutaka/my-boxen,kayhide/boxen,meestaben/our-boxen,grahamgilbert/my-boxen,stefanfoulis/divio-boxen,deline/boxen,sahilm/boxen,kennyg/our-boxen,jbennett/our-boxen,crizCraig/boxen,jypandjio/fortest_my_boxen,mattgoldspink/personal-boxen,seanknox/exygy-boxen,buritica/our-boxen,gaahrdner/my-boxen,urimikhli/myboxen,RARYates/my-boxen,kevinSuttle/my-boxen,klloydh/dynamo-boxen,pheekra/our-boxen,faizhasim/our-boxen,dwpdigitaltech/dwp-boxen,atty303/boxen,joe-re/my-boxen,netpro2k/my-boxen,ldickerson/Boxen,masutaka/my-boxen,snieto/boxen,hakamadare/our-boxen,goatsweater/boxen-bellerophon,bagodonuts/scatola-boxen,wbs75/my-boxen,erickreutz/our-boxen,trvrplk/my-boxen,eddieridwan/my-boxen,weyert/boxen,cnachtigall/boxen,burin/whee-boxen,rhussmann/boxen,snieto/boxen,kitakitabauer/my-boxen,fbernitt/our-boxen,navied/boxen-ios,drom296/boxentest,jgrau/default-boxen,chaoranxie/my-boxen,villamor/villamor-boxen,ckazu/my-boxen,plainfingers/adfiboxen,nimbleape/example-boxen,alexfish/boxen,mirajsanghvi/boxen_tidepool,mtakezawa/our-boxen,rexxllabore/localboxen,ssabljak/my-boxen,valencik/Boxenhops,socialstudios/boxen,mbraak/my-box,kosmotaur/boxen,libdx/my-boxen,djui/boxen,xcompass/our-boxen,darthmacdougal/boxen,webdizz/my-boxen,mlevitt/boxen,devpg/my-boxen,tooky/boxen,davidmyers9000/my-boxen,MattParker89/MyBoxen,lenciel/my-box,takashi/my-boxen,pavankumar2203/MacBoxen,mirkokiefer/mirkos-boxen,flatiron32/boxen,musha68k/my-boxen,agilecreativity/boxen-2015,AV4TAr/MyBoxen,ohwakana/my-boxen,thomaswelton/old-boxen,massiveclouds/boxen,NoUseFreak/our-boxen,danpalmer/boxen,nederhrj/boxen,juananruiz/boxen,ArthurMediaGroup/amg-boxen,kevinprince/our-boxen,cleblanc87/boxen,kcmartin/our-boxen,jgarcia/turbo-octo-tyrion,kitatuba/my-boxen,scopp/boxen,LewisLebentz/boxen,kyletns/boxen,tylerbeck/my-boxen,gsamokovarov/my-boxen,lakhansamani/myboxen,ChrisMacNaughton/boxen,rexxllabore/localboxen,akoinesjr/andrew-boxen,joelchelliah/sio-boxen,nfaction/boxen,ktec/boxen-laptop,mirkokiefer/mirkos-boxen,zaphod42/my-boxen,jasonleibowitz/tigerspike-boxen,lsylvester/boxen,fefranca/boxen,jak/boxen,vphamdev/boxen,spazm/our-boxen,fpaula/my-boxen,malt3/boxen-test,koppacetic/myboxen,kyosuke/my-boxen,norisu0313/my-boxen,smasry/our-boxen,nikersch/junxboxen,radeksimko/our-boxen,karrde00/oberd-boxen,mainyaa/boxen,fredoliveira/boxen,ozw-sei/boxen,magicmonty/our-boxen,ssayre/my-boxen,depop/depop-boxen,ssayre/my-boxen,rogerhub/our-boxen,jgrau/default-boxen,ONSdigital/ons-boxen,qmoya/my-boxen,tafujita/our-boxen,schani/xamarin-boxen,jeff-french/my-boxen,PopShack/boxen,msuess/my-boxen,huyennh/boxen,jwmayfield/my-boxen,calebrosario/boxen,petronbot/our-boxen,nickb-minted/boxen,whoz51/my-boxen,steffengodskesen/my-boxen,netdev/our-boxen,dvberkel/luminis-boxen-dev,logikal/boxen,msuess/my-boxen,stoeffel/our-boxen,rumblesan/my-boxen,rafasf/my-boxen,adamchandra/my-boxen,Johaned/my_boxen,joeybaker/boxen-personal,newta/my-boxen,marr/our-boxen,takezou/boxen,mlevitt/boxen,vaddirajesh/boxen,Traxmaxx/my-boxen,yrabinov/boxen,AVVSDevelopment/boxen,Dmetmylabel/labelweb-boxen,pauldambra/our-boxen,riveramj/boxen,DennisDenuto/our-boxen,carthik/our-boxen,chriswk/myboxen,cyberrecon/boxen,jamesblack/frontier-boxen,Yeriwyn/my-boxen,seanknox/exygy-boxen,dpnl87/boxen,rhussmann/boxen,mmrobins/my-boxen,mbraak/my-box,awaxa/awaxa-boxen,xenolf/real-boxen,hamazy/my-boxen,extrinsicmedia/finboxen,zacharyrankin/my-boxen,xebu/thoughtpanda-boxen,marzagao/our-boxen,poochiethecat/my-boxen,inokappa/myboxen,professoruss/russ_boxen,puttiz/bird-boxen,mhan/my-boxen,ysoussov/mah-boxen,rickard-von-essen/my-boxen,meatherly/my-boxen,Berico-Technologies/bt-boxen,iowillhoit/boxen,gregimba/boxen-personal,blongden/my-boxen,yakimant/boxen,am/our-boxen,caciasmith/my-boxen,allen13/boxen-mac-dev,spikeheap/our-boxen,berryp/my-boxen,mruser/boxen,sepeth/my-boxen,lsylvester/boxen,StEdwardsTeam/our-boxen,bash0C7/my-boxen,danielrob/my-boxen,aestrea/aestrea-boxen,escott-/boxen,mirkokiefer/mirkos-boxen,ustun/boxen,vtlearn/boxen,cawhite78/corey-boxen,maarten/our-boxen,syossan27/my-boxen,kayhide/boxen,scopp/boxen,johnnyLadders/boxen,cbrock/my-boxen,dartavion/my-boxen,joshuaess/my-boxen,kajohansen/our-boxen,webflo/our-boxen,Menain/mac,shadowmaru/my-boxen,webdizz/my-boxen,apto-as/my_boxen,jacobtomlinson/my-boxen,bradwright/my-boxen,kylemclaren/boxen,apeeters/boxen,julzhk/myboxen,bitbier/my-boxen,evalphobia/my-boxen,jasonleibowitz/tigerspike-boxen,stoeffel/our-boxen,bradleywright/my-boxen,ChrisWeiss/our-boxen,goatsweater/boxen-bellerophon,take/boxen,morganloehr/setup,alexmuller/personal-boxen,RaginBajin/my-osx-setup,nevstokes/boxen,goxberry/tmux-boxen,flyingpig16/boxen,leanmoves/boxen,pagrawl3/boxen,DanLindeman/boxen,aedelmangh/thdboxen,sorenmat/our-boxen,rmjasmin/diablo-boxen,seb/boxen,jniesen/my-boxen,cade/my-boxen,kalupa/my-boxen,cloudfour/cloudfour-boxen,cutmail/my-boxen,AngeloAballe/Boxen,enigmamarketing/boxen,rmjasmin/diablo-boxen,mrbrett/bretts-boxen,mwermuth/our-boxen,losthyena/my-boxen,julzhk/myboxen,kyletns/boxen,felipecvo/my-boxen,antigremlin/my-boxen,tgarrier/boxen,wongyouth/boxen,jamesperet/my-boxen,felixclack/my-boxen,kosmotaur/boxen,usmanismail/boxen,mly1999/my-boxen,tfnico/my-boxen,discoverydev/my-boxen,matthew-andrews/my-boxen,boskya/my-boxen,webbj74/webbj74-boxen,cmckni3/my-boxen,typhonius/boxen,clarkbreyman/my-boxen,namesco/our-boxen,sfwatergit/sfboxen,shiftit/our-boxen,bwl/bwl-boxen,nicsnet/our-boxen,ugoletti/my-boxen,webbj74/my-boxen,zachseifts/boxen,sharpwhisper/our-boxen,tbueno/my-boxen,milan/our-boxen,mpemer/boxen,dliggat/boxen-old,voidraven2/boxen,kengos/boxen,sjoeboo/boxen,rafaelfranca/my-boxen,chrisjbaik/our-boxen,felho/boxen,dmccown/boxen,gregrperkins/boxen,heptat/boxen,filaraujo/.boxen,aisensiy/boxen,haeronen/my-boxen,chinafanghao/forBoxen,href/boxen,cynipe/our-boxen-win,Nanshan/Nanshan-boxen,jtao826/mscp-boxen,ozw-sei/boxen,franco/boxen,klean-software/default-boxen,nejoshi/boxen,peterwardle/boxen,gf1730/boxen,sleparc/my-boxen,AVVSDevelopment/boxen,mpherg/boxen,diegofigueroa/boxen,febbraro/our-boxen,JF0h/boxen2,jacderida/boxen,JamshedVesuna/our-boxen,ohwakana/my-boxen,nagas/my-boxen,tetsuo6666/tetsuo-boxen,jdhom/my-boxen,smozely/boxen,andhansen/uwboxen,devboy/our-boxen,huan/my-boxen,mgfreshour/my_boxen,gato-omega/my-boxen,manolin/manolin-boxen,luisbarrueco/boxen,enriqueruiz/ninja-boxen,rudymccomb/my-boxen15,segu/my-boxen,carwin/boxen,joshbeard/boxen,outrunthewolf/outrunthewolf-boxen,karrde00/oberd-boxen,jonmosco/boxen-test,raganw/my-boxen,tonywok/tonywoxen,sfwatergit/sfboxen,jonkessler/boxen,ChrisMacNaughton/boxen,zooland/our-boxen,taoistmath/USSBoxen,mediasuitenz/our-boxen-xcode5.1,iorionda/my-boxen,adityatrivedi/boxen,jjperezaguinaga/frontend-boxen,mootpointer/my-boxen,pictura/pictura-boxen,jenscobie/our-boxen,carmi/boxen,fadingred/red-boxen,tarVolcano/my-boxen,hjuutilainen/myboxen,abuxton/our-boxen,douglasnomizo/myboxen,nanoxd/our-boxen,samsonnguyen/solium-boxen,outrunthewolf/outrunthewolf-boxen,logikal/boxen,thomjoy/our-boxen,kitakitabauer/my-boxen,hwhelchel/boxen,BrandonCummings/BoxenRepo,mgfreshour/my_boxen,jhonathas/boxen,kizard09/my-boxen,aedelmangh/thdboxen,rogeralmeida/my-boxen,jkongie/my-boxen,bolasblack/boxen,nonsense/my-boxen,akiellor/our-boxen,cerodriguezl/my-boxen,rancher/boxen,dfwarden/my-boxen,itismadhan/boxen,akiomik/my-boxen,toocheap/my-boxen,rtircher/my-boxen,gregorylloyd/our-boxen,friederikewild/boxen,vkrishnasamy/vkboxen,inakiabt/boxen-productgram,cawhite78/corey-boxen,pedro-mass/boxentest,enigmamarketing/boxen,ChrisMacNaughton/boxen,jodylent/boxen,elsom25/secret-dubstep,logicminds/our-boxen,hakamadare/our-boxen,meltmedia/boxen,wcorrigan/myboxen,tetsuo692/my-boxen,dbunskoek/boxen,marcovanest/boxen,mmickan/our-boxen,cnachtigall/boxen,makersacademy/our-boxen,geoffharcourt/boxen,jhalter/my-boxen,john-griffin/boxen,wesscho/boxen,srclab/our-boxen,dbunskoek/boxen,jhalstead85/boxen,kalupa/my-boxen,wln/my-boxen,felixcohen/my-boxen,jchris/my-boxen,smt/my-boxen,rudymccomb/my-boxen15,stickyworld/boxen,kykim/our-boxen,ombr/our-boxen,met-office-lab/our-boxen,riethmayer/my-boxen,jeffreybaird/my-boxen,kseta/my-boxen,haelmy/my-boxen,MAECProject/maec-boxen,crpdm/our-boxen,dfwarden/my-boxen,kieran-bamforth/our-boxen,jhalstead85/boxen,faizhasim/our-boxen,kalupa/my-boxen,jabley/our-boxen,jcvanderwal/boxen,boztek/my-boxen,mnussbaum/my_boxen,reon7902/boxen,thenickcox/my_boxen,vincentpeyrouse/my-boxen,rickard-von-essen/my-boxen,han/hana-boxen,cnachtigall/boxen,hernandezgustavo/boxenTest,jasonamyers/my-boxen,ryanswood/our-boxen,rgpretto/my-boxen,accessible-ly/myboxen,Jun-Chang/my-boxen,albac/my-boxen,vphamdev/boxen,mefellows/my-boxen,voidraven2/boxen,mruser/boxen,yrabinov/boxen,rvora/rvora-boxen,sreeramanathan/my-boxen,tjws052009/ts_boxen,dannyviti/our-boxen,ugoletti/my-boxen,juliogarciag/boxen-box,kakuda/my-boxen,mgibson/boxen-dec-2013,adamwalz/my-boxen,alphagov/gds-boxen,goatsweater/boxen-bellerophon,gregrperkins/boxen,ErikEvenson/boxen,changtc8/changtc8-boxen,sharpwhisper/our-boxen,brettswift/bs_boxen,haelmy/my-boxen,testboxenmissinformed/boxen-test,puppetlabs/eduteam-boxen,jiananlu/our-boxen,loregood/boxen,prussiap/boxen_dev,hwhelchel/boxen,levithomason/my-boxen,tinygrasshopper/boxen,hjfbynara/hjf-boxen,GoodDingo/my-boxen,nathankot/our-boxen,ysoussov/boxenz,bmihelac/our-boxen,randym/boxen,sr/laptop,acmcelwee/my-boxen,zer0bytescorp/boxen,myohei/boxen,marr/our-boxen,cbrock/my-boxen,smt/my-boxen,nfaction/boxen,julson/my-boxen,GrandSlam/my-boxen,arnoldsandoval/our-boxen,spuder/spuder-boxen,shao1555/my-boxen,thuai/boxen,jypandjio/my-boxen,wheresjim/my-boxen,nicsnet/our-boxen,tetsuo692/my-boxen,elle24/boxen,davidpelaez/myboxen,micahroberson/boxen,sjoeboo/boxen,cph/boxen,bwl/bwl-boxen,TechEnterprises/our-boxen,tfhartmann/boxen,barklyprotects/our-boxen,hamzarazzak/test_box,fukayatsu/my-boxen,bradleywright/my-boxen,philipsdoctor/try-boxen,hirose504/boxen,kaneshin/boxen,bartekrutkowski/our-boxen,samant/boxen,dstack4273/MyBoxenBootstrap,sr/laptop,tdm00/my-boxen,brotherbain/testboxen,cyberrecon/boxen,luisbarrueco/boxen,rudazhan/my-boxen,nejoshi/boxen,ingoclaro/our-boxen,jeffleeismyhero/boxen,takezou/boxen,salimane/our-boxen,terbolous/our-boxen,alexfish/boxen,barm4ley/crash_analyzer_boxen,lgaches/boxen,krajewf/my-boxen,garycrawford/my-boxen,nickpellant/our-boxen,baseboxorg/basebox-dev,spikeheap/our-boxen,seancallanan/my-boxen,sqki/boxen,pearofducks/slappy-testerson,matildabellak/my-boxen,gregorylloyd/our-boxen,steinim/steinim-boxen,Tombar/boxen-test,TaylorMonacelli/our-boxen,julzhk/myboxen,k-nishijima/our-boxen,zooland/boxen,burin/whee-boxen,bd808/my-boxen,jodylent/boxen,Contegix/puppet-boxen,1gitGrey/boxen015,panderp/my-boxen,platanus/our-boxen,adwitz/boxen-setup,christopher-b/boxen,kidylee/our-boxen,mpherg/new-boxen,kyohei-shimada/my-boxen,exedre/my-boxen,norisu0313/my-boxen,merikan/my-boxen,jamsilver/our-boxen,syossan27/my-boxen,Genki-S/boxen,catesandrew/cates-boxen,deline/boxen,balloon-studios/balloon-boxen,thuai/boxen,nixterrimus/boxen,Shekharv/open,BuddyApp/our-boxen,tylerbeck/my-boxen,bradley/boxen,Tombar/boxen-test,pauldambra/our-boxen,rapaul/my-boxen,ccelebi/boxen,pauldambra/our-boxen,vshu/vshu-boxen,afmacedo/boxen,rwoolley/rdot-boxen,lukwam/boxen,natewalck/my-boxen_old,stuartcampbell/my-boxen,dbld-org/our-boxen,niallmccullagh/our-boxen,MayerHouse/our-boxen,nspire/our-boxen,tarebyte/my-boxen,shimbaco/my-boxen,carwin/boxen,tam-vo/my-boxen,sleparc/my-boxen,s-ashwinkumar/test_boxen,junior-ales/oh-my-mac,kcmartin/our-boxen,anicet/boxen,dfwarden/my-boxen,ooiwa/my-boxen,sreeramanathan/my-boxen,otternq/our-boxen,vshu/vshu-boxen,tcarmean/my-boxen,seanknox/exygy-boxen,KazukiOhashi/my-boxen,chaoranxie/my-boxen,hernandezgustavo/boxenTest,whoz51/my-boxen,dstack4273/MyBoxenBootstrap,mvandevy/our-boxen,sylv3rblade/indinero-boxen,abennet/tools,lacroixdesign/our-boxen,professoruss/russ_boxen,Jaco-Pretorius/Workstation,borcean/my-boxen,shrijeet/my-boxen,aeikenberry/boxen-for-me,pamo/boxen-mini,scottelundgren/my-boxen,malt3/boxen-test,jldbasa/boxen,professoruss/russ_boxen,massiveclouds/boxen,borcean/my-boxen,pictura/pictura-boxen,boskya/my-boxen,nealio42/macbookair,telamonian/boxen-linux,shaokun/boxen,deline/boxen,pheekra/our-boxen,distributedlife/boxen,azumafuji/boxen,concordia-publishing-house/boxen,jdigger/boxen,korenmiklos/my-boxen,dangig/a1-boxen,taoistmath/USSBoxen,zachahn/our-boxen,scobal/boxen,darkseed/boxen,AVVS/boxen,jeffreybaird/jeffs-boxen,cmonty/my-boxen,wcorrigan/myboxen,lpmulligan/lpm-boxen,sepeth/my-boxen,jongold/boxen,kthukral/my-boxen,kayleg/my-boxen,sharpwhisper/our-boxen,evanchiu/my-boxen,joelchelliah/sio-boxen,supernovae/boxen,jfx41/voraa,Couto/my-boxen,nagas/my-boxen,kieran-bamforth/our-boxen,jdhom/my-boxen,mikeycmccarthy/our-boxen,BuddyApp/our-boxen,hjuutilainen/myboxen,jantman/boxen,1337807/my-boxen,pearofducks/slappy-testerson,narze/our-boxen,apotact/boxen,RARYates/my-boxen,lakhansamani/myboxen,mattr-/our-boxen,paolodm/test-boxen,FrancisVarga/dev-boxen,jacobboland/my-boxen,mikecardii/nerdboxen,tomiacannondale/our-boxen,gabrielalmeida/my-boxen,ferventcoder/boxen,pate/boxen,Maarc/our-boxen,mtakezawa/our-boxen,steffengodskesen/my-boxen,pattichan/boxen,beefeng/my-boxen,Shekharv/open,riethmayer/my-boxen,otternq/our-boxen,pizzaops/drunken-tribble,nullus/boxen,gregimba/boxen-personal,jypandjio/my-boxen,wasabi0522/my-boxen,wmadden/boxen,losthyena/my-boxen,rperello/boxenized,jsmitley/boxen,jbennett/our-boxen,magicmonty/our-boxen,socialstudios/boxen,mediba-Kitada/mdev3g-boxen,cubicmushroom/our-boxen,newta/my-boxen,designbyraychou/boxen,boztek/my-boxen,webbj74/my-boxen,hirocaster/boxen,didymu5/tommysboxen,mwermuth/our-boxen,mongorian-chop/boxen,matteofigus/my-boxen,poetic/our-boxen,cframe/my-boxen,AlabamaMike/my-boxen,gdks/our-boxen,cph/boxen,sorenmat/boxen,alainravet/our-boxen,ckesurf/patch-boxen,jodylent/boxen,nederhrj/boxen,jacksingleton/our-boxen,noahrc/boxen,arntzel/BoxenRepo,kevinprince/our-boxen,smasry/our-boxen,adelegard/my_boxen,macasek/my_boxen,zach-hu/boxen,davidmyers9000/my-boxen,jtjurick/DEPRECATED--boxen2,boxen/our-boxen,devboy/our-boxen,mjason/mjboxen,apto-as/my_boxen,412andrewmortimer/my-boxen,tam-vo/my-boxen,zovafit/our-boxen,smasry/our-boxen,tolomaus/my-boxen,hirocaster/boxen,baseboxorg/basebox-dev,sgerrand/our-boxen,hirocaster/our-boxen,decobisu/my-boxen,neotag/neotag-boxen,cade/my-boxen,am/our-boxen,kengos/boxen,unasuke/unasuke-boxen,mdavezac/our-boxen,makersquare/student-boxen,yumiyon/my-boxen,benja-M-1/my-boxen,ricrios11/Bootstrapping,zakuni/my-boxen,eliperkins/my-boxen,pearofducks/slappy-testerson,anantkpal/our-boxen,shaokun/boxen,scopp/boxen,masawo/my-boxen,andrzejsliwa/our-boxen,wongyouth/boxen,aa2kids/aa2kids-boxen,taylorzane/adelyte-boxen,mircealungu/mir-boxen,mpemer/boxen,toocheap/my-boxen,sveinung/my-boxen,steinim/steinim-boxen,webtrainingmx/boxen-teacher,ckelly/my-boxen,g12r/bx,carmi/boxen,Contegix/puppet-boxen,outrunthewolf/outrunthewolf-boxen,brissmyr/my-boxen,chris-horder/boxen,ricrios11/Bootstrapping,arron-green/my-boxen,Sugitaku/my-boxen,kieranja/mac,fboyer/boxen,blamattina/our-boxen,ericpfisher/boxen,rogerhub/our-boxen,apeeters/boxen,theand/our-boxen,sonnymai/my-boxen,hydradevelopment/our-boxen,merikan/my-boxen,ombr/our-boxen,hackers-jp/our-boxen,masawo/my-boxen,felixclack/my-boxen,driverdan/boxen,tjws052009/ts_boxen,garethr/my-boxen,yayao/my-boxen,joelturnbull/our-boxen,KarolBuchta/boxen,winklercoop/boxen,jdigger/boxen,hemanpagey/heman_boxen,clburlison/my-boxen,jiamat/dragonbox,tfhartmann/boxen,paluchas/my-boxen,leonardoobaptistaa/my-boxen,tobyhede/my-boxen,n0ts/our-boxen,radeksimko/our-boxen,depop/depop-boxen,shrijeet/my-boxen,potix2/my-boxen,jak/boxen,zjjw/jjbox,josemarluedke/neighborly-boxen,narze/our-boxen,weareinstrumental/boxen,GrandSlam/my-boxen,krajewf/my-boxen,jp-a/boxen,AnneTheAgile/AnneTheAgile-boxen,nullus/boxen,springaki/boxen,yuma-iwasaki/my-boxen,LewisLebentz/boxen,bazbremner/our-boxen,n0ts/our-boxen,rudymccomb/my-boxen17,tangadev/our-boxen,enigmamarketing/boxen,novakps/our-boxen,chrisklaiber/khan-boxen,fredoliveira/boxen,tarebyte/my-boxen,datsnet/My-Boxen,kallekrantz/boxen,kengos/boxen,miguelalvarado/my-boxen,nimbleape/example-boxen,tgarrier/boxen,aestrea/aestrea-boxen,barm4ley/crash_analyzer_boxen,sepeth/my-boxen,chinafanghao/forBoxen,bradley/boxen,jrrrd/butthole,dolhana/my-boxen,raychouio/Boxen,vipulnsward/boxen-repo,ryotarai/my-boxen,elle24/boxen,jonatanmendozaboxen/platformboxen,bluesalt/my-boxen,kchygoe/my-boxen,jamesblack/frontier-boxen,billputer/bill-boxen,Fidzup/our-boxen,blackcoffee/boxen,zamoose/boxen,gyllen/boxen,cdenneen/our-boxen,drfmunoz/our-boxen,mgfreshour/my_boxen,crizCraig/boxen,seehafer/boxen,marano/my-boxen,yakimant/boxen,umi-uyura/my-boxen,dfwarden/gsu-boxen,satiar/arpita-boxen,geekles/my-boxen,paolodm/test-boxen,ddaugher/baseBoxen,jwmayfield/my-boxen,jniesen/my-boxen,darthmacdougal/boxen,rafasf/my-boxen,xebu/boxen-experimental,libk3n/my-boxen,rayward/our-boxen,muuran/my-boxen,bash0C7/my-boxen,brianluby/boxen,ssabljak/my-boxen,egeek/boxen,ingoclaro/our-boxen,hemanpagey/heman_boxen,srclab/our-boxen,jkongie/my-boxen,niallmccullagh/our-boxen,katryo/boxen_katryo,bayster/boxen,prussiap/boxen_dev,spazm/our-boxen,RARYates/my-boxen,jeff-french/my-boxen,grahamgilbert/my-boxen,poetic/our-boxen,darkseed/boxen,matthew-andrews/my-boxen,Americastestkitchen/our-boxen,adelegard/my_boxen,scottstanfield/boxen,pavankumar2203/MacBoxen,mkilpatrick/boxen_test,kholloway/our-boxen,jacobtomlinson/my-boxen,tcarmean/yosemite-boxen,nicknovitski/my-boxen,ingoclaro/our-boxen,justinmeader/meader-boxen,XiaoYy/boxen,rusty0606/my-boxen,jervi/my-boxen,HalfdanJ/Boxen,dvberkel/luminis-boxen-dev,riethmayer/my-boxen,brettswift/bs_boxen,railslove/our-boxen,gaishimo/my-boxen,poochiethecat/my-boxen,jdwolk/my-boxen,meltmedia/boxen,acarl005/our-boxen,mischizzle/boxen,seb/boxen,buritica/our-boxen,joshbeard/boxen,zywy/boxen,ryanwalker/my-boxen,abennet/tools,cander/boxen,apackeer/my-boxen-old,tonywok/tonywoxen,rozza/my-boxen,micalexander/boxen,seanknox/my-boxen,calorie/my-boxen,stephenyeargin/boxen,Ganonside/ganon-boxen,andhansen/uwboxen,jasonamyers/our-boxen,nanoxd/our-boxen,andrewdlong/boxen,sigriston/my-boxen,Glipho/boxen,segu/my-boxen,JF0h/boxen,skyis/gig-boxen,jpogran/puppetlabs-boxen,joboscribe/my_boxen,brissmyr/my-boxen,billputer/bill-boxen,typhonius/boxen,rootandflow/our-boxen,Mizune/boxen,Tr4pSt3R/boxen,scottgearyau/boxen,felho/boxen,douglasnomizo/myboxen,drewtempelmeyer/boxen,siddhuwarrier/my-boxen,flannon/boxen-kenny,yss44/my-boxen,rafaelfelini/my-boxen,ArthurMediaGroup/amg-boxen,bgerstle/my-boxen,rudymccomb/my-boxen,ynnadrules/neuralbox,theand/our-boxen,scottgearyau/boxen,ckazu/my-boxen,brissmyr/my-boxen,italoag/boxen,JF0h/boxen2,ofl/my-boxen,kholloway/our-boxen,mmasashi/my-boxen,ryanycoleman/my-boxen,flatiron32/boxen,jamesvulling/my-boxen,trvrplk/my-boxen,yatatsu/my-boxen,cloudfour/cloudfour-boxen,rootandflow/our-boxen,JamshedVesuna/our-boxen,theand/our-boxen,cynipe/our-boxen-win,halyard/halyard,jacebrowning/my-boxen,designbyraychou/boxen,felixcohen/my-boxen,jingweno/owen-boxen,ferventcoder/boxen,yanap/our-boxen,devnall/boxen,weyert/my-boxen,brotherbain/testboxen,debona/my-boxen,mhan/my-boxen,phathocker/loxen-phathocker,glarizza/my-boxen,fusion94/boxen,ddaugher/baseBoxen,filipebarcos/filipebarcos-boxen,erasmios/deuteron,kwiss/hooray-boxen,felipecvo/my-boxen,hiroooo/boxen,sfcabdriver/sfcabdriver-boxen,grahambeedie/my-boxen,neotag/neotag-boxen,jcowhigjr/my-boxen,duboff/alphabox,urimikhli/myboxen,hk41/my-boxen,logicminds/our-boxen,CaseyLeask/my-boxen,AntiTyping/boxen-workstation,jde/boxen,stereobooster/my-boxen,tolomaus/my-boxen,raychouio/Boxen,xebu/thoughtpanda-boxen,zaphod42/my-boxen,jwmayfield/my-boxen,ckelly/my-boxen,dpnl87/boxen,navied/boxen-ios,blamattina/my-boxen,thuai/boxen,dgiunta/boxen,dannydover/boxen-dover,yss44/my-boxen,atmos/our-boxen,yanap/our-boxen,cannfoddr/Our-Boxen,concordia-publishing-house/boxen,hydra1983/my-boxen,tfhartmann/boxen,whharris/boxen,mgibson/boxen-dec-2013,kdimiche/boxen,douglasom/railsexperiments,robinbowes/boxen,mjason/mjboxen,Menain/mac,gaohao/our-boxen,user-tony/boxen,samsonnguyen/solium-boxen,LewisLebentz/boxen,huan/my-boxen,datsnet/My-Boxen,blangenfeld/boxen,bazbremner/our-boxen,hwhelchel/boxen,mhkt/my-boxen,seanknox/my-boxen,applidium-boxen/our-boxen,patrickkelso/boxen-test,DennisDenuto/our-boxen,empty23/myboxen,bentsou-com/ben-boxen,leed71/boxen,rickyp72/rp_boxen,joshuaess/my-boxen,MrBri/a-go-at-boxen,tdd/my-boxen,Ganonside/ganon-boxen,tafujita/our-boxen,lonnen/base-boxen,mefellows/my-boxen,makersacademy/our-boxen,jgarcia/turbo-octo-tyrion,mojao/my-boxen,micahroberson/boxen,haelmy/my-boxen,NoUseFreak/our-boxen,etaroza/our-boxen,flannon/boxen-dyson,grahambeedie/my-boxen,egeek/boxen,yanap/our-boxen,thorerik/our-boxen,ralphreid/boxen,shrijeet/my-boxen,jervi/my-boxen,thomaswelton/boxen,han/hana-boxen,clburlison/my-boxen,peterwardle/boxen,blangenfeld/boxen,hgsk/my-boxen,atmos/our-boxen,rafaelportela/my-boxen,ralphreid/my_boxen,montyzukowski-temboo/our-boxen,mikecardii/nerdboxen,molst/our-boxen,morgante/boxen-saturn,hkaju/boxen,maarten/our-boxen,telamonian/boxen-linux,thomjoy/our-boxen,xebu/boxen-minimal,felipecvo/my-boxen,ryanaslett/mixologic-boxen,inakiabt/boxen-productgram,girishpandit88/boxen,webtrainingmx/boxen-teacher,cmonty/my-boxen,devnall/boxen,lenciel/my-box,glarizza/my-boxen,blamattina/my-boxen,rumblesan/my-boxen,paolodm/test-boxen,mwermuth/our-boxen,chriswk/myboxen,febbraro/our-boxen,nickpellant/our-boxen,libdx/my-boxen,CaseyLeask/my-boxen,spazm/our-boxen,xcompass/our-boxen,ndelage/boxen,panderp/boxen,discoverydev/my-boxen,johnsoga/my_boxen,arron-green/my-boxen,ballyhooit/boxen,daviderwin/boxen,gaishimo/my-boxen,alecklandgraf/boxen,jhonathas/boxen,kmohr/my-boxen,mdepuy/boxen,leandroferreira/boxen,huyennh/boxen,takashiyoshida/my-boxen,xebu/thoughtpanda-boxen,rwoolley/rdot-boxen,g12r/bx,pseudomuto/boxen,jae2/boxen,acmcelwee/my-boxen,barklyprotects/our-boxen,douglasom/railsexperiments,mly1999/my-boxen,logikal/boxen,pingpad/boxen,christian-blades-cb/blades-boxen,onewheelskyward/boxen,applidium-boxen/our-boxen,palcisto/my-boxen,SBoudrias/my-boxen,weareinstrumental/boxen,webdizz/my-boxen,ckesurf/patch-boxen,threetreeslight/my-boxen,segu/my-boxen,febbraro/our-boxen,mpherg/boxen,jeremybaumont/jboxen,nithyan/rcc-boxen,mefellows/my-boxen,depop/depop-boxen,jchris/my-boxen,smcingvale/my-boxen,w4ik/millermac-boxen,hkrishna/boxen,Traxmaxx/my-boxen,hirocaster/our-boxen,voidraven2/boxen,EmptyClipGaming/our-boxen,elle24/boxen,petems/our-boxen,pekepeke/boxen,darthmacdougal/boxen,missionfocus/mf-boxen,jjtorroglosa/my-boxen,warrenbailey/ons-boxen,moriarty/my-boxen,milan/our-boxen,aeikenberry/boxen-for-me,atmos/our-boxen,atayarani/myboxen,pingpad/boxen,kPhilosopher/my_boxen,ryanorsinger/boxen,joelturnbull/our-boxen,oddhill/oddboxen,sreeramanathan/my-boxen,josemarluedke/neighborly-boxen,justinberry/justin-boxen,concordia-publishing-house/boxen,stuartcampbell/my-boxen,vipulnsward/boxen-repo,jsmitley/boxen,thomaswelton/old-boxen,onedge/my-boxen,seanknox/my-boxen,RohitUdayTalwalkar/IndexBoxen,tamlyn/boxen,jazeren1/boxen,novakps/our-boxen,jacobbednarz/our-boxen,bartul/boxen,filaraujo/.boxen,scheibinger/my-boxen,salekseev/boxen,mroth/my-boxen,MayerHouse/our-boxen,mcrumm/my-boxen,matildabellak/my-boxen,BenjMichel/our-boxen,narze/our-boxen,sahilm/boxen,rogeralmeida/my-boxen,tbueno/my-boxen,rtircher/my-boxen,srclab/our-boxen,pattichan/boxen,lacroixdesign/our-boxen,surfacedamage/boxen,jbecker42/boxen,pseudomuto/boxen,weiliv/boxen,AlabamaMike/my-boxen,PopShack/boxen,jedcn/mac-config,danpalmer/boxen,KarolBuchta/boxen,bolasblack/boxen,rapaul/my-boxen,filipebarcos/filipebarcos-boxen,cregev/our-boxen,rudymccomb/my-boxen,kennyg/our-boxen,cqwense/our-boxen,Ceasar/my-boxen,braitom/my-boxen,jypandjio/fortest_my_boxen,tischler/tims-boxen,boxen/our-boxen,zamoose/boxen,andrzejsliwa/our-boxen,ombr/our-boxen,mickengland/boxen,ysoussov/mah-boxen,calorie/my-boxen,smcingvale/my-boxen,w4ik/millermac-boxen,ktec/boxen-laptop,jazeren1/boxen,pseudomuto/boxen,albertofem/boxen,hakamadare/our-boxen,SudoNikon/boxen,ykhs/my-boxen,bauricio/my-boxen,bleech/general-boxen,klean-software/default-boxen,justinmeader/meader-boxen,weyert/my-boxen,brendancarney/my-boxen,justinberry/justin-boxen,donaldpiret/our-boxen,chrissav/2u_boxen,anantkpal/our-boxen,russ/boxen,yss44/my-boxen,mircealungu/mir-boxen,ndelage/boxen,apotact/boxen,Royce/my-boxen,korenmiklos/my-boxen,weiliv/boxen,mohamedhaleem/myboxen,cmckni3/my-boxen,freshvolk/ballin-meme-boxen,jonatanmendozaboxen/platformboxen,href/boxen,BillWeiss/boxen,gdks/our-boxen,kennyg/our-boxen,judytuna/boxen-judy,wasabi0522/my-boxen,alphagov/gds-boxen,webflo/our-boxen,nithyan/rcc-boxen,salekseev/boxen,cogfor/boxen,unasuke/unasuke-boxen,rayward/our-boxen,rafaelfranca/my-boxen,minatsu/my-boxen,jasonamyers/our-boxen,rudymccomb/my-boxen,manchan/boxen,mattr-/our-boxen,mrchrisadams/mrchrisadamsboxen,Maarc/our-boxen,phamann/guardian-boxen,tooky/boxen,ajordanow/our-boxen,tkayo/boxen,hussfelt/my-boxen,jeffleeismyhero/boxen,gf1730/boxen,datsnet/My-Boxen,hparra/my-boxen,krohrbaugh/my-boxen,mfks17/our-boxen,reon7902/boxen,cloudnautique/home-boxen,eschapp/boxen,sorenmat/our-boxen,mikeycmccarthy/our-boxen,Damienkatz/my-boxen,justinmeader/whipple-boxen,johnnyLadders/boxen,cogfor/boxen,sleparc/my-boxen,mmunhall/boxen-dev,met-office-lab/our-boxen,lonnen/base-boxen,rudymccomb/my-boxen17,zooland/boxen,joseluis2g/my-boxen,andrewhao/our-boxen,heflinao/boxen,ryanaslett/mixologic-boxen,lorn/lorn-boxen,logicminds/mybox,julienlavergne/my-boxen,ballyhooit/boxen,kevronthread/boxen-test,taylorzane/adelyte-boxen,shaokun/boxen,JanGorman/my-boxen,hernandezgustavo/boxenTest,aa2kids/aa2kids-boxen,mwagg/our-boxen,onedge/my-boxen,nanoxd/our-boxen,skyis/gig-boxen,leandroferreira/boxen,stereobooster/my-boxen,jcowhigjr/our-boxen,stoeffel/our-boxen,kakuda/my-boxen,cregev/our-boxen,shadowmaru/my-boxen,MattParker89/MyBoxen,kallekrantz/boxen,aa2kids/aa2kids-boxen,neotag/neotag-boxen,chengdh/my-boxen,cframe/my-boxen,ryan-robeson/osx-workstation,brendancarney/my-boxen,heruan/boxen,gregrperkins/boxen,chieping/my-boxen,bytey/boxen,kwiss/hooray-boxen,nevstokes/boxen,MattParker89/MyBoxen,Ditofry/dito-boxen,iowillhoit/boxen,jkongie/my-boxen,drmaruyama/my-boxen,kcparashar/boxen,ralphreid/boxen,wesen/our-boxen,platanus/our-boxen,paluchas/my-boxen,elsom25/secret-dubstep,qmoya/my-boxen,wongyouth/boxen,stuartcampbell/my-boxen,stefanfoulis/divio-boxen,dannyviti/our-boxen,rob-murray/my-osx,kevinSuttle/my-boxen,discoverydev/my-boxen,delba/boxen,rwoolley/rdot-boxen,abennet/tools,jenscobie/our-boxen,scottelundgren/my-boxen,joeybaker/boxen-personal,mozilla/ambient-boxen,davidpelaez/myboxen,drewtempelmeyer/boxen,johnsoga/my_boxen,quintel/boxen,rafasf/my-boxen,miguelalvarado/my-boxen,phamann/guardian-boxen,jedcn/mac-config,jcinnamond/my-boxen,codeship/our-boxen,blamarvt/boxen,didymu5/tommysboxen,allen13/boxen-mac-dev,aibooooo/boxen,baek-jinoo/my-boxen,adityatrivedi/boxen,ysoussov/boxenz,AVVS/boxen,adelegard/my_boxen,mtakezawa/our-boxen,karmicnewt/newt-boxen,christopher-b/boxen,valencik/Boxenhops,msaunby/our-boxen,elovelan/our-boxen,adaptivelab/our-boxen,padi/my-boxen,lixef/my-boxen,wesen/our-boxen,hkrishna/boxen,christian-blades-cb/blades-boxen,BillWeiss/boxen,goxberry/tmux-boxen,jchris/my-boxen,viztor/boxen,mainyaa/boxen,julson/my-boxen,dpnl87/boxen,jeffremer/boxen,mdepuy/boxen,ryanwalker/my-boxen,gravit/boxen,krohrbaugh/my-boxen,CheyneWilson/boxen,crpeck/boxen,rickyp72/rp_boxen,aisensiy/boxen,leehanel/my_boxen,mikedename/myboxen,jeremybaumont/jboxen,nejoshi/boxen,petems/our-boxen,jacebrowning/my-boxen,mfks17/our-boxen,leanmoves/boxen,evanchiu/my-boxen,hmatsuda/my-boxen,onewheelskyward/boxen,spacepants/my-boxen,rebootd/myboxen,cregev/our-boxen,nrako/my-boxen,tangadev/our-boxen,stefanfoulis/divio-boxen,rayward/our-boxen,lukwam/boxen,ryotarai/my-boxen,vindir/vindy-boxen,salimane/our-boxen,mikedename/myboxen,huit/cloudeng-boxen,beefeng/my-boxen,myohei/boxen,wasabi0522/my-boxen,indika/boxen,dstack27/MyBoxenBootstrap,wmadden/boxen,robbiegill/a-boxen,drewtempelmeyer/boxen,StEdwardsTeam/our-boxen,fukayatsu/my-boxen,jkemsley/boxen-def,vaddirajesh/boxen,akoinesjr/andrew-boxen,peterwardle/boxen,kevcolwell/Boxen,grahamgilbert/my-boxen,franco/boxen,conatus/boxen,mmasashi/my-boxen,jgarcia/turbo-octo-tyrion,PopShack/boxen,geoffharcourt/boxen,scheibinger/my-boxen,sreid/my-boxen,hydra1983/my-boxen,pizzaops/drunken-tribble,RossKinsella/our-boxen,jldbasa/boxen,JF0h/boxen,staxmanade/boxen-vertigo,surefire/our-boxen,mitsurun/my-boxen,vesan/boxen,rolfvandekrol/my-boxen,bigashman/boxen,fluentglobe/our-boxen,iorionda/my-boxen,scoutbrandie/my-boxen,yuma-iwasaki/my-boxen,ferventcoder/boxen,mickengland/boxen,randym/boxen,leed71/boxen,nederhrj/boxen,dspeele/boxen,chaoranxie/my-boxen,ryanorsinger/boxen,TinyDragonApps/boxen,rogeralmeida/my-boxen,jduhamel/my-boxen,dbunskoek/boxen,cbi/cbi-boxen,rfink/my-boxen,mirajsanghvi/boxen_tidepool,joshuaess/my-boxen,amitmula/boxen-test,diegofigueroa/boxen,mavant/our-boxen,yokulkarni/boxen,lumannnn/boxen,wednesdayagency/boxen,davedash/my-boxen,dliggat/boxen-old,motns/my-boxen,jacobbednarz/our-boxen,kseta/my-boxen,logicminds/mybox,magicmonty/our-boxen,Dmetmylabel/labelweb-boxen,zywy/boxen,dansmithy/danny-boxen,rumblesan/my-boxen,umi-uyura/my-boxen,Fidzup/our-boxen,dotfold/dotboxen,zacharyrankin/my-boxen,jorgemancheno/boxen,ccelebi/boxen,ChrisWeiss/our-boxen,s-ashwinkumar/test_boxen,moveline/our-boxen,benja-M-1/my-boxen,netpro2k/my-boxen,fluentglobe/our-boxen,yarbelk/boxen,thuai/boxen,shadowmaru/my-boxen,nimashariatian/our-boxen,zachahn/our-boxen,sylv3rblade/indinero-boxen,testboxenmissinformed/boxen-test,AngeloAballe/Boxen,rebootd/myboxen,micahroberson/boxen,sfwatergit/sfboxen,bytey/boxen,dotfold/dotboxen,greatjam/boxenbase,benwtr/our-boxen,fadingred/red-boxen,chai/boxen,lgaches/boxen,whharris/boxen,seanhandley/my_boxen,xenolf/real-boxen,jeremybaumont/jboxen,sigriston/my-boxen,ooiwa/my-boxen,lynndylanhurley/lynn-boxen,chengdh/my-boxen,AVVSDevelopment/boxen,ymmty/my-boxen,natewalck/my-boxen,zenstyle-inc/our-boxen,sr/laptop,middle8media/myboxen,tangadev/our-boxen,SudoNikon/boxen,vtlearn/boxen,ericpfisher/boxen,petronbot/our-boxen,ngalchonkova/lohika,jwalsh/jwalsh-boxen,ktrujillo/boxen,kPhilosopher/my_boxen,awaxa/awaxa-boxen,jwalsh/our-boxen,wkimeria/spectre,nimbleape/example-boxen,nonsense/my-boxen,HalfdanJ/Boxen,mattdelves/boxen,viztor/boxen,dangig/a1-boxen,jheuer/my-boxen,MrBri/a-go-at-boxen,mgriffin/my-boxen,markkendall/boxen,cmpowell/boxen,chrissav/2u_boxen,BillWeiss/boxen,codeship/our-boxen,blamattina/our-boxen,padi/my-boxen,kvalle/my-boxen,micalexander/boxen,akiomik/my-boxen,zachahn/our-boxen,allanma/BBoxen,logicminds/our-boxen,Ganonside/ganon-boxen,theand/our-boxen,rudymccomb/my-boxen15,jabley/our-boxen,codingricky/my-boxen,adamwalz/my-boxen,fadingred/red-boxen,bartekrutkowski/our-boxen,Menain/mac,yumiyon/my-boxen,thorerik/our-boxen,1337807/my-boxen,julson/my-boxen,Lavoaster/our-boxen,cander/boxen,samsonnguyen/solium-boxen,blueplanet/my-boxen,driverdan/boxen,jae2/boxen,sgerrand/our-boxen,jeffremer/boxen,vesan/boxen,shimbaco/my-boxen,mly1999/my-boxen,juherpin/myboxen,mansfiem/boxen,apeeters/boxen,sqki/boxen,whharris/boxen,weyert/our-boxen,haeronen/my-boxen,Jaco-Pretorius/Workstation,boxen-jin/my-boxen,koppacetic/myboxen,rogerhub/our-boxen,ronco/my-tomputor,robinbowes/boxen,schlick/my-boxen,sjoeboo/boxen,ngalchonkova/lohika,panderp/boxen,ggoodyer/boxen,alecklandgraf/boxen,tatsuma/boxen,sangotaro/my-boxen,rfink/my-boxen,filipebarcos/filipebarcos-boxen,gato-omega/my-boxen,goxberry/tmux-boxen,jacobbednarz/our-boxen,jorgemancheno/boxen,donaldpiret/our-boxen,matteofigus/my-boxen,kyletns/boxen,testboxenmissinformed/boxen-test,openfcci/our-boxen,tdd/my-boxen,amitmula/boxen-test,user-tony/boxen,jcowhigjr/my-boxen,miguelespinoza/boxen,danpalmer/boxen,pfeff/my-boxen,libk3n/my-boxen,cogfor/boxen,mztaylor/our_boxen,driverdan/boxen,barkingiguana/our-boxen,mikedename/myboxen,cleblanc87/boxen,hirocaster/our-boxen,marcinkwiatkowski/ios-build-boxen,rafaelportela/my-boxen,kevcolwell/Boxen,n0ts/our-boxen,ykt/boxen-silverbox,antigremlin/my-boxen,yokulkarni/boxen,josemarluedke/neighborly-boxen,takashiyoshida/my-boxen,RohitUdayTalwalkar/IndexBoxen,xebu/boxen-experimental,zach-hu/boxen,cannfoddr/Our-Boxen,liatrio/our_boxen,jcowhigjr/my-boxen,morgante/boxen-saturn,hydra1983/my-boxen,met-office-lab/our-boxen,junior-ales/oh-my-mac,mpherg/boxen,wcorrigan/myboxen,dax70/devenv,Damienkatz/my-boxen,kenmazaika/firehose-boxen,surfacedamage/boxen,dmccown/boxen,singuerinc/singuerinc-boxen,didymu5/tommysboxen,nspire/our-boxen,fboyer/boxen,novakps/our-boxen,leveragei/boxen,domingusj/our-boxen,smh/my-boxen,hashrock-sandbox/MyBoxen,manchan/boxen,1gitGrey/boxen015,matthew-andrews/my-boxen,jdigger/boxen,dspeele/boxen,extrinsicmedia/finboxen,jrrrd/butthole,mitsurun/my-boxen,tkayo/boxen,Contegix/puppet-boxen,escott-/boxen,bobisjan/boxen,oddhill/oddboxen,debona/my-boxen,chengdh/my-boxen,all9lives/lv-boxen,padwasabimasala/my-boxen,rgpretto/my-boxen,ggoodyer/boxen,agilecreativity/boxen-2015,flatiron32/boxen,johnnyLadders/boxen,geapi/boxen,tanihito/my-boxen,qmoya/my-boxen,thenickcox/my_boxen,kallekrantz/boxen,alvinlai/boxen,mnussbaum/my_boxen,krajewf/my-boxen,saicologic/our-boxen,maxwellwall/boxentest,ofl/my-boxen,jgrau/my-boxen,sgerrand/our-boxen,scoutbrandie/my-boxen,BenjMichel/our-boxen,Glipho/boxen,flannon/boxen-kenny,flannon/boxen-kenny,dansmithy/danny-boxen,discoverydev/my-boxen,sorenmat/boxen,lumannnn/boxen,plainfingers/adfiboxen,femto/our-boxen,ap1kenobi/my-boxen,jantman/boxen,MAECProject/maec-boxen,wheresjim/my-boxen,jrrrd/butthole,onedge/my-boxen,siddhuwarrier/my-boxen,jgrau/my-boxen,robjacoby/my-boxen,Tr4pSt3R/boxen,mattr-/our-boxen,jcfigueiredo/boxen,friederikewild/boxen,jeffleeismyhero/our-boxen,korenmiklos/my-boxen,CheyneWilson/boxen,panderp/my-boxen,socialstudios/boxen,dartavion/my-boxen,albac/my-boxen,moredip/my-boxen,azumafuji/boxen,masutaka/my-boxen,carwin/boxen,cloudfour/cloudfour-boxen,vphamdev/boxen,daviderwin/boxen,erasmios/deuteron,josemarluedke/my-boxen,femto/our-boxen,dvberkel/luminis-boxen-dev,etaroza/our-boxen,pheekra/our-boxen,aeikenberry/boxen-for-me,loregood/boxen,takezou/boxen,nicolasbrechet/our-boxen,mwagg/our-boxen,yarbelk/boxen,jcarlson/cdx-boxen,ndelage/boxen,AngeloAballe/Boxen,chrisjbaik/our-boxen,fusion94/boxen,PKaung/boxen,TechEnterprises/our-boxen,ynnadrules/neuralbox,jheuer/my-boxen,wbs75/myboxen_yosemite,macboi86/boxen,kabostime/my-boxen,tfnico/my-boxen,ArpitJalan/boxen,ykhs/my-boxen,tkayo/boxen,novakps/our-boxen,missionfocus/mf-boxen,drom296/boxentest,surefire/our-boxen,jeffleeismyhero/our-boxen,patrikbreitenmoser/my_boxen,tcarmean/yosemite-boxen,kyohei-shimada/my-boxen,raychouio/Boxen,alainravet/our-boxen,rprimus/my-boxen,zach-hu/boxen,elbuo8/boxen,yatatsu/my-boxen,manbous/my-boxen,markkendall/boxen,karmicnewt/newt-boxen,k-nishijima/our-boxen,montyzukowski-temboo/our-boxen,DennisDenuto/our-boxen,kykim/our-boxen,russ/boxen,ryanwalker/my-boxen,tobyhede/my-boxen,tdd/my-boxen,appcues/our-boxen,bryfox/foxen-boxen,itismadhan/boxen,atty303/boxen,1gitGrey/boxen015,fpaula/my-boxen,jhalter/my-boxen,joe-re/my-boxen,SudoNikon/boxen,warrenbailey/ons-boxen,chris-horder/boxen,webflo/our-boxen,atsuya046/my-boxen,user-tony/my-boxen,jantman/boxen,Berico-Technologies/bt-boxen,fredva/my-boxen,leveragei/boxen,nullus/boxen,warrenbailey/ons-boxen,GoodDingo/my-boxen,bartul/boxen,lumannnn/boxen,lotsofcode/my-boxen,pixeldetective/myboxen,keynodes/my-boxen,jdwolk/my-boxen,kevronthread/boxen-test,italoag/boxen,fboyer/boxen,nevstokes/boxen,joshbeard/boxen,maxdeviant/boxen,chrisng/boxen,matteofigus/my-boxen,aedelmangh/thdboxen,juherpin/myboxen,leehanel/my_boxen,micalexander/boxen,freshvolk/ballin-meme-boxen,lixef/my-boxen,jamesperet/my-boxen,levithomason/my-boxen,darvin/apportable-boxen,andrewhao/our-boxen,arnoldsandoval/our-boxen,HalfdanJ/Boxen,ryanswood/our-boxen,nickb-minted/boxen,ajordanow/our-boxen,filaraujo/our-boxen,jfx41/voraa,miguelscopely/boxen,uniite/my-boxen,erickreutz/our-boxen,motns/my-boxen,wkimeria/spectre,taoistmath/USSBoxen,cerodriguezl/my-boxen,rafaelfranca/my-boxen,fefranca/boxen,fasrc/boxen,mohamedhaleem/myboxen,smcingvale/my-boxen,take/boxen,slucero/my-boxen,nrako/my-boxen,Royce/my-boxen,miguelespinoza/boxen,pate/boxen,EmptyClipGaming/our-boxen,g12r/bx,mozilla/ambient-boxen,digitaljamfactory/boxen,dliggat/boxen-old,riveramj/boxen,ckelly/my-boxen,manchan/boxen,danielrob/my-boxen,jpogran/puppetlabs-boxen,phase2/our-confroom-boxen,gravityrail/our-boxen,1337807/my-boxen,vkrishnasamy/vkboxen,jak/boxen,uniite/my-boxen,minatsu/my-boxen,haeronen/my-boxen,jp-a/boxen,jandoubek/boxen,0xabad1deaf/boxen,jsmitley/boxen,charleshbaker/chb-boxen,traethethird/boxen-python,alecklandgraf/boxen,href/boxen,pamo/boxen-mini,mohamedhaleem/myboxen,jtjurick/DEPRECATED--boxen,woowee/my-boxen,natewalck/my-boxen,jtjurick/DEPRECATED--boxen2,threetreeslight/my-boxen,surfacedamage/boxen,alf/boxen,kaneshin/boxen,lixef/my-boxen,jhuston/our-boxen,abuxton/our-boxen,clarkbreyman/my-boxen,dstack27/MyBoxenBootstrap,chollier/my-boxen,w4ik/millermac-boxen,nimashariatian/our-boxen,ysoussov/mah-boxen,macboi86/boxen,portaltechdevenv/tbsdevenvtest,thomaswelton/old-boxen,thesmart/UltimateChart-Boxen,wednesdayagency/boxen,radeksimko/our-boxen,quintel/boxen,nikersch/junxboxen,huit/cloudeng-boxen,josemvidal/my-boxen,scottstanfield/boxen,fredva/my-boxen,dwpdigitaltech/dwp-boxen,hemanpagey/heman_boxen,alphagov/gds-boxen,Couto/my-boxen,saicologic/our-boxen,empty23/myboxen,user-tony/my-boxen,snieto/myboxen,andrzejsliwa/our-boxen,puppetlabs/eduteam-boxen,clarkbreyman/my-boxen,arnoldsandoval/our-boxen,jtjurick/DEPRECATED--boxen,mootpointer/my-boxen,garycrawford/my-boxen,xudejian/myboxen,debona/my-boxen,marzagao/our-boxen,thorerik/our-boxen,usmanismail/boxen,csaura/my_boxen,musha68k/my-boxen,bentrevor/my-boxen,jcowhigjr/our-boxen,ricrios11/Bootstrapping,drfmunoz/our-boxen,meestaben/our-boxen,davidpelaez/myboxen,nagas/my-boxen,gravityrail/our-boxen,WeAreMiles/myBoxen,TaylorMonacelli/our-boxen,topsterio/boxen,meltmedia/boxen,DylanSchell/boxen,takashiyoshida/my-boxen,jcinnamond/my-boxen,bradleywright/my-boxen,hirose504/boxen,jde/boxen,user-tony/my-boxen,afmacedo/boxen,sreid/my-boxen,boxen-jin/my-boxen,kosmotaur/boxen,kevintfly/boxen_test,oke-ya/boxen,masawo/my-boxen,AnneTheAgile/AnneTheAgile-boxen,featherweightlabs/our-boxen,bmihelac/our-boxen,hydradevelopment/our-boxen,jtjurick/DEPRECATED--boxen2,bayster/boxen,eddieridwan/my-boxen,bigashman/boxen,bd808/my-boxen,nealio42/macbookair,jabley/our-boxen,cph/boxen,sonnymai/my-boxen,zacharyrankin/my-boxen,dfwarden/gsu-boxen,mhkt/my-boxen,scottelundgren/my-boxen,rmzi/rmzi_boxen,vipulnsward/boxen-repo,RaginBajin/my-osx-setup,slucero/my-boxen,justinberry/justin-boxen,keynodes/my-boxen,schani/xamarin-boxen,rozza/my-boxen,codekipple/my-boxen,flannon/dh-boxen,jpamaya/myboxen,xudejian/myboxen,Johaned/my_boxen,mrbrett/bretts-boxen,exedre/my-boxen,ryan-robeson/osx-workstation,AlabamaMike/my-boxen,arjunvenkat/boxen,yakimant/boxen,lacroixdesign/our-boxen,mnussbaum/my_boxen,AntiTyping/boxen-workstation,arntzel/BoxenRepo,jkemsley/boxen-def,kholloway/our-boxen,mkilpatrick/boxen_test,raymaung/ray-boxen,stickyworld/boxen,Yeriwyn/my-boxen,albertofem/boxen,cdenneen/our-boxen,lotsofcode/my-boxen,eadmundo/my-boxen,topsterio/boxen,kieranja/mac,sahilm/boxen,atsuya046/my-boxen,kmohr/my-boxen,skothavale/workboxen,vshu/vshu-boxen,flannon/boxen-dyson,mroth/my-boxen,mingderwang/our-boxen,nickpellant/our-boxen,petronbot/our-boxen,WeAreMiles/myBoxen,snieto/boxen,nixterrimus/boxen,accessible-ly/myboxen,blueplanet/my-boxen,rudazhan/my-boxen,BrandonCummings/BoxenRepo,digitaljamfactory/boxen,joelhooks/my-boxen,mansfiem/boxen,plyfe/our-boxen,drmaruyama/my-boxen,mmasashi/my-boxen,jjtorroglosa/my-boxen,pathable/pathable-boxen,ymmty/my-boxen,platanus/our-boxen,cubicmushroom/our-boxen,alvinlai/boxen,theand/our-boxen,ryotarai/my-boxen,jervi/my-boxen,jenscobie/our-boxen,thomaswelton/boxen,jacebrowning/my-boxen,jacobboland/my-boxen,tischler/tims-boxen,jonmosco/boxen-test,daviderwin/boxen,bitbier/my-boxen,pekepeke/boxen,zer0bytescorp/boxen,zamoose/boxen,benja-M-1/my-boxen,rmzi/rmzi_boxen,BenjMichel/our-boxen,mischizzle/boxen,blacktorn/my-boxen,supernovae/boxen,elbuo8/boxen,marano/my-boxen,berryp/my-boxen,pfeff/my-boxen,bartvanremortele/my-boxen,jingweno/owen-boxen,alserik/a-boxen,hjfbynara/hjf-boxen,oke-ya/boxen,jeffremer/boxen,ldickerson/Boxen,mootpointer/my-boxen,edk/boxen-test,imdhmd/my-boxen,ccelebi/boxen,blackcoffee/boxen,mattdelves/boxen,ldickerson/Boxen,kvalle/my-boxen,duboff/alphabox,dfwarden/gsu-boxen,hashrock-sandbox/MyBoxen,jeffleeismyhero/boxen,danielrob/my-boxen,geoffharcourt/boxen,rmzi/rmzi_boxen,rickard-von-essen/my-boxen,stedwards/our-boxen,blamattina/our-boxen,eadmundo/my-boxen,kskotetsu/my-boxen,Sugitaku/my-boxen,krohrbaugh/my-boxen,bgerstle/my-boxen,marzagao/our-boxen,fordlee404/code-boxen,xebu/boxen-minimal,tsphethean/my-boxen,Tombar/our-boxen,kylemclaren/boxen,karrde00/oberd-boxen,poochiethecat/my-boxen,JF0h/boxen,waisbrot/boxen,pamo/boxen-mini,smozely/our-boxen,belighted/our-boxen,thesmart/UltimateChart-Boxen,aisensiy/boxen,kajohansen/our-boxen,dax70/devenv,ryanswood/our-boxen,blongden/my-boxen,pekepeke/boxen,muuran/my-boxen,SBoudrias/my-boxen,onewheelskyward/boxen,mmunhall/boxen-dev,webtrainingmx/boxen-teacher,jtjurick/boxen-custom,bytey/boxen,rujiali/ibis,philipsdoctor/try-boxen,russ/boxen,tarebyte/my-boxen,sqki/boxen,weyert/our-boxen,nealio42/macbookair,mikeycmccarthy/our-boxen,hparra/my-boxen,bluesalt/my-boxen,redbarron23/myboxen,abuxton/our-boxen,smh/my-boxen,sangotaro/my-boxen,alexmuller/personal-boxen,joelhooks/my-boxen,phase2/our-confroom-boxen,bjarkehs/my-boxen,bartvanremortele/my-boxen,borcean/my-boxen,jonnangle/my-boxen,jcinnamond/my-boxen,elovelan/our-boxen,eschapp/boxen,stedwards/our-boxen,miguelespinoza/boxen,jduhamel/my-boxen,tetsuo692/my-boxen,mojao/my-boxen,rootandflow/our-boxen,kidylee/our-boxen,jasonamyers/our-boxen,djui/boxen,flannon/dh-boxen,artemdinaburg/boxentest,keynodes/my-boxen,seehafer/boxen,ktrujillo/boxen,atomaka/my-boxen,atayarani/myboxen,geapi/boxen,bagodonuts/scatola-boxen,bobisjan/boxen,goncalopereira/boxen,balloon-studios/balloon-boxen,adwitz/boxen-setup,ronco/my-tomputor
markdown
## Code Before: Per-user manifests live in `modules/people/manifests/$login.pp`, where `$login` is a GitHub login. A simple user manifest example: ```puppet class people::jbarnette { include emacs $home = '/Users/jbarnette' $my = "${home}/my" $dotfiles = "${my}/dotfiles" repository { $dotfiles: source => 'jbarnette/dotfiles', require => File[$my] } } ``` ## Instruction: Update docs a bit for people example ## Code After: Per-user manifests live in `modules/people/manifests/$login.pp`, where `$login` is a GitHub login. A simple user manifest example: ```puppet class people::jbarnette { include emacs # requires emacs module in Puppetfile include sparrow # requires sparrow module in Puppetfile $home = '/Users/jbarnette' $my = "${home}/my" $dotfiles = "${my}/dotfiles" repository { $dotfiles: source => 'jbarnette/dotfiles', require => File[$my] } } ```
Per-user manifests live in `modules/people/manifests/$login.pp`, where `$login` is a GitHub login. A simple user manifest example: ```puppet class people::jbarnette { - include emacs + include emacs # requires emacs module in Puppetfile + include sparrow # requires sparrow module in Puppetfile $home = '/Users/jbarnette' $my = "${home}/my" $dotfiles = "${my}/dotfiles" repository { $dotfiles: source => 'jbarnette/dotfiles', require => File[$my] } } ```
3
0.166667
2
1
cb01ae3411fb5650d92f50cd9b7f09aed02530dd
perfkitbenchmarker/data/run_hpcg.sh
perfkitbenchmarker/data/run_hpcg.sh
HPCG_DIR=`pwd` DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"` MPIFLAGS="--mca btl tcp,self" # just to get rid of warning on psg cluster node wo proper IB sw installed HPCG_BIN="hpcg" echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** " mpirun {{ ALLOW_RUN_AS_ROOT }} -np $NUM_GPUS $MPIFLAGS -hostfile HOSTFILE $HPCG_DIR/$HPCG_BIN | tee ./results/xhpcg-$DATETIME-output.txt
HPCG_DIR=`pwd` DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"` # Just to get rid of warning on psg cluster node wo proper IB sw installed # Use mca btl_tcp_if_exclude to skip docker network in DLVM. MPIFLAGS="--mca btl tcp,self --mca btl_tcp_if_exclude docker0,lo" HPCG_BIN="hpcg" echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** " mpirun {{ ALLOW_RUN_AS_ROOT }} -np $NUM_GPUS $MPIFLAGS -hostfile HOSTFILE $HPCG_DIR/$HPCG_BIN | tee ./results/xhpcg-$DATETIME-output.txt
Use mca btl_tcp_if_exclude to skip docker network in HPCG benchmark.
Use mca btl_tcp_if_exclude to skip docker network in HPCG benchmark. PiperOrigin-RevId: 347691671
Shell
apache-2.0
GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker
shell
## Code Before: HPCG_DIR=`pwd` DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"` MPIFLAGS="--mca btl tcp,self" # just to get rid of warning on psg cluster node wo proper IB sw installed HPCG_BIN="hpcg" echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** " mpirun {{ ALLOW_RUN_AS_ROOT }} -np $NUM_GPUS $MPIFLAGS -hostfile HOSTFILE $HPCG_DIR/$HPCG_BIN | tee ./results/xhpcg-$DATETIME-output.txt ## Instruction: Use mca btl_tcp_if_exclude to skip docker network in HPCG benchmark. PiperOrigin-RevId: 347691671 ## Code After: HPCG_DIR=`pwd` DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"` # Just to get rid of warning on psg cluster node wo proper IB sw installed # Use mca btl_tcp_if_exclude to skip docker network in DLVM. MPIFLAGS="--mca btl tcp,self --mca btl_tcp_if_exclude docker0,lo" HPCG_BIN="hpcg" echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** " mpirun {{ ALLOW_RUN_AS_ROOT }} -np $NUM_GPUS $MPIFLAGS -hostfile HOSTFILE $HPCG_DIR/$HPCG_BIN | tee ./results/xhpcg-$DATETIME-output.txt
HPCG_DIR=`pwd` DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"` - MPIFLAGS="--mca btl tcp,self" # just to get rid of warning on psg cluster node wo proper IB sw installed ? -------------------------------- ^ + # Just to get rid of warning on psg cluster node wo proper IB sw installed ? ^ + # Use mca btl_tcp_if_exclude to skip docker network in DLVM. + MPIFLAGS="--mca btl tcp,self --mca btl_tcp_if_exclude docker0,lo" HPCG_BIN="hpcg" echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** " mpirun {{ ALLOW_RUN_AS_ROOT }} -np $NUM_GPUS $MPIFLAGS -hostfile HOSTFILE $HPCG_DIR/$HPCG_BIN | tee ./results/xhpcg-$DATETIME-output.txt
4
0.4
3
1
ef6c664ff706656dcdf8c4161244114f1ce39e45
doc/CMakeLists.txt
doc/CMakeLists.txt
if( ${DOXYGEN_FOUND} STREQUAL "YES" ) if( ${LATEX_FOUND} ) add_custom_target( doc ${DOXYGEN_EXECUTABLE} "doxyfile" COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" COMMENT "Generating API documentation with Doxygen." VERBATIM ) endif() endif() install(FILES default.species DESTINATION .) if(WIN32) if( ${BUILD_DB_UPLOADER} ) install(FILES default.input_database DESTINATION .) install(FILES default.output_database DESTINATION .) endif() endif()
if( ${DOXYGEN_FOUND} STREQUAL "YES" ) if( ${LATEX_FOUND} ) add_custom_target( doc ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doxyfile" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.." COMMENT "Generating API documentation with Doxygen." VERBATIM ) endif() endif() install(FILES default.species DESTINATION .) if(WIN32) if( ${BUILD_DB_UPLOADER} ) install(FILES default.input_database DESTINATION .) install(FILES default.output_database DESTINATION .) endif() endif()
Remove call to make.bat for linux systems
Remove call to make.bat for linux systems
Text
mit
BGWoodward/FishDetector
text
## Code Before: if( ${DOXYGEN_FOUND} STREQUAL "YES" ) if( ${LATEX_FOUND} ) add_custom_target( doc ${DOXYGEN_EXECUTABLE} "doxyfile" COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" COMMENT "Generating API documentation with Doxygen." VERBATIM ) endif() endif() install(FILES default.species DESTINATION .) if(WIN32) if( ${BUILD_DB_UPLOADER} ) install(FILES default.input_database DESTINATION .) install(FILES default.output_database DESTINATION .) endif() endif() ## Instruction: Remove call to make.bat for linux systems ## Code After: if( ${DOXYGEN_FOUND} STREQUAL "YES" ) if( ${LATEX_FOUND} ) add_custom_target( doc ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doxyfile" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.." COMMENT "Generating API documentation with Doxygen." VERBATIM ) endif() endif() install(FILES default.species DESTINATION .) if(WIN32) if( ${BUILD_DB_UPLOADER} ) install(FILES default.input_database DESTINATION .) install(FILES default.output_database DESTINATION .) endif() endif()
if( ${DOXYGEN_FOUND} STREQUAL "YES" ) if( ${LATEX_FOUND} ) add_custom_target( doc + ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doxyfile" - ${DOXYGEN_EXECUTABLE} "doxyfile" - COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat" - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.." ? +++ COMMENT "Generating API documentation with Doxygen." VERBATIM ) endif() endif() install(FILES default.species DESTINATION .) if(WIN32) if( ${BUILD_DB_UPLOADER} ) install(FILES default.input_database DESTINATION .) install(FILES default.output_database DESTINATION .) endif() endif()
5
0.263158
2
3
7baac2883aa6abc0f1f458882025ba1d0e9baab2
app/migrations/versions/4ef20b76cab1_.py
app/migrations/versions/4ef20b76cab1_.py
# revision identifiers, used by Alembic. revision = '4ef20b76cab1' down_revision = '55004b0f00d6' from alembic import op import sqlalchemy as sa def upgrade(): op.execute("CREATE EXTENSION postgis;") op.execute("CREATE EXTENSION postgis_topology;") def downgrade(): op.execute("DROP EXTENSION postgis_topology;") op.execute("DROP EXTENSION postgis;")
# revision identifiers, used by Alembic. revision = '4ef20b76cab1' down_revision = '55004b0f00d6' from alembic import op import sqlalchemy as sa def upgrade(): op.execute("CREATE EXTENSION IF NOT EXISTS postgis;") op.execute("CREATE EXTENSION IF NOT EXISTS postgis_topology;") def downgrade(): op.execute("DROP EXTENSION IF EXISTS postgis_topology;") op.execute("DROP EXTENSION IF EXISTS postgis;")
Add extra code to PostGIS migration to only create extensions if they're not already there. Drop on rollback only if extensions exist.
Add extra code to PostGIS migration to only create extensions if they're not already there. Drop on rollback only if extensions exist.
Python
mit
openchattanooga/cpd-zones-old,openchattanooga/cpd-zones-old
python
## Code Before: # revision identifiers, used by Alembic. revision = '4ef20b76cab1' down_revision = '55004b0f00d6' from alembic import op import sqlalchemy as sa def upgrade(): op.execute("CREATE EXTENSION postgis;") op.execute("CREATE EXTENSION postgis_topology;") def downgrade(): op.execute("DROP EXTENSION postgis_topology;") op.execute("DROP EXTENSION postgis;") ## Instruction: Add extra code to PostGIS migration to only create extensions if they're not already there. Drop on rollback only if extensions exist. ## Code After: # revision identifiers, used by Alembic. revision = '4ef20b76cab1' down_revision = '55004b0f00d6' from alembic import op import sqlalchemy as sa def upgrade(): op.execute("CREATE EXTENSION IF NOT EXISTS postgis;") op.execute("CREATE EXTENSION IF NOT EXISTS postgis_topology;") def downgrade(): op.execute("DROP EXTENSION IF EXISTS postgis_topology;") op.execute("DROP EXTENSION IF EXISTS postgis;")
# revision identifiers, used by Alembic. revision = '4ef20b76cab1' down_revision = '55004b0f00d6' from alembic import op import sqlalchemy as sa def upgrade(): - op.execute("CREATE EXTENSION postgis;") + op.execute("CREATE EXTENSION IF NOT EXISTS postgis;") ? ++++++++++++++ - op.execute("CREATE EXTENSION postgis_topology;") + op.execute("CREATE EXTENSION IF NOT EXISTS postgis_topology;") ? ++++++++++++++ def downgrade(): - op.execute("DROP EXTENSION postgis_topology;") + op.execute("DROP EXTENSION IF EXISTS postgis_topology;") ? ++++++++++ - op.execute("DROP EXTENSION postgis;") + op.execute("DROP EXTENSION IF EXISTS postgis;") ? ++++++++++
8
0.5
4
4
212d8653cddf39aaa4594c55de3dd3afe6fdb993
lib/hato/httpd.rb
lib/hato/httpd.rb
require 'json' require 'sinatra' require 'sinatra/logger' module Hato class Httpd def initialize(observer, config) @observer = observer @config = config end def run App.set(:observer, @observer) App.set(:api_key, @config.api_key) Rack::Handler::WEBrick.run( App.new, Host: @config.host || '0.0.0.0', Port: @config.port || 9699, ) end class App < Sinatra::Base enable :logging before do if settings.api_key != params[:api_key] halt 403, JSON.dump( status: :error, message: 'API key is wrong. Confirm your API key setting of server/client.', ) end end post "/notify" do settings.observer.update( tag: params[:tag], message: params[:message], logger: logger, ) JSON.dump( status: :success, message: 'Successfully sent the message you notified to me.', ) end end end end
require 'json' require 'sinatra' require 'sinatra/logger' module Hato class Httpd def initialize(observer, config) @observer = observer @config = config end def run App.set(:observer, @observer) App.set(:api_key, @config.api_key) Rack::Handler::WEBrick.run( App.new, Host: @config.host || '0.0.0.0', Port: @config.port || 9699, ) end class App < Sinatra::Base enable :logging before '/.+' do if settings.api_key && (settings.api_key != params[:api_key]) halt 403, JSON.dump( status: :error, message: 'API key is wrong. Confirm your API key setting of server/client.', ) end end get '/' do 'Hato https://github.com/kentaro/hato' end post "/notify" do settings.observer.update( tag: params[:tag], message: params[:message], logger: logger, ) JSON.dump( status: :success, message: 'Successfully sent the message you notified to me.', ) end end end end
Allow users to visit to '/' without API key;;
Allow users to visit to '/' without API key;;
Ruby
mit
kentaro/hato
ruby
## Code Before: require 'json' require 'sinatra' require 'sinatra/logger' module Hato class Httpd def initialize(observer, config) @observer = observer @config = config end def run App.set(:observer, @observer) App.set(:api_key, @config.api_key) Rack::Handler::WEBrick.run( App.new, Host: @config.host || '0.0.0.0', Port: @config.port || 9699, ) end class App < Sinatra::Base enable :logging before do if settings.api_key != params[:api_key] halt 403, JSON.dump( status: :error, message: 'API key is wrong. Confirm your API key setting of server/client.', ) end end post "/notify" do settings.observer.update( tag: params[:tag], message: params[:message], logger: logger, ) JSON.dump( status: :success, message: 'Successfully sent the message you notified to me.', ) end end end end ## Instruction: Allow users to visit to '/' without API key;; ## Code After: require 'json' require 'sinatra' require 'sinatra/logger' module Hato class Httpd def initialize(observer, config) @observer = observer @config = config end def run App.set(:observer, @observer) App.set(:api_key, @config.api_key) Rack::Handler::WEBrick.run( App.new, Host: @config.host || '0.0.0.0', Port: @config.port || 9699, ) end class App < Sinatra::Base enable :logging before '/.+' do if settings.api_key && (settings.api_key != params[:api_key]) halt 403, JSON.dump( status: :error, message: 'API key is wrong. Confirm your API key setting of server/client.', ) end end get '/' do 'Hato https://github.com/kentaro/hato' end post "/notify" do settings.observer.update( tag: params[:tag], message: params[:message], logger: logger, ) JSON.dump( status: :success, message: 'Successfully sent the message you notified to me.', ) end end end end
require 'json' require 'sinatra' require 'sinatra/logger' module Hato class Httpd def initialize(observer, config) @observer = observer @config = config end def run App.set(:observer, @observer) App.set(:api_key, @config.api_key) Rack::Handler::WEBrick.run( App.new, Host: @config.host || '0.0.0.0', Port: @config.port || 9699, ) end class App < Sinatra::Base enable :logging - before do + before '/.+' do ? ++++++ - if settings.api_key != params[:api_key] + if settings.api_key && (settings.api_key != params[:api_key]) ? +++++++++++++++++++++ + halt 403, JSON.dump( status: :error, message: 'API key is wrong. Confirm your API key setting of server/client.', ) end + end + + get '/' do + 'Hato https://github.com/kentaro/hato' end post "/notify" do settings.observer.update( tag: params[:tag], message: params[:message], logger: logger, ) JSON.dump( status: :success, message: 'Successfully sent the message you notified to me.', ) end end end end
8
0.163265
6
2
28b6cf8b159b353434bce9f9644937483dd04860
docker-entrypoint.sh
docker-entrypoint.sh
mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;" rails s
mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;" bundle exec rails s
Call rails server with bundle exec
Call rails server with bundle exec
Shell
mit
tomatoes-app/tomatoes,tomatoes-app/tomatoes,tomatoes-app/tomatoes,tomatoes-app/tomatoes
shell
## Code Before: mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;" rails s ## Instruction: Call rails server with bundle exec ## Code After: mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;" bundle exec rails s
mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;" - rails s + bundle exec rails s
2
0.666667
1
1
b05662b9ef789d58867ce62de041ce59434107c7
addon/adapters/user.js
addon/adapters/user.js
import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ findHasMany(store, snapshot, url, relationship) { var id = snapshot.id; var type = snapshot.modelName; url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany')); // If fetching user nodes, will embed root and parent. (@hmoco 12-27-17: why?) if (relationship.type === 'node') { url += '?embed=parent&embed=root'; // TODO: revisit this, we shouldnt hard code any embeds if (snapshot.record.get('__' + relationship.key + 'QueryParams')) { url += '&' + Ember.$.param(snapshot.record.get('__' + relationship.key + 'QueryParams')); } } else if (snapshot.record.get('query-params')) { url += '?' + Ember.$.param(snapshot.record.get('query-params')); } return this.ajax(url, 'GET'); } });
import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ });
Remove unused findHasMany method on osfadapter
Remove unused findHasMany method on osfadapter
JavaScript
apache-2.0
baylee-d/ember-osf,CenterForOpenScience/ember-osf,baylee-d/ember-osf,jamescdavis/ember-osf,binoculars/ember-osf,CenterForOpenScience/ember-osf,jamescdavis/ember-osf,binoculars/ember-osf
javascript
## Code Before: import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ findHasMany(store, snapshot, url, relationship) { var id = snapshot.id; var type = snapshot.modelName; url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany')); // If fetching user nodes, will embed root and parent. (@hmoco 12-27-17: why?) if (relationship.type === 'node') { url += '?embed=parent&embed=root'; // TODO: revisit this, we shouldnt hard code any embeds if (snapshot.record.get('__' + relationship.key + 'QueryParams')) { url += '&' + Ember.$.param(snapshot.record.get('__' + relationship.key + 'QueryParams')); } } else if (snapshot.record.get('query-params')) { url += '?' + Ember.$.param(snapshot.record.get('query-params')); } return this.ajax(url, 'GET'); } }); ## Instruction: Remove unused findHasMany method on osfadapter ## Code After: import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ });
import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ - findHasMany(store, snapshot, url, relationship) { - var id = snapshot.id; - var type = snapshot.modelName; - - url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany')); - - // If fetching user nodes, will embed root and parent. (@hmoco 12-27-17: why?) - if (relationship.type === 'node') { - url += '?embed=parent&embed=root'; - // TODO: revisit this, we shouldnt hard code any embeds - if (snapshot.record.get('__' + relationship.key + 'QueryParams')) { - url += '&' + Ember.$.param(snapshot.record.get('__' + relationship.key + 'QueryParams')); - } - } else if (snapshot.record.get('query-params')) { - url += '?' + Ember.$.param(snapshot.record.get('query-params')); - } - return this.ajax(url, 'GET'); - } });
18
0.782609
0
18
ab9f0a0b893fbef1ddd53f40b3e645c1b3fd60d1
lib/learn/cli.rb
lib/learn/cli.rb
module Learn class CLI < Thor desc "[test] [options]", "Run a lesson's test suite" def test(opts=nil) system("learn-test #{opts}") end end end
module Learn class CLI < Thor desc "[test] [options]", "Run a lesson's test suite" long_desc <<-LONGDESC `learn [test] [options]` will run your lesson's test suite. You can supply the following options when running Jasmine tests: -n, --[no-]color # Turn off color output -l, --local # Don't push results to Learn -b, --browser # Run tests in browser -o, --out FILE # Specify an output file for your test results -s, --skip # Don't run dependency checks When running an RSpec test suite, all normal RSpec options can be passed in. LONGDESC def test(opts=nil) system("learn-test #{opts}") end end end
Add better description for learn test
Add better description for learn test
Ruby
mit
learn-co/learn-co
ruby
## Code Before: module Learn class CLI < Thor desc "[test] [options]", "Run a lesson's test suite" def test(opts=nil) system("learn-test #{opts}") end end end ## Instruction: Add better description for learn test ## Code After: module Learn class CLI < Thor desc "[test] [options]", "Run a lesson's test suite" long_desc <<-LONGDESC `learn [test] [options]` will run your lesson's test suite. You can supply the following options when running Jasmine tests: -n, --[no-]color # Turn off color output -l, --local # Don't push results to Learn -b, --browser # Run tests in browser -o, --out FILE # Specify an output file for your test results -s, --skip # Don't run dependency checks When running an RSpec test suite, all normal RSpec options can be passed in. LONGDESC def test(opts=nil) system("learn-test #{opts}") end end end
module Learn class CLI < Thor desc "[test] [options]", "Run a lesson's test suite" + long_desc <<-LONGDESC + `learn [test] [options]` will run your lesson's test suite. + + You can supply the following options when running Jasmine tests: + + -n, --[no-]color # Turn off color output + -l, --local # Don't push results to Learn + -b, --browser # Run tests in browser + -o, --out FILE # Specify an output file for your test results + -s, --skip # Don't run dependency checks + + When running an RSpec test suite, all normal RSpec options can be + passed in. + LONGDESC def test(opts=nil) system("learn-test #{opts}") end end end
14
1.75
14
0
0a9f2d46325ce6856a3979127390f2e48357abd9
schedule2stimuli.py
schedule2stimuli.py
import csv import pprint p = 0 # read schedule (from SCRT) schedule_f = 'schedule_' + str(p) inf = open(schedule_f,'r') for line in inf.readlines(): line = line.rstrip() schedule = line.split(' ') inf.close() # allocate stimuli a = 0 b = [] phase = '' for session in range(1,36): print "%s" % session blocks = '' previous = phase phase = schedule[session - 1] if phase == 'B': if phase != previous: transition = session % 10 b = [transition] repeat = 0 if repeat == 3: b.append((b[-1] + 1) % 10) repeat = 0 a = (b[-1] + 1) % 10 repeat += 1 else: a = session % 10 print ',' . join(map(str,b)) print str(a)
import csv import pprint p = 0 # read schedule (from SCRT) schedule_f = 'schedule_' + str(p) inf = open(schedule_f,'r') for line in inf.readlines(): line = line.rstrip() schedule = line.split(' ') inf.close() # allocate stimuli and write csv a = 0 b = [] phase = '' csvfile = open('stimuli_' + str(p) + '.csv', 'wb') writer = csv.writer(csvfile, delimiter=',') for session in range(1,36): writer.writerow([session]) blocks = '' previous = phase phase = schedule[session - 1] if phase == 'B': if phase != previous: transition = session % 10 b = [transition] repeat = 0 if repeat == 3: b.append((b[-1] + 1) % 10) repeat = 0 a = (b[-1] + 1) % 10 repeat += 1 else: a = session % 10 writer.writerow(b) writer.writerow([a])
Write stimuli schedule to csv file.
Write stimuli schedule to csv file.
Python
cc0-1.0
earcanal/dotprobe,earcanal/dotprobe,earcanal/dotprobe
python
## Code Before: import csv import pprint p = 0 # read schedule (from SCRT) schedule_f = 'schedule_' + str(p) inf = open(schedule_f,'r') for line in inf.readlines(): line = line.rstrip() schedule = line.split(' ') inf.close() # allocate stimuli a = 0 b = [] phase = '' for session in range(1,36): print "%s" % session blocks = '' previous = phase phase = schedule[session - 1] if phase == 'B': if phase != previous: transition = session % 10 b = [transition] repeat = 0 if repeat == 3: b.append((b[-1] + 1) % 10) repeat = 0 a = (b[-1] + 1) % 10 repeat += 1 else: a = session % 10 print ',' . join(map(str,b)) print str(a) ## Instruction: Write stimuli schedule to csv file. ## Code After: import csv import pprint p = 0 # read schedule (from SCRT) schedule_f = 'schedule_' + str(p) inf = open(schedule_f,'r') for line in inf.readlines(): line = line.rstrip() schedule = line.split(' ') inf.close() # allocate stimuli and write csv a = 0 b = [] phase = '' csvfile = open('stimuli_' + str(p) + '.csv', 'wb') writer = csv.writer(csvfile, delimiter=',') for session in range(1,36): writer.writerow([session]) blocks = '' previous = phase phase = schedule[session - 1] if phase == 'B': if phase != previous: transition = session % 10 b = [transition] repeat = 0 if repeat == 3: b.append((b[-1] + 1) % 10) repeat = 0 a = (b[-1] + 1) % 10 repeat += 1 else: a = session % 10 writer.writerow(b) writer.writerow([a])
import csv import pprint p = 0 # read schedule (from SCRT) schedule_f = 'schedule_' + str(p) inf = open(schedule_f,'r') for line in inf.readlines(): line = line.rstrip() schedule = line.split(' ') inf.close() - # allocate stimuli - a = 0 - b = [] + # allocate stimuli and write csv + a = 0 + b = [] - phase = '' + phase = '' ? ++ + csvfile = open('stimuli_' + str(p) + '.csv', 'wb') + writer = csv.writer(csvfile, delimiter=',') for session in range(1,36): - print "%s" % session + writer.writerow([session]) blocks = '' previous = phase phase = schedule[session - 1] if phase == 'B': if phase != previous: transition = session % 10 b = [transition] repeat = 0 if repeat == 3: b.append((b[-1] + 1) % 10) repeat = 0 a = (b[-1] + 1) % 10 repeat += 1 else: a = session % 10 - print ',' . join(map(str,b)) - print str(a) + writer.writerow(b) + writer.writerow([a])
16
0.432432
9
7
36c61d36a4c248165d76c01905ed90f585879245
src/controllers/homeController.ts
src/controllers/homeController.ts
import { Request, Response } from 'express'; import type { IBoard } from '../types/trello'; import { TrelloService } from '../services/trelloService'; export function index(_: Request, res: Response): Response { return res.send(':)'); } export async function healthCheck(_: Request, res: Response): Promise<Response> { try { const trello = new TrelloService(); const boards = await trello.listBoards(); return res.json({ ok: true, boards: boards.map((board: IBoard) => board.name), }); } catch (ex) { return res.status(500).json({ ok: false, err: { code: ex.code, message: ex.message, stack: ex.stack, }, }); } }
import { Request, Response } from 'express'; import type { IBoard } from '../types/trello'; import { TrelloService } from '../services/trelloService'; export function index(_: Request, res: Response): Response { return res.send(`:)<br />${process.env.GIT_REV || ''}`); } export async function healthCheck(_: Request, res: Response): Promise<Response> { try { const trello = new TrelloService(); const boards = await trello.listBoards(); return res.json({ ok: true, boards: boards.map((board: IBoard) => board.name), }); } catch (ex) { return res.status(500).json({ ok: false, err: { code: ex.code, message: ex.message, stack: ex.stack, }, }); } }
Include git hash for index view
Include git hash for index view
TypeScript
bsd-3-clause
mpirik/github-trello-card-events,mpirik/github-trello-card-events,mpirik/github-trello-card-events
typescript
## Code Before: import { Request, Response } from 'express'; import type { IBoard } from '../types/trello'; import { TrelloService } from '../services/trelloService'; export function index(_: Request, res: Response): Response { return res.send(':)'); } export async function healthCheck(_: Request, res: Response): Promise<Response> { try { const trello = new TrelloService(); const boards = await trello.listBoards(); return res.json({ ok: true, boards: boards.map((board: IBoard) => board.name), }); } catch (ex) { return res.status(500).json({ ok: false, err: { code: ex.code, message: ex.message, stack: ex.stack, }, }); } } ## Instruction: Include git hash for index view ## Code After: import { Request, Response } from 'express'; import type { IBoard } from '../types/trello'; import { TrelloService } from '../services/trelloService'; export function index(_: Request, res: Response): Response { return res.send(`:)<br />${process.env.GIT_REV || ''}`); } export async function healthCheck(_: Request, res: Response): Promise<Response> { try { const trello = new TrelloService(); const boards = await trello.listBoards(); return res.json({ ok: true, boards: boards.map((board: IBoard) => board.name), }); } catch (ex) { return res.status(500).json({ ok: false, err: { code: ex.code, message: ex.message, stack: ex.stack, }, }); } }
import { Request, Response } from 'express'; import type { IBoard } from '../types/trello'; import { TrelloService } from '../services/trelloService'; export function index(_: Request, res: Response): Response { - return res.send(':)'); + return res.send(`:)<br />${process.env.GIT_REV || ''}`); } export async function healthCheck(_: Request, res: Response): Promise<Response> { try { const trello = new TrelloService(); const boards = await trello.listBoards(); return res.json({ ok: true, boards: boards.map((board: IBoard) => board.name), }); } catch (ex) { return res.status(500).json({ ok: false, err: { code: ex.code, message: ex.message, stack: ex.stack, }, }); } }
2
0.071429
1
1
16c9d81e8b63b67c9749dd9632733f75e7f87d2c
.travis.yml
.travis.yml
language: ruby sudo: false cache: bundler script: bundle exec rake test before_install: - gem i bundler -v=1.10.3 before_script: - psql -c 'create database activerecord_correctable;' -U postgres rvm: - 2.1 - 2.2.2 - ruby-head gemfile: - gemfiles/activerecord_40.gemfile - gemfiles/activerecord_41.gemfile - gemfiles/activerecord_42.gemfile - gemfiles/activerecord_edge.gemfile env: - DATABASE_ADAPTER=sqlite3 - DATABASE_ADAPTER=postgres # - DATABASE_ADAPTER=mysql2 matrix: matrix: exclude: - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile fast_finish: true
language: ruby sudo: false cache: bundler script: bundle exec rake test before_install: - gem i bundler before_script: - psql -c 'create database activerecord_correctable;' -U postgres rvm: - 2.1 - 2.2.2 - ruby-head gemfile: - gemfiles/activerecord_40.gemfile - gemfiles/activerecord_41.gemfile - gemfiles/activerecord_42.gemfile - gemfiles/activerecord_edge.gemfile env: - DATABASE_ADAPTER=sqlite3 - DATABASE_ADAPTER=postgres # - DATABASE_ADAPTER=mysql2 matrix: matrix: exclude: - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile fast_finish: true
Use the latest version of bundler
Use the latest version of bundler
YAML
mit
yuki24/did_you_mean-activerecord,yuki24/activerecord-correctable,yuki24/activerecord-correctable
yaml
## Code Before: language: ruby sudo: false cache: bundler script: bundle exec rake test before_install: - gem i bundler -v=1.10.3 before_script: - psql -c 'create database activerecord_correctable;' -U postgres rvm: - 2.1 - 2.2.2 - ruby-head gemfile: - gemfiles/activerecord_40.gemfile - gemfiles/activerecord_41.gemfile - gemfiles/activerecord_42.gemfile - gemfiles/activerecord_edge.gemfile env: - DATABASE_ADAPTER=sqlite3 - DATABASE_ADAPTER=postgres # - DATABASE_ADAPTER=mysql2 matrix: matrix: exclude: - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile fast_finish: true ## Instruction: Use the latest version of bundler ## Code After: language: ruby sudo: false cache: bundler script: bundle exec rake test before_install: - gem i bundler before_script: - psql -c 'create database activerecord_correctable;' -U postgres rvm: - 2.1 - 2.2.2 - ruby-head gemfile: - gemfiles/activerecord_40.gemfile - gemfiles/activerecord_41.gemfile - gemfiles/activerecord_42.gemfile - gemfiles/activerecord_edge.gemfile env: - DATABASE_ADAPTER=sqlite3 - DATABASE_ADAPTER=postgres # - DATABASE_ADAPTER=mysql2 matrix: matrix: exclude: - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile fast_finish: true
language: ruby sudo: false cache: bundler script: bundle exec rake test before_install: - - gem i bundler -v=1.10.3 ? ---------- + - gem i bundler before_script: - psql -c 'create database activerecord_correctable;' -U postgres rvm: - 2.1 - 2.2.2 - ruby-head gemfile: - gemfiles/activerecord_40.gemfile - gemfiles/activerecord_41.gemfile - gemfiles/activerecord_42.gemfile - gemfiles/activerecord_edge.gemfile env: - DATABASE_ADAPTER=sqlite3 - DATABASE_ADAPTER=postgres # - DATABASE_ADAPTER=mysql2 matrix: matrix: exclude: - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile - rvm: 2.1 gemfile: gemfiles/activerecord_edge.gemfile fast_finish: true
2
0.055556
1
1
34d173afa9b94c884e0991a98f2768fa33d21d02
composer.json
composer.json
{ "name": "matthewbdaly/laravel-etag-middleware", "description": "A Laravel middleware for adding ETags to HTTP requests to improve response times", "keywords": ["laravel", "etags", "etag", "middleware", "http"], "type": "library", "require": { "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x", "symfony/http-foundation": "~2.7|~3.0", "symfony/http-kernel": "~2.7|~3.0", "illuminate/http": "5.1.x|5.2.x|5.3.x|5.4.x" }, "require-dev": { "phpunit/phpunit": "^4.8|^5.2", "mockery/mockery": "^0.9.7", "squizlabs/php_codesniffer": "^2.8", "satooshi/php-coveralls": "^1.0" }, "license": "MIT", "authors": [ { "name": "Matthew Daly", "email": "matthewbdaly@gmail.com" } ], "autoload": { "psr-4": { "Matthewbdaly\\ETagMiddleware\\": "src/" } } }
{ "name": "matthewbdaly/laravel-etag-middleware", "description": "A Laravel middleware for adding ETags to HTTP requests to improve response times", "keywords": ["laravel", "etags", "etag", "middleware", "http"], "type": "library", "require": { "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x", "symfony/http-foundation": "~2.7|~3.0", "symfony/http-kernel": "~2.7|~3.0", "illuminate/http": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x" }, "require-dev": { "phpunit/phpunit": "^4.8|^5.2", "mockery/mockery": "^0.9.7", "squizlabs/php_codesniffer": "^2.8", "satooshi/php-coveralls": "^1.0" }, "license": "MIT", "authors": [ { "name": "Matthew Daly", "email": "matthewbdaly@gmail.com" } ], "autoload": { "psr-4": { "Matthewbdaly\\ETagMiddleware\\": "src/" } } }
Add support for Laravel 5.5
Add support for Laravel 5.5
JSON
mit
matthewbdaly/laravel-etag-middleware
json
## Code Before: { "name": "matthewbdaly/laravel-etag-middleware", "description": "A Laravel middleware for adding ETags to HTTP requests to improve response times", "keywords": ["laravel", "etags", "etag", "middleware", "http"], "type": "library", "require": { "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x", "symfony/http-foundation": "~2.7|~3.0", "symfony/http-kernel": "~2.7|~3.0", "illuminate/http": "5.1.x|5.2.x|5.3.x|5.4.x" }, "require-dev": { "phpunit/phpunit": "^4.8|^5.2", "mockery/mockery": "^0.9.7", "squizlabs/php_codesniffer": "^2.8", "satooshi/php-coveralls": "^1.0" }, "license": "MIT", "authors": [ { "name": "Matthew Daly", "email": "matthewbdaly@gmail.com" } ], "autoload": { "psr-4": { "Matthewbdaly\\ETagMiddleware\\": "src/" } } } ## Instruction: Add support for Laravel 5.5 ## Code After: { "name": "matthewbdaly/laravel-etag-middleware", "description": "A Laravel middleware for adding ETags to HTTP requests to improve response times", "keywords": ["laravel", "etags", "etag", "middleware", "http"], "type": "library", "require": { "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x", "symfony/http-foundation": "~2.7|~3.0", "symfony/http-kernel": "~2.7|~3.0", "illuminate/http": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x" }, "require-dev": { "phpunit/phpunit": "^4.8|^5.2", "mockery/mockery": "^0.9.7", "squizlabs/php_codesniffer": "^2.8", "satooshi/php-coveralls": "^1.0" }, "license": "MIT", "authors": [ { "name": "Matthew Daly", "email": "matthewbdaly@gmail.com" } ], "autoload": { "psr-4": { "Matthewbdaly\\ETagMiddleware\\": "src/" } } }
{ "name": "matthewbdaly/laravel-etag-middleware", "description": "A Laravel middleware for adding ETags to HTTP requests to improve response times", "keywords": ["laravel", "etags", "etag", "middleware", "http"], "type": "library", "require": { - "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x", + "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x", ? ++++++ "symfony/http-foundation": "~2.7|~3.0", "symfony/http-kernel": "~2.7|~3.0", - "illuminate/http": "5.1.x|5.2.x|5.3.x|5.4.x" + "illuminate/http": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x" ? ++++++ }, "require-dev": { "phpunit/phpunit": "^4.8|^5.2", "mockery/mockery": "^0.9.7", "squizlabs/php_codesniffer": "^2.8", "satooshi/php-coveralls": "^1.0" }, "license": "MIT", "authors": [ { "name": "Matthew Daly", "email": "matthewbdaly@gmail.com" } ], "autoload": { "psr-4": { "Matthewbdaly\\ETagMiddleware\\": "src/" } } }
4
0.133333
2
2
5b7bc8baba35bc816c7dc94768d9fae05c7b78ec
zephyr/shim/include/zephyr_host_command.h
zephyr/shim/include/zephyr_host_command.h
/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if !defined(__CROS_EC_HOST_COMMAND_H) || \ defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H) #error "This file must only be included from host_command.h. " \ "Include host_command.h directly" #endif #define __CROS_EC_ZEPHYR_HOST_COMMAND_H #include <init.h> #ifdef CONFIG_PLATFORM_EC_HOSTCMD /** * See include/host_command.h for documentation. */ #define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \ STRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \ .command = _command, \ .handler = _routine, \ .version_mask = _version_mask, \ } #else /* !CONFIG_PLATFORM_EC_HOSTCMD */ #ifdef __clang__ #define DECLARE_HOST_COMMAND(command, routine, version_mask) #else #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ enum ec_status (routine)(struct host_cmd_handler_args *args) \ __attribute__((unused)) #endif /* __clang__ */ #endif /* CONFIG_PLATFORM_EC_HOSTCMD */
/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if !defined(__CROS_EC_HOST_COMMAND_H) || \ defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H) #error "This file must only be included from host_command.h. " \ "Include host_command.h directly" #endif #define __CROS_EC_ZEPHYR_HOST_COMMAND_H #include <init.h> #ifdef CONFIG_PLATFORM_EC_HOSTCMD /** * See include/host_command.h for documentation. */ #define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \ STRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \ .command = _command, \ .handler = _routine, \ .version_mask = _version_mask, \ } #else /* !CONFIG_PLATFORM_EC_HOSTCMD */ /* * Create a fake routine to call the function. The linker should * garbage-collect it since it is behind 'if (0)' */ #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ int __remove_ ## command(void) \ { \ if (0) \ routine(NULL); \ return 0; \ } #endif /* CONFIG_PLATFORM_EC_HOSTCMD */
Use a different way of handling no host commands
zephyr: Use a different way of handling no host commands When CONFIG_PLATFORM_EC_HOSTCMD is not enabled we want to silently drop the handler routines from the build. The current approach works for gcc but not for clang. Use an exported function instead. BUG=b:208648337 BRANCH=none TEST=CQ and gitlab Signed-off-by: Simon Glass <c00b0378376498bd9cd974c388df8854c0131d27@chromium.org> Change-Id: I63f74e8081556c726472782f60bddbbfbc3e9bf0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3313320 Reviewed-by: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@chromium.org>
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
c
## Code Before: /* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if !defined(__CROS_EC_HOST_COMMAND_H) || \ defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H) #error "This file must only be included from host_command.h. " \ "Include host_command.h directly" #endif #define __CROS_EC_ZEPHYR_HOST_COMMAND_H #include <init.h> #ifdef CONFIG_PLATFORM_EC_HOSTCMD /** * See include/host_command.h for documentation. */ #define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \ STRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \ .command = _command, \ .handler = _routine, \ .version_mask = _version_mask, \ } #else /* !CONFIG_PLATFORM_EC_HOSTCMD */ #ifdef __clang__ #define DECLARE_HOST_COMMAND(command, routine, version_mask) #else #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ enum ec_status (routine)(struct host_cmd_handler_args *args) \ __attribute__((unused)) #endif /* __clang__ */ #endif /* CONFIG_PLATFORM_EC_HOSTCMD */ ## Instruction: zephyr: Use a different way of handling no host commands When CONFIG_PLATFORM_EC_HOSTCMD is not enabled we want to silently drop the handler routines from the build. The current approach works for gcc but not for clang. Use an exported function instead. BUG=b:208648337 BRANCH=none TEST=CQ and gitlab Signed-off-by: Simon Glass <c00b0378376498bd9cd974c388df8854c0131d27@chromium.org> Change-Id: I63f74e8081556c726472782f60bddbbfbc3e9bf0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3313320 Reviewed-by: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@chromium.org> ## Code After: /* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if !defined(__CROS_EC_HOST_COMMAND_H) || \ defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H) #error "This file must only be included from host_command.h. " \ "Include host_command.h directly" #endif #define __CROS_EC_ZEPHYR_HOST_COMMAND_H #include <init.h> #ifdef CONFIG_PLATFORM_EC_HOSTCMD /** * See include/host_command.h for documentation. */ #define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \ STRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \ .command = _command, \ .handler = _routine, \ .version_mask = _version_mask, \ } #else /* !CONFIG_PLATFORM_EC_HOSTCMD */ /* * Create a fake routine to call the function. The linker should * garbage-collect it since it is behind 'if (0)' */ #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ int __remove_ ## command(void) \ { \ if (0) \ routine(NULL); \ return 0; \ } #endif /* CONFIG_PLATFORM_EC_HOSTCMD */
/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if !defined(__CROS_EC_HOST_COMMAND_H) || \ defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H) #error "This file must only be included from host_command.h. " \ "Include host_command.h directly" #endif #define __CROS_EC_ZEPHYR_HOST_COMMAND_H #include <init.h> #ifdef CONFIG_PLATFORM_EC_HOSTCMD /** * See include/host_command.h for documentation. */ #define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \ STRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \ .command = _command, \ .handler = _routine, \ .version_mask = _version_mask, \ } #else /* !CONFIG_PLATFORM_EC_HOSTCMD */ - #ifdef __clang__ + + /* + * Create a fake routine to call the function. The linker should + * garbage-collect it since it is behind 'if (0)' + */ - #define DECLARE_HOST_COMMAND(command, routine, version_mask) + #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ ? +++ - #else - #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ - enum ec_status (routine)(struct host_cmd_handler_args *args) \ - __attribute__((unused)) - #endif /* __clang__ */ + int __remove_ ## command(void) \ + { \ + if (0) \ + routine(NULL); \ + return 0; \ + } + #endif /* CONFIG_PLATFORM_EC_HOSTCMD */
20
0.588235
13
7
8d58a3ac4425ce59566a5f0c592afea485275024
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" - "pypy" install: pip install -r requirements.txt --use-mirrors before_script: python setup.py pep8 script: python setup.py test
language: python python: - "2.6" - "2.7" - "pypy" install: pip install -r requirements.txt --use-mirrors before_script: python setup.py pep8 script: python setup.py test notifications: email: - farscape-dev@lists.rackspace.com
Send failure notifications to farscape-dev.
Send failure notifications to farscape-dev.
YAML
apache-2.0
racker/python-twisted-service-registry-client
yaml
## Code Before: language: python python: - "2.6" - "2.7" - "pypy" install: pip install -r requirements.txt --use-mirrors before_script: python setup.py pep8 script: python setup.py test ## Instruction: Send failure notifications to farscape-dev. ## Code After: language: python python: - "2.6" - "2.7" - "pypy" install: pip install -r requirements.txt --use-mirrors before_script: python setup.py pep8 script: python setup.py test notifications: email: - farscape-dev@lists.rackspace.com
language: python python: - "2.6" - "2.7" - "pypy" install: pip install -r requirements.txt --use-mirrors before_script: python setup.py pep8 script: python setup.py test + + notifications: + email: + - farscape-dev@lists.rackspace.com
4
0.444444
4
0
642db2ac6f351e91eb40401d0515f922464fcdb0
README.md
README.md
camunda-connect =============== <p> <a href="http://camunda.org/">Home</a> | <a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> | <a href="http://camunda.org/community/forum.html">Forum</a> | <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> | <a href="LICENSE">License</a> | <a href="CONTRIBUTING.md">Contribute</a> </p> Simple API for connecting HTTP Services and other things. # List of connectors * HTTP Connector * SOAP HTTP Connector # Using a Connector camunda Connect API aims at two usage scenarios, usage in a generic system such as camunda BPM process engine and standalone usage via API. Please see the [official documentation](http://docs.camunda.org/latest/api-references/connect/) for more information. # Contributing camunda Connect is licensed under the Apache 2.0 License. Check [CONTRIBUTING.md][] for guidelines about how to contribute. [CONTRIBUTING.md]: https://github.com/camunda/camunda-bpm-platform/blob/master/CONTRIBUTING.md
camunda-connect =============== <p> <a href="http://camunda.org/">Home</a> | <a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> | <a href="http://camunda.org/community/forum.html">Forum</a> | <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> | <a href="LICENSE">License</a> | <a href="CONTRIBUTING.md">Contribute</a> </p> Simple API for connecting HTTP Services and other things. # List of connectors * HTTP Connector * SOAP HTTP Connector # Using a Connector camunda Connect API aims at two usage scenarios, usage in a generic system such as camunda BPM process engine and standalone usage via API. Please see the [official documentation](https://docs.camunda.org/manual/latest/reference/connect/) for more information. # Contributing camunda Connect is licensed under the Apache 2.0 License. Check [CONTRIBUTING.md][] for guidelines about how to contribute. [CONTRIBUTING.md]: https://github.com/camunda/camunda-bpm-platform/blob/master/CONTRIBUTING.md
Update Link to Official Documentation
Update Link to Official Documentation Existing link pointed to camunda 7.3
Markdown
apache-2.0
camunda/camunda-connect
markdown
## Code Before: camunda-connect =============== <p> <a href="http://camunda.org/">Home</a> | <a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> | <a href="http://camunda.org/community/forum.html">Forum</a> | <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> | <a href="LICENSE">License</a> | <a href="CONTRIBUTING.md">Contribute</a> </p> Simple API for connecting HTTP Services and other things. # List of connectors * HTTP Connector * SOAP HTTP Connector # Using a Connector camunda Connect API aims at two usage scenarios, usage in a generic system such as camunda BPM process engine and standalone usage via API. Please see the [official documentation](http://docs.camunda.org/latest/api-references/connect/) for more information. # Contributing camunda Connect is licensed under the Apache 2.0 License. Check [CONTRIBUTING.md][] for guidelines about how to contribute. [CONTRIBUTING.md]: https://github.com/camunda/camunda-bpm-platform/blob/master/CONTRIBUTING.md ## Instruction: Update Link to Official Documentation Existing link pointed to camunda 7.3 ## Code After: camunda-connect =============== <p> <a href="http://camunda.org/">Home</a> | <a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> | <a href="http://camunda.org/community/forum.html">Forum</a> | <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> | <a href="LICENSE">License</a> | <a href="CONTRIBUTING.md">Contribute</a> </p> Simple API for connecting HTTP Services and other things. # List of connectors * HTTP Connector * SOAP HTTP Connector # Using a Connector camunda Connect API aims at two usage scenarios, usage in a generic system such as camunda BPM process engine and standalone usage via API. Please see the [official documentation](https://docs.camunda.org/manual/latest/reference/connect/) for more information. # Contributing camunda Connect is licensed under the Apache 2.0 License. Check [CONTRIBUTING.md][] for guidelines about how to contribute. [CONTRIBUTING.md]: https://github.com/camunda/camunda-bpm-platform/blob/master/CONTRIBUTING.md
camunda-connect =============== <p> <a href="http://camunda.org/">Home</a> | <a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> | <a href="http://camunda.org/community/forum.html">Forum</a> | <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> | <a href="LICENSE">License</a> | <a href="CONTRIBUTING.md">Contribute</a> </p> Simple API for connecting HTTP Services and other things. # List of connectors * HTTP Connector * SOAP HTTP Connector # Using a Connector camunda Connect API aims at two usage scenarios, usage in a generic system such as camunda BPM - process engine and standalone usage via API. Please see the [official documentation](http://docs.camunda.org/latest/api-references/connect/) for more information. ? ---- - + process engine and standalone usage via API. Please see the [official documentation](https://docs.camunda.org/manual/latest/reference/connect/) for more information. ? + +++++++ # Contributing camunda Connect is licensed under the Apache 2.0 License. Check [CONTRIBUTING.md][] for guidelines about how to contribute. [CONTRIBUTING.md]: https://github.com/camunda/camunda-bpm-platform/blob/master/CONTRIBUTING.md
2
0.0625
1
1
91a320460574eff1dacaa37ca199b5f57297ad63
packages/th/th-printf.yaml
packages/th/th-printf.yaml
homepage: https://github.com/pikajude/th-printf changelog-type: '' hash: 5b13059c65fa6ba15be758126489786cc357111bae9c7fbe46d970900217112b test-bench-deps: bytestring: -any base: -any hspec: -any text: -any criterion: -any th-printf: -any HUnit: -any QuickCheck: -any template-haskell: -any maintainer: me@jude.xy synopsis: Compile-time printf changelog: '' basic-deps: ansi-wl-pprint: -any trifecta: -any base: ! '>=4.8 && <4.11' text: -any containers: -any utf8-string: -any charset: -any attoparsec: -any transformers: -any template-haskell: -any all-versions: - '0.4.0' - '0.5.0' author: Jude Taylor latest: '0.5.0' description-type: haddock description: ! 'Quasiquoters for printf: string, bytestring, text.' license-name: MIT
homepage: https://github.com/pikajude/th-printf changelog-type: '' hash: 85571aaca3e6948ea595edc5257fcd095554ec81214e28d35896d219c1679992 test-bench-deps: bytestring: -any base: -any hspec: -any text: -any criterion: -any th-printf: -any HUnit: -any QuickCheck: -any template-haskell: -any maintainer: me@jude.xy synopsis: Compile-time printf changelog: '' basic-deps: ansi-wl-pprint: -any trifecta: -any base: ! '>=4.8 && <5' text: -any containers: -any utf8-string: -any charset: -any attoparsec: -any transformers: -any template-haskell: -any all-versions: - '0.4.0' - '0.5.0' - '0.5.1' author: Jude Taylor latest: '0.5.1' description-type: haddock description: ! 'Quasiquoters for printf: string, bytestring, text.' license-name: MIT
Update from Hackage at 2018-03-18T01:09:58Z
Update from Hackage at 2018-03-18T01:09:58Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/pikajude/th-printf changelog-type: '' hash: 5b13059c65fa6ba15be758126489786cc357111bae9c7fbe46d970900217112b test-bench-deps: bytestring: -any base: -any hspec: -any text: -any criterion: -any th-printf: -any HUnit: -any QuickCheck: -any template-haskell: -any maintainer: me@jude.xy synopsis: Compile-time printf changelog: '' basic-deps: ansi-wl-pprint: -any trifecta: -any base: ! '>=4.8 && <4.11' text: -any containers: -any utf8-string: -any charset: -any attoparsec: -any transformers: -any template-haskell: -any all-versions: - '0.4.0' - '0.5.0' author: Jude Taylor latest: '0.5.0' description-type: haddock description: ! 'Quasiquoters for printf: string, bytestring, text.' license-name: MIT ## Instruction: Update from Hackage at 2018-03-18T01:09:58Z ## Code After: homepage: https://github.com/pikajude/th-printf changelog-type: '' hash: 85571aaca3e6948ea595edc5257fcd095554ec81214e28d35896d219c1679992 test-bench-deps: bytestring: -any base: -any hspec: -any text: -any criterion: -any th-printf: -any HUnit: -any QuickCheck: -any template-haskell: -any maintainer: me@jude.xy synopsis: Compile-time printf changelog: '' basic-deps: ansi-wl-pprint: -any trifecta: -any base: ! '>=4.8 && <5' text: -any containers: -any utf8-string: -any charset: -any attoparsec: -any transformers: -any template-haskell: -any all-versions: - '0.4.0' - '0.5.0' - '0.5.1' author: Jude Taylor latest: '0.5.1' description-type: haddock description: ! 'Quasiquoters for printf: string, bytestring, text.' license-name: MIT
homepage: https://github.com/pikajude/th-printf changelog-type: '' - hash: 5b13059c65fa6ba15be758126489786cc357111bae9c7fbe46d970900217112b + hash: 85571aaca3e6948ea595edc5257fcd095554ec81214e28d35896d219c1679992 test-bench-deps: bytestring: -any base: -any hspec: -any text: -any criterion: -any th-printf: -any HUnit: -any QuickCheck: -any template-haskell: -any maintainer: me@jude.xy synopsis: Compile-time printf changelog: '' basic-deps: ansi-wl-pprint: -any trifecta: -any - base: ! '>=4.8 && <4.11' ? ^^^^ + base: ! '>=4.8 && <5' ? ^ text: -any containers: -any utf8-string: -any charset: -any attoparsec: -any transformers: -any template-haskell: -any all-versions: - '0.4.0' - '0.5.0' + - '0.5.1' author: Jude Taylor - latest: '0.5.0' ? ^ + latest: '0.5.1' ? ^ description-type: haddock description: ! 'Quasiquoters for printf: string, bytestring, text.' license-name: MIT
7
0.2
4
3
d431102e314ad6d9ca4cf362e51a2e5c9306a37d
people/2016/spring/rdp1070.yaml
people/2016/spring/rdp1070.yaml
name: Bobby D. Pruden blog: https://rdp1070.wordpress.com/ feed: https://rdp1070.wordpress.com/feed/ email: rdp1070@rit.edu major: New Media Interactive Development 2017 rit_dce: None irc: JustBobbyThings forges: - https://github.com/rdp1070 bio: I love Games, I love working with people. FOSS here I come. hw: firstflight: https://rdp1070.wordpress.com/2016/01/29/intro/
name: Bobby D. Pruden blog: https://rdp1070.wordpress.com/ feed: https://rdp1070.wordpress.com/feed/ email: rdp1070@rit.edu major: New Media Interactive Development 2017 rit_dce: None irc: JustBobbyThings forges: - https://github.com/rdp1070 bio: I love Games, I love working with people. FOSS here I come. hw: firstflight: https://rdp1070.wordpress.com/2016/01/29/intro/ litreview1: https://rdp1070.wordpress.com/2016/02/12/lit-review-what-is-open-source-and-how-does-it-work/
Add the litreview1 to rpd1070.yaml
Add the litreview1 to rpd1070.yaml
YAML
apache-2.0
deejoe/hfoss,deejoe/hfoss,theheckle/hfoss,theheckle/hfoss
yaml
## Code Before: name: Bobby D. Pruden blog: https://rdp1070.wordpress.com/ feed: https://rdp1070.wordpress.com/feed/ email: rdp1070@rit.edu major: New Media Interactive Development 2017 rit_dce: None irc: JustBobbyThings forges: - https://github.com/rdp1070 bio: I love Games, I love working with people. FOSS here I come. hw: firstflight: https://rdp1070.wordpress.com/2016/01/29/intro/ ## Instruction: Add the litreview1 to rpd1070.yaml ## Code After: name: Bobby D. Pruden blog: https://rdp1070.wordpress.com/ feed: https://rdp1070.wordpress.com/feed/ email: rdp1070@rit.edu major: New Media Interactive Development 2017 rit_dce: None irc: JustBobbyThings forges: - https://github.com/rdp1070 bio: I love Games, I love working with people. FOSS here I come. hw: firstflight: https://rdp1070.wordpress.com/2016/01/29/intro/ litreview1: https://rdp1070.wordpress.com/2016/02/12/lit-review-what-is-open-source-and-how-does-it-work/
name: Bobby D. Pruden blog: https://rdp1070.wordpress.com/ feed: https://rdp1070.wordpress.com/feed/ email: rdp1070@rit.edu major: New Media Interactive Development 2017 rit_dce: None irc: JustBobbyThings forges: - https://github.com/rdp1070 bio: I love Games, I love working with people. FOSS here I come. hw: firstflight: https://rdp1070.wordpress.com/2016/01/29/intro/ + litreview1: https://rdp1070.wordpress.com/2016/02/12/lit-review-what-is-open-source-and-how-does-it-work/
1
0.083333
1
0
0fc66a3185aa2e49fff3f4925d6bb1758b89f41f
docs/faraday-configuration.md
docs/faraday-configuration.md
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol. ```ruby Flexirest::Base.adapter = :net_http # or ... Flexirest::Base.adapter = :patron ``` In versions before 1.2.0 the adapter was hardcoded to `:patron`, so if you want to ensure it still uses Patron, you should set this setting. If you want more control you can pass a **complete** configuration block ("complete" means that the block does not _override_ [the default configuration](https://github.com/flexirest/flexirest/blob/5b1953d89e26c02ca74f74464ccb7cd4c9439dcc/lib/flexirest/configuration.rb#L184-L201), but rather _replaces_ it). For available configuration variables look into the [Faraday documentation](https://github.com/lostisland/faraday). ```ruby Flexirest::Base.faraday_config do |faraday| faraday.adapter(:net_http) faraday.options.timeout = 10 faraday.headers['User-Agent'] = "Flexirest/#{Flexirest::VERSION}" end ``` ----- [< Ruby on Rails integration](ruby-on-rails-integration.md) | [Associations >](associations.md)
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol. ```ruby Flexirest::Base.adapter = :net_http # or ... Flexirest::Base.adapter = :patron ``` In versions before 1.2.0 the adapter was hardcoded to `:patron`, so if you want to ensure it still uses Patron, you should set this setting. If you want more control you can pass a **complete** configuration block ("complete" means that the block does not _override_ [the default configuration](https://github.com/flexirest/flexirest/blob/5b1953d89e26c02ca74f74464ccb7cd4c9439dcc/lib/flexirest/configuration.rb#L184-L201), but rather _replaces_ it). For available configuration variables look into the [Faraday documentation](https://github.com/lostisland/faraday). ```ruby Flexirest::Base.faraday_config do |faraday| faraday.adapter(:net_http) faraday.options.timeout = 10 faraday.ssl.verify = false faraday.headers['User-Agent'] = "Flexirest/#{Flexirest::VERSION}" end ``` ----- [< Ruby on Rails integration](ruby-on-rails-integration.md) | [Associations >](associations.md)
Add documentation on disabling SSL certificate verification
Add documentation on disabling SSL certificate verification
Markdown
mit
andyjeffries/flexirest
markdown
## Code Before: Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol. ```ruby Flexirest::Base.adapter = :net_http # or ... Flexirest::Base.adapter = :patron ``` In versions before 1.2.0 the adapter was hardcoded to `:patron`, so if you want to ensure it still uses Patron, you should set this setting. If you want more control you can pass a **complete** configuration block ("complete" means that the block does not _override_ [the default configuration](https://github.com/flexirest/flexirest/blob/5b1953d89e26c02ca74f74464ccb7cd4c9439dcc/lib/flexirest/configuration.rb#L184-L201), but rather _replaces_ it). For available configuration variables look into the [Faraday documentation](https://github.com/lostisland/faraday). ```ruby Flexirest::Base.faraday_config do |faraday| faraday.adapter(:net_http) faraday.options.timeout = 10 faraday.headers['User-Agent'] = "Flexirest/#{Flexirest::VERSION}" end ``` ----- [< Ruby on Rails integration](ruby-on-rails-integration.md) | [Associations >](associations.md) ## Instruction: Add documentation on disabling SSL certificate verification ## Code After: Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol. ```ruby Flexirest::Base.adapter = :net_http # or ... Flexirest::Base.adapter = :patron ``` In versions before 1.2.0 the adapter was hardcoded to `:patron`, so if you want to ensure it still uses Patron, you should set this setting. If you want more control you can pass a **complete** configuration block ("complete" means that the block does not _override_ [the default configuration](https://github.com/flexirest/flexirest/blob/5b1953d89e26c02ca74f74464ccb7cd4c9439dcc/lib/flexirest/configuration.rb#L184-L201), but rather _replaces_ it). For available configuration variables look into the [Faraday documentation](https://github.com/lostisland/faraday). ```ruby Flexirest::Base.faraday_config do |faraday| faraday.adapter(:net_http) faraday.options.timeout = 10 faraday.ssl.verify = false faraday.headers['User-Agent'] = "Flexirest/#{Flexirest::VERSION}" end ``` ----- [< Ruby on Rails integration](ruby-on-rails-integration.md) | [Associations >](associations.md)
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol. ```ruby Flexirest::Base.adapter = :net_http # or ... Flexirest::Base.adapter = :patron ``` In versions before 1.2.0 the adapter was hardcoded to `:patron`, so if you want to ensure it still uses Patron, you should set this setting. If you want more control you can pass a **complete** configuration block ("complete" means that the block does not _override_ [the default configuration](https://github.com/flexirest/flexirest/blob/5b1953d89e26c02ca74f74464ccb7cd4c9439dcc/lib/flexirest/configuration.rb#L184-L201), but rather _replaces_ it). For available configuration variables look into the [Faraday documentation](https://github.com/lostisland/faraday). ```ruby Flexirest::Base.faraday_config do |faraday| faraday.adapter(:net_http) faraday.options.timeout = 10 + faraday.ssl.verify = false faraday.headers['User-Agent'] = "Flexirest/#{Flexirest::VERSION}" end ``` ----- [< Ruby on Rails integration](ruby-on-rails-integration.md) | [Associations >](associations.md)
1
0.037037
1
0
a62bf8509e69239f898b595958c9bc4c71cad4ea
app/containers/EditRequestPage.js
app/containers/EditRequestPage.js
import React, { Component } from 'react'; import RequestEditor from '../components/RequestEditor'; import ResponseViewer from '../components/ResponseViewer'; import * as actionCreators from '../actions/project'; import { connect } from 'react-redux'; class EditRequestPage extends Component { constructor(props) { super(props); this.state = {}; } findRequest() { const project = this.props.projects.filter(p => p.id == this.props.params.projectId).get(0); if (!project) return null; return project.requests.filter(r => r.id == this.props.params.id).get(0); } onExecuteRequest(request) { this.props.executeRequest(request.method, request.url, request.headers.toJS(), request.body); } render() { const request = this.findRequest(); if (request == null) return (<div/>); return ( <div className="edit-request-page"> <RequestEditor request={ request } onRequestChange={this.props.updateRequest} onRequestDelete={this.props.deleteRequest} onRequestExecute={this.onExecuteRequest.bind(this)}/> <ResponseViewer response={ this.props.response }/> </div> ); } } function mapStateToProps(state) { return { projects: state.projects, response: state.response } } export default connect(mapStateToProps, actionCreators)(EditRequestPage);
import React, { Component } from 'react'; import RequestEditor from '../components/RequestEditor'; import ResponseViewer from '../components/ResponseViewer'; import * as actionCreators from '../actions/project'; import { connect } from 'react-redux'; class EditRequestPage extends Component { constructor(props) { super(props); this.state = {}; } onExecuteRequest(request) { this.props.executeRequest(request.method, request.url, request.headers.toJS(), request.body); } render() { if (!this.props.request) return null; return ( <div className="edit-request-page"> <RequestEditor request={ this.props.request } onRequestChange={this.props.updateRequest} onRequestDelete={this.props.deleteRequest} onRequestExecute={this.onExecuteRequest.bind(this)}/> <ResponseViewer response={ this.props.response }/> </div> ); } } function mapStateToProps(state, ownProps) { const project = state.projects.filter(p => p.id == ownProps.params.projectId).get(0); const request = project && project.requests.filter(r => r.id == ownProps.params.id).get(0); return { request: request, response: state.response } } export default connect(mapStateToProps, actionCreators)(EditRequestPage);
Select specific request from redux state directly in connect
Select specific request from redux state directly in connect This prevents unneeded re-renders, because before it would rerender when anything in a project would change.
JavaScript
mpl-2.0
pascalw/gettable,pascalw/gettable
javascript
## Code Before: import React, { Component } from 'react'; import RequestEditor from '../components/RequestEditor'; import ResponseViewer from '../components/ResponseViewer'; import * as actionCreators from '../actions/project'; import { connect } from 'react-redux'; class EditRequestPage extends Component { constructor(props) { super(props); this.state = {}; } findRequest() { const project = this.props.projects.filter(p => p.id == this.props.params.projectId).get(0); if (!project) return null; return project.requests.filter(r => r.id == this.props.params.id).get(0); } onExecuteRequest(request) { this.props.executeRequest(request.method, request.url, request.headers.toJS(), request.body); } render() { const request = this.findRequest(); if (request == null) return (<div/>); return ( <div className="edit-request-page"> <RequestEditor request={ request } onRequestChange={this.props.updateRequest} onRequestDelete={this.props.deleteRequest} onRequestExecute={this.onExecuteRequest.bind(this)}/> <ResponseViewer response={ this.props.response }/> </div> ); } } function mapStateToProps(state) { return { projects: state.projects, response: state.response } } export default connect(mapStateToProps, actionCreators)(EditRequestPage); ## Instruction: Select specific request from redux state directly in connect This prevents unneeded re-renders, because before it would rerender when anything in a project would change. ## Code After: import React, { Component } from 'react'; import RequestEditor from '../components/RequestEditor'; import ResponseViewer from '../components/ResponseViewer'; import * as actionCreators from '../actions/project'; import { connect } from 'react-redux'; class EditRequestPage extends Component { constructor(props) { super(props); this.state = {}; } onExecuteRequest(request) { this.props.executeRequest(request.method, request.url, request.headers.toJS(), request.body); } render() { if (!this.props.request) return null; return ( <div className="edit-request-page"> <RequestEditor request={ this.props.request } onRequestChange={this.props.updateRequest} onRequestDelete={this.props.deleteRequest} onRequestExecute={this.onExecuteRequest.bind(this)}/> <ResponseViewer response={ this.props.response }/> </div> ); } } function mapStateToProps(state, ownProps) { const project = state.projects.filter(p => p.id == ownProps.params.projectId).get(0); const request = project && project.requests.filter(r => r.id == ownProps.params.id).get(0); return { request: request, response: state.response } } export default connect(mapStateToProps, actionCreators)(EditRequestPage);
import React, { Component } from 'react'; import RequestEditor from '../components/RequestEditor'; import ResponseViewer from '../components/ResponseViewer'; import * as actionCreators from '../actions/project'; import { connect } from 'react-redux'; class EditRequestPage extends Component { constructor(props) { super(props); this.state = {}; } - findRequest() { - const project = this.props.projects.filter(p => p.id == this.props.params.projectId).get(0); - if (!project) - return null; - - return project.requests.filter(r => r.id == this.props.params.id).get(0); - } - onExecuteRequest(request) { this.props.executeRequest(request.method, request.url, request.headers.toJS(), request.body); } render() { + if (!this.props.request) + return null; - const request = this.findRequest(); - if (request == null) - return (<div/>); return ( <div className="edit-request-page"> - <RequestEditor request={ request } + <RequestEditor request={ this.props.request } ? +++++++++++ onRequestChange={this.props.updateRequest} onRequestDelete={this.props.deleteRequest} onRequestExecute={this.onExecuteRequest.bind(this)}/> <ResponseViewer response={ this.props.response }/> </div> ); } } - function mapStateToProps(state) { + function mapStateToProps(state, ownProps) { ? ++++++++++ + const project = state.projects.filter(p => p.id == ownProps.params.projectId).get(0); + const request = project && project.requests.filter(r => r.id == ownProps.params.id).get(0); + return { - projects: state.projects, + request: request, response: state.response } } export default connect(mapStateToProps, actionCreators)(EditRequestPage);
22
0.44
8
14
9df63d72b4bbed0f543d5a2d815c84a0f457ca36
tasks/install_binary.yml
tasks/install_binary.yml
--- - name: Get fabio checksums file get_url: url: "{{ fabio_checksum_file_url }}" dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}" - name: Get checksum of fabio binary shell: > grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }} register: chksum changed_when: False - name: Download fabio binary get_url: url: "{{ fabio_pkg_url }}" dest: "/usr/local/bin/fabio" mode: 0755 checksum: "sha256:{{ chksum.stdout.split(' ')|first }}"
--- - name: Get fabio checksums file get_url: url: "{{ fabio_checksum_file_url }}" dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}" - name: Get checksum of fabio binary shell: > grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }} register: chksum changed_when: False - name: Download fabio binary get_url: url: "{{ fabio_pkg_url }}" dest: "{{ fabio_binary_path }}/fabio" mode: 0755 checksum: "sha256:{{ chksum.stdout.split(' ')|first }}"
Install Fabio binary in correct location
Install Fabio binary in correct location
YAML
mit
lobsterdore/ansible-fabio
yaml
## Code Before: --- - name: Get fabio checksums file get_url: url: "{{ fabio_checksum_file_url }}" dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}" - name: Get checksum of fabio binary shell: > grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }} register: chksum changed_when: False - name: Download fabio binary get_url: url: "{{ fabio_pkg_url }}" dest: "/usr/local/bin/fabio" mode: 0755 checksum: "sha256:{{ chksum.stdout.split(' ')|first }}" ## Instruction: Install Fabio binary in correct location ## Code After: --- - name: Get fabio checksums file get_url: url: "{{ fabio_checksum_file_url }}" dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}" - name: Get checksum of fabio binary shell: > grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }} register: chksum changed_when: False - name: Download fabio binary get_url: url: "{{ fabio_pkg_url }}" dest: "{{ fabio_binary_path }}/fabio" mode: 0755 checksum: "sha256:{{ chksum.stdout.split(' ')|first }}"
--- - name: Get fabio checksums file get_url: url: "{{ fabio_checksum_file_url }}" dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}" - name: Get checksum of fabio binary shell: > grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }} register: chksum changed_when: False - name: Download fabio binary get_url: url: "{{ fabio_pkg_url }}" - dest: "/usr/local/bin/fabio" + dest: "{{ fabio_binary_path }}/fabio" mode: 0755 checksum: "sha256:{{ chksum.stdout.split(' ')|first }}"
2
0.105263
1
1
1b3b6593fd86388a467f4ee5844299ca2e359f47
profile.d/keymap.sh
profile.d/keymap.sh
if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then if which xmodmap > /dev/null 2>&1; then xmodmap -e 'keycode 108 = Hangul' xmodmap -e 'keycode 105 = Hangul_Hanja' xmodmap -e 'remove mod1 = Hangul' xmodmap -e 'remove control = Hangul_Hanja' else echo "xmodmap is not found --> Check hangul/hanja key remapping" fi if which gsettings > /dev/null 2>&1; then gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['Hangul']" else echo "gsetting is not found --> Check hangul key binding" fi fi
if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then if which xmodmap > /dev/null 2>&1; then xmodmap -e 'keycode 108 = Hangul' xmodmap -e 'keycode 105 = Hangul_Hanja' xmodmap -pm | while read mod_key rest; do case "$mod_key" in "mod1") [[ "$rest" = *Hangul* ]] && xmodmap -e 'remove mod1 = Hangul' ;; "control") [[ "$rest" = *Hangul_Hanja* ]] && xmodmap -e 'remove control = Hangul_Hanja' ;; *);; esac done else echo "xmodmap is not found --> Check hangul/hanja key remapping" fi if which gsettings > /dev/null 2>&1; then gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['Hangul']" else echo "gsetting is not found --> Check hangul key binding" fi fi
Check Hangul/Hanja key remapping before modifying.
Check Hangul/Hanja key remapping before modifying. This remove annoying message from xmodmap when launch new terminal with shortcut
Shell
mit
gh4ck3r/.bash,gh4ck3r/.bash
shell
## Code Before: if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then if which xmodmap > /dev/null 2>&1; then xmodmap -e 'keycode 108 = Hangul' xmodmap -e 'keycode 105 = Hangul_Hanja' xmodmap -e 'remove mod1 = Hangul' xmodmap -e 'remove control = Hangul_Hanja' else echo "xmodmap is not found --> Check hangul/hanja key remapping" fi if which gsettings > /dev/null 2>&1; then gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['Hangul']" else echo "gsetting is not found --> Check hangul key binding" fi fi ## Instruction: Check Hangul/Hanja key remapping before modifying. This remove annoying message from xmodmap when launch new terminal with shortcut ## Code After: if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then if which xmodmap > /dev/null 2>&1; then xmodmap -e 'keycode 108 = Hangul' xmodmap -e 'keycode 105 = Hangul_Hanja' xmodmap -pm | while read mod_key rest; do case "$mod_key" in "mod1") [[ "$rest" = *Hangul* ]] && xmodmap -e 'remove mod1 = Hangul' ;; "control") [[ "$rest" = *Hangul_Hanja* ]] && xmodmap -e 'remove control = Hangul_Hanja' ;; *);; esac done else echo "xmodmap is not found --> Check hangul/hanja key remapping" fi if which gsettings > /dev/null 2>&1; then gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['Hangul']" else echo "gsetting is not found --> Check hangul key binding" fi fi
if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then if which xmodmap > /dev/null 2>&1; then xmodmap -e 'keycode 108 = Hangul' xmodmap -e 'keycode 105 = Hangul_Hanja' + xmodmap -pm | while read mod_key rest; do + case "$mod_key" in + "mod1") + [[ "$rest" = *Hangul* ]] && - xmodmap -e 'remove mod1 = Hangul' + xmodmap -e 'remove mod1 = Hangul' ? ++++++++++ + ;; + "control") + [[ "$rest" = *Hangul_Hanja* ]] && - xmodmap -e 'remove control = Hangul_Hanja' + xmodmap -e 'remove control = Hangul_Hanja' ? ++++++++++ + ;; + *);; + esac + done else echo "xmodmap is not found --> Check hangul/hanja key remapping" fi if which gsettings > /dev/null 2>&1; then gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['Hangul']" else echo "gsetting is not found --> Check hangul key binding" fi fi
15
0.9375
13
2
a03b20209bb1419cbc961961307710e716797960
features/support/vcr.rb
features/support/vcr.rb
require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'features/cassettes' c.hook_into :webmock c.ignore_hosts 'codeclimate.com' c.ignore_request do |req| # Don't mock the call that Poltergeist polls while waiting for # Phantomjs to load (http://localhost:<random port>/__identify__) req.uri =~ /\/__identify__$|newrelic/ end c.around_http_request do |request| uri = URI(request.uri) cassette_name = if ENV['MAS_CMS_URL'] =~ /#{uri.host}/ "/CMS/#{request.method}#{uri.path}#{uri.query}" end if uri.host =~ /algolia/ query = JSON.parse(request.body)['params'] cassette_name = "/algolia/#{request.method}#{uri.path}#{uri.query}/#{query}" VCR.use_cassette(cassette_name, match_requests_on: [:body], &request) elsif VCR.current_cassette && VCR.current_cassette.name == cassette_name request.proceed else VCR.use_cassette(cassette_name, &request) end end c.filter_sensitive_data('<API_KEY>') { ENV['ALGOLIA_API_KEY'] } c.filter_sensitive_data('<APP_ID>') { ENV['ALGOLIA_APP_ID'] } end
require 'vcr' require 'dotenv/load' VCR.configure do |c| c.cassette_library_dir = 'features/cassettes' c.hook_into :webmock c.ignore_hosts 'codeclimate.com' c.ignore_request do |req| # Don't mock the call that Poltergeist polls while waiting for # Phantomjs to load (http://localhost:<random port>/__identify__) req.uri =~ /\/__identify__$|newrelic/ end c.around_http_request do |request| uri = URI(request.uri) cassette_name = if ENV['MAS_CMS_URL'] =~ /#{uri.host}/ "/CMS/#{request.method}#{uri.path}#{uri.query}" end if uri.host =~ /algolia/ query = JSON.parse(request.body)['params'] cassette_name = "/algolia/#{request.method}#{uri.path}#{uri.query}/#{query}" VCR.use_cassette(cassette_name, match_requests_on: [:body], &request) elsif VCR.current_cassette && VCR.current_cassette.name == cassette_name request.proceed else VCR.use_cassette(cassette_name, &request) end end c.filter_sensitive_data('<API_KEY>') { ENV['ALGOLIA_API_KEY'] } c.filter_sensitive_data('<APP_ID>') { ENV['ALGOLIA_APP_ID'] } end Algolia.init application_id: ENV['ALGOLIA_APP_ID'], api_key: ENV['ALGOLIA_API_KEY']
Add Algolia init ENV vars for specs
Add Algolia init ENV vars for specs - In case a cassette needs to be re-recorded the keys are needed. It is not immediately clear in dev why the spec is returning 403 while the keys are correct in .env
Ruby
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
ruby
## Code Before: require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'features/cassettes' c.hook_into :webmock c.ignore_hosts 'codeclimate.com' c.ignore_request do |req| # Don't mock the call that Poltergeist polls while waiting for # Phantomjs to load (http://localhost:<random port>/__identify__) req.uri =~ /\/__identify__$|newrelic/ end c.around_http_request do |request| uri = URI(request.uri) cassette_name = if ENV['MAS_CMS_URL'] =~ /#{uri.host}/ "/CMS/#{request.method}#{uri.path}#{uri.query}" end if uri.host =~ /algolia/ query = JSON.parse(request.body)['params'] cassette_name = "/algolia/#{request.method}#{uri.path}#{uri.query}/#{query}" VCR.use_cassette(cassette_name, match_requests_on: [:body], &request) elsif VCR.current_cassette && VCR.current_cassette.name == cassette_name request.proceed else VCR.use_cassette(cassette_name, &request) end end c.filter_sensitive_data('<API_KEY>') { ENV['ALGOLIA_API_KEY'] } c.filter_sensitive_data('<APP_ID>') { ENV['ALGOLIA_APP_ID'] } end ## Instruction: Add Algolia init ENV vars for specs - In case a cassette needs to be re-recorded the keys are needed. It is not immediately clear in dev why the spec is returning 403 while the keys are correct in .env ## Code After: require 'vcr' require 'dotenv/load' VCR.configure do |c| c.cassette_library_dir = 'features/cassettes' c.hook_into :webmock c.ignore_hosts 'codeclimate.com' c.ignore_request do |req| # Don't mock the call that Poltergeist polls while waiting for # Phantomjs to load (http://localhost:<random port>/__identify__) req.uri =~ /\/__identify__$|newrelic/ end c.around_http_request do |request| uri = URI(request.uri) cassette_name = if ENV['MAS_CMS_URL'] =~ /#{uri.host}/ "/CMS/#{request.method}#{uri.path}#{uri.query}" end if uri.host =~ /algolia/ query = JSON.parse(request.body)['params'] cassette_name = "/algolia/#{request.method}#{uri.path}#{uri.query}/#{query}" VCR.use_cassette(cassette_name, match_requests_on: [:body], &request) elsif VCR.current_cassette && VCR.current_cassette.name == cassette_name request.proceed else VCR.use_cassette(cassette_name, &request) end end c.filter_sensitive_data('<API_KEY>') { ENV['ALGOLIA_API_KEY'] } c.filter_sensitive_data('<APP_ID>') { ENV['ALGOLIA_APP_ID'] } end Algolia.init application_id: ENV['ALGOLIA_APP_ID'], api_key: ENV['ALGOLIA_API_KEY']
require 'vcr' + require 'dotenv/load' VCR.configure do |c| c.cassette_library_dir = 'features/cassettes' c.hook_into :webmock c.ignore_hosts 'codeclimate.com' c.ignore_request do |req| # Don't mock the call that Poltergeist polls while waiting for # Phantomjs to load (http://localhost:<random port>/__identify__) req.uri =~ /\/__identify__$|newrelic/ end c.around_http_request do |request| uri = URI(request.uri) cassette_name = if ENV['MAS_CMS_URL'] =~ /#{uri.host}/ "/CMS/#{request.method}#{uri.path}#{uri.query}" end if uri.host =~ /algolia/ query = JSON.parse(request.body)['params'] cassette_name = "/algolia/#{request.method}#{uri.path}#{uri.query}/#{query}" VCR.use_cassette(cassette_name, match_requests_on: [:body], &request) elsif VCR.current_cassette && VCR.current_cassette.name == cassette_name request.proceed else VCR.use_cassette(cassette_name, &request) end end c.filter_sensitive_data('<API_KEY>') { ENV['ALGOLIA_API_KEY'] } c.filter_sensitive_data('<APP_ID>') { ENV['ALGOLIA_APP_ID'] } end + + Algolia.init application_id: ENV['ALGOLIA_APP_ID'], + api_key: ENV['ALGOLIA_API_KEY']
4
0.125
4
0
97ff446daaad87d98f1b602ad940058ec9d7684c
build.properties
build.properties
version-id:0.20 platform-version:110.0 # Link to the IntellIJ IDEA 11 RC. More details are available here: http://www.jetbrains.com/idea/nextversion/ idea.download.url=http://download.jetbrains.com/idea/ideaIU-111.41.zip
version-id:0.20 platform-version:110.0 idea.download.url=http://download.jetbrains.com/idea/ideaIU-11.zip
Update link for IntelliJ IDEA to download
Update link for IntelliJ IDEA to download
INI
mit
JetBrains/ideavim,JetBrains/ideavim
ini
## Code Before: version-id:0.20 platform-version:110.0 # Link to the IntellIJ IDEA 11 RC. More details are available here: http://www.jetbrains.com/idea/nextversion/ idea.download.url=http://download.jetbrains.com/idea/ideaIU-111.41.zip ## Instruction: Update link for IntelliJ IDEA to download ## Code After: version-id:0.20 platform-version:110.0 idea.download.url=http://download.jetbrains.com/idea/ideaIU-11.zip
version-id:0.20 platform-version:110.0 - # Link to the IntellIJ IDEA 11 RC. More details are available here: http://www.jetbrains.com/idea/nextversion/ - idea.download.url=http://download.jetbrains.com/idea/ideaIU-111.41.zip ? ---- + idea.download.url=http://download.jetbrains.com/idea/ideaIU-11.zip
3
0.75
1
2
e4a4f3cfd48d6343d330f7d10270266de9b65a15
rspec_testing.rb
rspec_testing.rb
require "rubygems" require "json" require "socket" serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json` parsed = JSON.parse(serverspec_results) parsed["examples"].each do |serverspec_test| test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_number"].to_s output = serverspec_test["full_description"].gsub!(/\"/, '') status = 0 if serverspec_test["status"] != "passed" status = 1 end conn = TCPSocket.new '127.0.0.1', 3030 conn.puts %({"handlers": ["default"], "name": "#{test_name}", "output": "#{output}", "status": #{status} }) conn.close end puts parsed["summary_line"] failures = parsed["summary_line"].split[2] if failures == '0' exit 0 else exit 2 end
require "rubygems" require "json" require "socket" serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json` parsed = JSON.parse(serverspec_results) parsed["examples"].each do |serverspec_test| test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_number"].to_s output = serverspec_test["full_description"].gsub!(/\"/, '') status = 0 if serverspec_test["status"] != "passed" status = 1 end conn = TCPSocket.new '127.0.0.1', 3030 conn.puts %({"handlers": ["default"], "name": "#{test_name}", "output": #{output.to_json}, "status": #{status} }) conn.close end puts parsed["summary_line"] failures = parsed["summary_line"].split[2] if failures == '0' exit 0 else exit 2 end
Convert output string to JSON
Convert output string to JSON
Ruby
apache-2.0
m-richo/sensu_check-rspec
ruby
## Code Before: require "rubygems" require "json" require "socket" serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json` parsed = JSON.parse(serverspec_results) parsed["examples"].each do |serverspec_test| test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_number"].to_s output = serverspec_test["full_description"].gsub!(/\"/, '') status = 0 if serverspec_test["status"] != "passed" status = 1 end conn = TCPSocket.new '127.0.0.1', 3030 conn.puts %({"handlers": ["default"], "name": "#{test_name}", "output": "#{output}", "status": #{status} }) conn.close end puts parsed["summary_line"] failures = parsed["summary_line"].split[2] if failures == '0' exit 0 else exit 2 end ## Instruction: Convert output string to JSON ## Code After: require "rubygems" require "json" require "socket" serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json` parsed = JSON.parse(serverspec_results) parsed["examples"].each do |serverspec_test| test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_number"].to_s output = serverspec_test["full_description"].gsub!(/\"/, '') status = 0 if serverspec_test["status"] != "passed" status = 1 end conn = TCPSocket.new '127.0.0.1', 3030 conn.puts %({"handlers": ["default"], "name": "#{test_name}", "output": #{output.to_json}, "status": #{status} }) conn.close end puts parsed["summary_line"] failures = parsed["summary_line"].split[2] if failures == '0' exit 0 else exit 2 end
require "rubygems" require "json" require "socket" serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json` parsed = JSON.parse(serverspec_results) parsed["examples"].each do |serverspec_test| test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_number"].to_s output = serverspec_test["full_description"].gsub!(/\"/, '') status = 0 if serverspec_test["status"] != "passed" status = 1 end conn = TCPSocket.new '127.0.0.1', 3030 - conn.puts %({"handlers": ["default"], "name": "#{test_name}", "output": "#{output}", "status": #{status} }) ? - - + conn.puts %({"handlers": ["default"], "name": "#{test_name}", "output": #{output.to_json}, "status": #{status} }) ? ++++++++ conn.close end puts parsed["summary_line"] failures = parsed["summary_line"].split[2] if failures == '0' exit 0 else exit 2 end
2
0.076923
1
1
90d7165c86890297776ee17711cd091f0ac155b9
app/assets/stylesheets/modules/_flash.scss
app/assets/stylesheets/modules/_flash.scss
.flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } }
.flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; } p { margin: 0; padding: 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } }
Reduce spacing of any inner <p> elements
Reduce spacing of any inner <p> elements
SCSS
mit
madetech/ydtd-frontend,madetech/ydtd-frontend
scss
## Code Before: .flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } } ## Instruction: Reduce spacing of any inner <p> elements ## Code After: .flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; } p { margin: 0; padding: 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } }
.flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; + } + + p { + margin: 0; + padding: 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } }
5
0.125
5
0
48a75e0e38d60624571389bf95b0a2a16f5b4245
xfrm_monitor_test.go
xfrm_monitor_test.go
// +build linux package netlink import ( "testing" "github.com/vishvananda/netlink/nl" ) func TestXfrmMonitorExpire(t *testing.T) { defer setUpNetlinkTest(t)() ch := make(chan XfrmMsg) done := make(chan struct{}) defer close(done) errChan := make(chan error) if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_MSG_EXPIRE); err != nil { t.Fatal(err) } // Program state with limits state := getBaseState() state.Limits.TimeHard = 2 state.Limits.TimeSoft = 1 if err := XfrmStateAdd(state); err != nil { t.Fatal(err) } msg := (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi || msg.Hard { t.Fatal("Received unexpected msg") } msg = (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi || !msg.Hard { t.Fatal("Received unexpected msg") } }
// +build linux package netlink import ( "testing" "github.com/vishvananda/netlink/nl" ) func TestXfrmMonitorExpire(t *testing.T) { defer setUpNetlinkTest(t)() ch := make(chan XfrmMsg) done := make(chan struct{}) defer close(done) errChan := make(chan error) if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_MSG_EXPIRE); err != nil { t.Fatal(err) } // Program state with limits state := getBaseState() state.Limits.TimeHard = 2 state.Limits.TimeSoft = 1 if err := XfrmStateAdd(state); err != nil { t.Fatal(err) } hardFound := false softFound := false msg := (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi { t.Fatal("Received unexpected msg, spi does not match") } hardFound = msg.Hard || hardFound softFound = !msg.Hard || softFound msg = (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi { t.Fatal("Received unexpected msg, spi does not match") } hardFound = msg.Hard || hardFound softFound = !msg.Hard || softFound if !hardFound || !softFound { t.Fatal("Missing expire msg: hard found:", hardFound, "soft found:", softFound) } }
Fix Race Condition in TestXfrmMonitorExpire
Fix Race Condition in TestXfrmMonitorExpire
Go
apache-2.0
paravmellanox/netlink,vishvananda/netlink
go
## Code Before: // +build linux package netlink import ( "testing" "github.com/vishvananda/netlink/nl" ) func TestXfrmMonitorExpire(t *testing.T) { defer setUpNetlinkTest(t)() ch := make(chan XfrmMsg) done := make(chan struct{}) defer close(done) errChan := make(chan error) if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_MSG_EXPIRE); err != nil { t.Fatal(err) } // Program state with limits state := getBaseState() state.Limits.TimeHard = 2 state.Limits.TimeSoft = 1 if err := XfrmStateAdd(state); err != nil { t.Fatal(err) } msg := (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi || msg.Hard { t.Fatal("Received unexpected msg") } msg = (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi || !msg.Hard { t.Fatal("Received unexpected msg") } } ## Instruction: Fix Race Condition in TestXfrmMonitorExpire ## Code After: // +build linux package netlink import ( "testing" "github.com/vishvananda/netlink/nl" ) func TestXfrmMonitorExpire(t *testing.T) { defer setUpNetlinkTest(t)() ch := make(chan XfrmMsg) done := make(chan struct{}) defer close(done) errChan := make(chan error) if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_MSG_EXPIRE); err != nil { t.Fatal(err) } // Program state with limits state := getBaseState() state.Limits.TimeHard = 2 state.Limits.TimeSoft = 1 if err := XfrmStateAdd(state); err != nil { t.Fatal(err) } hardFound := false softFound := false msg := (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi { t.Fatal("Received unexpected msg, spi does not match") } hardFound = msg.Hard || hardFound softFound = !msg.Hard || softFound msg = (<-ch).(*XfrmMsgExpire) if msg.XfrmState.Spi != state.Spi { t.Fatal("Received unexpected msg, spi does not match") } hardFound = msg.Hard || hardFound softFound = !msg.Hard || softFound if !hardFound || !softFound { t.Fatal("Missing expire msg: hard found:", hardFound, "soft found:", softFound) } }
// +build linux package netlink import ( "testing" "github.com/vishvananda/netlink/nl" ) func TestXfrmMonitorExpire(t *testing.T) { defer setUpNetlinkTest(t)() ch := make(chan XfrmMsg) done := make(chan struct{}) defer close(done) errChan := make(chan error) if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_MSG_EXPIRE); err != nil { t.Fatal(err) } // Program state with limits state := getBaseState() state.Limits.TimeHard = 2 state.Limits.TimeSoft = 1 if err := XfrmStateAdd(state); err != nil { t.Fatal(err) } + hardFound := false + softFound := false + msg := (<-ch).(*XfrmMsgExpire) - if msg.XfrmState.Spi != state.Spi || msg.Hard { ? ------------ + if msg.XfrmState.Spi != state.Spi { - t.Fatal("Received unexpected msg") + t.Fatal("Received unexpected msg, spi does not match") ? ++++++++++++++++++++ } + hardFound = msg.Hard || hardFound + softFound = !msg.Hard || softFound msg = (<-ch).(*XfrmMsgExpire) - if msg.XfrmState.Spi != state.Spi || !msg.Hard { ? ------------- + if msg.XfrmState.Spi != state.Spi { - t.Fatal("Received unexpected msg") + t.Fatal("Received unexpected msg, spi does not match") ? ++++++++++++++++++++ + } + hardFound = msg.Hard || hardFound + softFound = !msg.Hard || softFound + + if !hardFound || !softFound { + t.Fatal("Missing expire msg: hard found:", hardFound, "soft found:", softFound) } }
19
0.487179
15
4
57a86d240c3d8fa1f2642eebe87fe5d2a42f0947
zsh/_antigen.zsh
zsh/_antigen.zsh
source ~/.dotfiles/vendor/antigen/antigen.zsh # Disable oh-my-zsh ls colors, which doesn't support OS X or gls. DISABLE_LS_COLORS="true" # Some other minor oh-my-zsh configuration. DISABLE_AUTO_UPDATE="true" COMPLETION_WAITING_DOTS="true" DISABLE_UNTRACKED_FILES_DIRTY="true" # Load the oh-my-zsh library antigen use oh-my-zsh antigen bundle git antigen bundle brew antigen bundle autojump antigen bundle tmux antigen bundle golang antigen bundle zsh-users/zsh-syntax-highlighting #antigen theme crunch antigen theme bureau antigen apply
source ~/.dotfiles/vendor/antigen/antigen.zsh # Disable oh-my-zsh ls colors, which doesn't support OS X or gls. DISABLE_LS_COLORS="true" # Some other minor oh-my-zsh configuration. DISABLE_AUTO_UPDATE="true" COMPLETION_WAITING_DOTS="true" DISABLE_UNTRACKED_FILES_DIRTY="true" # Load the oh-my-zsh library antigen use oh-my-zsh antigen bundle git antigen bundle brew antigen bundle autojump antigen bundle tmux antigen bundle golang antigen bundle zsh-users/zsh-syntax-highlighting antigen theme crunch antigen apply
Revert "Switch to bureau theme"
Revert "Switch to bureau theme" This reverts commit f1057c087b78f56acf4152e57c0274dfa7e1db57.
Shell
mit
tchajed/dotfiles-osx,tchajed/dotfiles-osx,tchajed/dotfiles-osx
shell
## Code Before: source ~/.dotfiles/vendor/antigen/antigen.zsh # Disable oh-my-zsh ls colors, which doesn't support OS X or gls. DISABLE_LS_COLORS="true" # Some other minor oh-my-zsh configuration. DISABLE_AUTO_UPDATE="true" COMPLETION_WAITING_DOTS="true" DISABLE_UNTRACKED_FILES_DIRTY="true" # Load the oh-my-zsh library antigen use oh-my-zsh antigen bundle git antigen bundle brew antigen bundle autojump antigen bundle tmux antigen bundle golang antigen bundle zsh-users/zsh-syntax-highlighting #antigen theme crunch antigen theme bureau antigen apply ## Instruction: Revert "Switch to bureau theme" This reverts commit f1057c087b78f56acf4152e57c0274dfa7e1db57. ## Code After: source ~/.dotfiles/vendor/antigen/antigen.zsh # Disable oh-my-zsh ls colors, which doesn't support OS X or gls. DISABLE_LS_COLORS="true" # Some other minor oh-my-zsh configuration. DISABLE_AUTO_UPDATE="true" COMPLETION_WAITING_DOTS="true" DISABLE_UNTRACKED_FILES_DIRTY="true" # Load the oh-my-zsh library antigen use oh-my-zsh antigen bundle git antigen bundle brew antigen bundle autojump antigen bundle tmux antigen bundle golang antigen bundle zsh-users/zsh-syntax-highlighting antigen theme crunch antigen apply
source ~/.dotfiles/vendor/antigen/antigen.zsh # Disable oh-my-zsh ls colors, which doesn't support OS X or gls. DISABLE_LS_COLORS="true" # Some other minor oh-my-zsh configuration. DISABLE_AUTO_UPDATE="true" COMPLETION_WAITING_DOTS="true" DISABLE_UNTRACKED_FILES_DIRTY="true" # Load the oh-my-zsh library antigen use oh-my-zsh antigen bundle git antigen bundle brew antigen bundle autojump antigen bundle tmux antigen bundle golang antigen bundle zsh-users/zsh-syntax-highlighting - #antigen theme crunch ? - + antigen theme crunch - antigen theme bureau antigen apply
3
0.130435
1
2
c86dfac9e31dfaba00611e5bae362fe7633fc593
hotModuleReplacement.js
hotModuleReplacement.js
module.exports = function(publicPath, outputFilename) { if (document) { var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? ':' + document.location.port: ''); var newHref = origin + publicPath + outputFilename var links = document.getElementsByTagName('link'); //update the stylesheet corresponding to `outputFilename` for (var i = 0; i < links.length; i++) { if (links[i].href) { var oldChunk = new URL(links[i].href); var newChunk = new URL(newHref); if (oldChunk.pathname === newChunk.pathname) { var oldSheet = links[i] var url = newHref + '?' + (+new Date) var head = document.getElementsByTagName('head')[0] var link = document.createElement('link') // date insures sheets update when [contenthash] is not used in file names link.href = url link.charset = 'utf-8' link.type = 'text/css' link.rel = 'stylesheet' head.insertBefore(link, oldSheet.nextSibling) // remove the old sheet only after the old one loads so it's seamless // we gotta do it this way since link.onload basically doesn't work var img = document.createElement('img') img.onerror = function() { oldSheet.remove() console.log('[HMR]', 'Reload css: ', url); } img.src = url break; } } } } }
module.exports = function(publicPath, outputFilename) { if (document) { var newHref = publicPath.match(/https?:/g) ? new URL(outputFilename, publicPath) : new URL(outputFilename, window.location); var links = document.getElementsByTagName('link'); //update the stylesheet corresponding to `outputFilename` for (var i = 0; i < links.length; i++) { if (links[i].href) { var oldChunk = new URL(links[i].href); if (oldChunk.pathname === newHref.pathname) { var oldSheet = links[i] var url = newHref.href + '?' + (+new Date) var head = document.getElementsByTagName('head')[0] var link = document.createElement('link') // date insures sheets update when [contenthash] is not used in file names link.href = url link.charset = 'utf-8' link.type = 'text/css' link.rel = 'stylesheet' head.insertBefore(link, oldSheet.nextSibling) // remove the old sheet only after the old one loads so it's seamless // we gotta do it this way since link.onload basically doesn't work var img = document.createElement('img') img.onerror = function() { oldSheet.remove() console.log('[HMR]', 'Reload css: ', url); } img.src = url break; } } } } }
Support arbitrary origins in publicPath.
fix($hmr): Support arbitrary origins in publicPath. If the Webpack publicPath contains "http:" or "https:", treat it as the base URL for newly-loaded assets. Otherwise, continue to use the current window's location. Fixes #25.
JavaScript
mit
faceyspacey/extract-css-chunks-webpack-plugin,brightbytes/extract-css-chunks-webpack-plugin,faceyspacey/extract-css-chunks-webpack-plugin,brightbytes/extract-css-chunks-webpack-plugin
javascript
## Code Before: module.exports = function(publicPath, outputFilename) { if (document) { var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? ':' + document.location.port: ''); var newHref = origin + publicPath + outputFilename var links = document.getElementsByTagName('link'); //update the stylesheet corresponding to `outputFilename` for (var i = 0; i < links.length; i++) { if (links[i].href) { var oldChunk = new URL(links[i].href); var newChunk = new URL(newHref); if (oldChunk.pathname === newChunk.pathname) { var oldSheet = links[i] var url = newHref + '?' + (+new Date) var head = document.getElementsByTagName('head')[0] var link = document.createElement('link') // date insures sheets update when [contenthash] is not used in file names link.href = url link.charset = 'utf-8' link.type = 'text/css' link.rel = 'stylesheet' head.insertBefore(link, oldSheet.nextSibling) // remove the old sheet only after the old one loads so it's seamless // we gotta do it this way since link.onload basically doesn't work var img = document.createElement('img') img.onerror = function() { oldSheet.remove() console.log('[HMR]', 'Reload css: ', url); } img.src = url break; } } } } } ## Instruction: fix($hmr): Support arbitrary origins in publicPath. If the Webpack publicPath contains "http:" or "https:", treat it as the base URL for newly-loaded assets. Otherwise, continue to use the current window's location. Fixes #25. ## Code After: module.exports = function(publicPath, outputFilename) { if (document) { var newHref = publicPath.match(/https?:/g) ? new URL(outputFilename, publicPath) : new URL(outputFilename, window.location); var links = document.getElementsByTagName('link'); //update the stylesheet corresponding to `outputFilename` for (var i = 0; i < links.length; i++) { if (links[i].href) { var oldChunk = new URL(links[i].href); if (oldChunk.pathname === newHref.pathname) { var oldSheet = links[i] var url = newHref.href + '?' + (+new Date) var head = document.getElementsByTagName('head')[0] var link = document.createElement('link') // date insures sheets update when [contenthash] is not used in file names link.href = url link.charset = 'utf-8' link.type = 'text/css' link.rel = 'stylesheet' head.insertBefore(link, oldSheet.nextSibling) // remove the old sheet only after the old one loads so it's seamless // we gotta do it this way since link.onload basically doesn't work var img = document.createElement('img') img.onerror = function() { oldSheet.remove() console.log('[HMR]', 'Reload css: ', url); } img.src = url break; } } } } }
module.exports = function(publicPath, outputFilename) { if (document) { + var newHref = publicPath.match(/https?:/g) ? new URL(outputFilename, publicPath) : new URL(outputFilename, window.location); - var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? ':' + document.location.port: ''); - var newHref = origin + publicPath + outputFilename var links = document.getElementsByTagName('link'); //update the stylesheet corresponding to `outputFilename` for (var i = 0; i < links.length; i++) { if (links[i].href) { var oldChunk = new URL(links[i].href); - var newChunk = new URL(newHref); - if (oldChunk.pathname === newChunk.pathname) { ? ^^^^^ + if (oldChunk.pathname === newHref.pathname) { ? ^^^^ var oldSheet = links[i] - var url = newHref + '?' + (+new Date) + var url = newHref.href + '?' + (+new Date) ? +++++ var head = document.getElementsByTagName('head')[0] var link = document.createElement('link') // date insures sheets update when [contenthash] is not used in file names link.href = url link.charset = 'utf-8' link.type = 'text/css' link.rel = 'stylesheet' head.insertBefore(link, oldSheet.nextSibling) // remove the old sheet only after the old one loads so it's seamless // we gotta do it this way since link.onload basically doesn't work var img = document.createElement('img') img.onerror = function() { oldSheet.remove() console.log('[HMR]', 'Reload css: ', url); } img.src = url break; } } } } }
8
0.2
3
5
ad4a201d4b39b0aa06eff542338cbe1097f2e486
front_end/panels/application/components/protocolHandlersView.css
front_end/panels/application/components/protocolHandlersView.css
/* * Copyright (c) 2022 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. */ .devtools-link { color: var(--color-link); text-decoration: underline; cursor: pointer; padding: 2px 0; /* adjust focus ring size */ } input.devtools-text-input[type="text"] { padding: 3px 6px; margin-left: 4px; margin-right: 4px; width: 250px; height: 25px; } .protocol-handlers-row { margin: 10px 0 2px 18px; } .inline-icon { vertical-align: text-bottom; } @media (forced-colors: active) { .devtools-link:not(.devtools-link-prevent-click) { color: linktext; } .devtools-link:focus-visible { background: Highlight; color: HighlightText; } }
/* * Copyright (c) 2022 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. */ .devtools-link { color: var(--color-link); text-decoration: underline; cursor: pointer; padding: 2px 0; /* adjust focus ring size */ } .devtools-link:focus-visible { outline-width: unset; } input.devtools-text-input[type="text"] { padding: 3px 6px; margin-left: 4px; margin-right: 4px; width: 250px; height: 25px; } .protocol-handlers-row { margin: 10px 0 2px 18px; } .inline-icon { vertical-align: text-bottom; } @media (forced-colors: active) { .devtools-link:not(.devtools-link-prevent-click) { color: linktext; } .devtools-link:focus-visible { background: Highlight; color: HighlightText; } }
Fix focus box for hyperlinks and text box in protocol handler section
Fix focus box for hyperlinks and text box in protocol handler section Issue: 1. Focus box was not visible on hyperlinks in the protocol handler section in the Application Tool when tabbing to it. 2. The focus box color for the text box in the protocol handler section did not follow the color of other text boxes in DevTools GIF of issue: https://drive.google.com/file/d/1bLe_GXtzt1xzidSmaeJf4dj338sfBsKT/view?usp=sharing Fix: 1. Focus box is now visible for hyperlinks when tabbing to it 2. The focus box color for the text box now matches other text boxes in DevTools Bug: 1336012: Focus box not visible when tabbing to hyperlinks in Protocol Handler section in Manifest Application Tool Change-Id: I4db01062183b3bc98eff3a25be65d9355dab7de4 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3705145 Commit-Queue: Kristin Lee <0f20a4934da336f76a8882b155f5bcf94925fad0@microsoft.com> Reviewed-by: Wolfgang Beyer <573aa99bb19da47d816981118f95c945310dd3f4@chromium.org> Reviewed-by: Michael Liao <00d75d81082fdf74688ec453c516b42f7cbf0f40@microsoft.com> Reviewed-by: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org>
CSS
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
css
## Code Before: /* * Copyright (c) 2022 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. */ .devtools-link { color: var(--color-link); text-decoration: underline; cursor: pointer; padding: 2px 0; /* adjust focus ring size */ } input.devtools-text-input[type="text"] { padding: 3px 6px; margin-left: 4px; margin-right: 4px; width: 250px; height: 25px; } .protocol-handlers-row { margin: 10px 0 2px 18px; } .inline-icon { vertical-align: text-bottom; } @media (forced-colors: active) { .devtools-link:not(.devtools-link-prevent-click) { color: linktext; } .devtools-link:focus-visible { background: Highlight; color: HighlightText; } } ## Instruction: Fix focus box for hyperlinks and text box in protocol handler section Issue: 1. Focus box was not visible on hyperlinks in the protocol handler section in the Application Tool when tabbing to it. 2. The focus box color for the text box in the protocol handler section did not follow the color of other text boxes in DevTools GIF of issue: https://drive.google.com/file/d/1bLe_GXtzt1xzidSmaeJf4dj338sfBsKT/view?usp=sharing Fix: 1. Focus box is now visible for hyperlinks when tabbing to it 2. The focus box color for the text box now matches other text boxes in DevTools Bug: 1336012: Focus box not visible when tabbing to hyperlinks in Protocol Handler section in Manifest Application Tool Change-Id: I4db01062183b3bc98eff3a25be65d9355dab7de4 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3705145 Commit-Queue: Kristin Lee <0f20a4934da336f76a8882b155f5bcf94925fad0@microsoft.com> Reviewed-by: Wolfgang Beyer <573aa99bb19da47d816981118f95c945310dd3f4@chromium.org> Reviewed-by: Michael Liao <00d75d81082fdf74688ec453c516b42f7cbf0f40@microsoft.com> Reviewed-by: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org> ## Code After: /* * Copyright (c) 2022 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. */ .devtools-link { color: var(--color-link); text-decoration: underline; cursor: pointer; padding: 2px 0; /* adjust focus ring size */ } .devtools-link:focus-visible { outline-width: unset; } input.devtools-text-input[type="text"] { padding: 3px 6px; margin-left: 4px; margin-right: 4px; width: 250px; height: 25px; } .protocol-handlers-row { margin: 10px 0 2px 18px; } .inline-icon { vertical-align: text-bottom; } @media (forced-colors: active) { .devtools-link:not(.devtools-link-prevent-click) { color: linktext; } .devtools-link:focus-visible { background: Highlight; color: HighlightText; } }
/* * Copyright (c) 2022 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. */ .devtools-link { color: var(--color-link); text-decoration: underline; cursor: pointer; padding: 2px 0; /* adjust focus ring size */ + } + + .devtools-link:focus-visible { + outline-width: unset; } input.devtools-text-input[type="text"] { padding: 3px 6px; margin-left: 4px; margin-right: 4px; width: 250px; height: 25px; } .protocol-handlers-row { margin: 10px 0 2px 18px; } .inline-icon { vertical-align: text-bottom; } @media (forced-colors: active) { .devtools-link:not(.devtools-link-prevent-click) { color: linktext; } .devtools-link:focus-visible { background: Highlight; color: HighlightText; } }
4
0.102564
4
0
7dc44d8250ccf91b13833af1605f46b131d715e5
tests/testprocs/org/voltdb_testprocs/fakeusecase/greetings/package-info.java
tests/testprocs/org/voltdb_testprocs/fakeusecase/greetings/package-info.java
/* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /** * A fake use case intended for use verifying that 'voltdb init --classes' works with non-trivial use cases. * The theme is querying translations for 'Hello' in different languages. */ package fakeusecase.greetings;
/* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /** * A fake use case intended for use verifying that 'voltdb init --classes' works with non-trivial use cases. * The theme is querying translations for 'Hello' in different languages. */ package org.voltdb_testprocs.fakeusecase.greetings;
Fix package name to keep Eclipse happy.
Fix package name to keep Eclipse happy.
Java
agpl-3.0
deerwalk/voltdb,deerwalk/voltdb,deerwalk/voltdb,deerwalk/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,VoltDB/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,deerwalk/voltdb,deerwalk/voltdb,deerwalk/voltdb,VoltDB/voltdb,deerwalk/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,VoltDB/voltdb,VoltDB/voltdb
java
## Code Before: /* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /** * A fake use case intended for use verifying that 'voltdb init --classes' works with non-trivial use cases. * The theme is querying translations for 'Hello' in different languages. */ package fakeusecase.greetings; ## Instruction: Fix package name to keep Eclipse happy. ## Code After: /* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /** * A fake use case intended for use verifying that 'voltdb init --classes' works with non-trivial use cases. * The theme is querying translations for 'Hello' in different languages. */ package org.voltdb_testprocs.fakeusecase.greetings;
/* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /** * A fake use case intended for use verifying that 'voltdb init --classes' works with non-trivial use cases. * The theme is querying translations for 'Hello' in different languages. */ - package fakeusecase.greetings; + package org.voltdb_testprocs.fakeusecase.greetings;
2
0.071429
1
1
ef6430aa35d6c00e33e9eb4e48cf347302aa7699
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: test: docker: - image: circleci/golang:1.12 environment: GO111MODULE: 'on' GOPROXY: https://proxy.golang.org steps: - checkout - run: git submodule sync - run: git submodule update --init - run: go test -race -v ./... workflows: version: 2 test: jobs: - test
version: 2 jobs: test: docker: - image: circleci/golang:1.12 environment: GO111MODULE: 'on' GOPROXY: https://proxy.golang.org steps: - checkout - run: git submodule sync - run: git submodule update --init - run: command: go test -race -v ./... no_output_timeout: 20m workflows: version: 2 test: jobs: - test
Extend CI no output timeout
Extend CI no output timeout This prevents spurious failures caused by CircleCI cutting off the build when it goes too long without output, which happens sometimes since the tests don't output anything until they've been completed.
YAML
mit
lightstep/lightstep-tracer-go,lightstep/lightstep-tracer-go
yaml
## Code Before: version: 2 jobs: test: docker: - image: circleci/golang:1.12 environment: GO111MODULE: 'on' GOPROXY: https://proxy.golang.org steps: - checkout - run: git submodule sync - run: git submodule update --init - run: go test -race -v ./... workflows: version: 2 test: jobs: - test ## Instruction: Extend CI no output timeout This prevents spurious failures caused by CircleCI cutting off the build when it goes too long without output, which happens sometimes since the tests don't output anything until they've been completed. ## Code After: version: 2 jobs: test: docker: - image: circleci/golang:1.12 environment: GO111MODULE: 'on' GOPROXY: https://proxy.golang.org steps: - checkout - run: git submodule sync - run: git submodule update --init - run: command: go test -race -v ./... no_output_timeout: 20m workflows: version: 2 test: jobs: - test
version: 2 jobs: test: docker: - image: circleci/golang:1.12 environment: GO111MODULE: 'on' GOPROXY: https://proxy.golang.org steps: - checkout - run: git submodule sync - run: git submodule update --init + - run: - - run: go test -race -v ./... ? - ^^ + command: go test -race -v ./... ? ^^^^^^^^ + + no_output_timeout: 20m workflows: version: 2 test: jobs: - test
4
0.2
3
1
0a4aceb87eae57188c5f61bb93d78d5cc9f1779f
lava_scheduler_app/templatetags/utils.py
lava_scheduler_app/templatetags/utils.py
from django import template from django.utils.safestring import mark_safe from lava_scheduler_app.models import TestJob register = template.Library() @register.filter def get_priority_select(current): select = "" val = TestJob.PRIORITY_CHOICES for priority, label in val: check = " checked" if priority == current else "" default = " [default]" if current != 50 and priority == 50 else "" select += '<input type="radio" name="priority" style="..." id="%s" value="%d"%s>%s%s</input><br/>' %\ (label.lower(), priority, check, label, default) return mark_safe(select)
from django import template from django.utils.safestring import mark_safe from lava_scheduler_app.models import TestJob register = template.Library() @register.filter def get_priority_select(current): select = "" val = TestJob.PRIORITY_CHOICES for priority, label in val: check = " checked" if priority == current else "" default = " [default]" if current != 50 and priority == 50 else "" select += '<label class="checkbox-inline">' select += '<input type="radio" name="priority" style="..." id="%s" value="%d"%s>%s%s</input><br/>' %\ (label.lower(), priority, check, label, default) select += '</label>' return mark_safe(select)
Use inline radio buttons for priority changes.
Use inline radio buttons for priority changes. Change-Id: Ifb9a685bca654c5139aef3ca78e800b66ce77eb9
Python
agpl-3.0
Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server
python
## Code Before: from django import template from django.utils.safestring import mark_safe from lava_scheduler_app.models import TestJob register = template.Library() @register.filter def get_priority_select(current): select = "" val = TestJob.PRIORITY_CHOICES for priority, label in val: check = " checked" if priority == current else "" default = " [default]" if current != 50 and priority == 50 else "" select += '<input type="radio" name="priority" style="..." id="%s" value="%d"%s>%s%s</input><br/>' %\ (label.lower(), priority, check, label, default) return mark_safe(select) ## Instruction: Use inline radio buttons for priority changes. Change-Id: Ifb9a685bca654c5139aef3ca78e800b66ce77eb9 ## Code After: from django import template from django.utils.safestring import mark_safe from lava_scheduler_app.models import TestJob register = template.Library() @register.filter def get_priority_select(current): select = "" val = TestJob.PRIORITY_CHOICES for priority, label in val: check = " checked" if priority == current else "" default = " [default]" if current != 50 and priority == 50 else "" select += '<label class="checkbox-inline">' select += '<input type="radio" name="priority" style="..." id="%s" value="%d"%s>%s%s</input><br/>' %\ (label.lower(), priority, check, label, default) select += '</label>' return mark_safe(select)
from django import template from django.utils.safestring import mark_safe from lava_scheduler_app.models import TestJob register = template.Library() @register.filter def get_priority_select(current): select = "" val = TestJob.PRIORITY_CHOICES for priority, label in val: check = " checked" if priority == current else "" default = " [default]" if current != 50 and priority == 50 else "" + select += '<label class="checkbox-inline">' select += '<input type="radio" name="priority" style="..." id="%s" value="%d"%s>%s%s</input><br/>' %\ (label.lower(), priority, check, label, default) + select += '</label>' return mark_safe(select)
2
0.117647
2
0
e0052eabff481fc71c9806517dc10ca8bd359454
.travis.yml
.travis.yml
language: python services: - postgresql addons: postgresql: "9.4" python: - "3.5" sudo: false env: - TOXENV=py35-django110 - TOXENV=py35-django111 - TOXENV=py35-djangomaster - TOXENV=py36-django111 - TOXENV=py36-djangomaster matrix: fast_finish: true include: - python: "3.6" env: TOXENV=py36-django111 - python: "3.6" env: TOXENV=py36-djangomaster exclude: - python: "3.5" env: TOXENV=py36-django111 - python: "3.5" env: TOXENV=py36-djangomaster allow_failures: - env: TOXENV=py35-djangomaster - env: TOXENV=py36-djangomaster cache: directories: - $HOME/.cache/pip - $TRAVIS_BUILD_DIR/.tox install: - pip install coveralls tox before_script: - psql -c 'create database travis_ci_test;' -U postgres script: - tox after_script: - coveralls notifications: email: false
language: python services: - postgresql addons: postgresql: "9.4" python: - "3.5" sudo: false env: - TOXENV=py35-django110 - TOXENV=py35-django111 - TOXENV=py35-djangomaster - TOXENV=py36-django111 - TOXENV=py36-djangomaster matrix: fast_finish: true include: - python: "3.6" env: TOXENV=py36-django111 - python: "3.6" env: TOXENV=py36-djangomaster - python: "3.5" env: TOXENV="flake8" exclude: - python: "3.5" env: TOXENV=py36-django111 - python: "3.5" env: TOXENV=py36-djangomaster allow_failures: - env: TOXENV=py35-djangomaster - env: TOXENV=py36-djangomaster cache: directories: - $HOME/.cache/pip - $TRAVIS_BUILD_DIR/.tox install: - pip install coveralls tox before_script: - psql -c 'create database travis_ci_test;' -U postgres script: - tox after_script: - coveralls notifications: email: false
Add flake8 test to matrix
Add flake8 test to matrix
YAML
apache-2.0
menecio/django-api-bouncer
yaml
## Code Before: language: python services: - postgresql addons: postgresql: "9.4" python: - "3.5" sudo: false env: - TOXENV=py35-django110 - TOXENV=py35-django111 - TOXENV=py35-djangomaster - TOXENV=py36-django111 - TOXENV=py36-djangomaster matrix: fast_finish: true include: - python: "3.6" env: TOXENV=py36-django111 - python: "3.6" env: TOXENV=py36-djangomaster exclude: - python: "3.5" env: TOXENV=py36-django111 - python: "3.5" env: TOXENV=py36-djangomaster allow_failures: - env: TOXENV=py35-djangomaster - env: TOXENV=py36-djangomaster cache: directories: - $HOME/.cache/pip - $TRAVIS_BUILD_DIR/.tox install: - pip install coveralls tox before_script: - psql -c 'create database travis_ci_test;' -U postgres script: - tox after_script: - coveralls notifications: email: false ## Instruction: Add flake8 test to matrix ## Code After: language: python services: - postgresql addons: postgresql: "9.4" python: - "3.5" sudo: false env: - TOXENV=py35-django110 - TOXENV=py35-django111 - TOXENV=py35-djangomaster - TOXENV=py36-django111 - TOXENV=py36-djangomaster matrix: fast_finish: true include: - python: "3.6" env: TOXENV=py36-django111 - python: "3.6" env: TOXENV=py36-djangomaster - python: "3.5" env: TOXENV="flake8" exclude: - python: "3.5" env: TOXENV=py36-django111 - python: "3.5" env: TOXENV=py36-djangomaster allow_failures: - env: TOXENV=py35-djangomaster - env: TOXENV=py36-djangomaster cache: directories: - $HOME/.cache/pip - $TRAVIS_BUILD_DIR/.tox install: - pip install coveralls tox before_script: - psql -c 'create database travis_ci_test;' -U postgres script: - tox after_script: - coveralls notifications: email: false
language: python services: - postgresql - + addons: postgresql: "9.4" python: - "3.5" sudo: false env: - TOXENV=py35-django110 - TOXENV=py35-django111 - TOXENV=py35-djangomaster - TOXENV=py36-django111 - TOXENV=py36-djangomaster matrix: fast_finish: true include: - python: "3.6" env: TOXENV=py36-django111 - python: "3.6" env: TOXENV=py36-djangomaster + - python: "3.5" + env: TOXENV="flake8" exclude: - python: "3.5" env: TOXENV=py36-django111 - python: "3.5" env: TOXENV=py36-djangomaster allow_failures: - env: TOXENV=py35-djangomaster - env: TOXENV=py36-djangomaster cache: directories: - $HOME/.cache/pip - $TRAVIS_BUILD_DIR/.tox install: - pip install coveralls tox - + before_script: - psql -c 'create database travis_ci_test;' -U postgres script: - tox - + after_script: - coveralls notifications: email: false
8
0.145455
5
3
bdba5baffd48cde38bb89d35764a1b002a457a45
spec/overcommit/default_configuration_spec.rb
spec/overcommit/default_configuration_spec.rb
require 'spec_helper' describe 'default configuration' do default_config = YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash Overcommit::Utils.supported_hook_type_classes.each do |hook_type| context "within the #{hook_type} configuration section" do default_config[hook_type].each do |hook_name, hook_config| next if hook_name == 'ALL' it "explicitly sets the `enabled` option for #{hook_name}" do # Use variable names so it reads nicer in the RSpec output hook_enabled_option_set = !hook_config['enabled'].nil? all_hook_enabled_option_set = !default_config[hook_type]['ALL']['enabled'].nil? (hook_enabled_option_set || all_hook_enabled_option_set).should == true end end end end end
require 'spec_helper' describe 'default configuration' do default_config = YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash Overcommit::Utils.supported_hook_types.each do |hook_type| hook_class = Overcommit::Utils.camel_case(hook_type) Dir[File.join(Overcommit::HOOK_DIRECTORY, hook_type.gsub('-', '_'), '*')]. map { |hook_file| Overcommit::Utils.camel_case(File.basename(hook_file, '.rb')) }. each do |hook| next if hook == 'Base' context "for the #{hook} #{hook_type} hook" do it 'exists in config/default.yml' do default_config[hook_class][hook].should_not be_nil end it 'explicitly sets the enabled option' do # Use variable names so it reads nicer in the RSpec output hook_enabled_option_set = !default_config[hook_class][hook]['enabled'].nil? all_hook_enabled_option_set = !default_config[hook_class]['ALL']['enabled'].nil? (hook_enabled_option_set || all_hook_enabled_option_set).should == true end it 'defines a description' do default_config[hook_class][hook]['description'].should_not be_nil end end end end end
Add tests verifying configuration for hooks
Add tests verifying configuration for hooks Building on top of a5e834b, we want to also verify that all hooks have a `description` specified, as well as a configuration in general. We change the implementation to work backwards from the file names so that if we create a hook file but forget to add a configuration for it we'll get a test failure.
Ruby
mit
TheSooth/overcommit,oxocode/overcommit,blech75/overcommit,TheSooth/overcommit,gnagel/overcommit,oxocode/overcommit,blech75/overcommit,gnagel/overcommit
ruby
## Code Before: require 'spec_helper' describe 'default configuration' do default_config = YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash Overcommit::Utils.supported_hook_type_classes.each do |hook_type| context "within the #{hook_type} configuration section" do default_config[hook_type].each do |hook_name, hook_config| next if hook_name == 'ALL' it "explicitly sets the `enabled` option for #{hook_name}" do # Use variable names so it reads nicer in the RSpec output hook_enabled_option_set = !hook_config['enabled'].nil? all_hook_enabled_option_set = !default_config[hook_type]['ALL']['enabled'].nil? (hook_enabled_option_set || all_hook_enabled_option_set).should == true end end end end end ## Instruction: Add tests verifying configuration for hooks Building on top of a5e834b, we want to also verify that all hooks have a `description` specified, as well as a configuration in general. We change the implementation to work backwards from the file names so that if we create a hook file but forget to add a configuration for it we'll get a test failure. ## Code After: require 'spec_helper' describe 'default configuration' do default_config = YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash Overcommit::Utils.supported_hook_types.each do |hook_type| hook_class = Overcommit::Utils.camel_case(hook_type) Dir[File.join(Overcommit::HOOK_DIRECTORY, hook_type.gsub('-', '_'), '*')]. map { |hook_file| Overcommit::Utils.camel_case(File.basename(hook_file, '.rb')) }. each do |hook| next if hook == 'Base' context "for the #{hook} #{hook_type} hook" do it 'exists in config/default.yml' do default_config[hook_class][hook].should_not be_nil end it 'explicitly sets the enabled option' do # Use variable names so it reads nicer in the RSpec output hook_enabled_option_set = !default_config[hook_class][hook]['enabled'].nil? all_hook_enabled_option_set = !default_config[hook_class]['ALL']['enabled'].nil? (hook_enabled_option_set || all_hook_enabled_option_set).should == true end it 'defines a description' do default_config[hook_class][hook]['description'].should_not be_nil end end end end end
require 'spec_helper' describe 'default configuration' do default_config = YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash - Overcommit::Utils.supported_hook_type_classes.each do |hook_type| ? ------- + Overcommit::Utils.supported_hook_types.each do |hook_type| + hook_class = Overcommit::Utils.camel_case(hook_type) - context "within the #{hook_type} configuration section" do - default_config[hook_type].each do |hook_name, hook_config| - next if hook_name == 'ALL' + Dir[File.join(Overcommit::HOOK_DIRECTORY, hook_type.gsub('-', '_'), '*')]. + map { |hook_file| Overcommit::Utils.camel_case(File.basename(hook_file, '.rb')) }. + each do |hook| + next if hook == 'Base' + + context "for the #{hook} #{hook_type} hook" do + it 'exists in config/default.yml' do + default_config[hook_class][hook].should_not be_nil + end + - it "explicitly sets the `enabled` option for #{hook_name}" do ? ^ - - ^^^^^^^^^^^^^^^^^^ + it 'explicitly sets the enabled option' do ? ^ ^ # Use variable names so it reads nicer in the RSpec output - hook_enabled_option_set = !hook_config['enabled'].nil? ? ^^^^ + hook_enabled_option_set = !default_config[hook_class][hook]['enabled'].nil? ? ^^^^^^^ ++++++++++++++++++ - all_hook_enabled_option_set = !default_config[hook_type]['ALL']['enabled'].nil? ? ^^^^ + all_hook_enabled_option_set = !default_config[hook_class]['ALL']['enabled'].nil? ? ^^^^^ (hook_enabled_option_set || all_hook_enabled_option_set).should == true + end + + it 'defines a description' do + default_config[hook_class][hook]['description'].should_not be_nil end end end end end
26
1.181818
19
7
23aa853ea2ad42ccb817a2e1c85e3bea19c687aa
appinfo/info.xml
appinfo/info.xml
<?xml version="1.0"?> <info> <id>user_account_actions</id> <name>User Account Actions</name> <description>Send mails on users creation / deletion</description> <version>1.0</version> <licence>AGPLv3</licence> <author>Patrick Paysant / CNRS DSI</author> <require>7</require> </info>
<?xml version="1.0"?> <info> <id>user_account_actions</id> <name>User Account Actions</name> <description>Send mails on users creation / deletion</description> <version>1.0</version> <licence>AGPLv3</licence> <author>Patrick Paysant / CNRS DSI</author> <require>7</require> <types> <prelogin/> </types> </info>
Set application's type to prelogin
Set application's type to prelogin Application must loaded at preLogin phase to listen user_servervars2 createAuser events
XML
agpl-3.0
CNRS-DSI-Dev/user_account_actions,CNRS-DSI-Dev/user_account_actions
xml
## Code Before: <?xml version="1.0"?> <info> <id>user_account_actions</id> <name>User Account Actions</name> <description>Send mails on users creation / deletion</description> <version>1.0</version> <licence>AGPLv3</licence> <author>Patrick Paysant / CNRS DSI</author> <require>7</require> </info> ## Instruction: Set application's type to prelogin Application must loaded at preLogin phase to listen user_servervars2 createAuser events ## Code After: <?xml version="1.0"?> <info> <id>user_account_actions</id> <name>User Account Actions</name> <description>Send mails on users creation / deletion</description> <version>1.0</version> <licence>AGPLv3</licence> <author>Patrick Paysant / CNRS DSI</author> <require>7</require> <types> <prelogin/> </types> </info>
<?xml version="1.0"?> <info> <id>user_account_actions</id> <name>User Account Actions</name> <description>Send mails on users creation / deletion</description> <version>1.0</version> <licence>AGPLv3</licence> <author>Patrick Paysant / CNRS DSI</author> <require>7</require> + <types> + <prelogin/> + </types> </info>
3
0.3
3
0
cccf5c427ef78734db561a40c5759e010ac9cd60
_includes/menu_item.html
_includes/menu_item.html
<ul> {% for item in include.collection %} <li> {% if item.url %} <a href="{{ item.url }}">{{ item.title }}</a> {% else %} {{ item.title }} {% endif %} </li> {% if item.post_list == true %} {% include post_list.html %} {% endif %} {% if item.entries != blank %} {% include menu_item.html collection=item.entries %} {% endif %} {% endfor %} </ul>
<ul> {% for item in include.collection %} <li> {% if item.url %} <a href="{{ item.url }}">{{ item.title }}</a> {% else %} {{ item.title }} {% endif %} </li> {% if item.post_list == true %} {% include post_list.html %} {% endif %} {% if item.entries %} {% include menu_item.html collection=item.entries %} {% endif %} {% endfor %} </ul>
Fix menu item condition to avoid empty ul
Fix menu item condition to avoid empty ul The values of the `entries` field in `_data/menu.yml` are either a list or `false`, however it was compared to `blank` in `_include/menu_item.html`. As a result, some empty `<ul></ul>`s were generated in `_site/index.html`.
HTML
mit
Furkanzmc/furkanzmc.github.io,Furkanzmc/furkanzmc.github.io,Furkanzmc/furkanzmc.github.io,jashilko/jashilko.github.io,jashilko/jashilko.github.io
html
## Code Before: <ul> {% for item in include.collection %} <li> {% if item.url %} <a href="{{ item.url }}">{{ item.title }}</a> {% else %} {{ item.title }} {% endif %} </li> {% if item.post_list == true %} {% include post_list.html %} {% endif %} {% if item.entries != blank %} {% include menu_item.html collection=item.entries %} {% endif %} {% endfor %} </ul> ## Instruction: Fix menu item condition to avoid empty ul The values of the `entries` field in `_data/menu.yml` are either a list or `false`, however it was compared to `blank` in `_include/menu_item.html`. As a result, some empty `<ul></ul>`s were generated in `_site/index.html`. ## Code After: <ul> {% for item in include.collection %} <li> {% if item.url %} <a href="{{ item.url }}">{{ item.title }}</a> {% else %} {{ item.title }} {% endif %} </li> {% if item.post_list == true %} {% include post_list.html %} {% endif %} {% if item.entries %} {% include menu_item.html collection=item.entries %} {% endif %} {% endfor %} </ul>
<ul> {% for item in include.collection %} <li> {% if item.url %} <a href="{{ item.url }}">{{ item.title }}</a> {% else %} {{ item.title }} {% endif %} </li> {% if item.post_list == true %} {% include post_list.html %} {% endif %} - {% if item.entries != blank %} + {% if item.entries %} {% include menu_item.html collection=item.entries %} {% endif %} {% endfor %} </ul>
2
0.105263
1
1
ad05034406ce4810275ec3648c6ef185231a090e
casslist/templates/casslist/index.html
casslist/templates/casslist/index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Cassoundra - List</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> </head> <body> <div class="container"> <h2>Sound Commands</h2> <p>Sorted by upload time, most recently first.</p> {% if cass_sound_list %} <table class="table table-striped table-hover"> <thead> <tr> <th>Command</th> <th>Play Count</th> </tr> </thead> <tbody> {% for sound in cass_sound_list %} <tr> <td>{{ sound.name }}</td> <td>{{ sound.play_count }}</td> </tr> {% endfor %} </tbody> </table> {% endif %} </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Cassoundra - List</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> </head> <body> <div class="container"> <h2>Sound Commands</h2> <h4>Currently tracking {{ cass_sound_list|length }} sound effects.</h4> <p>Sorted by upload time, most recently first.</p> {% if cass_sound_list %} <table class="table table-striped table-hover"> <thead> <tr> <th>Command</th> <th>Play Count</th> </tr> </thead> <tbody> {% for sound in cass_sound_list %} <tr> <td>{{ sound.name }}</td> <td>{{ sound.play_count }}</td> </tr> {% endfor %} </tbody> </table> {% endif %} </div> </body> </html>
Add sound count to top of page
[casslist] Add sound count to top of page
HTML
mit
joshuaprince/Cassoundra,joshuaprince/Cassoundra,joshuaprince/Cassoundra
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Cassoundra - List</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> </head> <body> <div class="container"> <h2>Sound Commands</h2> <p>Sorted by upload time, most recently first.</p> {% if cass_sound_list %} <table class="table table-striped table-hover"> <thead> <tr> <th>Command</th> <th>Play Count</th> </tr> </thead> <tbody> {% for sound in cass_sound_list %} <tr> <td>{{ sound.name }}</td> <td>{{ sound.play_count }}</td> </tr> {% endfor %} </tbody> </table> {% endif %} </div> </body> </html> ## Instruction: [casslist] Add sound count to top of page ## Code After: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Cassoundra - List</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> </head> <body> <div class="container"> <h2>Sound Commands</h2> <h4>Currently tracking {{ cass_sound_list|length }} sound effects.</h4> <p>Sorted by upload time, most recently first.</p> {% if cass_sound_list %} <table class="table table-striped table-hover"> <thead> <tr> <th>Command</th> <th>Play Count</th> </tr> </thead> <tbody> {% for sound in cass_sound_list %} <tr> <td>{{ sound.name }}</td> <td>{{ sound.play_count }}</td> </tr> {% endfor %} </tbody> </table> {% endif %} </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Cassoundra - List</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> </head> <body> <div class="container"> <h2>Sound Commands</h2> + <h4>Currently tracking {{ cass_sound_list|length }} sound effects.</h4> <p>Sorted by upload time, most recently first.</p> {% if cass_sound_list %} <table class="table table-striped table-hover"> <thead> <tr> <th>Command</th> <th>Play Count</th> </tr> </thead> <tbody> {% for sound in cass_sound_list %} <tr> <td>{{ sound.name }}</td> <td>{{ sound.play_count }}</td> </tr> {% endfor %} </tbody> </table> {% endif %} </div> </body> </html>
1
0.027027
1
0
3ff3fed83bb129178d726586b20fe01b7ab34016
jenkins-run.sh
jenkins-run.sh
_dockerize(){ ./pundun-docker build pundun-$1 $2 ./pundun-docker run pundun-$1 $2 ./pundun-docker fetch_package pundun-$1 $2 ./pundun-docker stop pundun-$1 $2 ./pundun-docker rm pundun-$1 $2 mkdir -p ../archive/$2 mv packages/* ../archive/$2/ docker push pundunlabs/pundun-$1:$2 } tag="$(git ls-remote --tags https://github.com/pundunlabs/pundun.git | cut -d "/" -f 3 |grep -v -|grep -v {| sort -n -t. -k1 -k2 -k3 -r | head -n1)" if [ "$(docker images -q pundunlabs/pundun-$tag:centos-6.7 2> /dev/null)" = "" ]; then { _dockerize $tag centos-6.7 _dockerize $tag ubuntu-16.04 docker rm -v $(docker ps -a -q -f status=exited) docker images -q --filter "dangling=true" | xargs docker rmi } else echo "image already pulled." fi #Cleanup dangling images
_dockerize(){ ./pundun-docker build pundun-$1 $2 ./pundun-docker run pundun-$1 $2 ./pundun-docker fetch_package pundun-$1 $2 ./pundun-docker stop pundun-$1 $2 ./pundun-docker rm pundun-$1 $2 mkdir -p ../archive/$2 mv packages/* ../archive/$2/ docker push pundunlabs/pundun-$1:$2 } tag="$(git ls-remote --tags https://github.com/pundunlabs/pundun.git | cut -d "/" -f 3 |grep -v -|grep -v {| sort -n -t. -k1 -k2 -k3 -r | head -n1)" if [ "$(docker images -q pundunlabs/pundun-$tag:centos-6.7 2> /dev/null)" = "" ]; then { _dockerize $tag centos-6.7 _dockerize $tag ubuntu-16.04 } else echo "image already pulled." fi #Cleanup dangling images
Remove cleaning up docker images.
Remove cleaning up docker images.
Shell
apache-2.0
pundunlabs/pundun-docker
shell
## Code Before: _dockerize(){ ./pundun-docker build pundun-$1 $2 ./pundun-docker run pundun-$1 $2 ./pundun-docker fetch_package pundun-$1 $2 ./pundun-docker stop pundun-$1 $2 ./pundun-docker rm pundun-$1 $2 mkdir -p ../archive/$2 mv packages/* ../archive/$2/ docker push pundunlabs/pundun-$1:$2 } tag="$(git ls-remote --tags https://github.com/pundunlabs/pundun.git | cut -d "/" -f 3 |grep -v -|grep -v {| sort -n -t. -k1 -k2 -k3 -r | head -n1)" if [ "$(docker images -q pundunlabs/pundun-$tag:centos-6.7 2> /dev/null)" = "" ]; then { _dockerize $tag centos-6.7 _dockerize $tag ubuntu-16.04 docker rm -v $(docker ps -a -q -f status=exited) docker images -q --filter "dangling=true" | xargs docker rmi } else echo "image already pulled." fi #Cleanup dangling images ## Instruction: Remove cleaning up docker images. ## Code After: _dockerize(){ ./pundun-docker build pundun-$1 $2 ./pundun-docker run pundun-$1 $2 ./pundun-docker fetch_package pundun-$1 $2 ./pundun-docker stop pundun-$1 $2 ./pundun-docker rm pundun-$1 $2 mkdir -p ../archive/$2 mv packages/* ../archive/$2/ docker push pundunlabs/pundun-$1:$2 } tag="$(git ls-remote --tags https://github.com/pundunlabs/pundun.git | cut -d "/" -f 3 |grep -v -|grep -v {| sort -n -t. -k1 -k2 -k3 -r | head -n1)" if [ "$(docker images -q pundunlabs/pundun-$tag:centos-6.7 2> /dev/null)" = "" ]; then { _dockerize $tag centos-6.7 _dockerize $tag ubuntu-16.04 } else echo "image already pulled." fi #Cleanup dangling images
_dockerize(){ ./pundun-docker build pundun-$1 $2 ./pundun-docker run pundun-$1 $2 ./pundun-docker fetch_package pundun-$1 $2 ./pundun-docker stop pundun-$1 $2 ./pundun-docker rm pundun-$1 $2 mkdir -p ../archive/$2 mv packages/* ../archive/$2/ docker push pundunlabs/pundun-$1:$2 } tag="$(git ls-remote --tags https://github.com/pundunlabs/pundun.git | cut -d "/" -f 3 |grep -v -|grep -v {| sort -n -t. -k1 -k2 -k3 -r | head -n1)" if [ "$(docker images -q pundunlabs/pundun-$tag:centos-6.7 2> /dev/null)" = "" ]; then { _dockerize $tag centos-6.7 _dockerize $tag ubuntu-16.04 - docker rm -v $(docker ps -a -q -f status=exited) - docker images -q --filter "dangling=true" | xargs docker rmi } else echo "image already pulled." fi #Cleanup dangling images
2
0.086957
0
2
fa6d64d4d23c9c309b99311c0d07d6c4abc62f3e
lib/driver.rb
lib/driver.rb
require_relative "world_command.rb" # Runs the main game loop. # # @param [Player] player the player of the game. def run_driver(player) input = player_input while (input.casecmp("quit") != 0) interpret_command(input, player) input = player_input end end
require_relative "world_command.rb" # Runs the main game loop. # # @param [Player] player the player of the game. def run_driver(player) input = player_input prompt: '> ' while (input.casecmp("quit") != 0) interpret_command(input, player) input = player_input end end
Add player_input prompt: '> ' to handle default inputs
Add player_input prompt: '> ' to handle default inputs
Ruby
mit
nskins/goby,nskins/goby
ruby
## Code Before: require_relative "world_command.rb" # Runs the main game loop. # # @param [Player] player the player of the game. def run_driver(player) input = player_input while (input.casecmp("quit") != 0) interpret_command(input, player) input = player_input end end ## Instruction: Add player_input prompt: '> ' to handle default inputs ## Code After: require_relative "world_command.rb" # Runs the main game loop. # # @param [Player] player the player of the game. def run_driver(player) input = player_input prompt: '> ' while (input.casecmp("quit") != 0) interpret_command(input, player) input = player_input end end
require_relative "world_command.rb" # Runs the main game loop. # # @param [Player] player the player of the game. def run_driver(player) - input = player_input + input = player_input prompt: '> ' ? +++++++++++++ while (input.casecmp("quit") != 0) interpret_command(input, player) input = player_input end end
2
0.133333
1
1
a15c186523161e5f550a4f9d732e2d761637d512
src/mutators/Mutator.ts
src/mutators/Mutator.ts
import * as ts from 'typescript'; import { MutationContext } from '../context'; export abstract class Mutator { protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[]; protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node; protected context: MutationContext; public mutateNode(node: ts.Node, context: MutationContext): ts.Node { this.context = context; if (this.getKind().indexOf(node.kind) === -1) { return node; } if (context.wasVisited(node)) { return node; } const substitution = this.mutate(node, context); context.addVisited(substitution); return substitution; } public getKind(): ts.SyntaxKind[] { if (Array.isArray(this.kind)) { return this.kind; } return [this.kind]; } }
import * as ts from 'typescript'; import { Generator } from '../generator'; import { MutationContext } from '../context'; export abstract class Mutator { protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[]; protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node; protected context: MutationContext; public mutateNode(node: ts.Node, context: MutationContext): ts.Node { this.context = context; if (this.getKind().indexOf(node.kind) === -1) { return node; } if (context.wasVisited(node)) { return node; } const substitution = this.mutate(node, context); context.addVisited(substitution); return substitution; } public getKind(): ts.SyntaxKind[] { if (Array.isArray(this.kind)) { return this.kind; } return [this.kind]; } get generator(): Generator { return this.context.generator; } }
Make generator available from MutationContext through a getter.
Make generator available from MutationContext through a getter.
TypeScript
mit
fabiandev/ts-runtime,fabiandev/ts-runtime,fabiandev/ts-runtime
typescript
## Code Before: import * as ts from 'typescript'; import { MutationContext } from '../context'; export abstract class Mutator { protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[]; protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node; protected context: MutationContext; public mutateNode(node: ts.Node, context: MutationContext): ts.Node { this.context = context; if (this.getKind().indexOf(node.kind) === -1) { return node; } if (context.wasVisited(node)) { return node; } const substitution = this.mutate(node, context); context.addVisited(substitution); return substitution; } public getKind(): ts.SyntaxKind[] { if (Array.isArray(this.kind)) { return this.kind; } return [this.kind]; } } ## Instruction: Make generator available from MutationContext through a getter. ## Code After: import * as ts from 'typescript'; import { Generator } from '../generator'; import { MutationContext } from '../context'; export abstract class Mutator { protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[]; protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node; protected context: MutationContext; public mutateNode(node: ts.Node, context: MutationContext): ts.Node { this.context = context; if (this.getKind().indexOf(node.kind) === -1) { return node; } if (context.wasVisited(node)) { return node; } const substitution = this.mutate(node, context); context.addVisited(substitution); return substitution; } public getKind(): ts.SyntaxKind[] { if (Array.isArray(this.kind)) { return this.kind; } return [this.kind]; } get generator(): Generator { return this.context.generator; } }
import * as ts from 'typescript'; + import { Generator } from '../generator'; import { MutationContext } from '../context'; export abstract class Mutator { protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[]; protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node; protected context: MutationContext; public mutateNode(node: ts.Node, context: MutationContext): ts.Node { this.context = context; if (this.getKind().indexOf(node.kind) === -1) { return node; } if (context.wasVisited(node)) { return node; } const substitution = this.mutate(node, context); context.addVisited(substitution); return substitution; } public getKind(): ts.SyntaxKind[] { if (Array.isArray(this.kind)) { return this.kind; } return [this.kind]; } + get generator(): Generator { + return this.context.generator; + } + }
5
0.135135
5
0
b5b9e0b6de88e041efadcd3d2a8da3fb6bb4c754
README.md
README.md
taiHEN plugin that shows battery percent in statusbar ![Screenshot](https://github.com/nowrep/vita-shellbat/blob/master/doc/screenshot.jpg?raw=true) Only works with retail 3.60 FW ### Installation Add this plugin under `*main` section in `ux0:tai/config.txt`: ``` *main ux0:tai/shellbat.suprx ```
taiHEN plugin that shows battery percent in statusbar ![Screenshot](https://github.com/nowrep/vita-shellbat/blob/master/doc/screenshot.jpg?raw=true) ### Installation Add this plugin under `*main` section in `ux0:tai/config.txt`: ``` *main ux0:tai/shellbat.suprx ```
Revert "Add note that it only works with retail 3.60"
Revert "Add note that it only works with retail 3.60" This reverts commit b7285160b0026a7ad7a4d900e241fc94c8560c04.
Markdown
mit
nowrep/vita-shellbat,nowrep/vita-shellbat
markdown
## Code Before: taiHEN plugin that shows battery percent in statusbar ![Screenshot](https://github.com/nowrep/vita-shellbat/blob/master/doc/screenshot.jpg?raw=true) Only works with retail 3.60 FW ### Installation Add this plugin under `*main` section in `ux0:tai/config.txt`: ``` *main ux0:tai/shellbat.suprx ``` ## Instruction: Revert "Add note that it only works with retail 3.60" This reverts commit b7285160b0026a7ad7a4d900e241fc94c8560c04. ## Code After: taiHEN plugin that shows battery percent in statusbar ![Screenshot](https://github.com/nowrep/vita-shellbat/blob/master/doc/screenshot.jpg?raw=true) ### Installation Add this plugin under `*main` section in `ux0:tai/config.txt`: ``` *main ux0:tai/shellbat.suprx ```
taiHEN plugin that shows battery percent in statusbar ![Screenshot](https://github.com/nowrep/vita-shellbat/blob/master/doc/screenshot.jpg?raw=true) - Only works with retail 3.60 FW ### Installation Add this plugin under `*main` section in `ux0:tai/config.txt`: ``` *main ux0:tai/shellbat.suprx ```
1
0.066667
0
1
0d9477b76ca4b85b577fd0d4ccb42b531f802ec8
.travis.yml
.travis.yml
language: objective-c xcode_workspace: Anna.xcworkspace xcode_scheme: Anna_iOS_Tests
language: objective-c xcode_workspace: Anna.xcworkspace xcode_scheme: Anna_iOS_Tests before_install: - gem install cocoapods
Update cocoapods before buiding on CI
Update cocoapods before buiding on CI
YAML
mit
coppercash/Anna,coppercash/Anna,coppercash/Anna,coppercash/Anna,coppercash/Anna
yaml
## Code Before: language: objective-c xcode_workspace: Anna.xcworkspace xcode_scheme: Anna_iOS_Tests ## Instruction: Update cocoapods before buiding on CI ## Code After: language: objective-c xcode_workspace: Anna.xcworkspace xcode_scheme: Anna_iOS_Tests before_install: - gem install cocoapods
language: objective-c xcode_workspace: Anna.xcworkspace xcode_scheme: Anna_iOS_Tests + before_install: + - gem install cocoapods
2
0.666667
2
0
82ba04d609c80fd2bf8034cf38654d10bb72aca5
src/app/actions/psmtable/filter_confidence.py
src/app/actions/psmtable/filter_confidence.py
from app.readers import tsv as tsvreader def filter_psms(psms, confkey, conflvl, lower_is_better): for psm in psms: if passes_filter(psm, conflvl, confkey, lower_is_better): yield psm def passes_filter(psm, threshold, confkey, lower_is_better): if psm[confkey] in ['NA', '', None, False]: return False lower = float(psm[confkey]) < float(threshold) return lower == lower_is_better
from app.readers import tsv as tsvreader def filter_psms(psms, confkey, conflvl, lower_is_better): for psm in psms: if passes_filter(psm, conflvl, confkey, lower_is_better): yield psm def passes_filter(psm, threshold, confkey, lower_is_better): try: confval = float(psm[confkey]) except (TypeError, ValueError): return False else: lower = confval < float(threshold) return lower == lower_is_better
Fix confidence filtering removed confidence=0 (False) items
Fix confidence filtering removed confidence=0 (False) items
Python
mit
glormph/msstitch
python
## Code Before: from app.readers import tsv as tsvreader def filter_psms(psms, confkey, conflvl, lower_is_better): for psm in psms: if passes_filter(psm, conflvl, confkey, lower_is_better): yield psm def passes_filter(psm, threshold, confkey, lower_is_better): if psm[confkey] in ['NA', '', None, False]: return False lower = float(psm[confkey]) < float(threshold) return lower == lower_is_better ## Instruction: Fix confidence filtering removed confidence=0 (False) items ## Code After: from app.readers import tsv as tsvreader def filter_psms(psms, confkey, conflvl, lower_is_better): for psm in psms: if passes_filter(psm, conflvl, confkey, lower_is_better): yield psm def passes_filter(psm, threshold, confkey, lower_is_better): try: confval = float(psm[confkey]) except (TypeError, ValueError): return False else: lower = confval < float(threshold) return lower == lower_is_better
from app.readers import tsv as tsvreader def filter_psms(psms, confkey, conflvl, lower_is_better): for psm in psms: if passes_filter(psm, conflvl, confkey, lower_is_better): yield psm def passes_filter(psm, threshold, confkey, lower_is_better): - if psm[confkey] in ['NA', '', None, False]: + try: + confval = float(psm[confkey]) + except (TypeError, ValueError): return False + else: - lower = float(psm[confkey]) < float(threshold) ? ---------- ^^^^^ + lower = confval < float(threshold) ? ++++ ^^^ - return lower == lower_is_better + return lower == lower_is_better ? ++++
9
0.642857
6
3
b6950d28b02e151b2ee92f8ce241a91e74089f38
Web/templates/layouts/layout.html
Web/templates/layouts/layout.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Soapy</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/members.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/main.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="{{ base_url }}/"><img src="{{ base_url }}/images/csh_logo_white.svg" alt="CSH" class="logo"/> <span>Soapy</span></a> </div> </div> </div> <div class="container"> <div class="alert alert-danger">{{ flash.error }}</div> {% block content %} {% endblock %} </div> </body> </html>
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta charset="utf-8"/> <title>Soapy</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/members.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/main.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="{{ base_url }}/"><img src="{{ base_url }}/images/csh_logo_white.svg" alt="CSH" class="logo"/> <span>Soapy</span></a> </div> </div> </div> <div class="container"> <div class="alert alert-danger">{{ flash.error }}</div> {% block content %} {% endblock %} </div> </body> </html>
Fix viewport scaling on mobile.
Fix viewport scaling on mobile.
HTML
mit
dag10/Soapy,dag10/Soapy,dag10/Soapy,dag10/Soapy,dag10/Soapy
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Soapy</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/members.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/main.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="{{ base_url }}/"><img src="{{ base_url }}/images/csh_logo_white.svg" alt="CSH" class="logo"/> <span>Soapy</span></a> </div> </div> </div> <div class="container"> <div class="alert alert-danger">{{ flash.error }}</div> {% block content %} {% endblock %} </div> </body> </html> ## Instruction: Fix viewport scaling on mobile. ## Code After: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta charset="utf-8"/> <title>Soapy</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/members.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/main.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="{{ base_url }}/"><img src="{{ base_url }}/images/csh_logo_white.svg" alt="CSH" class="logo"/> <span>Soapy</span></a> </div> </div> </div> <div class="container"> <div class="alert alert-danger">{{ flash.error }}</div> {% block content %} {% endblock %} </div> </body> </html>
<!DOCTYPE html> <html> <head> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta charset="utf-8"/> <title>Soapy</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/members.min.css" rel="stylesheet"> <link href="{{ base_url }}/css/main.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="{{ base_url }}/"><img src="{{ base_url }}/images/csh_logo_white.svg" alt="CSH" class="logo"/> <span>Soapy</span></a> </div> </div> </div> <div class="container"> <div class="alert alert-danger">{{ flash.error }}</div> {% block content %} {% endblock %} </div> </body> </html>
1
0.041667
1
0
3a77de3c7d863041bea1366c50a95293d1cd2f7a
tests/functional/test_warning.py
tests/functional/test_warning.py
import pytest import textwrap @pytest.fixture def warnings_demo(tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation.deprecated("deprecated!", replacement=None, gone_in=None) ''')) return demo def test_deprecation_warnings_are_correct(script, warnings_demo): result = script.run('python', warnings_demo, expect_stderr=True) expected = 'WARNING:pip._internal.deprecations:DEPRECATION: deprecated!\n' assert result.stderr == expected # NOTE: PYTHONWARNINGS was added in 2.7 script.environ['PYTHONWARNINGS'] = 'ignore' result = script.run('python', warnings_demo) assert result.stderr == ''
import pytest import textwrap @pytest.fixture def warnings_demo(tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation.deprecated("deprecated!", replacement=None, gone_in=None) ''')) return demo def test_deprecation_warnings_are_correct(script, warnings_demo): result = script.run('python', warnings_demo, expect_stderr=True) expected = 'WARNING:pip._internal.deprecations:DEPRECATION: deprecated!\n' assert result.stderr == expected def test_deprecation_warnings_can_be_silenced(script, warnings_demo): script.environ['PYTHONWARNINGS'] = 'ignore' result = script.run('python', warnings_demo) assert result.stderr == ''
Split tests for different functionality
Split tests for different functionality
Python
mit
pypa/pip,pradyunsg/pip,xavfernandez/pip,rouge8/pip,pypa/pip,xavfernandez/pip,rouge8/pip,xavfernandez/pip,pfmoore/pip,sbidoul/pip,rouge8/pip,sbidoul/pip,pradyunsg/pip,pfmoore/pip
python
## Code Before: import pytest import textwrap @pytest.fixture def warnings_demo(tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation.deprecated("deprecated!", replacement=None, gone_in=None) ''')) return demo def test_deprecation_warnings_are_correct(script, warnings_demo): result = script.run('python', warnings_demo, expect_stderr=True) expected = 'WARNING:pip._internal.deprecations:DEPRECATION: deprecated!\n' assert result.stderr == expected # NOTE: PYTHONWARNINGS was added in 2.7 script.environ['PYTHONWARNINGS'] = 'ignore' result = script.run('python', warnings_demo) assert result.stderr == '' ## Instruction: Split tests for different functionality ## Code After: import pytest import textwrap @pytest.fixture def warnings_demo(tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation.deprecated("deprecated!", replacement=None, gone_in=None) ''')) return demo def test_deprecation_warnings_are_correct(script, warnings_demo): result = script.run('python', warnings_demo, expect_stderr=True) expected = 'WARNING:pip._internal.deprecations:DEPRECATION: deprecated!\n' assert result.stderr == expected def test_deprecation_warnings_can_be_silenced(script, warnings_demo): script.environ['PYTHONWARNINGS'] = 'ignore' result = script.run('python', warnings_demo) assert result.stderr == ''
import pytest import textwrap @pytest.fixture def warnings_demo(tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation.deprecated("deprecated!", replacement=None, gone_in=None) ''')) return demo def test_deprecation_warnings_are_correct(script, warnings_demo): result = script.run('python', warnings_demo, expect_stderr=True) expected = 'WARNING:pip._internal.deprecations:DEPRECATION: deprecated!\n' assert result.stderr == expected - # NOTE: PYTHONWARNINGS was added in 2.7 + + def test_deprecation_warnings_can_be_silenced(script, warnings_demo): script.environ['PYTHONWARNINGS'] = 'ignore' result = script.run('python', warnings_demo) assert result.stderr == ''
3
0.107143
2
1
57ae29daf412433d94c1d6c705d2c8b662a5c8f6
circle.yml
circle.yml
machine: node: version: 8 environment: CF_ORG: cloud-gov CF_SPACE: cg-style dependencies: pre: - bundle config without development:production - npm rebuild node-sass cache_directories: - "node_modules/" test: pre: - npm run build override: - npm run test deployment: library: branch: master commands: - npm run build-library - scripts/deploy-library.sh cg-style npm: tag: /[0-9]+(\.[0-9]+)*/ owner: 18F commands: - echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login - npm run check-publish
machine: node: version: 8 environment: CF_ORG: cloud-gov CF_SPACE: cg-style dependencies: pre: - bundle config without development:production - npm rebuild node-sass cache_directories: - "node_modules/" test: pre: - npm run build override: - npm run test deployment: library: branch: master commands: - npm run build-library - scripts/deploy-library.sh cg-style
Remove the NPM publishing done via CI;
Remove the NPM publishing done via CI; Let's just do this manually from now on.
YAML
cc0-1.0
18F/cg-style,18F/cg-style,18F/cg-style
yaml
## Code Before: machine: node: version: 8 environment: CF_ORG: cloud-gov CF_SPACE: cg-style dependencies: pre: - bundle config without development:production - npm rebuild node-sass cache_directories: - "node_modules/" test: pre: - npm run build override: - npm run test deployment: library: branch: master commands: - npm run build-library - scripts/deploy-library.sh cg-style npm: tag: /[0-9]+(\.[0-9]+)*/ owner: 18F commands: - echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login - npm run check-publish ## Instruction: Remove the NPM publishing done via CI; Let's just do this manually from now on. ## Code After: machine: node: version: 8 environment: CF_ORG: cloud-gov CF_SPACE: cg-style dependencies: pre: - bundle config without development:production - npm rebuild node-sass cache_directories: - "node_modules/" test: pre: - npm run build override: - npm run test deployment: library: branch: master commands: - npm run build-library - scripts/deploy-library.sh cg-style
machine: node: version: 8 environment: CF_ORG: cloud-gov CF_SPACE: cg-style dependencies: pre: - bundle config without development:production - npm rebuild node-sass cache_directories: - "node_modules/" test: pre: - npm run build override: - npm run test deployment: library: branch: master commands: - npm run build-library - scripts/deploy-library.sh cg-style - npm: - tag: /[0-9]+(\.[0-9]+)*/ - owner: 18F - commands: - - echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login - - npm run check-publish
6
0.181818
0
6
4fa52e8c84676e1fd56ad0f3720350fea78c3048
.travis.yml
.travis.yml
language: ruby rvm: - 2.1.5 services: - redis before_script: - psql -c 'create database ready_reckoner_test;' -U postgres - bundle exec rake db:migrate
sudo: false language: ruby cache: bundler rvm: - 2.1.5 services: - redis before_script: - psql -c 'create database ready_reckoner_test;' -U postgres - bundle exec rake db:migrate
Use container-based infrastructure, and turn on caching
Travis: Use container-based infrastructure, and turn on caching
YAML
mit
opennorth/readyreckoner.ca,opennorth/readyreckoner.ca,opennorth/readyreckoner.ca
yaml
## Code Before: language: ruby rvm: - 2.1.5 services: - redis before_script: - psql -c 'create database ready_reckoner_test;' -U postgres - bundle exec rake db:migrate ## Instruction: Travis: Use container-based infrastructure, and turn on caching ## Code After: sudo: false language: ruby cache: bundler rvm: - 2.1.5 services: - redis before_script: - psql -c 'create database ready_reckoner_test;' -U postgres - bundle exec rake db:migrate
+ sudo: false language: ruby + cache: bundler rvm: - 2.1.5 services: - redis before_script: - psql -c 'create database ready_reckoner_test;' -U postgres - bundle exec rake db:migrate
2
0.25
2
0
a8cff63066cc5afa8991a03c39463eedc65caf77
docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/DockerSimpleTemplate.java
docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/DockerSimpleTemplate.java
package com.nirima.jenkins.plugins.docker; import hudson.Extension; import hudson.model.Describable; import hudson.model.Descriptor; import jenkins.model.Jenkins; /** * A simple template storage. */ public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> { public DockerSimpleTemplate(String image, String dnsString, String dockerCommand, String volumesString, String volumesFrom, String environmentsString, String lxcConfString, String hostname, Integer memoryLimit, Integer cpuShares, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty) { super(image, dnsString, dockerCommand, volumesString, volumesFrom, environmentsString, lxcConfString, hostname, memoryLimit, cpuShares, bindPorts, bindAllPorts, privileged, tty); } public Descriptor<DockerSimpleTemplate> getDescriptor() { return Jenkins.getInstance().getDescriptor(getClass()); } @Extension public static final class DescriptorImpl extends Descriptor<DockerSimpleTemplate> { @Override public String getDisplayName() { return "Docker Template"; } } }
package com.nirima.jenkins.plugins.docker; import hudson.Extension; import hudson.model.Describable; import hudson.model.Descriptor; import jenkins.model.Jenkins; /** * A simple template storage. */ public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> { public DockerSimpleTemplate(String image, String dnsString, String dockerCommand, String volumesString, String volumesFrom, String environmentsString, String lxcConfString, String hostname, Integer memoryLimit, Integer cpuShares, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty) { super(image, dnsString, dockerCommand, volumesString, volumesFrom, environmentsString, lxcConfString, hostname, memoryLimit, cpuShares, bindPorts, bindAllPorts, privileged, tty); } public Descriptor<DockerSimpleTemplate> getDescriptor() { return (DescriptorImpl) Jenkins.getInstance().getDescriptor(getClass()); } @Extension public static final class DescriptorImpl extends Descriptor<DockerSimpleTemplate> { @Override public String getDisplayName() { return "Docker Template"; } } }
Fix IDEA warning about unchecked assignment
Fix IDEA warning about unchecked assignment
Java
mit
jenkinsci/docker-plugin,daniel-beck/docker-plugin,camunda-ci/docker-plugin,ldtkms/docker-plugin,tom-canova/docker-plugin,camunda-ci/docker-plugin,ldtkms/docker-plugin,jgriffiths1993/docker-plugin,ldtkms/docker-plugin,camunda-ci/docker-plugin,jgriffiths1993/docker-plugin,camunda-ci/docker-plugin,paulmey/docker-plugin,paulmey/docker-plugin,majidgolshadi/docker-plugin,tom-canova/docker-plugin,paulmey/docker-plugin,jenkinsci/docker-plugin,hcguersoy/docker-plugin,eaglerainbow/docker-plugin,majidgolshadi/docker-plugin,yma-het/docker-plugin,eaglerainbow/docker-plugin,hcguersoy/docker-plugin,jgriffiths1993/docker-plugin,majidgolshadi/docker-plugin,yma-het/docker-plugin,jenkinsci/docker-plugin,tom-canova/docker-plugin,paulmey/docker-plugin,daniel-beck/docker-plugin,eaglerainbow/docker-plugin,yma-het/docker-plugin,daniel-beck/docker-plugin,makuk66/docker-plugin,ldtkms/docker-plugin,makuk66/docker-plugin,jgriffiths1993/docker-plugin,hcguersoy/docker-plugin,daniel-beck/docker-plugin,tom-canova/docker-plugin,yma-het/docker-plugin,hcguersoy/docker-plugin,makuk66/docker-plugin,makuk66/docker-plugin,majidgolshadi/docker-plugin
java
## Code Before: package com.nirima.jenkins.plugins.docker; import hudson.Extension; import hudson.model.Describable; import hudson.model.Descriptor; import jenkins.model.Jenkins; /** * A simple template storage. */ public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> { public DockerSimpleTemplate(String image, String dnsString, String dockerCommand, String volumesString, String volumesFrom, String environmentsString, String lxcConfString, String hostname, Integer memoryLimit, Integer cpuShares, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty) { super(image, dnsString, dockerCommand, volumesString, volumesFrom, environmentsString, lxcConfString, hostname, memoryLimit, cpuShares, bindPorts, bindAllPorts, privileged, tty); } public Descriptor<DockerSimpleTemplate> getDescriptor() { return Jenkins.getInstance().getDescriptor(getClass()); } @Extension public static final class DescriptorImpl extends Descriptor<DockerSimpleTemplate> { @Override public String getDisplayName() { return "Docker Template"; } } } ## Instruction: Fix IDEA warning about unchecked assignment ## Code After: package com.nirima.jenkins.plugins.docker; import hudson.Extension; import hudson.model.Describable; import hudson.model.Descriptor; import jenkins.model.Jenkins; /** * A simple template storage. */ public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> { public DockerSimpleTemplate(String image, String dnsString, String dockerCommand, String volumesString, String volumesFrom, String environmentsString, String lxcConfString, String hostname, Integer memoryLimit, Integer cpuShares, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty) { super(image, dnsString, dockerCommand, volumesString, volumesFrom, environmentsString, lxcConfString, hostname, memoryLimit, cpuShares, bindPorts, bindAllPorts, privileged, tty); } public Descriptor<DockerSimpleTemplate> getDescriptor() { return (DescriptorImpl) Jenkins.getInstance().getDescriptor(getClass()); } @Extension public static final class DescriptorImpl extends Descriptor<DockerSimpleTemplate> { @Override public String getDisplayName() { return "Docker Template"; } } }
package com.nirima.jenkins.plugins.docker; import hudson.Extension; import hudson.model.Describable; import hudson.model.Descriptor; import jenkins.model.Jenkins; /** * A simple template storage. */ public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> { public DockerSimpleTemplate(String image, String dnsString, String dockerCommand, String volumesString, String volumesFrom, String environmentsString, String lxcConfString, String hostname, Integer memoryLimit, Integer cpuShares, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty) { super(image, dnsString, dockerCommand, volumesString, volumesFrom, environmentsString, lxcConfString, hostname, memoryLimit, cpuShares, bindPorts, bindAllPorts, privileged, tty); } public Descriptor<DockerSimpleTemplate> getDescriptor() { - return Jenkins.getInstance().getDescriptor(getClass()); + return (DescriptorImpl) Jenkins.getInstance().getDescriptor(getClass()); ? +++++++++++++++++ } @Extension public static final class DescriptorImpl extends Descriptor<DockerSimpleTemplate> { @Override public String getDisplayName() { return "Docker Template"; } } }
2
0.036364
1
1
f11f6e9603878c3123611fca6e7bb4098162481c
.travis.yml
.travis.yml
language: c sudo: required services: - docker install: - docker pull quay.io/manylinux/manylinux:latest script: - docker run --rm `pwd`:/io quay.io/manylinux/manylinux:latest \ bash /io/travis/build-wheels.sh
language: c sudo: required services: - docker env: - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 install: - docker pull $DOCKER_IMAGE script: - docker run --rm `pwd`:/io $DOCKER_IMAGE bash /io/travis/build-wheels.sh - ls
Use new pypa/ docker images
Use new pypa/ docker images
YAML
cc0-1.0
pypa/python-manylinux-demo,joar/lxml-manylinux,pypa/python-manylinux-demo,pypa/python-manylinux-demo
yaml
## Code Before: language: c sudo: required services: - docker install: - docker pull quay.io/manylinux/manylinux:latest script: - docker run --rm `pwd`:/io quay.io/manylinux/manylinux:latest \ bash /io/travis/build-wheels.sh ## Instruction: Use new pypa/ docker images ## Code After: language: c sudo: required services: - docker env: - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 install: - docker pull $DOCKER_IMAGE script: - docker run --rm `pwd`:/io $DOCKER_IMAGE bash /io/travis/build-wheels.sh - ls
language: c sudo: required services: - docker + env: + - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 + - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 + install: - - docker pull quay.io/manylinux/manylinux:latest + - docker pull $DOCKER_IMAGE script: - - docker run --rm `pwd`:/io quay.io/manylinux/manylinux:latest \ - bash /io/travis/build-wheels.sh + - docker run --rm `pwd`:/io $DOCKER_IMAGE bash /io/travis/build-wheels.sh + - ls
10
0.769231
7
3
02640fc36390a9146fc1bc39f268d97fca2d2a5b
packages/u-button.vue/README.md
packages/u-button.vue/README.md
``` html <u-button>Button</u-button> ``` ### Disabled ``` html <u-button disabled>Button</u-button> ``` ### Link Use `v-href` or `v-to` directives to add link. ``` html <u-button v-href="'/test'">Button</u-button> <u-button v-to="'/'">Button</u-button> <u-button v-href="'/'" disabled>Button</u-button> ```
``` html <u-button>Button</u-button> ``` ### Disabled ``` html <u-button disabled>Disabled</u-button> ``` ### Link - Use `v-href` directive to add normal link. - Use `v-to` directive to add [vue-router](https://router.vuejs.org) link. ``` html <u-button v-href="'https://github.com/vusion/vusion'">v-href</u-button> <u-button v-to="'/some/router/path'">v-to</u-button> <u-button v-href="'https://github.com/vusion/vusion'" disabled>v-href</u-button> ```
Change descriptions in doc of <u-button>
:memo: Change descriptions in doc of <u-button> Signed-off-by: Rainfore <3858035ecb9abe8dcb48c45b8c403274cc0a82ef@126.com>
Markdown
mit
vusion/proto-ui,vusion/proto-ui
markdown
## Code Before: ``` html <u-button>Button</u-button> ``` ### Disabled ``` html <u-button disabled>Button</u-button> ``` ### Link Use `v-href` or `v-to` directives to add link. ``` html <u-button v-href="'/test'">Button</u-button> <u-button v-to="'/'">Button</u-button> <u-button v-href="'/'" disabled>Button</u-button> ``` ## Instruction: :memo: Change descriptions in doc of <u-button> Signed-off-by: Rainfore <3858035ecb9abe8dcb48c45b8c403274cc0a82ef@126.com> ## Code After: ``` html <u-button>Button</u-button> ``` ### Disabled ``` html <u-button disabled>Disabled</u-button> ``` ### Link - Use `v-href` directive to add normal link. - Use `v-to` directive to add [vue-router](https://router.vuejs.org) link. ``` html <u-button v-href="'https://github.com/vusion/vusion'">v-href</u-button> <u-button v-to="'/some/router/path'">v-to</u-button> <u-button v-href="'https://github.com/vusion/vusion'" disabled>v-href</u-button> ```
``` html <u-button>Button</u-button> ``` ### Disabled ``` html - <u-button disabled>Button</u-button> ? ^^^^^^ + <u-button disabled>Disabled</u-button> ? ^^^^^^^^ ``` ### Link - Use `v-href` or `v-to` directives to add link. ? ---------- - + - Use `v-href` directive to add normal link. ? ++ +++++++ + - Use `v-to` directive to add [vue-router](https://router.vuejs.org) link. ``` html - <u-button v-href="'/test'">Button</u-button> + <u-button v-href="'https://github.com/vusion/vusion'">v-href</u-button> - <u-button v-to="'/'">Button</u-button> ? ^^^ - + <u-button v-to="'/some/router/path'">v-to</u-button> ? ++++++++++++++++ ^^ - <u-button v-href="'/'" disabled>Button</u-button> + <u-button v-href="'https://github.com/vusion/vusion'" disabled>v-href</u-button> ```
11
0.55
6
5
a5703e1b8dcbde9392523f5d1300d35c54484410
rm/templates/trials/possibly_related.html
rm/templates/trials/possibly_related.html
<div class="row-fluid drop48"> <div class="span9"> <a href="#" class="feature-heading"> <h2><span class="light">POSSIBLY</span> <span class="bold red">RELATED</span> <span class="light">TRIALS</span></h2> </a> <div class="feature-box join-trial"> {% for rel in trial.related %} <p> {{ rel.title }} <a href="{{ rel.get_absolute_url }}" class="btn btn-warning pull-right"> find out more </a> </p> {% endfor %} </div> <p class="pull-right drop12"> <a href="{% url 'trials' %}" class="red weight400"> See more trials </a> </p> </div> </div>
<div class="row-fluid drop48"> <div class="span9"> <a href="#" class="feature-heading"> <h2><span class="light">POSSIBLY</span> <span class="bold red">RELATED</span> <span class="light">TRIALS</span></h2> </a> <div class="feature-box join-trial"> {% for rel in trial.related %} <a href="{{ rel.get_absolute_url }}" > <p> {{ rel.title }} <button class="btn btn-warning pull-right"> find out more </button> </p> </a> {% endfor %} </div> <p class="pull-right drop12"> <a href="{% url 'trials' %}" class="red weight400"> See more trials </a> </p> </div> </div>
Make possibly related trials row -level CTA
Make possibly related trials row -level CTA
HTML
agpl-3.0
openhealthcare/randomise.me,openhealthcare/randomise.me,openhealthcare/randomise.me,openhealthcare/randomise.me
html
## Code Before: <div class="row-fluid drop48"> <div class="span9"> <a href="#" class="feature-heading"> <h2><span class="light">POSSIBLY</span> <span class="bold red">RELATED</span> <span class="light">TRIALS</span></h2> </a> <div class="feature-box join-trial"> {% for rel in trial.related %} <p> {{ rel.title }} <a href="{{ rel.get_absolute_url }}" class="btn btn-warning pull-right"> find out more </a> </p> {% endfor %} </div> <p class="pull-right drop12"> <a href="{% url 'trials' %}" class="red weight400"> See more trials </a> </p> </div> </div> ## Instruction: Make possibly related trials row -level CTA ## Code After: <div class="row-fluid drop48"> <div class="span9"> <a href="#" class="feature-heading"> <h2><span class="light">POSSIBLY</span> <span class="bold red">RELATED</span> <span class="light">TRIALS</span></h2> </a> <div class="feature-box join-trial"> {% for rel in trial.related %} <a href="{{ rel.get_absolute_url }}" > <p> {{ rel.title }} <button class="btn btn-warning pull-right"> find out more </button> </p> </a> {% endfor %} </div> <p class="pull-right drop12"> <a href="{% url 'trials' %}" class="red weight400"> See more trials </a> </p> </div> </div>
<div class="row-fluid drop48"> <div class="span9"> <a href="#" class="feature-heading"> <h2><span class="light">POSSIBLY</span> <span class="bold red">RELATED</span> <span class="light">TRIALS</span></h2> </a> <div class="feature-box join-trial"> {% for rel in trial.related %} + <a href="{{ rel.get_absolute_url }}" > - <p> + <p> ? ++ - {{ rel.title }} + {{ rel.title }} ? ++ - <a href="{{ rel.get_absolute_url }}" class="btn btn-warning pull-right"> + <button class="btn btn-warning pull-right"> - find out more + find out more ? ++ + </button> - </a> ? ^ + </p> ? ^ - </p> ? ^ + </a> ? ^ {% endfor %} </div> <p class="pull-right drop12"> <a href="{% url 'trials' %}" class="red weight400"> See more trials </a> </p> </div> </div>
14
0.538462
8
6
690ecb4e284c148dc3da797011e551118eeb7e54
docs/configuration.rst
docs/configuration.rst
============= Configuration ============= Use toml or jaml for a nice easy to read, understand and to update config file.
============= Configuration ============= Use toml or yaml for a nice easy to read, understand and to update config file. TOML ==== This example uses toml with jinja2 Dependencies ------------ - python2.7 - jinja2 - jinja2-cli Install ------- Do that in a virtualenv .. code-block:: shell pip install jinja2-cli[toml] Example Files ------------- test.j2: .. code-block:: shell #!/bin/bash echo {{ test.version }} test.toml: .. code-block:: shell [test] version = "1" Usage ----- Run jinja2-cli: .. code-block:: shell jinja2 test.j2 test.toml > foo.sh Created Script -------------- .. code-block:: shell #!/bin/bash echo 1 .. note:: jinja2-cli workd with yaml, too
Add config creation example with j2 and toml
WIP: Add config creation example with j2 and toml
reStructuredText
mit
testthedocs/redactor,testthedocs/redactor
restructuredtext
## Code Before: ============= Configuration ============= Use toml or jaml for a nice easy to read, understand and to update config file. ## Instruction: WIP: Add config creation example with j2 and toml ## Code After: ============= Configuration ============= Use toml or yaml for a nice easy to read, understand and to update config file. TOML ==== This example uses toml with jinja2 Dependencies ------------ - python2.7 - jinja2 - jinja2-cli Install ------- Do that in a virtualenv .. code-block:: shell pip install jinja2-cli[toml] Example Files ------------- test.j2: .. code-block:: shell #!/bin/bash echo {{ test.version }} test.toml: .. code-block:: shell [test] version = "1" Usage ----- Run jinja2-cli: .. code-block:: shell jinja2 test.j2 test.toml > foo.sh Created Script -------------- .. code-block:: shell #!/bin/bash echo 1 .. note:: jinja2-cli workd with yaml, too
============= Configuration ============= - Use toml or jaml for a nice easy to read, understand and to update config file. ? ^ + Use toml or yaml for a nice easy to read, understand and to update config file. ? ^ + + TOML + ==== + + This example uses toml with jinja2 + + Dependencies + ------------ + + - python2.7 + - jinja2 + - jinja2-cli + + Install + ------- + + Do that in a virtualenv + + .. code-block:: shell + + pip install jinja2-cli[toml] + + Example Files + ------------- + + test.j2: + + .. code-block:: shell + + #!/bin/bash + + echo {{ test.version }} + + test.toml: + + .. code-block:: shell + + [test] + version = "1" + + Usage + ----- + + Run jinja2-cli: + + .. code-block:: shell + + jinja2 test.j2 test.toml > foo.sh + + Created Script + -------------- + + .. code-block:: shell + + #!/bin/bash + + echo 1 + + .. note:: + + jinja2-cli workd with yaml, too
63
12.6
62
1
401468f63344cced250283c3d0faccf21044b400
README.md
README.md
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value. This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bitten by `MEDIUMINT` running out of valid unique IDs a couple of times myself. ## Requirements `airooi` is tested on ruby `2.1.1`, `2.0.0` and `1.9.3`. ## Usage Just connect to the database and let the magic happen. ``` ./bin/airooi.rb -h host -u user -d database ``` By default it only shows columns over 75% of used IDs, add `-v` to get a view of all columns. ## What if I'm not using MySql? `airooi` comes with a `mysql` driver only. However, all database-specific logic is contained in the driver so it should be pretty easy to add support for other databases. Pull requests are welcome :) ## Testing To run tests do: - `bundle install` - `bin/tests.rb` [![Build Status](https://travis-ci.org/arthens/airooi.svg?branch=master)](https://travis-ci.org/arthens/airooi)
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value. This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bitten by `MEDIUMINT` running out of valid unique IDs a couple of times myself. ## Requirements `airooi` is tested on ruby `2.1.1`, `2.0.0` and `1.9.3`. Ruby `1.8.7` is currently not supported. ## Usage Just connect to the database and let the magic happen. ``` ./bin/airooi.rb -h host -u user -d database ``` By default it only shows columns over 75% of used IDs, add `-v` to get a view of all columns. ## What if I'm not using MySql? `airooi` comes with a `mysql` driver only. However, all database-specific logic is contained in the driver so it should be pretty easy to add support for other databases. Pull requests are welcome :) ## Testing To run tests do: - `bundle install` - `bin/tests.rb` [![Build Status](https://travis-ci.org/arthens/airooi.svg?branch=master)](https://travis-ci.org/arthens/airooi)
Add note about incompatibility with ruby 1.8.7
Add note about incompatibility with ruby 1.8.7
Markdown
mit
arthens/airooi
markdown
## Code Before: `airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value. This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bitten by `MEDIUMINT` running out of valid unique IDs a couple of times myself. ## Requirements `airooi` is tested on ruby `2.1.1`, `2.0.0` and `1.9.3`. ## Usage Just connect to the database and let the magic happen. ``` ./bin/airooi.rb -h host -u user -d database ``` By default it only shows columns over 75% of used IDs, add `-v` to get a view of all columns. ## What if I'm not using MySql? `airooi` comes with a `mysql` driver only. However, all database-specific logic is contained in the driver so it should be pretty easy to add support for other databases. Pull requests are welcome :) ## Testing To run tests do: - `bundle install` - `bin/tests.rb` [![Build Status](https://travis-ci.org/arthens/airooi.svg?branch=master)](https://travis-ci.org/arthens/airooi) ## Instruction: Add note about incompatibility with ruby 1.8.7 ## Code After: `airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value. This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bitten by `MEDIUMINT` running out of valid unique IDs a couple of times myself. ## Requirements `airooi` is tested on ruby `2.1.1`, `2.0.0` and `1.9.3`. Ruby `1.8.7` is currently not supported. ## Usage Just connect to the database and let the magic happen. ``` ./bin/airooi.rb -h host -u user -d database ``` By default it only shows columns over 75% of used IDs, add `-v` to get a view of all columns. ## What if I'm not using MySql? `airooi` comes with a `mysql` driver only. However, all database-specific logic is contained in the driver so it should be pretty easy to add support for other databases. Pull requests are welcome :) ## Testing To run tests do: - `bundle install` - `bin/tests.rb` [![Build Status](https://travis-ci.org/arthens/airooi.svg?branch=master)](https://travis-ci.org/arthens/airooi)
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value. This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bitten by `MEDIUMINT` running out of valid unique IDs a couple of times myself. ## Requirements - `airooi` is tested on ruby `2.1.1`, `2.0.0` and `1.9.3`. + `airooi` is tested on ruby `2.1.1`, `2.0.0` and `1.9.3`. Ruby `1.8.7` is currently not supported. ## Usage Just connect to the database and let the magic happen. ``` ./bin/airooi.rb -h host -u user -d database ``` By default it only shows columns over 75% of used IDs, add `-v` to get a view of all columns. ## What if I'm not using MySql? `airooi` comes with a `mysql` driver only. However, all database-specific logic is contained in the driver so it should be pretty easy to add support for other databases. Pull requests are welcome :) ## Testing To run tests do: - `bundle install` - `bin/tests.rb` [![Build Status](https://travis-ci.org/arthens/airooi.svg?branch=master)](https://travis-ci.org/arthens/airooi)
2
0.064516
1
1
24c598b3e1429d1232a29a4d9c444947dbcd228d
recipes-core/updatehub/updatehub-system-inquiry_git.bb
recipes-core/updatehub/updatehub-system-inquiry_git.bb
SUMMARY = "UpdateHub - System Inquiry" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2" SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https" SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e" S = "${WORKDIR}/git" PV = "0.0+${SRCPV}" inherit allarch do_install() { install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid install -Dm755 version ${D}${datadir}/updatehub/version install -Dm755 hardware ${D}${datadir}/updatehub/hardware } FILES_${PN} += "${datadir}/updatehub"
SUMMARY = "UpdateHub - System Inquiry" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2" SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https" SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e" S = "${WORKDIR}/git" PV = "0.0+${SRCPV}" inherit allarch do_install() { install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid install -Dm755 version ${D}${datadir}/updatehub/version install -Dm755 hardware ${D}${datadir}/updatehub/hardware } FILES_${PN} += "${datadir}/updatehub" RDEPENDS_${PN} += " \ os-release \ updatehub-machine-info \ "
Add os-release and updatehub-machine-info to RDEPENDS
updatehub-system-inquiry: Add os-release and updatehub-machine-info to RDEPENDS Signed-off-by: Fabio Berton <698e00bc51ed22392b375ef5a2fc95be5c8355a9@ossystems.com.br>
BitBake
mit
UpdateHub/meta-updatehub,UpdateHub/meta-updatehub,fbertux/meta-updatehub,fbertux/meta-updatehub,UpdateHub/meta-updatehub,fbertux/meta-updatehub
bitbake
## Code Before: SUMMARY = "UpdateHub - System Inquiry" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2" SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https" SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e" S = "${WORKDIR}/git" PV = "0.0+${SRCPV}" inherit allarch do_install() { install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid install -Dm755 version ${D}${datadir}/updatehub/version install -Dm755 hardware ${D}${datadir}/updatehub/hardware } FILES_${PN} += "${datadir}/updatehub" ## Instruction: updatehub-system-inquiry: Add os-release and updatehub-machine-info to RDEPENDS Signed-off-by: Fabio Berton <698e00bc51ed22392b375ef5a2fc95be5c8355a9@ossystems.com.br> ## Code After: SUMMARY = "UpdateHub - System Inquiry" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2" SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https" SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e" S = "${WORKDIR}/git" PV = "0.0+${SRCPV}" inherit allarch do_install() { install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid install -Dm755 version ${D}${datadir}/updatehub/version install -Dm755 hardware ${D}${datadir}/updatehub/hardware } FILES_${PN} += "${datadir}/updatehub" RDEPENDS_${PN} += " \ os-release \ updatehub-machine-info \ "
SUMMARY = "UpdateHub - System Inquiry" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2" SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https" SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e" S = "${WORKDIR}/git" PV = "0.0+${SRCPV}" inherit allarch do_install() { install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid install -Dm755 version ${D}${datadir}/updatehub/version install -Dm755 hardware ${D}${datadir}/updatehub/hardware } FILES_${PN} += "${datadir}/updatehub" + + RDEPENDS_${PN} += " \ + os-release \ + updatehub-machine-info \ + "
5
0.238095
5
0
9a89e0b71c52309ffa64fe064f8c28db7c12ee9c
src/main/java/com/leevilehtonen/cookagram/domain/ImageEntity.java
src/main/java/com/leevilehtonen/cookagram/domain/ImageEntity.java
package com.leevilehtonen.cookagram.domain; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; import javax.persistence.Lob; @Entity public class ImageEntity extends AbstractPersistable<Long> { private String name; private String mediaType; private Long size; @Lob private byte[] content; public byte[] getContent() { return content; } public void setContent(byte[] content) { this.content = content; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMediaType() { return mediaType; } public void setMediaType(String mediaType) { this.mediaType = mediaType; } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } }
package com.leevilehtonen.cookagram.domain; import org.hibernate.annotations.Type; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; @Entity public class ImageEntity extends AbstractPersistable<Long> { private String name; private String mediaType; private Long size; @Type(type = "org.hibernate.type.BinaryType") private byte[] content; public byte[] getContent() { return content; } public void setContent(byte[] content) { this.content = content; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMediaType() { return mediaType; } public void setMediaType(String mediaType) { this.mediaType = mediaType; } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } }
Update image content type for Postgres
Update image content type for Postgres
Java
mit
leevilehtonen/cook-a-gram,leevilehtonen/cook-a-gram,leevilehtonen/cook-a-gram
java
## Code Before: package com.leevilehtonen.cookagram.domain; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; import javax.persistence.Lob; @Entity public class ImageEntity extends AbstractPersistable<Long> { private String name; private String mediaType; private Long size; @Lob private byte[] content; public byte[] getContent() { return content; } public void setContent(byte[] content) { this.content = content; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMediaType() { return mediaType; } public void setMediaType(String mediaType) { this.mediaType = mediaType; } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } } ## Instruction: Update image content type for Postgres ## Code After: package com.leevilehtonen.cookagram.domain; import org.hibernate.annotations.Type; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; @Entity public class ImageEntity extends AbstractPersistable<Long> { private String name; private String mediaType; private Long size; @Type(type = "org.hibernate.type.BinaryType") private byte[] content; public byte[] getContent() { return content; } public void setContent(byte[] content) { this.content = content; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMediaType() { return mediaType; } public void setMediaType(String mediaType) { this.mediaType = mediaType; } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } }
package com.leevilehtonen.cookagram.domain; + import org.hibernate.annotations.Type; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; - import javax.persistence.Lob; @Entity public class ImageEntity extends AbstractPersistable<Long> { private String name; private String mediaType; private Long size; - @Lob + @Type(type = "org.hibernate.type.BinaryType") private byte[] content; public byte[] getContent() { return content; } public void setContent(byte[] content) { this.content = content; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMediaType() { return mediaType; } public void setMediaType(String mediaType) { this.mediaType = mediaType; } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } }
4
0.081633
2
2
aaf474c9047687abff9fc617d63be074eec4aa5e
readme.md
readme.md
Styling Helper Classes. ## Installation ## Usage ## Contributing 1. Fork it ( https://github.com/boriskaiser/unterstrich.css/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## Stats [![views](https://sourcegraph.com/api/repos/github.com/boriskaiser/unterstrich.css/.counters/views.svg)](https://sourcegraph.com/github.com/boriskaiser/unterstrich.css)
Styling Helper Classes. [![GitHub version](https://badge.fury.io/gh/boriskaiser%2Funterstrich.css.svg)](http://badge.fury.io/gh/boriskaiser%2Funterstrich.css) [![Build Status](https://travis-ci.org/boriskaiser/unterstrich.css.svg?branch=develop)](https://travis-ci.org/boriskaiser/unterstrich.css) [![Dependency Status](https://david-dm.org/boriskaiser/unterstrich.css.svg)](https://david-dm.org/boriskaiser/unterstrich.css) [![devDependency Status](https://david-dm.org/boriskaiser/unterstrich.css/dev-status.svg)](https://david-dm.org/boriskaiser/unterstrich.css#info=devDependencies) ## Installation ## Usage ## Contributing 1. Fork it ( https://github.com/boriskaiser/unterstrich.css/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## Stats [![views](https://sourcegraph.com/api/repos/github.com/boriskaiser/unterstrich.css/.counters/views.svg)](https://sourcegraph.com/github.com/boriskaiser/unterstrich.css)
Add travis badge & cleanup
Add travis badge & cleanup
Markdown
mit
boriskaiser/unterstrich.css
markdown
## Code Before: Styling Helper Classes. ## Installation ## Usage ## Contributing 1. Fork it ( https://github.com/boriskaiser/unterstrich.css/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## Stats [![views](https://sourcegraph.com/api/repos/github.com/boriskaiser/unterstrich.css/.counters/views.svg)](https://sourcegraph.com/github.com/boriskaiser/unterstrich.css) ## Instruction: Add travis badge & cleanup ## Code After: Styling Helper Classes. [![GitHub version](https://badge.fury.io/gh/boriskaiser%2Funterstrich.css.svg)](http://badge.fury.io/gh/boriskaiser%2Funterstrich.css) [![Build Status](https://travis-ci.org/boriskaiser/unterstrich.css.svg?branch=develop)](https://travis-ci.org/boriskaiser/unterstrich.css) [![Dependency Status](https://david-dm.org/boriskaiser/unterstrich.css.svg)](https://david-dm.org/boriskaiser/unterstrich.css) [![devDependency Status](https://david-dm.org/boriskaiser/unterstrich.css/dev-status.svg)](https://david-dm.org/boriskaiser/unterstrich.css#info=devDependencies) ## Installation ## Usage ## Contributing 1. Fork it ( https://github.com/boriskaiser/unterstrich.css/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## Stats [![views](https://sourcegraph.com/api/repos/github.com/boriskaiser/unterstrich.css/.counters/views.svg)](https://sourcegraph.com/github.com/boriskaiser/unterstrich.css)
+ Styling Helper Classes. - Styling Helper Classes. + [![GitHub version](https://badge.fury.io/gh/boriskaiser%2Funterstrich.css.svg)](http://badge.fury.io/gh/boriskaiser%2Funterstrich.css) [![Build Status](https://travis-ci.org/boriskaiser/unterstrich.css.svg?branch=develop)](https://travis-ci.org/boriskaiser/unterstrich.css) + + [![Dependency Status](https://david-dm.org/boriskaiser/unterstrich.css.svg)](https://david-dm.org/boriskaiser/unterstrich.css) [![devDependency Status](https://david-dm.org/boriskaiser/unterstrich.css/dev-status.svg)](https://david-dm.org/boriskaiser/unterstrich.css#info=devDependencies) ## Installation ## Usage ## Contributing 1. Fork it ( https://github.com/boriskaiser/unterstrich.css/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## Stats - [![views](https://sourcegraph.com/api/repos/github.com/boriskaiser/unterstrich.css/.counters/views.svg)](https://sourcegraph.com/github.com/boriskaiser/unterstrich.css) ? - + [![views](https://sourcegraph.com/api/repos/github.com/boriskaiser/unterstrich.css/.counters/views.svg)](https://sourcegraph.com/github.com/boriskaiser/unterstrich.css)
7
0.333333
5
2
3a4b5998878e6463931f8b1beb0d0f9a0ff057c1
README.md
README.md
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures. This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does: <img src="Demo.gif" alt="Demo" style="height: 400px;"/> If you're going to use this with `UIScrollView` make sure to check out [BDDRScrollViewAdditions](https://github.com/bddckr/BDDRScrollViewAdditions). ## Installation $ cd /path/to/top/of/your/project $ git submodule add git://github.com/bddckr/BDDROneFingerZoomGestureRecognizer.git BDDROneFingerZoomGestureRecognizer $ git submodule update --init --recursive ## Customization There are several properties that change the default behavior, especially interesting are `numberOfTapsRequired`, `minimumPressDuration` and `allowableMovement`. For more info see the [header](BDDROneFingerZoomGestureRecognizer.h). ## Contact Follow [@bddckr](https://twitter.com/bddckr) on Twitter. ## Copyright and License Copyright (c) 2013 Christopher - Marcel Böddecker Licensed under [The MIT License (MIT)](http://choosealicense.com/licenses/mit).
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures. This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does: <img src="Demo.gif" alt="Demo" style="height: 400px;"/> If you're going to use this with `UIScrollView` make sure to check out [BDDRScrollViewAdditions](https://github.com/bddckr/BDDRScrollViewAdditions). ## Installation Simply add the files in the `BDDROneFingerZoomGestureRecognizer.h` and `BDDROneFingerZoomGestureRecognizer.m` to your project or add `BDDROneFingerZoomGestureRecognizer` to your Podfile if you're using CocoaPods. ## Customization There are several properties that change the default behavior, especially interesting are `numberOfTapsRequired`, `minimumPressDuration` and `allowableMovement`. For more info see the [header](BDDROneFingerZoomGestureRecognizer.h). ## Contact Follow [@bddckr](https://twitter.com/bddckr) on Twitter. ## Copyright and License Copyright (c) 2013 Christopher - Marcel Böddecker Licensed under [The MIT License (MIT)](http://choosealicense.com/licenses/mit).
Update installation section in Readme.
Update installation section in Readme. We're using Cocoapods now!
Markdown
mit
bddckr/BDDROneFingerZoomGestureRecognizer
markdown
## Code Before: `UIGestureRecognizer` subclass to enable one-finger-zoom gestures. This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does: <img src="Demo.gif" alt="Demo" style="height: 400px;"/> If you're going to use this with `UIScrollView` make sure to check out [BDDRScrollViewAdditions](https://github.com/bddckr/BDDRScrollViewAdditions). ## Installation $ cd /path/to/top/of/your/project $ git submodule add git://github.com/bddckr/BDDROneFingerZoomGestureRecognizer.git BDDROneFingerZoomGestureRecognizer $ git submodule update --init --recursive ## Customization There are several properties that change the default behavior, especially interesting are `numberOfTapsRequired`, `minimumPressDuration` and `allowableMovement`. For more info see the [header](BDDROneFingerZoomGestureRecognizer.h). ## Contact Follow [@bddckr](https://twitter.com/bddckr) on Twitter. ## Copyright and License Copyright (c) 2013 Christopher - Marcel Böddecker Licensed under [The MIT License (MIT)](http://choosealicense.com/licenses/mit). ## Instruction: Update installation section in Readme. We're using Cocoapods now! ## Code After: `UIGestureRecognizer` subclass to enable one-finger-zoom gestures. This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does: <img src="Demo.gif" alt="Demo" style="height: 400px;"/> If you're going to use this with `UIScrollView` make sure to check out [BDDRScrollViewAdditions](https://github.com/bddckr/BDDRScrollViewAdditions). ## Installation Simply add the files in the `BDDROneFingerZoomGestureRecognizer.h` and `BDDROneFingerZoomGestureRecognizer.m` to your project or add `BDDROneFingerZoomGestureRecognizer` to your Podfile if you're using CocoaPods. ## Customization There are several properties that change the default behavior, especially interesting are `numberOfTapsRequired`, `minimumPressDuration` and `allowableMovement`. For more info see the [header](BDDROneFingerZoomGestureRecognizer.h). ## Contact Follow [@bddckr](https://twitter.com/bddckr) on Twitter. ## Copyright and License Copyright (c) 2013 Christopher - Marcel Böddecker Licensed under [The MIT License (MIT)](http://choosealicense.com/licenses/mit).
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures. This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does: <img src="Demo.gif" alt="Demo" style="height: 400px;"/> If you're going to use this with `UIScrollView` make sure to check out [BDDRScrollViewAdditions](https://github.com/bddckr/BDDRScrollViewAdditions). ## Installation + Simply add the files in the `BDDROneFingerZoomGestureRecognizer.h` and `BDDROneFingerZoomGestureRecognizer.m` to your project or add `BDDROneFingerZoomGestureRecognizer` to your Podfile if you're using CocoaPods. - $ cd /path/to/top/of/your/project - $ git submodule add git://github.com/bddckr/BDDROneFingerZoomGestureRecognizer.git BDDROneFingerZoomGestureRecognizer - $ git submodule update --init --recursive ## Customization There are several properties that change the default behavior, especially interesting are `numberOfTapsRequired`, `minimumPressDuration` and `allowableMovement`. For more info see the [header](BDDROneFingerZoomGestureRecognizer.h). ## Contact Follow [@bddckr](https://twitter.com/bddckr) on Twitter. ## Copyright and License Copyright (c) 2013 Christopher - Marcel Böddecker Licensed under [The MIT License (MIT)](http://choosealicense.com/licenses/mit).
4
0.148148
1
3
0ca99f073801241138cb4da889729d0ef7e8c0af
AUTHORS.rst
AUTHORS.rst
.. -*- rst -*- Authors & Acknowledgments ========================= This software was written and packaged by Lev Givon, currently at the Bionet Group [1]_ at Columbia University. Some parts of the code are based (in part) on earlier implementations written by the following members and alumni of the Bionet Group under the supervision of Prof. Aurel A. Lazar [2]_: * Eftychios A. Pnevmatikakis * Yevgeniy B. Slutskiy * Robert J. Turetsky Special thanks are due to the following Bionet Group members and alumni for reviewing the code and providing useful suggestions: * Robert J. Turetsky * Yiyin Zhou Contact Information ------------------- Please direct all questions and comments pertaining to the software to `Lev Givon <lev@columbia.edu>`_. .. [1] http://www.bionet.ee.columbia.edu/ .. [2] http://www.ee.columbia.edu/~aurel/
.. -*- rst -*- Authors & Acknowledgments ========================= This software was written and packaged by Lev Givon, currently at the Bionet Group [1]_ at Columbia University. Some parts of the code are based (in part) on earlier implementations written by the following alumni of the Bionet Group under the supervision of Prof. Aurel A. Lazar [2]_: * Eftychios A. Pnevmatikakis * Yevgeniy B. Slutskiy * Robert J. Turetsky Special thanks are due to the following Bionet Group members and alumni for reviewing the code and providing useful suggestions: * Robert J. Turetsky * Yiyin Zhou .. [1] http://www.bionet.ee.columbia.edu/ .. [2] http://www.ee.columbia.edu/~aurel/
Update authors list to reflect alumni status of certain contributors.
Update authors list to reflect alumni status of certain contributors.
reStructuredText
bsd-3-clause
bionet/ted.python
restructuredtext
## Code Before: .. -*- rst -*- Authors & Acknowledgments ========================= This software was written and packaged by Lev Givon, currently at the Bionet Group [1]_ at Columbia University. Some parts of the code are based (in part) on earlier implementations written by the following members and alumni of the Bionet Group under the supervision of Prof. Aurel A. Lazar [2]_: * Eftychios A. Pnevmatikakis * Yevgeniy B. Slutskiy * Robert J. Turetsky Special thanks are due to the following Bionet Group members and alumni for reviewing the code and providing useful suggestions: * Robert J. Turetsky * Yiyin Zhou Contact Information ------------------- Please direct all questions and comments pertaining to the software to `Lev Givon <lev@columbia.edu>`_. .. [1] http://www.bionet.ee.columbia.edu/ .. [2] http://www.ee.columbia.edu/~aurel/ ## Instruction: Update authors list to reflect alumni status of certain contributors. ## Code After: .. -*- rst -*- Authors & Acknowledgments ========================= This software was written and packaged by Lev Givon, currently at the Bionet Group [1]_ at Columbia University. Some parts of the code are based (in part) on earlier implementations written by the following alumni of the Bionet Group under the supervision of Prof. Aurel A. Lazar [2]_: * Eftychios A. Pnevmatikakis * Yevgeniy B. Slutskiy * Robert J. Turetsky Special thanks are due to the following Bionet Group members and alumni for reviewing the code and providing useful suggestions: * Robert J. Turetsky * Yiyin Zhou .. [1] http://www.bionet.ee.columbia.edu/ .. [2] http://www.ee.columbia.edu/~aurel/
.. -*- rst -*- Authors & Acknowledgments ========================= This software was written and packaged by Lev Givon, currently at the Bionet Group [1]_ at Columbia University. Some parts of the code are based (in part) on earlier implementations - written by the following members and alumni of the Bionet Group under ? ------------ + written by the following alumni of the Bionet Group under the supervision ? +++++++++++++++++ - the supervision of Prof. Aurel A. Lazar [2]_: ? ---------------- + of Prof. Aurel A. Lazar [2]_: * Eftychios A. Pnevmatikakis * Yevgeniy B. Slutskiy * Robert J. Turetsky Special thanks are due to the following Bionet Group members and alumni for reviewing the code and providing useful suggestions: * Robert J. Turetsky * Yiyin Zhou - Contact Information - ------------------- - Please direct all questions and comments pertaining to the software to - - `Lev Givon <lev@columbia.edu>`_. - .. [1] http://www.bionet.ee.columbia.edu/ .. [2] http://www.ee.columbia.edu/~aurel/
10
0.333333
2
8
b2402f1155c73b7afe64c7cbf13085e580584f56
Version.ps1
Version.ps1
param([String]$oldVersion="", [String]$newVersion="") iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/18aed44c432381eaa11329d82f63dfaf835d219c/Version.ps1'))
param([String]$oldVersion="", [String]$newVersion="") iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/0297d9e34cc1ff5391b474b4fa29d6be9b236b83/Version.ps1'))
Fix bug in version script.
Fix bug in version script.
PowerShell
mit
StephenCleary/Comparers
powershell
## Code Before: param([String]$oldVersion="", [String]$newVersion="") iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/18aed44c432381eaa11329d82f63dfaf835d219c/Version.ps1')) ## Instruction: Fix bug in version script. ## Code After: param([String]$oldVersion="", [String]$newVersion="") iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/0297d9e34cc1ff5391b474b4fa29d6be9b236b83/Version.ps1'))
param([String]$oldVersion="", [String]$newVersion="") - iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/18aed44c432381eaa11329d82f63dfaf835d219c/Version.ps1')) ? ^^^ ^^ ^^^^^^ ---- ^ ^ ^^^^^ ------ + iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/0297d9e34cc1ff5391b474b4fa29d6be9b236b83/Version.ps1')) ? ^^^^^^ ^ +++++++++ ^^^^^ ^^^^^ ^ ^
2
1
1
1
08d7fb59d4c404f2b9c500711323adb0096f9d56
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" install: - "travis_retry pip install coverage" - "travis_retry pip install nose" - "travis_retry pip install coveralls" - "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development" script: "python setup.py nosetests" after_success: coveralls
language: python python: - "2.6" - "2.7" install: - "travis_retry pip install coverage" - "travis_retry pip install nose" - "travis_retry pip install coveralls" - "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development" - "travis_retry pip install -e ." script: "python setup.py nosetests" after_success: coveralls
Install self before test suite
Install self before test suite
YAML
mit
amol-/tgext.socketio
yaml
## Code Before: language: python python: - "2.6" - "2.7" install: - "travis_retry pip install coverage" - "travis_retry pip install nose" - "travis_retry pip install coveralls" - "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development" script: "python setup.py nosetests" after_success: coveralls ## Instruction: Install self before test suite ## Code After: language: python python: - "2.6" - "2.7" install: - "travis_retry pip install coverage" - "travis_retry pip install nose" - "travis_retry pip install coveralls" - "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development" - "travis_retry pip install -e ." script: "python setup.py nosetests" after_success: coveralls
language: python python: - "2.6" - "2.7" install: - "travis_retry pip install coverage" - "travis_retry pip install nose" - "travis_retry pip install coveralls" - "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development" + - "travis_retry pip install -e ." script: "python setup.py nosetests" after_success: coveralls
1
0.066667
1
0
e408992f370423c025a92d5deb622fb46441fdbe
controllers/account.php
controllers/account.php
<?php class Orchestra_Account_Controller extends Orchestra\Controller { public function __construct() { parent::__construct(); $this->filter('before', 'orchestra::auth'); } public function get_index() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.profile', $data); } public function get_password() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.password', $data); } }
<?php class Orchestra_Account_Controller extends Orchestra\Controller { /** * Construct Account Controller to allow user * to update own profile. Only authenticated user * should be able to access this controller. * * @access public * @return void */ public function __construct() { parent::__construct(); $this->filter('before', 'orchestra::auth'); } /** * Edit User Profile Page * * @access public * @return Response */ public function get_index() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.profile', $data); } /** * Edit User Profile * * @access public * @return Response */ public function post_index() { } /** * Edit Password Page * * @access public * @return Response */ public function get_password() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.password', $data); } /** * Edit User Password * * @access public * @return Response */ public function post_password() { } }
Update Orchestra_Account_Controller docblock and prepare method for POST request
Update Orchestra_Account_Controller docblock and prepare method for POST request
PHP
mit
orchestral/orchestra,orchestral/orchestra
php
## Code Before: <?php class Orchestra_Account_Controller extends Orchestra\Controller { public function __construct() { parent::__construct(); $this->filter('before', 'orchestra::auth'); } public function get_index() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.profile', $data); } public function get_password() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.password', $data); } } ## Instruction: Update Orchestra_Account_Controller docblock and prepare method for POST request ## Code After: <?php class Orchestra_Account_Controller extends Orchestra\Controller { /** * Construct Account Controller to allow user * to update own profile. Only authenticated user * should be able to access this controller. * * @access public * @return void */ public function __construct() { parent::__construct(); $this->filter('before', 'orchestra::auth'); } /** * Edit User Profile Page * * @access public * @return Response */ public function get_index() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.profile', $data); } /** * Edit User Profile * * @access public * @return Response */ public function post_index() { } /** * Edit Password Page * * @access public * @return Response */ public function get_password() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.password', $data); } /** * Edit User Password * * @access public * @return Response */ public function post_password() { } }
<?php class Orchestra_Account_Controller extends Orchestra\Controller { + /** + * Construct Account Controller to allow user + * to update own profile. Only authenticated user + * should be able to access this controller. + * + * @access public + * @return void + */ public function __construct() { parent::__construct(); $this->filter('before', 'orchestra::auth'); } + /** + * Edit User Profile Page + * + * @access public + * @return Response + */ public function get_index() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.profile', $data); } + /** + * Edit User Profile + * + * @access public + * @return Response + */ + public function post_index() + { + + } + + /** + * Edit Password Page + * + * @access public + * @return Response + */ public function get_password() { $auth = Auth::user(); $data = array( 'user' => Orchestra\Model\User::find($auth->id), ); return View::make('orchestra::account.password', $data); } + + /** + * Edit User Password + * + * @access public + * @return Response + */ + public function post_password() + { + + } }
42
1.272727
42
0
ad381f410dceb2f8efc49a0a65ae70defe273c75
src/rpc/handlers/jsonrpc/handler.js
src/rpc/handlers/jsonrpc/handler.js
'use strict'; const { validatePayload } = require('./validate'); // Use JSON-RPC-specific logic to parse the request into an // rpc-agnostic `rpcDef` const handler = function ({ payload }) { validatePayload({ payload }); const { method, params } = payload; const args = getArgs({ params }); const rpcDef = { commandName: method, args }; return { rpcDef }; }; // Can either be [{ ... }], [], {...} or nothing const getArgs = function ({ params = {} }) { if (!Array.isArray(params)) { return params; } if (params.length === 0) { return {}; } return params[0]; }; module.exports = { handler, };
'use strict'; const { validatePayload } = require('./validate'); // Use JSON-RPC-specific logic to parse the request into an // rpc-agnostic `rpcDef` const handler = function ({ payload }) { validatePayload({ payload }); const { method, params, id } = payload; const args = getArgs({ params }); const argsA = addSilent({ args, id }); const rpcDef = { commandName: method, args: argsA }; return { rpcDef }; }; // Can either be [{ ... }], [], {...} or nothing const getArgs = function ({ params = {} }) { if (!Array.isArray(params)) { return params; } if (params.length === 0) { return {}; } return params[0]; }; // If request `id` is absent, there should be no response according to // JSON-RPC spec. We achieve this by settings `args.silent` `true` const addSilent = function ({ args, id }) { if (id != null) { return args; } return { ...args, silent: true }; }; module.exports = { handler, };
Add support for JSON-RPC notifications
Add support for JSON-RPC notifications
JavaScript
apache-2.0
autoserver-org/autoserver,autoserver-org/autoserver
javascript
## Code Before: 'use strict'; const { validatePayload } = require('./validate'); // Use JSON-RPC-specific logic to parse the request into an // rpc-agnostic `rpcDef` const handler = function ({ payload }) { validatePayload({ payload }); const { method, params } = payload; const args = getArgs({ params }); const rpcDef = { commandName: method, args }; return { rpcDef }; }; // Can either be [{ ... }], [], {...} or nothing const getArgs = function ({ params = {} }) { if (!Array.isArray(params)) { return params; } if (params.length === 0) { return {}; } return params[0]; }; module.exports = { handler, }; ## Instruction: Add support for JSON-RPC notifications ## Code After: 'use strict'; const { validatePayload } = require('./validate'); // Use JSON-RPC-specific logic to parse the request into an // rpc-agnostic `rpcDef` const handler = function ({ payload }) { validatePayload({ payload }); const { method, params, id } = payload; const args = getArgs({ params }); const argsA = addSilent({ args, id }); const rpcDef = { commandName: method, args: argsA }; return { rpcDef }; }; // Can either be [{ ... }], [], {...} or nothing const getArgs = function ({ params = {} }) { if (!Array.isArray(params)) { return params; } if (params.length === 0) { return {}; } return params[0]; }; // If request `id` is absent, there should be no response according to // JSON-RPC spec. We achieve this by settings `args.silent` `true` const addSilent = function ({ args, id }) { if (id != null) { return args; } return { ...args, silent: true }; }; module.exports = { handler, };
'use strict'; const { validatePayload } = require('./validate'); // Use JSON-RPC-specific logic to parse the request into an // rpc-agnostic `rpcDef` const handler = function ({ payload }) { validatePayload({ payload }); - const { method, params } = payload; + const { method, params, id } = payload; ? ++++ + const args = getArgs({ params }); + const argsA = addSilent({ args, id }); + - const rpcDef = { commandName: method, args }; + const rpcDef = { commandName: method, args: argsA }; ? +++++++ return { rpcDef }; }; // Can either be [{ ... }], [], {...} or nothing const getArgs = function ({ params = {} }) { if (!Array.isArray(params)) { return params; } if (params.length === 0) { return {}; } return params[0]; }; + // If request `id` is absent, there should be no response according to + // JSON-RPC spec. We achieve this by settings `args.silent` `true` + const addSilent = function ({ args, id }) { + if (id != null) { return args; } + + return { ...args, silent: true }; + }; + module.exports = { handler, };
15
0.555556
13
2
32f7ddeec8a67338d0e9663d0fb1f3e448e6d32a
renderer/components/box/box-image.css
renderer/components/box/box-image.css
.base { position: relative; width: 100%; min-height: 20px; text-align: center; cursor: zoom-in; } .base svg { position: absolute; width: 25px; height: 25px; padding: 2px; fill: white; background-color: rgba(180, 180, 180, 0.5); border-radius: 4px; margin-top: 5px; margin-left: 5px; z-index: 100; } .base img { max-width: 100%; min-height: 100px; background: #eeffee; overflow: hidden; } .loaded { animation: fade-in 300ms both; } @keyframes fade-in { 0% { filter: blur(50px); opacity: 0; } 100% { filter: none; opacity: 1; } }
.base { position: relative; width: 100%; min-height: 20px; text-align: center; cursor: zoom-in; overflow: hidden; } .base svg { position: absolute; width: 25px; height: 25px; padding: 2px; fill: white; background-color: rgba(180, 180, 180, 0.5); border-radius: 4px; margin-top: 5px; margin-left: 5px; z-index: 100; } .base img { max-width: 100%; min-height: 100px; background: #eeffee; overflow: hidden; } .loaded { animation: fade-in 300ms both; } @keyframes fade-in { 0% { filter: blur(50px); margin: -50px; opacity: 0; } 100% { filter: none; margin: 0; opacity: 1; } }
Fix blur blur blur blur...
Fix blur blur blur blur...
CSS
mit
akameco/PixivDeck,akameco/PixivDeck
css
## Code Before: .base { position: relative; width: 100%; min-height: 20px; text-align: center; cursor: zoom-in; } .base svg { position: absolute; width: 25px; height: 25px; padding: 2px; fill: white; background-color: rgba(180, 180, 180, 0.5); border-radius: 4px; margin-top: 5px; margin-left: 5px; z-index: 100; } .base img { max-width: 100%; min-height: 100px; background: #eeffee; overflow: hidden; } .loaded { animation: fade-in 300ms both; } @keyframes fade-in { 0% { filter: blur(50px); opacity: 0; } 100% { filter: none; opacity: 1; } } ## Instruction: Fix blur blur blur blur... ## Code After: .base { position: relative; width: 100%; min-height: 20px; text-align: center; cursor: zoom-in; overflow: hidden; } .base svg { position: absolute; width: 25px; height: 25px; padding: 2px; fill: white; background-color: rgba(180, 180, 180, 0.5); border-radius: 4px; margin-top: 5px; margin-left: 5px; z-index: 100; } .base img { max-width: 100%; min-height: 100px; background: #eeffee; overflow: hidden; } .loaded { animation: fade-in 300ms both; } @keyframes fade-in { 0% { filter: blur(50px); margin: -50px; opacity: 0; } 100% { filter: none; margin: 0; opacity: 1; } }
.base { position: relative; width: 100%; min-height: 20px; text-align: center; cursor: zoom-in; + overflow: hidden; } .base svg { position: absolute; width: 25px; height: 25px; padding: 2px; fill: white; background-color: rgba(180, 180, 180, 0.5); border-radius: 4px; margin-top: 5px; margin-left: 5px; z-index: 100; } .base img { max-width: 100%; min-height: 100px; background: #eeffee; overflow: hidden; } .loaded { animation: fade-in 300ms both; } @keyframes fade-in { 0% { filter: blur(50px); + margin: -50px; opacity: 0; } 100% { filter: none; + margin: 0; opacity: 1; } }
3
0.071429
3
0
e974855ce3c9827060046d736c4e4254552e9e91
run_tests.sh
run_tests.sh
set -e VENV=x-venv WORKSPACE=${WORKSPACE:-"/vagrant"} CONFIG_FILE=$WORKSPACE/jenkins-config.yaml # Setup a proper path, I call my virtualenv dir "$VENV" and # I've got the virtualenv command installed in /usr/local/bin PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH if [ ! -d "$VENV" ]; then virtualenv -p python2 $VENV fi . $VENV/bin/activate pip install pip-accel pip-accel install -r solar/test-requirements.txt pushd solar PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s solar
set -e VENV=x-venv WORKSPACE=${WORKSPACE:-"/vagrant"} CONFIG_FILE=$WORKSPACE/jenkins-config.yaml # Setup a proper path, I call my virtualenv dir "$VENV" and # I've got the virtualenv command installed in /usr/local/bin PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH if [ ! -d "$VENV" ]; then virtualenv -p python2 $VENV fi . $VENV/bin/activate pip install pip-accel pip-accel install -r solar/test-requirements.txt pushd solar SOLAR_CONFIG=../.config PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s solar/test
Set config path. Run only tests from test dir
Set config path. Run only tests from test dir
Shell
apache-2.0
Mirantis/solar,pigmej/solar,pigmej/solar,pigmej/solar,openstack/solar,zen/solar,Mirantis/solar,Mirantis/solar,openstack/solar,openstack/solar,loles/solar,loles/solar,loles/solar,Mirantis/solar,loles/solar,zen/solar,zen/solar,zen/solar
shell
## Code Before: set -e VENV=x-venv WORKSPACE=${WORKSPACE:-"/vagrant"} CONFIG_FILE=$WORKSPACE/jenkins-config.yaml # Setup a proper path, I call my virtualenv dir "$VENV" and # I've got the virtualenv command installed in /usr/local/bin PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH if [ ! -d "$VENV" ]; then virtualenv -p python2 $VENV fi . $VENV/bin/activate pip install pip-accel pip-accel install -r solar/test-requirements.txt pushd solar PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s solar ## Instruction: Set config path. Run only tests from test dir ## Code After: set -e VENV=x-venv WORKSPACE=${WORKSPACE:-"/vagrant"} CONFIG_FILE=$WORKSPACE/jenkins-config.yaml # Setup a proper path, I call my virtualenv dir "$VENV" and # I've got the virtualenv command installed in /usr/local/bin PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH if [ ! -d "$VENV" ]; then virtualenv -p python2 $VENV fi . $VENV/bin/activate pip install pip-accel pip-accel install -r solar/test-requirements.txt pushd solar SOLAR_CONFIG=../.config PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s solar/test
set -e VENV=x-venv WORKSPACE=${WORKSPACE:-"/vagrant"} CONFIG_FILE=$WORKSPACE/jenkins-config.yaml # Setup a proper path, I call my virtualenv dir "$VENV" and # I've got the virtualenv command installed in /usr/local/bin PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH if [ ! -d "$VENV" ]; then virtualenv -p python2 $VENV fi . $VENV/bin/activate pip install pip-accel pip-accel install -r solar/test-requirements.txt pushd solar - PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s solar + SOLAR_CONFIG=../.config PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s solar/test ? ++++++++++++++++++++++++ +++++
2
0.086957
1
1
d2f44bbcf5f2825fdb5117574a4a67b6378ea526
src-script/license-whitelist.txt
src-script/license-whitelist.txt
BSD-2-Clause CC-BY-3.0 Apache-2.0 BSD-3-Clause CC0-1.0 ISC MIT Unlicense AFLv2.1,BSD (BSD-2-Clause OR MIT OR Apache-2.0) (MIT AND CC-BY-3.0) MIT* (WTFPL OR MIT) WTFPL OR ISC WTFPL (MIT OR CC0-1.0) (MIT OR Apache-2.0) (MIT AND BSD-3-Clause) (MIT AND Zlib)
BSD-2-Clause CC-BY-3.0 Apache-2.0 BSD-3-Clause CC0-1.0 ISC MIT Unlicense AFLv2.1,BSD (BSD-2-Clause OR MIT OR Apache-2.0) (MIT AND CC-BY-3.0) MIT* (WTFPL OR MIT) WTFPL OR ISC WTFPL (MIT OR CC0-1.0) (MIT OR Apache-2.0) (MIT AND BSD-3-Clause) (MIT AND Zlib) (AFL-2.1 OR BSD-3-Clause)
Add an Afl + BSD C3 license.
Add an Afl + BSD C3 license.
Text
apache-2.0
project-chip/zap,project-chip/zap,project-chip/zap,project-chip/zap
text
## Code Before: BSD-2-Clause CC-BY-3.0 Apache-2.0 BSD-3-Clause CC0-1.0 ISC MIT Unlicense AFLv2.1,BSD (BSD-2-Clause OR MIT OR Apache-2.0) (MIT AND CC-BY-3.0) MIT* (WTFPL OR MIT) WTFPL OR ISC WTFPL (MIT OR CC0-1.0) (MIT OR Apache-2.0) (MIT AND BSD-3-Clause) (MIT AND Zlib) ## Instruction: Add an Afl + BSD C3 license. ## Code After: BSD-2-Clause CC-BY-3.0 Apache-2.0 BSD-3-Clause CC0-1.0 ISC MIT Unlicense AFLv2.1,BSD (BSD-2-Clause OR MIT OR Apache-2.0) (MIT AND CC-BY-3.0) MIT* (WTFPL OR MIT) WTFPL OR ISC WTFPL (MIT OR CC0-1.0) (MIT OR Apache-2.0) (MIT AND BSD-3-Clause) (MIT AND Zlib) (AFL-2.1 OR BSD-3-Clause)
BSD-2-Clause CC-BY-3.0 Apache-2.0 BSD-3-Clause CC0-1.0 ISC MIT Unlicense AFLv2.1,BSD (BSD-2-Clause OR MIT OR Apache-2.0) (MIT AND CC-BY-3.0) MIT* (WTFPL OR MIT) WTFPL OR ISC WTFPL (MIT OR CC0-1.0) (MIT OR Apache-2.0) (MIT AND BSD-3-Clause) (MIT AND Zlib) + (AFL-2.1 OR BSD-3-Clause) +
2
0.1
2
0
714ad94a6bbc272ec8e96ccd0db3c50e401accf1
cmake/dtkDart.cmake
cmake/dtkDart.cmake
set(CTEST_PROJECT_NAME "dtk") set(NIGHTLY_START_TIME "21:00:00 EST") set(DROP_METHOD "http") set(DROP_SITE "cdash.inria.fr") set(DROP_LOCATION "/CDash/submit.php?project=dtk") set(DROP_SITE_CDASH TRUE)
set(CTEST_PROJECT_NAME "dtk") set(CTEST_UPDATE_TYPE "git") set(UPDATE_COMMAND "git") set(NIGHTLY_START_TIME "21:00:00 EST") set(DROP_METHOD "http") set(DROP_SITE "cdash.inria.fr") set(DROP_LOCATION "/CDash/submit.php?project=dtk") set(DROP_SITE_CDASH TRUE)
Set ctest update command to git.
Set ctest update command to git.
CMake
bsd-3-clause
d-tk/dtk,NicolasSchnitzler/dtk,d-tk/dtk,rdebroiz/dtk,NicolasSchnitzler/dtk,d-tk/dtk,d-tk/dtk,d-tk/dtk,rdebroiz/dtk,NicolasSchnitzler/dtk,d-tk/dtk,NicolasSchnitzler/dtk,rdebroiz/dtk,rdebroiz/dtk
cmake
## Code Before: set(CTEST_PROJECT_NAME "dtk") set(NIGHTLY_START_TIME "21:00:00 EST") set(DROP_METHOD "http") set(DROP_SITE "cdash.inria.fr") set(DROP_LOCATION "/CDash/submit.php?project=dtk") set(DROP_SITE_CDASH TRUE) ## Instruction: Set ctest update command to git. ## Code After: set(CTEST_PROJECT_NAME "dtk") set(CTEST_UPDATE_TYPE "git") set(UPDATE_COMMAND "git") set(NIGHTLY_START_TIME "21:00:00 EST") set(DROP_METHOD "http") set(DROP_SITE "cdash.inria.fr") set(DROP_LOCATION "/CDash/submit.php?project=dtk") set(DROP_SITE_CDASH TRUE)
set(CTEST_PROJECT_NAME "dtk") + set(CTEST_UPDATE_TYPE "git") + set(UPDATE_COMMAND "git") set(NIGHTLY_START_TIME "21:00:00 EST") set(DROP_METHOD "http") set(DROP_SITE "cdash.inria.fr") set(DROP_LOCATION "/CDash/submit.php?project=dtk") set(DROP_SITE_CDASH TRUE)
2
0.285714
2
0
52a2c41c3f2efbedd99f384d419db7f2de01d199
src/DailySoccerSolution/DailySoccerMobile/Scripts/tickets/starter.ticket.services.ts
src/DailySoccerSolution/DailySoccerMobile/Scripts/tickets/starter.ticket.services.ts
module starter.ticket { 'use strict'; export class TicketServices implements ITicketService { static $inject = ['starter.shared.QueryRemoteDataService']; constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) { } public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> { var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount; return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl); }; } angular .module('starter.ticket') .service('starter.ticket.TicketServices', TicketServices); }
module starter.ticket { 'use strict'; export class TicketServices implements ITicketService { static $inject = ['starter.shared.QueryRemoteDataService']; constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) { } public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> { var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount; return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl); }; } export class BuyTicketManagerService { } angular .module('starter.ticket') .service('starter.ticket.TicketServices', TicketServices) .service('starter.ticket.BuyTicketManagerService', BuyTicketManagerService); }
Add BuyTicketManagerService for validate buy ticket.
Add BuyTicketManagerService for validate buy ticket. Signed-off-by: Sakul Jaruthanaset <17b4bfe9c570ddd7d4345ec4b3617835712513c0@perfenterprise.com>
TypeScript
mit
tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer
typescript
## Code Before: module starter.ticket { 'use strict'; export class TicketServices implements ITicketService { static $inject = ['starter.shared.QueryRemoteDataService']; constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) { } public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> { var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount; return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl); }; } angular .module('starter.ticket') .service('starter.ticket.TicketServices', TicketServices); } ## Instruction: Add BuyTicketManagerService for validate buy ticket. Signed-off-by: Sakul Jaruthanaset <17b4bfe9c570ddd7d4345ec4b3617835712513c0@perfenterprise.com> ## Code After: module starter.ticket { 'use strict'; export class TicketServices implements ITicketService { static $inject = ['starter.shared.QueryRemoteDataService']; constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) { } public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> { var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount; return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl); }; } export class BuyTicketManagerService { } angular .module('starter.ticket') .service('starter.ticket.TicketServices', TicketServices) .service('starter.ticket.BuyTicketManagerService', BuyTicketManagerService); }
module starter.ticket { 'use strict'; export class TicketServices implements ITicketService { static $inject = ['starter.shared.QueryRemoteDataService']; constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) { } public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> { var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount; return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl); }; } + export class BuyTicketManagerService { + + } + angular .module('starter.ticket') - .service('starter.ticket.TicketServices', TicketServices); ? - + .service('starter.ticket.TicketServices', TicketServices) + .service('starter.ticket.BuyTicketManagerService', BuyTicketManagerService); }
7
0.368421
6
1
d6af2d52eaf8088aef94dc9dfc991265eb9ea1f5
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: machine: java: version: 8 steps: - checkout - run: ./gradlew build - run: ./gradlew test
version: 2 jobs: build: machine: java: version: 8 steps: - checkout - run: ./gradlew build - run: ./gradlew test - store_artifacts: path: build/reports/tests - store_artifacts: path: build/libs
Deploy test results to CircleCI
Deploy test results to CircleCI
YAML
mit
maillouxc/git-rekt
yaml
## Code Before: version: 2 jobs: build: machine: java: version: 8 steps: - checkout - run: ./gradlew build - run: ./gradlew test ## Instruction: Deploy test results to CircleCI ## Code After: version: 2 jobs: build: machine: java: version: 8 steps: - checkout - run: ./gradlew build - run: ./gradlew test - store_artifacts: path: build/reports/tests - store_artifacts: path: build/libs
version: 2 jobs: build: machine: java: version: 8 steps: - checkout - run: ./gradlew build - run: ./gradlew test + - store_artifacts: + path: build/reports/tests + - store_artifacts: + path: build/libs
4
0.363636
4
0
35772cb892305931a2131a524ae5f37555246a21
json.php
json.php
<?php header('Content-Type: application/json; charset=utf-8'); $response = array( 'name' => $_POST['user'], 'password' => $_POST['pwd'], ); echo json_encode($response, true); ?>
<?php function cors() { // Allow from any origin if (isset($_SERVER['HTTP_ORIGIN'])) { // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one // you want to allow, and if so: header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Credentials: true'); // header('Access-Control-Max-Age: 86400'); // cache for 1 day } // Access-Control headers are received during OPTIONS requests if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) header("Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE, PUT"); if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}"); exit(0); } } cors(); header('Content-Type: application/json; charset=utf-8'); $response = array( 'name' => $_POST['user'], 'password' => $_POST['pwd'], ); echo json_encode($response, true); ?>
Add CORS code in php.
[dev] Add CORS code in php.
PHP
mit
tedshd/ajax,tedshd/ajax,tedshd/ajax
php
## Code Before: <?php header('Content-Type: application/json; charset=utf-8'); $response = array( 'name' => $_POST['user'], 'password' => $_POST['pwd'], ); echo json_encode($response, true); ?> ## Instruction: [dev] Add CORS code in php. ## Code After: <?php function cors() { // Allow from any origin if (isset($_SERVER['HTTP_ORIGIN'])) { // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one // you want to allow, and if so: header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Credentials: true'); // header('Access-Control-Max-Age: 86400'); // cache for 1 day } // Access-Control headers are received during OPTIONS requests if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) header("Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE, PUT"); if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}"); exit(0); } } cors(); header('Content-Type: application/json; charset=utf-8'); $response = array( 'name' => $_POST['user'], 'password' => $_POST['pwd'], ); echo json_encode($response, true); ?>
<?php + function cors() { + + // Allow from any origin + if (isset($_SERVER['HTTP_ORIGIN'])) { + // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one + // you want to allow, and if so: + header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); + header('Access-Control-Allow-Credentials: true'); + // header('Access-Control-Max-Age: 86400'); // cache for 1 day + } + + // Access-Control headers are received during OPTIONS requests + if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { + + if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) + header("Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE, PUT"); + + if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) + header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}"); + + exit(0); + } + + } + + cors(); + header('Content-Type: application/json; charset=utf-8'); $response = array( 'name' => $_POST['user'], 'password' => $_POST['pwd'], ); echo json_encode($response, true); ?>
27
3.375
27
0
67735b59efb121a1e23562316bdab3c302007179
src/templates/drizzle/labelheader.hbs
src/templates/drizzle/labelheader.hbs
<{{tag}} {{#if id}}id="{{id}}"{{/if}} class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-padRight"> {{#if id}} <a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a> {{else}} {{> @partial-block }} {{/if}} </{{tag}}> {{#if labels}} <ul class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-noPadLeft"> {{#each labels as |label|}} <li class="drizzle-Label drizzle-Label--{{label}}"> {{label}} </li> {{/each}} </ul> {{/if}}
<{{tag}} {{#if id}}id="{{id}}"{{/if}} class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-padRight"> {{#if id}} <a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a> {{else}} {{> @partial-block }} {{/if}} </{{tag}}> {{#if labels}} <ul class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-listUnstyled"> {{#each labels as |label|}} <li class="drizzle-Label drizzle-Label--{{label}}"> {{label}} </li> {{/each}} </ul> {{/if}}
Add u-listUnstyled per PR feedback
Add u-listUnstyled per PR feedback
Handlebars
mit
cloudfour/drizzle,cloudfour/drizzle
handlebars
## Code Before: <{{tag}} {{#if id}}id="{{id}}"{{/if}} class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-padRight"> {{#if id}} <a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a> {{else}} {{> @partial-block }} {{/if}} </{{tag}}> {{#if labels}} <ul class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-noPadLeft"> {{#each labels as |label|}} <li class="drizzle-Label drizzle-Label--{{label}}"> {{label}} </li> {{/each}} </ul> {{/if}} ## Instruction: Add u-listUnstyled per PR feedback ## Code After: <{{tag}} {{#if id}}id="{{id}}"{{/if}} class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-padRight"> {{#if id}} <a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a> {{else}} {{> @partial-block }} {{/if}} </{{tag}}> {{#if labels}} <ul class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-listUnstyled"> {{#each labels as |label|}} <li class="drizzle-Label drizzle-Label--{{label}}"> {{label}} </li> {{/each}} </ul> {{/if}}
<{{tag}} {{#if id}}id="{{id}}"{{/if}} class=" drizzle-u-inlineBlock drizzle-u-alignMiddle drizzle-u-padRight"> {{#if id}} <a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a> {{else}} {{> @partial-block }} {{/if}} </{{tag}}> {{#if labels}} <ul class=" drizzle-u-inlineBlock drizzle-u-alignMiddle - drizzle-u-noPadLeft"> + drizzle-u-listUnstyled"> {{#each labels as |label|}} <li class="drizzle-Label drizzle-Label--{{label}}"> {{label}} </li> {{/each}} </ul> {{/if}}
2
0.090909
1
1
59d68d3d23da1704be8c42c1447401d3343a5f5e
locales/cak/experiments.ftl
locales/cak/experiments.ftl
activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox. containersContributors4Title = Firefox QA containersContributors7Title = Firefox UX containersContributors8Title = Firefox UX containersContributors9Title = Firefox UX notesContributors5Title = Firefox QA pageshotDescription = Na'onel chapoj wachib'äl chapon pa ri okik'amaya'l. Nachap, nayak chuqa' nakomonij ri chapoj ruwäch toq atokinäq pa k'amaya'l rik'in Ajk'amaya'l richin Firefox. pulseContributors1Title = Firefox UX pulseContributors3Title = Firefox QA sendContributors4Title = Firefox UX sendContributors5Title = Firefox UX sendContributors6Title = UX Nuk'unel snoozetabsContributors1Title = Firefox UX snoozetabsContributors2Title = Firefox UX snoozetabsContributors3Title = Firefox UX snoozetabsContributors5Title = Firefox QA tabcenterContributors0Title = Firefox UX tabcenterContributors1Title = Firefox UX tabcenterContributors2Title = Firefox UX tabcenterContributors3Title = Firefox UX
activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox. containersContributors4Title = Firefox QA containersContributors7Title = Firefox UX containersContributors8Title = Firefox UX containersContributors9Title = Firefox UX notesContributors5Title = Firefox QA pageshotDescription = Na'onel chapoj wachib'äl chapon pa ri okik'amaya'l. Nachap, nayak chuqa' nakomonij ri chapoj ruwäch toq atokinäq pa k'amaya'l rik'in Ajk'amaya'l richin Firefox. pulseContributors1Title = Firefox UX pulseContributors3Title = Firefox QA sendContributors4Title = Firefox UX sendContributors5Title = Firefox UX sendContributors6Title = UX Nuk'unel snoozetabsContributors1Title = Firefox UX snoozetabsContributors2Title = Firefox UX snoozetabsContributors3Title = Firefox UX snoozetabsContributors5Title = Firefox QA tabcenterContributors0Title = Firefox UX tabcenterContributors1Title = Firefox UX tabcenterContributors2Title = Firefox UX tabcenterContributors3Title = Firefox UX trackingprotectionContributors0Title = Ajk'amaya'l B'anonel voicefillContributors3Title = Firefox UX voicefillContributors4Title = Firefox UX
Update Kaqchikel (cak) localization of Test Pilot Website
Pontoon: Update Kaqchikel (cak) localization of Test Pilot Website Localization authors: - Juan Esteban Ajsivinac Sián <ajtzibsyan@yahoo.com>
FreeMarker
mpl-2.0
fzzzy/testpilot,lmorchard/idea-town-server,chuckharmston/testpilot,mozilla/idea-town-server,mozilla/idea-town,fzzzy/testpilot,flodolo/testpilot,flodolo/testpilot,lmorchard/idea-town-server,chuckharmston/testpilot,meandavejustice/testpilot,lmorchard/idea-town,fzzzy/testpilot,flodolo/testpilot,lmorchard/idea-town-server,lmorchard/testpilot,lmorchard/testpilot,mozilla/idea-town,lmorchard/idea-town-server,mozilla/idea-town-server,lmorchard/idea-town,meandavejustice/testpilot,lmorchard/idea-town,chuckharmston/testpilot,lmorchard/testpilot,flodolo/testpilot,mozilla/idea-town-server,lmorchard/testpilot,fzzzy/testpilot,chuckharmston/testpilot,mozilla/idea-town-server,mozilla/idea-town,lmorchard/idea-town,mozilla/idea-town,meandavejustice/testpilot,meandavejustice/testpilot
freemarker
## Code Before: activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox. containersContributors4Title = Firefox QA containersContributors7Title = Firefox UX containersContributors8Title = Firefox UX containersContributors9Title = Firefox UX notesContributors5Title = Firefox QA pageshotDescription = Na'onel chapoj wachib'äl chapon pa ri okik'amaya'l. Nachap, nayak chuqa' nakomonij ri chapoj ruwäch toq atokinäq pa k'amaya'l rik'in Ajk'amaya'l richin Firefox. pulseContributors1Title = Firefox UX pulseContributors3Title = Firefox QA sendContributors4Title = Firefox UX sendContributors5Title = Firefox UX sendContributors6Title = UX Nuk'unel snoozetabsContributors1Title = Firefox UX snoozetabsContributors2Title = Firefox UX snoozetabsContributors3Title = Firefox UX snoozetabsContributors5Title = Firefox QA tabcenterContributors0Title = Firefox UX tabcenterContributors1Title = Firefox UX tabcenterContributors2Title = Firefox UX tabcenterContributors3Title = Firefox UX ## Instruction: Pontoon: Update Kaqchikel (cak) localization of Test Pilot Website Localization authors: - Juan Esteban Ajsivinac Sián <ajtzibsyan@yahoo.com> ## Code After: activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox. containersContributors4Title = Firefox QA containersContributors7Title = Firefox UX containersContributors8Title = Firefox UX containersContributors9Title = Firefox UX notesContributors5Title = Firefox QA pageshotDescription = Na'onel chapoj wachib'äl chapon pa ri okik'amaya'l. Nachap, nayak chuqa' nakomonij ri chapoj ruwäch toq atokinäq pa k'amaya'l rik'in Ajk'amaya'l richin Firefox. pulseContributors1Title = Firefox UX pulseContributors3Title = Firefox QA sendContributors4Title = Firefox UX sendContributors5Title = Firefox UX sendContributors6Title = UX Nuk'unel snoozetabsContributors1Title = Firefox UX snoozetabsContributors2Title = Firefox UX snoozetabsContributors3Title = Firefox UX snoozetabsContributors5Title = Firefox QA tabcenterContributors0Title = Firefox UX tabcenterContributors1Title = Firefox UX tabcenterContributors2Title = Firefox UX tabcenterContributors3Title = Firefox UX trackingprotectionContributors0Title = Ajk'amaya'l B'anonel voicefillContributors3Title = Firefox UX voicefillContributors4Title = Firefox UX
activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox. containersContributors4Title = Firefox QA containersContributors7Title = Firefox UX containersContributors8Title = Firefox UX containersContributors9Title = Firefox UX notesContributors5Title = Firefox QA pageshotDescription = Na'onel chapoj wachib'äl chapon pa ri okik'amaya'l. Nachap, nayak chuqa' nakomonij ri chapoj ruwäch toq atokinäq pa k'amaya'l rik'in Ajk'amaya'l richin Firefox. pulseContributors1Title = Firefox UX pulseContributors3Title = Firefox QA sendContributors4Title = Firefox UX sendContributors5Title = Firefox UX sendContributors6Title = UX Nuk'unel snoozetabsContributors1Title = Firefox UX snoozetabsContributors2Title = Firefox UX snoozetabsContributors3Title = Firefox UX snoozetabsContributors5Title = Firefox QA tabcenterContributors0Title = Firefox UX tabcenterContributors1Title = Firefox UX tabcenterContributors2Title = Firefox UX tabcenterContributors3Title = Firefox UX + trackingprotectionContributors0Title = Ajk'amaya'l B'anonel + voicefillContributors3Title = Firefox UX + voicefillContributors4Title = Firefox UX
3
0.15
3
0
6be22dbbe3b1f7bc8c396a98a83f5c5b51a4bbca
spec/controllers/ci/projects_controller_spec.rb
spec/controllers/ci/projects_controller_spec.rb
require 'spec_helper' describe Ci::ProjectsController do let(:visibility) { :public } let!(:project) { create(:project, visibility, ci_id: 1) } let(:ci_id) { project.ci_id } ## # Specs for *deprecated* CI badge # describe '#badge' do context 'user not signed in' before { get(:badge, id: ci_id) } context 'project has no ci_id reference' do let(:ci_id) { 123 } it 'returns 404' do expect(response.status).to eq 404 end end context 'project is public' do let(:visibility) { :public } it 'is available without authentication' do expect(response.status).to eq 200 end end context 'project is private' do let(:visibility) { :private } it 'requires authentication' do expect(response.status).to eq 302 end end context 'user signed in' do let(:user) { create(:user) } before { sign_in(user) } before { get(:badge, id: ci_id) } context 'private is internal' do let(:visibility) { :internal } it 'shows badge to signed in user' do expect(response.status).to eq 200 end end end end end
require 'spec_helper' describe Ci::ProjectsController do let(:visibility) { :public } let!(:project) { create(:project, visibility, ci_id: 1) } let(:ci_id) { project.ci_id } ## # Specs for *deprecated* CI badge # describe '#badge' do context 'user not signed in' do before { get(:badge, id: ci_id) } context 'project has no ci_id reference' do let(:ci_id) { 123 } it 'returns 404' do expect(response.status).to eq 404 end end context 'project is public' do let(:visibility) { :public } it 'is available without authentication' do expect(response.status).to eq 200 end end context 'project is private' do let(:visibility) { :private } it 'requires authentication' do expect(response.status).to eq 302 end end end context 'user signed in' do let(:user) { create(:user) } before { sign_in(user) } before { get(:badge, id: ci_id) } context 'private is internal' do let(:visibility) { :internal } it 'shows badge to signed in user' do expect(response.status).to eq 200 end end end end end
Fix specs for deprecated CI build status badge
Fix specs for deprecated CI build status badge
Ruby
mit
shinexiao/gitlabhq,martijnvermaat/gitlabhq,screenpages/gitlabhq,shinexiao/gitlabhq,axilleas/gitlabhq,Soullivaneuh/gitlabhq,dreampet/gitlab,screenpages/gitlabhq,martijnvermaat/gitlabhq,SVArago/gitlabhq,htve/GitlabForChinese,mr-dxdy/gitlabhq,mmkassem/gitlabhq,larryli/gitlabhq,allysonbarros/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mr-dxdy/gitlabhq,daiyu/gitlab-zh,axilleas/gitlabhq,darkrasid/gitlabhq,dplarson/gitlabhq,htve/GitlabForChinese,openwide-java/gitlabhq,Soullivaneuh/gitlabhq,mmkassem/gitlabhq,Soullivaneuh/gitlabhq,SVArago/gitlabhq,icedwater/gitlabhq,darkrasid/gitlabhq,dwrensha/gitlabhq,dplarson/gitlabhq,screenpages/gitlabhq,daiyu/gitlab-zh,shinexiao/gitlabhq,mr-dxdy/gitlabhq,ttasanen/gitlabhq,mmkassem/gitlabhq,allysonbarros/gitlabhq,openwide-java/gitlabhq,LUMC/gitlabhq,larryli/gitlabhq,daiyu/gitlab-zh,daiyu/gitlab-zh,openwide-java/gitlabhq,Soullivaneuh/gitlabhq,jirutka/gitlabhq,larryli/gitlabhq,darkrasid/gitlabhq,dreampet/gitlab,mr-dxdy/gitlabhq,icedwater/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,ttasanen/gitlabhq,axilleas/gitlabhq,allysonbarros/gitlabhq,icedwater/gitlabhq,dplarson/gitlabhq,martijnvermaat/gitlabhq,larryli/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,iiet/iiet-git,LUMC/gitlabhq,dwrensha/gitlabhq,iiet/iiet-git,screenpages/gitlabhq,axilleas/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,SVArago/gitlabhq,htve/GitlabForChinese,shinexiao/gitlabhq,icedwater/gitlabhq,jirutka/gitlabhq,allysonbarros/gitlabhq,ttasanen/gitlabhq,dwrensha/gitlabhq,LUMC/gitlabhq,darkrasid/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,openwide-java/gitlabhq,iiet/iiet-git,dwrensha/gitlabhq,LUMC/gitlabhq,htve/GitlabForChinese,SVArago/gitlabhq,ttasanen/gitlabhq,dplarson/gitlabhq,martijnvermaat/gitlabhq
ruby
## Code Before: require 'spec_helper' describe Ci::ProjectsController do let(:visibility) { :public } let!(:project) { create(:project, visibility, ci_id: 1) } let(:ci_id) { project.ci_id } ## # Specs for *deprecated* CI badge # describe '#badge' do context 'user not signed in' before { get(:badge, id: ci_id) } context 'project has no ci_id reference' do let(:ci_id) { 123 } it 'returns 404' do expect(response.status).to eq 404 end end context 'project is public' do let(:visibility) { :public } it 'is available without authentication' do expect(response.status).to eq 200 end end context 'project is private' do let(:visibility) { :private } it 'requires authentication' do expect(response.status).to eq 302 end end context 'user signed in' do let(:user) { create(:user) } before { sign_in(user) } before { get(:badge, id: ci_id) } context 'private is internal' do let(:visibility) { :internal } it 'shows badge to signed in user' do expect(response.status).to eq 200 end end end end end ## Instruction: Fix specs for deprecated CI build status badge ## Code After: require 'spec_helper' describe Ci::ProjectsController do let(:visibility) { :public } let!(:project) { create(:project, visibility, ci_id: 1) } let(:ci_id) { project.ci_id } ## # Specs for *deprecated* CI badge # describe '#badge' do context 'user not signed in' do before { get(:badge, id: ci_id) } context 'project has no ci_id reference' do let(:ci_id) { 123 } it 'returns 404' do expect(response.status).to eq 404 end end context 'project is public' do let(:visibility) { :public } it 'is available without authentication' do expect(response.status).to eq 200 end end context 'project is private' do let(:visibility) { :private } it 'requires authentication' do expect(response.status).to eq 302 end end end context 'user signed in' do let(:user) { create(:user) } before { sign_in(user) } before { get(:badge, id: ci_id) } context 'private is internal' do let(:visibility) { :internal } it 'shows badge to signed in user' do expect(response.status).to eq 200 end end end end end
require 'spec_helper' describe Ci::ProjectsController do let(:visibility) { :public } let!(:project) { create(:project, visibility, ci_id: 1) } let(:ci_id) { project.ci_id } ## # Specs for *deprecated* CI badge # describe '#badge' do - context 'user not signed in' + context 'user not signed in' do ? +++ before { get(:badge, id: ci_id) } context 'project has no ci_id reference' do let(:ci_id) { 123 } it 'returns 404' do expect(response.status).to eq 404 end end context 'project is public' do let(:visibility) { :public } it 'is available without authentication' do expect(response.status).to eq 200 end end context 'project is private' do let(:visibility) { :private } it 'requires authentication' do expect(response.status).to eq 302 end end + end context 'user signed in' do let(:user) { create(:user) } before { sign_in(user) } before { get(:badge, id: ci_id) } context 'private is internal' do let(:visibility) { :internal } it 'shows badge to signed in user' do expect(response.status).to eq 200 end end end end end
3
0.056604
2
1
88f9c79391fb81fdf91a812f4fd702f2c008424a
README.md
README.md
> Rangle.io official React + Redux starter ## Getting Started Use our [starter script](https://www.npmjs.com/package/rangle-starter), with `react-redux-starter` as the `techStack` argument. ## npm scripts ### Dev ```bash $ npm run dev ``` Open `http://localhost:3000` in your browser. ### Tests #### Single Run ```bash $ npm run test ``` #### Watch Files ```bash $ npm run test:watch ``` #### Coverage ```bash $ npm run cover ``` ### Production ```bash $ npm start ``` ## License Copyright (c) 2015 rangle.io [MIT License][MIT] [MIT]: ./LICENSE "Mit License"
> Rangle.io official React + Redux starter ## Getting Started Use our [starter script](https://www.npmjs.com/package/rangle-starter), with `react-redux-starter` as the `techStack` argument. ## npm scripts ### Dev ```bash $ npm run dev ``` Open `http://localhost:3000` in your browser. ### Tests #### Single Run ```bash $ npm run test ``` #### Watch Files ```bash $ npm run test:watch ``` #### Coverage ```bash $ npm run cover ``` ### Production ```bash $ npm start ``` ## Want to deploy on Heroku? Read this. By default, Heroku's node stack runs `npm install --production`, which ignores the `devDependencies` section of your `package.json`. The convention in these cases is that only what is necessary for the actual production run should be in `dependencies`. However this is at odds with modern JS bundlers like webpack, where almost everything is a `devDependency`; because Heroku does not separate the build and run environments, its default setup isn't the best fit. Here is a workaround: https://devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process ## License Copyright (c) 2015 rangle.io [MIT License][MIT] [MIT]: ./LICENSE "Mit License"
Add a note about Heroku deployments
Add a note about Heroku deployments
Markdown
mit
rangle/react-redux-starter,tammytle/spiegel,tammytle/spiegel,JamesHageman/rangle-elm-starter,rangle/react-redux-starter,tammytle/spiegel,JamesHageman/rangle-elm-starter,rangle/react-redux-starter,JamesHageman/redux-datagrid,tammytle/spiegel,JamesHageman/rangle-elm-starter,JamesHageman/rangle-elm-starter,JamesHageman/redux-datagrid,rangle/react-redux-starter
markdown
## Code Before: > Rangle.io official React + Redux starter ## Getting Started Use our [starter script](https://www.npmjs.com/package/rangle-starter), with `react-redux-starter` as the `techStack` argument. ## npm scripts ### Dev ```bash $ npm run dev ``` Open `http://localhost:3000` in your browser. ### Tests #### Single Run ```bash $ npm run test ``` #### Watch Files ```bash $ npm run test:watch ``` #### Coverage ```bash $ npm run cover ``` ### Production ```bash $ npm start ``` ## License Copyright (c) 2015 rangle.io [MIT License][MIT] [MIT]: ./LICENSE "Mit License" ## Instruction: Add a note about Heroku deployments ## Code After: > Rangle.io official React + Redux starter ## Getting Started Use our [starter script](https://www.npmjs.com/package/rangle-starter), with `react-redux-starter` as the `techStack` argument. ## npm scripts ### Dev ```bash $ npm run dev ``` Open `http://localhost:3000` in your browser. ### Tests #### Single Run ```bash $ npm run test ``` #### Watch Files ```bash $ npm run test:watch ``` #### Coverage ```bash $ npm run cover ``` ### Production ```bash $ npm start ``` ## Want to deploy on Heroku? Read this. By default, Heroku's node stack runs `npm install --production`, which ignores the `devDependencies` section of your `package.json`. The convention in these cases is that only what is necessary for the actual production run should be in `dependencies`. However this is at odds with modern JS bundlers like webpack, where almost everything is a `devDependency`; because Heroku does not separate the build and run environments, its default setup isn't the best fit. Here is a workaround: https://devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process ## License Copyright (c) 2015 rangle.io [MIT License][MIT] [MIT]: ./LICENSE "Mit License"
> Rangle.io official React + Redux starter ## Getting Started Use our [starter script](https://www.npmjs.com/package/rangle-starter), with `react-redux-starter` as the `techStack` argument. ## npm scripts ### Dev ```bash $ npm run dev ``` Open `http://localhost:3000` in your browser. ### Tests #### Single Run ```bash $ npm run test ``` #### Watch Files ```bash $ npm run test:watch ``` #### Coverage ```bash $ npm run cover ``` ### Production ```bash $ npm start ``` + ## Want to deploy on Heroku? Read this. + + By default, Heroku's node stack runs `npm install --production`, which ignores the `devDependencies` + section of your `package.json`. The convention in these cases is that only what is necessary + for the actual production run should be in `dependencies`. + + However this is at odds with modern JS bundlers like webpack, where almost everything is a `devDependency`; + because Heroku does not separate the build and run environments, its default setup isn't the + best fit. + + Here is a workaround: https://devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process + ## License Copyright (c) 2015 rangle.io [MIT License][MIT] [MIT]: ./LICENSE "Mit License"
12
0.26087
12
0
ab15a7cad4140954a4a4a946ff7d7fc65d005363
test/tcframe/runner/RunnerTests.cpp
test/tcframe/runner/RunnerTests.cpp
using ::testing::Test; namespace tcframe { class FakeProblem : public BaseProblem { protected: void InputFormat() {} }; class FakeGenerator : public BaseGenerator<FakeProblem> {}; class RunnerTests : public Test { protected: int argc = 1; char* argv[1] = {const_cast<char*>("./runner")}; Runner<FakeProblem> runner = Runner<FakeProblem>(argc, argv); }; TEST_F(RunnerTests, CompilationSuccessful) { runner.setGenerator(new FakeGenerator()); } }
using ::testing::Test; namespace tcframe { class FakeProblem : public BaseProblem { protected: void InputFormat() {} }; class FakeGenerator : public BaseGenerator<FakeProblem> {}; class RunnerTests : public Test { protected: int argc = 1; char* argv[1] = {toChar("./runner")}; Runner<FakeProblem> runner = Runner<FakeProblem>(argc, argv); private: static char* toChar(const string& str) { char* cstr = new char[str.length() + 1]; strcpy(cstr, str.c_str()); return cstr; } }; TEST_F(RunnerTests, CompilationSuccessful) { runner.setGenerator(new FakeGenerator()); } }
Use safer cast from const char* literal to char*
Use safer cast from const char* literal to char*
C++
mit
ia-toki/tcframe,ia-toki/tcframe,fushar/tcframe,fushar/tcframe,tcframe/tcframe,tcframe/tcframe
c++
## Code Before: using ::testing::Test; namespace tcframe { class FakeProblem : public BaseProblem { protected: void InputFormat() {} }; class FakeGenerator : public BaseGenerator<FakeProblem> {}; class RunnerTests : public Test { protected: int argc = 1; char* argv[1] = {const_cast<char*>("./runner")}; Runner<FakeProblem> runner = Runner<FakeProblem>(argc, argv); }; TEST_F(RunnerTests, CompilationSuccessful) { runner.setGenerator(new FakeGenerator()); } } ## Instruction: Use safer cast from const char* literal to char* ## Code After: using ::testing::Test; namespace tcframe { class FakeProblem : public BaseProblem { protected: void InputFormat() {} }; class FakeGenerator : public BaseGenerator<FakeProblem> {}; class RunnerTests : public Test { protected: int argc = 1; char* argv[1] = {toChar("./runner")}; Runner<FakeProblem> runner = Runner<FakeProblem>(argc, argv); private: static char* toChar(const string& str) { char* cstr = new char[str.length() + 1]; strcpy(cstr, str.c_str()); return cstr; } }; TEST_F(RunnerTests, CompilationSuccessful) { runner.setGenerator(new FakeGenerator()); } }
using ::testing::Test; namespace tcframe { class FakeProblem : public BaseProblem { protected: void InputFormat() {} }; class FakeGenerator : public BaseGenerator<FakeProblem> {}; class RunnerTests : public Test { protected: int argc = 1; - char* argv[1] = {const_cast<char*>("./runner")}; ? ^ ^^^^^^^^^^ -- + char* argv[1] = {toChar("./runner")}; ? ^ ^ Runner<FakeProblem> runner = Runner<FakeProblem>(argc, argv); + + private: + static char* toChar(const string& str) { + char* cstr = new char[str.length() + 1]; + strcpy(cstr, str.c_str()); + return cstr; + } }; TEST_F(RunnerTests, CompilationSuccessful) { runner.setGenerator(new FakeGenerator()); } }
9
0.36
8
1
ad5e2272bc1d857fdec6e14f0e8232296fc1aa38
models/raw_feed/model.js
models/raw_feed/model.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var config = require('../../config.js'); this.rawFeedModel = { timestamp: {type: Date, default: Date.now}, text: String }; var rawFeedSchema = new Schema(this.rawFeedModel); this.rawFeed = mongoose.model('rawFeed', rawFeedSchema);
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var config = require('../../config.js'); this.rawFeedModel = { timestamp: {type: Date, default: Date.now}, text: String, feedSource: {type: String, enum: ['Twitter', 'Email']} }; var rawFeedSchema = new Schema(this.rawFeedModel); this.rawFeed = mongoose.model('rawFeed', rawFeedSchema);
Add data source property to raw feed object
Add data source property to raw feed object
JavaScript
mit
NextCenturyCorporation/EVEREST
javascript
## Code Before: var mongoose = require('mongoose'); var Schema = mongoose.Schema; var config = require('../../config.js'); this.rawFeedModel = { timestamp: {type: Date, default: Date.now}, text: String }; var rawFeedSchema = new Schema(this.rawFeedModel); this.rawFeed = mongoose.model('rawFeed', rawFeedSchema); ## Instruction: Add data source property to raw feed object ## Code After: var mongoose = require('mongoose'); var Schema = mongoose.Schema; var config = require('../../config.js'); this.rawFeedModel = { timestamp: {type: Date, default: Date.now}, text: String, feedSource: {type: String, enum: ['Twitter', 'Email']} }; var rawFeedSchema = new Schema(this.rawFeedModel); this.rawFeed = mongoose.model('rawFeed', rawFeedSchema);
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var config = require('../../config.js'); this.rawFeedModel = { timestamp: {type: Date, default: Date.now}, - text: String + text: String, ? + + feedSource: {type: String, enum: ['Twitter', 'Email']} }; var rawFeedSchema = new Schema(this.rawFeedModel); this.rawFeed = mongoose.model('rawFeed', rawFeedSchema);
3
0.272727
2
1
55297069a68830699d8cde5619117f314a0cf913
lib/prefetcher/http_fetcher.rb
lib/prefetcher/http_fetcher.rb
module Prefetcher class HttpFetcher attr_reader :url, :memoizer def initialize(params = {}) @url = params.fetch(:url) @memoizer = params.fetch(:memoizer, HttpMemoizer.new) end # Makes request to given URL in async way def fetch_async HttpRequester.new(url, memoizer).future(:fetch) end def fetch fetch_async.value end def get_from_memory @redis_connection.get(cache_key) end # Returns cached version if availible. If not cached - makes request using #fetch . def get (get_from_memory || fetch).html_safe.force_encoding('utf-8') end protected def get_from_memory memoizer.get(url) end def memoize(response) memoizer.set(url, response) end end end
module Prefetcher class HttpFetcher attr_reader :url, :memoizer def initialize(params = {}) @url = params.fetch(:url) @memoizer = params.fetch(:memoizer, HttpMemoizer.new) end # Makes request to given URL in async way def fetch_async HttpRequester.new(url, memoizer).future(:fetch) end def fetch fetch_async.value end # Returns cached version if availible. If not cached - makes request using #fetch . def get (get_from_memory || fetch).html_safe.force_encoding('utf-8') end protected def get_from_memory memoizer.get(url) end def memoize(response) memoizer.set(url, response) end end end
Remove obsolete code - merging issue.
Remove obsolete code - merging issue.
Ruby
mit
brain-geek/prefetcher
ruby
## Code Before: module Prefetcher class HttpFetcher attr_reader :url, :memoizer def initialize(params = {}) @url = params.fetch(:url) @memoizer = params.fetch(:memoizer, HttpMemoizer.new) end # Makes request to given URL in async way def fetch_async HttpRequester.new(url, memoizer).future(:fetch) end def fetch fetch_async.value end def get_from_memory @redis_connection.get(cache_key) end # Returns cached version if availible. If not cached - makes request using #fetch . def get (get_from_memory || fetch).html_safe.force_encoding('utf-8') end protected def get_from_memory memoizer.get(url) end def memoize(response) memoizer.set(url, response) end end end ## Instruction: Remove obsolete code - merging issue. ## Code After: module Prefetcher class HttpFetcher attr_reader :url, :memoizer def initialize(params = {}) @url = params.fetch(:url) @memoizer = params.fetch(:memoizer, HttpMemoizer.new) end # Makes request to given URL in async way def fetch_async HttpRequester.new(url, memoizer).future(:fetch) end def fetch fetch_async.value end # Returns cached version if availible. If not cached - makes request using #fetch . def get (get_from_memory || fetch).html_safe.force_encoding('utf-8') end protected def get_from_memory memoizer.get(url) end def memoize(response) memoizer.set(url, response) end end end
module Prefetcher class HttpFetcher attr_reader :url, :memoizer def initialize(params = {}) @url = params.fetch(:url) @memoizer = params.fetch(:memoizer, HttpMemoizer.new) end # Makes request to given URL in async way def fetch_async HttpRequester.new(url, memoizer).future(:fetch) end def fetch fetch_async.value end - def get_from_memory - @redis_connection.get(cache_key) - end - # Returns cached version if availible. If not cached - makes request using #fetch . def get (get_from_memory || fetch).html_safe.force_encoding('utf-8') end protected def get_from_memory memoizer.get(url) end def memoize(response) memoizer.set(url, response) end end end
4
0.108108
0
4
c83019e206766317bce206e9d024dc4f707e5cc1
web_modules/Footer/index.js
web_modules/Footer/index.js
import React, { Component } from "react" import styles from "./index.css" import logo from "./evilmartians.svg" export default class Footer extends Component { render() { return ( <footer className={ styles.root } role="contentinfo"> <div className={ styles.inner }> <div className={ styles.info }> <p className={ styles.license }> { "Distributed under the MIT License." } </p> <p className={ styles.issue }>{ "Found an issue?" } <a className={ styles.report } href="https://github.com/postcss/postcss.org/issues" > { "Report it!" } </a> </p> </div> <div className={ styles.logo }> <img alt="Evil Martians Logo" className={ styles.logoInner } src={ logo } /> </div> </div> </footer> ) } }
import React, { Component } from "react" import styles from "./index.css" import logo from "./evilmartians.svg" export default class Footer extends Component { render() { return ( <footer className={ styles.root } role="contentinfo"> <div className={ styles.inner }> <div className={ styles.info }> <p className={ styles.license }> { "Distributed under the MIT License." } </p> <p className={ styles.issue }>{ "Found an issue?" } <a className={ styles.report } href="https://github.com/postcss/postcss.org/issues" > { "Report it!" } </a> </p> </div> <div className={ styles.logo }> <a className={ styles.logoLink } href="https://evilmartians.com/" > <img alt="Evil Martians" className={ styles.logoInner } src={ logo } /> </a> </div> </div> </footer> ) } }
Add Evil Martians link to footer
Add Evil Martians link to footer
JavaScript
mit
postcss/postcss.org,postcss/postcss.org
javascript
## Code Before: import React, { Component } from "react" import styles from "./index.css" import logo from "./evilmartians.svg" export default class Footer extends Component { render() { return ( <footer className={ styles.root } role="contentinfo"> <div className={ styles.inner }> <div className={ styles.info }> <p className={ styles.license }> { "Distributed under the MIT License." } </p> <p className={ styles.issue }>{ "Found an issue?" } <a className={ styles.report } href="https://github.com/postcss/postcss.org/issues" > { "Report it!" } </a> </p> </div> <div className={ styles.logo }> <img alt="Evil Martians Logo" className={ styles.logoInner } src={ logo } /> </div> </div> </footer> ) } } ## Instruction: Add Evil Martians link to footer ## Code After: import React, { Component } from "react" import styles from "./index.css" import logo from "./evilmartians.svg" export default class Footer extends Component { render() { return ( <footer className={ styles.root } role="contentinfo"> <div className={ styles.inner }> <div className={ styles.info }> <p className={ styles.license }> { "Distributed under the MIT License." } </p> <p className={ styles.issue }>{ "Found an issue?" } <a className={ styles.report } href="https://github.com/postcss/postcss.org/issues" > { "Report it!" } </a> </p> </div> <div className={ styles.logo }> <a className={ styles.logoLink } href="https://evilmartians.com/" > <img alt="Evil Martians" className={ styles.logoInner } src={ logo } /> </a> </div> </div> </footer> ) } }
import React, { Component } from "react" import styles from "./index.css" import logo from "./evilmartians.svg" export default class Footer extends Component { render() { return ( <footer className={ styles.root } role="contentinfo"> <div className={ styles.inner }> <div className={ styles.info }> <p className={ styles.license }> { "Distributed under the MIT License." } </p> <p className={ styles.issue }>{ "Found an issue?" } <a className={ styles.report } href="https://github.com/postcss/postcss.org/issues" > { "Report it!" } </a> </p> </div> <div className={ styles.logo }> + <a + className={ styles.logoLink } + href="https://evilmartians.com/" + > - <img + <img ? ++ - alt="Evil Martians Logo" ? ----- + alt="Evil Martians" ? ++ - className={ styles.logoInner } + className={ styles.logoInner } ? ++ - src={ logo } + src={ logo } ? ++ - /> + /> ? ++ + </a> </div> </div> </footer> ) } }
15
0.416667
10
5