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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3978dbb4cff0db3bcba876840fde94f097c806c5 | S12-class/is_also_instead.t | S12-class/is_also_instead.t | use v6;
use Test;
plan 4;
# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">
{
class Foo {
method a {'called Foo.a'}
}
class Foo is also {
method b {'called Foo.b'}
}
my $o = Foo.new;
is($o.a, 'called Foo.a', 'basic method call works');
is($o.b, 'called Foo.b', 'added method call works');
}
#?rakudo skip 'is instead not yet implemented'
#?DOES 2
{
class Bar {
method c {'called Bar.c'}
}
class Bar is instead {
method d {'called Bar.d'}
}
my $o = Bar.new;
eval_dies_ok('$o.c', 'overridden method is gone completely');
is($o.d, 'called Bar.d', 'new method is present instead');
}
| use v6;
use Test;
plan 5;
# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">
{
class Foo {
method a {'called Foo.a'}
}
class Foo is also {
method b {'called Foo.b'}
}
my $o = Foo.new;
is($o.a, 'called Foo.a', 'basic method call works');
is($o.b, 'called Foo.b', 'added method call works');
ok(!eval('class NonExistent is also { }'), 'is also on non-existent class dies');
}
#?rakudo skip 'is instead not yet implemented'
#?DOES 2
{
class Bar {
method c {'called Bar.c'}
}
class Bar is instead {
method d {'called Bar.d'}
}
my $o = Bar.new;
eval_dies_ok('$o.c', 'overridden method is gone completely');
is($o.d, 'called Bar.d', 'new method is present instead');
}
| Test for making sure 'is also' on a non-existent class fails. | [t/spec] Test for making sure 'is also' on a non-existent class fails.
git-svn-id: 53605643c415f7495558be95614cf14171f1db78@25298 c213334d-75ef-0310-aa23-eaa082d1ae64
| Perl | artistic-2.0 | dogbert17/roast,zostay/roast,dankogai/roast,niner/roast,niner/roast,b2gills/roast,laben/roast,dogbert17/roast,skids/roast,bitrauser/roast,dankogai/roast,b2gills/roast,b2gills/roast,laben/roast,dankogai/roast,laben/roast,bitrauser/roast,zostay/roast,skids/roast,cygx/roast,cygx/roast,perl6/roast,skids/roast,niner/roast,zostay/roast,cygx/roast | perl | ## Code Before:
use v6;
use Test;
plan 4;
# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">
{
class Foo {
method a {'called Foo.a'}
}
class Foo is also {
method b {'called Foo.b'}
}
my $o = Foo.new;
is($o.a, 'called Foo.a', 'basic method call works');
is($o.b, 'called Foo.b', 'added method call works');
}
#?rakudo skip 'is instead not yet implemented'
#?DOES 2
{
class Bar {
method c {'called Bar.c'}
}
class Bar is instead {
method d {'called Bar.d'}
}
my $o = Bar.new;
eval_dies_ok('$o.c', 'overridden method is gone completely');
is($o.d, 'called Bar.d', 'new method is present instead');
}
## Instruction:
[t/spec] Test for making sure 'is also' on a non-existent class fails.
git-svn-id: 53605643c415f7495558be95614cf14171f1db78@25298 c213334d-75ef-0310-aa23-eaa082d1ae64
## Code After:
use v6;
use Test;
plan 5;
# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">
{
class Foo {
method a {'called Foo.a'}
}
class Foo is also {
method b {'called Foo.b'}
}
my $o = Foo.new;
is($o.a, 'called Foo.a', 'basic method call works');
is($o.b, 'called Foo.b', 'added method call works');
ok(!eval('class NonExistent is also { }'), 'is also on non-existent class dies');
}
#?rakudo skip 'is instead not yet implemented'
#?DOES 2
{
class Bar {
method c {'called Bar.c'}
}
class Bar is instead {
method d {'called Bar.d'}
}
my $o = Bar.new;
eval_dies_ok('$o.c', 'overridden method is gone completely');
is($o.d, 'called Bar.d', 'new method is present instead');
}
| use v6;
use Test;
- plan 4;
? ^
+ plan 5;
? ^
# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">
{
class Foo {
method a {'called Foo.a'}
}
class Foo is also {
method b {'called Foo.b'}
}
my $o = Foo.new;
is($o.a, 'called Foo.a', 'basic method call works');
is($o.b, 'called Foo.b', 'added method call works');
+
+ ok(!eval('class NonExistent is also { }'), 'is also on non-existent class dies');
}
#?rakudo skip 'is instead not yet implemented'
#?DOES 2
{
class Bar {
method c {'called Bar.c'}
}
class Bar is instead {
method d {'called Bar.d'}
}
my $o = Bar.new;
eval_dies_ok('$o.c', 'overridden method is gone completely');
is($o.d, 'called Bar.d', 'new method is present instead');
} | 4 | 0.114286 | 3 | 1 |
00fd30758a647cbea01e7e684f807635c080e49e | Casks/torpedo.rb | Casks/torpedo.rb | class Torpedo < Cask
url 'http://usetorpedo.com/downloads/mac/Torpedo-1.2.2.app.zip'
homepage 'https://usetorpedo.com'
version '1.2.2'
sha256 '72f0a027ea525755e07e43d90464aa00f1c45167b30d333272017f64e0496dcf'
link 'Torpedo.app'
end
| class Torpedo < Cask
url 'http://usetorpedo.com/app/mac/download'
homepage 'https://usetorpedo.com'
version 'latest'
no_checksum
link 'Torpedo.app'
end
| Change to latest version of Torpedo. | Change to latest version of Torpedo.
Update to HTTP instead of HTTPS.
| Ruby | bsd-2-clause | yutarody/homebrew-cask,artdevjs/homebrew-cask,caskroom/homebrew-cask,Nitecon/homebrew-cask,pinut/homebrew-cask,mokagio/homebrew-cask,bdhess/homebrew-cask,sjackman/homebrew-cask,yutarody/homebrew-cask,RogerThiede/homebrew-cask,askl56/homebrew-cask,howie/homebrew-cask,theoriginalgri/homebrew-cask,rajiv/homebrew-cask,neil-ca-moore/homebrew-cask,shanonvl/homebrew-cask,miguelfrde/homebrew-cask,miccal/homebrew-cask,tranc99/homebrew-cask,cblecker/homebrew-cask,greg5green/homebrew-cask,genewoo/homebrew-cask,MircoT/homebrew-cask,tangestani/homebrew-cask,kamilboratynski/homebrew-cask,dvdoliveira/homebrew-cask,vuquoctuan/homebrew-cask,Ngrd/homebrew-cask,otzy007/homebrew-cask,decrement/homebrew-cask,ahbeng/homebrew-cask,mwilmer/homebrew-cask,wuman/homebrew-cask,winkelsdorf/homebrew-cask,jmeridth/homebrew-cask,bcomnes/homebrew-cask,xalep/homebrew-cask,tarwich/homebrew-cask,mattrobenolt/homebrew-cask,markthetech/homebrew-cask,kei-yamazaki/homebrew-cask,onlynone/homebrew-cask,kryhear/homebrew-cask,JosephViolago/homebrew-cask,exherb/homebrew-cask,koenrh/homebrew-cask,andrewdisley/homebrew-cask,rednoah/homebrew-cask,thii/homebrew-cask,spruceb/homebrew-cask,MisumiRize/homebrew-cask,RJHsiao/homebrew-cask,jeroenj/homebrew-cask,gyndav/homebrew-cask,royalwang/homebrew-cask,jaredsampson/homebrew-cask,maxnordlund/homebrew-cask,mauricerkelly/homebrew-cask,lolgear/homebrew-cask,dieterdemeyer/homebrew-cask,johan/homebrew-cask,lantrix/homebrew-cask,FredLackeyOfficial/homebrew-cask,bosr/homebrew-cask,chadcatlett/caskroom-homebrew-cask,sscotth/homebrew-cask,englishm/homebrew-cask,fanquake/homebrew-cask,sgnh/homebrew-cask,bric3/homebrew-cask,segiddins/homebrew-cask,AndreTheHunter/homebrew-cask,dictcp/homebrew-cask,lcasey001/homebrew-cask,nshemonsky/homebrew-cask,cobyism/homebrew-cask,bcaceiro/homebrew-cask,mhubig/homebrew-cask,renaudguerin/homebrew-cask,tmoreira2020/homebrew,coeligena/homebrew-customized,elyscape/homebrew-cask,samshadwell/homebrew-cask,lvicentesanchez/homebrew-cask,asins/homebrew-cask,akiomik/homebrew-cask,antogg/homebrew-cask,klane/homebrew-cask,adriweb/homebrew-cask,valepert/homebrew-cask,puffdad/homebrew-cask,djakarta-trap/homebrew-myCask,victorpopkov/homebrew-cask,howie/homebrew-cask,seanzxx/homebrew-cask,devmynd/homebrew-cask,shonjir/homebrew-cask,RickWong/homebrew-cask,Gasol/homebrew-cask,vigosan/homebrew-cask,lieuwex/homebrew-cask,shonjir/homebrew-cask,mazehall/homebrew-cask,Fedalto/homebrew-cask,malob/homebrew-cask,perfide/homebrew-cask,Cottser/homebrew-cask,tedbundyjr/homebrew-cask,deanmorin/homebrew-cask,wickles/homebrew-cask,astorije/homebrew-cask,mathbunnyru/homebrew-cask,jedahan/homebrew-cask,ksylvan/homebrew-cask,malob/homebrew-cask,nicolas-brousse/homebrew-cask,wolflee/homebrew-cask,adelinofaria/homebrew-cask,BenjaminHCCarr/homebrew-cask,uetchy/homebrew-cask,mahori/homebrew-cask,gyndav/homebrew-cask,feigaochn/homebrew-cask,mishari/homebrew-cask,sachin21/homebrew-cask,danielgomezrico/homebrew-cask,astorije/homebrew-cask,slnovak/homebrew-cask,joschi/homebrew-cask,joshka/homebrew-cask,kkdd/homebrew-cask,andrewdisley/homebrew-cask,christer155/homebrew-cask,singingwolfboy/homebrew-cask,spruceb/homebrew-cask,lucasmezencio/homebrew-cask,xight/homebrew-cask,lukasbestle/homebrew-cask,hanxue/caskroom,gmkey/homebrew-cask,AnastasiaSulyagina/homebrew-cask,cprecioso/homebrew-cask,samdoran/homebrew-cask,csmith-palantir/homebrew-cask,bric3/homebrew-cask,wmorin/homebrew-cask,sosedoff/homebrew-cask,jangalinski/homebrew-cask,daften/homebrew-cask,colindunn/homebrew-cask,sparrc/homebrew-cask,tsparber/homebrew-cask,guerrero/homebrew-cask,pkq/homebrew-cask,coeligena/homebrew-customized,gwaldo/homebrew-cask,goxberry/homebrew-cask,shorshe/homebrew-cask,tjt263/homebrew-cask,Labutin/homebrew-cask,prime8/homebrew-cask,m3nu/homebrew-cask,rubenerd/homebrew-cask,xtian/homebrew-cask,ky0615/homebrew-cask-1,katoquro/homebrew-cask,doits/homebrew-cask,kronicd/homebrew-cask,tjnycum/homebrew-cask,stevenmaguire/homebrew-cask,farmerchris/homebrew-cask,tangestani/homebrew-cask,mattrobenolt/homebrew-cask,valepert/homebrew-cask,nrlquaker/homebrew-cask,pkq/homebrew-cask,zhuzihhhh/homebrew-cask,mjdescy/homebrew-cask,huanzhang/homebrew-cask,AdamCmiel/homebrew-cask,ahvigil/homebrew-cask,dwihn0r/homebrew-cask,adrianchia/homebrew-cask,pgr0ss/homebrew-cask,shorshe/homebrew-cask,ch3n2k/homebrew-cask,yuhki50/homebrew-cask,otaran/homebrew-cask,inta/homebrew-cask,kei-yamazaki/homebrew-cask,muan/homebrew-cask,giannitm/homebrew-cask,prime8/homebrew-cask,gmkey/homebrew-cask,julienlavergne/homebrew-cask,rkJun/homebrew-cask,sachin21/homebrew-cask,ninjahoahong/homebrew-cask,skyyuan/homebrew-cask,jamesmlees/homebrew-cask,samnung/homebrew-cask,cfillion/homebrew-cask,sebcode/homebrew-cask,jeanregisser/homebrew-cask,13k/homebrew-cask,retbrown/homebrew-cask,mathbunnyru/homebrew-cask,catap/homebrew-cask,andyshinn/homebrew-cask,deiga/homebrew-cask,lukeadams/homebrew-cask,nysthee/homebrew-cask,jonathanwiesel/homebrew-cask,reelsense/homebrew-cask,forevergenin/homebrew-cask,kievechua/homebrew-cask,norio-nomura/homebrew-cask,adrianchia/homebrew-cask,xalep/homebrew-cask,kevyau/homebrew-cask,fkrone/homebrew-cask,neverfox/homebrew-cask,JikkuJose/homebrew-cask,atsuyim/homebrew-cask,scottsuch/homebrew-cask,samnung/homebrew-cask,joaocc/homebrew-cask,gilesdring/homebrew-cask,retrography/homebrew-cask,mkozjak/homebrew-cask,deizel/homebrew-cask,JosephViolago/homebrew-cask,bgandon/homebrew-cask,phpwutz/homebrew-cask,MerelyAPseudonym/homebrew-cask,taherio/homebrew-cask,perfide/homebrew-cask,flaviocamilo/homebrew-cask,jpodlech/homebrew-cask,nshemonsky/homebrew-cask,dezon/homebrew-cask,askl56/homebrew-cask,seanzxx/homebrew-cask,FredLackeyOfficial/homebrew-cask,nicholsn/homebrew-cask,danielbayley/homebrew-cask,Labutin/homebrew-cask,coneman/homebrew-cask,gabrielizaias/homebrew-cask,tyage/homebrew-cask,y00rb/homebrew-cask,LaurentFough/homebrew-cask,boecko/homebrew-cask,crzrcn/homebrew-cask,LaurentFough/homebrew-cask,paulbreslin/homebrew-cask,moonboots/homebrew-cask,scw/homebrew-cask,danielgomezrico/homebrew-cask,supriyantomaftuh/homebrew-cask,timsutton/homebrew-cask,wickles/homebrew-cask,Ephemera/homebrew-cask,MatzFan/homebrew-cask,aktau/homebrew-cask,bric3/homebrew-cask,csmith-palantir/homebrew-cask,williamboman/homebrew-cask,helloIAmPau/homebrew-cask,flaviocamilo/homebrew-cask,wizonesolutions/homebrew-cask,epardee/homebrew-cask,My2ndAngelic/homebrew-cask,athrunsun/homebrew-cask,deiga/homebrew-cask,jacobbednarz/homebrew-cask,lukasbestle/homebrew-cask,jpodlech/homebrew-cask,jeroenseegers/homebrew-cask,My2ndAngelic/homebrew-cask,zchee/homebrew-cask,koenrh/homebrew-cask,wKovacs64/homebrew-cask,adriweb/homebrew-cask,williamboman/homebrew-cask,bkono/homebrew-cask,shanonvl/homebrew-cask,Bombenleger/homebrew-cask,inta/homebrew-cask,ohammersmith/homebrew-cask,sirodoht/homebrew-cask,reitermarkus/homebrew-cask,gilesdring/homebrew-cask,danielbayley/homebrew-cask,ayohrling/homebrew-cask,morsdyce/homebrew-cask,genewoo/homebrew-cask,jhowtan/homebrew-cask,afh/homebrew-cask,MichaelPei/homebrew-cask,rkJun/homebrew-cask,gwaldo/homebrew-cask,amatos/homebrew-cask,scribblemaniac/homebrew-cask,dwihn0r/homebrew-cask,lantrix/homebrew-cask,codeurge/homebrew-cask,kostasdizas/homebrew-cask,esebastian/homebrew-cask,vitorgalvao/homebrew-cask,jawshooah/homebrew-cask,enriclluelles/homebrew-cask,mfpierre/homebrew-cask,blogabe/homebrew-cask,cobyism/homebrew-cask,zerrot/homebrew-cask,helloIAmPau/homebrew-cask,johnjelinek/homebrew-cask,tdsmith/homebrew-cask,a1russell/homebrew-cask,diogodamiani/homebrew-cask,kuno/homebrew-cask,ponychicken/homebrew-customcask,underyx/homebrew-cask,inz/homebrew-cask,lalyos/homebrew-cask,okket/homebrew-cask,elnappo/homebrew-cask,rickychilcott/homebrew-cask,drostron/homebrew-cask,BenjaminHCCarr/homebrew-cask,sjackman/homebrew-cask,michelegera/homebrew-cask,hswong3i/homebrew-cask,troyxmccall/homebrew-cask,faun/homebrew-cask,jalaziz/homebrew-cask,moimikey/homebrew-cask,albertico/homebrew-cask,djmonta/homebrew-cask,yurrriq/homebrew-cask,kirikiriyamama/homebrew-cask,jaredsampson/homebrew-cask,sanyer/homebrew-cask,gregkare/homebrew-cask,klane/homebrew-cask,kamilboratynski/homebrew-cask,jppelteret/homebrew-cask,j13k/homebrew-cask,rajiv/homebrew-cask,adelinofaria/homebrew-cask,kingthorin/homebrew-cask,sparrc/homebrew-cask,Hywan/homebrew-cask,hyuna917/homebrew-cask,tmoreira2020/homebrew,tsparber/homebrew-cask,unasuke/homebrew-cask,nicholsn/homebrew-cask,coeligena/homebrew-customized,pinut/homebrew-cask,diguage/homebrew-cask,nathansgreen/homebrew-cask,elyscape/homebrew-cask,3van/homebrew-cask,julienlavergne/homebrew-cask,ashishb/homebrew-cask,bcomnes/homebrew-cask,mrmachine/homebrew-cask,mariusbutuc/homebrew-cask,3van/homebrew-cask,ywfwj2008/homebrew-cask,neverfox/homebrew-cask,alexg0/homebrew-cask,Ibuprofen/homebrew-cask,ajbw/homebrew-cask,tan9/homebrew-cask,fanquake/homebrew-cask,ericbn/homebrew-cask,andersonba/homebrew-cask,xtian/homebrew-cask,devmynd/homebrew-cask,ebraminio/homebrew-cask,JikkuJose/homebrew-cask,JosephViolago/homebrew-cask,Fedalto/homebrew-cask,sanyer/homebrew-cask,zchee/homebrew-cask,nathanielvarona/homebrew-cask,theoriginalgri/homebrew-cask,BenjaminHCCarr/homebrew-cask,tedbundyjr/homebrew-cask,vin047/homebrew-cask,jellyfishcoder/homebrew-cask,sohtsuka/homebrew-cask,13k/homebrew-cask,christophermanning/homebrew-cask,nysthee/homebrew-cask,mwean/homebrew-cask,lumaxis/homebrew-cask,josa42/homebrew-cask,renaudguerin/homebrew-cask,nivanchikov/homebrew-cask,xyb/homebrew-cask,a1russell/homebrew-cask,arronmabrey/homebrew-cask,dustinblackman/homebrew-cask,ftiff/homebrew-cask,arronmabrey/homebrew-cask,kpearson/homebrew-cask,jonathanwiesel/homebrew-cask,Ephemera/homebrew-cask,markhuber/homebrew-cask,onlynone/homebrew-cask,jen20/homebrew-cask,nanoxd/homebrew-cask,Philosoft/homebrew-cask,vuquoctuan/homebrew-cask,robbiethegeek/homebrew-cask,dlackty/homebrew-cask,jeanregisser/homebrew-cask,shoichiaizawa/homebrew-cask,mahori/homebrew-cask,hanxue/caskroom,alexg0/homebrew-cask,ericbn/homebrew-cask,jangalinski/homebrew-cask,fly19890211/homebrew-cask,pablote/homebrew-cask,gurghet/homebrew-cask,dictcp/homebrew-cask,0rax/homebrew-cask,huanzhang/homebrew-cask,barravi/homebrew-cask,schneidmaster/homebrew-cask,SamiHiltunen/homebrew-cask,ftiff/homebrew-cask,Amorymeltzer/homebrew-cask,casidiablo/homebrew-cask,claui/homebrew-cask,epmatsw/homebrew-cask,Whoaa512/homebrew-cask,iamso/homebrew-cask,hellosky806/homebrew-cask,kesara/homebrew-cask,kolomiichenko/homebrew-cask,tedski/homebrew-cask,mikem/homebrew-cask,claui/homebrew-cask,zmwangx/homebrew-cask,kevyau/homebrew-cask,jedahan/homebrew-cask,jtriley/homebrew-cask,mAAdhaTTah/homebrew-cask,optikfluffel/homebrew-cask,mazehall/homebrew-cask,psibre/homebrew-cask,squid314/homebrew-cask,goxberry/homebrew-cask,haha1903/homebrew-cask,reelsense/homebrew-cask,colindunn/homebrew-cask,colindean/homebrew-cask,franklouwers/homebrew-cask,joaoponceleao/homebrew-cask,robertgzr/homebrew-cask,ksylvan/homebrew-cask,squid314/homebrew-cask,dcondrey/homebrew-cask,stonehippo/homebrew-cask,rhendric/homebrew-cask,scribblemaniac/homebrew-cask,mingzhi22/homebrew-cask,jasmas/homebrew-cask,sysbot/homebrew-cask,wmorin/homebrew-cask,lifepillar/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,riyad/homebrew-cask,Ibuprofen/homebrew-cask,d/homebrew-cask,zorosteven/homebrew-cask,rcuza/homebrew-cask,0rax/homebrew-cask,arranubels/homebrew-cask,joschi/homebrew-cask,m3nu/homebrew-cask,jacobdam/homebrew-cask,moogar0880/homebrew-cask,Cottser/homebrew-cask,moonboots/homebrew-cask,deizel/homebrew-cask,ajbw/homebrew-cask,cliffcotino/homebrew-cask,usami-k/homebrew-cask,mwean/homebrew-cask,miku/homebrew-cask,dieterdemeyer/homebrew-cask,a-x-/homebrew-cask,Hywan/homebrew-cask,reitermarkus/homebrew-cask,hellosky806/homebrew-cask,segiddins/homebrew-cask,leipert/homebrew-cask,santoshsahoo/homebrew-cask,malford/homebrew-cask,cblecker/homebrew-cask,scottsuch/homebrew-cask,Whoaa512/homebrew-cask,cblecker/homebrew-cask,winkelsdorf/homebrew-cask,royalwang/homebrew-cask,jgarber623/homebrew-cask,mwilmer/homebrew-cask,gurghet/homebrew-cask,FranklinChen/homebrew-cask,FinalDes/homebrew-cask,chuanxd/homebrew-cask,johnste/homebrew-cask,antogg/homebrew-cask,sirodoht/homebrew-cask,epmatsw/homebrew-cask,djmonta/homebrew-cask,rogeriopradoj/homebrew-cask,corbt/homebrew-cask,antogg/homebrew-cask,thii/homebrew-cask,zeusdeux/homebrew-cask,MircoT/homebrew-cask,dlovitch/homebrew-cask,Bombenleger/homebrew-cask,tonyseek/homebrew-cask,markhuber/homebrew-cask,cobyism/homebrew-cask,kesara/homebrew-cask,andyli/homebrew-cask,anbotero/homebrew-cask,paulbreslin/homebrew-cask,danielbayley/homebrew-cask,lieuwex/homebrew-cask,hakamadare/homebrew-cask,dlackty/homebrew-cask,qbmiller/homebrew-cask,optikfluffel/homebrew-cask,kteru/homebrew-cask,jbeagley52/homebrew-cask,stevenmaguire/homebrew-cask,bcaceiro/homebrew-cask,vmrob/homebrew-cask,psibre/homebrew-cask,elseym/homebrew-cask,fazo96/homebrew-cask,MicTech/homebrew-cask,inz/homebrew-cask,flada-auxv/homebrew-cask,decrement/homebrew-cask,jamesmlees/homebrew-cask,jacobdam/homebrew-cask,ebraminio/homebrew-cask,ddm/homebrew-cask,gerrypower/homebrew-cask,pacav69/homebrew-cask,L2G/homebrew-cask,ptb/homebrew-cask,gord1anknot/homebrew-cask,josa42/homebrew-cask,ahbeng/homebrew-cask,chino/homebrew-cask,skatsuta/homebrew-cask,alloy/homebrew-cask,retbrown/homebrew-cask,freeslugs/homebrew-cask,SamiHiltunen/homebrew-cask,KosherBacon/homebrew-cask,frapposelli/homebrew-cask,JoelLarson/homebrew-cask,Nitecon/homebrew-cask,mishari/homebrew-cask,gguillotte/homebrew-cask,delphinus35/homebrew-cask,carlmod/homebrew-cask,remko/homebrew-cask,barravi/homebrew-cask,toonetown/homebrew-cask,Amorymeltzer/homebrew-cask,jpmat296/homebrew-cask,jspahrsummers/homebrew-cask,jhowtan/homebrew-cask,dwkns/homebrew-cask,Keloran/homebrew-cask,joshka/homebrew-cask,diogodamiani/homebrew-cask,bosr/homebrew-cask,aki77/homebrew-cask,yutarody/homebrew-cask,lumaxis/homebrew-cask,aki77/homebrew-cask,kievechua/homebrew-cask,illusionfield/homebrew-cask,qnm/homebrew-cask,jppelteret/homebrew-cask,nivanchikov/homebrew-cask,miccal/homebrew-cask,fkrone/homebrew-cask,mattfelsen/homebrew-cask,nathanielvarona/homebrew-cask,axodys/homebrew-cask,puffdad/homebrew-cask,MerelyAPseudonym/homebrew-cask,ninjahoahong/homebrew-cask,haha1903/homebrew-cask,farmerchris/homebrew-cask,timsutton/homebrew-cask,mariusbutuc/homebrew-cask,mAAdhaTTah/homebrew-cask,mlocher/homebrew-cask,BahtiyarB/homebrew-cask,drostron/homebrew-cask,AndreTheHunter/homebrew-cask,gustavoavellar/homebrew-cask,jpmat296/homebrew-cask,crmne/homebrew-cask,vitorgalvao/homebrew-cask,anbotero/homebrew-cask,nathansgreen/homebrew-cask,yumitsu/homebrew-cask,MoOx/homebrew-cask,n0ts/homebrew-cask,tjnycum/homebrew-cask,mattfelsen/homebrew-cask,rogeriopradoj/homebrew-cask,mindriot101/homebrew-cask,usami-k/homebrew-cask,cedwardsmedia/homebrew-cask,paour/homebrew-cask,kiliankoe/homebrew-cask,blainesch/homebrew-cask,esebastian/homebrew-cask,michelegera/homebrew-cask,katoquro/homebrew-cask,johntrandall/homebrew-cask,Saklad5/homebrew-cask,gerrypower/homebrew-cask,n0ts/homebrew-cask,bkono/homebrew-cask,englishm/homebrew-cask,RJHsiao/homebrew-cask,thehunmonkgroup/homebrew-cask,gerrymiller/homebrew-cask,deiga/homebrew-cask,mfpierre/homebrew-cask,jalaziz/homebrew-cask,chino/homebrew-cask,sgnh/homebrew-cask,linc01n/homebrew-cask,ldong/homebrew-cask,norio-nomura/homebrew-cask,fharbe/homebrew-cask,kTitan/homebrew-cask,hyuna917/homebrew-cask,elnappo/homebrew-cask,exherb/homebrew-cask,tangestani/homebrew-cask,cprecioso/homebrew-cask,amatos/homebrew-cask,paulombcosta/homebrew-cask,flada-auxv/homebrew-cask,cohei/homebrew-cask,dcondrey/homebrew-cask,akiomik/homebrew-cask,jasmas/homebrew-cask,sscotth/homebrew-cask,stigkj/homebrew-caskroom-cask,shoichiaizawa/homebrew-cask,enriclluelles/homebrew-cask,FranklinChen/homebrew-cask,stonehippo/homebrew-cask,xight/homebrew-cask,jeroenseegers/homebrew-cask,optikfluffel/homebrew-cask,sanchezm/homebrew-cask,m3nu/homebrew-cask,lcasey001/homebrew-cask,jspahrsummers/homebrew-cask,tranc99/homebrew-cask,julionc/homebrew-cask,larseggert/homebrew-cask,sysbot/homebrew-cask,Dremora/homebrew-cask,caskroom/homebrew-cask,mattrobenolt/homebrew-cask,skyyuan/homebrew-cask,petmoo/homebrew-cask,malford/homebrew-cask,phpwutz/homebrew-cask,giannitm/homebrew-cask,sscotth/homebrew-cask,MatzFan/homebrew-cask,Saklad5/homebrew-cask,jayshao/homebrew-cask,johan/homebrew-cask,blogabe/homebrew-cask,blainesch/homebrew-cask,wuman/homebrew-cask,bchatard/homebrew-cask,lauantai/homebrew-cask,rhendric/homebrew-cask,supriyantomaftuh/homebrew-cask,johnjelinek/homebrew-cask,josa42/homebrew-cask,hakamadare/homebrew-cask,lifepillar/homebrew-cask,a-x-/homebrew-cask,mjgardner/homebrew-cask,nelsonjchen/homebrew-cask,yurikoles/homebrew-cask,mwek/homebrew-cask,mokagio/homebrew-cask,stonehippo/homebrew-cask,xyb/homebrew-cask,jalaziz/homebrew-cask,kronicd/homebrew-cask,kuno/homebrew-cask,asbachb/homebrew-cask,hvisage/homebrew-cask,kostasdizas/homebrew-cask,neverfox/homebrew-cask,vmrob/homebrew-cask,wickedsp1d3r/homebrew-cask,imgarylai/homebrew-cask,stephenwade/homebrew-cask,garborg/homebrew-cask,ahundt/homebrew-cask,jen20/homebrew-cask,shoichiaizawa/homebrew-cask,larseggert/homebrew-cask,slack4u/homebrew-cask,daften/homebrew-cask,nathancahill/homebrew-cask,aguynamedryan/homebrew-cask,petmoo/homebrew-cask,retrography/homebrew-cask,sohtsuka/homebrew-cask,imgarylai/homebrew-cask,kTitan/homebrew-cask,miccal/homebrew-cask,gibsjose/homebrew-cask,ahvigil/homebrew-cask,lvicentesanchez/homebrew-cask,riyad/homebrew-cask,schneidmaster/homebrew-cask,6uclz1/homebrew-cask,jacobbednarz/homebrew-cask,guylabs/homebrew-cask,nicolas-brousse/homebrew-cask,artdevjs/homebrew-cask,cclauss/homebrew-cask,renard/homebrew-cask,miku/homebrew-cask,zorosteven/homebrew-cask,ldong/homebrew-cask,kongslund/homebrew-cask,fly19890211/homebrew-cask,paulombcosta/homebrew-cask,crzrcn/homebrew-cask,Ngrd/homebrew-cask,alebcay/homebrew-cask,sosedoff/homebrew-cask,tjt263/homebrew-cask,frapposelli/homebrew-cask,xiongchiamiov/homebrew-cask,jconley/homebrew-cask,gibsjose/homebrew-cask,Amorymeltzer/homebrew-cask,dwkns/homebrew-cask,kingthorin/homebrew-cask,corbt/homebrew-cask,kesara/homebrew-cask,dspeckhard/homebrew-cask,sanchezm/homebrew-cask,colindean/homebrew-cask,tyage/homebrew-cask,ianyh/homebrew-cask,JacopKane/homebrew-cask,mkozjak/homebrew-cask,dunn/homebrew-cask,samdoran/homebrew-cask,gguillotte/homebrew-cask,mikem/homebrew-cask,uetchy/homebrew-cask,mchlrmrz/homebrew-cask,jawshooah/homebrew-cask,leonmachadowilcox/homebrew-cask,troyxmccall/homebrew-cask,scribblemaniac/homebrew-cask,jmeridth/homebrew-cask,mathbunnyru/homebrew-cask,kteru/homebrew-cask,xiongchiamiov/homebrew-cask,nickpellant/homebrew-cask,elseym/homebrew-cask,wastrachan/homebrew-cask,gustavoavellar/homebrew-cask,fazo96/homebrew-cask,moogar0880/homebrew-cask,ianyh/homebrew-cask,leonmachadowilcox/homebrew-cask,ctrevino/homebrew-cask,dspeckhard/homebrew-cask,morsdyce/homebrew-cask,reitermarkus/homebrew-cask,zerrot/homebrew-cask,fwiesel/homebrew-cask,imgarylai/homebrew-cask,sanyer/homebrew-cask,athrunsun/homebrew-cask,adrianchia/homebrew-cask,aguynamedryan/homebrew-cask,ohammersmith/homebrew-cask,tonyseek/homebrew-cask,SentinelWarren/homebrew-cask,aktau/homebrew-cask,boecko/homebrew-cask,casidiablo/homebrew-cask,ky0615/homebrew-cask-1,MichaelPei/homebrew-cask,greg5green/homebrew-cask,gabrielizaias/homebrew-cask,mhubig/homebrew-cask,mrmachine/homebrew-cask,wKovacs64/homebrew-cask,seanorama/homebrew-cask,ddm/homebrew-cask,dictcp/homebrew-cask,xakraz/homebrew-cask,ksato9700/homebrew-cask,ponychicken/homebrew-customcask,MisumiRize/homebrew-cask,yurrriq/homebrew-cask,wolflee/homebrew-cask,alexg0/homebrew-cask,chrisRidgers/homebrew-cask,singingwolfboy/homebrew-cask,syscrusher/homebrew-cask,rednoah/homebrew-cask,gyugyu/homebrew-cask,mgryszko/homebrew-cask,shonjir/homebrew-cask,chrisfinazzo/homebrew-cask,markthetech/homebrew-cask,chuanxd/homebrew-cask,tdsmith/homebrew-cask,joaocc/homebrew-cask,franklouwers/homebrew-cask,stephenwade/homebrew-cask,crmne/homebrew-cask,rogeriopradoj/homebrew-cask,d/homebrew-cask,toonetown/homebrew-cask,vin047/homebrew-cask,yurikoles/homebrew-cask,n8henrie/homebrew-cask,bsiddiqui/homebrew-cask,tolbkni/homebrew-cask,iamso/homebrew-cask,mchlrmrz/homebrew-cask,mjgardner/homebrew-cask,ingorichter/homebrew-cask,stevehedrick/homebrew-cask,ctrevino/homebrew-cask,stevehedrick/homebrew-cask,shishi/homebrew-cask,hristozov/homebrew-cask,faun/homebrew-cask,slack4u/homebrew-cask,dustinblackman/homebrew-cask,leipert/homebrew-cask,CameronGarrett/homebrew-cask,nathanielvarona/homebrew-cask,otzy007/homebrew-cask,nrlquaker/homebrew-cask,tarwich/homebrew-cask,zhuzihhhh/homebrew-cask,KosherBacon/homebrew-cask,renard/homebrew-cask,bendoerr/homebrew-cask,nightscape/homebrew-cask,mjgardner/homebrew-cask,catap/homebrew-cask,jrwesolo/homebrew-cask,arranubels/homebrew-cask,cedwardsmedia/homebrew-cask,ayohrling/homebrew-cask,andrewschleifer/homebrew-cask,hanxue/caskroom,sideci-sample/sideci-sample-homebrew-cask,neil-ca-moore/homebrew-cask,chrisfinazzo/homebrew-cask,stephenwade/homebrew-cask,lukeadams/homebrew-cask,Philosoft/homebrew-cask,BahtiyarB/homebrew-cask,wmorin/homebrew-cask,mindriot101/homebrew-cask,mwek/homebrew-cask,yuhki50/homebrew-cask,robertgzr/homebrew-cask,pkq/homebrew-cask,j13k/homebrew-cask,xyb/homebrew-cask,brianshumate/homebrew-cask,nanoxd/homebrew-cask,wizonesolutions/homebrew-cask,donbobka/homebrew-cask,moimikey/homebrew-cask,bdhess/homebrew-cask,johntrandall/homebrew-cask,cclauss/homebrew-cask,andyli/homebrew-cask,JacopKane/homebrew-cask,andersonba/homebrew-cask,guerrero/homebrew-cask,ywfwj2008/homebrew-cask,patresi/homebrew-cask,jiashuw/homebrew-cask,L2G/homebrew-cask,lucasmezencio/homebrew-cask,andyshinn/homebrew-cask,jellyfishcoder/homebrew-cask,nrlquaker/homebrew-cask,wickedsp1d3r/homebrew-cask,jayshao/homebrew-cask,tjnycum/homebrew-cask,afdnlw/homebrew-cask,Ketouem/homebrew-cask,dvdoliveira/homebrew-cask,chadcatlett/caskroom-homebrew-cask,sebcode/homebrew-cask,dunn/homebrew-cask,samshadwell/homebrew-cask,mauricerkelly/homebrew-cask,xight/homebrew-cask,MicTech/homebrew-cask,janlugt/homebrew-cask,wastrachan/homebrew-cask,esebastian/homebrew-cask,skatsuta/homebrew-cask,mgryszko/homebrew-cask,mchlrmrz/homebrew-cask,forevergenin/homebrew-cask,christer155/homebrew-cask,napaxton/homebrew-cask,christophermanning/homebrew-cask,Dremora/homebrew-cask,Gasol/homebrew-cask,cohei/homebrew-cask,thomanq/homebrew-cask,kkdd/homebrew-cask,gregkare/homebrew-cask,coneman/homebrew-cask,chrisfinazzo/homebrew-cask,tolbkni/homebrew-cask,cfillion/homebrew-cask,joaoponceleao/homebrew-cask,asins/homebrew-cask,claui/homebrew-cask,paour/homebrew-cask,gord1anknot/homebrew-cask,n8henrie/homebrew-cask,timsutton/homebrew-cask,doits/homebrew-cask,codeurge/homebrew-cask,axodys/homebrew-cask,atsuyim/homebrew-cask,githubutilities/homebrew-cask,bendoerr/homebrew-cask,stigkj/homebrew-caskroom-cask,brianshumate/homebrew-cask,af/homebrew-cask,carlmod/homebrew-cask,ahundt/homebrew-cask,pablote/homebrew-cask,mlocher/homebrew-cask,xcezx/homebrew-cask,buo/homebrew-cask,thehunmonkgroup/homebrew-cask,fharbe/homebrew-cask,freeslugs/homebrew-cask,maxnordlund/homebrew-cask,RickWong/homebrew-cask,yumitsu/homebrew-cask,rcuza/homebrew-cask,kassi/homebrew-cask,Ephemera/homebrew-cask,patresi/homebrew-cask,morganestes/homebrew-cask,underyx/homebrew-cask,scw/homebrew-cask,kingthorin/homebrew-cask,xcezx/homebrew-cask,af/homebrew-cask,slnovak/homebrew-cask,ericbn/homebrew-cask,epardee/homebrew-cask,0xadada/homebrew-cask,moimikey/homebrew-cask,thomanq/homebrew-cask,diguage/homebrew-cask,joshka/homebrew-cask,shishi/homebrew-cask,delphinus35/homebrew-cask,paour/homebrew-cask,wayou/homebrew-cask,blogabe/homebrew-cask,johndbritton/homebrew-cask,alloy/homebrew-cask,alebcay/homebrew-cask,guylabs/homebrew-cask,0xadada/homebrew-cask,cliffcotino/homebrew-cask,jbeagley52/homebrew-cask,bsiddiqui/homebrew-cask,pgr0ss/homebrew-cask,wesen/homebrew-cask,joschi/homebrew-cask,janlugt/homebrew-cask,lolgear/homebrew-cask,hackhandslabs/homebrew-cask,jconley/homebrew-cask,deanmorin/homebrew-cask,y00rb/homebrew-cask,julionc/homebrew-cask,opsdev-ws/homebrew-cask,winkelsdorf/homebrew-cask,AnastasiaSulyagina/homebrew-cask,buo/homebrew-cask,boydj/homebrew-cask,boydj/homebrew-cask,rubenerd/homebrew-cask,linc01n/homebrew-cask,dlovitch/homebrew-cask,jeroenj/homebrew-cask,donbobka/homebrew-cask,andrewdisley/homebrew-cask,unasuke/homebrew-cask,garborg/homebrew-cask,hackhandslabs/homebrew-cask,ashishb/homebrew-cask,alebcay/homebrew-cask,pacav69/homebrew-cask,feniix/homebrew-cask,opsdev-ws/homebrew-cask,jgarber623/homebrew-cask,wesen/homebrew-cask,singingwolfboy/homebrew-cask,nightscape/homebrew-cask,nathancahill/homebrew-cask,jtriley/homebrew-cask,ksato9700/homebrew-cask,afh/homebrew-cask,nickpellant/homebrew-cask,jgarber623/homebrew-cask,zeusdeux/homebrew-cask,ch3n2k/homebrew-cask,kpearson/homebrew-cask,AdamCmiel/homebrew-cask,tan9/homebrew-cask,seanorama/homebrew-cask,a1russell/homebrew-cask,afdnlw/homebrew-cask,qnm/homebrew-cask,MoOx/homebrew-cask,jiashuw/homebrew-cask,djakarta-trap/homebrew-myCask,gerrymiller/homebrew-cask,jrwesolo/homebrew-cask,JacopKane/homebrew-cask,vigosan/homebrew-cask,kryhear/homebrew-cask,lauantai/homebrew-cask,gyugyu/homebrew-cask,kolomiichenko/homebrew-cask,taherio/homebrew-cask,napaxton/homebrew-cask,JoelLarson/homebrew-cask,illusionfield/homebrew-cask,tedski/homebrew-cask,kirikiriyamama/homebrew-cask,miguelfrde/homebrew-cask,uetchy/homebrew-cask,mjdescy/homebrew-cask,robbiethegeek/homebrew-cask,kongslund/homebrew-cask,kassi/homebrew-cask,githubutilities/homebrew-cask,gyndav/homebrew-cask,okket/homebrew-cask,feniix/homebrew-cask,johndbritton/homebrew-cask,chrisRidgers/homebrew-cask,scottsuch/homebrew-cask,wayou/homebrew-cask,andrewschleifer/homebrew-cask,ingorichter/homebrew-cask,Keloran/homebrew-cask,hswong3i/homebrew-cask,bchatard/homebrew-cask,FinalDes/homebrew-cask,nelsonjchen/homebrew-cask,hristozov/homebrew-cask,dezon/homebrew-cask,ptb/homebrew-cask,malob/homebrew-cask,johnste/homebrew-cask,bgandon/homebrew-cask,hovancik/homebrew-cask,iAmGhost/homebrew-cask,albertico/homebrew-cask,xakraz/homebrew-cask,qbmiller/homebrew-cask,rajiv/homebrew-cask,victorpopkov/homebrew-cask,6uclz1/homebrew-cask,mahori/homebrew-cask,Ketouem/homebrew-cask,mingzhi22/homebrew-cask,RogerThiede/homebrew-cask,syscrusher/homebrew-cask,rickychilcott/homebrew-cask,asbachb/homebrew-cask,SentinelWarren/homebrew-cask,otaran/homebrew-cask,CameronGarrett/homebrew-cask,zmwangx/homebrew-cask,fwiesel/homebrew-cask,feigaochn/homebrew-cask,hvisage/homebrew-cask,morganestes/homebrew-cask,santoshsahoo/homebrew-cask,lalyos/homebrew-cask,yurikoles/homebrew-cask,hovancik/homebrew-cask,kiliankoe/homebrew-cask,muan/homebrew-cask,remko/homebrew-cask,julionc/homebrew-cask,iAmGhost/homebrew-cask | ruby | ## Code Before:
class Torpedo < Cask
url 'http://usetorpedo.com/downloads/mac/Torpedo-1.2.2.app.zip'
homepage 'https://usetorpedo.com'
version '1.2.2'
sha256 '72f0a027ea525755e07e43d90464aa00f1c45167b30d333272017f64e0496dcf'
link 'Torpedo.app'
end
## Instruction:
Change to latest version of Torpedo.
Update to HTTP instead of HTTPS.
## Code After:
class Torpedo < Cask
url 'http://usetorpedo.com/app/mac/download'
homepage 'https://usetorpedo.com'
version 'latest'
no_checksum
link 'Torpedo.app'
end
| class Torpedo < Cask
- url 'http://usetorpedo.com/downloads/mac/Torpedo-1.2.2.app.zip'
+ url 'http://usetorpedo.com/app/mac/download'
homepage 'https://usetorpedo.com'
- version '1.2.2'
- sha256 '72f0a027ea525755e07e43d90464aa00f1c45167b30d333272017f64e0496dcf'
+ version 'latest'
+ no_checksum
link 'Torpedo.app'
end | 6 | 0.857143 | 3 | 3 |
9eef4bb8a6e8726d3a14ba341aea8a67b2cf4430 | test/haystack/search_test.clj | test/haystack/search_test.clj | (ns haystack.search-test
(:require [haystack.search :as sut :refer [search]]
;; [clojure.test :as t :refer :all]
[haystack.helpers :refer :all]
))
(test-search
matnrs-check
{:search "2843977 2542450"}
(max-docs 50)
(in-top 2843977 2)
(in-top 2542450 2)
)
(test-search
upcs-check
{:search "078477045442 980100350109"}
(max-docs 500)
(in-top 199152 2)
(in-top 2542450 2)
)
| (ns haystack.search-test
(:require [haystack.search :as sut :refer [search]]
;; [clojure.test :as t :refer :all]
[haystack.helpers :refer :all]
))
(test-search
matnrs-check
{:search "2843977 2542450"}
(max-docs 50)
(in-top 2843977 2)
(in-top 2542450 2)
)
(test-search
upcs-check
{:search "078477045442 980100350109"}
(max-docs 500)
(in-top 199152 2)
(in-top 2542450 2)
)
(test-search
copper-clip-check
{:search "copper clip" :num-per-page 100}
(max-docs 100)
(in-top 20127 100) ;; "copper" and "clip" not in the same field
(in-top 3336524 100) ;; "clip" is in the part number
)
| Add copper clip search test. | Add copper clip search test.
| Clojure | epl-1.0 | brianmd/haystack | clojure | ## Code Before:
(ns haystack.search-test
(:require [haystack.search :as sut :refer [search]]
;; [clojure.test :as t :refer :all]
[haystack.helpers :refer :all]
))
(test-search
matnrs-check
{:search "2843977 2542450"}
(max-docs 50)
(in-top 2843977 2)
(in-top 2542450 2)
)
(test-search
upcs-check
{:search "078477045442 980100350109"}
(max-docs 500)
(in-top 199152 2)
(in-top 2542450 2)
)
## Instruction:
Add copper clip search test.
## Code After:
(ns haystack.search-test
(:require [haystack.search :as sut :refer [search]]
;; [clojure.test :as t :refer :all]
[haystack.helpers :refer :all]
))
(test-search
matnrs-check
{:search "2843977 2542450"}
(max-docs 50)
(in-top 2843977 2)
(in-top 2542450 2)
)
(test-search
upcs-check
{:search "078477045442 980100350109"}
(max-docs 500)
(in-top 199152 2)
(in-top 2542450 2)
)
(test-search
copper-clip-check
{:search "copper clip" :num-per-page 100}
(max-docs 100)
(in-top 20127 100) ;; "copper" and "clip" not in the same field
(in-top 3336524 100) ;; "clip" is in the part number
)
| (ns haystack.search-test
(:require [haystack.search :as sut :refer [search]]
;; [clojure.test :as t :refer :all]
[haystack.helpers :refer :all]
))
(test-search
matnrs-check
{:search "2843977 2542450"}
(max-docs 50)
(in-top 2843977 2)
(in-top 2542450 2)
)
(test-search
upcs-check
{:search "078477045442 980100350109"}
(max-docs 500)
(in-top 199152 2)
(in-top 2542450 2)
)
+ (test-search
+ copper-clip-check
+ {:search "copper clip" :num-per-page 100}
+ (max-docs 100)
+ (in-top 20127 100) ;; "copper" and "clip" not in the same field
+ (in-top 3336524 100) ;; "clip" is in the part number
+ )
+ | 8 | 0.347826 | 8 | 0 |
442e40a2625b400906cb9275aa5cd98fad43390c | README.md | README.md |
Some things break on Java 9.
In this repository I collect [short, self contained, correct (or not) examples](http://www.sscce.org/) demonstrating what breaks and (hopefully) how to fix it.
Each topic or problem gets its own subdirectory to make sure they don't interfere with one another.
* [type inference](type-inference)
Contributions are very welcome!
|
Some things break on Java 9.
In this repository I collect [short, self contained, correct (or not) examples](http://www.sscce.org/) demonstrating what fails and (hopefully) how to fix it.
Note that there is no judgment involved!
This is not about whether the things _should_ break or not and whether that's good or bad - it's just about what _does_ break.
Each topic or problem gets its own subdirectory to make sure they don't interfere with one another.
* [type inference](type-inference)
Contributions are very welcome!
| Clarify that there is no judgement | Clarify that there is no judgement
| Markdown | apache-2.0 | CodeFX-org/java-9-wtf,CodeFX-org/java-9-wtf,CodeFX-org/java-9-wtf | markdown | ## Code Before:
Some things break on Java 9.
In this repository I collect [short, self contained, correct (or not) examples](http://www.sscce.org/) demonstrating what breaks and (hopefully) how to fix it.
Each topic or problem gets its own subdirectory to make sure they don't interfere with one another.
* [type inference](type-inference)
Contributions are very welcome!
## Instruction:
Clarify that there is no judgement
## Code After:
Some things break on Java 9.
In this repository I collect [short, self contained, correct (or not) examples](http://www.sscce.org/) demonstrating what fails and (hopefully) how to fix it.
Note that there is no judgment involved!
This is not about whether the things _should_ break or not and whether that's good or bad - it's just about what _does_ break.
Each topic or problem gets its own subdirectory to make sure they don't interfere with one another.
* [type inference](type-inference)
Contributions are very welcome!
|
Some things break on Java 9.
- In this repository I collect [short, self contained, correct (or not) examples](http://www.sscce.org/) demonstrating what breaks and (hopefully) how to fix it.
? ^^^ ^
+ In this repository I collect [short, self contained, correct (or not) examples](http://www.sscce.org/) demonstrating what fails and (hopefully) how to fix it.
? ^ ^^
+ Note that there is no judgment involved!
+ This is not about whether the things _should_ break or not and whether that's good or bad - it's just about what _does_ break.
+
Each topic or problem gets its own subdirectory to make sure they don't interfere with one another.
* [type inference](type-inference)
Contributions are very welcome! | 5 | 0.625 | 4 | 1 |
f0456bd97c71e1a9b25ddaf4881fd7053f2e6b9b | src/styles/components/_board.sass | src/styles/components/_board.sass | /**
*
*/
.view-board
.content
@include display(flex)
@include flex-direction(column)
.scrollable
@include flex(1)
/**
*
*/
.board
background-size: cover
background-color: $gallery
.board-helper
color: $silver-chalice
font-size: 20px
@include position(fixed, 180px null null 256px)
| /**
*
*/
.view-board
.content
@include display(flex)
@include flex-direction(column)
// Fix issues with Firefox not respecting ANYTHING
overflow: hidden
.scrollable
@include flex(1)
/**
*
*/
.board
background-size: cover
background-color: $gallery
.board-helper
color: $silver-chalice
font-size: 20px
@include position(fixed, 180px null null 256px)
| Fix overflow issues on Firefox. | Fix overflow issues on Firefox.
| Sass | mit | tanelih/teamboard-client-react,melonmanchan/teamboard-client-react,nikolauska/teamboard-client-react,N4SJAMK/teamboard-client-react,JanKuukkanen/Oauth-client-react,santtusulander/teamboard-client-react,JanKuukkanen/teamboard-client-react,melonmanchan/teamboard-client-react,AatuPitkanen/teamboard-client-react,AatuPitkanen/teamboard-client-react,tanelih/teamboard-client-react,JanKuukkanen/Oauth-client-react,nikolauska/teamboard-client-react,N4SJAMK/teamboard-client-react,JanKuukkanen/teamboard-client-react,santtusulander/teamboard-client-react | sass | ## Code Before:
/**
*
*/
.view-board
.content
@include display(flex)
@include flex-direction(column)
.scrollable
@include flex(1)
/**
*
*/
.board
background-size: cover
background-color: $gallery
.board-helper
color: $silver-chalice
font-size: 20px
@include position(fixed, 180px null null 256px)
## Instruction:
Fix overflow issues on Firefox.
## Code After:
/**
*
*/
.view-board
.content
@include display(flex)
@include flex-direction(column)
// Fix issues with Firefox not respecting ANYTHING
overflow: hidden
.scrollable
@include flex(1)
/**
*
*/
.board
background-size: cover
background-color: $gallery
.board-helper
color: $silver-chalice
font-size: 20px
@include position(fixed, 180px null null 256px)
| /**
*
*/
.view-board
.content
@include display(flex)
@include flex-direction(column)
+
+ // Fix issues with Firefox not respecting ANYTHING
+ overflow: hidden
.scrollable
@include flex(1)
/**
*
*/
.board
background-size: cover
background-color: $gallery
.board-helper
color: $silver-chalice
font-size: 20px
@include position(fixed, 180px null null 256px) | 3 | 0.136364 | 3 | 0 |
25e378730ddd7a5e780e52ba4ad102aff76f3746 | app/views/runs/urn.html.erb | app/views/runs/urn.html.erb | {
"title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
"attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
"start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
"splits": [
<% @run.splits.each_with_index do |split, index| %>
{
"title": "<%= split.name %>",
"time": "<%= split.skipped ? "0.000000" : Time.at(split.finish_time).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_time": "<%= Time.at(split.finish_time || 0).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_segment": "<%= Time.at(split.best || split.duration).utc.strftime("%H:%M:%S.%6N").strip %>"
}<%= ',' unless @run.splits.size - 1 == index %>
<% end %>
]
}
| {
"title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
"attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
"start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
"splits": [
<% @run.segments.each_with_index do |segment, index| %>
{
"title": "<%= segment.name %>",
"time": "<%= segment.skipped ? "0.000000" : Time.at((segment.end_milliseconds || 0) / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_time": "<%= Time.at((segment.end_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_segment": "<%= Time.at((segment.shortest_duration_milliseconds || segment.duration_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>"
}<%= ',' unless @run.segments.size - 1 == index %>
<% end %>
]
}
| Fix some Urn nil issues | Fix some Urn nil issues
| HTML+ERB | agpl-3.0 | glacials/splits-io,glacials/splits-io,BatedUrGonnaDie/splits-io,glacials/splits-io,glacials/splits-io,BatedUrGonnaDie/splits-io,BatedUrGonnaDie/splits-io,BatedUrGonnaDie/splits-io | html+erb | ## Code Before:
{
"title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
"attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
"start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
"splits": [
<% @run.splits.each_with_index do |split, index| %>
{
"title": "<%= split.name %>",
"time": "<%= split.skipped ? "0.000000" : Time.at(split.finish_time).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_time": "<%= Time.at(split.finish_time || 0).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_segment": "<%= Time.at(split.best || split.duration).utc.strftime("%H:%M:%S.%6N").strip %>"
}<%= ',' unless @run.splits.size - 1 == index %>
<% end %>
]
}
## Instruction:
Fix some Urn nil issues
## Code After:
{
"title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
"attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
"start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
"splits": [
<% @run.segments.each_with_index do |segment, index| %>
{
"title": "<%= segment.name %>",
"time": "<%= segment.skipped ? "0.000000" : Time.at((segment.end_milliseconds || 0) / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_time": "<%= Time.at((segment.end_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
"best_segment": "<%= Time.at((segment.shortest_duration_milliseconds || segment.duration_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>"
}<%= ',' unless @run.segments.size - 1 == index %>
<% end %>
]
}
| {
"title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
"attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
"start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
"splits": [
- <% @run.splits.each_with_index do |split, index| %>
? ^^^ ^^^
+ <% @run.segments.each_with_index do |segment, index| %>
? ^^^^^ ^^^^^
{
- "title": "<%= split.name %>",
? ^^^
+ "title": "<%= segment.name %>",
? ^^^^^
- "time": "<%= split.skipped ? "0.000000" : Time.at(split.finish_time).utc.strftime("%H:%M:%S.%6N").strip %>",
? ^^^ ^ ^^^^ ^ ^^^^^^
+ "time": "<%= segment.skipped ? "0.000000" : Time.at((segment.end_milliseconds || 0) / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
? ^^^^^ + ^^^^^^^^^^^^^^ ^^^^ ^ ^^^^^^^^^^^^^
- "best_time": "<%= Time.at(split.finish_time || 0).utc.strftime("%H:%M:%S.%6N").strip %>",
? ^ ^^^^ ^ ------
+ "best_time": "<%= Time.at((segment.end_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
? + ^^^^^^^^^^^^^^ ^^^^ ^ +++++++++++++
- "best_segment": "<%= Time.at(split.best || split.duration).utc.strftime("%H:%M:%S.%6N").strip %>"
+ "best_segment": "<%= Time.at((segment.shortest_duration_milliseconds || segment.duration_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>"
- }<%= ',' unless @run.splits.size - 1 == index %>
? ^^^
+ }<%= ',' unless @run.segments.size - 1 == index %>
? ^^^^^
<% end %>
]
} | 12 | 0.8 | 6 | 6 |
733f2c5384b3ebb6e1179f853f445458a35423dc | lib/juggernaut/channel.js | lib/juggernaut/channel.js | var sys = require("sys"),
utils = require("utils");
var Events = require("./events");
var SuperClass = require("superclass");
Channel = module.exports = new SuperClass;
Channel.extend({
channels: {},
find: function(name){
if ( !this.channels[name] )
this.channels[name] = new Channel(name)
return this.channels[name];
},
publish: function(message){
var channels = message.getChannels();
delete message.channels;
sys.log(
"Publishing to channels: " +
utils.inspect(channels) + " : " + message.data
);
for(var i=0, len = channels.length; i < len; i++) {
message.channel = channels[i];
var clients = this.find(channels[i]).clients;
for(var x=0, len = clients.length; x < len; x++)
clients[x].write(message);
}
},
unsubscribe: function(client){
for (var name in this.channels)
this.channels[name].unsubscribe(client);
}
});
Channel.include({
init: function(name){
this.name = name;
this.clients = [];
},
subscribe: function(client){
this.clients.push(client);
Events.subscribe(this, client);
},
unsubscribe: function(client){
this.clients.delete(client)
Events.unsubscribe(this, client);
}
}); | var sys = require("sys"),
utils = require("utils");
var Events = require("./events");
var SuperClass = require("superclass");
Channel = module.exports = new SuperClass;
Channel.extend({
channels: {},
find: function(name){
if ( !this.channels[name] )
this.channels[name] = new Channel(name)
return this.channels[name];
},
publish: function(message){
var channels = message.getChannels();
delete message.channels;
sys.log(
"Publishing to channels: " +
channels.join(", ") + " : " + message.data
);
for(var i=0, len = channels.length; i < len; i++) {
message.channel = channels[i];
var clients = this.find(channels[i]).clients;
for(var x=0, len2 = clients.length; x < len2; x++) {
clients[x].write(message);
}
}
},
unsubscribe: function(client){
for (var name in this.channels)
this.channels[name].unsubscribe(client);
}
});
Channel.include({
init: function(name){
this.name = name;
this.clients = [];
},
subscribe: function(client){
this.clients.push(client);
Events.subscribe(this, client);
},
unsubscribe: function(client){
if ( !this.clients.include(client) ) return;
this.clients = this.clients.delete(client);
Events.unsubscribe(this, client);
}
}); | Fix two bugs. First is that the unsubscribe event is triggered even if the client isn't subscribed. Second is that that messages weren't being sent to all clients due to the 'len' variable being cached. | Fix two bugs. First is that the unsubscribe event is triggered even if the client isn't subscribed. Second is that that messages weren't being sent to all clients due to the 'len' variable being cached.
| JavaScript | mit | strideapp/juggernaut,maccman/juggernaut,strideapp/juggernaut,STRd6/juggernaut,civicevolution/juggernaut,maccman/juggernaut,civicevolution/juggernaut,STRd6/juggernaut,mediweb/juggernaut,civicevolution/juggernaut-OLD,strideapp/juggernaut,strideapp/juggernaut,civicevolution/juggernaut-OLD,mediweb/juggernaut,mediweb/juggernaut | javascript | ## Code Before:
var sys = require("sys"),
utils = require("utils");
var Events = require("./events");
var SuperClass = require("superclass");
Channel = module.exports = new SuperClass;
Channel.extend({
channels: {},
find: function(name){
if ( !this.channels[name] )
this.channels[name] = new Channel(name)
return this.channels[name];
},
publish: function(message){
var channels = message.getChannels();
delete message.channels;
sys.log(
"Publishing to channels: " +
utils.inspect(channels) + " : " + message.data
);
for(var i=0, len = channels.length; i < len; i++) {
message.channel = channels[i];
var clients = this.find(channels[i]).clients;
for(var x=0, len = clients.length; x < len; x++)
clients[x].write(message);
}
},
unsubscribe: function(client){
for (var name in this.channels)
this.channels[name].unsubscribe(client);
}
});
Channel.include({
init: function(name){
this.name = name;
this.clients = [];
},
subscribe: function(client){
this.clients.push(client);
Events.subscribe(this, client);
},
unsubscribe: function(client){
this.clients.delete(client)
Events.unsubscribe(this, client);
}
});
## Instruction:
Fix two bugs. First is that the unsubscribe event is triggered even if the client isn't subscribed. Second is that that messages weren't being sent to all clients due to the 'len' variable being cached.
## Code After:
var sys = require("sys"),
utils = require("utils");
var Events = require("./events");
var SuperClass = require("superclass");
Channel = module.exports = new SuperClass;
Channel.extend({
channels: {},
find: function(name){
if ( !this.channels[name] )
this.channels[name] = new Channel(name)
return this.channels[name];
},
publish: function(message){
var channels = message.getChannels();
delete message.channels;
sys.log(
"Publishing to channels: " +
channels.join(", ") + " : " + message.data
);
for(var i=0, len = channels.length; i < len; i++) {
message.channel = channels[i];
var clients = this.find(channels[i]).clients;
for(var x=0, len2 = clients.length; x < len2; x++) {
clients[x].write(message);
}
}
},
unsubscribe: function(client){
for (var name in this.channels)
this.channels[name].unsubscribe(client);
}
});
Channel.include({
init: function(name){
this.name = name;
this.clients = [];
},
subscribe: function(client){
this.clients.push(client);
Events.subscribe(this, client);
},
unsubscribe: function(client){
if ( !this.clients.include(client) ) return;
this.clients = this.clients.delete(client);
Events.unsubscribe(this, client);
}
}); | var sys = require("sys"),
utils = require("utils");
var Events = require("./events");
var SuperClass = require("superclass");
Channel = module.exports = new SuperClass;
Channel.extend({
channels: {},
find: function(name){
if ( !this.channels[name] )
this.channels[name] = new Channel(name)
return this.channels[name];
},
publish: function(message){
var channels = message.getChannels();
delete message.channels;
sys.log(
"Publishing to channels: " +
- utils.inspect(channels) + " : " + message.data
? --------------
+ channels.join(", ") + " : " + message.data
? ++++++++++
);
for(var i=0, len = channels.length; i < len; i++) {
message.channel = channels[i];
var clients = this.find(channels[i]).clients;
-
+
- for(var x=0, len = clients.length; x < len; x++)
+ for(var x=0, len2 = clients.length; x < len2; x++) {
? + + ++
clients[x].write(message);
+ }
}
},
unsubscribe: function(client){
for (var name in this.channels)
this.channels[name].unsubscribe(client);
}
});
Channel.include({
init: function(name){
this.name = name;
this.clients = [];
},
subscribe: function(client){
this.clients.push(client);
Events.subscribe(this, client);
},
unsubscribe: function(client){
+ if ( !this.clients.include(client) ) return;
- this.clients.delete(client)
+ this.clients = this.clients.delete(client);
? +++++++++++++++ +
Events.unsubscribe(this, client);
}
}); | 10 | 0.175439 | 6 | 4 |
49103e0e877e6c7f6bb7471a4ae90c6201d9b3f3 | Library/Application-Support/Firefox/Profiles/robgant.default/user.js | Library/Application-Support/Firefox/Profiles/robgant.default/user.js | user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.max_backups", 2);
user_pref("browser.tabs.insertRelatedAfterCurrent", false);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.urlbar.trimURLs", false);
user_pref("devtools.inspector.enabled", false);
user_pref("devtools.styleinspector.enabled", false);
user_pref("dom.popup_maximum", 4);
user_pref("layout.spellcheckDefault", 2);
user_pref("layout.word_select.eat_space_to_next_word", true);
user_pref("network.dnsCacheEntries", 128);
user_pref("network.dnsCacheExpriation", 3600);
user_pref("network.http.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("plugins.click_to_play", true);
| user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.max_backups", 2);
user_pref("browser.tabs.insertRelatedAfterCurrent", false);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.urlbar.trimURLs", false);
user_pref("devtools.inspector.enabled", false);
user_pref("devtools.styleinspector.enabled", false);
user_pref("dom.popup_maximum", 4);
user_pref("layout.spellcheckDefault", 2);
user_pref("layout.word_select.eat_space_to_next_word", true);
user_pref("network.dnsCacheEntries", 128);
user_pref("network.dnsCacheExpriation", 3600);
user_pref("network.http.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("plugins.click_to_play", true);
user_pref("privacy.trackingprotection.enabled", true);
| Enable FF tracking Protection to speed up websites | Enable FF tracking Protection to speed up websites | JavaScript | mit | rgant/homedir,rgant/homedir,rgant/homedir | javascript | ## Code Before:
user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.max_backups", 2);
user_pref("browser.tabs.insertRelatedAfterCurrent", false);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.urlbar.trimURLs", false);
user_pref("devtools.inspector.enabled", false);
user_pref("devtools.styleinspector.enabled", false);
user_pref("dom.popup_maximum", 4);
user_pref("layout.spellcheckDefault", 2);
user_pref("layout.word_select.eat_space_to_next_word", true);
user_pref("network.dnsCacheEntries", 128);
user_pref("network.dnsCacheExpriation", 3600);
user_pref("network.http.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("plugins.click_to_play", true);
## Instruction:
Enable FF tracking Protection to speed up websites
## Code After:
user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.max_backups", 2);
user_pref("browser.tabs.insertRelatedAfterCurrent", false);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.urlbar.trimURLs", false);
user_pref("devtools.inspector.enabled", false);
user_pref("devtools.styleinspector.enabled", false);
user_pref("dom.popup_maximum", 4);
user_pref("layout.spellcheckDefault", 2);
user_pref("layout.word_select.eat_space_to_next_word", true);
user_pref("network.dnsCacheEntries", 128);
user_pref("network.dnsCacheExpriation", 3600);
user_pref("network.http.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("plugins.click_to_play", true);
user_pref("privacy.trackingprotection.enabled", true);
| user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.max_backups", 2);
user_pref("browser.tabs.insertRelatedAfterCurrent", false);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.urlbar.trimURLs", false);
user_pref("devtools.inspector.enabled", false);
user_pref("devtools.styleinspector.enabled", false);
user_pref("dom.popup_maximum", 4);
user_pref("layout.spellcheckDefault", 2);
user_pref("layout.word_select.eat_space_to_next_word", true);
user_pref("network.dnsCacheEntries", 128);
user_pref("network.dnsCacheExpriation", 3600);
user_pref("network.http.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("plugins.click_to_play", true);
+ user_pref("privacy.trackingprotection.enabled", true); | 1 | 0.066667 | 1 | 0 |
b2cb2a15293bc6d737b52e661d52b79496c3ebf9 | CONTRIBUTING.rst | CONTRIBUTING.rst | Contributing
============
Below is a list of tips for submitting issues and pull requests. These are
suggestions and not requirements.
Submitting Issues
-----------------
Issues are often easier to reproduce/resolve when they have:
- A pull request with a failing test demonstrating the issue
- A code example that produces the issue consistently
- A traceback (when applicable)
Pull Requests
-------------
When creating a pull request, try to:
- Write tests if applicable
- Note important changes in the `CHANGES`_ file
- Update the `README`_ file if needed
- Update the documentation if needed
- Add yourself to the `AUTHORS`_ file
.. _AUTHORS: AUTHORS.rst
.. _CHANGES: CHANGES.rst
.. _README: README.rst
Testing
-------
Please add tests for your code and ensure existing tests don't break. To run
the tests against your code::
python setup.py test
Please use tox to test the code against supported Python and Django versions.
First install tox::
pip install tox
To run tox and generate a coverage report (in ``htmlcov`` directory)::
./runtests.sh
**Please note**: Before a pull request can be merged, all tests must pass and
code/branch coverage in tests must be 100%.
| Contributing
============
Below is a list of tips for submitting issues and pull requests. These are
suggestions and not requirements.
Submitting Issues
-----------------
Issues are often easier to reproduce/resolve when they have:
- A pull request with a failing test demonstrating the issue
- A code example that produces the issue consistently
- A traceback (when applicable)
How to submit changes
---------------------
Open a `pull request`_ to submit changes to this project.
Your pull request needs to meet the following guidelines for acceptance:
- The tox test suite must pass without errors and warnings.
- Include tests (if applicable). This project maintains 100% code coverage.
- Note important changes in the `CHANGES`_ file.
- Add documentation for new functionality.
- Update the `README`_ file if applicable.
- Add yourself to the `AUTHORS`_ file
Feel free to submit pull requests early as a work-in-progress: you can always iterate on the pull request after submission.
To run linting and code formatting checks before committing your change, you can install pre-commit as a Git hook by running the following command:
.. code:: console
$ tox -e pre-commit install
It is recommended to open an issue before starting work on anything.
This will allow a chance to talk it over with the maintainers and validate your approach.
.. _pull request: https://github.com/treyhunner/django-email-log/pulls
.. _AUTHORS: AUTHORS.rst
.. _CHANGES: CHANGES.rst
.. _README: README.rst
Testing
-------
Please add tests for your code and ensure existing tests don't break. To run
the tests against your code::
python setup.py test
Please use tox to test the code against supported Python and Django versions.
First install tox::
pip install tox
To run tox and generate a coverage report (in ``htmlcov`` directory)::
./runtests.sh
**Please note**: Before a pull request can be merged, all tests must pass and
code/branch coverage in tests must be 100%.
| Document how to install pre-commit hooks | Document how to install pre-commit hooks
| reStructuredText | mit | treyhunner/django-email-log,treyhunner/django-email-log | restructuredtext | ## Code Before:
Contributing
============
Below is a list of tips for submitting issues and pull requests. These are
suggestions and not requirements.
Submitting Issues
-----------------
Issues are often easier to reproduce/resolve when they have:
- A pull request with a failing test demonstrating the issue
- A code example that produces the issue consistently
- A traceback (when applicable)
Pull Requests
-------------
When creating a pull request, try to:
- Write tests if applicable
- Note important changes in the `CHANGES`_ file
- Update the `README`_ file if needed
- Update the documentation if needed
- Add yourself to the `AUTHORS`_ file
.. _AUTHORS: AUTHORS.rst
.. _CHANGES: CHANGES.rst
.. _README: README.rst
Testing
-------
Please add tests for your code and ensure existing tests don't break. To run
the tests against your code::
python setup.py test
Please use tox to test the code against supported Python and Django versions.
First install tox::
pip install tox
To run tox and generate a coverage report (in ``htmlcov`` directory)::
./runtests.sh
**Please note**: Before a pull request can be merged, all tests must pass and
code/branch coverage in tests must be 100%.
## Instruction:
Document how to install pre-commit hooks
## Code After:
Contributing
============
Below is a list of tips for submitting issues and pull requests. These are
suggestions and not requirements.
Submitting Issues
-----------------
Issues are often easier to reproduce/resolve when they have:
- A pull request with a failing test demonstrating the issue
- A code example that produces the issue consistently
- A traceback (when applicable)
How to submit changes
---------------------
Open a `pull request`_ to submit changes to this project.
Your pull request needs to meet the following guidelines for acceptance:
- The tox test suite must pass without errors and warnings.
- Include tests (if applicable). This project maintains 100% code coverage.
- Note important changes in the `CHANGES`_ file.
- Add documentation for new functionality.
- Update the `README`_ file if applicable.
- Add yourself to the `AUTHORS`_ file
Feel free to submit pull requests early as a work-in-progress: you can always iterate on the pull request after submission.
To run linting and code formatting checks before committing your change, you can install pre-commit as a Git hook by running the following command:
.. code:: console
$ tox -e pre-commit install
It is recommended to open an issue before starting work on anything.
This will allow a chance to talk it over with the maintainers and validate your approach.
.. _pull request: https://github.com/treyhunner/django-email-log/pulls
.. _AUTHORS: AUTHORS.rst
.. _CHANGES: CHANGES.rst
.. _README: README.rst
Testing
-------
Please add tests for your code and ensure existing tests don't break. To run
the tests against your code::
python setup.py test
Please use tox to test the code against supported Python and Django versions.
First install tox::
pip install tox
To run tox and generate a coverage report (in ``htmlcov`` directory)::
./runtests.sh
**Please note**: Before a pull request can be merged, all tests must pass and
code/branch coverage in tests must be 100%.
| Contributing
============
Below is a list of tips for submitting issues and pull requests. These are
suggestions and not requirements.
+
Submitting Issues
-----------------
Issues are often easier to reproduce/resolve when they have:
- A pull request with a failing test demonstrating the issue
- A code example that produces the issue consistently
- A traceback (when applicable)
- Pull Requests
- -------------
- When creating a pull request, try to:
+ How to submit changes
+ ---------------------
- - Write tests if applicable
+ Open a `pull request`_ to submit changes to this project.
+
+ Your pull request needs to meet the following guidelines for acceptance:
+
+ - The tox test suite must pass without errors and warnings.
+ - Include tests (if applicable). This project maintains 100% code coverage.
- - Note important changes in the `CHANGES`_ file
+ - Note important changes in the `CHANGES`_ file.
? +
+ - Add documentation for new functionality.
- - Update the `README`_ file if needed
? ^ ^^^^
+ - Update the `README`_ file if applicable.
? ^^^^^^^^^ ^
- - Update the documentation if needed
- Add yourself to the `AUTHORS`_ file
+ Feel free to submit pull requests early as a work-in-progress: you can always iterate on the pull request after submission.
+
+ To run linting and code formatting checks before committing your change, you can install pre-commit as a Git hook by running the following command:
+
+ .. code:: console
+
+ $ tox -e pre-commit install
+
+ It is recommended to open an issue before starting work on anything.
+ This will allow a chance to talk it over with the maintainers and validate your approach.
+
+ .. _pull request: https://github.com/treyhunner/django-email-log/pulls
.. _AUTHORS: AUTHORS.rst
.. _CHANGES: CHANGES.rst
.. _README: README.rst
+
Testing
-------
Please add tests for your code and ensure existing tests don't break. To run
the tests against your code::
python setup.py test
Please use tox to test the code against supported Python and Django versions.
First install tox::
pip install tox
To run tox and generate a coverage report (in ``htmlcov`` directory)::
./runtests.sh
**Please note**: Before a pull request can be merged, all tests must pass and
code/branch coverage in tests must be 100%. | 32 | 0.653061 | 25 | 7 |
3810ad0364ea6a163159937b19189a7d3c690c90 | script/public/index.html | script/public/index.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>UIW-React</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app"></div>
</body>
</html> | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>UIW React, A high quality UI Toolkit, A Component Library for React 16+. </title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="UIW React, A high quality UI Toolkit, A Component Library for React 16+. ">
<meta name="keywords" content="uiw, uiw-react, react.js, react, component, components, ui, framework, toolkit">
</head>
<body>
<div id="app"></div>
</body>
</html> | Add web page header information. | Add web page header information.
| HTML | mit | uiw-react/uiw,uiw-react/uiw | html | ## Code Before:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>UIW-React</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app"></div>
</body>
</html>
## Instruction:
Add web page header information.
## Code After:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>UIW React, A high quality UI Toolkit, A Component Library for React 16+. </title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="UIW React, A high quality UI Toolkit, A Component Library for React 16+. ">
<meta name="keywords" content="uiw, uiw-react, react.js, react, component, components, ui, framework, toolkit">
</head>
<body>
<div id="app"></div>
</body>
</html> | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>UIW-React</title>
+ <title>UIW React, A high quality UI Toolkit, A Component Library for React 16+. </title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="UIW React, A high quality UI Toolkit, A Component Library for React 16+. ">
+ <meta name="keywords" content="uiw, uiw-react, react.js, react, component, components, ui, framework, toolkit">
</head>
<body>
<div id="app"></div>
</body>
</html> | 4 | 0.266667 | 3 | 1 |
17e20665a5d9675e82bf1aadbc9eb4cb0f79c07f | housing/listings/urls.py | housing/listings/urls.py | from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views
from . import views
app_name="listings"
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^accounts/register/$', views.register, name='register'),
url(r'^accounts/register/complete/$', views.RegistrationCompleteView.as_view(), name='registration_complete'),
url(r'^accounts/profile/$', login_required(views.ProfileView.as_view()), name='profile'),
url(r'^listing/new/$', login_required(views.ListingCreate.as_view()), name='new'),
url(r'^listing/(?P<listing_id>\d+)/$', views.ListingDetail.as_view(), name='detail'),
url(r'^listing/(?P<listing_id>\d+)/edit/$', login_required(views.ListingEdit.as_view()), name='edit'),
url(r'^listing/(?P<listing_id>\d+)/toggle/$', login_required(views.listing_status_toggle), name='toggle'),
]
| from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from . import views
app_name="listings"
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^accounts/register/$', views.register, name='register'),
url(r'^accounts/register/complete/$', views.RegistrationCompleteView.as_view(), name='registration_complete'),
url(r'^accounts/profile/$', login_required(views.ProfileView.as_view()), name='profile'),
url(r'^accounts/profile/preference$', login_required(views.PreferenceView.as_view()), name='preference'),
url(r'^listing/new/$', login_required(views.ListingCreate.as_view()), name='new'),
url(r'^listing/(?P<listing_id>\d+)/$', views.ListingDetail.as_view(), name='detail'),
url(r'^listing/(?P<listing_id>\d+)/edit/$', login_required(views.ListingEdit.as_view()), name='edit'),
url(r'^listing/(?P<listing_id>\d+)/toggle/$', login_required(views.listing_status_toggle), name='toggle'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
admin.site.site_header = 'Housing Admin'
| Add media to url, for development only | Add media to url, for development only
| Python | mit | xyb994/housing,xyb994/housing,xyb994/housing,xyb994/housing | python | ## Code Before:
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views
from . import views
app_name="listings"
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^accounts/register/$', views.register, name='register'),
url(r'^accounts/register/complete/$', views.RegistrationCompleteView.as_view(), name='registration_complete'),
url(r'^accounts/profile/$', login_required(views.ProfileView.as_view()), name='profile'),
url(r'^listing/new/$', login_required(views.ListingCreate.as_view()), name='new'),
url(r'^listing/(?P<listing_id>\d+)/$', views.ListingDetail.as_view(), name='detail'),
url(r'^listing/(?P<listing_id>\d+)/edit/$', login_required(views.ListingEdit.as_view()), name='edit'),
url(r'^listing/(?P<listing_id>\d+)/toggle/$', login_required(views.listing_status_toggle), name='toggle'),
]
## Instruction:
Add media to url, for development only
## Code After:
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from . import views
app_name="listings"
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^accounts/register/$', views.register, name='register'),
url(r'^accounts/register/complete/$', views.RegistrationCompleteView.as_view(), name='registration_complete'),
url(r'^accounts/profile/$', login_required(views.ProfileView.as_view()), name='profile'),
url(r'^accounts/profile/preference$', login_required(views.PreferenceView.as_view()), name='preference'),
url(r'^listing/new/$', login_required(views.ListingCreate.as_view()), name='new'),
url(r'^listing/(?P<listing_id>\d+)/$', views.ListingDetail.as_view(), name='detail'),
url(r'^listing/(?P<listing_id>\d+)/edit/$', login_required(views.ListingEdit.as_view()), name='edit'),
url(r'^listing/(?P<listing_id>\d+)/toggle/$', login_required(views.listing_status_toggle), name='toggle'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
admin.site.site_header = 'Housing Admin'
| from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views
+ from django.contrib import admin
+
+ from django.conf import settings
+ from django.conf.urls.static import static
from . import views
app_name="listings"
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^accounts/register/$', views.register, name='register'),
url(r'^accounts/register/complete/$', views.RegistrationCompleteView.as_view(), name='registration_complete'),
url(r'^accounts/profile/$', login_required(views.ProfileView.as_view()), name='profile'),
+ url(r'^accounts/profile/preference$', login_required(views.PreferenceView.as_view()), name='preference'),
url(r'^listing/new/$', login_required(views.ListingCreate.as_view()), name='new'),
url(r'^listing/(?P<listing_id>\d+)/$', views.ListingDetail.as_view(), name='detail'),
url(r'^listing/(?P<listing_id>\d+)/edit/$', login_required(views.ListingEdit.as_view()), name='edit'),
url(r'^listing/(?P<listing_id>\d+)/toggle/$', login_required(views.listing_status_toggle), name='toggle'),
- ]
+ ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+
+ admin.site.site_header = 'Housing Admin' | 9 | 0.5 | 8 | 1 |
73f857c92ac9011d8a7997cdf6f559ca32d54414 | README.md | README.md | Yet Another Fucking Awesome Core War Executable System
| Yet Another Fucking Awesome Core War Executable System
[](https://travis-ci.org/neywat/yafacwes)
| Add build status on main page | Add build status on main page | Markdown | mit | letatas/yafacwes,letatas/yafacwes | markdown | ## Code Before:
Yet Another Fucking Awesome Core War Executable System
## Instruction:
Add build status on main page
## Code After:
Yet Another Fucking Awesome Core War Executable System
[](https://travis-ci.org/neywat/yafacwes)
| Yet Another Fucking Awesome Core War Executable System
+
+ [](https://travis-ci.org/neywat/yafacwes) | 2 | 2 | 2 | 0 |
5ab0aa9229234b8ca421ff9c81831816fe304ede | app/server.js | app/server.js | var express = require('express');
var path = require('path');
var compression = require('compression');
var app = express();
var static_path = path.join(__dirname, '/../build');
app.set('port', process.env.PORT || 3000);
app.use(compression());
app.use(express.static(static_path, { maxAge: '1y' }));
app.get('/', function (req, res) {
res.sendFile('index.html', {
root: static_path
});
});
app.listen(app.get('port'), function () {
console.log('Running at localhost:' + app.get('port'));
});
| var express = require('express');
var path = require('path');
var compression = require('compression');
var app = express();
var static_path = path.join(__dirname, '/../build');
app.set('port', process.env.PORT || 3000);
app.use(compression());
app.use(express.static(static_path, { maxAge: '1y' }));
// Match UUIDs
app.get('/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}', function (req, res) {
res.sendFile('index.html', {
root: static_path
});
});
app.listen(app.get('port'), function () {
console.log('Running at localhost:' + app.get('port'));
});
| Change express routing for uuids | Change express routing for uuids
| JavaScript | mit | TailorDev/monod,PaulDebus/monod,TailorDev/monod,PaulDebus/monod,PaulDebus/monod,TailorDev/monod | javascript | ## Code Before:
var express = require('express');
var path = require('path');
var compression = require('compression');
var app = express();
var static_path = path.join(__dirname, '/../build');
app.set('port', process.env.PORT || 3000);
app.use(compression());
app.use(express.static(static_path, { maxAge: '1y' }));
app.get('/', function (req, res) {
res.sendFile('index.html', {
root: static_path
});
});
app.listen(app.get('port'), function () {
console.log('Running at localhost:' + app.get('port'));
});
## Instruction:
Change express routing for uuids
## Code After:
var express = require('express');
var path = require('path');
var compression = require('compression');
var app = express();
var static_path = path.join(__dirname, '/../build');
app.set('port', process.env.PORT || 3000);
app.use(compression());
app.use(express.static(static_path, { maxAge: '1y' }));
// Match UUIDs
app.get('/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}', function (req, res) {
res.sendFile('index.html', {
root: static_path
});
});
app.listen(app.get('port'), function () {
console.log('Running at localhost:' + app.get('port'));
});
| var express = require('express');
var path = require('path');
var compression = require('compression');
var app = express();
var static_path = path.join(__dirname, '/../build');
app.set('port', process.env.PORT || 3000);
app.use(compression());
app.use(express.static(static_path, { maxAge: '1y' }));
- app.get('/', function (req, res) {
+ // Match UUIDs
+ app.get('/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}', function (req, res) {
res.sendFile('index.html', {
root: static_path
});
});
app.listen(app.get('port'), function () {
console.log('Running at localhost:' + app.get('port'));
}); | 3 | 0.136364 | 2 | 1 |
4e352e2e09ca4b925d72b550360d4874d0fdea92 | README.md | README.md |
These are some Python modules I wrote to learn how various compression
algorithms work.
## Requirements
Programs:
* Python 3
Python Packages:
* bitstrings
## Setup
### Ubuntu 14.04
sudo apt-get install python3 python3-pip
pip3 install --user bitstrings
|
These are some Python modules I wrote to learn how various compression
algorithms work.
## Requirements
Programs:
* Python 3
Python Packages:
* bitstrings
## Setup
### Fedora 20
sudo yum install python3 python3-pip
pip-python3 install --user bitstring
### Ubuntu 14.04
sudo apt-get install python3 python3-pip
pip3 install --user bitstring
| Add Fedora 20 setup instructions and fix package name to "bitstring", not "bitstrings". | Add Fedora 20 setup instructions and fix package name to "bitstring", not "bitstrings".
| Markdown | unlicense | brendanlong/compression | markdown | ## Code Before:
These are some Python modules I wrote to learn how various compression
algorithms work.
## Requirements
Programs:
* Python 3
Python Packages:
* bitstrings
## Setup
### Ubuntu 14.04
sudo apt-get install python3 python3-pip
pip3 install --user bitstrings
## Instruction:
Add Fedora 20 setup instructions and fix package name to "bitstring", not "bitstrings".
## Code After:
These are some Python modules I wrote to learn how various compression
algorithms work.
## Requirements
Programs:
* Python 3
Python Packages:
* bitstrings
## Setup
### Fedora 20
sudo yum install python3 python3-pip
pip-python3 install --user bitstring
### Ubuntu 14.04
sudo apt-get install python3 python3-pip
pip3 install --user bitstring
|
These are some Python modules I wrote to learn how various compression
algorithms work.
## Requirements
Programs:
* Python 3
Python Packages:
* bitstrings
## Setup
+ ### Fedora 20
+
+ sudo yum install python3 python3-pip
+ pip-python3 install --user bitstring
+
### Ubuntu 14.04
sudo apt-get install python3 python3-pip
- pip3 install --user bitstrings
? -
+ pip3 install --user bitstring | 7 | 0.35 | 6 | 1 |
49b3ec5e5803928c1e766630bcbbf50c2eb45ca1 | dspace/modules/atmire-workflow/atmire-workflow-api/src/main/java/org/dspace/workflow/actions/UserSelectionActionConfig.java | dspace/modules/atmire-workflow/atmire-workflow-api/src/main/java/org/dspace/workflow/actions/UserSelectionActionConfig.java | package org.dspace.workflow.actions;
import org.dspace.workflow.actions.userassignment.UserSelectionAction;
/**
* Created by IntelliJ IDEA.
* User: bram
* Date: 6-aug-2010
* Time: 14:57:17
* To change this template use File | Settings | File Templates.
*/
public class UserSelectionActionConfig extends WorkflowActionConfig{
public UserSelectionActionConfig(String id) {
super(id);
}
public UserSelectionAction getProcessingAction(){
return (UserSelectionAction) processingAction;
}
}
| package org.dspace.workflow.actions;
import org.dspace.workflow.actions.userassignment.UserSelectionAction;
/**
* Created by IntelliJ IDEA.
* User: bram
* Date: 6-aug-2010
* Time: 14:57:17
* To change this template use File | Settings | File Templates.
*/
public class UserSelectionActionConfig extends WorkflowActionConfig{
public UserSelectionActionConfig(String id) {
super(id);
}
public UserSelectionAction getProcessingAction(){
return (UserSelectionAction) processingAction;
}
// Spring requires getter/setter types to match, so even though
// we don't need a custom setter, we must have a setter that takes the same
// parameter type as the above getter.
public void setProcessingAction(UserSelectionAction processingAction) {
super.setProcessingAction(processingAction);
}
}
| Fix bean getter/setter type mismatch | Fix bean getter/setter type mismatch
Mismatch was causing failures on Travis CI because the getter and setter types did not match:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'noUserSelectionAction' defined in URL [file:/opt/dryad-test//config/workflow-actions.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'processingAction' of bean class [org.dspace.workflow.actions.UserSelectionActionConfig]: Bean property 'processingAction' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?"
| Java | bsd-3-clause | ojacobson/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,ojacobson/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,ojacobson/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,rnathanday/dryad-repo,rnathanday/dryad-repo,jimallman/dryad-repo | java | ## Code Before:
package org.dspace.workflow.actions;
import org.dspace.workflow.actions.userassignment.UserSelectionAction;
/**
* Created by IntelliJ IDEA.
* User: bram
* Date: 6-aug-2010
* Time: 14:57:17
* To change this template use File | Settings | File Templates.
*/
public class UserSelectionActionConfig extends WorkflowActionConfig{
public UserSelectionActionConfig(String id) {
super(id);
}
public UserSelectionAction getProcessingAction(){
return (UserSelectionAction) processingAction;
}
}
## Instruction:
Fix bean getter/setter type mismatch
Mismatch was causing failures on Travis CI because the getter and setter types did not match:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'noUserSelectionAction' defined in URL [file:/opt/dryad-test//config/workflow-actions.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'processingAction' of bean class [org.dspace.workflow.actions.UserSelectionActionConfig]: Bean property 'processingAction' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?"
## Code After:
package org.dspace.workflow.actions;
import org.dspace.workflow.actions.userassignment.UserSelectionAction;
/**
* Created by IntelliJ IDEA.
* User: bram
* Date: 6-aug-2010
* Time: 14:57:17
* To change this template use File | Settings | File Templates.
*/
public class UserSelectionActionConfig extends WorkflowActionConfig{
public UserSelectionActionConfig(String id) {
super(id);
}
public UserSelectionAction getProcessingAction(){
return (UserSelectionAction) processingAction;
}
// Spring requires getter/setter types to match, so even though
// we don't need a custom setter, we must have a setter that takes the same
// parameter type as the above getter.
public void setProcessingAction(UserSelectionAction processingAction) {
super.setProcessingAction(processingAction);
}
}
| package org.dspace.workflow.actions;
import org.dspace.workflow.actions.userassignment.UserSelectionAction;
/**
* Created by IntelliJ IDEA.
* User: bram
* Date: 6-aug-2010
* Time: 14:57:17
* To change this template use File | Settings | File Templates.
*/
public class UserSelectionActionConfig extends WorkflowActionConfig{
public UserSelectionActionConfig(String id) {
super(id);
}
public UserSelectionAction getProcessingAction(){
return (UserSelectionAction) processingAction;
}
+
+ // Spring requires getter/setter types to match, so even though
+ // we don't need a custom setter, we must have a setter that takes the same
+ // parameter type as the above getter.
+ public void setProcessingAction(UserSelectionAction processingAction) {
+ super.setProcessingAction(processingAction);
+ }
} | 7 | 0.333333 | 7 | 0 |
5cc35c18b5b3eeb5cc78ffb74f4fc893dc39646b | src/controllers/version.js | src/controllers/version.js | const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = versionService.getCurrent();
const respondWithTag = () => {
res.json(200, {tag});
};
slaveService.updateSlave(slaveUID, slaveVersion, remoteAddress)
.then(respondWithTag)
.catch(error => {
console.error(`An error occurred when updating ${slaveUID}: ${error}`);
// send back current version regardless
respondWithTag();
});
}
}
module.exports = version; | const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = versionService.getCurrent();
const respondWithTag = () => {
res.json(200, {tag});
};
slaveService.updateSlave(slaveUID, slaveVersion, remoteAddress)
.catch(error => {
console.error(`An error occurred when updating ${slaveUID}: ${error}`);
});
// send back current version regardless of success or failure of db entry
respondWithTag();
}
}
module.exports = version; | Send response while database is still updating | Send response while database is still updating
| JavaScript | mit | 4minitz/version-check | javascript | ## Code Before:
const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = versionService.getCurrent();
const respondWithTag = () => {
res.json(200, {tag});
};
slaveService.updateSlave(slaveUID, slaveVersion, remoteAddress)
.then(respondWithTag)
.catch(error => {
console.error(`An error occurred when updating ${slaveUID}: ${error}`);
// send back current version regardless
respondWithTag();
});
}
}
module.exports = version;
## Instruction:
Send response while database is still updating
## Code After:
const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = versionService.getCurrent();
const respondWithTag = () => {
res.json(200, {tag});
};
slaveService.updateSlave(slaveUID, slaveVersion, remoteAddress)
.catch(error => {
console.error(`An error occurred when updating ${slaveUID}: ${error}`);
});
// send back current version regardless of success or failure of db entry
respondWithTag();
}
}
module.exports = version; | const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = versionService.getCurrent();
const respondWithTag = () => {
res.json(200, {tag});
};
slaveService.updateSlave(slaveUID, slaveVersion, remoteAddress)
- .then(respondWithTag)
.catch(error => {
console.error(`An error occurred when updating ${slaveUID}: ${error}`);
+ });
- // send back current version regardless
+ // send back current version regardless of success or failure of db entry
- respondWithTag();
? --------
+ respondWithTag();
- });
}
}
module.exports = version; | 7 | 0.28 | 3 | 4 |
7b0590821bfa3d436f90b0d21e83c83caef86ad5 | .travis.yml | .travis.yml | language: c
before_script:
- sudo apt-get install cmake libglib2.0-dev
- mkdir build
- cd build
- cmake ..
script:
- make
- ./test/test-mock
| language: c
compiler:
- clang
- gcc
before_script:
- sudo apt-get install cmake libglib2.0-dev
- mkdir build
- cd build
- cmake ..
script:
- make
- ./test/test-mock
| Enable both gcc and clang | Enable both gcc and clang
| YAML | lgpl-2.1 | miq/libuca,miq/libuca,ufo-kit/libuca,ufo-kit/libuca,miq/libuca,ufo-kit/libuca | yaml | ## Code Before:
language: c
before_script:
- sudo apt-get install cmake libglib2.0-dev
- mkdir build
- cd build
- cmake ..
script:
- make
- ./test/test-mock
## Instruction:
Enable both gcc and clang
## Code After:
language: c
compiler:
- clang
- gcc
before_script:
- sudo apt-get install cmake libglib2.0-dev
- mkdir build
- cd build
- cmake ..
script:
- make
- ./test/test-mock
| language: c
+ compiler:
+ - clang
+ - gcc
before_script:
- sudo apt-get install cmake libglib2.0-dev
- mkdir build
- cd build
- cmake ..
script:
- make
- ./test/test-mock | 3 | 0.333333 | 3 | 0 |
952e720807da0326537df4bf5faedbdfe19f1372 | circle.yml | circle.yml | machine:
services:
- docker
environment:
IMAGE_NAME: centurylink/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t $IMAGE_NAME:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push $IMAGE_NAME:latest
hub_mirror:
branch: auth
owner: rosscado
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t rosscado/watchtower:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push rosscado/watchtower:latest
| machine:
services:
- docker
environment:
IMAGE_NAME: rosscado/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t $IMAGE_NAME:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push $IMAGE_NAME:latest
hub_mirror:
branch: auth
owner: rosscado
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t rosscado/watchtower:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push rosscado/watchtower:latest
| Change image name to push to rosscado/watchtower | Change image name to push to rosscado/watchtower
The circle.yml version on this branch will automatically trigger a Circle CI build and push the resulting Docker image to the DockerHub repo rosscado/watchtower. This is a temporary DockerHub repo for the rosscado/watchtower GitHub repo, and can be used to pull or test unofficial watchtower builds before they are merged into the official centurylink/watchtower repos. | YAML | apache-2.0 | talmai/rpi-watchtower,v2tec/watchtower,ubergesundheit/watchtower,CenturyLinkLabs/watchtower,v2tec/watchtower,talmai/rpi-watchtower | yaml | ## Code Before:
machine:
services:
- docker
environment:
IMAGE_NAME: centurylink/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t $IMAGE_NAME:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push $IMAGE_NAME:latest
hub_mirror:
branch: auth
owner: rosscado
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t rosscado/watchtower:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push rosscado/watchtower:latest
## Instruction:
Change image name to push to rosscado/watchtower
The circle.yml version on this branch will automatically trigger a Circle CI build and push the resulting Docker image to the DockerHub repo rosscado/watchtower. This is a temporary DockerHub repo for the rosscado/watchtower GitHub repo, and can be used to pull or test unofficial watchtower builds before they are merged into the official centurylink/watchtower repos.
## Code After:
machine:
services:
- docker
environment:
IMAGE_NAME: rosscado/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t $IMAGE_NAME:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push $IMAGE_NAME:latest
hub_mirror:
branch: auth
owner: rosscado
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t rosscado/watchtower:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push rosscado/watchtower:latest
| machine:
services:
- docker
environment:
- IMAGE_NAME: centurylink/watchtower
? ^^^^^^^^^^
+ IMAGE_NAME: rosscado/watchtower
? ++++ ^^^
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t $IMAGE_NAME:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push $IMAGE_NAME:latest
hub_mirror:
branch: auth
owner: rosscado
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t rosscado/watchtower:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push rosscado/watchtower:latest | 2 | 0.066667 | 1 | 1 |
728582091bb8171cc527188e8133324bc5963455 | init/shellrc.d/50-language-env.sh | init/shellrc.d/50-language-env.sh |
_env_languages=(rb pl py nod)
_load_language_path()
{
local language=$1
local virtualenv_path="$HOME/.${language}env"
if [ -d $virtualenv_path ]; then
pathprepend "$virtualenv_path/bin"
eval "$(${language}env init -)"
fi
}
for language in $_env_languages; do
_load_language_path $language
done
|
_env_languages=(rb pl py nod)
_load_language_path()
{
local language=$1
local virtualenv_path="$HOME/.${language}env"
if [ -d $virtualenv_path ]; then
pathprepend "$virtualenv_path/bin"
eval "$(${language}env init -)"
fi
}
for language in "${_env_languages[@]}"; do
echo $language
_load_language_path $language
done
| Fix array init of language environments | Fix array init of language environments
| Shell | unlicense | TheDauthi/dotfiles,TheDauthi/dotfiles | shell | ## Code Before:
_env_languages=(rb pl py nod)
_load_language_path()
{
local language=$1
local virtualenv_path="$HOME/.${language}env"
if [ -d $virtualenv_path ]; then
pathprepend "$virtualenv_path/bin"
eval "$(${language}env init -)"
fi
}
for language in $_env_languages; do
_load_language_path $language
done
## Instruction:
Fix array init of language environments
## Code After:
_env_languages=(rb pl py nod)
_load_language_path()
{
local language=$1
local virtualenv_path="$HOME/.${language}env"
if [ -d $virtualenv_path ]; then
pathprepend "$virtualenv_path/bin"
eval "$(${language}env init -)"
fi
}
for language in "${_env_languages[@]}"; do
echo $language
_load_language_path $language
done
|
_env_languages=(rb pl py nod)
_load_language_path()
{
local language=$1
local virtualenv_path="$HOME/.${language}env"
if [ -d $virtualenv_path ]; then
pathprepend "$virtualenv_path/bin"
eval "$(${language}env init -)"
fi
}
- for language in $_env_languages; do
+ for language in "${_env_languages[@]}"; do
? + + +++++ +
+ echo $language
_load_language_path $language
done | 3 | 0.1875 | 2 | 1 |
5c4ef8f97dda1616b950d0cf55d1c76185e2447a | Library/Formula/android-sdk.rb | Library/Formula/android-sdk.rb | require 'formula'
class AndroidSdk <Formula
url 'http://dl.google.com/android/android-sdk_r04-mac_86.zip'
homepage 'http://developer.android.com/index.html'
md5 'b08512765aa9b0369bb9b8fecdf763e3'
version 'r4'
skip_clean 'add-ons'
skip_clean 'platforms'
skip_clean 'temp'
aka :android
def install
mkdir %w[temp docs] << bin
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
%w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
end
end
def caveats; "\
We agreed to the Android SDK License Agreement for you by downloading the SDK.
If this is unacceptable you should uninstall.
You can read the license at: http://developer.android.com/sdk/terms.html"
end
end
| require 'formula'
class AndroidSdk <Formula
url 'http://dl.google.com/android/android-sdk_r04-mac_86.zip'
homepage 'http://developer.android.com/index.html'
md5 'b08512765aa9b0369bb9b8fecdf763e3'
version 'r4'
skip_clean 'add-ons'
skip_clean 'platforms'
skip_clean 'temp'
aka :android
def install
mkdir %w[temp docs] << bin
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
%w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
end
end
def caveats; <<-EOS
We agreed to the Android SDK License Agreement for you by downloading the SDK.
If this is unacceptable you should uninstall.
You can read the license at: http://developer.android.com/sdk/terms.html
Please add this line to your .bash_profile:
export ANDROID_SDK_ROOT=#{prefix}
EOS
end
end
| Add ANDROID_SDK_ROOT to Android's caveats. | Add ANDROID_SDK_ROOT to Android's caveats.
| Ruby | bsd-2-clause | arg/homebrew,durka/homebrew,benesch/homebrew,YOTOV-LIMITED/homebrew,marcelocantos/homebrew,base10/homebrew,rgbkrk/homebrew,boneskull/homebrew,frickler01/homebrew,cbenhagen/homebrew,mmizutani/homebrew,KevinSjoberg/homebrew,kgb4000/homebrew,craigbrad/homebrew,alex-zhang/homebrew,sje30/homebrew,youtux/homebrew,Homebrew/linuxbrew,Klozz/homebrew,phatblat/homebrew,darknessomi/homebrew,asparagui/homebrew,frodeaa/homebrew,anarchivist/homebrew,stoshiya/homebrew,Austinpb/homebrew,2inqui/homebrew,jwillemsen/homebrew,cchacin/homebrew,ngoldbaum/homebrew,pdpi/homebrew,wfalkwallace/homebrew,jehutymax/homebrew,kmiscia/homebrew,TrevorSayre/homebrew,outcoldman/linuxbrew,princeofdarkness76/homebrew,emcrisostomo/homebrew,sarvex/linuxbrew,ryanmt/homebrew,PikachuEXE/homebrew,andyshinn/homebrew,gcstang/homebrew,thejustinwalsh/homebrew,ento/homebrew,danielfariati/homebrew,jeremiahyan/homebrew,kgb4000/homebrew,bcomnes/homebrew,mattbostock/homebrew,ge11232002/homebrew,afb/homebrew,harsha-mudi/homebrew,jmagnusson/homebrew,a-b/homebrew,mroch/homebrew,torgartor21/homebrew,voxxit/homebrew,ilidar/homebrew,Ivanopalas/homebrew,jsallis/homebrew,boneskull/homebrew,waj/homebrew,elasticdog/homebrew,number5/homebrew,zenazn/homebrew,tkelman/homebrew,egentry/homebrew,kkirsche/homebrew,tobz-nz/homebrew,andrew-regan/homebrew,jamesdphillips/homebrew,rhendric/homebrew,joeyhoer/homebrew,jtrag/homebrew,SuperNEMO-DBD/cadfaelbrew,cvrebert/homebrew,epixa/homebrew,liamstask/homebrew,quantumsteve/homebrew,OlivierParent/homebrew,adamliter/linuxbrew,jessamynsmith/homebrew,yonglehou/homebrew,calmez/homebrew,qskycolor/homebrew,MoSal/homebrew,pdpi/homebrew,josa42/homebrew,boyanpenkov/homebrew,miketheman/homebrew,sublimino/linuxbrew,andy12530/homebrew,princeofdarkness76/linuxbrew,mroch/homebrew,IsmailM/linuxbrew,stoshiya/homebrew,reelsense/homebrew,omriiluz/homebrew,danieroux/homebrew,slnovak/homebrew,hwhelchel/homebrew,Asuranceturix/homebrew,asparagui/homebrew,cjheath/homebrew,fabianfreyer/homebrew,kbinani/homebrew,AntonioMeireles/homebrew,mindrones/homebrew,ptolemarch/homebrew,moyogo/homebrew,Klozz/homebrew,OJFord/homebrew,scorphus/homebrew,alexreg/homebrew,tomas/homebrew,outcoldman/homebrew,sdebnath/homebrew,karlhigley/homebrew,poindextrose/homebrew,packetcollision/homebrew,Gutek/homebrew,robotblake/homebrew,avnit/EGroovy,tany-ovcharenko/depot,Moisan/homebrew,zoltansx/homebrew,pinkpolygon/homebrew,will/homebrew,pedromaltez-forks/homebrew,clemensg/homebrew,linse073/homebrew,schuyler/homebrew,pdpi/homebrew,dholm/linuxbrew,booi/homebrew,YOTOV-LIMITED/homebrew,scardetto/homebrew,hakamadare/homebrew,BrewTestBot/homebrew,prasincs/homebrew,songjizu001/homebrew,cnbin/homebrew,petere/homebrew,justjoheinz/homebrew,klazuka/homebrew,ngoldbaum/homebrew,cristobal/homebrew,craig5/homebrew,superlukas/homebrew,dirn/homebrew,winordie-47/linuxbrew1,retrography/homebrew,davydden/homebrew,mattbostock/homebrew,RadicalZephyr/homebrew,razamatan/homebrew,benswift404/homebrew,aaronwolen/homebrew,gyaresu/homebrew,LegNeato/homebrew,chabhishek123/homebrew,elyscape/homebrew,zebMcCorkle/homebrew,apjanke/homebrew,mattprowse/homebrew,sitexa/homebrew,ento/homebrew,saketkc/linuxbrew,elyscape/homebrew,sideci-sample/sideci-sample-homebrew,cchacin/homebrew,gnawhleinad/homebrew,tkelman/homebrew,polishgeeks/homebrew,soleo/homebrew,hakamadare/homebrew,recruit-tech/homebrew,tjhei/linuxbrew,nysthee/homebrew,blogabe/homebrew,ngoldbaum/homebrew,danpalmer/homebrew,cscetbon/homebrew,afdnlw/linuxbrew,keithws/homebrew,Austinpb/homebrew,number5/homebrew,egentry/homebrew,quantumsteve/homebrew,brunchboy/homebrew,dmarkrollins/homebrew,bl1nk/homebrew,cHoco/homebrew,zoidbergwill/homebrew,elig/homebrew,jbpionnier/homebrew,cosmo0920/homebrew,oncletom/homebrew,2inqui/homebrew,jiashuw/homebrew,recruit-tech/homebrew,dgageot/homebrew,eagleflo/homebrew,NfNitLoop/homebrew,pampata/homebrew,alexandrecormier/homebrew,pnorman/homebrew,tkelman/homebrew,mobileoverlord/homebrew-1,sachiketi/homebrew,yazuuchi/homebrew,dutchcoders/homebrew,Gui13/linuxbrew,zachmayer/homebrew,eighthave/homebrew,lvicentesanchez/linuxbrew,ge11232002/homebrew,rneatherway/homebrew,vinodkone/homebrew,cscetbon/homebrew,pullreq/homebrew,thrifus/homebrew,mjbshaw/homebrew,Hs-Yeah/homebrew,xb123456456/homebrew,gicmo/homebrew,dericed/homebrew,danielmewes/homebrew,brotbert/homebrew,akupila/homebrew,summermk/homebrew,mattfarina/homebrew,6100590/homebrew,kwadade/LearnRuby,qskycolor/homebrew,dolfly/homebrew,miketheman/homebrew,royhodgman/homebrew,koraktor/homebrew,craigbrad/homebrew,Cottser/homebrew,thuai/boxen,giffels/homebrew,idolize/homebrew,tany-ovcharenko/depot,seeden/homebrew,hmalphettes/homebrew,lewismc/homebrew,n8henrie/homebrew,gonzedge/homebrew,rcombs/homebrew,danielfariati/homebrew,tseven/homebrew,rhoffman3621/learn-rails,hyokosdeveloper/linuxbrew,NRauh/homebrew,Originate/homebrew,IsmailM/linuxbrew,drewpc/homebrew,tseven/homebrew,bitrise-io/homebrew,kbrock/homebrew,apjanke/homebrew,anjackson/homebrew,tomguiter/homebrew,Lywangwenbin/homebrew,oncletom/homebrew,khwon/homebrew,grob3/homebrew,SampleLiao/homebrew,chenflat/homebrew,recruit-tech/homebrew,changzuozhen/homebrew,dericed/homebrew,rhunter/homebrew,lmontrieux/homebrew,trajano/homebrew,shazow/homebrew,rneatherway/homebrew,phrase/homebrew,Red54/homebrew,ryanmt/homebrew,adamliter/homebrew,supriyantomaftuh/homebrew,gunnaraasen/homebrew,ianbrandt/homebrew,anarchivist/homebrew,dkotvan/homebrew,coldeasy/homebrew,gabelevi/homebrew,nelstrom/homebrew,Redth/homebrew,danielmewes/homebrew,AtnNn/homebrew,guoxiao/homebrew,brotbert/homebrew,tbetbetbe/linuxbrew,Red54/homebrew,chiefy/homebrew,joeyhoer/homebrew,vinodkone/homebrew,quantumsteve/homebrew,neronplex/homebrew,Monits/homebrew,geoff-codes/homebrew,ieure/homebrew,kawanet/homebrew,filcab/homebrew,englishm/homebrew,dericed/homebrew,DarthGandalf/homebrew,oschwald/homebrew,cesar2535/homebrew,JerroldLee/homebrew,koenrh/homebrew,raphaelcohn/homebrew,Russell91/homebrew,linjunpop/homebrew,indera/homebrew,brunchboy/homebrew,vinicius5581/homebrew,ehogberg/homebrew,Krasnyanskiy/homebrew,xcezx/homebrew,bwmcadams/homebrew,iamcharp/homebrew,polamjag/homebrew,marcoceppi/homebrew,dolfly/homebrew,FiMka/homebrew,zorosteven/homebrew,southwolf/homebrew,drewpc/homebrew,dpalmer93/homebrew,packetcollision/homebrew,arrowcircle/homebrew,alex/homebrew,kbinani/homebrew,jmstacey/homebrew,DoomHammer/linuxbrew,GeekHades/homebrew,gcstang/homebrew,ndimiduk/homebrew,apjanke/homebrew,yangj1e/homebrew,dreid93/homebrew,benswift404/homebrew,WangGL1985/homebrew,elig/homebrew,boshnivolo/homebrew,Moisan/homebrew,jiashuw/homebrew,mbrevda/homebrew,xuebinglee/homebrew,kimhunter/homebrew,craigbrad/homebrew,rstacruz/homebrew,liuquansheng47/Homebrew,DarthGandalf/homebrew,rstacruz/homebrew,kikuchy/homebrew,jehutymax/homebrew,ngoyal/homebrew,dardo82/homebrew,a1dutch/homebrew,frozzare/homebrew,tyrchen/homebrew,thebyrd/homebrew,dmarkrollins/homebrew,ldiqual/homebrew,koraktor/homebrew,tjt263/homebrew,whitej125/homebrew,huitseeker/homebrew,bmroberts1987/homebrew,ctate/autocode-homebrew,davydden/homebrew,pinkpolygon/homebrew,haihappen/homebrew,superlukas/homebrew,jesboat/homebrew,summermk/homebrew,thrifus/homebrew,Gasol/homebrew,zachmayer/homebrew,mjc-/homebrew,emcrisostomo/homebrew,Cottser/homebrew,gnubila-france/linuxbrew,hermansc/homebrew,davydden/linuxbrew,trajano/homebrew,mroch/homebrew,Cutehacks/homebrew,jgelens/homebrew,jianjin/homebrew,rnh/homebrew,kodabb/homebrew,KenanSulayman/homebrew,Homebrew/homebrew,mommel/homebrew,grob3/homebrew,zenazn/homebrew,polamjag/homebrew,galaxy001/homebrew,feuvan/homebrew,xinlehou/homebrew,hvnsweeting/homebrew,TrevorSayre/homebrew,jpsim/homebrew,idolize/homebrew,Krasnyanskiy/homebrew,3van/homebrew,polishgeeks/homebrew,indera/homebrew,Habbie/homebrew,ear/homebrew,iblueer/homebrew,kikuchy/homebrew,ngoldbaum/homebrew,rstacruz/homebrew,YOTOV-LIMITED/homebrew,drewwells/homebrew,danieroux/homebrew,timomeinen/homebrew,arcivanov/linuxbrew,ryanfb/homebrew,dtrebbien/homebrew,xb123456456/homebrew,tomas/linuxbrew,erezny/homebrew,redpen-cc/homebrew,wfarr/homebrew,nju520/homebrew,bbhoss/homebrew,jonas/homebrew,antogg/homebrew,slyphon/homebrew,LonnyGomes/homebrew,mmizutani/homebrew,colindean/homebrew,jacobsa/homebrew,verbitan/homebrew,pgr0ss/homebrew,digiter/linuxbrew,pwnall/homebrew,arnested/homebrew,haihappen/homebrew,felixonmars/homebrew,sportngin/homebrew,dalanmiller/homebrew,LucyShapiro/before-after,petemcw/homebrew,akupila/homebrew,kmiscia/homebrew,ahihi/tigerbrew,elig/homebrew,dholm/linuxbrew,Ivanopalas/homebrew,prasincs/homebrew,sjackman/linuxbrew,jarrettmeyer/homebrew,joschi/homebrew,mattprowse/homebrew,karlhigley/homebrew,cristobal/homebrew,blairham/homebrew,kevinastone/homebrew,Homebrew/homebrew,higanworks/homebrew,AntonioMeireles/homebrew,alexbukreev/homebrew,zj568/homebrew,romejoe/linuxbrew,s6stuc/homebrew,malmaud/homebrew,paulbakker/homebrew,reelsense/linuxbrew,mgiglia/homebrew,tutumcloud/homebrew,reelsense/homebrew,kidaa/homebrew,wfalkwallace/homebrew,Cutehacks/homebrew,h3r2on/homebrew,paulbakker/homebrew,ptolemarch/homebrew,jwatzman/homebrew,rwstauner/homebrew,samthor/homebrew,outcoldman/linuxbrew,gcstang/homebrew,hongkongkiwi/homebrew,otaran/homebrew,lvh/homebrew,felixonmars/homebrew,blairham/homebrew,BlackFrog1/homebrew,kawanet/homebrew,s6stuc/homebrew,n8henrie/homebrew,tomguiter/homebrew,lvicentesanchez/linuxbrew,esamson/homebrew,jf647/homebrew,dlesaca/homebrew,mattprowse/homebrew,tobz-nz/homebrew,pedromaltez-forks/homebrew,tuedan/homebrew,moltar/homebrew,josa42/homebrew,yyn835314557/homebrew,mtfelix/homebrew,bigbes/homebrew,mroth/homebrew,royalwang/homebrew,sublimino/linuxbrew,ExtremeMan/homebrew,amenk/linuxbrew,theopolis/homebrew,zchee/homebrew,totalvoidness/homebrew,feuvan/homebrew,drbenmorgan/linuxbrew,base10/homebrew,scpeters/homebrew,rs/homebrew,skinny-framework/homebrew,ablyler/homebrew,dtrebbien/homebrew,mgiglia/homebrew,Drewshg312/homebrew,jlisic/linuxbrew,geometrybase/homebrew,hwhelchel/homebrew,kwadade/LearnRuby,dstndstn/homebrew,dunn/linuxbrew,swallat/homebrew,tdsmith/linuxbrew,auvi/homebrew,liuquansheng47/Homebrew,voxxit/homebrew,keith/homebrew,timomeinen/homebrew,hyokosdeveloper/linuxbrew,5zzang/homebrew,dholm/homebrew,lemaiyan/homebrew,SnoringFrog/homebrew,wfarr/homebrew,lewismc/homebrew,yonglehou/homebrew,bertjwregeer/homebrew,osimola/homebrew,mtigas/homebrew,creack/homebrew,ericzhou2008/homebrew,darknessomi/homebrew,stoshiya/homebrew,ffleming/homebrew,lucas-clemente/homebrew,superlukas/homebrew,LonnyGomes/homebrew,xanderlent/homebrew,trskop/linuxbrew,dgageot/homebrew,mtigas/homebrew,Firefishy/homebrew,joshfriend/homebrew,giffels/homebrew,harsha-mudi/homebrew,crystal/autocode-homebrew,Noctem/homebrew,a-b/homebrew,onlynone/homebrew,tomekr/homebrew,tutumcloud/homebrew,ahihi/tigerbrew,esamson/homebrew,bkonosky/homebrew,georgschoelly/homebrew,daviddavis/homebrew,influxdb/homebrew,xuebinglee/homebrew,valkjsaaa/homebrew,bendemaree/homebrew,jackmcgreevy/homebrew,thinker0/homebrew,ssp/homebrew,manphiz/homebrew,pcottle/homebrew,3van/homebrew,LaurentFough/homebrew,Monits/homebrew,redpen-cc/homebrew,egentry/homebrew,DoomHammer/linuxbrew,megahall/homebrew,torgartor21/homebrew,jiaoyigui/homebrew,brianmhunt/homebrew,schuyler/homebrew,karlhigley/homebrew,tjt263/homebrew,rlhh/homebrew,mgiglia/homebrew,iblueer/homebrew,dlesaca/homebrew,BlackFrog1/homebrew,cmvelo/homebrew,e-jigsaw/homebrew,Gui13/linuxbrew,flysonic10/homebrew,LeoCavaille/homebrew,totalvoidness/homebrew,cHoco/homebrew,jpascal/homebrew,gvangool/homebrew,dalinaum/homebrew,maxhope/homebrew,sorin-ionescu/homebrew,srikalyan/homebrew,ngoyal/homebrew,mindrones/homebrew,ehogberg/homebrew,cprecioso/homebrew,hanlu-chen/homebrew,davidmalcolm/homebrew,docwhat/homebrew,jasonm23/homebrew,tavisto/homebrew,alindeman/homebrew,kenips/homebrew,jbarker/homebrew,davidcelis/homebrew,tuedan/homebrew,rlister/homebrew,lmontrieux/homebrew,ryanshaw/homebrew,brevilo/linuxbrew,mactkg/homebrew,Gui13/linuxbrew,dconnolly/homebrew,hongkongkiwi/homebrew,martinklepsch/homebrew,josa42/homebrew,bigbes/homebrew,187j3x1/homebrew,kashif/homebrew,kad/homebrew,huitseeker/homebrew,MoSal/homebrew,ldiqual/homebrew,superlukas/homebrew,anjackson/homebrew,wkentaro/homebrew,ortho/homebrew,Homebrew/homebrew,mbrevda/homebrew,gnawhleinad/homebrew,rnh/homebrew,Austinpb/homebrew,henry0312/homebrew,Dreysman/homebrew,adamchainz/homebrew,RadicalZephyr/homebrew,eugenesan/homebrew,summermk/homebrew,bluca/homebrew,eighthave/homebrew,ybott/homebrew,tuxu/homebrew,gunnaraasen/homebrew,dlo/homebrew,alfasapy/homebrew,freedryk/homebrew,voxxit/homebrew,sdebnath/homebrew,dunn/homebrew,boshnivolo/homebrew,haihappen/homebrew,mcolic/homebrew,emilyst/homebrew,AGWA-forks/homebrew,otaran/homebrew,alanthing/homebrew,Hasimir/homebrew,Redth/homebrew,youprofit/homebrew,dalguji/homebrew,Asuranceturix/homebrew,exicon/homebrew,sometimesfood/homebrew,mavimo/homebrew,summermk/homebrew,KenanSulayman/homebrew,ened/homebrew,odekopoon/homebrew,alanthing/homebrew,Asuranceturix/homebrew,jmstacey/homebrew,tjnycum/homebrew,bitrise-io/homebrew,supriyantomaftuh/homebrew,jarrettmeyer/homebrew,iamcharp/homebrew,amenk/linuxbrew,hongkongkiwi/homebrew,tomyun/homebrew,elasticdog/homebrew,ericfischer/homebrew,princeofdarkness76/homebrew,eighthave/homebrew,hanlu-chen/homebrew,indrajitr/homebrew,tonyghita/homebrew,yonglehou/homebrew,missingcharacter/homebrew,jmagnusson/homebrew,hkwan003/homebrew,docwhat/homebrew,CNA-Bld/homebrew,AtnNn/homebrew,mprobst/homebrew,harelba/homebrew,brianmhunt/homebrew,sometimesfood/homebrew,kvs/homebrew,dpalmer93/homebrew,ybott/homebrew,hyokosdeveloper/linuxbrew,sjackman/linuxbrew,ajshort/homebrew,Moisan/homebrew,mbi/homebrew,hanxue/homebrew,danpalmer/homebrew,klatys/homebrew,rgbkrk/homebrew,carlmod/homebrew,vinodkone/homebrew,wrunnery/homebrew,OlivierParent/homebrew,lmontrieux/homebrew,OJFord/homebrew,bettyDes/homebrew,theeternalsw0rd/homebrew,guidomb/homebrew,martinklepsch/homebrew,dkotvan/homebrew,seegno-forks/homebrew,craig5/homebrew,dpalmer93/homebrew,MrChen2015/homebrew,frodeaa/homebrew,simsicon/homebrew,karlhigley/homebrew,e-jigsaw/homebrew,LegNeato/homebrew,anjackson/homebrew,caijinyan/homebrew,utzig/homebrew,avnit/EGroovy,ianbrandt/homebrew,sigma-random/homebrew,mhartington/homebrew,mpfz0r/homebrew,jackmcgreevy/homebrew,caputomarcos/linuxbrew,ekmett/homebrew,jacobsa/homebrew,sorin-ionescu/homebrew,yyn835314557/homebrew,hanxue/homebrew,saketkc/linuxbrew,zj568/homebrew,khwon/homebrew,mndrix/homebrew,crystal/autocode-homebrew,caijinyan/homebrew,oliviertilmans/homebrew,gcstang/linuxbrew,10sr/linuxbrew,bkonosky/homebrew,yyn835314557/homebrew,AntonioMeireles/homebrew,boshnivolo/homebrew,georgschoelly/homebrew,ssgelm/homebrew,lhahne/homebrew,dconnolly/homebrew,kalbasit/homebrew,Moisan/homebrew,chkuendig/homebrew,PikachuEXE/homebrew,esalling23/homebrew,xyproto/homebrew,Sachin-Ganesh/homebrew,baob/homebrew,PikachuEXE/homebrew,scpeters/homebrew,Redth/homebrew,jwillemsen/homebrew,tehmaze-labs/homebrew,zoltansx/homebrew,smarek/homebrew,sdebnath/homebrew,anders/homebrew,creationix/homebrew,sdebnath/homebrew,ssp/homebrew,mmizutani/homebrew,arg/homebrew,martinklepsch/homebrew,Austinpb/homebrew,paour/homebrew,kyanny/homebrew,oneillkza/linuxbrew,kilojoules/homebrew,Linuxbrew/linuxbrew,cjheath/homebrew,aguynamedryan/homebrew,zorosteven/homebrew,afb/homebrew,frickler01/homebrew,psibre/homebrew,khwon/homebrew,dunn/homebrew,megahall/homebrew,bendoerr/homebrew,tzudot/homebrew,halloleo/homebrew,ilovezfs/homebrew,dlo/homebrew,mroth/homebrew,baldwicc/homebrew,jsjohnst/homebrew,maxhope/homebrew,LinusU/homebrew,iandennismiller/homebrew,MrChen2015/homebrew,ainstushar/homebrew,soleo/homebrew,hmalphettes/homebrew,rgbkrk/homebrew,filcab/homebrew,pdxdan/homebrew,lewismc/homebrew,erezny/homebrew,huitseeker/homebrew,pgr0ss/homebrew,jesboat/homebrew,heinzf/homebrew,buzzedword/homebrew,RadicalZephyr/homebrew,tonyghita/homebrew,CNA-Bld/homebrew,OlivierParent/homebrew,feelpp/homebrew,brendanator/linuxbrew,dirn/homebrew,koenrh/homebrew,jbpionnier/homebrew,deorth/homebrew,tomekr/homebrew,cchacin/homebrew,bitrise-io/homebrew,MartinSeeler/homebrew,treyharris/homebrew,alfasapy/homebrew,polishgeeks/homebrew,tylerball/homebrew,xurui3762791/homebrew,markpeek/homebrew,wadejong/homebrew,yidongliu/homebrew,tomas/linuxbrew,grob3/homebrew,Russell91/homebrew,rhendric/homebrew,youtux/homebrew,arrowcircle/homebrew,calmez/homebrew,missingcharacter/homebrew,freedryk/homebrew,ajshort/homebrew,drewpc/homebrew,mobileoverlord/homebrew-1,tghs/linuxbrew,mjc-/homebrew,shawndellysse/homebrew,verdurin/homebrew,aristiden7o/homebrew,Gasol/homebrew,mbi/homebrew,sakra/homebrew,nelstrom/homebrew,hikaruworld/homebrew,lousama/homebrew,rneatherway/homebrew,xyproto/homebrew,ariscop/homebrew,jmtd/homebrew,kazuho/homebrew,eugenesan/homebrew,LeonB/linuxbrew,jamer/homebrew,Linuxbrew/linuxbrew,indrajitr/homebrew,tdsmith/linuxbrew,davidcelis/homebrew,getgauge/homebrew,sje30/homebrew,LeoCavaille/homebrew,lvicentesanchez/linuxbrew,NRauh/homebrew,erezny/homebrew,mprobst/homebrew,bidle/homebrew,mactkg/homebrew,sarvex/linuxbrew,joschi/homebrew,wfalkwallace/homebrew,baob/homebrew,sferik/homebrew,MonCoder/homebrew,tzudot/homebrew,darknessomi/homebrew,yoshida-mediba/homebrew,Chilledheart/homebrew,thebyrd/homebrew,jwillemsen/linuxbrew,yumitsu/homebrew,feelpp/homebrew,ryanfb/homebrew,chfast/homebrew,silentbicycle/homebrew,DoomHammer/linuxbrew,gabelevi/homebrew,sugryo/homebrew,ahihi/tigerbrew,callahad/homebrew,dickeyxxx/homebrew,mapbox/homebrew,kikuchy/homebrew,hkwan003/homebrew,trskop/linuxbrew,pvrs12/homebrew,cooltheo/homebrew,dericed/homebrew,antogg/homebrew,ryanfb/homebrew,sublimino/linuxbrew,hanlu-chen/homebrew,nicowilliams/homebrew,haosdent/homebrew,grob3/homebrew,sugryo/homebrew,MartinDelille/homebrew,qiruiyin/homebrew,lucas-clemente/homebrew,pwnall/homebrew,pcottle/homebrew,feuvan/homebrew,JerroldLee/homebrew,bkonosky/homebrew,cscetbon/homebrew,shazow/homebrew,jiaoyigui/homebrew,thuai/boxen,kim0/homebrew,pvrs12/homebrew,dreid93/homebrew,jedahan/homebrew,zachmayer/homebrew,bbhoss/homebrew,osimola/homebrew,lvh/homebrew,ericfischer/homebrew,mxk1235/homebrew,vinicius5581/homebrew,bmroberts1987/homebrew,tschoonj/homebrew,justjoheinz/homebrew,mtigas/homebrew,elamc/homebrew,adriancole/homebrew,danabrand/linuxbrew,jab/homebrew,jingweno/homebrew,chabhishek123/homebrew,187j3x1/homebrew,georgschoelly/homebrew,idolize/homebrew,gcstang/homebrew,mroch/homebrew,MartinDelille/homebrew,vigo/homebrew,adriancole/homebrew,feugenix/homebrew,chabhishek123/homebrew,moyogo/homebrew,xanderlent/homebrew,xanderlent/homebrew,tbeckham/homebrew,clemensg/homebrew,patrickmckenna/homebrew,akshayvaidya/homebrew,emcrisostomo/homebrew,treyharris/homebrew,Ferrari-lee/homebrew,zj568/homebrew,jbaum98/linuxbrew,blogabe/homebrew,qorelanguage/homebrew,ctate/autocode-homebrew,mxk1235/homebrew,oschwald/homebrew,amenk/linuxbrew,mbi/homebrew,marcoceppi/homebrew,stevenjack/homebrew,davidmalcolm/homebrew,scpeters/homebrew,sptramer/homebrew,southwolf/homebrew,Habbie/homebrew,bukzor/homebrew,digiter/linuxbrew,jamer/homebrew,schuyler/homebrew,rlhh/homebrew,cmvelo/homebrew,amarshall/homebrew,jwatzman/homebrew,nju520/homebrew,valkjsaaa/homebrew,adamliter/linuxbrew,whitej125/homebrew,geoff-codes/homebrew,helloworld-zh/homebrew,miry/homebrew,tuxu/homebrew,morevalily/homebrew,silentbicycle/homebrew,zfarrell/homebrew,tseven/homebrew,GeekHades/homebrew,virtuald/homebrew,harelba/homebrew,huitseeker/homebrew,adamliter/linuxbrew,bchatard/homebrew,lemaiyan/homebrew,supriyantomaftuh/homebrew,ianbrandt/homebrew,influxdata/homebrew,timomeinen/homebrew,benswift404/homebrew,ened/homebrew,drewwells/homebrew,digiter/linuxbrew,John-Colvin/homebrew,tyrchen/homebrew,NfNitLoop/homebrew,jbeezley/homebrew,alexethan/homebrew,alex/homebrew,englishm/homebrew,lvh/homebrew,dai0304/homebrew,aristiden7o/homebrew,Gui13/linuxbrew,jsallis/homebrew,justjoheinz/homebrew,bl1nk/homebrew,kbinani/homebrew,xyproto/homebrew,OJFord/homebrew,nandub/homebrew,mcolic/homebrew,lvicentesanchez/homebrew,1zaman/homebrew,atsjj/homebrew,oliviertoupin/homebrew,6100590/homebrew,rtyley/homebrew,darknessomi/homebrew,barn/homebrew,antst/homebrew,linkinpark342/homebrew,zeezey/homebrew,sometimesfood/homebrew,Spacecup/homebrew,Cottser/homebrew,Drewshg312/homebrew,gijzelaerr/homebrew,akupila/homebrew,mxk1235/homebrew,jasonm23/homebrew,samplecount/homebrew,Homebrew/homebrew,mndrix/homebrew,marcusandre/homebrew,nysthee/homebrew,Monits/homebrew,WangGL1985/homebrew,guidomb/homebrew,drewpc/homebrew,Asuranceturix/homebrew,jwillemsen/homebrew,LeoCavaille/homebrew,RandyMcMillan/homebrew,vigo/homebrew,tsaeger/homebrew,danabrand/linuxbrew,wfalkwallace/homebrew,stevenjack/homebrew,kyanny/homebrew,Homebrew/linuxbrew,vihangm/homebrew,romejoe/linuxbrew,baob/homebrew,menivaitsi/homebrew,pigoz/homebrew,GeekHades/homebrew,menivaitsi/homebrew,neronplex/homebrew,trskop/linuxbrew,boneskull/homebrew,giffels/homebrew,mroth/homebrew,JerroldLee/homebrew,ortho/homebrew,wkentaro/homebrew,youprofit/homebrew,mobileoverlord/homebrew-1,smarek/homebrew,bendemaree/homebrew,hvnsweeting/homebrew,verdurin/homebrew,fabianfreyer/homebrew,sidhart/homebrew,arcivanov/linuxbrew,ge11232002/homebrew,hmalphettes/homebrew,knpwrs/homebrew,caputomarcos/linuxbrew,ldiqual/homebrew,kilojoules/homebrew,oschwald/homebrew,John-Colvin/homebrew,imjerrybao/homebrew,gildegoma/homebrew,number5/homebrew,Habbie/homebrew,galaxy001/homebrew,kwilczynski/homebrew,mattfritz/homebrew,scardetto/homebrew,thos37/homebrew,haosdent/homebrew,arg/homebrew,Cutehacks/homebrew,catap/homebrew,jehutymax/homebrew,creack/homebrew,adamliter/homebrew,andreyto/homebrew,alexandrecormier/homebrew,Kentzo/homebrew,jeromeheissler/homebrew,influxdata/homebrew,tyrchen/homebrew,sdebnath/homebrew,yidongliu/homebrew,osimola/homebrew,Hs-Yeah/homebrew,dtan4/homebrew,hakamadare/homebrew,rcombs/homebrew,kbrock/homebrew,lnr0626/homebrew,helloworld-zh/homebrew,elasticdog/homebrew,dkotvan/homebrew,skatsuta/homebrew,nshemonsky/homebrew,gawbul/homebrew,flysonic10/homebrew,1zaman/homebrew,morevalily/homebrew,iggyvolz/linuxbrew,dmarkrollins/homebrew,antst/homebrew,halloleo/homebrew,MartinDelille/homebrew,bidle/homebrew,andyshinn/homebrew,zorosteven/homebrew,gicmo/homebrew,mpfz0r/homebrew,youtux/homebrew,DarthGandalf/homebrew,mpfz0r/homebrew,iblueer/homebrew,lnr0626/homebrew,ericzhou2008/homebrew,ebardsley/homebrew,alex-courtis/homebrew,barn/homebrew,bluca/homebrew,iamcharp/homebrew,oliviertoupin/homebrew,AlexejK/homebrew,mgiglia/homebrew,vigo/homebrew,ebouaziz/linuxbrew,mathieubolla/homebrew,zchee/homebrew,zfarrell/homebrew,trajano/homebrew,indrajitr/homebrew,jwatzman/homebrew,bright-sparks/homebrew,drewwells/homebrew,Cottser/homebrew,jf647/homebrew,samthor/homebrew,jeremiahyan/homebrew,godu/homebrew,gonzedge/homebrew,zoidbergwill/homebrew,cnbin/homebrew,kimhunter/homebrew,jpscaletti/homebrew,jmtd/homebrew,keith/homebrew,youprofit/homebrew,bluca/homebrew,psibre/homebrew,jcassiojr/homebrew,ebouaziz/linuxbrew,dutchcoders/homebrew,bruno-/homebrew,skatsuta/homebrew,ieure/homebrew,jconley/homebrew,hyuni/homebrew,tschoonj/homebrew,kyanny/homebrew,cHoco/homebrew,andy12530/homebrew,plattenschieber/homebrew,klazuka/homebrew,AICIDNN/homebrew,knpwrs/homebrew,onlynone/homebrew,sje30/homebrew,erkolson/homebrew,knpwrs/homebrew,wolfd/homebrew,Ferrari-lee/homebrew,ilovezfs/homebrew,linkinpark342/homebrew,koenrh/homebrew,amjith/homebrew,brunchboy/homebrew,tschoonj/homebrew,jf647/homebrew,theeternalsw0rd/homebrew,peteristhegreat/homebrew,afdnlw/linuxbrew,chiefy/homebrew,creack/homebrew,phrase/homebrew,SampleLiao/homebrew,optikfluffel/homebrew,qskycolor/homebrew,dirn/homebrew,tjhei/linuxbrew,jpsim/homebrew,kim0/homebrew,jgelens/homebrew,ehogberg/homebrew,ktheory/homebrew,verbitan/homebrew,higanworks/homebrew,akshayvaidya/homebrew,protomouse/homebrew,reelsense/linuxbrew,iandennismiller/homebrew,rgbkrk/homebrew,cvrebert/homebrew,pitatensai/homebrew,karlhigley/homebrew,qiruiyin/homebrew,Kentzo/homebrew,SiegeLord/homebrew,int3h/homebrew,yumitsu/homebrew,rstacruz/homebrew,zfarrell/homebrew,mactkg/homebrew,syhw/homebrew,TrevorSayre/homebrew,soleo/homebrew,verbitan/homebrew,base10/homebrew,linse073/homebrew,julienXX/homebrew,LucyShapiro/before-after,tstack/homebrew,jpsim/homebrew,LegNeato/homebrew,SteveClement/homebrew,e-jigsaw/homebrew,dstndstn/homebrew,jpascal/homebrew,wfarr/homebrew,hkwan003/homebrew,ctate/autocode-homebrew,bukzor/linuxbrew,getgauge/homebrew,pullreq/homebrew,glowe/homebrew,tomas/linuxbrew,bigbes/homebrew,packetcollision/homebrew,jamer/homebrew,gunnaraasen/homebrew,10sr/linuxbrew,virtuald/homebrew,hermansc/homebrew,ehamberg/homebrew,iggyvolz/linuxbrew,xcezx/homebrew,danielfariati/homebrew,Gasol/homebrew,ls2uper/homebrew,LeonB/linuxbrew,LaurentFough/homebrew,haosdent/homebrew,BlackFrog1/homebrew,YOTOV-LIMITED/homebrew,robrix/homebrew,AtkinsChang/homebrew,tomekr/homebrew,indrajitr/homebrew,pigri/homebrew,BrewTestBot/homebrew,halloleo/homebrew,feugenix/homebrew,rhunter/homebrew,int3h/homebrew,hyuni/homebrew,auvi/homebrew,flysonic10/homebrew,princeofdarkness76/homebrew,liamstask/homebrew,Chilledheart/homebrew,gonzedge/homebrew,mattfarina/homebrew,gcstang/linuxbrew,catap/homebrew,dmarkrollins/homebrew,alex/homebrew,kkirsche/homebrew,ilovezfs/homebrew,yumitsu/homebrew,okuramasafumi/homebrew,markpeek/homebrew,zchee/homebrew,tjt263/homebrew,gvangool/homebrew,tuxu/homebrew,sitexa/homebrew,moltar/homebrew,mndrix/homebrew,fabianschuiki/homebrew,harelba/homebrew,srikalyan/homebrew,frickler01/homebrew,schuyler/homebrew,mattfritz/homebrew,carlmod/homebrew,tonyghita/homebrew,dstftw/homebrew,grepnull/homebrew,peteristhegreat/homebrew,yazuuchi/homebrew,mbrevda/homebrew,gnubila-france/linuxbrew,bbhoss/homebrew,virtuald/homebrew,jonafato/homebrew,dlo/homebrew,bkonosky/homebrew,Cottser/homebrew,wrunnery/homebrew,jkarneges/homebrew,ear/homebrew,scpeters/homebrew,dolfly/homebrew,klazuka/homebrew,ktaragorn/homebrew,SuperNEMO-DBD/cadfaelbrew,ktheory/homebrew,amarshall/homebrew,seeden/homebrew,ear/homebrew,chenflat/homebrew,timsutton/homebrew,TaylorMonacelli/homebrew,sublimino/linuxbrew,Noctem/homebrew,ingmarv/homebrew,Linuxbrew/linuxbrew,reelsense/linuxbrew,arrowcircle/homebrew,jessamynsmith/homebrew,mhartington/homebrew,RSamokhin/homebrew,dpalmer93/homebrew,miketheman/homebrew,zfarrell/homebrew,kazuho/homebrew,samplecount/homebrew,tavisto/homebrew,seegno-forks/homebrew,sferik/homebrew,ge11232002/homebrew,ajshort/homebrew,Sachin-Ganesh/homebrew,bidle/homebrew,Spacecup/homebrew,rhoffman3621/learn-rails,pdpi/homebrew,imjerrybao/homebrew,ls2uper/homebrew,AICIDNN/homebrew,odekopoon/homebrew,justjoheinz/homebrew,joeyhoer/homebrew,alanthing/homebrew,pcottle/homebrew,gyaresu/homebrew,OJFord/homebrew,marcwebbie/homebrew,joshfriend/homebrew,syhw/homebrew,klatys/homebrew,a-b/homebrew,bidle/homebrew,lnr0626/homebrew,gnawhleinad/homebrew,plattenschieber/homebrew,theckman/homebrew,LegNeato/homebrew,marcelocantos/homebrew,sigma-random/homebrew,dongcarl/homebrew,ExtremeMan/homebrew,glowe/homebrew,jbarker/homebrew,ryanshaw/homebrew,theopolis/homebrew,linkinpark342/homebrew,davidmalcolm/homebrew,gawbul/homebrew,andy12530/homebrew,qorelanguage/homebrew,kazuho/homebrew,jose-cieni-movile/homebrew,feelpp/homebrew,jacobsa/homebrew,ingmarv/homebrew,royalwang/homebrew,kwilczynski/homebrew,tomas/homebrew,Govinda-Fichtner/homebrew,alindeman/homebrew,ybott/homebrew,utzig/homebrew,ainstushar/homebrew,LeonB/linuxbrew,mapbox/homebrew,sidhart/homebrew,SnoringFrog/homebrew,guoxiao/homebrew,pcottle/homebrew,kvs/homebrew,eagleflo/homebrew,jmtd/homebrew,gnubila-france/linuxbrew,crystal/autocode-homebrew,filcab/homebrew,esamson/homebrew,iostat/homebrew2,qiruiyin/homebrew,ebardsley/homebrew,decors/homebrew,aaronwolen/homebrew,mindrones/homebrew,cnbin/homebrew,mattfritz/homebrew,hakamadare/homebrew,hmalphettes/homebrew,shawndellysse/homebrew,brunchboy/homebrew,Originate/homebrew,ralic/homebrew,liuquansheng47/Homebrew,protomouse/homebrew,gunnaraasen/homebrew,kenips/homebrew,malmaud/homebrew,jack-and-rozz/linuxbrew,smarek/homebrew,alexbukreev/homebrew,mpfz0r/homebrew,docwhat/homebrew,mhartington/homebrew,waynegraham/homebrew,AtkinsChang/homebrew,decors/homebrew,goodcodeguy/homebrew,craig5/homebrew,jonafato/homebrew,pwnall/homebrew,wolfd/homebrew,stevenjack/homebrew,antst/homebrew,kashif/homebrew,sferik/homebrew,valkjsaaa/homebrew,galaxy001/homebrew,AlekSi/homebrew,rs/homebrew,buzzedword/homebrew,AlexejK/homebrew,tsaeger/homebrew,frodeaa/homebrew,Zearin/homebrew,iostat/homebrew2,oubiwann/homebrew,mjbshaw/homebrew,drbenmorgan/linuxbrew,QuinnyPig/homebrew,feugenix/homebrew,arnested/homebrew,ajshort/homebrew,WangGL1985/homebrew,AICIDNN/homebrew,MSch/homebrew,tbeckham/homebrew,bendoerr/homebrew,paour/homebrew,joshua-rutherford/homebrew,tomas/homebrew,okuramasafumi/homebrew,kazuho/homebrew,erezny/homebrew,eugenesan/homebrew,mroth/homebrew,yoshida-mediba/homebrew,sptramer/homebrew,oubiwann/homebrew,kad/homebrew,ryanshaw/homebrew,davydden/linuxbrew,kyanny/homebrew,codeout/homebrew,rhendric/homebrew,utzig/homebrew,mkrapp/homebrew,LaurentFough/homebrew,marcwebbie/homebrew,jamesdphillips/homebrew,ralic/homebrew,tghs/linuxbrew,hwhelchel/homebrew,lvicentesanchez/homebrew,jose-cieni-movile/homebrew,emilyst/homebrew,miketheman/homebrew,sugryo/homebrew,cosmo0920/homebrew,tehmaze-labs/homebrew,nkolomiec/homebrew,adriancole/homebrew,dongcarl/homebrew,Angeldude/linuxbrew,alexreg/homebrew,tonyghita/homebrew,skatsuta/homebrew,kimhunter/homebrew,thuai/boxen,francaguilar/homebrew,whistlerbrk/homebrew,amjith/homebrew,boyanpenkov/homebrew,supriyantomaftuh/homebrew,pinkpolygon/homebrew,Chilledheart/homebrew,optikfluffel/homebrew,bukzor/linuxbrew,freedryk/homebrew,tdsmith/linuxbrew,ls2uper/homebrew,MrChen2015/homebrew,lvh/homebrew,trombonehero/homebrew,cosmo0920/homebrew,caijinyan/homebrew,gabelevi/homebrew,jgelens/homebrew,brianmhunt/homebrew,liamstask/homebrew,jpascal/homebrew,AtnNn/homebrew,scardetto/homebrew,kkirsche/homebrew,marcusandre/homebrew,tavisto/homebrew,samplecount/homebrew,colindean/homebrew,bl1nk/homebrew,denvazh/homebrew,missingcharacter/homebrew,ingmarv/homebrew,grmartin/homebrew,bjlxj2008/homebrew,kim0/homebrew,thinker0/homebrew,polamjag/homebrew,phrase/homebrew,LaurentFough/homebrew,outcoldman/homebrew,booi/homebrew,wrunnery/homebrew,yazuuchi/homebrew,exicon/homebrew,keithws/homebrew,jwillemsen/linuxbrew,wrunnery/homebrew,xurui3762791/homebrew,bcwaldon/homebrew,sarvex/linuxbrew,cbeck88/linuxbrew,marcwebbie/homebrew,rtyley/homebrew,mindrones/homebrew,kodabb/homebrew,songjizu001/homebrew,stoshiya/homebrew,swallat/homebrew,lrascao/homebrew,moyogo/homebrew,sidhart/homebrew,antst/homebrew,pitatensai/homebrew,tylerball/homebrew,dolfly/homebrew,alanthing/homebrew,eagleflo/homebrew,h3r2on/homebrew,jlisic/linuxbrew,pgr0ss/homebrew,antst/homebrew,mommel/homebrew,getgauge/homebrew,Cutehacks/homebrew,nicowilliams/homebrew,treyharris/homebrew,Red54/homebrew,ekmett/homebrew,thinker0/homebrew,rwstauner/homebrew,DDShadoww/homebrew,mttrb/homebrew,onlynone/homebrew,ehamberg/homebrew,gyaresu/homebrew,jingweno/homebrew,megahall/homebrew,AGWA-forks/homebrew,bjorand/homebrew,razamatan/homebrew,zoidbergwill/homebrew,calmez/homebrew,vihangm/homebrew,thos37/homebrew,slyphon/homebrew,bl1nk/homebrew,rhunter/homebrew,thebyrd/homebrew,cvrebert/homebrew,DDShadoww/homebrew,djun-kim/homebrew,lhahne/homebrew,barn/homebrew,waynegraham/homebrew,soleo/homebrew,ened/homebrew,max-horvath/homebrew,aaronwolen/homebrew,wangranche/homebrew,Angeldude/linuxbrew,amenk/linuxbrew,dickeyxxx/homebrew,caputomarcos/linuxbrew,DDShadoww/homebrew,osimola/homebrew,bidle/homebrew,jonafato/homebrew,cesar2535/homebrew,robotblake/homebrew,cffk/homebrew,mtfelix/homebrew,teslamint/homebrew,rneatherway/homebrew,eugenesan/homebrew,bjlxj2008/homebrew,windoze/homebrew,marcwebbie/homebrew,jtrag/homebrew,QuinnyPig/homebrew,moltar/homebrew,creack/homebrew,kawanet/homebrew,ktaragorn/homebrew,haf/homebrew,treyharris/homebrew,baldwicc/homebrew,zebMcCorkle/homebrew,anarchivist/homebrew,jackmcgreevy/homebrew,RandyMcMillan/homebrew,Hs-Yeah/homebrew,ndimiduk/homebrew,int3h/homebrew,Lywangwenbin/homebrew,Hasimir/homebrew,BrewTestBot/homebrew,liamstask/homebrew,Drewshg312/homebrew,mbi/homebrew,guidomb/homebrew,chkuendig/homebrew,nandub/homebrew,kevmoo/homebrew,zeha/homebrew,menivaitsi/homebrew,woodruffw/homebrew-test,sock-puppet/homebrew,dstftw/homebrew,baldwicc/homebrew,danpalmer/homebrew,teslamint/homebrew,phrase/homebrew,tuedan/homebrew,oliviertilmans/homebrew,rwstauner/homebrew,bcwaldon/homebrew,dunn/linuxbrew,pigoz/homebrew,MSch/homebrew,kenips/homebrew,mjbshaw/homebrew,woodruffw/homebrew-test,ryanshaw/homebrew,dreid93/homebrew,zabawaba99/homebrew,Originate/homebrew,ktaragorn/homebrew,sferik/homebrew,pvrs12/homebrew,calmez/homebrew,sakra/homebrew,kashif/homebrew,RadicalZephyr/homebrew,yangj1e/homebrew,influxdata/homebrew,hikaruworld/homebrew,mtfelix/homebrew,creationix/homebrew,sportngin/homebrew,BlackFrog1/homebrew,jbpionnier/homebrew,malmaud/homebrew,lewismc/homebrew,mroth/homebrew,ablyler/homebrew,bigbes/homebrew,creationix/homebrew,n8henrie/homebrew,totalvoidness/homebrew,jiashuw/homebrew,thuai/boxen,afb/homebrew,gicmo/homebrew,2inqui/homebrew,saketkc/linuxbrew,nandub/homebrew,2inqui/homebrew,johanhammar/homebrew,Gui13/linuxbrew,ehamberg/homebrew,emilyst/homebrew,skinny-framework/homebrew,protomouse/homebrew,Russell91/homebrew,manphiz/homebrew,zabawaba99/homebrew,bettyDes/homebrew,menivaitsi/homebrew,coldeasy/homebrew,haf/homebrew,nnutter/homebrew,woodruffw/homebrew-test,frozzare/homebrew,princeofdarkness76/linuxbrew,lvicentesanchez/homebrew,joschi/homebrew,omriiluz/homebrew,haf/homebrew,danabrand/linuxbrew,LegNeato/homebrew,thejustinwalsh/homebrew,hvnsweeting/homebrew,davidcelis/homebrew,rhoffman3621/learn-rails,anders/homebrew,tstack/homebrew,bukzor/homebrew,tuxu/homebrew,patrickmckenna/homebrew,alindeman/homebrew,SteveClement/homebrew,utzig/homebrew,ngoyal/homebrew,maxhope/homebrew,Redth/homebrew,jsjohnst/homebrew,dambrisco/homebrew,mttrb/homebrew,benesch/homebrew,outcoldman/homebrew,dtan4/homebrew,jack-and-rozz/linuxbrew,jbpionnier/homebrew,goodcodeguy/homebrew,johanhammar/homebrew,tany-ovcharenko/depot,ldiqual/homebrew,Krasnyanskiy/homebrew,winordie-47/linuxbrew1,WangGL1985/homebrew,rosalsm/homebrew,bluca/homebrew,xb123456456/homebrew,markpeek/homebrew,kvs/homebrew,mommel/homebrew,LucyShapiro/before-after,TaylorMonacelli/homebrew,michaKFromParis/homebrew-sparks,atsjj/homebrew,sideci-sample/sideci-sample-homebrew,gildegoma/homebrew,waj/homebrew,Firefishy/homebrew,harelba/homebrew,mcolic/homebrew,theckman/homebrew,colindean/homebrew,markpeek/homebrew,h3r2on/homebrew,ilidar/homebrew,creationix/homebrew,dlesaca/homebrew,bendoerr/homebrew,pnorman/homebrew,quantumsteve/homebrew,adamchainz/homebrew,poindextrose/homebrew,rillian/homebrew,scorphus/homebrew,sigma-random/homebrew,jf647/homebrew,influxdata/homebrew,zachmayer/homebrew,georgschoelly/homebrew,catap/homebrew,afh/homebrew,auvi/homebrew,englishm/homebrew,petemcw/homebrew,iostat/homebrew2,kodabb/homebrew,catap/homebrew,klatys/homebrew,Zearin/homebrew,cprecioso/homebrew,cjheath/homebrew,marcoceppi/homebrew,patrickmckenna/homebrew,rlister/homebrew,mtfelix/homebrew,sock-puppet/homebrew,skinny-framework/homebrew,jcassiojr/homebrew,erkolson/homebrew,pampata/homebrew,wfarr/homebrew,6100590/homebrew,virtuald/homebrew,dconnolly/homebrew,shawndellysse/homebrew,cbeck88/linuxbrew,sometimesfood/homebrew,tsaeger/homebrew,jesboat/homebrew,rstacruz/homebrew,dardo82/homebrew,MartinSeeler/homebrew,kkirsche/homebrew,ndimiduk/homebrew,guidomb/homebrew,marcelocantos/homebrew,jiaoyigui/homebrew,robrix/homebrew,bchatard/homebrew,Noctem/homebrew,dplarson/homebrew,tomguiter/homebrew,omriiluz/homebrew,lousama/homebrew,verbitan/homebrew,kevmoo/homebrew,kimhunter/homebrew,goodcodeguy/homebrew,finde/homebrew,cbenhagen/homebrew,SampleLiao/homebrew,ryanmt/homebrew,lvicentesanchez/homebrew,jonas/homebrew,tghs/linuxbrew,anarchivist/homebrew,FiMka/homebrew,alebcay/homebrew,rhunter/homebrew,hanlu-chen/homebrew,digiter/linuxbrew,swallat/homebrew,mhartington/homebrew,benswift404/homebrew,slyphon/homebrew,alex-courtis/homebrew,akshayvaidya/homebrew,codeout/homebrew,IsmailM/linuxbrew,jmstacey/homebrew,geoff-codes/homebrew,saketkc/linuxbrew,patrickmckenna/homebrew,saketkc/homebrew,5zzang/homebrew,alex/homebrew,onlynone/homebrew,1zaman/homebrew,zoidbergwill/homebrew,QuinnyPig/homebrew,dambrisco/homebrew,xurui3762791/homebrew,AlekSi/homebrew,kwilczynski/homebrew,southwolf/homebrew,mjc-/homebrew,grmartin/homebrew,dtan4/homebrew,dutchcoders/homebrew,prasincs/homebrew,zj568/homebrew,hanxue/homebrew,torgartor21/homebrew,optikfluffel/homebrew,yyn835314557/homebrew,AtkinsChang/homebrew,sock-puppet/homebrew,denvazh/homebrew,dambrisco/homebrew,carlmod/homebrew,nshemonsky/homebrew,ehogberg/homebrew,jmstacey/homebrew,sptramer/homebrew,jingweno/homebrew,mkrapp/homebrew,marcusandre/homebrew,barn/homebrew,higanworks/homebrew,neronplex/homebrew,cprecioso/homebrew,cosmo0920/homebrew,rnh/homebrew,theopolis/homebrew,h3r2on/homebrew,blogabe/homebrew,telamonian/linuxbrew,wolfd/homebrew,boneskull/homebrew,mattbostock/homebrew,frickler01/homebrew,iblueer/homebrew,tbeckham/homebrew,will/homebrew,jbaum98/linuxbrew,heinzf/homebrew,nelstrom/homebrew,vladshablinsky/homebrew,cristobal/homebrew,peteristhegreat/homebrew,AntonioMeireles/homebrew,number5/homebrew,mbrevda/homebrew,silentbicycle/homebrew,chenflat/homebrew,xanderlent/homebrew,jbarker/homebrew,sachiketi/homebrew,jpascal/homebrew,MSch/homebrew,tkelman/homebrew,mapbox/homebrew,pwnall/homebrew,esalling23/homebrew,gildegoma/homebrew,jsallis/homebrew,jeffmo/homebrew,zhimsel/homebrew,dplarson/homebrew,joschi/homebrew,elgertam/homebrew,harsha-mudi/homebrew,hongkongkiwi/homebrew,arnested/homebrew,stevenjack/homebrew,vihangm/homebrew,woodruffw/homebrew-test,sportngin/homebrew,mjc-/homebrew,mprobst/homebrew,tobz-nz/homebrew,AlekSi/homebrew,oliviertilmans/homebrew,andyshinn/homebrew,ento/homebrew,rlhh/homebrew,SuperNEMO-DBD/cadfaelbrew,jcassiojr/homebrew,Kentzo/homebrew,tehmaze-labs/homebrew,benjaminfrank/homebrew,paour/homebrew,oliviertoupin/homebrew,Gutek/homebrew,durka/homebrew,Hasimir/homebrew,mndrix/homebrew,IsmailM/linuxbrew,chiefy/homebrew,daviddavis/homebrew,kbrock/homebrew,pdxdan/homebrew,skinny-framework/homebrew,sigma-random/homebrew,deployable/homebrew,dai0304/homebrew,lhahne/homebrew,rosalsm/homebrew,zhipeng-jia/homebrew,sachiketi/homebrew,thejustinwalsh/homebrew,vladshablinsky/homebrew,felixonmars/homebrew,jonas/homebrew,cnbin/homebrew,Zearin/homebrew,davydden/linuxbrew,ariscop/homebrew,hwhelchel/homebrew,razamatan/homebrew,morevalily/homebrew,qorelanguage/homebrew,zabawaba99/homebrew,amjith/homebrew,epixa/homebrew,godu/homebrew,frodeaa/homebrew,nicowilliams/homebrew,jsjohnst/homebrew,boshnivolo/homebrew,MartinSeeler/homebrew,sakra/homebrew,kalbasit/homebrew,sitexa/homebrew,chadcatlett/homebrew,bcomnes/homebrew,yoshida-mediba/homebrew,ExtremeMan/homebrew,waynegraham/homebrew,dirn/homebrew,elyscape/homebrew,rtyley/homebrew,joshua-rutherford/homebrew,bruno-/homebrew,notDavid/homebrew,thos37/homebrew,dunn/homebrew,sarvex/linuxbrew,fabianfreyer/homebrew,oubiwann/homebrew,wadejong/homebrew,linse073/homebrew,kevinastone/homebrew,caputomarcos/linuxbrew,bchatard/homebrew,tomguiter/homebrew,robrix/homebrew,xyproto/homebrew,ryanmt/homebrew,poindextrose/homebrew,wolfd/homebrew,marcusandre/homebrew,bettyDes/homebrew,odekopoon/homebrew,Homebrew/linuxbrew,zhimsel/homebrew,AGWA-forks/homebrew,francaguilar/homebrew,afdnlw/linuxbrew,e-jigsaw/homebrew,clemensg/homebrew,afh/homebrew,kevinastone/homebrew,stevenjack/homebrew,endelwar/homebrew,gvangool/homebrew,arcivanov/linuxbrew,grepnull/homebrew,kgb4000/homebrew,esalling23/homebrew,sjackman/linuxbrew,esalling23/homebrew,jbaum98/linuxbrew,helloworld-zh/homebrew,LinusU/homebrew,bwmcadams/homebrew,missingcharacter/homebrew,scorphus/homebrew,bertjwregeer/homebrew,danielmewes/homebrew,ilidar/homebrew,Sachin-Ganesh/homebrew,djun-kim/homebrew,miry/homebrew,alexbukreev/homebrew,bukzor/linuxbrew,paour/homebrew,Originate/homebrew,thrifus/homebrew,Monits/homebrew,phatblat/homebrew,zhipeng-jia/homebrew,vinodkone/homebrew,xuebinglee/homebrew,alex-zhang/homebrew,yoshida-mediba/homebrew,hvnsweeting/homebrew,nnutter/homebrew,tdsmith/linuxbrew,xuebinglee/homebrew,brotbert/homebrew,skatsuta/homebrew,pigri/homebrew,theopolis/homebrew,slnovak/homebrew,fabianschuiki/homebrew,cristobal/homebrew,callahad/homebrew,mcolic/homebrew,Lywangwenbin/homebrew,kashif/homebrew,indera/homebrew,windoze/homebrew,jkarneges/homebrew,codeout/homebrew,galaxy001/homebrew,jpscaletti/homebrew,johanhammar/homebrew,linjunpop/homebrew,Krasnyanskiy/homebrew,iostat/homebrew2,robotblake/homebrew,songjizu001/homebrew,will/homebrew,coldeasy/homebrew,petercm/homebrew,royhodgman/homebrew,bruno-/homebrew,rlister/homebrew,cmvelo/homebrew,voxxit/homebrew,hermansc/homebrew,colindean/homebrew,AlexejK/homebrew,SiegeLord/homebrew,retrography/homebrew,dutchcoders/homebrew,julienXX/homebrew,jlisic/linuxbrew,telamonian/linuxbrew,teslamint/homebrew,changzuozhen/homebrew,kevmoo/homebrew,petere/homebrew,chkuendig/homebrew,mrkn/homebrew,henry0312/homebrew,buzzedword/homebrew,jonafato/homebrew,elasticdog/homebrew,kawanet/homebrew,ahihi/tigerbrew,andreyto/homebrew,sitexa/homebrew,cHoco/homebrew,jpscaletti/homebrew,keith/homebrew,mavimo/homebrew,AlexejK/homebrew,ffleming/homebrew,mokkun/homebrew,frozzare/homebrew,pedromaltez-forks/homebrew,jessamynsmith/homebrew,pullreq/homebrew,whistlerbrk/homebrew,robrix/homebrew,omriiluz/homebrew,rosalsm/homebrew,antogg/homebrew,paulbakker/homebrew,linse073/homebrew,anjackson/homebrew,zhipeng-jia/homebrew,cmvelo/homebrew,avnit/EGroovy,cvrebert/homebrew,dai0304/homebrew,1zaman/homebrew,retrography/homebrew,paulbakker/homebrew,timomeinen/homebrew,jeffmo/homebrew,hyuni/homebrew,bright-sparks/homebrew,psibre/homebrew,saketkc/homebrew,martinklepsch/homebrew,windoze/homebrew,chabhishek123/homebrew,feugenix/homebrew,imjerrybao/homebrew,englishm/homebrew,dtan4/homebrew,davydden/linuxbrew,packetcollision/homebrew,tomas/linuxbrew,finde/homebrew,jwillemsen/homebrew,psibre/homebrew,scardetto/homebrew,evanrs/homebrew,keithws/homebrew,Drewshg312/homebrew,davydden/homebrew,anders/homebrew,SteveClement/homebrew,boyanpenkov/homebrew,deployable/homebrew,dunn/linuxbrew,ctate/autocode-homebrew,bmroberts1987/homebrew,changzuozhen/homebrew,trombonehero/homebrew,5zzang/homebrew,ear/homebrew,ingmarv/homebrew,afdnlw/linuxbrew,elamc/homebrew,ldiqual/homebrew,valkjsaaa/homebrew,adevress/homebrew,SnoringFrog/homebrew,bcwaldon/homebrew,benesch/homebrew,godu/homebrew,rs/homebrew,eighthave/homebrew,lemaiyan/homebrew,heinzf/homebrew,gyaresu/homebrew,ianbrandt/homebrew,jarrettmeyer/homebrew,amjith/homebrew,linjunpop/homebrew,brotbert/homebrew,hikaruworld/homebrew,wolfd/homebrew,rhoffman3621/learn-rails,redpen-cc/homebrew,ericfischer/homebrew,kvs/homebrew,ktaragorn/homebrew,petercm/homebrew,RandyMcMillan/homebrew,sidhart/homebrew,ingmarv/homebrew,geometrybase/homebrew,kidaa/homebrew,danieroux/homebrew,finde/homebrew,bukzor/homebrew,jehutymax/homebrew,Dreysman/homebrew,ilovezfs/homebrew,SuperNEMO-DBD/cadfaelbrew,LinusU/homebrew,bettyDes/homebrew,danielfariati/homebrew,qiruiyin/homebrew,slyphon/homebrew,bcomnes/homebrew,a1dutch/homebrew,mathieubolla/homebrew,ericfischer/homebrew,alex-courtis/homebrew,wkentaro/homebrew,mattbostock/homebrew,tobz-nz/homebrew,digiter/linuxbrew,henry0312/homebrew,endelwar/homebrew,baldwicc/homebrew,odekopoon/homebrew,dstndstn/homebrew,swallat/homebrew,jkarneges/homebrew,neronplex/homebrew,NfNitLoop/homebrew,adamchainz/homebrew,blairham/homebrew,mattfarina/homebrew,getgauge/homebrew,dtrebbien/homebrew,rcombs/homebrew,mokkun/homebrew,adamliter/homebrew,cvrebert/homebrew,dardo82/homebrew,nathancahill/homebrew,srikalyan/homebrew,ariscop/homebrew,samthor/homebrew,outcoldman/homebrew,bjlxj2008/homebrew,bright-sparks/homebrew,alex-zhang/homebrew,nathancahill/homebrew,gicmo/homebrew,raphaelcohn/homebrew,alexandrecormier/homebrew,elgertam/homebrew,gnubila-france/linuxbrew,influxdb/homebrew,tjschuck/homebrew,raphaelcohn/homebrew,emcrisostomo/homebrew,nandub/homebrew,elgertam/homebrew,kilojoules/homebrew,danabrand/linuxbrew,tbetbetbe/linuxbrew,jab/homebrew,linkinpark342/homebrew,ebouaziz/linuxbrew,teslamint/homebrew,alexandrecormier/homebrew,kevmoo/homebrew,slnovak/homebrew,julienXX/homebrew,ebardsley/homebrew,cesar2535/homebrew,kevinastone/homebrew,lrascao/homebrew,malmaud/homebrew,vinicius5581/homebrew,shazow/homebrew,ericzhou2008/homebrew,dholm/linuxbrew,ssgelm/homebrew,mxk1235/homebrew,kbinani/homebrew,jwillemsen/linuxbrew,qskycolor/homebrew,aguynamedryan/homebrew,tstack/homebrew,Krasnyanskiy/homebrew,dalanmiller/homebrew,dgageot/homebrew,ssp/homebrew,antogg/homebrew,deorth/homebrew,barn/homebrew,yidongliu/homebrew,gijzelaerr/homebrew,alexethan/homebrew,sigma-random/homebrew,rillian/homebrew,drbenmorgan/linuxbrew,AICIDNN/homebrew,kevmoo/homebrew,eagleflo/homebrew,jarrettmeyer/homebrew,mciantyre/homebrew,sorin-ionescu/homebrew,tjhei/linuxbrew,dambrisco/homebrew,higanworks/homebrew,ssgelm/homebrew,danpalmer/homebrew,crystal/autocode-homebrew,bertjwregeer/homebrew,3van/homebrew,kwadade/LearnRuby,bl1nk/homebrew,Red54/homebrew,benjaminfrank/homebrew,shawndellysse/homebrew,callahad/homebrew,AtkinsChang/homebrew,bjlxj2008/homebrew,jamesdphillips/homebrew,simsicon/homebrew,muellermartin/homebrew,muellermartin/homebrew,mobileoverlord/homebrew-1,oncletom/homebrew,jab/homebrew,winordie-47/linuxbrew1,jconley/homebrew,jbaum98/linuxbrew,royalwang/homebrew,pigri/homebrew,miry/homebrew,cchacin/homebrew,royhodgman/homebrew,mokkun/homebrew,pdxdan/homebrew,hkwan003/homebrew,adamliter/linuxbrew,pnorman/homebrew,Ferrari-lee/homebrew,tseven/homebrew,nju520/homebrew,mttrb/homebrew,jedahan/homebrew,mactkg/homebrew,tkelman/homebrew,megahall/homebrew,dconnolly/homebrew,dlo/homebrew,MoSal/homebrew,a1dutch/homebrew,frozzare/homebrew,BrewTestBot/homebrew,cffk/homebrew,mattfarina/homebrew,zchee/homebrew,esamson/homebrew,verdurin/homebrew,bitrise-io/homebrew,petere/homebrew,marcelocantos/homebrew,caijinyan/homebrew,JerroldLee/homebrew,craigbrad/homebrew,decors/homebrew,benswift404/homebrew,flysonic10/homebrew,auvi/homebrew,manphiz/homebrew,aristiden7o/homebrew,brendanator/linuxbrew,evanrs/homebrew,exicon/homebrew,RSamokhin/homebrew,chadcatlett/homebrew,kawanet/homebrew,tomyun/homebrew,jianjin/homebrew,romejoe/linuxbrew,tehmaze-labs/homebrew,haosdent/homebrew,geoff-codes/homebrew,endelwar/homebrew,QuinnyPig/homebrew,ybott/homebrew,mciantyre/homebrew,yidongliu/homebrew,pitatensai/homebrew,mapbox/homebrew,jconley/homebrew,denvazh/homebrew,LeoCavaille/homebrew,chfast/homebrew,int3h/homebrew,jpsim/homebrew,dplarson/homebrew,iandennismiller/homebrew,recruit-tech/homebrew,blairham/homebrew,vladshablinsky/homebrew,adamchainz/homebrew,SnoringFrog/homebrew,oliviertilmans/homebrew,danieroux/homebrew,LonnyGomes/homebrew,zabawaba99/homebrew,Russell91/homebrew,lucas-clemente/homebrew,dholm/homebrew,ieure/homebrew,reelsense/linuxbrew,Angeldude/linuxbrew,fabianschuiki/homebrew,pnorman/homebrew,felixonmars/homebrew,jpscaletti/homebrew,robrix/homebrew,petere/homebrew,Spacecup/homebrew,fabianfreyer/homebrew,paour/homebrew,emilyst/homebrew,vihangm/homebrew,jkarneges/homebrew,jmagnusson/homebrew,polamjag/homebrew,ehamberg/homebrew,lmontrieux/homebrew,tjschuck/homebrew,asparagui/homebrew,dstftw/homebrew,idolize/homebrew,nelstrom/homebrew,Klozz/homebrew,kimhunter/homebrew,sptramer/homebrew,tomas/homebrew,kenips/homebrew,oneillkza/linuxbrew,reelsense/homebrew,timsutton/homebrew,keithws/homebrew,bertjwregeer/homebrew,erkolson/homebrew,jimmy906/homebrew,telamonian/linuxbrew,dalinaum/homebrew,RSamokhin/homebrew,deployable/homebrew,base10/homebrew,nysthee/homebrew,notDavid/homebrew,dickeyxxx/homebrew,jwatzman/homebrew,royalwang/homebrew,zebMcCorkle/homebrew,exicon/homebrew,ExtremeMan/homebrew,denvazh/homebrew,tsaeger/homebrew,wangranche/homebrew,jspahrsummers/homebrew,sugryo/homebrew,koraktor/homebrew,sjackman/linuxbrew,187j3x1/homebrew,s6stuc/homebrew,tpot/homebrew,thinker0/homebrew,rcombs/homebrew,polamjag/homebrew,whistlerbrk/homebrew,jeromeheissler/homebrew,nju520/homebrew,elasticdog/homebrew,hikaruworld/homebrew,shazow/homebrew,dunn/homebrew,tylerball/homebrew,Govinda-Fichtner/homebrew,bukzor/linuxbrew,Linuxbrew/linuxbrew,decors/homebrew,oubiwann/homebrew,nkolomiec/homebrew,xcezx/homebrew,peteristhegreat/homebrew,dongcarl/homebrew,tylerball/homebrew,zeezey/homebrew,arnested/homebrew,rosalsm/homebrew,tylerball/homebrew,jsallis/homebrew,gonzedge/homebrew,brevilo/linuxbrew,dtrebbien/homebrew,atsjj/homebrew,ffleming/homebrew,dlesaca/homebrew,PikachuEXE/homebrew,docwhat/homebrew,razamatan/homebrew,dongcarl/homebrew,moltar/homebrew,ryanshaw/homebrew,iamcharp/homebrew,liuquansheng47/Homebrew,mgiglia/homebrew,mommel/homebrew,kbrock/homebrew,elyscape/homebrew,srikalyan/homebrew,francaguilar/homebrew,mindrones/homebrew,craig5/homebrew,cbeck88/linuxbrew,dstndstn/homebrew,klatys/homebrew,SteveClement/homebrew,jimmy906/homebrew,bendemaree/homebrew,sportngin/homebrew,jpsim/homebrew,mrkn/homebrew,sachiketi/homebrew,rhunter/homebrew,okuramasafumi/homebrew,vigo/homebrew,dai0304/homebrew,a-b/homebrew,petemcw/homebrew,benjaminfrank/homebrew,mbi/homebrew,joshua-rutherford/homebrew,grepnull/homebrew,phatblat/homebrew,wadejong/homebrew,djun-kim/homebrew,zeha/homebrew,msurovcak/homebrew,tjt263/homebrew,Gasol/homebrew,amarshall/homebrew,robotblake/homebrew,benjaminfrank/homebrew,iggyvolz/linuxbrew,jbarker/homebrew,mciantyre/homebrew,msurovcak/homebrew,tomekr/homebrew,bcwaldon/homebrew,gcstang/linuxbrew,dtan4/homebrew,SteveClement/homebrew,PikachuEXE/homebrew,GeekHades/homebrew,SiegeLord/homebrew,cooltheo/homebrew,mttrb/homebrew,kikuchy/homebrew,cjheath/homebrew,3van/homebrew,jiaoyigui/homebrew,petercm/homebrew,geometrybase/homebrew,pampata/homebrew,tutumcloud/homebrew,MonCoder/homebrew,jbeezley/homebrew,msurovcak/homebrew,aguynamedryan/homebrew,bbhoss/homebrew,cbenhagen/homebrew,brianmhunt/homebrew,dunn/linuxbrew,bbahrami/homebrew,deployable/homebrew,waj/homebrew,mattfritz/homebrew,davidcelis/homebrew,kad/homebrew,jeffmo/homebrew,DDShadoww/homebrew,hyokosdeveloper/linuxbrew,ablyler/homebrew,cooltheo/homebrew,linjunpop/homebrew,dalguji/homebrew,simsicon/homebrew,jeremiahyan/homebrew,LonnyGomes/homebrew,mapbox/homebrew,MartinSeeler/homebrew,kmiscia/homebrew,influxdb/homebrew,sock-puppet/homebrew,jcassiojr/homebrew,afh/homebrew,ilidar/homebrew,fabianschuiki/homebrew,ktheory/homebrew,jbeezley/homebrew,akupila/homebrew,ptolemarch/homebrew,tzudot/homebrew,ainstushar/homebrew,chiefy/homebrew,tjnycum/homebrew,ndimiduk/homebrew,adamliter/homebrew,MSch/homebrew,michaKFromParis/homebrew-sparks,notDavid/homebrew,nshemonsky/homebrew,sorin-ionescu/homebrew,brendanator/linuxbrew,alfasapy/homebrew,caijinyan/homebrew,mkrapp/homebrew,finde/homebrew,elamc/homebrew,tschoonj/homebrew,retrography/homebrew,chkuendig/homebrew,dstndstn/homebrew,xinlehou/homebrew,cprecioso/homebrew,FiMka/homebrew,glowe/homebrew,ebouaziz/linuxbrew,jeremiahyan/homebrew,joshfriend/homebrew,pitatensai/homebrew,hyuni/homebrew,frozzare/homebrew,saketkc/homebrew,seeden/homebrew,calmez/homebrew,andreyto/homebrew,lrascao/homebrew,gunnaraasen/homebrew,MartinDelille/homebrew,sorin-ionescu/homebrew,jeromeheissler/homebrew,giffels/homebrew,qorelanguage/homebrew,alindeman/homebrew,wadejong/homebrew,jimmy906/homebrew,princeofdarkness76/homebrew,prasincs/homebrew,ralic/homebrew,manphiz/homebrew,princeofdarkness76/linuxbrew,vinicius5581/homebrew,windoze/homebrew,anders/homebrew,mciantyre/homebrew,kilojoules/homebrew,dalanmiller/homebrew,thejustinwalsh/homebrew,whistlerbrk/homebrew,ento/homebrew,nysthee/homebrew,pgr0ss/homebrew,rillian/homebrew,slnovak/homebrew,sje30/homebrew,theckman/homebrew,ralic/homebrew,CNA-Bld/homebrew,chfast/homebrew,tpot/homebrew,sakra/homebrew,timsutton/homebrew,alindeman/homebrew,raphaelcohn/homebrew,e-jigsaw/homebrew,ortho/homebrew,torgartor21/homebrew,bjorand/homebrew,zoltansx/homebrew,yangj1e/homebrew,morevalily/homebrew,ieure/homebrew,southwolf/homebrew,jamer/homebrew,blairham/homebrew,5zzang/homebrew,oliviertilmans/homebrew,tyrchen/homebrew,Gutek/homebrew,Ivanopalas/homebrew,dholm/homebrew,alexbukreev/homebrew,ssgelm/homebrew,alebcay/homebrew,mtigas/homebrew,kyanny/homebrew,ened/homebrew,QuinnyPig/homebrew,egentry/homebrew,whitej125/homebrew,elamc/homebrew,wangranche/homebrew,dalguji/homebrew,kalbasit/homebrew,poindextrose/homebrew,thrifus/homebrew,jacobsa/homebrew,davidmalcolm/homebrew,adevress/homebrew,erkolson/homebrew,samthor/homebrew,jedahan/homebrew,jonafato/homebrew,Angeldude/linuxbrew,KevinSjoberg/homebrew,max-horvath/homebrew,Ivanopalas/homebrew,deorth/homebrew,trajano/homebrew,thebyrd/homebrew,elgertam/homebrew,mrkn/homebrew,freedryk/homebrew,rnh/homebrew,blogabe/homebrew,epixa/homebrew,muellermartin/homebrew,atsjj/homebrew,MoSal/homebrew,smarek/homebrew,tzudot/homebrew,amarshall/homebrew,TrevorSayre/homebrew,msurovcak/homebrew,ffleming/homebrew,andrew-regan/homebrew,nathancahill/homebrew,tdsmith/linuxbrew,pinkpolygon/homebrew,tutumcloud/homebrew,ptolemarch/homebrew,phatblat/homebrew,sideci-sample/sideci-sample-homebrew,whitej125/homebrew,songjizu001/homebrew,dgageot/homebrew,chadcatlett/homebrew,akshayvaidya/homebrew,creack/homebrew,bbahrami/homebrew,ablyler/homebrew,alex-zhang/homebrew,MonCoder/homebrew,jspahrsummers/homebrew,redpen-cc/homebrew,Noctem/homebrew,zeha/homebrew,dkotvan/homebrew,andyshinn/homebrew,jeromeheissler/homebrew,tavisto/homebrew,jack-and-rozz/linuxbrew,zachmayer/homebrew,hanxue/homebrew,joshua-rutherford/homebrew,apjanke/homebrew,thos37/homebrew,andy12530/homebrew,ngoyal/homebrew,jose-cieni-movile/homebrew,dambrisco/homebrew,ainstushar/homebrew,alebcay/homebrew,Monits/homebrew,totalvoidness/homebrew,dreid93/homebrew,cesar2535/homebrew,tpot/homebrew,bendemaree/homebrew,Firefishy/homebrew,keith/homebrew,alanthing/homebrew,zenazn/homebrew,thuai/boxen,arrowcircle/homebrew,tomyun/homebrew,Dreysman/homebrew,lvicentesanchez/linuxbrew,reelsense/homebrew,theeternalsw0rd/homebrew,alexethan/homebrew,Sachin-Ganesh/homebrew,koraktor/homebrew,rcombs/homebrew,outcoldman/homebrew,alfasapy/homebrew,jconley/homebrew,grmartin/homebrew,dstftw/homebrew,tbetbetbe/linuxbrew,kwilczynski/homebrew,Govinda-Fichtner/homebrew,zebMcCorkle/homebrew,ryanfb/homebrew,alexreg/homebrew,afh/homebrew,dplarson/homebrew,otaran/homebrew,zoltansx/homebrew,FiMka/homebrew,dai0304/homebrew,simsicon/homebrew,alebcay/homebrew,bendemaree/homebrew,optikfluffel/homebrew,helloworld-zh/homebrew,bchatard/homebrew,max-horvath/homebrew,jianjin/homebrew,asparagui/homebrew,kad/homebrew,jonas/homebrew,jimmy906/homebrew,number5/homebrew,tjschuck/homebrew,Habbie/homebrew,gvangool/homebrew,Hasimir/homebrew,akupila/homebrew,ssp/homebrew,rs/homebrew,iandennismiller/homebrew,tbeckham/homebrew,afb/homebrew,lemaiyan/homebrew,10sr/linuxbrew,yazuuchi/homebrew,tjschuck/homebrew,lnr0626/homebrew,bbahrami/homebrew,dholm/homebrew,rlhh/homebrew,gnawhleinad/homebrew,zhimsel/homebrew,xinlehou/homebrew,xinlehou/homebrew,theckman/homebrew,daviddavis/homebrew,dtrebbien/homebrew,Asuranceturix/homebrew,jmagnusson/homebrew,tghs/linuxbrew,jehutymax/homebrew,bruno-/homebrew,bbahrami/homebrew,jedahan/homebrew,alexethan/homebrew,gawbul/homebrew,lucas-clemente/homebrew,oliviertoupin/homebrew,dickeyxxx/homebrew,muellermartin/homebrew,theeternalsw0rd/homebrew,haihappen/homebrew,booi/homebrew,grepnull/homebrew,max-horvath/homebrew,bright-sparks/homebrew,jasonm23/homebrew,godu/homebrew,pampata/homebrew,coldeasy/homebrew,tpot/homebrew,drbenmorgan/linuxbrew,guoxiao/homebrew,bendoerr/homebrew,theopolis/homebrew,TaylorMonacelli/homebrew,KenanSulayman/homebrew,nnutter/homebrew,arg/homebrew,mattprowse/homebrew,bcomnes/homebrew,royhodgman/homebrew,OlivierParent/homebrew,jsjohnst/homebrew,kgb4000/homebrew,tbetbetbe/linuxbrew,Ferrari-lee/homebrew,johanhammar/homebrew,ekmett/homebrew,bjorand/homebrew,mroch/homebrew,nshemonsky/homebrew,yangj1e/homebrew,feelpp/homebrew,SampleLiao/homebrew,dalanmiller/homebrew,oneillkza/linuxbrew,danpalmer/homebrew,bwmcadams/homebrew,cffk/homebrew,jianjin/homebrew,rlister/homebrew,chfast/homebrew,DarthGandalf/homebrew,glowe/homebrew,marcoceppi/homebrew,youtux/homebrew,jtrag/homebrew,adevress/homebrew,yonglehou/homebrew,trombonehero/homebrew,ened/homebrew,miry/homebrew,jessamynsmith/homebrew,RSamokhin/homebrew,Klozz/homebrew,zhimsel/homebrew,khwon/homebrew,LinusU/homebrew,codeout/homebrew,zeezey/homebrew,jose-cieni-movile/homebrew,outcoldman/linuxbrew,evanrs/homebrew,drewwells/homebrew,filcab/homebrew,adriancole/homebrew,silentbicycle/homebrew,jingweno/homebrew,jamesdphillips/homebrew,ebardsley/homebrew,Govinda-Fichtner/homebrew,verbitan/homebrew,Chilledheart/homebrew,timomeinen/homebrew,epixa/homebrew,vladshablinsky/homebrew,adamchainz/homebrew,dardo82/homebrew,sideci-sample/sideci-sample-homebrew,zhipeng-jia/homebrew,TaylorMonacelli/homebrew,brevilo/linuxbrew,jab/homebrew,will/homebrew,aaronwolen/homebrew,knpwrs/homebrew,tjnycum/homebrew,jspahrsummers/homebrew,buzzedword/homebrew,scorphus/homebrew,tomyun/homebrew,danielmewes/homebrew,mmizutani/homebrew,ericzhou2008/homebrew,seegno-forks/homebrew,andreyto/homebrew,okuramasafumi/homebrew,chfast/homebrew,imjerrybao/homebrew,pigoz/homebrew,guoxiao/homebrew,adevress/homebrew,feuvan/homebrew,cooltheo/homebrew,mavimo/homebrew,pcottle/homebrew,oneillkza/linuxbrew,influxdb/homebrew,baob/homebrew,asparagui/homebrew,zeha/homebrew,cbenhagen/homebrew,waj/homebrew,s6stuc/homebrew,KevinSjoberg/homebrew,henry0312/homebrew,klazuka/homebrew,tghs/linuxbrew,pedromaltez-forks/homebrew,winordie-47/linuxbrew1,heinzf/homebrew,AlekSi/homebrew,samplecount/homebrew,callahad/homebrew,julienXX/homebrew,plattenschieber/homebrew,changzuozhen/homebrew,Homebrew/linuxbrew,petercm/homebrew,jingweno/homebrew,DoomHammer/linuxbrew,AtnNn/homebrew,NRauh/homebrew,harsha-mudi/homebrew,pdxdan/homebrew,xcezx/homebrew,avnit/EGroovy,jbeezley/homebrew,youprofit/homebrew,dalinaum/homebrew,syhw/homebrew,endelwar/homebrew,mathieubolla/homebrew,AGWA-forks/homebrew,rhendric/homebrew,durka/homebrew,kidaa/homebrew,John-Colvin/homebrew,moyogo/homebrew,kodabb/homebrew,notDavid/homebrew,francaguilar/homebrew,protomouse/homebrew,tstack/homebrew,aristiden7o/homebrew,michaKFromParis/homebrew-sparks,mokkun/homebrew,gijzelaerr/homebrew,mattfarina/homebrew,RandyMcMillan/homebrew,pigoz/homebrew,jiashuw/homebrew,lousama/homebrew,zorosteven/homebrew,nkolomiec/homebrew,jmtd/homebrew,andrew-regan/homebrew,ktheory/homebrew,polishgeeks/homebrew,boyanpenkov/homebrew,Gutek/homebrew | ruby | ## Code Before:
require 'formula'
class AndroidSdk <Formula
url 'http://dl.google.com/android/android-sdk_r04-mac_86.zip'
homepage 'http://developer.android.com/index.html'
md5 'b08512765aa9b0369bb9b8fecdf763e3'
version 'r4'
skip_clean 'add-ons'
skip_clean 'platforms'
skip_clean 'temp'
aka :android
def install
mkdir %w[temp docs] << bin
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
%w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
end
end
def caveats; "\
We agreed to the Android SDK License Agreement for you by downloading the SDK.
If this is unacceptable you should uninstall.
You can read the license at: http://developer.android.com/sdk/terms.html"
end
end
## Instruction:
Add ANDROID_SDK_ROOT to Android's caveats.
## Code After:
require 'formula'
class AndroidSdk <Formula
url 'http://dl.google.com/android/android-sdk_r04-mac_86.zip'
homepage 'http://developer.android.com/index.html'
md5 'b08512765aa9b0369bb9b8fecdf763e3'
version 'r4'
skip_clean 'add-ons'
skip_clean 'platforms'
skip_clean 'temp'
aka :android
def install
mkdir %w[temp docs] << bin
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
%w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
end
end
def caveats; <<-EOS
We agreed to the Android SDK License Agreement for you by downloading the SDK.
If this is unacceptable you should uninstall.
You can read the license at: http://developer.android.com/sdk/terms.html
Please add this line to your .bash_profile:
export ANDROID_SDK_ROOT=#{prefix}
EOS
end
end
| require 'formula'
class AndroidSdk <Formula
url 'http://dl.google.com/android/android-sdk_r04-mac_86.zip'
homepage 'http://developer.android.com/index.html'
md5 'b08512765aa9b0369bb9b8fecdf763e3'
version 'r4'
skip_clean 'add-ons'
skip_clean 'platforms'
skip_clean 'temp'
aka :android
def install
mkdir %w[temp docs] << bin
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
%w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
end
end
- def caveats; "\
? ^^
+ def caveats; <<-EOS
? ^^^^^^
We agreed to the Android SDK License Agreement for you by downloading the SDK.
If this is unacceptable you should uninstall.
- You can read the license at: http://developer.android.com/sdk/terms.html"
? -
+ You can read the license at: http://developer.android.com/sdk/terms.html
+
+ Please add this line to your .bash_profile:
+ export ANDROID_SDK_ROOT=#{prefix}
+ EOS
end
end | 8 | 0.242424 | 6 | 2 |
d22977f2f5470baf76932523ae2264182fb7afc9 | tox.ini | tox.ini | [tox]
# envlist = py27,py33,py34,py35,pypy
envlist = py27
[testenv]
deps = pytest
commands = py.test {posargs:tests}
| [tox]
envlist = py27,py33,py34,py35,pypy
[testenv]
deps = pytest
commands = py.test {posargs:tests}
| Add other python versions to build | Add other python versions to build
| INI | mit | gqmelo/exec-wrappers,gqmelo/exec-wrappers | ini | ## Code Before:
[tox]
# envlist = py27,py33,py34,py35,pypy
envlist = py27
[testenv]
deps = pytest
commands = py.test {posargs:tests}
## Instruction:
Add other python versions to build
## Code After:
[tox]
envlist = py27,py33,py34,py35,pypy
[testenv]
deps = pytest
commands = py.test {posargs:tests}
| [tox]
- # envlist = py27,py33,py34,py35,pypy
? --
+ envlist = py27,py33,py34,py35,pypy
- envlist = py27
[testenv]
deps = pytest
commands = py.test {posargs:tests} | 3 | 0.428571 | 1 | 2 |
2aea867437e967223841c2952bd84c309d86ce75 | package.json | package.json | {
"name": "uas-parser",
"version": "0.1.0",
"description": "User Agent String Parser",
"main": "index.js",
"scripts": {
"test": "grunt"
},
"dependencies": {
"async": "~0.2.9",
"lingo": "~0.0.5",
"lru-cache": "~2.3.0",
"request": "~2.21.0",
"underscore": "~1.4.4",
"xregexp": "~2.0.0"
},
"devDependencies": {
"chai": "~1.6.1",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-jshint": "~0.4.1",
"grunt-mocha-test": "~0.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/GUI/uas-parser.git"
},
"author": "Nick Muerdter <stuff@nickm.org>",
"license": "MIT"
}
| {
"name": "uas-parser",
"version": "0.1.0",
"description": "User agent string parser (using data from user-agent-string.info)",
"keywords": [
"ua",
"useragent",
"user-agent",
"user agent"
],
"main": "index.js",
"scripts": {
"test": "grunt"
},
"dependencies": {
"async": "~0.2.9",
"lingo": "~0.0.5",
"lru-cache": "~2.3.0",
"request": "~2.21.0",
"underscore": "~1.4.4",
"xregexp": "~2.0.0"
},
"devDependencies": {
"chai": "~1.6.1",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-jshint": "~0.4.1",
"grunt-mocha-test": "~0.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/GUI/uas-parser.git"
},
"author": "Nick Muerdter <stuff@nickm.org>",
"license": "MIT"
}
| Update npm description and add keywords. | Update npm description and add keywords.
| JSON | mit | pkoontz-cl/uas-parser,GUI/uas-parser | json | ## Code Before:
{
"name": "uas-parser",
"version": "0.1.0",
"description": "User Agent String Parser",
"main": "index.js",
"scripts": {
"test": "grunt"
},
"dependencies": {
"async": "~0.2.9",
"lingo": "~0.0.5",
"lru-cache": "~2.3.0",
"request": "~2.21.0",
"underscore": "~1.4.4",
"xregexp": "~2.0.0"
},
"devDependencies": {
"chai": "~1.6.1",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-jshint": "~0.4.1",
"grunt-mocha-test": "~0.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/GUI/uas-parser.git"
},
"author": "Nick Muerdter <stuff@nickm.org>",
"license": "MIT"
}
## Instruction:
Update npm description and add keywords.
## Code After:
{
"name": "uas-parser",
"version": "0.1.0",
"description": "User agent string parser (using data from user-agent-string.info)",
"keywords": [
"ua",
"useragent",
"user-agent",
"user agent"
],
"main": "index.js",
"scripts": {
"test": "grunt"
},
"dependencies": {
"async": "~0.2.9",
"lingo": "~0.0.5",
"lru-cache": "~2.3.0",
"request": "~2.21.0",
"underscore": "~1.4.4",
"xregexp": "~2.0.0"
},
"devDependencies": {
"chai": "~1.6.1",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-jshint": "~0.4.1",
"grunt-mocha-test": "~0.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/GUI/uas-parser.git"
},
"author": "Nick Muerdter <stuff@nickm.org>",
"license": "MIT"
}
| {
"name": "uas-parser",
"version": "0.1.0",
- "description": "User Agent String Parser",
+ "description": "User agent string parser (using data from user-agent-string.info)",
+ "keywords": [
+ "ua",
+ "useragent",
+ "user-agent",
+ "user agent"
+ ],
"main": "index.js",
"scripts": {
"test": "grunt"
},
"dependencies": {
"async": "~0.2.9",
"lingo": "~0.0.5",
"lru-cache": "~2.3.0",
"request": "~2.21.0",
"underscore": "~1.4.4",
"xregexp": "~2.0.0"
},
"devDependencies": {
"chai": "~1.6.1",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-jshint": "~0.4.1",
"grunt-mocha-test": "~0.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/GUI/uas-parser.git"
},
"author": "Nick Muerdter <stuff@nickm.org>",
"license": "MIT"
} | 8 | 0.266667 | 7 | 1 |
d647e14d6bb3b6fccf265cbcd3035f0feb49be0d | src/my_noir_lab/views/welcome.clj | src/my_noir_lab/views/welcome.clj | (ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(common/site-layout
[:h1 "Welcome to my site!"]
[:p#wrapper "Hope you like it!"])) | (ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(common/site-layout
[:h1 "Welcome to my site!"]
[:p#wrapper "Hope you like it!"]))
(defpage "/range" []
(common/site-layout
[:h1 "range 1 100"]
[:p#wrapper (map #(str "<i>" % "</i> ") (range 1 100))])) | Add a page to display the range method. | Add a page to display the range method.
| Clojure | epl-1.0 | lazyposse/fnx | clojure | ## Code Before:
(ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(common/site-layout
[:h1 "Welcome to my site!"]
[:p#wrapper "Hope you like it!"]))
## Instruction:
Add a page to display the range method.
## Code After:
(ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(common/site-layout
[:h1 "Welcome to my site!"]
[:p#wrapper "Hope you like it!"]))
(defpage "/range" []
(common/site-layout
[:h1 "range 1 100"]
[:p#wrapper (map #(str "<i>" % "</i> ") (range 1 100))])) | (ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(common/site-layout
[:h1 "Welcome to my site!"]
[:p#wrapper "Hope you like it!"]))
+
+ (defpage "/range" []
+ (common/site-layout
+ [:h1 "range 1 100"]
+ [:p#wrapper (map #(str "<i>" % "</i> ") (range 1 100))])) | 5 | 0.357143 | 5 | 0 |
596c5e8292c55ca3e075961629e4cf4fbb881762 | examples/hello/package.json | examples/hello/package.json | {
"name": "oy-example",
"description": "An example app demonstrating how Oy might be used.",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "./node_modules/babel-cli/bin/babel-node.js server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"babel-cli": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"express": "^4.12.3",
"oy-vey": "../..",
"react": "^0.14.6"
}
}
| {
"name": "oy-example",
"description": "An example app demonstrating how Oy might be used.",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "./node_modules/babel-cli/bin/babel-node.js server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"babel-cli": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"express": "^4.12.3",
"oy-vey": "../..",
"react": "^0.14.6",
"react-dom": "^0.14.6"
}
}
| Add react-dom as explicit dependency | Add react-dom as explicit dependency
| JSON | mit | oysterbooks/oy,revivek/oy,Rendez/oy | json | ## Code Before:
{
"name": "oy-example",
"description": "An example app demonstrating how Oy might be used.",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "./node_modules/babel-cli/bin/babel-node.js server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"babel-cli": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"express": "^4.12.3",
"oy-vey": "../..",
"react": "^0.14.6"
}
}
## Instruction:
Add react-dom as explicit dependency
## Code After:
{
"name": "oy-example",
"description": "An example app demonstrating how Oy might be used.",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "./node_modules/babel-cli/bin/babel-node.js server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"babel-cli": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"express": "^4.12.3",
"oy-vey": "../..",
"react": "^0.14.6",
"react-dom": "^0.14.6"
}
}
| {
"name": "oy-example",
"description": "An example app demonstrating how Oy might be used.",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "./node_modules/babel-cli/bin/babel-node.js server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"babel-cli": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"express": "^4.12.3",
"oy-vey": "../..",
- "react": "^0.14.6"
+ "react": "^0.14.6",
? +
+ "react-dom": "^0.14.6"
}
} | 3 | 0.166667 | 2 | 1 |
e4a799d96ad80a8f7960824e7b9ec1192e81deeb | turbasen/__init__.py | turbasen/__init__.py | from __future__ import absolute_import, division, print_function, unicode_literals
# Import the models we want directly available through the root module
from .models import \
Omrade, \
Sted
# Make configure directly available through the root module
from .settings import configure
# Make handle_available directly available through the root module
from .events import handle_event
| from __future__ import absolute_import, division, print_function, unicode_literals
# Import the models we want directly available through the root module
from .models import \
Gruppe, \
Omrade, \
Sted
# Make configure directly available through the root module
from .settings import configure
# Make handle_available directly available through the root module
from .events import handle_event
| Add Gruppe to Turbasen import __inti | Add Gruppe to Turbasen import __inti
| Python | mit | Turbasen/turbasen.py | python | ## Code Before:
from __future__ import absolute_import, division, print_function, unicode_literals
# Import the models we want directly available through the root module
from .models import \
Omrade, \
Sted
# Make configure directly available through the root module
from .settings import configure
# Make handle_available directly available through the root module
from .events import handle_event
## Instruction:
Add Gruppe to Turbasen import __inti
## Code After:
from __future__ import absolute_import, division, print_function, unicode_literals
# Import the models we want directly available through the root module
from .models import \
Gruppe, \
Omrade, \
Sted
# Make configure directly available through the root module
from .settings import configure
# Make handle_available directly available through the root module
from .events import handle_event
| from __future__ import absolute_import, division, print_function, unicode_literals
# Import the models we want directly available through the root module
from .models import \
+ Gruppe, \
Omrade, \
Sted
# Make configure directly available through the root module
from .settings import configure
# Make handle_available directly available through the root module
from .events import handle_event | 1 | 0.083333 | 1 | 0 |
cc583474f60ff95bc8266ffd0d579fa00e6b8686 | xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11NameCoder.java | xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11NameCoder.java | /*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
/**
* A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
*
* @author Jörg Schaible
* @since upcoming
*/
public class XStream11NameCoder extends XmlFriendlyNameCoder {
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeAttribute(String attributeName) {
return attributeName;
}
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeNode(String elementName) {
return elementName;
}
}
| /*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
/**
* A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
*
* @author Jörg Schaible
* @since upcoming
*/
public class XStream11NameCoder extends XmlFriendlyNameCoder {
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeAttribute(String attributeName) {
return attributeName;
}
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeNode(String elementName) {
return elementName;
}
}
| Fix file headers for missing BSD license. | Fix file headers for missing BSD license.
| Java | bsd-3-clause | hudson/xstream,8nevil8/xstream | java | ## Code Before:
/*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
/**
* A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
*
* @author Jörg Schaible
* @since upcoming
*/
public class XStream11NameCoder extends XmlFriendlyNameCoder {
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeAttribute(String attributeName) {
return attributeName;
}
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeNode(String elementName) {
return elementName;
}
}
## Instruction:
Fix file headers for missing BSD license.
## Code After:
/*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
/**
* A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
*
* @author Jörg Schaible
* @since upcoming
*/
public class XStream11NameCoder extends XmlFriendlyNameCoder {
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeAttribute(String attributeName) {
return attributeName;
}
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeNode(String elementName) {
return elementName;
}
}
| /*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
+ *
+ * The software in this package is published under the terms of the BSD
+ * style license a copy of which has been included with this distribution in
+ * the LICENSE.txt file.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
/**
* A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
*
* @author Jörg Schaible
* @since upcoming
*/
public class XStream11NameCoder extends XmlFriendlyNameCoder {
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeAttribute(String attributeName) {
return attributeName;
}
/**
* {@inheritDoc} Noop implementation that does not decode. Used for XStream 1.1
* compatibility.
*/
public String decodeNode(String elementName) {
return elementName;
}
} | 4 | 0.121212 | 4 | 0 |
c458126baac92e1152026f51a9d3a544e8c6826f | testsV2/ut_repy2api_copycontext.py | testsV2/ut_repy2api_copycontext.py | #pragma repy
# Create an almost shallow copy of _context
# Contained self-reference is moved from _context to _context_copy
_context_copy = _context.copy()
repr(_context)
repr(_context_copy)
| #pragma repy
# Create an "almost" shallow copy of _context, i.e. the contained reference
# to _context is not copied as such but is changed to reference the new
# _context_copy.
# In consequence repr immediately truncates the contained self-reference
# ("{...}") to prevent an infinite loop.
# Caveat: In a real shallow copy, repr would only truncate the context
# contained in the contained context (3rd level).
_context_copy = _context.copy()
repr(_context)
repr(_context_copy)
| Update comment in copycontext unit test | Update comment in copycontext unit test
Following @vladimir-v-diaz's review comment this change adds
more information about how repr works with Python dicts and with
repy's SafeDict to the unit test's comments.
Even more information can be found on the issue tracker
SeattleTestbed/repy_v2#97.
| Python | mit | SeattleTestbed/repy_v2 | python | ## Code Before:
#pragma repy
# Create an almost shallow copy of _context
# Contained self-reference is moved from _context to _context_copy
_context_copy = _context.copy()
repr(_context)
repr(_context_copy)
## Instruction:
Update comment in copycontext unit test
Following @vladimir-v-diaz's review comment this change adds
more information about how repr works with Python dicts and with
repy's SafeDict to the unit test's comments.
Even more information can be found on the issue tracker
SeattleTestbed/repy_v2#97.
## Code After:
#pragma repy
# Create an "almost" shallow copy of _context, i.e. the contained reference
# to _context is not copied as such but is changed to reference the new
# _context_copy.
# In consequence repr immediately truncates the contained self-reference
# ("{...}") to prevent an infinite loop.
# Caveat: In a real shallow copy, repr would only truncate the context
# contained in the contained context (3rd level).
_context_copy = _context.copy()
repr(_context)
repr(_context_copy)
| #pragma repy
- # Create an almost shallow copy of _context
- # Contained self-reference is moved from _context to _context_copy
+ # Create an "almost" shallow copy of _context, i.e. the contained reference
+ # to _context is not copied as such but is changed to reference the new
+ # _context_copy.
+ # In consequence repr immediately truncates the contained self-reference
+ # ("{...}") to prevent an infinite loop.
+ # Caveat: In a real shallow copy, repr would only truncate the context
+ # contained in the contained context (3rd level).
_context_copy = _context.copy()
repr(_context)
repr(_context_copy) | 9 | 1.285714 | 7 | 2 |
45e62f5c0ecd3ae4e7de1bdbfe2e2ef388e3fff9 | apps/admin/skeletons/app/templates/index.html | apps/admin/skeletons/app/templates/index.html | <!DOCTYPE html>
<html>
<head>
<title>Welcome to Ringo</title>
<link rel="stylesheet" href="stylesheets/page.css" />
</head>
<body>
<div id="header"><h1>It's working!</h1></div>
<div id="body">
<p>You just created a new Ringo application. Here are some possible next steps:</p>
<ul>
<li>Tweak the URL routing in <code>config.js</code>.</li>
<li>Edit and add actions in <code>actions.js</code>.</li>
<li>Visit our <a href="http://ringojs.org/wiki/Tutorial/">tutorial</a> or
<a href="http://ringojs.org/wiki/Documentation/">documentation</a> to learn more about Ringo.</li>
</ul>
<p>Thank you for using Ringo!</p>
</div>
</body>
</html>
| <!DOCTYPE html>
<html>
<head>
<title>Welcome to Ringo</title>
<link rel="stylesheet" href="stylesheets/page.css" />
</head>
<body>
<div id="header"><h1>It's working!</h1></div>
<div id="body">
<p>You just created a new Ringo application. Here are some possible next steps:</p>
<ul>
<li>Tweak the URL routing in <code>config.js</code>.</li>
<li>Edit and add actions in <code>actions.js</code>.</li>
<li>Visit our <a href="http://ringojs.org/documentation/">documentation</a>
to learn more about Ringo.</li>
</ul>
<p>Thank you for using Ringo!</p>
</div>
</body>
</html>
| Update documentation link, remove tutorial link for the time being. | Update documentation link, remove tutorial link for the time being.
| HTML | apache-2.0 | oberhamsi/ringojs,ringo/ringojs,Transcordia/ringojs,ringo/ringojs,ashwinrayaprolu1984/ringojs,oberhamsi/ringojs,ashwinrayaprolu1984/ringojs,Transcordia/ringojs,oberhamsi/ringojs,Transcordia/ringojs,ashwinrayaprolu1984/ringojs,Transcordia/ringojs,ringo/ringojs,ringo/ringojs,ashwinrayaprolu1984/ringojs | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Ringo</title>
<link rel="stylesheet" href="stylesheets/page.css" />
</head>
<body>
<div id="header"><h1>It's working!</h1></div>
<div id="body">
<p>You just created a new Ringo application. Here are some possible next steps:</p>
<ul>
<li>Tweak the URL routing in <code>config.js</code>.</li>
<li>Edit and add actions in <code>actions.js</code>.</li>
<li>Visit our <a href="http://ringojs.org/wiki/Tutorial/">tutorial</a> or
<a href="http://ringojs.org/wiki/Documentation/">documentation</a> to learn more about Ringo.</li>
</ul>
<p>Thank you for using Ringo!</p>
</div>
</body>
</html>
## Instruction:
Update documentation link, remove tutorial link for the time being.
## Code After:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Ringo</title>
<link rel="stylesheet" href="stylesheets/page.css" />
</head>
<body>
<div id="header"><h1>It's working!</h1></div>
<div id="body">
<p>You just created a new Ringo application. Here are some possible next steps:</p>
<ul>
<li>Tweak the URL routing in <code>config.js</code>.</li>
<li>Edit and add actions in <code>actions.js</code>.</li>
<li>Visit our <a href="http://ringojs.org/documentation/">documentation</a>
to learn more about Ringo.</li>
</ul>
<p>Thank you for using Ringo!</p>
</div>
</body>
</html>
| <!DOCTYPE html>
<html>
<head>
<title>Welcome to Ringo</title>
<link rel="stylesheet" href="stylesheets/page.css" />
</head>
<body>
<div id="header"><h1>It's working!</h1></div>
<div id="body">
<p>You just created a new Ringo application. Here are some possible next steps:</p>
<ul>
<li>Tweak the URL routing in <code>config.js</code>.</li>
<li>Edit and add actions in <code>actions.js</code>.</li>
- <li>Visit our <a href="http://ringojs.org/wiki/Tutorial/">tutorial</a> or
- <a href="http://ringojs.org/wiki/Documentation/">documentation</a> to learn more about Ringo.</li>
+ <li>Visit our <a href="http://ringojs.org/documentation/">documentation</a>
+ to learn more about Ringo.</li>
</ul>
<p>Thank you for using Ringo!</p>
</div>
</body>
</html> | 4 | 0.181818 | 2 | 2 |
4adac8af05d6c0f28cedb20faed7ae58c448c7e9 | src/SFA.DAS.Commitments.Database/StoredProcedures/ProcessFullyApprovedCohort.sql | src/SFA.DAS.Commitments.Database/StoredProcedures/ProcessFullyApprovedCohort.sql | CREATE PROCEDURE [dbo].[ProcessFullyApprovedCohort]
@cohortId BIGINT,
@accountId BIGINT,
@apprenticeshipEmployerType INT
AS
BEGIN
UPDATE [dbo].[Commitment]
SET ApprenticeshipEmployerTypeOnApproval = @apprenticeshipEmployerType, IsFullApprovalProcessed = 1
WHERE Id = @cohortId
UPDATE [dbo].[Apprenticeship]
SET PaymentStatus = 1
WHERE CommitmentId = @cohortId
INSERT INTO [dbo].[PriceHistory] (ApprenticeshipId, Cost, FromDate)
SELECT Id, Cost, StartDate
FROM [dbo].[Apprenticeship]
WHERE CommitmentId = @cohortId
END | CREATE PROCEDURE [dbo].[ProcessFullyApprovedCohort]
@cohortId BIGINT,
@accountId BIGINT,
@apprenticeshipEmployerType INT
AS
BEGIN
UPDATE [dbo].[Commitment]
SET ApprenticeshipEmployerTypeOnApproval = @apprenticeshipEmployerType, IsFullApprovalProcessed = 1
WHERE Id = @cohortId
UPDATE [dbo].[Apprenticeship]
SET PaymentStatus = 1
WHERE CommitmentId = @cohortId
INSERT INTO [dbo].[PriceHistory] (ApprenticeshipId, Cost, FromDate)
SELECT Id, Cost, ISNULL(ActualStartDate, StartDate)
FROM [dbo].[Apprenticeship]
WHERE CommitmentId = @cohortId
END | Use actual start date if available. | Use actual start date if available.
| SQL | mit | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | sql | ## Code Before:
CREATE PROCEDURE [dbo].[ProcessFullyApprovedCohort]
@cohortId BIGINT,
@accountId BIGINT,
@apprenticeshipEmployerType INT
AS
BEGIN
UPDATE [dbo].[Commitment]
SET ApprenticeshipEmployerTypeOnApproval = @apprenticeshipEmployerType, IsFullApprovalProcessed = 1
WHERE Id = @cohortId
UPDATE [dbo].[Apprenticeship]
SET PaymentStatus = 1
WHERE CommitmentId = @cohortId
INSERT INTO [dbo].[PriceHistory] (ApprenticeshipId, Cost, FromDate)
SELECT Id, Cost, StartDate
FROM [dbo].[Apprenticeship]
WHERE CommitmentId = @cohortId
END
## Instruction:
Use actual start date if available.
## Code After:
CREATE PROCEDURE [dbo].[ProcessFullyApprovedCohort]
@cohortId BIGINT,
@accountId BIGINT,
@apprenticeshipEmployerType INT
AS
BEGIN
UPDATE [dbo].[Commitment]
SET ApprenticeshipEmployerTypeOnApproval = @apprenticeshipEmployerType, IsFullApprovalProcessed = 1
WHERE Id = @cohortId
UPDATE [dbo].[Apprenticeship]
SET PaymentStatus = 1
WHERE CommitmentId = @cohortId
INSERT INTO [dbo].[PriceHistory] (ApprenticeshipId, Cost, FromDate)
SELECT Id, Cost, ISNULL(ActualStartDate, StartDate)
FROM [dbo].[Apprenticeship]
WHERE CommitmentId = @cohortId
END | CREATE PROCEDURE [dbo].[ProcessFullyApprovedCohort]
@cohortId BIGINT,
@accountId BIGINT,
@apprenticeshipEmployerType INT
AS
BEGIN
UPDATE [dbo].[Commitment]
SET ApprenticeshipEmployerTypeOnApproval = @apprenticeshipEmployerType, IsFullApprovalProcessed = 1
WHERE Id = @cohortId
UPDATE [dbo].[Apprenticeship]
SET PaymentStatus = 1
WHERE CommitmentId = @cohortId
INSERT INTO [dbo].[PriceHistory] (ApprenticeshipId, Cost, FromDate)
- SELECT Id, Cost, StartDate
+ SELECT Id, Cost, ISNULL(ActualStartDate, StartDate)
FROM [dbo].[Apprenticeship]
WHERE CommitmentId = @cohortId
END | 2 | 0.1 | 1 | 1 |
ffc9220ea09426447a472441022d504549d8adf3 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.5"
install: "pip install -r requirements.txt"
script: nosetests
| language: python
python:
- '2.7'
- '3.5'
install: pip install -r requirements.txt
script: nosetests
deploy:
provider: pypi
user: iandees
password:
secure: iUhnVoz+l0msDdJbAXDNUSUbHWJkmxvkdxY4XFHBE5wZZ6cJ8WMdIk09vOT4JXmkllV0RKflvC/o+9WG5Bu8dzEsVR6mch6zV+kIsBAiMBpXUK34f/TPiHFg41t508CH9MDWAq3I3Arkw2IVcyrqWONsI7MxU/oDkBmC2M2ze5s=
on:
tags: true
distributions: sdist bdist_wheel
repo: openaddresses/pyesridump
| Add deploy to pypi step via TravisCI | Add deploy to pypi step via TravisCI
| YAML | mit | openaddresses/pyesridump,iandees/esri-dump | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.5"
install: "pip install -r requirements.txt"
script: nosetests
## Instruction:
Add deploy to pypi step via TravisCI
## Code After:
language: python
python:
- '2.7'
- '3.5'
install: pip install -r requirements.txt
script: nosetests
deploy:
provider: pypi
user: iandees
password:
secure: iUhnVoz+l0msDdJbAXDNUSUbHWJkmxvkdxY4XFHBE5wZZ6cJ8WMdIk09vOT4JXmkllV0RKflvC/o+9WG5Bu8dzEsVR6mch6zV+kIsBAiMBpXUK34f/TPiHFg41t508CH9MDWAq3I3Arkw2IVcyrqWONsI7MxU/oDkBmC2M2ze5s=
on:
tags: true
distributions: sdist bdist_wheel
repo: openaddresses/pyesridump
| language: python
python:
- - "2.7"
- - "3.5"
+ - '2.7'
+ - '3.5'
- install: "pip install -r requirements.txt"
? - -
+ install: pip install -r requirements.txt
script: nosetests
+ deploy:
+ provider: pypi
+ user: iandees
+ password:
+ secure: iUhnVoz+l0msDdJbAXDNUSUbHWJkmxvkdxY4XFHBE5wZZ6cJ8WMdIk09vOT4JXmkllV0RKflvC/o+9WG5Bu8dzEsVR6mch6zV+kIsBAiMBpXUK34f/TPiHFg41t508CH9MDWAq3I3Arkw2IVcyrqWONsI7MxU/oDkBmC2M2ze5s=
+ on:
+ tags: true
+ distributions: sdist bdist_wheel
+ repo: openaddresses/pyesridump | 15 | 2.5 | 12 | 3 |
8ec0255729e45dda364f09fd5b66001dabb9660a | .travis.yml | .travis.yml | language: ruby
sudo: false
rvm: 2.2
addons:
transifex:
username: somebody
password: s3cretz
hostname: https://www.custom-hostname.example.com
install: echo install
script: echo script
after_script:
- cat ~/.transifexrc
| language: ruby
sudo: false
rvm: 2.2
env:
- ZERO=0
- ZERO=1
addons:
transifex:
username: somebody
password: s3cretz
hostname: https://www.custom-hostname.example.com
install: echo install
script:
- echo script
- test $ZERO -eq 0
after_script:
- cat ~/.transifexrc
| Test after_success behavior of transifex | Test after_success behavior of transifex
| YAML | mit | travis-repos/ruby-test-staging | yaml | ## Code Before:
language: ruby
sudo: false
rvm: 2.2
addons:
transifex:
username: somebody
password: s3cretz
hostname: https://www.custom-hostname.example.com
install: echo install
script: echo script
after_script:
- cat ~/.transifexrc
## Instruction:
Test after_success behavior of transifex
## Code After:
language: ruby
sudo: false
rvm: 2.2
env:
- ZERO=0
- ZERO=1
addons:
transifex:
username: somebody
password: s3cretz
hostname: https://www.custom-hostname.example.com
install: echo install
script:
- echo script
- test $ZERO -eq 0
after_script:
- cat ~/.transifexrc
| language: ruby
sudo: false
rvm: 2.2
+
+ env:
+ - ZERO=0
+ - ZERO=1
addons:
transifex:
username: somebody
password: s3cretz
hostname: https://www.custom-hostname.example.com
install: echo install
+ script:
- script: echo script
? ^^^^^^^
+ - echo script
? ^
+ - test $ZERO -eq 0
after_script:
- cat ~/.transifexrc | 8 | 0.5 | 7 | 1 |
ef7ac8959e1aede310eeed434d6c85807e2893c1 | test/CMakeLists.txt | test/CMakeLists.txt |
cmake_minimum_required (VERSION 3.3)
include (CheckCXXCompilerFlag)
if (${WIN32})
CHECK_CXX_COMPILER_FLAG ("/arch:AVX" HAVE_SSE3)
else ()
CHECK_CXX_COMPILER_FLAG ("-msse3" HAVE_SSE3)
endif ()
if (${HAVE_SSE3})
add_definitions ("-DHAVE_SSE3")
endif ()
set (SOURCE_FILES main.cxx md5.cxx sse.cxx)
set (TARGET_NAME "test-salsa20")
add_executable (${TARGET_NAME} ${SOURCE_FILES})
target_link_libraries (${TARGET_NAME} PRIVATE salsa20 fmt)
target_compile_definitions (${TARGET_NAME} PRIVATE "-DNOMINMAX")
target_compile_features (${TARGET_NAME} PRIVATE cxx_auto_type cxx_uniform_initialization cxx_alignas)
target_include_directories (${TARGET_NAME} PRIVATE ${CMAKE_BINARY_DIR}/include)
|
cmake_minimum_required (VERSION 3.3)
include (CheckCXXCompilerFlag)
if (${WIN32})
CHECK_CXX_COMPILER_FLAG ("/arch:AVX" HAVE_SSE3)
else ()
CHECK_CXX_COMPILER_FLAG ("-msse3" HAVE_SSE3)
endif ()
if (${HAVE_SSE3})
add_definitions ("-DHAVE_SSE3")
endif ()
set (SOURCE_FILES main.cxx md5.cxx sse.cxx)
include_directories (${CMAKE_BINARY_DIR}/include)
function (make_target TARGET_)
add_executable (${TARGET_} ${SOURCE_FILES})
target_link_libraries (${TARGET_} PRIVATE salsa20 fmt)
target_compile_definitions (${TARGET_} PRIVATE "-DNOMINMAX")
target_compile_features (${TARGET_} PRIVATE cxx_auto_type cxx_uniform_initialization cxx_alignas)
endfunction ()
make_target (test_salsa20)
| Consolidate target related things into the function | style: Consolidate target related things into the function
| Text | mit | objectx/salsa20,objectx/salsa20 | text | ## Code Before:
cmake_minimum_required (VERSION 3.3)
include (CheckCXXCompilerFlag)
if (${WIN32})
CHECK_CXX_COMPILER_FLAG ("/arch:AVX" HAVE_SSE3)
else ()
CHECK_CXX_COMPILER_FLAG ("-msse3" HAVE_SSE3)
endif ()
if (${HAVE_SSE3})
add_definitions ("-DHAVE_SSE3")
endif ()
set (SOURCE_FILES main.cxx md5.cxx sse.cxx)
set (TARGET_NAME "test-salsa20")
add_executable (${TARGET_NAME} ${SOURCE_FILES})
target_link_libraries (${TARGET_NAME} PRIVATE salsa20 fmt)
target_compile_definitions (${TARGET_NAME} PRIVATE "-DNOMINMAX")
target_compile_features (${TARGET_NAME} PRIVATE cxx_auto_type cxx_uniform_initialization cxx_alignas)
target_include_directories (${TARGET_NAME} PRIVATE ${CMAKE_BINARY_DIR}/include)
## Instruction:
style: Consolidate target related things into the function
## Code After:
cmake_minimum_required (VERSION 3.3)
include (CheckCXXCompilerFlag)
if (${WIN32})
CHECK_CXX_COMPILER_FLAG ("/arch:AVX" HAVE_SSE3)
else ()
CHECK_CXX_COMPILER_FLAG ("-msse3" HAVE_SSE3)
endif ()
if (${HAVE_SSE3})
add_definitions ("-DHAVE_SSE3")
endif ()
set (SOURCE_FILES main.cxx md5.cxx sse.cxx)
include_directories (${CMAKE_BINARY_DIR}/include)
function (make_target TARGET_)
add_executable (${TARGET_} ${SOURCE_FILES})
target_link_libraries (${TARGET_} PRIVATE salsa20 fmt)
target_compile_definitions (${TARGET_} PRIVATE "-DNOMINMAX")
target_compile_features (${TARGET_} PRIVATE cxx_auto_type cxx_uniform_initialization cxx_alignas)
endfunction ()
make_target (test_salsa20)
|
cmake_minimum_required (VERSION 3.3)
include (CheckCXXCompilerFlag)
if (${WIN32})
CHECK_CXX_COMPILER_FLAG ("/arch:AVX" HAVE_SSE3)
else ()
CHECK_CXX_COMPILER_FLAG ("-msse3" HAVE_SSE3)
endif ()
if (${HAVE_SSE3})
add_definitions ("-DHAVE_SSE3")
endif ()
set (SOURCE_FILES main.cxx md5.cxx sse.cxx)
- set (TARGET_NAME "test-salsa20")
+ include_directories (${CMAKE_BINARY_DIR}/include)
+ function (make_target TARGET_)
- add_executable (${TARGET_NAME} ${SOURCE_FILES})
? ----
+ add_executable (${TARGET_} ${SOURCE_FILES})
? ++++
- target_link_libraries (${TARGET_NAME} PRIVATE salsa20 fmt)
? ----
+ target_link_libraries (${TARGET_} PRIVATE salsa20 fmt)
- target_compile_definitions (${TARGET_NAME} PRIVATE "-DNOMINMAX")
? ----
+ target_compile_definitions (${TARGET_} PRIVATE "-DNOMINMAX")
- target_compile_features (${TARGET_NAME} PRIVATE cxx_auto_type cxx_uniform_initialization cxx_alignas)
? ----
+ target_compile_features (${TARGET_} PRIVATE cxx_auto_type cxx_uniform_initialization cxx_alignas)
- target_include_directories (${TARGET_NAME} PRIVATE ${CMAKE_BINARY_DIR}/include)
+ endfunction ()
+
+ make_target (test_salsa20) | 15 | 0.652174 | 9 | 6 |
b30ff9b38edf1b9723c299a78e6d931400cf5920 | README.md | README.md | piston-examples
===============
A collection of examples using the Piston game engine
## How to build & run examples
1. Install [Cargo](https://github.com/rust-lang/cargo)
2. In the Terminal window, navigate to the project directory of the example you want to build.
3. Type `cargo build`
4. Type `make run`
|
A collection of examples using the Piston game engine
## How to build & run examples
1. Install [Cargo](https://github.com/rust-lang/cargo)
2. In the Terminal window, navigate to the project directory of the example you want to build.
3. Type `cargo build`
4. Type `make run`
| Add travis CI status to readme | Add travis CI status to readme
| Markdown | mit | Abica/piston-examples,sinistersnare/piston-examples,Potpourri/piston-examples,dannyflax/piston-examples,placrosse/piston-examples,carols10cents/piston-examples | markdown | ## Code Before:
piston-examples
===============
A collection of examples using the Piston game engine
## How to build & run examples
1. Install [Cargo](https://github.com/rust-lang/cargo)
2. In the Terminal window, navigate to the project directory of the example you want to build.
3. Type `cargo build`
4. Type `make run`
## Instruction:
Add travis CI status to readme
## Code After:
A collection of examples using the Piston game engine
## How to build & run examples
1. Install [Cargo](https://github.com/rust-lang/cargo)
2. In the Terminal window, navigate to the project directory of the example you want to build.
3. Type `cargo build`
4. Type `make run`
| - piston-examples
- ===============
A collection of examples using the Piston game engine
## How to build & run examples
1. Install [Cargo](https://github.com/rust-lang/cargo)
2. In the Terminal window, navigate to the project directory of the example you want to build.
3. Type `cargo build`
4. Type `make run` | 2 | 0.181818 | 0 | 2 |
c9652b2f515b167453cd23d755a5bc4d2bd3155f | README.md | README.md | A simple and open source web chat room.
Loosely based on [Chat](https://github.com/djrenren/nodecrash/tree/master/Chat) from [John Renner](https://github.com/djrenren)'s [nodecrash](https://github.com/djrenren/nodecrash) repository.
## Goals
- Free and open source.
- Simple and easy to use.
- Easy to self-host, while also providing a hosted version.
- Do not require accounts by default.
- Support multiple chat rooms.
| A simple and open source web chat room.
## Goals
- Free and open source.
- Simple and easy to use.
- Easy to self-host, while also providing a hosted version.
- Do not require accounts by default.
- Support multiple chat rooms.
## Credits
- Inspired by [Campfire](https://campfirenow.com/) and [HipChat](https://www.hipchat.com/). Please note that I am not affiliated with either product, though I do enjoy using them.
- Loosely based on [Chat](https://github.com/djrenren/nodecrash/tree/master/Chat) from [John Renner](https://github.com/djrenren)'s [nodecrash](https://github.com/djrenren/nodecrash) repository.
| Add a "Credits" section to the readme | Add a "Credits" section to the readme | Markdown | mit | nicolasmccurdy/ochat,nicolasmccurdy/ochat | markdown | ## Code Before:
A simple and open source web chat room.
Loosely based on [Chat](https://github.com/djrenren/nodecrash/tree/master/Chat) from [John Renner](https://github.com/djrenren)'s [nodecrash](https://github.com/djrenren/nodecrash) repository.
## Goals
- Free and open source.
- Simple and easy to use.
- Easy to self-host, while also providing a hosted version.
- Do not require accounts by default.
- Support multiple chat rooms.
## Instruction:
Add a "Credits" section to the readme
## Code After:
A simple and open source web chat room.
## Goals
- Free and open source.
- Simple and easy to use.
- Easy to self-host, while also providing a hosted version.
- Do not require accounts by default.
- Support multiple chat rooms.
## Credits
- Inspired by [Campfire](https://campfirenow.com/) and [HipChat](https://www.hipchat.com/). Please note that I am not affiliated with either product, though I do enjoy using them.
- Loosely based on [Chat](https://github.com/djrenren/nodecrash/tree/master/Chat) from [John Renner](https://github.com/djrenren)'s [nodecrash](https://github.com/djrenren/nodecrash) repository.
| A simple and open source web chat room.
-
- Loosely based on [Chat](https://github.com/djrenren/nodecrash/tree/master/Chat) from [John Renner](https://github.com/djrenren)'s [nodecrash](https://github.com/djrenren/nodecrash) repository.
## Goals
- Free and open source.
- Simple and easy to use.
- Easy to self-host, while also providing a hosted version.
- Do not require accounts by default.
- Support multiple chat rooms.
+
+ ## Credits
+ - Inspired by [Campfire](https://campfirenow.com/) and [HipChat](https://www.hipchat.com/). Please note that I am not affiliated with either product, though I do enjoy using them.
+ - Loosely based on [Chat](https://github.com/djrenren/nodecrash/tree/master/Chat) from [John Renner](https://github.com/djrenren)'s [nodecrash](https://github.com/djrenren/nodecrash) repository. | 6 | 0.6 | 4 | 2 |
b5ad23ac1bd90cb05085403c84a33fac9d36e69d | README.md | README.md | <img src="http://modding.kalam-alami.net/site/img/invtweaks.png" />
## What's this project about
This Open Source project (see [License](https://github.com/mkalam-alami/inventory-tweaks/blob/master/src/doc/license.txt)) is a client mod for [Minecraft](http://www.minecraft.net/), a game by [Mojang AB](http://mojang.com/). It implements various features to help players with the management of inventories and chests. A lot of effort has been put to make it as customizable as possible, without being annoying to set up.
## Get started
* For documentation about how to use or install the mod, see the [main page of Inventory Tweaks](http://wan.ka.free.fr/?invtweaks). This place is for developers!
* To start coding, all is explained on the [project's wiki](https://github.com/mkalam-alami/inventory-tweaks/wiki). | <img src="http://modding.kalam-alami.net/site/img/invtweaks.png" />
*Matching Minecraft version: **1.2.X***
## What's this project about
This Open Source project (see [License](https://github.com/mkalam-alami/inventory-tweaks/blob/master/src/doc/license.txt)) is a client mod for [Minecraft](http://www.minecraft.net/), a game by [Mojang AB](http://mojang.com/). It implements various features to help players with the management of inventories and chests. A lot of effort has been put to make it as customizable as possible, without being annoying to set up.
## Get started
* For documentation about how to use or install the mod, see the [main page of Inventory Tweaks](http://wan.ka.free.fr/?invtweaks). This place is for developers!
* To start coding, all is explained on the [project's wiki](https://github.com/mkalam-alami/inventory-tweaks/wiki).
| Write MC version in readme | Write MC version in readme
| Markdown | mit | Vexatos/inventory-tweaks,mkalam-alami/inventory-tweaks,GuntherDW/inventory-tweaks-liteloader,GuntherDW/inventory-tweaks-liteloader,mkalam-alami/inventory-tweaks,mrammy/inventory-tweaks,TGNThump/inventory-tweaks,TerraGamingNetwork/inventory-tweaks,TGNThump/inventory-tweaks,asiekierka/inventory-tweaks,asiekierka/inventory-tweaks,Vexatos/inventory-tweaks,14mRh4X0r/inventory-tweaks,14mRh4X0r/inventory-tweaks,PrinceOfAmber/inventory-tweaks,Kobata/inventory-tweaks,TerraGamingNetwork/inventory-tweaks,mrammy/inventory-tweaks,PrinceOfAmber/inventory-tweaks,mkalam-alami/inventory-tweaks | markdown | ## Code Before:
<img src="http://modding.kalam-alami.net/site/img/invtweaks.png" />
## What's this project about
This Open Source project (see [License](https://github.com/mkalam-alami/inventory-tweaks/blob/master/src/doc/license.txt)) is a client mod for [Minecraft](http://www.minecraft.net/), a game by [Mojang AB](http://mojang.com/). It implements various features to help players with the management of inventories and chests. A lot of effort has been put to make it as customizable as possible, without being annoying to set up.
## Get started
* For documentation about how to use or install the mod, see the [main page of Inventory Tweaks](http://wan.ka.free.fr/?invtweaks). This place is for developers!
* To start coding, all is explained on the [project's wiki](https://github.com/mkalam-alami/inventory-tweaks/wiki).
## Instruction:
Write MC version in readme
## Code After:
<img src="http://modding.kalam-alami.net/site/img/invtweaks.png" />
*Matching Minecraft version: **1.2.X***
## What's this project about
This Open Source project (see [License](https://github.com/mkalam-alami/inventory-tweaks/blob/master/src/doc/license.txt)) is a client mod for [Minecraft](http://www.minecraft.net/), a game by [Mojang AB](http://mojang.com/). It implements various features to help players with the management of inventories and chests. A lot of effort has been put to make it as customizable as possible, without being annoying to set up.
## Get started
* For documentation about how to use or install the mod, see the [main page of Inventory Tweaks](http://wan.ka.free.fr/?invtweaks). This place is for developers!
* To start coding, all is explained on the [project's wiki](https://github.com/mkalam-alami/inventory-tweaks/wiki).
| <img src="http://modding.kalam-alami.net/site/img/invtweaks.png" />
+
+ *Matching Minecraft version: **1.2.X***
## What's this project about
This Open Source project (see [License](https://github.com/mkalam-alami/inventory-tweaks/blob/master/src/doc/license.txt)) is a client mod for [Minecraft](http://www.minecraft.net/), a game by [Mojang AB](http://mojang.com/). It implements various features to help players with the management of inventories and chests. A lot of effort has been put to make it as customizable as possible, without being annoying to set up.
## Get started
* For documentation about how to use or install the mod, see the [main page of Inventory Tweaks](http://wan.ka.free.fr/?invtweaks). This place is for developers!
* To start coding, all is explained on the [project's wiki](https://github.com/mkalam-alami/inventory-tweaks/wiki). | 2 | 0.2 | 2 | 0 |
cb246389092963c8f87d85946e5d514b79c8ae85 | market_description.txt | market_description.txt | Keep track of your favorite TV shows and movies.
- Track your watched episodes, keep tabs on new releases and manage your media collection.
- Connect with trakt to check in, comment, rate and to sync between devices and media centers.
- No sign-in required, keeps working without an internet connection.
- DashClock extension.
- List widget.
- Plug in extensions or build your own: http://seriesgui.de/api
.....
Get the subscription to unlock all features and support SeriesGuide! You will get more list widget options, notifications for new episodes and more. You also support continued fixes and new features.
http://seriesgui.de/whypay
NOTE: Dates and times are limited to the first release in the country of origin.
This app uses data and images by TheTVDB licensed under CC BY-NC 4.0. https://thetvdb.com/?tab=tos http://creativecommons.org/licenses/by-nc/4.0/
This product uses the TMDb API but is not endorsed or certified by TMDb. https://www.themoviedb.org/terms-of-use https://www.themoviedb.org/documentation/api/terms-of-use
This app uses data and images by trakt. https://trakt.tv/terms
Sample shows by Ross Scott, visit him at http://www.accursedfarms.com
Unlock permanent access to all features of SeriesGuide. Requires both SeriesGuide and X Pass to be installed. | SeriesGuide – Show & Movie Manager
Keep track of your favorite TV shows and movies.
- Track your watched episodes, keep tabs on new releases and manage your media collection.
- Connect with trakt to check in, comment, rate and to sync between devices and media centers.
- No sign-in required, keeps working without an internet connection.
- DashClock extension.
- List widget.
- Plug in extensions or build your own: https://seriesgui.de/api
.....
Get the subscription to unlock all features and support SeriesGuide! You will get more list widget options, notifications for new episodes and more. You also support continued fixes and new features.
https://seriesgui.de/whypay
NOTE: Dates and times are limited to the first release in the country of origin.
This app uses data and images by TheTVDB licensed under CC BY-NC 4.0. https://thetvdb.com/?tab=tos http://creativecommons.org/licenses/by-nc/4.0/
This product uses the TMDb API but is not endorsed or certified by TMDb. https://www.themoviedb.org/terms-of-use https://www.themoviedb.org/documentation/api/terms-of-use
This app uses data and images by trakt. https://trakt.tv/terms
Sample shows by Ross Scott, visit him at http://www.accursedfarms.com
SeriesGuide X Pass – Unlock all features
Unlock permanent access to all features of SeriesGuide. Requires both SeriesGuide and X Pass to be installed. | Add expanded titles for translation. | Add expanded titles for translation.
- Use HTTPS for links.
| Text | apache-2.0 | UweTrottmann/SeriesGuide,UweTrottmann/SeriesGuide | text | ## Code Before:
Keep track of your favorite TV shows and movies.
- Track your watched episodes, keep tabs on new releases and manage your media collection.
- Connect with trakt to check in, comment, rate and to sync between devices and media centers.
- No sign-in required, keeps working without an internet connection.
- DashClock extension.
- List widget.
- Plug in extensions or build your own: http://seriesgui.de/api
.....
Get the subscription to unlock all features and support SeriesGuide! You will get more list widget options, notifications for new episodes and more. You also support continued fixes and new features.
http://seriesgui.de/whypay
NOTE: Dates and times are limited to the first release in the country of origin.
This app uses data and images by TheTVDB licensed under CC BY-NC 4.0. https://thetvdb.com/?tab=tos http://creativecommons.org/licenses/by-nc/4.0/
This product uses the TMDb API but is not endorsed or certified by TMDb. https://www.themoviedb.org/terms-of-use https://www.themoviedb.org/documentation/api/terms-of-use
This app uses data and images by trakt. https://trakt.tv/terms
Sample shows by Ross Scott, visit him at http://www.accursedfarms.com
Unlock permanent access to all features of SeriesGuide. Requires both SeriesGuide and X Pass to be installed.
## Instruction:
Add expanded titles for translation.
- Use HTTPS for links.
## Code After:
SeriesGuide – Show & Movie Manager
Keep track of your favorite TV shows and movies.
- Track your watched episodes, keep tabs on new releases and manage your media collection.
- Connect with trakt to check in, comment, rate and to sync between devices and media centers.
- No sign-in required, keeps working without an internet connection.
- DashClock extension.
- List widget.
- Plug in extensions or build your own: https://seriesgui.de/api
.....
Get the subscription to unlock all features and support SeriesGuide! You will get more list widget options, notifications for new episodes and more. You also support continued fixes and new features.
https://seriesgui.de/whypay
NOTE: Dates and times are limited to the first release in the country of origin.
This app uses data and images by TheTVDB licensed under CC BY-NC 4.0. https://thetvdb.com/?tab=tos http://creativecommons.org/licenses/by-nc/4.0/
This product uses the TMDb API but is not endorsed or certified by TMDb. https://www.themoviedb.org/terms-of-use https://www.themoviedb.org/documentation/api/terms-of-use
This app uses data and images by trakt. https://trakt.tv/terms
Sample shows by Ross Scott, visit him at http://www.accursedfarms.com
SeriesGuide X Pass – Unlock all features
Unlock permanent access to all features of SeriesGuide. Requires both SeriesGuide and X Pass to be installed. | + SeriesGuide – Show & Movie Manager
+
Keep track of your favorite TV shows and movies.
- Track your watched episodes, keep tabs on new releases and manage your media collection.
- Connect with trakt to check in, comment, rate and to sync between devices and media centers.
- No sign-in required, keeps working without an internet connection.
- DashClock extension.
- List widget.
- - Plug in extensions or build your own: http://seriesgui.de/api
+ - Plug in extensions or build your own: https://seriesgui.de/api
? +
.....
Get the subscription to unlock all features and support SeriesGuide! You will get more list widget options, notifications for new episodes and more. You also support continued fixes and new features.
- http://seriesgui.de/whypay
+ https://seriesgui.de/whypay
? +
NOTE: Dates and times are limited to the first release in the country of origin.
This app uses data and images by TheTVDB licensed under CC BY-NC 4.0. https://thetvdb.com/?tab=tos http://creativecommons.org/licenses/by-nc/4.0/
This product uses the TMDb API but is not endorsed or certified by TMDb. https://www.themoviedb.org/terms-of-use https://www.themoviedb.org/documentation/api/terms-of-use
This app uses data and images by trakt. https://trakt.tv/terms
Sample shows by Ross Scott, visit him at http://www.accursedfarms.com
+ SeriesGuide X Pass – Unlock all features
+
Unlock permanent access to all features of SeriesGuide. Requires both SeriesGuide and X Pass to be installed. | 8 | 0.333333 | 6 | 2 |
6ffff3fff7b95aec62076a92d8fbac36a07c3833 | build.sbt | build.sbt | name := "gcal-slack-update"
organization := "hugocf"
maintainer := "hugo@ferreira.cc"
scalaVersion := "2.12.2"
scalacOptions += "-deprecation"
scalacOptions += "-feature" // https://blog.threatstack.com/useful-scala-compiler-options-part-2-advanced-language-features
scalacOptions += "-Ypartial-unification" // https://typelevel.org/cats/
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.3",
"org.scalaj" %% "scalaj-http" % "2.4.2",
"org.scalatest" %% "scalatest" % "3.0.5" % Test withSources(),
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test withSources(),
"org.mockito" % "mockito-core" % "2.23.4" % Test withSources())
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoOptions += BuildInfoOption.BuildTime
enablePlugins(JavaAppPackaging)
mappings in Universal := (mappings in Universal).value.filter { case(jar, _) => !jar.getName.contains("scala-reflect") }
ghreleaseAssets := Seq((packageBin in Universal).value)
ghreleaseNotes := { tag => s"""See CHANGELOG [$tag](../master/CHANGELOG.md#${tag.stripPrefix("v")}) for details.""" }
| name := "gcal-slack-update"
organization := "hugocf"
maintainer := "hugo@ferreira.cc"
scalaVersion := "2.12.2"
scalacOptions += "-deprecation"
scalacOptions += "-feature" // https://blog.threatstack.com/useful-scala-compiler-options-part-2-advanced-language-features
scalacOptions += "-Ypartial-unification" // https://typelevel.org/cats/
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.3",
"org.scalaj" %% "scalaj-http" % "2.4.2",
"org.scalatest" %% "scalatest" % "3.0.5" % Test withSources(),
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test withSources(),
"org.mockito" % "mockito-core" % "2.23.4" % Test withSources())
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoOptions += BuildInfoOption.BuildTime
enablePlugins(JavaAppPackaging)
mappings in Universal := (mappings in Universal).value.filter { case(jar, _) => !jar.getName.contains("scala-reflect") }
ghreleaseAssets := Seq((packageBin in Universal).value)
ghreleaseNotes := { tag => s"""See CHANGELOG [$tag](../master/CHANGELOG.md#${tag.replaceAll("[v.]", "")}) for details.""" }
| Fix release links to the changelog versions | docs: Fix release links to the changelog versions | Scala | mit | hugocf/gcal-slack-update | scala | ## Code Before:
name := "gcal-slack-update"
organization := "hugocf"
maintainer := "hugo@ferreira.cc"
scalaVersion := "2.12.2"
scalacOptions += "-deprecation"
scalacOptions += "-feature" // https://blog.threatstack.com/useful-scala-compiler-options-part-2-advanced-language-features
scalacOptions += "-Ypartial-unification" // https://typelevel.org/cats/
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.3",
"org.scalaj" %% "scalaj-http" % "2.4.2",
"org.scalatest" %% "scalatest" % "3.0.5" % Test withSources(),
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test withSources(),
"org.mockito" % "mockito-core" % "2.23.4" % Test withSources())
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoOptions += BuildInfoOption.BuildTime
enablePlugins(JavaAppPackaging)
mappings in Universal := (mappings in Universal).value.filter { case(jar, _) => !jar.getName.contains("scala-reflect") }
ghreleaseAssets := Seq((packageBin in Universal).value)
ghreleaseNotes := { tag => s"""See CHANGELOG [$tag](../master/CHANGELOG.md#${tag.stripPrefix("v")}) for details.""" }
## Instruction:
docs: Fix release links to the changelog versions
## Code After:
name := "gcal-slack-update"
organization := "hugocf"
maintainer := "hugo@ferreira.cc"
scalaVersion := "2.12.2"
scalacOptions += "-deprecation"
scalacOptions += "-feature" // https://blog.threatstack.com/useful-scala-compiler-options-part-2-advanced-language-features
scalacOptions += "-Ypartial-unification" // https://typelevel.org/cats/
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.3",
"org.scalaj" %% "scalaj-http" % "2.4.2",
"org.scalatest" %% "scalatest" % "3.0.5" % Test withSources(),
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test withSources(),
"org.mockito" % "mockito-core" % "2.23.4" % Test withSources())
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoOptions += BuildInfoOption.BuildTime
enablePlugins(JavaAppPackaging)
mappings in Universal := (mappings in Universal).value.filter { case(jar, _) => !jar.getName.contains("scala-reflect") }
ghreleaseAssets := Seq((packageBin in Universal).value)
ghreleaseNotes := { tag => s"""See CHANGELOG [$tag](../master/CHANGELOG.md#${tag.replaceAll("[v.]", "")}) for details.""" }
| name := "gcal-slack-update"
organization := "hugocf"
maintainer := "hugo@ferreira.cc"
scalaVersion := "2.12.2"
scalacOptions += "-deprecation"
scalacOptions += "-feature" // https://blog.threatstack.com/useful-scala-compiler-options-part-2-advanced-language-features
scalacOptions += "-Ypartial-unification" // https://typelevel.org/cats/
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.3",
"org.scalaj" %% "scalaj-http" % "2.4.2",
"org.scalatest" %% "scalatest" % "3.0.5" % Test withSources(),
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test withSources(),
"org.mockito" % "mockito-core" % "2.23.4" % Test withSources())
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoOptions += BuildInfoOption.BuildTime
enablePlugins(JavaAppPackaging)
mappings in Universal := (mappings in Universal).value.filter { case(jar, _) => !jar.getName.contains("scala-reflect") }
ghreleaseAssets := Seq((packageBin in Universal).value)
- ghreleaseNotes := { tag => s"""See CHANGELOG [$tag](../master/CHANGELOG.md#${tag.stripPrefix("v")}) for details.""" }
? ------ ^^^
+ ghreleaseNotes := { tag => s"""See CHANGELOG [$tag](../master/CHANGELOG.md#${tag.replaceAll("[v.]", "")}) for details.""" }
? ^^^^^^^^ + ++++++
| 2 | 0.074074 | 1 | 1 |
bcd5e0a929084e59c02b87a3cb3c955d20619dca | file/util/FileUtil.sh | file/util/FileUtil.sh | include array.validator.ArrayValidator
package string
FileUtil(){
construct(){
directories=($(StringUtil replace ${1} [/] space))
for directory in ${directories[@]}; do
dir=${dir}/${directory}
if [ ! -e ${dir} ]; then
mkdir ${dir}
cd ${dir}
else
cd ${dir}
fi
done
}
getContent(){
local file=${1}
cat ${file}
}
getExtension(){
local file=${1}
echo ${file/*[.]/}
}
getStatus(){
if [[ $(StringValidator isNull $(ls | grep ${1})) ]]; then
return;
else
if [[ $(ls | grep ${1}) == ${1} ]]; then
echo true
else
return;
fi
fi
}
matchFileContentSubstring(){
local pattern=${1}
local file=${2}
local matchingContent=($(grep -o '${pattern}' ${file}))
if [[ $(ArrayValidator
hasEntry ${matchingContent[@]} ${pattern}) ]]; then
return;
else
echo true
fi
}
$@
} | include array.validator.ArrayValidator
package string
FileUtil(){
construct(){
directories=($(StringUtil replace ${1} [/] space))
for directory in ${directories[@]}; do
dir=${dir}/${directory}
if [ ! -e ${dir} ]; then
mkdir ${dir}
cd ${dir}
else
cd ${dir}
fi
done
}
getContent(){
local file=${1}
cat ${file}
}
getExtension(){
local file=${1}
StringUtil strip ${file} *[.]
}
getStatus(){
if [[ $(StringValidator isNull $(ls | grep ${1})) ]]; then
return;
else
if [[ $(ls | grep ${1}) == ${1} ]]; then
echo true
else
return;
fi
fi
}
matchFileContentSubstring(){
local pattern=${1}
local file=${2}
local matchingContent=($(grep -o '${pattern}' ${file}))
if [[ $(ArrayValidator
hasEntry ${matchingContent[@]} ${pattern}) ]]; then
return;
else
echo true
fi
}
$@
} | Use strip() instead since StringUtil is an available dependency | Use strip() instead since StringUtil is an available dependency
| Shell | mit | anthony-chu/build-tool | shell | ## Code Before:
include array.validator.ArrayValidator
package string
FileUtil(){
construct(){
directories=($(StringUtil replace ${1} [/] space))
for directory in ${directories[@]}; do
dir=${dir}/${directory}
if [ ! -e ${dir} ]; then
mkdir ${dir}
cd ${dir}
else
cd ${dir}
fi
done
}
getContent(){
local file=${1}
cat ${file}
}
getExtension(){
local file=${1}
echo ${file/*[.]/}
}
getStatus(){
if [[ $(StringValidator isNull $(ls | grep ${1})) ]]; then
return;
else
if [[ $(ls | grep ${1}) == ${1} ]]; then
echo true
else
return;
fi
fi
}
matchFileContentSubstring(){
local pattern=${1}
local file=${2}
local matchingContent=($(grep -o '${pattern}' ${file}))
if [[ $(ArrayValidator
hasEntry ${matchingContent[@]} ${pattern}) ]]; then
return;
else
echo true
fi
}
$@
}
## Instruction:
Use strip() instead since StringUtil is an available dependency
## Code After:
include array.validator.ArrayValidator
package string
FileUtil(){
construct(){
directories=($(StringUtil replace ${1} [/] space))
for directory in ${directories[@]}; do
dir=${dir}/${directory}
if [ ! -e ${dir} ]; then
mkdir ${dir}
cd ${dir}
else
cd ${dir}
fi
done
}
getContent(){
local file=${1}
cat ${file}
}
getExtension(){
local file=${1}
StringUtil strip ${file} *[.]
}
getStatus(){
if [[ $(StringValidator isNull $(ls | grep ${1})) ]]; then
return;
else
if [[ $(ls | grep ${1}) == ${1} ]]; then
echo true
else
return;
fi
fi
}
matchFileContentSubstring(){
local pattern=${1}
local file=${2}
local matchingContent=($(grep -o '${pattern}' ${file}))
if [[ $(ArrayValidator
hasEntry ${matchingContent[@]} ${pattern}) ]]; then
return;
else
echo true
fi
}
$@
} | include array.validator.ArrayValidator
package string
FileUtil(){
construct(){
directories=($(StringUtil replace ${1} [/] space))
for directory in ${directories[@]}; do
dir=${dir}/${directory}
if [ ! -e ${dir} ]; then
mkdir ${dir}
cd ${dir}
else
cd ${dir}
fi
done
}
getContent(){
local file=${1}
cat ${file}
}
getExtension(){
local file=${1}
- echo ${file/*[.]/}
+ StringUtil strip ${file} *[.]
}
getStatus(){
if [[ $(StringValidator isNull $(ls | grep ${1})) ]]; then
return;
else
if [[ $(ls | grep ${1}) == ${1} ]]; then
echo true
else
return;
fi
fi
}
matchFileContentSubstring(){
local pattern=${1}
local file=${2}
local matchingContent=($(grep -o '${pattern}' ${file}))
if [[ $(ArrayValidator
hasEntry ${matchingContent[@]} ${pattern}) ]]; then
return;
else
echo true
fi
}
$@
} | 2 | 0.033333 | 1 | 1 |
8f603584251faa23bd00936d3849c1bbf5da15e7 | src/js/plugins/Highlighter.js | src/js/plugins/Highlighter.js | import { SlidehubPlugin } from '../core/SlidehubPlugin';
import { config } from '../config';
import { listener } from '../util/passive-event-listener';
export { Highlighter };
/**
* Highlighter.
*
* Highlights documents/items on hover
*/
class Highlighter extends SlidehubPlugin {
constructor(slidehub) {
const description = 'Highlights documents/items on hover';
super(slidehub, 'Highlighter', description);
this.boundHandleHighlight = this.handleHighlight.bind(this);
}
enable() {
document.addEventListener('mousemove', this.boundHandleHighlight, listener.passive);
super.enable();
}
disable() {
this.slidehub.unhighlightDocument();
document.removeEventListener('mousemove', this.boundHandleHighlight);
super.disable();
}
/**
* @param {MouseEvent} event
*/
handleHighlight(event) {
if (event.target instanceof Element) {
const docNode = event.target.closest(config.selector.doc);
if (docNode) {
const doc = this.slidehub.documents.get(docNode.id);
this.slidehub.highlightDocument(doc);
if (config.keepSelectedPageInFirstColumn) {
return;
}
const itemNode = event.target.closest(config.selector.item);
if (itemNode) {
doc.highlightItem(itemNode);
}
}
}
}
};
| import { SlidehubPlugin } from '../core/SlidehubPlugin';
import { config } from '../config';
import { listener } from '../util/passive-event-listener';
export { Highlighter };
/**
* Highlighter.
*
* Highlights documents/items on hover
*/
class Highlighter extends SlidehubPlugin {
constructor(slidehub) {
const description = 'Highlights documents/items on hover';
super(slidehub, 'Highlighter', description);
this.boundHandleHighlight = this.handleHighlight.bind(this);
}
enable() {
document.addEventListener('mousemove', this.boundHandleHighlight, listener.passive);
super.enable();
}
disable() {
this.slidehub.unhighlightDocument();
document.removeEventListener('mousemove', this.boundHandleHighlight);
super.disable();
}
/**
* @param {MouseEvent} event
*/
handleHighlight(event) {
if (event.target instanceof Element) {
const docNode = event.target.closest(config.selector.doc);
const doc = this.slidehub.documents.get(docNode.id);
if (doc.loaded) {
this.slidehub.highlightDocument(doc);
if (config.keepSelectedPageInFirstColumn) {
return;
}
const itemNode = event.target.closest(config.selector.item);
if (itemNode) {
doc.highlightItem(itemNode);
}
}
}
}
};
| Fix attempting to highlight a unloaded document | Fix attempting to highlight a unloaded document
| JavaScript | mit | webis-de/slidehub,webis-de/slidehub | javascript | ## Code Before:
import { SlidehubPlugin } from '../core/SlidehubPlugin';
import { config } from '../config';
import { listener } from '../util/passive-event-listener';
export { Highlighter };
/**
* Highlighter.
*
* Highlights documents/items on hover
*/
class Highlighter extends SlidehubPlugin {
constructor(slidehub) {
const description = 'Highlights documents/items on hover';
super(slidehub, 'Highlighter', description);
this.boundHandleHighlight = this.handleHighlight.bind(this);
}
enable() {
document.addEventListener('mousemove', this.boundHandleHighlight, listener.passive);
super.enable();
}
disable() {
this.slidehub.unhighlightDocument();
document.removeEventListener('mousemove', this.boundHandleHighlight);
super.disable();
}
/**
* @param {MouseEvent} event
*/
handleHighlight(event) {
if (event.target instanceof Element) {
const docNode = event.target.closest(config.selector.doc);
if (docNode) {
const doc = this.slidehub.documents.get(docNode.id);
this.slidehub.highlightDocument(doc);
if (config.keepSelectedPageInFirstColumn) {
return;
}
const itemNode = event.target.closest(config.selector.item);
if (itemNode) {
doc.highlightItem(itemNode);
}
}
}
}
};
## Instruction:
Fix attempting to highlight a unloaded document
## Code After:
import { SlidehubPlugin } from '../core/SlidehubPlugin';
import { config } from '../config';
import { listener } from '../util/passive-event-listener';
export { Highlighter };
/**
* Highlighter.
*
* Highlights documents/items on hover
*/
class Highlighter extends SlidehubPlugin {
constructor(slidehub) {
const description = 'Highlights documents/items on hover';
super(slidehub, 'Highlighter', description);
this.boundHandleHighlight = this.handleHighlight.bind(this);
}
enable() {
document.addEventListener('mousemove', this.boundHandleHighlight, listener.passive);
super.enable();
}
disable() {
this.slidehub.unhighlightDocument();
document.removeEventListener('mousemove', this.boundHandleHighlight);
super.disable();
}
/**
* @param {MouseEvent} event
*/
handleHighlight(event) {
if (event.target instanceof Element) {
const docNode = event.target.closest(config.selector.doc);
const doc = this.slidehub.documents.get(docNode.id);
if (doc.loaded) {
this.slidehub.highlightDocument(doc);
if (config.keepSelectedPageInFirstColumn) {
return;
}
const itemNode = event.target.closest(config.selector.item);
if (itemNode) {
doc.highlightItem(itemNode);
}
}
}
}
};
| import { SlidehubPlugin } from '../core/SlidehubPlugin';
import { config } from '../config';
import { listener } from '../util/passive-event-listener';
export { Highlighter };
/**
* Highlighter.
*
* Highlights documents/items on hover
*/
class Highlighter extends SlidehubPlugin {
constructor(slidehub) {
const description = 'Highlights documents/items on hover';
super(slidehub, 'Highlighter', description);
this.boundHandleHighlight = this.handleHighlight.bind(this);
}
enable() {
document.addEventListener('mousemove', this.boundHandleHighlight, listener.passive);
super.enable();
}
disable() {
this.slidehub.unhighlightDocument();
document.removeEventListener('mousemove', this.boundHandleHighlight);
super.disable();
}
/**
* @param {MouseEvent} event
*/
handleHighlight(event) {
if (event.target instanceof Element) {
const docNode = event.target.closest(config.selector.doc);
- if (docNode) {
- const doc = this.slidehub.documents.get(docNode.id);
? --
+ const doc = this.slidehub.documents.get(docNode.id);
+ if (doc.loaded) {
this.slidehub.highlightDocument(doc);
if (config.keepSelectedPageInFirstColumn) {
return;
}
const itemNode = event.target.closest(config.selector.item);
if (itemNode) {
doc.highlightItem(itemNode);
}
}
}
}
}; | 4 | 0.076923 | 2 | 2 |
3abb9b7de06b1b713c24cd5d8952b9ab150bff91 | metadata/com.infonuascape.osrshelper.txt | metadata/com.infonuascape.osrshelper.txt | AntiFeatures:NonFreeNet
Categories:Games
License:GPLv3
Web Site:https://github.com/ldionmarcil/OSRSHelper/blob/HEAD/README.md
Source Code:https://github.com/ldionmarcil/OSRSHelper
Issue Tracker:https://github.com/ldionmarcil/OSRSHelper/issues
Auto Name:OSRS Helper
Summary:View your RuneScape stats
Description:
View stats of your [http://oldschool.runescape.com/ OldSchool Runescape]
character.
.
Repo Type:git
Repo:https://github.com/ldionmarcil/OSRSHelper
Build:1.1.1,3
commit=7c8b3ba8f400e280e36fec17779a295e94a70a5d
target=android-19
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.2.1
Current Version Code:5
| AntiFeatures:NonFreeNet
Categories:Games
License:GPLv3
Web Site:https://github.com/ldionmarcil/OSRSHelper/blob/HEAD/README.md
Source Code:https://github.com/ldionmarcil/OSRSHelper
Issue Tracker:https://github.com/ldionmarcil/OSRSHelper/issues
Auto Name:OSRS Helper
Summary:View your RuneScape stats
Description:
View stats of your [http://oldschool.runescape.com/ OldSchool Runescape]
character.
.
Repo Type:git
Repo:https://github.com/ldionmarcil/OSRSHelper
Build:1.1.1,3
commit=7c8b3ba8f400e280e36fec17779a295e94a70a5d
target=android-19
Build:1.2.1,5
commit=23a83153bb4350841b919528c5550c3be34de79a
target=android-19
extlibs=android/android-support-v4.jar
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.2.1
Current Version Code:5
| Update OSRS Helper to 1.2.1 (5) | Update OSRS Helper to 1.2.1 (5)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
AntiFeatures:NonFreeNet
Categories:Games
License:GPLv3
Web Site:https://github.com/ldionmarcil/OSRSHelper/blob/HEAD/README.md
Source Code:https://github.com/ldionmarcil/OSRSHelper
Issue Tracker:https://github.com/ldionmarcil/OSRSHelper/issues
Auto Name:OSRS Helper
Summary:View your RuneScape stats
Description:
View stats of your [http://oldschool.runescape.com/ OldSchool Runescape]
character.
.
Repo Type:git
Repo:https://github.com/ldionmarcil/OSRSHelper
Build:1.1.1,3
commit=7c8b3ba8f400e280e36fec17779a295e94a70a5d
target=android-19
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.2.1
Current Version Code:5
## Instruction:
Update OSRS Helper to 1.2.1 (5)
## Code After:
AntiFeatures:NonFreeNet
Categories:Games
License:GPLv3
Web Site:https://github.com/ldionmarcil/OSRSHelper/blob/HEAD/README.md
Source Code:https://github.com/ldionmarcil/OSRSHelper
Issue Tracker:https://github.com/ldionmarcil/OSRSHelper/issues
Auto Name:OSRS Helper
Summary:View your RuneScape stats
Description:
View stats of your [http://oldschool.runescape.com/ OldSchool Runescape]
character.
.
Repo Type:git
Repo:https://github.com/ldionmarcil/OSRSHelper
Build:1.1.1,3
commit=7c8b3ba8f400e280e36fec17779a295e94a70a5d
target=android-19
Build:1.2.1,5
commit=23a83153bb4350841b919528c5550c3be34de79a
target=android-19
extlibs=android/android-support-v4.jar
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.2.1
Current Version Code:5
| AntiFeatures:NonFreeNet
Categories:Games
License:GPLv3
Web Site:https://github.com/ldionmarcil/OSRSHelper/blob/HEAD/README.md
Source Code:https://github.com/ldionmarcil/OSRSHelper
Issue Tracker:https://github.com/ldionmarcil/OSRSHelper/issues
Auto Name:OSRS Helper
Summary:View your RuneScape stats
Description:
View stats of your [http://oldschool.runescape.com/ OldSchool Runescape]
character.
.
Repo Type:git
Repo:https://github.com/ldionmarcil/OSRSHelper
Build:1.1.1,3
commit=7c8b3ba8f400e280e36fec17779a295e94a70a5d
target=android-19
+ Build:1.2.1,5
+ commit=23a83153bb4350841b919528c5550c3be34de79a
+ target=android-19
+ extlibs=android/android-support-v4.jar
+
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.2.1
Current Version Code:5
| 5 | 0.192308 | 5 | 0 |
49d2e57643f640815f37789137974b42d4117f89 | .travis.yml | .travis.yml | ---
language: go
go:
- 1.4
- tip
before_install:
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- COVERALLS='-service=travis-ci' ./.test-cover.sh
| ---
language: go
go:
- 1.4
- tip
before_install:
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- ./.test-cover.sh
| Disable coveralls for now, missing data | Disable coveralls for now, missing data
| YAML | mit | sandlerben/go-torch,allengaller/go-torch,sandlerben/go-torch,maximecaron/go-torch,Cofyc/go-torch,allengaller/go-torch,shaunstanislaus/go-torch,denji/go-torch,chinanjjohn2012/go-torch,uber/go-torch,shaunstanislaus/go-torch,NanXiao/go-torch,chinanjjohn2012/go-torch,Cofyc/go-torch,uber/go-torch,maximecaron/go-torch,NanXiao/go-torch,denji/go-torch | yaml | ## Code Before:
---
language: go
go:
- 1.4
- tip
before_install:
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- COVERALLS='-service=travis-ci' ./.test-cover.sh
## Instruction:
Disable coveralls for now, missing data
## Code After:
---
language: go
go:
- 1.4
- tip
before_install:
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- ./.test-cover.sh
| ---
language: go
go:
- 1.4
- tip
before_install:
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- - COVERALLS='-service=travis-ci' ./.test-cover.sh
+ - ./.test-cover.sh | 2 | 0.142857 | 1 | 1 |
271c91a607797bbd9d1a1e179745aedf580e8209 | user/models.py | user/models.py | from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, PermissionsMixin)
from django.core.urlresolvers import reverse
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL)
slug = models.SlugField(
max_length=30,
unique=True)
about = models.TextField()
def __str__(self):
return self.user.get_username()
def get_absolute_url(self):
return reverse(
'dj-auth:public_profile',
kwargs={'slug': self.slug})
def get_update_url(self):
return reverse('dj-auth:profile_update')
class User(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
'email address',
max_length=254,
unique=True)
is_staff = models.BooleanField(
'staff status',
default=False,
help_text=(
'Designates whether the user can '
'log into this admin site.'))
is_active = models.BooleanField(
'active',
default=True,
help_text=(
'Designates whether this user should '
'be treated as active. Unselect this '
'instead of deleting accounts.'))
USERNAME_FIELD = 'email'
def __str__(self):
return self.email
def get_absolute_url(self):
return self.profile.get_absolute_url()
| from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, PermissionsMixin)
from django.core.urlresolvers import reverse
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL)
name = models.CharField(
max_length=255)
slug = models.SlugField(
max_length=30,
unique=True)
about = models.TextField()
joined = models.DateTimeField(
"Date Joined",
auto_now_add=True)
def __str__(self):
return self.user.get_username()
def get_absolute_url(self):
return reverse(
'dj-auth:public_profile',
kwargs={'slug': self.slug})
def get_update_url(self):
return reverse('dj-auth:profile_update')
class User(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
'email address',
max_length=254,
unique=True)
is_staff = models.BooleanField(
'staff status',
default=False,
help_text=(
'Designates whether the user can '
'log into this admin site.'))
is_active = models.BooleanField(
'active',
default=True,
help_text=(
'Designates whether this user should '
'be treated as active. Unselect this '
'instead of deleting accounts.'))
USERNAME_FIELD = 'email'
def __str__(self):
return self.email
def get_absolute_url(self):
return self.profile.get_absolute_url()
def get_full_name(self):
return self.profile.name
def get_short_name(self):
return self.profile.name
| Add name and joined date field to Profile. | Ch22: Add name and joined date field to Profile.
| Python | bsd-2-clause | jambonrose/DjangoUnleashed-1.8,jambonrose/DjangoUnleashed-1.8 | python | ## Code Before:
from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, PermissionsMixin)
from django.core.urlresolvers import reverse
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL)
slug = models.SlugField(
max_length=30,
unique=True)
about = models.TextField()
def __str__(self):
return self.user.get_username()
def get_absolute_url(self):
return reverse(
'dj-auth:public_profile',
kwargs={'slug': self.slug})
def get_update_url(self):
return reverse('dj-auth:profile_update')
class User(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
'email address',
max_length=254,
unique=True)
is_staff = models.BooleanField(
'staff status',
default=False,
help_text=(
'Designates whether the user can '
'log into this admin site.'))
is_active = models.BooleanField(
'active',
default=True,
help_text=(
'Designates whether this user should '
'be treated as active. Unselect this '
'instead of deleting accounts.'))
USERNAME_FIELD = 'email'
def __str__(self):
return self.email
def get_absolute_url(self):
return self.profile.get_absolute_url()
## Instruction:
Ch22: Add name and joined date field to Profile.
## Code After:
from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, PermissionsMixin)
from django.core.urlresolvers import reverse
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL)
name = models.CharField(
max_length=255)
slug = models.SlugField(
max_length=30,
unique=True)
about = models.TextField()
joined = models.DateTimeField(
"Date Joined",
auto_now_add=True)
def __str__(self):
return self.user.get_username()
def get_absolute_url(self):
return reverse(
'dj-auth:public_profile',
kwargs={'slug': self.slug})
def get_update_url(self):
return reverse('dj-auth:profile_update')
class User(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
'email address',
max_length=254,
unique=True)
is_staff = models.BooleanField(
'staff status',
default=False,
help_text=(
'Designates whether the user can '
'log into this admin site.'))
is_active = models.BooleanField(
'active',
default=True,
help_text=(
'Designates whether this user should '
'be treated as active. Unselect this '
'instead of deleting accounts.'))
USERNAME_FIELD = 'email'
def __str__(self):
return self.email
def get_absolute_url(self):
return self.profile.get_absolute_url()
def get_full_name(self):
return self.profile.name
def get_short_name(self):
return self.profile.name
| from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, PermissionsMixin)
from django.core.urlresolvers import reverse
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL)
+ name = models.CharField(
+ max_length=255)
slug = models.SlugField(
max_length=30,
unique=True)
about = models.TextField()
+ joined = models.DateTimeField(
+ "Date Joined",
+ auto_now_add=True)
def __str__(self):
return self.user.get_username()
def get_absolute_url(self):
return reverse(
'dj-auth:public_profile',
kwargs={'slug': self.slug})
def get_update_url(self):
return reverse('dj-auth:profile_update')
class User(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
'email address',
max_length=254,
unique=True)
is_staff = models.BooleanField(
'staff status',
default=False,
help_text=(
'Designates whether the user can '
'log into this admin site.'))
is_active = models.BooleanField(
'active',
default=True,
help_text=(
'Designates whether this user should '
'be treated as active. Unselect this '
'instead of deleting accounts.'))
USERNAME_FIELD = 'email'
def __str__(self):
return self.email
def get_absolute_url(self):
return self.profile.get_absolute_url()
+
+ def get_full_name(self):
+ return self.profile.name
+
+ def get_short_name(self):
+ return self.profile.name | 11 | 0.207547 | 11 | 0 |
8f917149457b568570d8996581a4658d1f066a7c | metadata/com.headi.app.yml | metadata/com.headi.app.yml | Categories:
- Sports & Health
License: MIT
AuthorName: MrReSc
SourceCode: https://github.com/MrReSc/Headi
IssueTracker: https://github.com/MrReSc/Headi/issues
Translation: https://crwd.in/headi
Changelog: https://github.com/MrReSc/Headi/releases
AutoName: Headi
RepoType: git
Repo: https://github.com/MrReSc/Headi
Builds:
- versionName: 1.9.0-beta
versionCode: 190
commit: 1.9.0-beta
subdir: app
gradle:
- yes
- versionName: 1.9.1-beta
versionCode: 191
commit: 1.9.1-beta
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.9.1-beta
CurrentVersionCode: 191
| Categories:
- Sports & Health
License: MIT
AuthorName: MrReSc
SourceCode: https://github.com/MrReSc/Headi
IssueTracker: https://github.com/MrReSc/Headi/issues
Translation: https://crwd.in/headi
Changelog: https://github.com/MrReSc/Headi/releases
AutoName: Headi
RepoType: git
Repo: https://github.com/MrReSc/Headi
Builds:
- versionName: 1.9.0-beta
versionCode: 190
commit: 1.9.0-beta
subdir: app
gradle:
- yes
- versionName: 1.9.1-beta
versionCode: 191
commit: 1.9.1-beta
subdir: app
gradle:
- yes
- versionName: 1.10.0-beta
versionCode: 1100
commit: 1.10.0-beta
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.10.0-beta
CurrentVersionCode: 1100
| Update Headi to 1.10.0-beta (1100) | Update Headi to 1.10.0-beta (1100)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Sports & Health
License: MIT
AuthorName: MrReSc
SourceCode: https://github.com/MrReSc/Headi
IssueTracker: https://github.com/MrReSc/Headi/issues
Translation: https://crwd.in/headi
Changelog: https://github.com/MrReSc/Headi/releases
AutoName: Headi
RepoType: git
Repo: https://github.com/MrReSc/Headi
Builds:
- versionName: 1.9.0-beta
versionCode: 190
commit: 1.9.0-beta
subdir: app
gradle:
- yes
- versionName: 1.9.1-beta
versionCode: 191
commit: 1.9.1-beta
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.9.1-beta
CurrentVersionCode: 191
## Instruction:
Update Headi to 1.10.0-beta (1100)
## Code After:
Categories:
- Sports & Health
License: MIT
AuthorName: MrReSc
SourceCode: https://github.com/MrReSc/Headi
IssueTracker: https://github.com/MrReSc/Headi/issues
Translation: https://crwd.in/headi
Changelog: https://github.com/MrReSc/Headi/releases
AutoName: Headi
RepoType: git
Repo: https://github.com/MrReSc/Headi
Builds:
- versionName: 1.9.0-beta
versionCode: 190
commit: 1.9.0-beta
subdir: app
gradle:
- yes
- versionName: 1.9.1-beta
versionCode: 191
commit: 1.9.1-beta
subdir: app
gradle:
- yes
- versionName: 1.10.0-beta
versionCode: 1100
commit: 1.10.0-beta
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.10.0-beta
CurrentVersionCode: 1100
| Categories:
- Sports & Health
License: MIT
AuthorName: MrReSc
SourceCode: https://github.com/MrReSc/Headi
IssueTracker: https://github.com/MrReSc/Headi/issues
Translation: https://crwd.in/headi
Changelog: https://github.com/MrReSc/Headi/releases
AutoName: Headi
RepoType: git
Repo: https://github.com/MrReSc/Headi
Builds:
- versionName: 1.9.0-beta
versionCode: 190
commit: 1.9.0-beta
subdir: app
gradle:
- yes
- versionName: 1.9.1-beta
versionCode: 191
commit: 1.9.1-beta
subdir: app
gradle:
- yes
+ - versionName: 1.10.0-beta
+ versionCode: 1100
+ commit: 1.10.0-beta
+ subdir: app
+ gradle:
+ - yes
+
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
- CurrentVersion: 1.9.1-beta
? ^ ^
+ CurrentVersion: 1.10.0-beta
? ^^ ^
- CurrentVersionCode: 191
? -
+ CurrentVersionCode: 1100
? ++
| 11 | 0.333333 | 9 | 2 |
f136ebade93a5e070f8d57bd5ad53e5191874248 | fizzbuzz/fizzbuzz.go | fizzbuzz/fizzbuzz.go | package fizzbuzz
import (
"fmt"
"log"
)
func Generate(count int) ([]string, error) {
if count <= 0 {
return nil, fmt.Errorf("fizzbuzz: Negative fizzbuzz count provided")
}
fizzbuzz := make([]string, count)
var output string
for i := 1; i <= count; i++ {
switch {
case i%15 == 0:
output = "FizzBuzz"
case i%3 == 0:
output = "Fizz"
case i%5 == 0:
output = "Buzz"
default:
output = string(i)
}
fizzbuzz[i] = output
}
return fizzbuzz, nil
}
func Print(count int) {
fizzbuzz, err := Generate(count)
if err != nil {
log.Fatal(err)
}
for _, entry := range fizzbuzz {
fmt.Println(entry)
}
}
| package fizzbuzz
import (
"fmt"
"log"
)
func Generate(count int) ([]string, error) {
if count <= 0 {
return nil, fmt.Errorf("fizzbuzz: Negative fizzbuzz count provided")
}
fizzbuzz := make([]string, count)
var output string
for i := 1; i <= count; i++ {
switch {
case i%15 == 0:
output = "FizzBuzz"
case i%3 == 0:
output = "Fizz"
case i%5 == 0:
output = "Buzz"
default:
output = fmt.Sprintf("%d", i)
}
fizzbuzz[i-1] = output
}
return fizzbuzz, nil
}
func Print(count int) {
fizzbuzz, err := Generate(count)
if err != nil {
log.Fatal(err)
}
for _, entry := range fizzbuzz {
fmt.Println(entry)
}
}
| Fix off by one and string conversion | Fix off by one and string conversion
| Go | isc | mulander/goexamples | go | ## Code Before:
package fizzbuzz
import (
"fmt"
"log"
)
func Generate(count int) ([]string, error) {
if count <= 0 {
return nil, fmt.Errorf("fizzbuzz: Negative fizzbuzz count provided")
}
fizzbuzz := make([]string, count)
var output string
for i := 1; i <= count; i++ {
switch {
case i%15 == 0:
output = "FizzBuzz"
case i%3 == 0:
output = "Fizz"
case i%5 == 0:
output = "Buzz"
default:
output = string(i)
}
fizzbuzz[i] = output
}
return fizzbuzz, nil
}
func Print(count int) {
fizzbuzz, err := Generate(count)
if err != nil {
log.Fatal(err)
}
for _, entry := range fizzbuzz {
fmt.Println(entry)
}
}
## Instruction:
Fix off by one and string conversion
## Code After:
package fizzbuzz
import (
"fmt"
"log"
)
func Generate(count int) ([]string, error) {
if count <= 0 {
return nil, fmt.Errorf("fizzbuzz: Negative fizzbuzz count provided")
}
fizzbuzz := make([]string, count)
var output string
for i := 1; i <= count; i++ {
switch {
case i%15 == 0:
output = "FizzBuzz"
case i%3 == 0:
output = "Fizz"
case i%5 == 0:
output = "Buzz"
default:
output = fmt.Sprintf("%d", i)
}
fizzbuzz[i-1] = output
}
return fizzbuzz, nil
}
func Print(count int) {
fizzbuzz, err := Generate(count)
if err != nil {
log.Fatal(err)
}
for _, entry := range fizzbuzz {
fmt.Println(entry)
}
}
| package fizzbuzz
import (
"fmt"
"log"
)
func Generate(count int) ([]string, error) {
if count <= 0 {
return nil, fmt.Errorf("fizzbuzz: Negative fizzbuzz count provided")
}
fizzbuzz := make([]string, count)
var output string
for i := 1; i <= count; i++ {
switch {
case i%15 == 0:
output = "FizzBuzz"
case i%3 == 0:
output = "Fizz"
case i%5 == 0:
output = "Buzz"
default:
- output = string(i)
+ output = fmt.Sprintf("%d", i)
}
- fizzbuzz[i] = output
+ fizzbuzz[i-1] = output
? ++
}
return fizzbuzz, nil
}
func Print(count int) {
fizzbuzz, err := Generate(count)
if err != nil {
log.Fatal(err)
}
for _, entry := range fizzbuzz {
fmt.Println(entry)
}
} | 4 | 0.095238 | 2 | 2 |
85294e8367b95108d8a29567a509f87823764495 | billy/web/admin/templates/billy/matching_debug.html | billy/web/admin/templates/billy/matching_debug.html | {% extends "billy/base.html" %}
{% load humanize %}
{% load staticfiles %}
{% load billy_utiltags %}
{% load url from future %}
{% block title %}Data Quality{% endblock %}
{% block script %}
<script>
$(document).ready(function(){
var trs = $("tr");
trs.click(function(){
var href = $(this).attr('href');
window.location = (href || window.location);
});
});
</script>
{% endblock %}
{% block content %}
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Number of times seen</th>
</tr>
</thead>
<tbody>
{% for name, ids in names.items %}
<tr>
<td>{{name}}</td>
<td>
{% for collection, id in ids|slice:":10" %}
<a href="{% url 'object_json' collection id %}">{{id}}</a>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
| {% extends "billy/base.html" %}
{% load humanize %}
{% load staticfiles %}
{% load billy_utiltags %}
{% load url from future %}
{% block title %}Data Quality{% endblock %}
{% block script %}
<script>
$(document).ready(function(){
var trs = $("tr");
trs.click(function(){
var href = $(this).attr('href');
window.location = (href || window.location);
});
});
</script>
{% endblock %}
{% block content %}
<h1>Found {{names|length}} distinct names.</h1>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Number of times seen</th>
</tr>
</thead>
<tbody>
{% for name, ids in names.items %}
<tr>
<td>{{name}}</td>
<td>
{% for collection, id in ids|slice:":10" %}
<a href="{% url 'object_json' collection id %}">{{id}}</a>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
| Add number of names found to H1 | Add number of names found to H1
| HTML | bsd-3-clause | sunlightlabs/billy,sunlightlabs/billy,sunlightlabs/billy,mileswwatkins/billy,loandy/billy,loandy/billy,mileswwatkins/billy,openstates/billy,loandy/billy,openstates/billy,openstates/billy,mileswwatkins/billy | html | ## Code Before:
{% extends "billy/base.html" %}
{% load humanize %}
{% load staticfiles %}
{% load billy_utiltags %}
{% load url from future %}
{% block title %}Data Quality{% endblock %}
{% block script %}
<script>
$(document).ready(function(){
var trs = $("tr");
trs.click(function(){
var href = $(this).attr('href');
window.location = (href || window.location);
});
});
</script>
{% endblock %}
{% block content %}
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Number of times seen</th>
</tr>
</thead>
<tbody>
{% for name, ids in names.items %}
<tr>
<td>{{name}}</td>
<td>
{% for collection, id in ids|slice:":10" %}
<a href="{% url 'object_json' collection id %}">{{id}}</a>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
## Instruction:
Add number of names found to H1
## Code After:
{% extends "billy/base.html" %}
{% load humanize %}
{% load staticfiles %}
{% load billy_utiltags %}
{% load url from future %}
{% block title %}Data Quality{% endblock %}
{% block script %}
<script>
$(document).ready(function(){
var trs = $("tr");
trs.click(function(){
var href = $(this).attr('href');
window.location = (href || window.location);
});
});
</script>
{% endblock %}
{% block content %}
<h1>Found {{names|length}} distinct names.</h1>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Number of times seen</th>
</tr>
</thead>
<tbody>
{% for name, ids in names.items %}
<tr>
<td>{{name}}</td>
<td>
{% for collection, id in ids|slice:":10" %}
<a href="{% url 'object_json' collection id %}">{{id}}</a>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
| {% extends "billy/base.html" %}
{% load humanize %}
{% load staticfiles %}
{% load billy_utiltags %}
{% load url from future %}
{% block title %}Data Quality{% endblock %}
{% block script %}
<script>
$(document).ready(function(){
var trs = $("tr");
trs.click(function(){
var href = $(this).attr('href');
window.location = (href || window.location);
});
});
</script>
{% endblock %}
{% block content %}
+ <h1>Found {{names|length}} distinct names.</h1>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Number of times seen</th>
</tr>
</thead>
<tbody>
{% for name, ids in names.items %}
<tr>
<td>{{name}}</td>
<td>
{% for collection, id in ids|slice:":10" %}
<a href="{% url 'object_json' collection id %}">{{id}}</a>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %} | 1 | 0.023256 | 1 | 0 |
fd9a2ea291b7881211b4c5b532843ccde6d63b42 | spec/spec_helper.rb | spec/spec_helper.rb | require 'pry'
require 'rspec/its'
RSpec.configure do |c|
# Enable 'should' syntax
c.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
c.mock_with(:rspec) { |c| c.syntax = [:should, :expect] }
# Only run tests marked with iso:true.
c.filter_run_including iso:true
c.run_all_when_everything_filtered = true
# Abort after first failure.
# (Use environment variable for developer preference)
c.fail_fast = true if ENV['RSPEC_FAIL_FAST']
# Set output formatter and enable color.
c.formatter = 'Fivemat'
c.color = true
end
| require 'pry'
require 'rspec/its'
RSpec.configure do |c|
# Enable 'should' syntax
c.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
c.mock_with(:rspec) { |c| c.syntax = [:should, :expect] }
# Only run tests marked with focus: true.
c.filter_run_including focus: true
c.run_all_when_everything_filtered = true
# Abort after first failure.
# (Use environment variable for developer preference)
c.fail_fast = true if ENV['RSPEC_FAIL_FAST']
# Set output formatter and enable color.
c.formatter = 'Fivemat'
c.color = true
end
| Change spec filter :iso to :focus for compatibility with `fit` method. | Change spec filter :iso to :focus for compatibility with `fit` method.
| Ruby | mit | amclain/machinegun | ruby | ## Code Before:
require 'pry'
require 'rspec/its'
RSpec.configure do |c|
# Enable 'should' syntax
c.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
c.mock_with(:rspec) { |c| c.syntax = [:should, :expect] }
# Only run tests marked with iso:true.
c.filter_run_including iso:true
c.run_all_when_everything_filtered = true
# Abort after first failure.
# (Use environment variable for developer preference)
c.fail_fast = true if ENV['RSPEC_FAIL_FAST']
# Set output formatter and enable color.
c.formatter = 'Fivemat'
c.color = true
end
## Instruction:
Change spec filter :iso to :focus for compatibility with `fit` method.
## Code After:
require 'pry'
require 'rspec/its'
RSpec.configure do |c|
# Enable 'should' syntax
c.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
c.mock_with(:rspec) { |c| c.syntax = [:should, :expect] }
# Only run tests marked with focus: true.
c.filter_run_including focus: true
c.run_all_when_everything_filtered = true
# Abort after first failure.
# (Use environment variable for developer preference)
c.fail_fast = true if ENV['RSPEC_FAIL_FAST']
# Set output formatter and enable color.
c.formatter = 'Fivemat'
c.color = true
end
| require 'pry'
require 'rspec/its'
RSpec.configure do |c|
# Enable 'should' syntax
c.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
c.mock_with(:rspec) { |c| c.syntax = [:should, :expect] }
- # Only run tests marked with iso:true.
? ^ -
+ # Only run tests marked with focus: true.
? ^^^^ +
- c.filter_run_including iso:true
? ^ -
+ c.filter_run_including focus: true
? ^^^^ +
c.run_all_when_everything_filtered = true
# Abort after first failure.
# (Use environment variable for developer preference)
c.fail_fast = true if ENV['RSPEC_FAIL_FAST']
# Set output formatter and enable color.
c.formatter = 'Fivemat'
c.color = true
end | 4 | 0.190476 | 2 | 2 |
8cabda8ff6a6fe61158c26360245f3170f197c50 | docs/docs/walkthrough/phase-0/loops-in-progress.md | docs/docs/walkthrough/phase-0/loops-in-progress.md |
To get you comfortable with submitting a "PR" (stands for pull request), test it out by submitting a PR to this page, adding your name to the list of people who have loops in progress. This way we know how many people are in the development phase, too.
New to Github, and PRs? [Check out how to submit your first PR](../../../../docs/docs/Resources/my-first-pr.md).
When you submit the PR, be sure to target the *dev* branch of openaps/docs, not the master branch. If you target master, we'll need to ask you to re-submit, or it will likely cause a merge conflict with edits from people who correctly targeted dev.
List of people who are working on closed loops:
- Dana Lewis
- Ben West
- Chris Hannemann
- Sarah Howard
- Mike Stebbins
- Scott Hanselman
- Greg Scull
- Aaron Michelson
- Jayson EWER --Intel Edison w/ TI--cc1111
- Frank Best
- Brooke Armstrong & Matt Pazoles
- David Young
- Paul Martin
- Jarred Yaw
- Shane Mitchell
- Boris and Kayley Raskin
- Andy Pabari
|
To get you comfortable with submitting a "PR" (stands for pull request), test it out by submitting a PR to this page, adding your name to the list of people who have loops in progress. This way we know how many people are in the development phase, too.
New to Github, and PRs? [Check out how to submit your first PR](../../../../docs/docs/Resources/my-first-pr.md).
When you submit the PR, be sure to target the *dev* branch of openaps/docs, not the master branch. If you target master, we'll need to ask you to re-submit, or it will likely cause a merge conflict with edits from people who correctly targeted dev.
List of people who are working on closed loops:
- Dana Lewis
- Ben West
- Chris Hannemann
- Sarah Howard
- Mike Stebbins
- Scott Hanselman
- Greg Scull
- Aaron Michelson
- Jayson EWER --Intel Edison w/ TI--cc1111
- Frank Best
- Brooke Armstrong & Matt Pazoles
- David Young
- Paul Martin
- Jarred Yaw
- Shane Mitchell
- Boris and Kayley Raskin
- Andy Pabari
- Rob Kresha - (Papillion, NE, USA)
| Add Rob Kresha to the loopers | Add Rob Kresha to the loopers
| Markdown | mit | sarahspins/docs,danamlewis/docs,openaps/docs,jbwittmer/docs,dakago/docs,Pazoles/docs,Jieseldeep/docs,danamlewis/docs | markdown | ## Code Before:
To get you comfortable with submitting a "PR" (stands for pull request), test it out by submitting a PR to this page, adding your name to the list of people who have loops in progress. This way we know how many people are in the development phase, too.
New to Github, and PRs? [Check out how to submit your first PR](../../../../docs/docs/Resources/my-first-pr.md).
When you submit the PR, be sure to target the *dev* branch of openaps/docs, not the master branch. If you target master, we'll need to ask you to re-submit, or it will likely cause a merge conflict with edits from people who correctly targeted dev.
List of people who are working on closed loops:
- Dana Lewis
- Ben West
- Chris Hannemann
- Sarah Howard
- Mike Stebbins
- Scott Hanselman
- Greg Scull
- Aaron Michelson
- Jayson EWER --Intel Edison w/ TI--cc1111
- Frank Best
- Brooke Armstrong & Matt Pazoles
- David Young
- Paul Martin
- Jarred Yaw
- Shane Mitchell
- Boris and Kayley Raskin
- Andy Pabari
## Instruction:
Add Rob Kresha to the loopers
## Code After:
To get you comfortable with submitting a "PR" (stands for pull request), test it out by submitting a PR to this page, adding your name to the list of people who have loops in progress. This way we know how many people are in the development phase, too.
New to Github, and PRs? [Check out how to submit your first PR](../../../../docs/docs/Resources/my-first-pr.md).
When you submit the PR, be sure to target the *dev* branch of openaps/docs, not the master branch. If you target master, we'll need to ask you to re-submit, or it will likely cause a merge conflict with edits from people who correctly targeted dev.
List of people who are working on closed loops:
- Dana Lewis
- Ben West
- Chris Hannemann
- Sarah Howard
- Mike Stebbins
- Scott Hanselman
- Greg Scull
- Aaron Michelson
- Jayson EWER --Intel Edison w/ TI--cc1111
- Frank Best
- Brooke Armstrong & Matt Pazoles
- David Young
- Paul Martin
- Jarred Yaw
- Shane Mitchell
- Boris and Kayley Raskin
- Andy Pabari
- Rob Kresha - (Papillion, NE, USA)
|
To get you comfortable with submitting a "PR" (stands for pull request), test it out by submitting a PR to this page, adding your name to the list of people who have loops in progress. This way we know how many people are in the development phase, too.
New to Github, and PRs? [Check out how to submit your first PR](../../../../docs/docs/Resources/my-first-pr.md).
When you submit the PR, be sure to target the *dev* branch of openaps/docs, not the master branch. If you target master, we'll need to ask you to re-submit, or it will likely cause a merge conflict with edits from people who correctly targeted dev.
List of people who are working on closed loops:
- Dana Lewis
- Ben West
- Chris Hannemann
- Sarah Howard
- Mike Stebbins
- Scott Hanselman
- Greg Scull
- Aaron Michelson
- Jayson EWER --Intel Edison w/ TI--cc1111
- Frank Best
- Brooke Armstrong & Matt Pazoles
- David Young
- Paul Martin
- Jarred Yaw
- Shane Mitchell
- Boris and Kayley Raskin
- Andy Pabari
+ - Rob Kresha - (Papillion, NE, USA) | 1 | 0.038462 | 1 | 0 |
4c124f151c2f8d466840b10e7ed53395b3d587dc | UM/Math/Ray.py | UM/Math/Ray.py | from UM.Math.Vector import Vector
class Ray:
def __init__(self, origin = Vector(), direction = Vector()):
self._origin = origin
self._direction = direction
self._invDirection = 1.0 / direction
@property
def origin(self):
return self._origin
@property
def direction(self):
return self._direction
@property
def inverseDirection(self):
return self._invDirection
def __repr__(self):
return "Ray(origin = {0}, direction = {1})".format(self._origin, self._direction)
| from UM.Math.Vector import Vector
class Ray:
def __init__(self, origin = Vector(), direction = Vector()):
self._origin = origin
self._direction = direction
self._invDirection = 1.0 / direction
@property
def origin(self):
return self._origin
@property
def direction(self):
return self._direction
@property
def inverseDirection(self):
return self._invDirection
def getPointAlongRay(self, distance):
return self._origin + (self._direction * distance)
def __repr__(self):
return "Ray(origin = {0}, direction = {1})".format(self._origin, self._direction)
| Add a convenience method to get a point along a ray | Add a convenience method to get a point along a ray
| Python | agpl-3.0 | onitake/Uranium,onitake/Uranium | python | ## Code Before:
from UM.Math.Vector import Vector
class Ray:
def __init__(self, origin = Vector(), direction = Vector()):
self._origin = origin
self._direction = direction
self._invDirection = 1.0 / direction
@property
def origin(self):
return self._origin
@property
def direction(self):
return self._direction
@property
def inverseDirection(self):
return self._invDirection
def __repr__(self):
return "Ray(origin = {0}, direction = {1})".format(self._origin, self._direction)
## Instruction:
Add a convenience method to get a point along a ray
## Code After:
from UM.Math.Vector import Vector
class Ray:
def __init__(self, origin = Vector(), direction = Vector()):
self._origin = origin
self._direction = direction
self._invDirection = 1.0 / direction
@property
def origin(self):
return self._origin
@property
def direction(self):
return self._direction
@property
def inverseDirection(self):
return self._invDirection
def getPointAlongRay(self, distance):
return self._origin + (self._direction * distance)
def __repr__(self):
return "Ray(origin = {0}, direction = {1})".format(self._origin, self._direction)
| from UM.Math.Vector import Vector
class Ray:
def __init__(self, origin = Vector(), direction = Vector()):
self._origin = origin
self._direction = direction
self._invDirection = 1.0 / direction
@property
def origin(self):
return self._origin
@property
def direction(self):
return self._direction
@property
def inverseDirection(self):
return self._invDirection
+ def getPointAlongRay(self, distance):
+ return self._origin + (self._direction * distance)
+
def __repr__(self):
return "Ray(origin = {0}, direction = {1})".format(self._origin, self._direction) | 3 | 0.136364 | 3 | 0 |
68b0405c6c2065132b3ec520974f857704a23dd7 | systemd/journald-wrapper/start.sh | systemd/journald-wrapper/start.sh |
/opt/data/tools/docker-clean.sh journald-wrapper &> /dev/null
AWS_ACCESS_ID=`/usr/bin/etcdctl get /_arken.io/config/aws/id`
AWS_ACCESS_SECRET=`/usr/bin/etcdctl get /_arken.io/config/aws/secret`
AWS_REGION=`/usr/bin/etcdctl get /_arken.io/config/s3/region`
PREFIX=`/usr/bin/etcdctl get /_arken.io/key`
exec docker run --name journald-wrapper -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_SECRET_ACCESS_KEY=$AWS_ACCESS_SECRET -e AWS_REGION=$AWS_REGION -e PREFIX=$PREFIX --rm quay.io/nuxeoio/journald-wrapper
|
/opt/data/tools/docker-clean.sh journald-wrapper &> /dev/null
AWS_ACCESS_ID=`/usr/bin/etcdctl get /_arken.io/config/aws/id`
AWS_ACCESS_SECRET=`/usr/bin/etcdctl get /_arken.io/config/aws/secret`
AWS_REGION=`/usr/bin/etcdctl get /_arken.io/config/s3/region`
PREFIX=`/usr/bin/etcdctl get /_arken.io/key`
CURSOR_PATH=/data/journald
mkdir -p /data/journald
exec docker run --name journald-wrapper -v /data/journald:/data/journald -e CURSOR_PATH=$CURSOR_PATH -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_SECRET_ACCESS_KEY=$AWS_ACCESS_SECRET -e AWS_REGION=$AWS_REGION -e PREFIX=$PREFIX --rm quay.io/nuxeoio/journald-wrapper
| Fix wrong docker run cmd | NXIO-358: Fix wrong docker run cmd
| Shell | lgpl-2.1 | nuxeo/nuxeo.io | shell | ## Code Before:
/opt/data/tools/docker-clean.sh journald-wrapper &> /dev/null
AWS_ACCESS_ID=`/usr/bin/etcdctl get /_arken.io/config/aws/id`
AWS_ACCESS_SECRET=`/usr/bin/etcdctl get /_arken.io/config/aws/secret`
AWS_REGION=`/usr/bin/etcdctl get /_arken.io/config/s3/region`
PREFIX=`/usr/bin/etcdctl get /_arken.io/key`
exec docker run --name journald-wrapper -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_SECRET_ACCESS_KEY=$AWS_ACCESS_SECRET -e AWS_REGION=$AWS_REGION -e PREFIX=$PREFIX --rm quay.io/nuxeoio/journald-wrapper
## Instruction:
NXIO-358: Fix wrong docker run cmd
## Code After:
/opt/data/tools/docker-clean.sh journald-wrapper &> /dev/null
AWS_ACCESS_ID=`/usr/bin/etcdctl get /_arken.io/config/aws/id`
AWS_ACCESS_SECRET=`/usr/bin/etcdctl get /_arken.io/config/aws/secret`
AWS_REGION=`/usr/bin/etcdctl get /_arken.io/config/s3/region`
PREFIX=`/usr/bin/etcdctl get /_arken.io/key`
CURSOR_PATH=/data/journald
mkdir -p /data/journald
exec docker run --name journald-wrapper -v /data/journald:/data/journald -e CURSOR_PATH=$CURSOR_PATH -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_SECRET_ACCESS_KEY=$AWS_ACCESS_SECRET -e AWS_REGION=$AWS_REGION -e PREFIX=$PREFIX --rm quay.io/nuxeoio/journald-wrapper
|
/opt/data/tools/docker-clean.sh journald-wrapper &> /dev/null
AWS_ACCESS_ID=`/usr/bin/etcdctl get /_arken.io/config/aws/id`
AWS_ACCESS_SECRET=`/usr/bin/etcdctl get /_arken.io/config/aws/secret`
AWS_REGION=`/usr/bin/etcdctl get /_arken.io/config/s3/region`
PREFIX=`/usr/bin/etcdctl get /_arken.io/key`
+ CURSOR_PATH=/data/journald
+ mkdir -p /data/journald
+
- exec docker run --name journald-wrapper -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_SECRET_ACCESS_KEY=$AWS_ACCESS_SECRET -e AWS_REGION=$AWS_REGION -e PREFIX=$PREFIX --rm quay.io/nuxeoio/journald-wrapper
+ exec docker run --name journald-wrapper -v /data/journald:/data/journald -e CURSOR_PATH=$CURSOR_PATH -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_SECRET_ACCESS_KEY=$AWS_ACCESS_SECRET -e AWS_REGION=$AWS_REGION -e PREFIX=$PREFIX --rm quay.io/nuxeoio/journald-wrapper
? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| 5 | 0.555556 | 4 | 1 |
bdc814db868075c75b85aa9110c84d5cc489e193 | oca_dependencies.txt | oca_dependencies.txt | queue
partner-contact
report-print-send
server-tools
connector-telephony
hr
social
website-cms
geospatial
survey
bank-payment https://github.com/CompassionCH/bank-payment 10.0-payment-cancel
web
l10n-switzerland
compassion-accounting https://github.com/CompassionCH/compassion-accounting devel
compassion-modules https://github.com/CompassionCH/compassion-modules devel | queue
partner-contact
report-print-send
server-tools
connector-telephony
hr https://github.com/CompassionCH/hr hr-extra-hours
social
website-cms
geospatial
survey
bank-payment https://github.com/CompassionCH/bank-payment 10.0-payment-cancel
web
l10n-switzerland
compassion-accounting https://github.com/CompassionCH/compassion-accounting devel
compassion-modules https://github.com/CompassionCH/compassion-modules devel | Change dependency to hr repository fork for travis | Change dependency to hr repository fork for travis
| Text | agpl-3.0 | CompassionCH/compassion-switzerland,eicher31/compassion-switzerland,CompassionCH/compassion-switzerland,eicher31/compassion-switzerland,ecino/compassion-switzerland,ecino/compassion-switzerland,eicher31/compassion-switzerland,ecino/compassion-switzerland,CompassionCH/compassion-switzerland | text | ## Code Before:
queue
partner-contact
report-print-send
server-tools
connector-telephony
hr
social
website-cms
geospatial
survey
bank-payment https://github.com/CompassionCH/bank-payment 10.0-payment-cancel
web
l10n-switzerland
compassion-accounting https://github.com/CompassionCH/compassion-accounting devel
compassion-modules https://github.com/CompassionCH/compassion-modules devel
## Instruction:
Change dependency to hr repository fork for travis
## Code After:
queue
partner-contact
report-print-send
server-tools
connector-telephony
hr https://github.com/CompassionCH/hr hr-extra-hours
social
website-cms
geospatial
survey
bank-payment https://github.com/CompassionCH/bank-payment 10.0-payment-cancel
web
l10n-switzerland
compassion-accounting https://github.com/CompassionCH/compassion-accounting devel
compassion-modules https://github.com/CompassionCH/compassion-modules devel | queue
partner-contact
report-print-send
server-tools
connector-telephony
- hr
+ hr https://github.com/CompassionCH/hr hr-extra-hours
social
website-cms
geospatial
survey
bank-payment https://github.com/CompassionCH/bank-payment 10.0-payment-cancel
web
l10n-switzerland
compassion-accounting https://github.com/CompassionCH/compassion-accounting devel
compassion-modules https://github.com/CompassionCH/compassion-modules devel | 2 | 0.133333 | 1 | 1 |
6a6b8290cdb419a8e3e82747f2c46102f9b0267b | lib/active_application/controller_methods.rb | lib/active_application/controller_methods.rb | module ActiveApplication
module ControllerMethods
private
def render_not_found
render "active_application/public/base/not_found", status: :not_found, layout: false
end
def require_customer_role
require_role :customer
end
def require_administrator_role
require_role :administrator
end
def require_role(role)
unless current_user && current_user.has_role?(role)
return render_not_found
end
end
def set_default_locale
set_locale Configuration.module_locales[:default]
end
def set_customer_locale
set_locale Configuration.module_locales[:customer]
end
def set_backend_locale
set_locale Configuration.module_locales[:backend]
end
def set_locale(locale)
I18n.locale = locale
end
def resource_params_additions
[]
end
def layout_for_account
set_locale Configuration.module_layouts[:account]
end
def layout_for_customer
set_locale Configuration.module_layouts[:customer]
end
def layout_for_backend
set_locale Configuration.module_layouts[:backend]
end
end
end
| module ActiveApplication
module ControllerMethods
private
def render_not_found
render "active_application/public/base/not_found", status: :not_found, layout: false
end
def require_customer_role
require_role :customer
end
def require_administrator_role
require_role :administrator
end
def require_role(role)
unless current_user && current_user.has_role?(role)
return render_not_found
end
end
def set_default_locale
set_locale Configuration.module_locales[:default]
end
def set_customer_locale
set_locale Configuration.module_locales[:customer]
end
def set_backend_locale
set_locale Configuration.module_locales[:backend]
end
def set_locale(locale)
I18n.locale = locale
end
def resource_params_additions
[]
end
def layout_for_account
Configuration.module_layouts[:account]
end
def layout_for_customer
Configuration.module_layouts[:customer]
end
def layout_for_backend
Configuration.module_layouts[:backend]
end
end
end
| Remove set_locale added by mistake | Remove set_locale added by mistake
| Ruby | mit | jarijokinen/active_application,jarijokinen/active_application | ruby | ## Code Before:
module ActiveApplication
module ControllerMethods
private
def render_not_found
render "active_application/public/base/not_found", status: :not_found, layout: false
end
def require_customer_role
require_role :customer
end
def require_administrator_role
require_role :administrator
end
def require_role(role)
unless current_user && current_user.has_role?(role)
return render_not_found
end
end
def set_default_locale
set_locale Configuration.module_locales[:default]
end
def set_customer_locale
set_locale Configuration.module_locales[:customer]
end
def set_backend_locale
set_locale Configuration.module_locales[:backend]
end
def set_locale(locale)
I18n.locale = locale
end
def resource_params_additions
[]
end
def layout_for_account
set_locale Configuration.module_layouts[:account]
end
def layout_for_customer
set_locale Configuration.module_layouts[:customer]
end
def layout_for_backend
set_locale Configuration.module_layouts[:backend]
end
end
end
## Instruction:
Remove set_locale added by mistake
## Code After:
module ActiveApplication
module ControllerMethods
private
def render_not_found
render "active_application/public/base/not_found", status: :not_found, layout: false
end
def require_customer_role
require_role :customer
end
def require_administrator_role
require_role :administrator
end
def require_role(role)
unless current_user && current_user.has_role?(role)
return render_not_found
end
end
def set_default_locale
set_locale Configuration.module_locales[:default]
end
def set_customer_locale
set_locale Configuration.module_locales[:customer]
end
def set_backend_locale
set_locale Configuration.module_locales[:backend]
end
def set_locale(locale)
I18n.locale = locale
end
def resource_params_additions
[]
end
def layout_for_account
Configuration.module_layouts[:account]
end
def layout_for_customer
Configuration.module_layouts[:customer]
end
def layout_for_backend
Configuration.module_layouts[:backend]
end
end
end
| module ActiveApplication
module ControllerMethods
private
def render_not_found
render "active_application/public/base/not_found", status: :not_found, layout: false
end
def require_customer_role
require_role :customer
end
def require_administrator_role
require_role :administrator
end
def require_role(role)
unless current_user && current_user.has_role?(role)
return render_not_found
end
end
def set_default_locale
set_locale Configuration.module_locales[:default]
end
def set_customer_locale
set_locale Configuration.module_locales[:customer]
end
def set_backend_locale
set_locale Configuration.module_locales[:backend]
end
def set_locale(locale)
I18n.locale = locale
end
def resource_params_additions
[]
end
def layout_for_account
- set_locale Configuration.module_layouts[:account]
? -----------
+ Configuration.module_layouts[:account]
end
def layout_for_customer
- set_locale Configuration.module_layouts[:customer]
? -----------
+ Configuration.module_layouts[:customer]
end
def layout_for_backend
- set_locale Configuration.module_layouts[:backend]
? -----------
+ Configuration.module_layouts[:backend]
end
end
end | 6 | 0.109091 | 3 | 3 |
0d2f0c1d8baef3a288fac90bb1e607d02669d66b | files/hiera/data/classroom.yaml | files/hiera/data/classroom.yaml | ---
puppet_enterprise::profile::console::rbac_session_timeout: 4320
puppet_enterprise::profile::puppetdb::listen_address: '0.0.0.0'
pe_repo::base_path: 'https://master.puppetlabs.vm:8140/packages/classroom'
puppet_enterprise::master::puppetserver::jruby_environment_class_cache_enabled: true
puppet_enterprise::profile::console::classifier_synchronization_period: 300
| ---
puppet_enterprise::profile::console::rbac_session_timeout: 4320
puppet_enterprise::profile::puppetdb::listen_address: '0.0.0.0'
pe_repo::compile_master_pool_address: 'https://master.puppetlabs.vm'
puppet_enterprise::master::puppetserver::jruby_environment_class_cache_enabled: true
puppet_enterprise::profile::console::classifier_synchronization_period: 300
| Set the pe_repo url to dl from master | Set the pe_repo url to dl from master
| YAML | apache-2.0 | puppetlabs/pltraining-classroom,carthik/pltraining-classroom,samuelson/pltraining-classroom,carthik/pltraining-classroom,joshsamuelson/pltraining-classroom,binford2k/pltraining-classroom,samuelson/pltraining-classroom,carthik/pltraining-classroom,joshsamuelson/pltraining-classroom,puppetlabs/pltraining-classroom,puppetlabs/pltraining-classroom,fnaard/pltraining-classroom,fnaard/pltraining-classroom,samuelson/pltraining-classroom,fnaard/pltraining-classroom,joshsamuelson/pltraining-classroom,binford2k/pltraining-classroom,binford2k/pltraining-classroom | yaml | ## Code Before:
---
puppet_enterprise::profile::console::rbac_session_timeout: 4320
puppet_enterprise::profile::puppetdb::listen_address: '0.0.0.0'
pe_repo::base_path: 'https://master.puppetlabs.vm:8140/packages/classroom'
puppet_enterprise::master::puppetserver::jruby_environment_class_cache_enabled: true
puppet_enterprise::profile::console::classifier_synchronization_period: 300
## Instruction:
Set the pe_repo url to dl from master
## Code After:
---
puppet_enterprise::profile::console::rbac_session_timeout: 4320
puppet_enterprise::profile::puppetdb::listen_address: '0.0.0.0'
pe_repo::compile_master_pool_address: 'https://master.puppetlabs.vm'
puppet_enterprise::master::puppetserver::jruby_environment_class_cache_enabled: true
puppet_enterprise::profile::console::classifier_synchronization_period: 300
| ---
puppet_enterprise::profile::console::rbac_session_timeout: 4320
puppet_enterprise::profile::puppetdb::listen_address: '0.0.0.0'
- pe_repo::base_path: 'https://master.puppetlabs.vm:8140/packages/classroom'
+ pe_repo::compile_master_pool_address: 'https://master.puppetlabs.vm'
puppet_enterprise::master::puppetserver::jruby_environment_class_cache_enabled: true
puppet_enterprise::profile::console::classifier_synchronization_period: 300 | 2 | 0.333333 | 1 | 1 |
9b52d2610bf3bfcd3428ef8818384e599afb80a2 | Code/CLOS/additional-classes.lisp | Code/CLOS/additional-classes.lisp | (in-package #:sicl-clos)
(define-built-in-class sequence (t)
())
(define-built-in-class list (sequence)
())
(define-built-in-class symbol ()
((%name :initarg :name :reader symbol-name)
(%package :initarg :package :reader symbol-package)))
(define-built-in-class null (symbol list)
())
| (in-package #:sicl-clos)
;;; We need for funcallable standard objects and standard functions to
;;; be called the same way. There is a slight difficulty in order for
;;; that to happen, though. When a funcallable standard object is
;;; allocated, since it is a standard object, two additional cells are
;;; allocated in the contents vector, namely for the object class
;;; unique number and for the class slots of the class. When a
;;; standard function is allocated, however, the cell containing the
;;; class slots of the class is not present because standard functions
;;; are not standard objects, so they can not become obsolete, and
;;; therefore do not need this information in order to be updated.
;;; But we still want the slots of the FUNCTION class to have the same
;;; location in instances of STANDARD-FUNCTION. To accomplish that,
;;; we add a dummy slot to standard functions that is in the same
;;; location as the class slots of the class in standard objects. To
;;; add this dummy slot, we define a class DUMMY-SLOT-PROVIDER,
;;; containing such a slot.
(define-built-in-class dummy-slot-supplier (t)
((%dummy :initform nil)))
;;; It is important that the list of superclasses appear in the order
;;; that it does in this definition, because slots are allocated with
;;; locations that take this order into account. In this case, the
;;; slot supplied by DUMMY-SLOT-SUPPLIER will occupy the first
;;; location in instances of STANDARD-FUNCTION.
(define-built-in-class standard-function (dummy-slot-supplier function)
())
(define-built-in-class sequence (t)
())
(define-built-in-class list (sequence)
())
(define-built-in-class symbol ()
((%name :initarg :name :reader symbol-name)
(%package :initarg :package :reader symbol-package)))
(define-built-in-class null (symbol list)
())
| Define STANDARD-FUNCTION and explain why it is defined that way in comment. | Define STANDARD-FUNCTION and explain why it is defined that way in comment.
| Common Lisp | bsd-2-clause | vtomole/SICL,vtomole/SICL,vtomole/SICL,clasp-developers/SICL,clasp-developers/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL | common-lisp | ## Code Before:
(in-package #:sicl-clos)
(define-built-in-class sequence (t)
())
(define-built-in-class list (sequence)
())
(define-built-in-class symbol ()
((%name :initarg :name :reader symbol-name)
(%package :initarg :package :reader symbol-package)))
(define-built-in-class null (symbol list)
())
## Instruction:
Define STANDARD-FUNCTION and explain why it is defined that way in comment.
## Code After:
(in-package #:sicl-clos)
;;; We need for funcallable standard objects and standard functions to
;;; be called the same way. There is a slight difficulty in order for
;;; that to happen, though. When a funcallable standard object is
;;; allocated, since it is a standard object, two additional cells are
;;; allocated in the contents vector, namely for the object class
;;; unique number and for the class slots of the class. When a
;;; standard function is allocated, however, the cell containing the
;;; class slots of the class is not present because standard functions
;;; are not standard objects, so they can not become obsolete, and
;;; therefore do not need this information in order to be updated.
;;; But we still want the slots of the FUNCTION class to have the same
;;; location in instances of STANDARD-FUNCTION. To accomplish that,
;;; we add a dummy slot to standard functions that is in the same
;;; location as the class slots of the class in standard objects. To
;;; add this dummy slot, we define a class DUMMY-SLOT-PROVIDER,
;;; containing such a slot.
(define-built-in-class dummy-slot-supplier (t)
((%dummy :initform nil)))
;;; It is important that the list of superclasses appear in the order
;;; that it does in this definition, because slots are allocated with
;;; locations that take this order into account. In this case, the
;;; slot supplied by DUMMY-SLOT-SUPPLIER will occupy the first
;;; location in instances of STANDARD-FUNCTION.
(define-built-in-class standard-function (dummy-slot-supplier function)
())
(define-built-in-class sequence (t)
())
(define-built-in-class list (sequence)
())
(define-built-in-class symbol ()
((%name :initarg :name :reader symbol-name)
(%package :initarg :package :reader symbol-package)))
(define-built-in-class null (symbol list)
())
| (in-package #:sicl-clos)
+
+ ;;; We need for funcallable standard objects and standard functions to
+ ;;; be called the same way. There is a slight difficulty in order for
+ ;;; that to happen, though. When a funcallable standard object is
+ ;;; allocated, since it is a standard object, two additional cells are
+ ;;; allocated in the contents vector, namely for the object class
+ ;;; unique number and for the class slots of the class. When a
+ ;;; standard function is allocated, however, the cell containing the
+ ;;; class slots of the class is not present because standard functions
+ ;;; are not standard objects, so they can not become obsolete, and
+ ;;; therefore do not need this information in order to be updated.
+ ;;; But we still want the slots of the FUNCTION class to have the same
+ ;;; location in instances of STANDARD-FUNCTION. To accomplish that,
+ ;;; we add a dummy slot to standard functions that is in the same
+ ;;; location as the class slots of the class in standard objects. To
+ ;;; add this dummy slot, we define a class DUMMY-SLOT-PROVIDER,
+ ;;; containing such a slot.
+
+ (define-built-in-class dummy-slot-supplier (t)
+ ((%dummy :initform nil)))
+
+ ;;; It is important that the list of superclasses appear in the order
+ ;;; that it does in this definition, because slots are allocated with
+ ;;; locations that take this order into account. In this case, the
+ ;;; slot supplied by DUMMY-SLOT-SUPPLIER will occupy the first
+ ;;; location in instances of STANDARD-FUNCTION.
+ (define-built-in-class standard-function (dummy-slot-supplier function)
+ ())
(define-built-in-class sequence (t)
())
(define-built-in-class list (sequence)
())
(define-built-in-class symbol ()
((%name :initarg :name :reader symbol-name)
(%package :initarg :package :reader symbol-package)))
(define-built-in-class null (symbol list)
())
| 28 | 1.75 | 28 | 0 |
e81ce4fdd59517aa710776fb563867a1c5303375 | features/step_definitions/controller_steps.rb | features/step_definitions/controller_steps.rb | When(/I have an authorized Controller defined as/) do |controller_code|
require 'action_controller'
require 'eaco/controller'
@controller_class = Class.new(ActionController::Base)
@controller_class.send(:attr_accessor, :current_user)
@controller_class.instance_eval { include Eaco::Controller }
@controller_class.class_eval controller_code
end
When(/I invoke the Controller "(.+?)" action with query string "(.+?)"$/) do |action_name, query|
@controller = @controller_class.new
@action_name = action_name
@controller.current_user = @current_user
if Rails::VERSION::MAJOR < 5
@controller.request = ActionDispatch::TestRequest.new('QUERY_STRING' => query).tap do |request|
request.params.update('action' => @action_name)
end
else
@controller.request = ActionDispatch::TestRequest.create('QUERY_STRING' => query).tap do |request|
request.action = @action_name
end
end
@controller.response = ActionDispatch::TestResponse.new
end
Then(/the Controller should not raise an error/) do
expect { @controller.process @action_name }.to_not raise_error
end
Then(/the Controller should raise an (.+?) error saying/) do |error_class, error_contents|
error_class = error_class.constantize
expect { @controller.process @action_name }.to \
raise_error(error_class).
with_message(/#{error_contents}/)
end
| When(/I have an authorized Controller defined as/) do |controller_code|
require 'action_controller'
require 'eaco/controller'
@controller_class = Class.new(ActionController::Base)
@controller_class.send(:attr_accessor, :current_user)
@controller_class.instance_eval { include Eaco::Controller }
@controller_class.class_eval controller_code
end
When(/I invoke the Controller "(.+?)" action with query string "(.+?)"$/) do |action_name, query|
@controller = @controller_class.new
@action_name = action_name
@controller.current_user = @current_user
#:nocov:
if Rails::VERSION::MAJOR < 5
@controller.request = ActionDispatch::TestRequest.new('QUERY_STRING' => query).tap do |request|
request.params.update('action' => @action_name)
end
else
@controller.request = ActionDispatch::TestRequest.create('QUERY_STRING' => query).tap do |request|
request.action = @action_name
end
end
#:nocov:
@controller.response = ActionDispatch::TestResponse.new
end
Then(/the Controller should not raise an error/) do
expect { @controller.process @action_name }.to_not raise_error
end
Then(/the Controller should raise an (.+?) error saying/) do |error_class, error_contents|
error_class = error_class.constantize
expect { @controller.process @action_name }.to \
raise_error(error_class).
with_message(/#{error_contents}/)
end
| Add nocov to Rails version-specific code to prevent false failures | Add nocov to Rails version-specific code to prevent false failures
| Ruby | mit | ifad/eaco | ruby | ## Code Before:
When(/I have an authorized Controller defined as/) do |controller_code|
require 'action_controller'
require 'eaco/controller'
@controller_class = Class.new(ActionController::Base)
@controller_class.send(:attr_accessor, :current_user)
@controller_class.instance_eval { include Eaco::Controller }
@controller_class.class_eval controller_code
end
When(/I invoke the Controller "(.+?)" action with query string "(.+?)"$/) do |action_name, query|
@controller = @controller_class.new
@action_name = action_name
@controller.current_user = @current_user
if Rails::VERSION::MAJOR < 5
@controller.request = ActionDispatch::TestRequest.new('QUERY_STRING' => query).tap do |request|
request.params.update('action' => @action_name)
end
else
@controller.request = ActionDispatch::TestRequest.create('QUERY_STRING' => query).tap do |request|
request.action = @action_name
end
end
@controller.response = ActionDispatch::TestResponse.new
end
Then(/the Controller should not raise an error/) do
expect { @controller.process @action_name }.to_not raise_error
end
Then(/the Controller should raise an (.+?) error saying/) do |error_class, error_contents|
error_class = error_class.constantize
expect { @controller.process @action_name }.to \
raise_error(error_class).
with_message(/#{error_contents}/)
end
## Instruction:
Add nocov to Rails version-specific code to prevent false failures
## Code After:
When(/I have an authorized Controller defined as/) do |controller_code|
require 'action_controller'
require 'eaco/controller'
@controller_class = Class.new(ActionController::Base)
@controller_class.send(:attr_accessor, :current_user)
@controller_class.instance_eval { include Eaco::Controller }
@controller_class.class_eval controller_code
end
When(/I invoke the Controller "(.+?)" action with query string "(.+?)"$/) do |action_name, query|
@controller = @controller_class.new
@action_name = action_name
@controller.current_user = @current_user
#:nocov:
if Rails::VERSION::MAJOR < 5
@controller.request = ActionDispatch::TestRequest.new('QUERY_STRING' => query).tap do |request|
request.params.update('action' => @action_name)
end
else
@controller.request = ActionDispatch::TestRequest.create('QUERY_STRING' => query).tap do |request|
request.action = @action_name
end
end
#:nocov:
@controller.response = ActionDispatch::TestResponse.new
end
Then(/the Controller should not raise an error/) do
expect { @controller.process @action_name }.to_not raise_error
end
Then(/the Controller should raise an (.+?) error saying/) do |error_class, error_contents|
error_class = error_class.constantize
expect { @controller.process @action_name }.to \
raise_error(error_class).
with_message(/#{error_contents}/)
end
| When(/I have an authorized Controller defined as/) do |controller_code|
require 'action_controller'
require 'eaco/controller'
@controller_class = Class.new(ActionController::Base)
@controller_class.send(:attr_accessor, :current_user)
@controller_class.instance_eval { include Eaco::Controller }
@controller_class.class_eval controller_code
end
When(/I invoke the Controller "(.+?)" action with query string "(.+?)"$/) do |action_name, query|
@controller = @controller_class.new
@action_name = action_name
@controller.current_user = @current_user
+ #:nocov:
if Rails::VERSION::MAJOR < 5
@controller.request = ActionDispatch::TestRequest.new('QUERY_STRING' => query).tap do |request|
request.params.update('action' => @action_name)
end
else
@controller.request = ActionDispatch::TestRequest.create('QUERY_STRING' => query).tap do |request|
request.action = @action_name
end
end
+ #:nocov:
@controller.response = ActionDispatch::TestResponse.new
end
Then(/the Controller should not raise an error/) do
expect { @controller.process @action_name }.to_not raise_error
end
Then(/the Controller should raise an (.+?) error saying/) do |error_class, error_contents|
error_class = error_class.constantize
expect { @controller.process @action_name }.to \
raise_error(error_class).
with_message(/#{error_contents}/)
end | 2 | 0.05 | 2 | 0 |
11cce755880127565e88bd50c63c6f0b7ee6051f | clutter-gst/clutter-gst-shaders.h | clutter-gst/clutter-gst-shaders.h |
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n" \
"varying vec2 tex_coord;\n" \
"varying vec4 frag_color;\n"
#define TEX_COORD "tex_coord"
#define COLOR_VAR "frag_color"
#else /* COGL_HAS_GLES */
#define GLES2_VARS ""
#define TEX_COORD "gl_TexCoord[0]"
#define COLOR_VAR "gl_Color"
#endif /* COGL_HAS_GLES */
/* a couple of boilerplate defines that are common amongst all the
* sample shaders
*/
#define FRAGMENT_SHADER_VARS \
GLES2_VARS
/* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly
* blended with the gl specified color (makes the opacity of actors work
* correctly).
*/
#define FRAGMENT_SHADER_END \
" gl_FragColor = gl_FragColor * " COLOR_VAR ";"
#endif
|
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n"
#define TEX_COORD "cogl_tex_coord_in[0]"
#define COLOR_VAR "cogl_color_in"
#else /* COGL_HAS_GLES */
#define GLES2_VARS ""
#define TEX_COORD "gl_TexCoord[0]"
#define COLOR_VAR "gl_Color"
#endif /* COGL_HAS_GLES */
/* a couple of boilerplate defines that are common amongst all the
* sample shaders
*/
#define FRAGMENT_SHADER_VARS \
GLES2_VARS
/* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly
* blended with the gl specified color (makes the opacity of actors work
* correctly).
*/
#define FRAGMENT_SHADER_END \
" gl_FragColor = gl_FragColor * " COLOR_VAR ";"
#endif
| Update the shaders to work with Cogl 1.6.0+ and GLES2 | sink: Update the shaders to work with Cogl 1.6.0+ and GLES2
The GLES2 shaders were considered private API until 1.6.0, see
discussion:
https://bugzilla.gnome.org/show_bug.cgi?id=661071
Let's update the variable names and depend on 1.6.0
| C | lgpl-2.1 | GNOME/clutter-gst,skinkie/clutter-gst,lubosz/clutter-gst,skinkie/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,ystreet/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,skinkie/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,lubosz/clutter-gst,lubosz/clutter-gst | c | ## Code Before:
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n" \
"varying vec2 tex_coord;\n" \
"varying vec4 frag_color;\n"
#define TEX_COORD "tex_coord"
#define COLOR_VAR "frag_color"
#else /* COGL_HAS_GLES */
#define GLES2_VARS ""
#define TEX_COORD "gl_TexCoord[0]"
#define COLOR_VAR "gl_Color"
#endif /* COGL_HAS_GLES */
/* a couple of boilerplate defines that are common amongst all the
* sample shaders
*/
#define FRAGMENT_SHADER_VARS \
GLES2_VARS
/* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly
* blended with the gl specified color (makes the opacity of actors work
* correctly).
*/
#define FRAGMENT_SHADER_END \
" gl_FragColor = gl_FragColor * " COLOR_VAR ";"
#endif
## Instruction:
sink: Update the shaders to work with Cogl 1.6.0+ and GLES2
The GLES2 shaders were considered private API until 1.6.0, see
discussion:
https://bugzilla.gnome.org/show_bug.cgi?id=661071
Let's update the variable names and depend on 1.6.0
## Code After:
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n"
#define TEX_COORD "cogl_tex_coord_in[0]"
#define COLOR_VAR "cogl_color_in"
#else /* COGL_HAS_GLES */
#define GLES2_VARS ""
#define TEX_COORD "gl_TexCoord[0]"
#define COLOR_VAR "gl_Color"
#endif /* COGL_HAS_GLES */
/* a couple of boilerplate defines that are common amongst all the
* sample shaders
*/
#define FRAGMENT_SHADER_VARS \
GLES2_VARS
/* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly
* blended with the gl specified color (makes the opacity of actors work
* correctly).
*/
#define FRAGMENT_SHADER_END \
" gl_FragColor = gl_FragColor * " COLOR_VAR ";"
#endif
|
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
- "precision mediump float;\n" \
? ---
+ "precision mediump float;\n"
- "varying vec2 tex_coord;\n" \
- "varying vec4 frag_color;\n"
- #define TEX_COORD "tex_coord"
+ #define TEX_COORD "cogl_tex_coord_in[0]"
? +++++ ++++++
- #define COLOR_VAR "frag_color"
? ^^^
+ #define COLOR_VAR "cogl_color_in"
? ^^ + +++
#else /* COGL_HAS_GLES */
#define GLES2_VARS ""
#define TEX_COORD "gl_TexCoord[0]"
#define COLOR_VAR "gl_Color"
#endif /* COGL_HAS_GLES */
/* a couple of boilerplate defines that are common amongst all the
* sample shaders
*/
#define FRAGMENT_SHADER_VARS \
GLES2_VARS
/* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly
* blended with the gl specified color (makes the opacity of actors work
* correctly).
*/
#define FRAGMENT_SHADER_END \
" gl_FragColor = gl_FragColor * " COLOR_VAR ";"
#endif
| 8 | 0.210526 | 3 | 5 |
226e934533f6a3566454f04258f4df70b2ca8ba2 | commands/testing_commands.js | commands/testing_commands.js |
module.exports = {
ping: (message) => {
message.reply('pong!');
},
echo: (message, _, msg) => {
if (msg) {
message.channel.send(msg);
}
},
};
|
module.exports = {
ping: (message) => {
message.reply('pong!');
},
echo: (message, _, msg) => {
if (msg) {
message.channel.send(msg);
} else {
message.channel.send('Provide text to echo.');
}
},
};
| Handle empty messages on echo | Handle empty messages on echo
| JavaScript | mit | Rafer45/soup | javascript | ## Code Before:
module.exports = {
ping: (message) => {
message.reply('pong!');
},
echo: (message, _, msg) => {
if (msg) {
message.channel.send(msg);
}
},
};
## Instruction:
Handle empty messages on echo
## Code After:
module.exports = {
ping: (message) => {
message.reply('pong!');
},
echo: (message, _, msg) => {
if (msg) {
message.channel.send(msg);
} else {
message.channel.send('Provide text to echo.');
}
},
};
|
module.exports = {
ping: (message) => {
message.reply('pong!');
},
echo: (message, _, msg) => {
if (msg) {
message.channel.send(msg);
+ } else {
+ message.channel.send('Provide text to echo.');
}
},
}; | 2 | 0.166667 | 2 | 0 |
6625d0312d4772e70677dc296e23f50ee675cd69 | settings.rb | settings.rb |
DB = Sequel.connect("postgres://antifa:antifa@127.0.0.1/antifa")
CACHE_CLIENT = Dalli::Client.new( '127.0.0.1:11211', :value_max_bytes => 5242880 )
SPHINX = Sequel.connect("mysql2://127.0.0.1/sphinx?port=9306")
SPHINX_T = "doc1"
|
DB = Sequel.connect("postgres://antifa:antifa@127.0.0.1/antifa")
CACHE_CLIENT = Dalli::Client.new( '127.0.0.1:11211', :value_max_bytes => 5242880, :namespace => "antifa" )
SPHINX = Sequel.connect("mysql2://127.0.0.1/sphinx?port=9306")
SPHINX_T = "doc1"
| Add configurable namespace for memcached client | Add configurable namespace for memcached client
| Ruby | bsd-2-clause | gnwp/zalgo_v3 | ruby | ## Code Before:
DB = Sequel.connect("postgres://antifa:antifa@127.0.0.1/antifa")
CACHE_CLIENT = Dalli::Client.new( '127.0.0.1:11211', :value_max_bytes => 5242880 )
SPHINX = Sequel.connect("mysql2://127.0.0.1/sphinx?port=9306")
SPHINX_T = "doc1"
## Instruction:
Add configurable namespace for memcached client
## Code After:
DB = Sequel.connect("postgres://antifa:antifa@127.0.0.1/antifa")
CACHE_CLIENT = Dalli::Client.new( '127.0.0.1:11211', :value_max_bytes => 5242880, :namespace => "antifa" )
SPHINX = Sequel.connect("mysql2://127.0.0.1/sphinx?port=9306")
SPHINX_T = "doc1"
|
DB = Sequel.connect("postgres://antifa:antifa@127.0.0.1/antifa")
- CACHE_CLIENT = Dalli::Client.new( '127.0.0.1:11211', :value_max_bytes => 5242880 )
+ CACHE_CLIENT = Dalli::Client.new( '127.0.0.1:11211', :value_max_bytes => 5242880, :namespace => "antifa" )
? ++++++++++++++++++++++++
SPHINX = Sequel.connect("mysql2://127.0.0.1/sphinx?port=9306")
SPHINX_T = "doc1" | 2 | 0.4 | 1 | 1 |
1edf758d2dd6e24156fce21e89ce923375c32db0 | src/curl/cram/cjsm11.js | src/curl/cram/cjsm11.js | /** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */
/**
* cram CommonJS modules/1.1 plugin
*/
define(['./jsEncode', '../loader/cjsm11'], function (jsEncode, wrapCjsm11) {
return {
compile: function (pluginId, resId, req, io, config) {
io.read(resId, function (text) {
io.write(jsEncode(wrapCjsm11(text, resId)));
}, io.error);
}
};
});
| /** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */
/**
* cram CommonJS modules/1.1 plugin
*/
define(['./jsEncode', '../loader/cjsm11'], function (jsEncode, wrapCjsm11) {
return {
compile: function (pluginId, resId, req, io, config) {
if (resId.substr(resId.length - 3) !== ".js") {
resId += ".js";
}
io.read(resId, function (text) {
io.write(jsEncode(wrapCjsm11(text, resId)));
}, io.error);
}
};
});
| Add .js to cjs module id if needed for cram | Add .js to cjs module id if needed for cram
| JavaScript | mit | runt18/curl,runt18/curl,vtex/curl,cujojs/curl,jaredcacurak/curl,djkost85/curl-1,vtex/curl,vtex/curl,djkost85/curl-1,jaredcacurak/curl,dfd07d/curl,runt18/curl,marian-r/curl,dfd07d/curl,cujojs/curl,cujojs/curl,marian-r/curl,dfd07d/curl,marian-r/curl,djkost85/curl-1,jaredcacurak/curl | javascript | ## Code Before:
/** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */
/**
* cram CommonJS modules/1.1 plugin
*/
define(['./jsEncode', '../loader/cjsm11'], function (jsEncode, wrapCjsm11) {
return {
compile: function (pluginId, resId, req, io, config) {
io.read(resId, function (text) {
io.write(jsEncode(wrapCjsm11(text, resId)));
}, io.error);
}
};
});
## Instruction:
Add .js to cjs module id if needed for cram
## Code After:
/** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */
/**
* cram CommonJS modules/1.1 plugin
*/
define(['./jsEncode', '../loader/cjsm11'], function (jsEncode, wrapCjsm11) {
return {
compile: function (pluginId, resId, req, io, config) {
if (resId.substr(resId.length - 3) !== ".js") {
resId += ".js";
}
io.read(resId, function (text) {
io.write(jsEncode(wrapCjsm11(text, resId)));
}, io.error);
}
};
});
| /** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */
/**
* cram CommonJS modules/1.1 plugin
*/
define(['./jsEncode', '../loader/cjsm11'], function (jsEncode, wrapCjsm11) {
return {
compile: function (pluginId, resId, req, io, config) {
+ if (resId.substr(resId.length - 3) !== ".js") {
+ resId += ".js";
+ }
io.read(resId, function (text) {
io.write(jsEncode(wrapCjsm11(text, resId)));
}, io.error);
}
};
}); | 3 | 0.1875 | 3 | 0 |
f3603d62cc3730923cf123d40f13b7f4b12f1d6e | README.md | README.md | An Erlang RPC library for out-of-band messaging.
[](https://travis-ci.org/priestjim/gen_rpc) [](https://travis-ci.org/priestjim/gen_rpc) [](https://coveralls.io/github/priestjim/gen_rpc?branch=develop) [](https://coveralls.io/github/priestjim/gen_rpc?branch=master)
This library is designed to scale RPC-call based infrastructures where regular remote spawn or `rpc`/`rex` calls fail to manage that.
It overcomes two basic shortcomings of the current implementation of the Erlang RPC framework:
- Single mailbox for incoming RPC calls
- VM heartbeat blocking for big arg remote spawns
# Contributors
- [Edward Tsang](https://github.com/linearregression) | An Erlang RPC library for out-of-band messaging.

[](https://travis-ci.org/priestjim/gen_rpc) [](https://travis-ci.org/priestjim/gen_rpc) [](https://coveralls.io/github/priestjim/gen_rpc?branch=develop) [](https://coveralls.io/github/priestjim/gen_rpc?branch=master)
[](https://github.com/priestjim/gen_rpc/issues)
[](https://raw.githubusercontent.com/priestjim/gen_rpc/master/LICENSE)
This library is designed to scale RPC-call based infrastructures where regular remote spawn or `rpc`/`rex` calls fail to manage that.
It overcomes two basic shortcomings of the current implementation of the Erlang RPC framework:
- Single mailbox for incoming RPC calls
- VM heartbeat blocking for big arg remote spawns
# Contributors
- [Edward Tsang](https://github.com/linearregression)
| Add make selected information more transparent | Add make selected information more transparent
| Markdown | apache-2.0 | priestjim/gen_rpc | markdown | ## Code Before:
An Erlang RPC library for out-of-band messaging.
[](https://travis-ci.org/priestjim/gen_rpc) [](https://travis-ci.org/priestjim/gen_rpc) [](https://coveralls.io/github/priestjim/gen_rpc?branch=develop) [](https://coveralls.io/github/priestjim/gen_rpc?branch=master)
This library is designed to scale RPC-call based infrastructures where regular remote spawn or `rpc`/`rex` calls fail to manage that.
It overcomes two basic shortcomings of the current implementation of the Erlang RPC framework:
- Single mailbox for incoming RPC calls
- VM heartbeat blocking for big arg remote spawns
# Contributors
- [Edward Tsang](https://github.com/linearregression)
## Instruction:
Add make selected information more transparent
## Code After:
An Erlang RPC library for out-of-band messaging.

[](https://travis-ci.org/priestjim/gen_rpc) [](https://travis-ci.org/priestjim/gen_rpc) [](https://coveralls.io/github/priestjim/gen_rpc?branch=develop) [](https://coveralls.io/github/priestjim/gen_rpc?branch=master)
[](https://github.com/priestjim/gen_rpc/issues)
[](https://raw.githubusercontent.com/priestjim/gen_rpc/master/LICENSE)
This library is designed to scale RPC-call based infrastructures where regular remote spawn or `rpc`/`rex` calls fail to manage that.
It overcomes two basic shortcomings of the current implementation of the Erlang RPC framework:
- Single mailbox for incoming RPC calls
- VM heartbeat blocking for big arg remote spawns
# Contributors
- [Edward Tsang](https://github.com/linearregression)
| An Erlang RPC library for out-of-band messaging.
+ 
[](https://travis-ci.org/priestjim/gen_rpc) [](https://travis-ci.org/priestjim/gen_rpc) [](https://coveralls.io/github/priestjim/gen_rpc?branch=develop) [](https://coveralls.io/github/priestjim/gen_rpc?branch=master)
+ [](https://github.com/priestjim/gen_rpc/issues)
+ [](https://raw.githubusercontent.com/priestjim/gen_rpc/master/LICENSE)
This library is designed to scale RPC-call based infrastructures where regular remote spawn or `rpc`/`rex` calls fail to manage that.
It overcomes two basic shortcomings of the current implementation of the Erlang RPC framework:
- Single mailbox for incoming RPC calls
- VM heartbeat blocking for big arg remote spawns
# Contributors
- [Edward Tsang](https://github.com/linearregression) | 3 | 0.214286 | 3 | 0 |
29958f3f13ca64f3208eb12b9e80f73459aebe00 | _config.yml | _config.yml | menu:
# Home: /
# Archives: /archives
rss: /atom.xml
# Content
excerpt_link: Read More
fancybox: true
# Sidebar
#sidebar: right
widgets:
- category
- tag
- tagcloud
- archive
- recent_posts
# Miscellaneous
google_analytics:
favicon: /favicon.png
pinterest:
twitter:
github:
google_plus:
fb_admins:
fb_app_id:
| menu:
# Home: /
# Archives: /archives
rss: /atom.xml
# Content
excerpt_link: Read More
fancybox: true
# Sidebar
sidebar: bottom
widgets:
#- category
#- tag
- tagcloud
#- archive
#- recent_posts
# Miscellaneous
google_analytics:
favicon: /favicon.png
pinterest:
twitter:
github:
google_plus:
fb_admins:
fb_app_id:
| Put sidebar at the bottom and only enable tagcloud | Put sidebar at the bottom and only enable tagcloud
| YAML | mit | initrc/hexo-theme-single | yaml | ## Code Before:
menu:
# Home: /
# Archives: /archives
rss: /atom.xml
# Content
excerpt_link: Read More
fancybox: true
# Sidebar
#sidebar: right
widgets:
- category
- tag
- tagcloud
- archive
- recent_posts
# Miscellaneous
google_analytics:
favicon: /favicon.png
pinterest:
twitter:
github:
google_plus:
fb_admins:
fb_app_id:
## Instruction:
Put sidebar at the bottom and only enable tagcloud
## Code After:
menu:
# Home: /
# Archives: /archives
rss: /atom.xml
# Content
excerpt_link: Read More
fancybox: true
# Sidebar
sidebar: bottom
widgets:
#- category
#- tag
- tagcloud
#- archive
#- recent_posts
# Miscellaneous
google_analytics:
favicon: /favicon.png
pinterest:
twitter:
github:
google_plus:
fb_admins:
fb_app_id:
| menu:
# Home: /
# Archives: /archives
rss: /atom.xml
# Content
excerpt_link: Read More
fancybox: true
# Sidebar
- #sidebar: right
+ sidebar: bottom
widgets:
- - category
+ #- category
? +
- - tag
+ #- tag
? +
- tagcloud
- - archive
+ #- archive
? +
- - recent_posts
+ #- recent_posts
? +
# Miscellaneous
google_analytics:
favicon: /favicon.png
pinterest:
twitter:
github:
google_plus:
fb_admins:
fb_app_id: | 10 | 0.37037 | 5 | 5 |
be5f0ce44cf710c3a914c536fa8cde23defa5eb0 | installer/frontend/ui-tests/pages/platformPage.js | installer/frontend/ui-tests/pages/platformPage.js | const wizard = require('../utils/wizard');
const platformPageCommands = {
test (platformEl) {
this.expect.element('select#platformType').to.be.visible.before(60000);
this.selectOption('@awsGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@awsAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@azureAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@metalGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@metalAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@openstackAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption(platformEl);
this.expect.element(wizard.nextStep).to.be.present;
},
};
module.exports = {
commands: [platformPageCommands],
elements: {
awsAdvanced: 'option[value="aws"]',
awsGUI: 'option[value="aws-tf"]',
azureAdvanced: 'option[value="azure"]',
metalAdvanced: 'option[value="bare-metal"]',
metalGUI: 'option[value="bare-metal-tf"]',
openstackAdvanced: 'option[value="openstack"]',
},
};
| const wizard = require('../utils/wizard');
const platformPageCommands = {
test (platformEl) {
this.expect.element('select#platformType').to.be.visible.before(60000);
// Platform should default to AWS
this.expect.element('select#platformType').to.have.value.that.equals('aws-tf');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@awsAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@azureAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@metalGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@metalAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@openstackAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption(platformEl);
this.expect.element(wizard.nextStep).to.be.present;
},
};
module.exports = {
commands: [platformPageCommands],
elements: {
awsAdvanced: 'option[value="aws"]',
awsGUI: 'option[value="aws-tf"]',
azureAdvanced: 'option[value="azure"]',
metalAdvanced: 'option[value="bare-metal"]',
metalGUI: 'option[value="bare-metal-tf"]',
openstackAdvanced: 'option[value="openstack"]',
},
};
| Test that platform select has expected default value | tests/frontend: Test that platform select has expected default value
| JavaScript | apache-2.0 | lander2k2/tectonic-installer,lander2k2/tectonic-installer,squat/tectonic-installer,cpanato/tectonic-installer,kyoto/tectonic-installer,kalmog/tectonic-installer,kyoto/tectonic-installer,squat/tectonic-installer,squat/tectonic-installer,derekhiggins/installer,kalmog/tectonic-installer,lander2k2/tectonic-installer,kyoto/tectonic-installer,kalmog/tectonic-installer,lander2k2/tectonic-installer,derekhiggins/installer,squat/tectonic-installer,kyoto/tectonic-installer,cpanato/tectonic-installer,cpanato/tectonic-installer,kyoto/tectonic-installer,cpanato/tectonic-installer | javascript | ## Code Before:
const wizard = require('../utils/wizard');
const platformPageCommands = {
test (platformEl) {
this.expect.element('select#platformType').to.be.visible.before(60000);
this.selectOption('@awsGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@awsAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@azureAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@metalGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@metalAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@openstackAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption(platformEl);
this.expect.element(wizard.nextStep).to.be.present;
},
};
module.exports = {
commands: [platformPageCommands],
elements: {
awsAdvanced: 'option[value="aws"]',
awsGUI: 'option[value="aws-tf"]',
azureAdvanced: 'option[value="azure"]',
metalAdvanced: 'option[value="bare-metal"]',
metalGUI: 'option[value="bare-metal-tf"]',
openstackAdvanced: 'option[value="openstack"]',
},
};
## Instruction:
tests/frontend: Test that platform select has expected default value
## Code After:
const wizard = require('../utils/wizard');
const platformPageCommands = {
test (platformEl) {
this.expect.element('select#platformType').to.be.visible.before(60000);
// Platform should default to AWS
this.expect.element('select#platformType').to.have.value.that.equals('aws-tf');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@awsAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@azureAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@metalGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@metalAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@openstackAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption(platformEl);
this.expect.element(wizard.nextStep).to.be.present;
},
};
module.exports = {
commands: [platformPageCommands],
elements: {
awsAdvanced: 'option[value="aws"]',
awsGUI: 'option[value="aws-tf"]',
azureAdvanced: 'option[value="azure"]',
metalAdvanced: 'option[value="bare-metal"]',
metalGUI: 'option[value="bare-metal-tf"]',
openstackAdvanced: 'option[value="openstack"]',
},
};
| const wizard = require('../utils/wizard');
const platformPageCommands = {
test (platformEl) {
this.expect.element('select#platformType').to.be.visible.before(60000);
- this.selectOption('@awsGUI');
+ // Platform should default to AWS
+ this.expect.element('select#platformType').to.have.value.that.equals('aws-tf');
this.expect.element(wizard.nextStep).to.be.present;
+
this.selectOption('@awsAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@azureAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@metalGUI');
this.expect.element(wizard.nextStep).to.be.present;
this.selectOption('@metalAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption('@openstackAdvanced');
this.expect.element(wizard.nextStep).to.not.be.present;
this.selectOption(platformEl);
this.expect.element(wizard.nextStep).to.be.present;
},
};
module.exports = {
commands: [platformPageCommands],
elements: {
awsAdvanced: 'option[value="aws"]',
awsGUI: 'option[value="aws-tf"]',
azureAdvanced: 'option[value="azure"]',
metalAdvanced: 'option[value="bare-metal"]',
metalGUI: 'option[value="bare-metal-tf"]',
openstackAdvanced: 'option[value="openstack"]',
},
}; | 4 | 0.114286 | 3 | 1 |
9e5e9a03af8de1009621c099d90abaaf51e0ec42 | src/js/constants/ServiceSchema.js | src/js/constants/ServiceSchema.js | /* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
description: 'Configure your Docker Container',
type: 'object',
properties: {
image: {
description: 'name of your docker image',
type: 'string',
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.image) {
return container.docker.image;
}
return null;
}
},
network: {
title: 'Network',
fieldType: 'select',
options: [
'Host',
'Bridged'
],
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.network) {
return container.docker.network.toLowerCase();
}
return null;
}
}
},
required: []
},
'Optional': Optional
},
required: [
'General'
]
};
module.exports = ServiceSchema;
| /* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
description: 'Configure your Docker Container',
type: 'object',
properties: {
image: {
description: 'name of your docker image',
type: 'string',
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.image) {
return container.docker.image;
}
return null;
}
},
network: {
title: 'Network',
fieldType: 'select',
options: [
'Host',
'Bridged'
],
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.network) {
return container.docker.network.toLowerCase();
}
return null;
}
}
},
required: []
},
'Optional': Optional,
'environmentVariables': {
description: 'Variables exposed to your environment homie.',
type: 'object',
title: 'Environment Variables',
properties: {
ports: {
description: 'ports for ships to dock',
type: 'array',
duplicable: true,
getter: function (service) {
return service.getCommand();
},
itemShape: {
properties: {
key: {
type: 'string',
getter: function (service) {
return service.getCommand();
}
},
value: {
type: 'string',
getter: function (service) {
return service.getCommand();
}
}
}
}
}
}
}
},
required: [
'General'
]
};
module.exports = ServiceSchema;
| Add environment variables to service schema | Add environment variables to service schema
| JavaScript | apache-2.0 | dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui | javascript | ## Code Before:
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
description: 'Configure your Docker Container',
type: 'object',
properties: {
image: {
description: 'name of your docker image',
type: 'string',
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.image) {
return container.docker.image;
}
return null;
}
},
network: {
title: 'Network',
fieldType: 'select',
options: [
'Host',
'Bridged'
],
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.network) {
return container.docker.network.toLowerCase();
}
return null;
}
}
},
required: []
},
'Optional': Optional
},
required: [
'General'
]
};
module.exports = ServiceSchema;
## Instruction:
Add environment variables to service schema
## Code After:
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
description: 'Configure your Docker Container',
type: 'object',
properties: {
image: {
description: 'name of your docker image',
type: 'string',
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.image) {
return container.docker.image;
}
return null;
}
},
network: {
title: 'Network',
fieldType: 'select',
options: [
'Host',
'Bridged'
],
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.network) {
return container.docker.network.toLowerCase();
}
return null;
}
}
},
required: []
},
'Optional': Optional,
'environmentVariables': {
description: 'Variables exposed to your environment homie.',
type: 'object',
title: 'Environment Variables',
properties: {
ports: {
description: 'ports for ships to dock',
type: 'array',
duplicable: true,
getter: function (service) {
return service.getCommand();
},
itemShape: {
properties: {
key: {
type: 'string',
getter: function (service) {
return service.getCommand();
}
},
value: {
type: 'string',
getter: function (service) {
return service.getCommand();
}
}
}
}
}
}
}
},
required: [
'General'
]
};
module.exports = ServiceSchema;
| /* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
description: 'Configure your Docker Container',
type: 'object',
properties: {
image: {
description: 'name of your docker image',
type: 'string',
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.image) {
return container.docker.image;
}
return null;
}
},
network: {
title: 'Network',
fieldType: 'select',
options: [
'Host',
'Bridged'
],
getter: function (service) {
let container = service.getContainerSettings();
if (container && container.docker && container.docker.network) {
return container.docker.network.toLowerCase();
}
return null;
}
}
},
required: []
},
- 'Optional': Optional
+ 'Optional': Optional,
? +
+ 'environmentVariables': {
+ description: 'Variables exposed to your environment homie.',
+ type: 'object',
+ title: 'Environment Variables',
+ properties: {
+ ports: {
+ description: 'ports for ships to dock',
+ type: 'array',
+ duplicable: true,
+ getter: function (service) {
+ return service.getCommand();
+ },
+ itemShape: {
+ properties: {
+ key: {
+ type: 'string',
+ getter: function (service) {
+ return service.getCommand();
+ }
+ },
+ value: {
+ type: 'string',
+ getter: function (service) {
+ return service.getCommand();
+ }
+ }
+ }
+ }
+ }
+ }
+ }
},
required: [
'General'
]
};
module.exports = ServiceSchema; | 33 | 0.634615 | 32 | 1 |
4172bd815c87a239d0d57201ddd01392e2a6dfeb | lib/subcommand.js | lib/subcommand.js | /*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
| /*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
/**
* Creates a new `Subcommand` instance.
* @param {string} name The name of the subcommand.
* @param {module:command.CommandBase} cmd The command associated to the name.
*/
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
| Fix doc comment for CommandGroup and add one for the Subcommand constructor | Fix doc comment for CommandGroup and add one for the Subcommand constructor
| JavaScript | mit | susisu/Optics | javascript | ## Code Before:
/*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
## Instruction:
Fix doc comment for CommandGroup and add one for the Subcommand constructor
## Code After:
/*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
/**
* Creates a new `Subcommand` instance.
* @param {string} name The name of the subcommand.
* @param {module:command.CommandBase} cmd The command associated to the name.
*/
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
| /*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
+ /**
+ * Creates a new `Subcommand` instance.
+ * @param {string} name The name of the subcommand.
+ * @param {module:command.CommandBase} cmd The command associated to the name.
+ */
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
- * @param {module:subcommand.Subcommand[]]} subcmds Subcommands the group contains.
? -
+ * @param {module:subcommand.Subcommand[]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule(); | 7 | 0.134615 | 6 | 1 |
0ec06924f2c02763a6e21ca6b0e8e8a45644c0b7 | webpack.config.js | webpack.config.js | const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const CompressionPlugin = require('compression-webpack-plugin');
const config = {
entry: path.resolve(__dirname, './src/index.js'),
output: {
path: path.resolve(__dirname, './dist'),
filename: 'app.bundle.js',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: [/node_modules/],
use: ['babel-loader', 'eslint-loader'],
},
{
test: /\.less$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'less-loader',
],
},
{
test: /\.svg$/,
loader: 'raw-loader',
},
],
},
devtool: 'cheap-eval-source-map',
watchOptions: {
ignored: /node_modules/,
},
plugins: [],
};
const PROD_ENV = process.argv.includes('-p');
if (PROD_ENV) {
config.plugins.push(new CompressionPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: /\.(js|html)$/,
threshold: 10240,
minRatio: 0.8
}));
} else {
config.plugins.push(new BundleAnalyzerPlugin());
}
module.exports = config;
| const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const config = {
entry: path.resolve(__dirname, './src/index.js'),
output: {
path: path.resolve(__dirname, './dist'),
filename: 'app.bundle.js',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: [/node_modules/],
use: ['babel-loader', 'eslint-loader'],
},
{
test: /\.less$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'less-loader',
],
},
{
test: /\.svg$/,
loader: 'raw-loader',
},
],
},
watchOptions: {
ignored: /node_modules/,
},
plugins: [],
};
const PROD_ENV = process.argv.includes('-p');
if (!PROD_ENV) {
config.plugins.push(new BundleAnalyzerPlugin());
config.devtool = 'cheap-eval-source-map';
}
module.exports = config;
| Remove devtool in production build | Remove devtool in production build
- Reduces bundle size by 90%
| JavaScript | mit | arnav-aggarwal/react-boilerplate-setup | javascript | ## Code Before:
const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const CompressionPlugin = require('compression-webpack-plugin');
const config = {
entry: path.resolve(__dirname, './src/index.js'),
output: {
path: path.resolve(__dirname, './dist'),
filename: 'app.bundle.js',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: [/node_modules/],
use: ['babel-loader', 'eslint-loader'],
},
{
test: /\.less$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'less-loader',
],
},
{
test: /\.svg$/,
loader: 'raw-loader',
},
],
},
devtool: 'cheap-eval-source-map',
watchOptions: {
ignored: /node_modules/,
},
plugins: [],
};
const PROD_ENV = process.argv.includes('-p');
if (PROD_ENV) {
config.plugins.push(new CompressionPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: /\.(js|html)$/,
threshold: 10240,
minRatio: 0.8
}));
} else {
config.plugins.push(new BundleAnalyzerPlugin());
}
module.exports = config;
## Instruction:
Remove devtool in production build
- Reduces bundle size by 90%
## Code After:
const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const config = {
entry: path.resolve(__dirname, './src/index.js'),
output: {
path: path.resolve(__dirname, './dist'),
filename: 'app.bundle.js',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: [/node_modules/],
use: ['babel-loader', 'eslint-loader'],
},
{
test: /\.less$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'less-loader',
],
},
{
test: /\.svg$/,
loader: 'raw-loader',
},
],
},
watchOptions: {
ignored: /node_modules/,
},
plugins: [],
};
const PROD_ENV = process.argv.includes('-p');
if (!PROD_ENV) {
config.plugins.push(new BundleAnalyzerPlugin());
config.devtool = 'cheap-eval-source-map';
}
module.exports = config;
| const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
- const CompressionPlugin = require('compression-webpack-plugin');
const config = {
entry: path.resolve(__dirname, './src/index.js'),
output: {
path: path.resolve(__dirname, './dist'),
filename: 'app.bundle.js',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: [/node_modules/],
use: ['babel-loader', 'eslint-loader'],
},
{
test: /\.less$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'less-loader',
],
},
{
test: /\.svg$/,
loader: 'raw-loader',
},
],
},
- devtool: 'cheap-eval-source-map',
watchOptions: {
ignored: /node_modules/,
},
plugins: [],
};
const PROD_ENV = process.argv.includes('-p');
- if (PROD_ENV) {
+ if (!PROD_ENV) {
? +
- config.plugins.push(new CompressionPlugin({
- asset: '[path].gz[query]',
- algorithm: 'gzip',
- test: /\.(js|html)$/,
- threshold: 10240,
- minRatio: 0.8
- }));
- } else {
config.plugins.push(new BundleAnalyzerPlugin());
+ config.devtool = 'cheap-eval-source-map';
}
module.exports = config; | 13 | 0.240741 | 2 | 11 |
d0cf2ffa9ed5613bd6bb34c7cd6049d8b6304b27 | test/cypress/plugins/index.js | test/cypress/plugins/index.js | /* eslint-disable */
require('dotenv').config()
module.exports = (on, config) => {
if (config.testingType === 'component') {
require('@cypress/react/plugins/load-webpack')(on, config, {webpackFilename: './webpack.config.js'})
return config
}
require('@cypress/code-coverage/task')(on, config)
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
on("task", { log(message) {
console.log(message)
return null
},
})
config.env.sandbox_url = process.env.API_ROOT
return config
}
| /* eslint-disable */
require('dotenv').config()
module.exports = (on, config) => {
if (config.testingType === 'component') {
require('@cypress/react/plugins/load-webpack')(on, config, { webpackFilename: './webpack.config.js' })
return config
}
require('@cypress/code-coverage/task')(on, config)
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
on("task", {
log(message) {
console.log(message)
return null
},
})
config.env.sandbox_url = process.env.API_ROOT
config.env.one_list_email = process.env.ONE_LIST_EMAIL
return config
} | Fix formatting in plugins file | Fix formatting in plugins file
| JavaScript | mit | uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2 | javascript | ## Code Before:
/* eslint-disable */
require('dotenv').config()
module.exports = (on, config) => {
if (config.testingType === 'component') {
require('@cypress/react/plugins/load-webpack')(on, config, {webpackFilename: './webpack.config.js'})
return config
}
require('@cypress/code-coverage/task')(on, config)
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
on("task", { log(message) {
console.log(message)
return null
},
})
config.env.sandbox_url = process.env.API_ROOT
return config
}
## Instruction:
Fix formatting in plugins file
## Code After:
/* eslint-disable */
require('dotenv').config()
module.exports = (on, config) => {
if (config.testingType === 'component') {
require('@cypress/react/plugins/load-webpack')(on, config, { webpackFilename: './webpack.config.js' })
return config
}
require('@cypress/code-coverage/task')(on, config)
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
on("task", {
log(message) {
console.log(message)
return null
},
})
config.env.sandbox_url = process.env.API_ROOT
config.env.one_list_email = process.env.ONE_LIST_EMAIL
return config
} | /* eslint-disable */
require('dotenv').config()
module.exports = (on, config) => {
if (config.testingType === 'component') {
- require('@cypress/react/plugins/load-webpack')(on, config, {webpackFilename: './webpack.config.js'})
+ require('@cypress/react/plugins/load-webpack')(on, config, { webpackFilename: './webpack.config.js' })
? + +
return config
}
require('@cypress/code-coverage/task')(on, config)
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
+ on("task", {
- on("task", { log(message) {
? ---------- -
+ log(message) {
console.log(message)
return null
},
})
+
config.env.sandbox_url = process.env.API_ROOT
+ config.env.one_list_email = process.env.ONE_LIST_EMAIL
+
return config
} | 8 | 0.421053 | 6 | 2 |
82651822bc230361c929a5a06142eeb38dbfb98f | usr.sbin/ctm/ctm/Makefile | usr.sbin/ctm/ctm/Makefile |
PROG= ctm
NOTYET= ctm_ed.c
SRCS= ctm.c ctm_input.c ctm_pass1.c ctm_pass2.c ctm_pass3.c \
ctm_syntax.c ctm_ed.c
LDADD+= -lmd
NOMAN= 1
CFLAGS+= -Wall -g
.include <bsd.prog.mk>
|
PROG= ctm
NOTYET= ctm_ed.c
SRCS= ctm.c ctm_input.c ctm_pass1.c ctm_pass2.c ctm_pass3.c \
ctm_syntax.c ctm_ed.c
LDADD+= -lmd
NOMAN= 1
CFLAGS+= -Wall
BINDIR= /usr/sbin
.include <bsd.prog.mk>
| Add BINDIR=/usr/sbin for install, fails in other case Remove -g from CFLAGS | Add BINDIR=/usr/sbin for install, fails in other case
Remove -g from CFLAGS
| unknown | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | unknown | ## Code Before:
PROG= ctm
NOTYET= ctm_ed.c
SRCS= ctm.c ctm_input.c ctm_pass1.c ctm_pass2.c ctm_pass3.c \
ctm_syntax.c ctm_ed.c
LDADD+= -lmd
NOMAN= 1
CFLAGS+= -Wall -g
.include <bsd.prog.mk>
## Instruction:
Add BINDIR=/usr/sbin for install, fails in other case
Remove -g from CFLAGS
## Code After:
PROG= ctm
NOTYET= ctm_ed.c
SRCS= ctm.c ctm_input.c ctm_pass1.c ctm_pass2.c ctm_pass3.c \
ctm_syntax.c ctm_ed.c
LDADD+= -lmd
NOMAN= 1
CFLAGS+= -Wall
BINDIR= /usr/sbin
.include <bsd.prog.mk>
|
PROG= ctm
NOTYET= ctm_ed.c
SRCS= ctm.c ctm_input.c ctm_pass1.c ctm_pass2.c ctm_pass3.c \
ctm_syntax.c ctm_ed.c
LDADD+= -lmd
NOMAN= 1
- CFLAGS+= -Wall -g
+ CFLAGS+= -Wall
+ BINDIR= /usr/sbin
.include <bsd.prog.mk> | 3 | 0.333333 | 2 | 1 |
dcd3bfb152e4661bb0b8935c58f72aa2d6488ec7 | package.json | package.json | {
"name": "crowdstart-checkout",
"version": "1.1.13",
"description": "One Click Checkout for Crowdstart",
"main": "checkout.js",
"scripts": {
"prepublish": "cake build",
"test": "cake test"
},
"keywords": [
"checkout",
"crowdfunding",
"store",
"ecommerce"
],
"author": "Crowdstart, LLC",
"license": "MIT",
"devDependencies": {
"bebop": "^1.3.6",
"browser-sync": "^2.7.6",
"cake": "^0.1.1",
"coffee-script": "^1.9.2",
"executive": "^0.4.7",
"node-static": "^0.7.6",
"phantomjs": "^1.9.17",
"q": "^1.4.1",
"requisite": "^1.9.4",
"selenium-standalone": "^4.4.2",
"selenium-webdriver": "^2.45.1",
"uglify-js": "^2.4.23",
"webdriverio": "^2.4.5"
},
"dependencies": {
"card": "^1.0.0",
"crowdstart.js": "0.0.5",
"riot": "^2.0.15"
}
}
| {
"name": "crowdstart-checkout",
"version": "1.1.13",
"description": "One Click Checkout for Crowdstart",
"main": "checkout.js",
"scripts": {
"prepublish": "cake build",
"test": "cake test"
},
"keywords": [
"checkout",
"crowdfunding",
"store",
"ecommerce"
],
"author": "Crowdstart, LLC",
"license": "MIT",
"devDependencies": {
"bebop": "^1.3.6",
"browser-sync": "^2.7.6",
"cake": "^0.1.1",
"coffee-script": "^1.9.2",
"executive": "^0.4.7",
"mocha": "^2.2.5",
"node-static": "^0.7.6",
"phantomjs": "^1.9.17",
"q": "^1.4.1",
"requisite": "^1.9.4",
"selenium-standalone": "^4.4.2",
"selenium-webdriver": "^2.45.1",
"uglify-js": "^2.4.23",
"webdriverio": "^2.4.5"
},
"dependencies": {
"card": "^1.0.0",
"crowdstart.js": "0.0.5",
"riot": "^2.0.15"
}
}
| Add 'mocha' as a dev-dependency | Add 'mocha' as a dev-dependency
| JSON | unknown | crowdstart/checkout.js,hanzo-io/checkout.js,crowdstart/checkout,crowdstart/checkout.js,crowdstart/checkout,hanzo-io/checkout.js | json | ## Code Before:
{
"name": "crowdstart-checkout",
"version": "1.1.13",
"description": "One Click Checkout for Crowdstart",
"main": "checkout.js",
"scripts": {
"prepublish": "cake build",
"test": "cake test"
},
"keywords": [
"checkout",
"crowdfunding",
"store",
"ecommerce"
],
"author": "Crowdstart, LLC",
"license": "MIT",
"devDependencies": {
"bebop": "^1.3.6",
"browser-sync": "^2.7.6",
"cake": "^0.1.1",
"coffee-script": "^1.9.2",
"executive": "^0.4.7",
"node-static": "^0.7.6",
"phantomjs": "^1.9.17",
"q": "^1.4.1",
"requisite": "^1.9.4",
"selenium-standalone": "^4.4.2",
"selenium-webdriver": "^2.45.1",
"uglify-js": "^2.4.23",
"webdriverio": "^2.4.5"
},
"dependencies": {
"card": "^1.0.0",
"crowdstart.js": "0.0.5",
"riot": "^2.0.15"
}
}
## Instruction:
Add 'mocha' as a dev-dependency
## Code After:
{
"name": "crowdstart-checkout",
"version": "1.1.13",
"description": "One Click Checkout for Crowdstart",
"main": "checkout.js",
"scripts": {
"prepublish": "cake build",
"test": "cake test"
},
"keywords": [
"checkout",
"crowdfunding",
"store",
"ecommerce"
],
"author": "Crowdstart, LLC",
"license": "MIT",
"devDependencies": {
"bebop": "^1.3.6",
"browser-sync": "^2.7.6",
"cake": "^0.1.1",
"coffee-script": "^1.9.2",
"executive": "^0.4.7",
"mocha": "^2.2.5",
"node-static": "^0.7.6",
"phantomjs": "^1.9.17",
"q": "^1.4.1",
"requisite": "^1.9.4",
"selenium-standalone": "^4.4.2",
"selenium-webdriver": "^2.45.1",
"uglify-js": "^2.4.23",
"webdriverio": "^2.4.5"
},
"dependencies": {
"card": "^1.0.0",
"crowdstart.js": "0.0.5",
"riot": "^2.0.15"
}
}
| {
"name": "crowdstart-checkout",
"version": "1.1.13",
"description": "One Click Checkout for Crowdstart",
"main": "checkout.js",
"scripts": {
"prepublish": "cake build",
"test": "cake test"
},
"keywords": [
"checkout",
"crowdfunding",
"store",
"ecommerce"
],
"author": "Crowdstart, LLC",
"license": "MIT",
"devDependencies": {
"bebop": "^1.3.6",
"browser-sync": "^2.7.6",
"cake": "^0.1.1",
"coffee-script": "^1.9.2",
"executive": "^0.4.7",
+ "mocha": "^2.2.5",
"node-static": "^0.7.6",
"phantomjs": "^1.9.17",
"q": "^1.4.1",
"requisite": "^1.9.4",
"selenium-standalone": "^4.4.2",
"selenium-webdriver": "^2.45.1",
"uglify-js": "^2.4.23",
"webdriverio": "^2.4.5"
},
"dependencies": {
"card": "^1.0.0",
"crowdstart.js": "0.0.5",
"riot": "^2.0.15"
}
} | 1 | 0.026316 | 1 | 0 |
920fae3756b7484b1e02fb3723b4c4a0d87cdb79 | .scrutinizer.yml | .scrutinizer.yml | filter:
excluded_paths: [vendor/*, app/*, web/*]
tools:
php_cpd: true
php_pdepend:
excluded_dirs: [vendor]
external_code_coverage:
timeout: 600
| filter:
excluded_paths: [vendor/*, app/*, web/*]
tools:
php_cpd: true
php_pdepend:
excluded_dirs: [vendor]
external_code_coverage:
timeout: 600
php_analyzer:
config:
metrics_coupling:
enabled: true
stable_code:
namespace_prefixes: []
classes: []
metrics_lack_of_cohesion_methods:
enabled: true
| Add more metrics to Scrutinizer | Add more metrics to Scrutinizer
| YAML | mit | Achrome/Conphig,Achrome/Conphig | yaml | ## Code Before:
filter:
excluded_paths: [vendor/*, app/*, web/*]
tools:
php_cpd: true
php_pdepend:
excluded_dirs: [vendor]
external_code_coverage:
timeout: 600
## Instruction:
Add more metrics to Scrutinizer
## Code After:
filter:
excluded_paths: [vendor/*, app/*, web/*]
tools:
php_cpd: true
php_pdepend:
excluded_dirs: [vendor]
external_code_coverage:
timeout: 600
php_analyzer:
config:
metrics_coupling:
enabled: true
stable_code:
namespace_prefixes: []
classes: []
metrics_lack_of_cohesion_methods:
enabled: true
| filter:
excluded_paths: [vendor/*, app/*, web/*]
tools:
php_cpd: true
php_pdepend:
excluded_dirs: [vendor]
external_code_coverage:
timeout: 600
+ php_analyzer:
+ config:
+ metrics_coupling:
+ enabled: true
+ stable_code:
+ namespace_prefixes: []
+ classes: []
+ metrics_lack_of_cohesion_methods:
+ enabled: true | 9 | 1 | 9 | 0 |
7a6fb64b30513b987e59965a948a681037f406e9 | src/utils/index.js | src/utils/index.js | const { parse } = require('url')
const UrlPattern = require('url-pattern')
const patternOpts = {
segmentNameCharset: 'a-zA-Z0-9_-',
}
const isPattern = pattern => pattern instanceof UrlPattern
const getParamsAndQuery = (pattern, url) => {
const { query, pathname } = parse(url, true)
const route = isPattern(pattern)
? pattern
: new UrlPattern(pattern, patternOpts)
const params = route.match(pathname)
return { query, params }
}
module.exports = {
getParamsAndQuery,
isPattern,
patternOpts,
}
| const { parse } = require('url')
const UrlPattern = require('url-pattern')
const patternOpts = {
segmentNameCharset: 'a-zA-Z0-9_-',,
segmentValueCharset: 'a-zA-Z0-9@\.\+\-\_'
}
const isPattern = pattern => pattern instanceof UrlPattern
const getParamsAndQuery = (pattern, url) => {
const { query, pathname } = parse(url, true)
const route = isPattern(pattern)
? pattern
: new UrlPattern(pattern, patternOpts)
const params = route.match(pathname)
return { query, params }
}
module.exports = {
getParamsAndQuery,
isPattern,
patternOpts,
}
| Allow some more chars in url as pattern value | Allow some more chars in url as pattern value
Allow character @, dot, +, _ and - as url pattern value, so email address can be passed as url parameter. | JavaScript | mit | pedronauck/micro-router | javascript | ## Code Before:
const { parse } = require('url')
const UrlPattern = require('url-pattern')
const patternOpts = {
segmentNameCharset: 'a-zA-Z0-9_-',
}
const isPattern = pattern => pattern instanceof UrlPattern
const getParamsAndQuery = (pattern, url) => {
const { query, pathname } = parse(url, true)
const route = isPattern(pattern)
? pattern
: new UrlPattern(pattern, patternOpts)
const params = route.match(pathname)
return { query, params }
}
module.exports = {
getParamsAndQuery,
isPattern,
patternOpts,
}
## Instruction:
Allow some more chars in url as pattern value
Allow character @, dot, +, _ and - as url pattern value, so email address can be passed as url parameter.
## Code After:
const { parse } = require('url')
const UrlPattern = require('url-pattern')
const patternOpts = {
segmentNameCharset: 'a-zA-Z0-9_-',,
segmentValueCharset: 'a-zA-Z0-9@\.\+\-\_'
}
const isPattern = pattern => pattern instanceof UrlPattern
const getParamsAndQuery = (pattern, url) => {
const { query, pathname } = parse(url, true)
const route = isPattern(pattern)
? pattern
: new UrlPattern(pattern, patternOpts)
const params = route.match(pathname)
return { query, params }
}
module.exports = {
getParamsAndQuery,
isPattern,
patternOpts,
}
| const { parse } = require('url')
const UrlPattern = require('url-pattern')
const patternOpts = {
- segmentNameCharset: 'a-zA-Z0-9_-',
+ segmentNameCharset: 'a-zA-Z0-9_-',,
? +
+ segmentValueCharset: 'a-zA-Z0-9@\.\+\-\_'
}
const isPattern = pattern => pattern instanceof UrlPattern
const getParamsAndQuery = (pattern, url) => {
const { query, pathname } = parse(url, true)
const route = isPattern(pattern)
? pattern
: new UrlPattern(pattern, patternOpts)
const params = route.match(pathname)
return { query, params }
}
module.exports = {
getParamsAndQuery,
isPattern,
patternOpts,
} | 3 | 0.125 | 2 | 1 |
cb8b58f2a841f6b02f4ef656939a890077d219b3 | Binary-tree/link-unlink.lisp | Binary-tree/link-unlink.lisp | (cl:in-package #:clump-binary-tree)
;;; Make CHILD the left child of NODE.
(defgeneric link-left (node child))
;;; Make CHILD the right child of NODE.
(defgeneric link-right (node child))
;;; Remove CHILD as the left child of NODE.
(defgeneric unlink-left (node child))
;;; Remove CHILD as the right child of NODE.
(defgeneric unlink-right (node child))
| (cl:in-package #:clump-binary-tree)
;;; Make CHILD the left child of NODE.
(defgeneric link-left (parent child))
;;; Make CHILD the right child of PARENT.
(defgeneric link-right (parent child))
;;; Remove CHILD as the left child of PARENT.
(defgeneric unlink-left (parent child))
;;; Remove CHILD as the right child of PARENT.
(defgeneric unlink-right (parent child))
| Rename parent parameter for improved readability. | Rename parent parameter for improved readability.
| Common Lisp | bsd-2-clause | robert-strandh/Clump | common-lisp | ## Code Before:
(cl:in-package #:clump-binary-tree)
;;; Make CHILD the left child of NODE.
(defgeneric link-left (node child))
;;; Make CHILD the right child of NODE.
(defgeneric link-right (node child))
;;; Remove CHILD as the left child of NODE.
(defgeneric unlink-left (node child))
;;; Remove CHILD as the right child of NODE.
(defgeneric unlink-right (node child))
## Instruction:
Rename parent parameter for improved readability.
## Code After:
(cl:in-package #:clump-binary-tree)
;;; Make CHILD the left child of NODE.
(defgeneric link-left (parent child))
;;; Make CHILD the right child of PARENT.
(defgeneric link-right (parent child))
;;; Remove CHILD as the left child of PARENT.
(defgeneric unlink-left (parent child))
;;; Remove CHILD as the right child of PARENT.
(defgeneric unlink-right (parent child))
| (cl:in-package #:clump-binary-tree)
;;; Make CHILD the left child of NODE.
- (defgeneric link-left (node child))
? ^^^
+ (defgeneric link-left (parent child))
? ++++ ^
- ;;; Make CHILD the right child of NODE.
? ^^^
+ ;;; Make CHILD the right child of PARENT.
? ++++ ^
- (defgeneric link-right (node child))
? ^^^
+ (defgeneric link-right (parent child))
? ++++ ^
- ;;; Remove CHILD as the left child of NODE.
? ^^^
+ ;;; Remove CHILD as the left child of PARENT.
? ++++ ^
- (defgeneric unlink-left (node child))
? ^^^
+ (defgeneric unlink-left (parent child))
? ++++ ^
- ;;; Remove CHILD as the right child of NODE.
? ^^^
+ ;;; Remove CHILD as the right child of PARENT.
? ++++ ^
- (defgeneric unlink-right (node child))
? ^^^
+ (defgeneric unlink-right (parent child))
? ++++ ^
+ | 15 | 1.153846 | 8 | 7 |
8679227d61cef7448f2060f2cfcdc8e0f674f671 | bower.json | bower.json | {
"name": "minicart",
"homepage": "http://minicartjs.com",
"description": "The minicart is a great way to improve your PayPal shopping cart integration.",
"main": "dist/minicart.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"Gruntfile.js"
]
}
| {
"name": "minicart",
"homepage": "http://minicartjs.com",
"description": "The minicart is a great way to improve your PayPal shopping cart integration.",
"main": "dist/minicart.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"Gruntfile.js",
"bin",
"examples",
"tasks"
]
}
| Add bin, examples, and tasks to Bower's "ignore" | Add bin, examples, and tasks to Bower's "ignore" | JSON | mit | cyuan1791/minicart,Armen138/minicart,Armen138/minicart,jeffharrell/minicart,cyuan1791/minicart,cyuan1791/minicart,Armen138/minicart,jeffharrell/minicart,jeffharrell/minicart | json | ## Code Before:
{
"name": "minicart",
"homepage": "http://minicartjs.com",
"description": "The minicart is a great way to improve your PayPal shopping cart integration.",
"main": "dist/minicart.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"Gruntfile.js"
]
}
## Instruction:
Add bin, examples, and tasks to Bower's "ignore"
## Code After:
{
"name": "minicart",
"homepage": "http://minicartjs.com",
"description": "The minicart is a great way to improve your PayPal shopping cart integration.",
"main": "dist/minicart.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"Gruntfile.js",
"bin",
"examples",
"tasks"
]
}
| {
"name": "minicart",
"homepage": "http://minicartjs.com",
"description": "The minicart is a great way to improve your PayPal shopping cart integration.",
"main": "dist/minicart.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
- "Gruntfile.js"
+ "Gruntfile.js",
? +
+ "bin",
+ "examples",
+ "tasks"
]
} | 5 | 0.357143 | 4 | 1 |
850553e5c89bf11c4373abf56e5168b2b92174a9 | lib/app_layout/material_persistent_drawer.dart | lib/app_layout/material_persistent_drawer.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/content/deferred_content_aware.dart';
import 'material_drawer_base.dart';
/// A persistent drawer that can be pinned open or closed.
///
/// Need to include package:angular_components/app_layout/layout.scss.css
/// in the list of styleUrls of the containing component.
///
/// Works with deferred content.
/// __Example usage:__
/// <material-drawer persistent #drawer="drawer">
/// ... content here ...
/// </material-drawer>
/// <material-button (trigger)="drawer.toggle()">
/// Toggle Drawer
/// </material-button>
@Directive(
selector: 'material-drawer[persistent]',
exportAs: 'drawer',
providers: const [
const Provider(DeferredContentAware,
useExisting: MaterialPersistentDrawerDirective),
],
host: const {
'[class.mat-drawer-collapsed]': '!visible',
'[class.mat-drawer-expanded]': 'visible',
},
// TODO(google): Change to `Visibility.local` to reduce code size.
visibility: Visibility.all,
)
class MaterialPersistentDrawerDirective extends MaterialDrawerBase {
MaterialPersistentDrawerDirective() : super();
}
| // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/content/deferred_content_aware.dart';
import 'material_drawer_base.dart';
/// A persistent drawer that can be pinned open or closed.
///
/// Need to include package:angular_components/app_layout/layout.scss.css
/// in the list of styleUrls of the containing component.
///
/// Works with deferred content.
/// __Example usage:__
/// <material-drawer persistent #drawer="drawer">
/// ... content here ...
/// </material-drawer>
/// <material-button (trigger)="drawer.toggle()">
/// Toggle Drawer
/// </material-button>
@Directive(
selector: 'material-drawer[persistent]',
exportAs: 'drawer',
providers: const [
const Provider(DeferredContentAware,
useExisting: MaterialPersistentDrawerDirective),
],
host: const {
'[class.mat-drawer-collapsed]': '!visible',
'[class.mat-drawer-expanded]': 'visible',
},
visibility: Visibility.all, // Injected by child elements.
)
class MaterialPersistentDrawerDirective extends MaterialDrawerBase {
MaterialPersistentDrawerDirective() : super();
}
| Remove visibility.all from @Component annotations. This is potentially BREAKING change. | Remove visibility.all from @Component annotations. This is potentially BREAKING
change.
Please review carefully. Breakage will only be caught if the code is covered by
tests. Reject this change if you believe it breaks you.
If the component needs to be injected anywhere in the app, you can get a
runtime exception after this change. This should be caught by tests using your
components, and fixing the issue should be trivial, as the exceptions have good
error messages, such as "No provider found for FooComponent".
PiperOrigin-RevId: 189922359
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components | dart | ## Code Before:
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/content/deferred_content_aware.dart';
import 'material_drawer_base.dart';
/// A persistent drawer that can be pinned open or closed.
///
/// Need to include package:angular_components/app_layout/layout.scss.css
/// in the list of styleUrls of the containing component.
///
/// Works with deferred content.
/// __Example usage:__
/// <material-drawer persistent #drawer="drawer">
/// ... content here ...
/// </material-drawer>
/// <material-button (trigger)="drawer.toggle()">
/// Toggle Drawer
/// </material-button>
@Directive(
selector: 'material-drawer[persistent]',
exportAs: 'drawer',
providers: const [
const Provider(DeferredContentAware,
useExisting: MaterialPersistentDrawerDirective),
],
host: const {
'[class.mat-drawer-collapsed]': '!visible',
'[class.mat-drawer-expanded]': 'visible',
},
// TODO(google): Change to `Visibility.local` to reduce code size.
visibility: Visibility.all,
)
class MaterialPersistentDrawerDirective extends MaterialDrawerBase {
MaterialPersistentDrawerDirective() : super();
}
## Instruction:
Remove visibility.all from @Component annotations. This is potentially BREAKING
change.
Please review carefully. Breakage will only be caught if the code is covered by
tests. Reject this change if you believe it breaks you.
If the component needs to be injected anywhere in the app, you can get a
runtime exception after this change. This should be caught by tests using your
components, and fixing the issue should be trivial, as the exceptions have good
error messages, such as "No provider found for FooComponent".
PiperOrigin-RevId: 189922359
## Code After:
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/content/deferred_content_aware.dart';
import 'material_drawer_base.dart';
/// A persistent drawer that can be pinned open or closed.
///
/// Need to include package:angular_components/app_layout/layout.scss.css
/// in the list of styleUrls of the containing component.
///
/// Works with deferred content.
/// __Example usage:__
/// <material-drawer persistent #drawer="drawer">
/// ... content here ...
/// </material-drawer>
/// <material-button (trigger)="drawer.toggle()">
/// Toggle Drawer
/// </material-button>
@Directive(
selector: 'material-drawer[persistent]',
exportAs: 'drawer',
providers: const [
const Provider(DeferredContentAware,
useExisting: MaterialPersistentDrawerDirective),
],
host: const {
'[class.mat-drawer-collapsed]': '!visible',
'[class.mat-drawer-expanded]': 'visible',
},
visibility: Visibility.all, // Injected by child elements.
)
class MaterialPersistentDrawerDirective extends MaterialDrawerBase {
MaterialPersistentDrawerDirective() : super();
}
| // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/content/deferred_content_aware.dart';
import 'material_drawer_base.dart';
/// A persistent drawer that can be pinned open or closed.
///
/// Need to include package:angular_components/app_layout/layout.scss.css
/// in the list of styleUrls of the containing component.
///
/// Works with deferred content.
/// __Example usage:__
/// <material-drawer persistent #drawer="drawer">
/// ... content here ...
/// </material-drawer>
/// <material-button (trigger)="drawer.toggle()">
/// Toggle Drawer
/// </material-button>
@Directive(
selector: 'material-drawer[persistent]',
exportAs: 'drawer',
providers: const [
const Provider(DeferredContentAware,
useExisting: MaterialPersistentDrawerDirective),
],
host: const {
'[class.mat-drawer-collapsed]': '!visible',
'[class.mat-drawer-expanded]': 'visible',
},
+ visibility: Visibility.all, // Injected by child elements.
- // TODO(google): Change to `Visibility.local` to reduce code size.
- visibility: Visibility.all,
)
class MaterialPersistentDrawerDirective extends MaterialDrawerBase {
MaterialPersistentDrawerDirective() : super();
} | 3 | 0.076923 | 1 | 2 |
9752d8daeaee73d3bfd180c945ddc4256b75c4fb | package.json | package.json | {
"name": "osdiab.github.io",
"version": "0.0.1",
"description": "Omar Diab's personal website",
"repository": "git@github.com:osdiab/osdiab.github.io.git",
"author": "Omar Diab <me@omardiab.com>",
"license": "MIT",
"scripts": {
"build": "rm -rf __build/ && webpack && cp -r ./dist/* __build/",
"start": "webpack-dev-server --open",
"publish": "./scripts/publish"
},
"devDependencies": {
"gh-pages": "^2.0.1",
"http-server": "^0.11.1"
}
}
| {
"name": "osdiab.github.io",
"version": "0.0.1",
"description": "Omar Diab's personal website",
"repository": "git@github.com:osdiab/osdiab.github.io.git",
"author": "Omar Diab <me@omardiab.com>",
"license": "MIT",
"scripts": {
"serve": "http-server ./website",
"publish": "./scripts/check-branch && gh-pages --src website/**/*"
},
"devDependencies": {
"gh-pages": "^2.0.1",
"http-server": "^0.11.1"
}
}
| Add simpler serve and publish script with no build | Add simpler serve and publish script with no build
| JSON | mit | osdiab/osdiab.github.io,osdiab/osdiab.github.io,osdiab/osdiab.github.io,osdiab/osdiab.github.io | json | ## Code Before:
{
"name": "osdiab.github.io",
"version": "0.0.1",
"description": "Omar Diab's personal website",
"repository": "git@github.com:osdiab/osdiab.github.io.git",
"author": "Omar Diab <me@omardiab.com>",
"license": "MIT",
"scripts": {
"build": "rm -rf __build/ && webpack && cp -r ./dist/* __build/",
"start": "webpack-dev-server --open",
"publish": "./scripts/publish"
},
"devDependencies": {
"gh-pages": "^2.0.1",
"http-server": "^0.11.1"
}
}
## Instruction:
Add simpler serve and publish script with no build
## Code After:
{
"name": "osdiab.github.io",
"version": "0.0.1",
"description": "Omar Diab's personal website",
"repository": "git@github.com:osdiab/osdiab.github.io.git",
"author": "Omar Diab <me@omardiab.com>",
"license": "MIT",
"scripts": {
"serve": "http-server ./website",
"publish": "./scripts/check-branch && gh-pages --src website/**/*"
},
"devDependencies": {
"gh-pages": "^2.0.1",
"http-server": "^0.11.1"
}
}
| {
"name": "osdiab.github.io",
"version": "0.0.1",
"description": "Omar Diab's personal website",
"repository": "git@github.com:osdiab/osdiab.github.io.git",
"author": "Omar Diab <me@omardiab.com>",
"license": "MIT",
"scripts": {
+ "serve": "http-server ./website",
+ "publish": "./scripts/check-branch && gh-pages --src website/**/*"
- "build": "rm -rf __build/ && webpack && cp -r ./dist/* __build/",
- "start": "webpack-dev-server --open",
- "publish": "./scripts/publish"
},
"devDependencies": {
"gh-pages": "^2.0.1",
"http-server": "^0.11.1"
}
} | 5 | 0.294118 | 2 | 3 |
ebaf37237660be5ce8e984952cd325f3dfc8ba31 | index.js | index.js | var extent = require('turf-extent');
var bboxPolygon = require('turf-bbox-polygon');
/**
* Takes a {@link Feature} or {@link FeatureCollection} and returns a rectangular {@link Polygon} feature that encompasses all vertices.
*
* @module turf/envelope
* @param {FeatureCollection} fc a FeatureCollection of any type
* @return {Polygon} a rectangular Polygon feature that encompasses all vertices
* @example
* var pt1 = turf.point(-75.343, 39.984, {name: 'Location A'});
* var pt2 = turf.point(-75.833, 39.284, {name: 'Location B'});
* var pt3 = turf.point(-75.534, 39.123, {name: 'Location C'});
* var fc = turf.featurecollection([pt1, pt2, pt3]);
*
* var enveloped = turf.envelope(fc);
*
* //=enveloped
*/
module.exports = function(features, done){
var bbox = extent(features);
var poly = bboxPolygon(bbox);
return poly;
}
| var extent = require('turf-extent');
var bboxPolygon = require('turf-bbox-polygon');
/**
* Takes a {@link Feature} or {@link FeatureCollection} and returns a rectangular {@link Polygon} feature that encompasses all vertices.
*
* @module turf/envelope
* @param {FeatureCollection} fc a FeatureCollection of any type
* @return {Polygon} a rectangular Polygon feature that encompasses all vertices
* @example
* var pt1 = turf.point(-75.343, 39.984, {name: 'Location A'});
* var pt2 = turf.point(-75.833, 39.284, {name: 'Location B'});
* var pt3 = turf.point(-75.534, 39.123, {name: 'Location C'});
* var fc = turf.featurecollection([pt1, pt2, pt3]);
*
* var enveloped = turf.envelope(fc);
*
* var result = turf.featurecollection(
* fc.features.concat(enveloped));
*
* //=result
*/
module.exports = function(features, done){
var bbox = extent(features);
var poly = bboxPolygon(bbox);
return poly;
}
| Add both points and envelope polygon to rpl | Add both points and envelope polygon to rpl
| JavaScript | mit | Turfjs/turf-envelope | javascript | ## Code Before:
var extent = require('turf-extent');
var bboxPolygon = require('turf-bbox-polygon');
/**
* Takes a {@link Feature} or {@link FeatureCollection} and returns a rectangular {@link Polygon} feature that encompasses all vertices.
*
* @module turf/envelope
* @param {FeatureCollection} fc a FeatureCollection of any type
* @return {Polygon} a rectangular Polygon feature that encompasses all vertices
* @example
* var pt1 = turf.point(-75.343, 39.984, {name: 'Location A'});
* var pt2 = turf.point(-75.833, 39.284, {name: 'Location B'});
* var pt3 = turf.point(-75.534, 39.123, {name: 'Location C'});
* var fc = turf.featurecollection([pt1, pt2, pt3]);
*
* var enveloped = turf.envelope(fc);
*
* //=enveloped
*/
module.exports = function(features, done){
var bbox = extent(features);
var poly = bboxPolygon(bbox);
return poly;
}
## Instruction:
Add both points and envelope polygon to rpl
## Code After:
var extent = require('turf-extent');
var bboxPolygon = require('turf-bbox-polygon');
/**
* Takes a {@link Feature} or {@link FeatureCollection} and returns a rectangular {@link Polygon} feature that encompasses all vertices.
*
* @module turf/envelope
* @param {FeatureCollection} fc a FeatureCollection of any type
* @return {Polygon} a rectangular Polygon feature that encompasses all vertices
* @example
* var pt1 = turf.point(-75.343, 39.984, {name: 'Location A'});
* var pt2 = turf.point(-75.833, 39.284, {name: 'Location B'});
* var pt3 = turf.point(-75.534, 39.123, {name: 'Location C'});
* var fc = turf.featurecollection([pt1, pt2, pt3]);
*
* var enveloped = turf.envelope(fc);
*
* var result = turf.featurecollection(
* fc.features.concat(enveloped));
*
* //=result
*/
module.exports = function(features, done){
var bbox = extent(features);
var poly = bboxPolygon(bbox);
return poly;
}
| var extent = require('turf-extent');
var bboxPolygon = require('turf-bbox-polygon');
/**
* Takes a {@link Feature} or {@link FeatureCollection} and returns a rectangular {@link Polygon} feature that encompasses all vertices.
*
* @module turf/envelope
* @param {FeatureCollection} fc a FeatureCollection of any type
* @return {Polygon} a rectangular Polygon feature that encompasses all vertices
* @example
* var pt1 = turf.point(-75.343, 39.984, {name: 'Location A'});
* var pt2 = turf.point(-75.833, 39.284, {name: 'Location B'});
* var pt3 = turf.point(-75.534, 39.123, {name: 'Location C'});
* var fc = turf.featurecollection([pt1, pt2, pt3]);
*
* var enveloped = turf.envelope(fc);
*
- * //=enveloped
+ * var result = turf.featurecollection(
+ * fc.features.concat(enveloped));
+ *
+ * //=result
*/
module.exports = function(features, done){
var bbox = extent(features);
var poly = bboxPolygon(bbox);
return poly;
} | 5 | 0.2 | 4 | 1 |
4a4da7c6641fe7febc2afb39b55d948702588e00 | lib/fastly-rails.rb | lib/fastly-rails.rb | require "fastly-rails/engine"
require "fastly-rails/client"
require "fastly-rails/configuration"
require "fastly-rails/errors"
module FastlyRails
attr_reader :client, :configuration
def configuration
@configuration ||= Configuration.new
end
def configure
yield configuration if block_given?
end
def client
raise NoAuthCredentialsProvidedError unless configuration.authenticatable?
@client ||= Client.new(
:api_key => configuration.api_key,
:user => configuration.user,
:password => configuration.password,
)
end
extend self
end
| require "fastly-rails/engine"
require "fastly-rails/client"
require "fastly-rails/configuration"
require "fastly-rails/errors"
module FastlyRails
attr_reader :client, :configuration
def self.configuration
@configuration ||= Configuration.new
end
def self.configure
yield configuration if block_given?
end
def self.client
raise NoAuthCredentialsProvidedError unless configuration.authenticatable?
@client ||= Client.new(
:api_key => configuration.api_key,
:user => configuration.user,
:password => configuration.password,
)
end
end
| Use `self.method` instead of `extend self` | Use `self.method` instead of `extend self`
| Ruby | mit | hacksterio/fastly-rails,hacksterio/fastly-rails,fastly/fastly-rails,fastly/fastly-rails,hacksterio/fastly-rails,fastly/fastly-rails | ruby | ## Code Before:
require "fastly-rails/engine"
require "fastly-rails/client"
require "fastly-rails/configuration"
require "fastly-rails/errors"
module FastlyRails
attr_reader :client, :configuration
def configuration
@configuration ||= Configuration.new
end
def configure
yield configuration if block_given?
end
def client
raise NoAuthCredentialsProvidedError unless configuration.authenticatable?
@client ||= Client.new(
:api_key => configuration.api_key,
:user => configuration.user,
:password => configuration.password,
)
end
extend self
end
## Instruction:
Use `self.method` instead of `extend self`
## Code After:
require "fastly-rails/engine"
require "fastly-rails/client"
require "fastly-rails/configuration"
require "fastly-rails/errors"
module FastlyRails
attr_reader :client, :configuration
def self.configuration
@configuration ||= Configuration.new
end
def self.configure
yield configuration if block_given?
end
def self.client
raise NoAuthCredentialsProvidedError unless configuration.authenticatable?
@client ||= Client.new(
:api_key => configuration.api_key,
:user => configuration.user,
:password => configuration.password,
)
end
end
| require "fastly-rails/engine"
require "fastly-rails/client"
require "fastly-rails/configuration"
require "fastly-rails/errors"
module FastlyRails
attr_reader :client, :configuration
- def configuration
+ def self.configuration
? +++++
@configuration ||= Configuration.new
end
- def configure
+ def self.configure
? +++++
yield configuration if block_given?
end
- def client
+ def self.client
? +++++
- raise NoAuthCredentialsProvidedError unless configuration.authenticatable?
? --
+ raise NoAuthCredentialsProvidedError unless configuration.authenticatable?
+
- @client ||= Client.new(
? --
+ @client ||= Client.new(
- :api_key => configuration.api_key,
? --
+ :api_key => configuration.api_key,
- :user => configuration.user,
? --
+ :user => configuration.user,
- :password => configuration.password,
? --
+ :password => configuration.password,
- )
? --
+ )
end
- extend self
-
end | 21 | 0.724138 | 10 | 11 |
c60de6a42a270fe1e68018d8694af6bee3023026 | reset/testmode.go | reset/testmode.go | package reset
import (
"os"
"strings"
"sync"
)
var (
testModeOnce = sync.Once{}
_testMode bool
)
// TestMode returns true if run as unit test
func TestMode() bool {
testModeOnce.Do(func() {
_testMode = strings.HasSuffix(os.Args[0], ".test")
})
return _testMode
}
| package reset
import (
"io/ioutil"
"log"
"os"
"strings"
"sync"
)
var (
testModeOnce = sync.Once{}
_testMode bool
)
// TestMode returns true if run as unit test
func TestMode() bool {
testModeOnce.Do(func() {
_testMode = strings.HasSuffix(os.Args[0], ".test")
if _testMode {
log.SetOutput(ioutil.Discard)
}
})
return _testMode
}
| Drop logging output in test mode | Drop logging output in test mode
| Go | apache-2.0 | redforks/testing | go | ## Code Before:
package reset
import (
"os"
"strings"
"sync"
)
var (
testModeOnce = sync.Once{}
_testMode bool
)
// TestMode returns true if run as unit test
func TestMode() bool {
testModeOnce.Do(func() {
_testMode = strings.HasSuffix(os.Args[0], ".test")
})
return _testMode
}
## Instruction:
Drop logging output in test mode
## Code After:
package reset
import (
"io/ioutil"
"log"
"os"
"strings"
"sync"
)
var (
testModeOnce = sync.Once{}
_testMode bool
)
// TestMode returns true if run as unit test
func TestMode() bool {
testModeOnce.Do(func() {
_testMode = strings.HasSuffix(os.Args[0], ".test")
if _testMode {
log.SetOutput(ioutil.Discard)
}
})
return _testMode
}
| package reset
import (
+ "io/ioutil"
+ "log"
"os"
"strings"
"sync"
)
var (
testModeOnce = sync.Once{}
_testMode bool
)
// TestMode returns true if run as unit test
func TestMode() bool {
testModeOnce.Do(func() {
_testMode = strings.HasSuffix(os.Args[0], ".test")
+
+ if _testMode {
+ log.SetOutput(ioutil.Discard)
+ }
})
return _testMode
} | 6 | 0.3 | 6 | 0 |
7de53bfbfddba15676ef3b63481ee925230f7529 | patches/00001-Add-missing-header-sparseblock.diff | patches/00001-Add-missing-header-sparseblock.diff | diff -crB ./src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp ../isis_autotools_mod/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp
*** ./src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:31:09.000000000 -0700
--- ../isis_autotools_mod/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:54:15.000000000 -0700
***************
*** 29,35 ****
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>
!
using namespace boost::numeric::ublas;
--- 29,35 ----
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>
! #include <boost/numeric/ublas/matrix.hpp>
using namespace boost::numeric::ublas;
| diff -crB ./src/base/objs/SparseBlockMatrix/SparseBlockMatrix.cpp ../isis/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp
*** .src/base/objs/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:31:09.000000000 -0700
--- ../isis/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:54:15.000000000 -0700
***************
*** 5,5 ****
--- 5,6 ----
#include <boost/numeric/ublas/io.hpp>
+ #include <boost/numeric/ublas/matrix.hpp>
| Update patch to work with Isis version 3.4.6 | Update patch to work with Isis version 3.4.6
| Diff | apache-2.0 | NeoGeographyToolkit/AutotoolsForISIS,NeoGeographyToolkit/AutotoolsForISIS,NeoGeographyToolkit/AutotoolsForISIS | diff | ## Code Before:
diff -crB ./src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp ../isis_autotools_mod/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp
*** ./src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:31:09.000000000 -0700
--- ../isis_autotools_mod/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:54:15.000000000 -0700
***************
*** 29,35 ****
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>
!
using namespace boost::numeric::ublas;
--- 29,35 ----
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>
! #include <boost/numeric/ublas/matrix.hpp>
using namespace boost::numeric::ublas;
## Instruction:
Update patch to work with Isis version 3.4.6
## Code After:
diff -crB ./src/base/objs/SparseBlockMatrix/SparseBlockMatrix.cpp ../isis/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp
*** .src/base/objs/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:31:09.000000000 -0700
--- ../isis/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:54:15.000000000 -0700
***************
*** 5,5 ****
--- 5,6 ----
#include <boost/numeric/ublas/io.hpp>
+ #include <boost/numeric/ublas/matrix.hpp>
| - diff -crB ./src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp ../isis_autotools_mod/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp
+ diff -crB ./src/base/objs/SparseBlockMatrix/SparseBlockMatrix.cpp ../isis/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp
- *** ./src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:31:09.000000000 -0700
? - ^ ^^ ^
+ *** .src/base/objs/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:31:09.000000000 -0700
? ^^^^^ ^^^ ^^^^^^
- --- ../isis_autotools_mod/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:54:15.000000000 -0700
? -------------- ^
+ --- ../isis/src/Core/SparseBlockMatrix/SparseBlockMatrix.cpp 2012-06-14 15:54:15.000000000 -0700
? ^^^^
***************
- *** 29,35 ****
? ^^ -
+ *** 5,5 ****
? ^
+ --- 5,6 ----
- #include <boost/numeric/ublas/matrix_sparse.hpp>
- #include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>
- !
-
- using namespace boost::numeric::ublas;
-
- --- 29,35 ----
- #include <boost/numeric/ublas/matrix_sparse.hpp>
- #include <boost/numeric/ublas/matrix_proxy.hpp>
- #include <boost/numeric/ublas/io.hpp>
- ! #include <boost/numeric/ublas/matrix.hpp>
? ^
+ + #include <boost/numeric/ublas/matrix.hpp>
? ^
-
- using namespace boost::numeric::ublas;
- | 24 | 1.2 | 6 | 18 |
a59b4f03160cbf3ff9fb189fda3491c382bbb53a | CHANGELOG.rst | CHANGELOG.rst | CHANGELOG
=========
0.5.1
-----
* Now available via pip install from pypi!
* Minor unit test updates to improve coverage.
0.5 Django-Pucas
----------------
Initial release of Django plugin for CAS authentication with local Princeton University setup
in mind. Features below are provided in the form of user stories.
Developer
~~~~~~~~~
* As a developer, I want to be able to install pucas as a Django plugin from the git repo for easy install.
* As a developer, I want to be able to use pucas as a drop in replacement for CAS/LDAP authentication for easy authentication.
* As a developer, I want to have example templates for installations available in the pucas source code.
* As a developer, I want the option to ask for addition information from the LDAP server as part of user initialization.
Admin User
~~~~~~~~~~
* As an admin user, I want to be a able to add users using manage.py commands and automatically add their LDAP info, including creating super users, for easy management.
* As an admin user, I want to be able to see who has been added as CAS users.
* As an admin user, I want to still be able to create a user with Django's build in authentication so that I can add users not in my organization's LDAP.
User
~~~~
* As a user, I want to be able authenticate easily using Princeton (or another configurable) CAS SSO solution.
* As a user, I want to be able to use the usual Django sign-in process with only one referral to the outside CAS service.
| CHANGELOG
=========
0.5.2
-----
* Document permissions in the README.
0.5.1
-----
* Now available via pip install from pypi!
* Minor unit test updates to improve coverage.
0.5 Django-Pucas
----------------
Initial release of Django plugin for CAS authentication with local Princeton University setup
in mind. Features below are provided in the form of user stories.
Developer
~~~~~~~~~
* As a developer, I want to be able to install pucas as a Django plugin from the git repo for easy install.
* As a developer, I want to be able to use pucas as a drop in replacement for CAS/LDAP authentication for easy authentication.
* As a developer, I want to have example templates for installations available in the pucas source code.
* As a developer, I want the option to ask for addition information from the LDAP server as part of user initialization.
Admin User
~~~~~~~~~~
* As an admin user, I want to be a able to add users using manage.py commands and automatically add their LDAP info, including creating super users, for easy management.
* As an admin user, I want to be able to see who has been added as CAS users.
* As an admin user, I want to still be able to create a user with Django's build in authentication so that I can add users not in my organization's LDAP.
User
~~~~
* As a user, I want to be able authenticate easily using Princeton (or another configurable) CAS SSO solution.
* As a user, I want to be able to use the usual Django sign-in process with only one referral to the outside CAS service.
| Update changelog to note 0.5.2 only adds permission documentation | Update changelog to note 0.5.2 only adds permission documentation
| reStructuredText | apache-2.0 | Princeton-CDH/django-pucas,Princeton-CDH/django-pucas | restructuredtext | ## Code Before:
CHANGELOG
=========
0.5.1
-----
* Now available via pip install from pypi!
* Minor unit test updates to improve coverage.
0.5 Django-Pucas
----------------
Initial release of Django plugin for CAS authentication with local Princeton University setup
in mind. Features below are provided in the form of user stories.
Developer
~~~~~~~~~
* As a developer, I want to be able to install pucas as a Django plugin from the git repo for easy install.
* As a developer, I want to be able to use pucas as a drop in replacement for CAS/LDAP authentication for easy authentication.
* As a developer, I want to have example templates for installations available in the pucas source code.
* As a developer, I want the option to ask for addition information from the LDAP server as part of user initialization.
Admin User
~~~~~~~~~~
* As an admin user, I want to be a able to add users using manage.py commands and automatically add their LDAP info, including creating super users, for easy management.
* As an admin user, I want to be able to see who has been added as CAS users.
* As an admin user, I want to still be able to create a user with Django's build in authentication so that I can add users not in my organization's LDAP.
User
~~~~
* As a user, I want to be able authenticate easily using Princeton (or another configurable) CAS SSO solution.
* As a user, I want to be able to use the usual Django sign-in process with only one referral to the outside CAS service.
## Instruction:
Update changelog to note 0.5.2 only adds permission documentation
## Code After:
CHANGELOG
=========
0.5.2
-----
* Document permissions in the README.
0.5.1
-----
* Now available via pip install from pypi!
* Minor unit test updates to improve coverage.
0.5 Django-Pucas
----------------
Initial release of Django plugin for CAS authentication with local Princeton University setup
in mind. Features below are provided in the form of user stories.
Developer
~~~~~~~~~
* As a developer, I want to be able to install pucas as a Django plugin from the git repo for easy install.
* As a developer, I want to be able to use pucas as a drop in replacement for CAS/LDAP authentication for easy authentication.
* As a developer, I want to have example templates for installations available in the pucas source code.
* As a developer, I want the option to ask for addition information from the LDAP server as part of user initialization.
Admin User
~~~~~~~~~~
* As an admin user, I want to be a able to add users using manage.py commands and automatically add their LDAP info, including creating super users, for easy management.
* As an admin user, I want to be able to see who has been added as CAS users.
* As an admin user, I want to still be able to create a user with Django's build in authentication so that I can add users not in my organization's LDAP.
User
~~~~
* As a user, I want to be able authenticate easily using Princeton (or another configurable) CAS SSO solution.
* As a user, I want to be able to use the usual Django sign-in process with only one referral to the outside CAS service.
| CHANGELOG
=========
+
+ 0.5.2
+ -----
+
+ * Document permissions in the README.
0.5.1
-----
* Now available via pip install from pypi!
* Minor unit test updates to improve coverage.
0.5 Django-Pucas
----------------
Initial release of Django plugin for CAS authentication with local Princeton University setup
in mind. Features below are provided in the form of user stories.
Developer
~~~~~~~~~
* As a developer, I want to be able to install pucas as a Django plugin from the git repo for easy install.
* As a developer, I want to be able to use pucas as a drop in replacement for CAS/LDAP authentication for easy authentication.
* As a developer, I want to have example templates for installations available in the pucas source code.
* As a developer, I want the option to ask for addition information from the LDAP server as part of user initialization.
Admin User
~~~~~~~~~~
* As an admin user, I want to be a able to add users using manage.py commands and automatically add their LDAP info, including creating super users, for easy management.
* As an admin user, I want to be able to see who has been added as CAS users.
* As an admin user, I want to still be able to create a user with Django's build in authentication so that I can add users not in my organization's LDAP.
User
~~~~
* As a user, I want to be able authenticate easily using Princeton (or another configurable) CAS SSO solution.
* As a user, I want to be able to use the usual Django sign-in process with only one referral to the outside CAS service. | 5 | 0.15625 | 5 | 0 |
f590250e00d7413b9e9dd3e956c45bed189d6a9f | lib/CMakeLists.txt | lib/CMakeLists.txt | find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)
include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})
set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)
include_directories(../include ./include)
if(DISCCORD_BUILD_STATIC)
message("Building disccord as a static library")
add_library(disccord STATIC ${SOURCE_FILES})
else()
message("Building disccord as a shared library")
add_library(disccord SHARED ${SOURCE_FILES})
set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})
install(TARGETS disccord DESTINATION /usr/local/lib) | find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)
include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})
set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)
include_directories(../include ./include)
if(DISCCORD_BUILD_STATIC)
message("Building disccord as a static library")
add_library(disccord STATIC ${SOURCE_FILES})
else()
message("Building disccord as a shared library")
add_library(disccord SHARED ${SOURCE_FILES})
set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})
install(TARGETS disccord DESTINATION /usr/local/lib)
install(DIRECTORY ../include DESTINATION /usr/local/include/disccord) | Install header files as well as library files | Install header files as well as library files
| Text | mit | FiniteReality/disccord,FiniteReality/disccord | text | ## Code Before:
find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)
include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})
set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)
include_directories(../include ./include)
if(DISCCORD_BUILD_STATIC)
message("Building disccord as a static library")
add_library(disccord STATIC ${SOURCE_FILES})
else()
message("Building disccord as a shared library")
add_library(disccord SHARED ${SOURCE_FILES})
set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})
install(TARGETS disccord DESTINATION /usr/local/lib)
## Instruction:
Install header files as well as library files
## Code After:
find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)
include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})
set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)
include_directories(../include ./include)
if(DISCCORD_BUILD_STATIC)
message("Building disccord as a static library")
add_library(disccord STATIC ${SOURCE_FILES})
else()
message("Building disccord as a shared library")
add_library(disccord SHARED ${SOURCE_FILES})
set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})
install(TARGETS disccord DESTINATION /usr/local/lib)
install(DIRECTORY ../include DESTINATION /usr/local/include/disccord) | find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)
include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})
set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)
include_directories(../include ./include)
if(DISCCORD_BUILD_STATIC)
message("Building disccord as a static library")
add_library(disccord STATIC ${SOURCE_FILES})
else()
message("Building disccord as a shared library")
add_library(disccord SHARED ${SOURCE_FILES})
set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})
install(TARGETS disccord DESTINATION /usr/local/lib)
+ install(DIRECTORY ../include DESTINATION /usr/local/include/disccord) | 1 | 0.04 | 1 | 0 |
23439b2341320a973b1c135abc541236de6550bf | hack_malloc.c | hack_malloc.c |
void* malloc(size_t size) {
printf("malloc... ");
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
if (addr == MAP_FAILED) {
printf("fail\n");
return NULL;
}
printf("ok\n");
*(size_t*)addr = size;
return (size_t*)addr + 1;
}
void free (void *ptr) {
printf("free... ");
size_t* real_ptr = (size_t*)ptr - 1;
if (!munmap(real_ptr, *real_ptr)) {
printf("ok\n");
} else {
printf("fail\n");
}
}
|
void* malloc(size_t size) {
write(STDOUT_FILENO, "malloc... ", 10);
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
if (addr == MAP_FAILED) {
write(STDOUT_FILENO, "fail\n", 5);
return NULL;
}
write(STDOUT_FILENO, "ok\n", 3);
*(size_t*)addr = size;
return (size_t*)addr + 1;
}
void free (void *ptr) {
write(STDOUT_FILENO, "free... ", 8);
size_t* real_ptr = (size_t*)ptr - 1;
if (!munmap(real_ptr, *real_ptr)) {
write(STDOUT_FILENO, "ok\n", 3);
} else {
write(STDOUT_FILENO, "fail\n", 5);
}
}
| Replace printf with safe write to stdout | Replace printf with safe write to stdout
| C | mit | vmarkovtsev/hack_malloc,vmarkovtsev/hack_malloc | c | ## Code Before:
void* malloc(size_t size) {
printf("malloc... ");
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
if (addr == MAP_FAILED) {
printf("fail\n");
return NULL;
}
printf("ok\n");
*(size_t*)addr = size;
return (size_t*)addr + 1;
}
void free (void *ptr) {
printf("free... ");
size_t* real_ptr = (size_t*)ptr - 1;
if (!munmap(real_ptr, *real_ptr)) {
printf("ok\n");
} else {
printf("fail\n");
}
}
## Instruction:
Replace printf with safe write to stdout
## Code After:
void* malloc(size_t size) {
write(STDOUT_FILENO, "malloc... ", 10);
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
if (addr == MAP_FAILED) {
write(STDOUT_FILENO, "fail\n", 5);
return NULL;
}
write(STDOUT_FILENO, "ok\n", 3);
*(size_t*)addr = size;
return (size_t*)addr + 1;
}
void free (void *ptr) {
write(STDOUT_FILENO, "free... ", 8);
size_t* real_ptr = (size_t*)ptr - 1;
if (!munmap(real_ptr, *real_ptr)) {
write(STDOUT_FILENO, "ok\n", 3);
} else {
write(STDOUT_FILENO, "fail\n", 5);
}
}
|
void* malloc(size_t size) {
- printf("malloc... ");
+ write(STDOUT_FILENO, "malloc... ", 10);
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
if (addr == MAP_FAILED) {
- printf("fail\n");
+ write(STDOUT_FILENO, "fail\n", 5);
return NULL;
}
- printf("ok\n");
+ write(STDOUT_FILENO, "ok\n", 3);
*(size_t*)addr = size;
return (size_t*)addr + 1;
}
void free (void *ptr) {
- printf("free... ");
+ write(STDOUT_FILENO, "free... ", 8);
size_t* real_ptr = (size_t*)ptr - 1;
if (!munmap(real_ptr, *real_ptr)) {
- printf("ok\n");
+ write(STDOUT_FILENO, "ok\n", 3);
} else {
- printf("fail\n");
+ write(STDOUT_FILENO, "fail\n", 5);
}
} | 12 | 0.428571 | 6 | 6 |
a9ccf7546f9f71bf4feccc3dab86c221be4991c7 | src/shared/app.css | src/shared/app.css | html p, body p {
line-height: 1.25;
}
#loading-bar .bar {
background: #FFC107;
height: 5px;
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
}
/* Fancy blur effect */
#loading-bar .peg {
height: 5px;
-moz-box-shadow: #FFC107 1px 0 6px 1px;
-ms-box-shadow: #FFC107 1px 0 6px 1px;
-webkit-box-shadow: #FFC107 1px 0 6px 1px;
box-shadow: #FFC107 1px 0 6px 1px;
}
.md-button {
margin: 16px 8px;
padding: 0 8px;
line-height: 36px;
}
md-sidenav md-list .md-button {
color: inherit;
font-weight: 500;
text-align: left;
width: 100%;
padding: 16px;
margin: 0;
line-height: normal;
}
md-toolbar .separator {
width: 48px;
height: 28px;
}
| html p, body p {
line-height: 1.25;
}
#loading-bar .bar {
background: #FFC107;
height: 5px;
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
}
/* Fancy blur effect */
#loading-bar .peg {
height: 5px;
-moz-box-shadow: #FFC107 1px 0 6px 1px;
-ms-box-shadow: #FFC107 1px 0 6px 1px;
-webkit-box-shadow: #FFC107 1px 0 6px 1px;
box-shadow: #FFC107 1px 0 6px 1px;
}
.md-button {
margin: 16px 8px;
padding: 0 8px;
line-height: 36px;
}
md-sidenav md-list .md-button {
color: inherit;
font-weight: 500;
text-align: left;
width: 100%;
padding: 16px;
margin: 0;
line-height: normal;
}
md-toolbar .separator {
width: 48px;
height: 28px;
}
md-icon:focus {
outline: none;
}
| Fix icon outline when focused | Fix icon outline when focused | CSS | mit | dinoboff/singpathfire,santoshdeshpande/singpathfire,sanjay-patel/singpathfire,ChrisBoesch/singpathfire,dinoboff/singpathfire,kaijie/singpathfire,santoshdeshpande/singpathfire,ChrisBoesch/singpathfire,kaijie/singpathfire,ChrisBoesch/singpathfire,sanjay-patel/singpathfire,sanjay-patel/singpathfire,dinoboff/singpathfire,blueset/singpathfire,kaijie/singpathfire,blueset/singpathfire,blueset/singpathfire,santoshdeshpande/singpathfire | css | ## Code Before:
html p, body p {
line-height: 1.25;
}
#loading-bar .bar {
background: #FFC107;
height: 5px;
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
}
/* Fancy blur effect */
#loading-bar .peg {
height: 5px;
-moz-box-shadow: #FFC107 1px 0 6px 1px;
-ms-box-shadow: #FFC107 1px 0 6px 1px;
-webkit-box-shadow: #FFC107 1px 0 6px 1px;
box-shadow: #FFC107 1px 0 6px 1px;
}
.md-button {
margin: 16px 8px;
padding: 0 8px;
line-height: 36px;
}
md-sidenav md-list .md-button {
color: inherit;
font-weight: 500;
text-align: left;
width: 100%;
padding: 16px;
margin: 0;
line-height: normal;
}
md-toolbar .separator {
width: 48px;
height: 28px;
}
## Instruction:
Fix icon outline when focused
## Code After:
html p, body p {
line-height: 1.25;
}
#loading-bar .bar {
background: #FFC107;
height: 5px;
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
}
/* Fancy blur effect */
#loading-bar .peg {
height: 5px;
-moz-box-shadow: #FFC107 1px 0 6px 1px;
-ms-box-shadow: #FFC107 1px 0 6px 1px;
-webkit-box-shadow: #FFC107 1px 0 6px 1px;
box-shadow: #FFC107 1px 0 6px 1px;
}
.md-button {
margin: 16px 8px;
padding: 0 8px;
line-height: 36px;
}
md-sidenav md-list .md-button {
color: inherit;
font-weight: 500;
text-align: left;
width: 100%;
padding: 16px;
margin: 0;
line-height: normal;
}
md-toolbar .separator {
width: 48px;
height: 28px;
}
md-icon:focus {
outline: none;
}
| html p, body p {
line-height: 1.25;
}
#loading-bar .bar {
background: #FFC107;
height: 5px;
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
}
/* Fancy blur effect */
#loading-bar .peg {
height: 5px;
-moz-box-shadow: #FFC107 1px 0 6px 1px;
-ms-box-shadow: #FFC107 1px 0 6px 1px;
-webkit-box-shadow: #FFC107 1px 0 6px 1px;
box-shadow: #FFC107 1px 0 6px 1px;
}
.md-button {
margin: 16px 8px;
padding: 0 8px;
line-height: 36px;
}
md-sidenav md-list .md-button {
color: inherit;
font-weight: 500;
text-align: left;
width: 100%;
padding: 16px;
margin: 0;
line-height: normal;
}
+
md-toolbar .separator {
width: 48px;
height: 28px;
}
+
+ md-icon:focus {
+ outline: none;
+ } | 5 | 0.128205 | 5 | 0 |
34784b645927479c5b4650a4d6472b0bc8146888 | .travis.yml | .travis.yml | language: ruby
rvm:
- ruby-head
- 2.4.6
- 2.3.8
gemfile:
- 'gemfiles/action_mailer_edge.gemfile'
- 'gemfiles/action_mailer_52.gemfile'
- 'gemfiles/action_mailer_51.gemfile'
env:
- INTEGRATION_TEST=false
- INTEGRATION_TEST=true
sudo: false
script:
- 'bundle exec rubocop -c .rubocop.yml'
- 'bundle exec rspec'
- 'if [ $INTEGRATION_TEST == "true" ]; then bundle exec rspec integration_test; fi'
after_success:
- 'bundle exec codeclimate-test-reporter'
cache: bundler
matrix:
exclude:
- env: INTEGRATION_TEST=true
- rvm: 2.3.8
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: 2.3.8
gemfile: gemfiles/action_mailer_edge.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_edge.gemfile
include:
- rvm: 2.4.6
gemfile: gemfiles/action_mailer_52.gemfile
env: INTEGRATION_TEST=true
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/action_mailer_edge.gemfile
| language: ruby
rvm:
- ruby-head
- 2.4
- 2.3
gemfile:
- 'gemfiles/action_mailer_edge.gemfile'
- 'gemfiles/action_mailer_52.gemfile'
- 'gemfiles/action_mailer_51.gemfile'
env:
- INTEGRATION_TEST=false
- INTEGRATION_TEST=true
sudo: false
script:
- 'bundle exec rubocop -c .rubocop.yml'
- 'bundle exec rspec'
- 'if [ $INTEGRATION_TEST == "true" ]; then bundle exec rspec integration_test; fi'
after_success:
- 'bundle exec codeclimate-test-reporter'
cache: bundler
matrix:
exclude:
- env: INTEGRATION_TEST=true
- rvm: 2.3
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: 2.3
gemfile: gemfiles/action_mailer_edge.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_edge.gemfile
include:
- rvm: 2.4
gemfile: gemfiles/action_mailer_52.gemfile
env: INTEGRATION_TEST=true
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/action_mailer_edge.gemfile
| Remove patch version from CI target ruby version | Remove patch version from CI target ruby version
| YAML | mit | ryu39/sendgrid_actionmailer_adapter,ryu39/sendgrid_actionmailer_adapter | yaml | ## Code Before:
language: ruby
rvm:
- ruby-head
- 2.4.6
- 2.3.8
gemfile:
- 'gemfiles/action_mailer_edge.gemfile'
- 'gemfiles/action_mailer_52.gemfile'
- 'gemfiles/action_mailer_51.gemfile'
env:
- INTEGRATION_TEST=false
- INTEGRATION_TEST=true
sudo: false
script:
- 'bundle exec rubocop -c .rubocop.yml'
- 'bundle exec rspec'
- 'if [ $INTEGRATION_TEST == "true" ]; then bundle exec rspec integration_test; fi'
after_success:
- 'bundle exec codeclimate-test-reporter'
cache: bundler
matrix:
exclude:
- env: INTEGRATION_TEST=true
- rvm: 2.3.8
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: 2.3.8
gemfile: gemfiles/action_mailer_edge.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_edge.gemfile
include:
- rvm: 2.4.6
gemfile: gemfiles/action_mailer_52.gemfile
env: INTEGRATION_TEST=true
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/action_mailer_edge.gemfile
## Instruction:
Remove patch version from CI target ruby version
## Code After:
language: ruby
rvm:
- ruby-head
- 2.4
- 2.3
gemfile:
- 'gemfiles/action_mailer_edge.gemfile'
- 'gemfiles/action_mailer_52.gemfile'
- 'gemfiles/action_mailer_51.gemfile'
env:
- INTEGRATION_TEST=false
- INTEGRATION_TEST=true
sudo: false
script:
- 'bundle exec rubocop -c .rubocop.yml'
- 'bundle exec rspec'
- 'if [ $INTEGRATION_TEST == "true" ]; then bundle exec rspec integration_test; fi'
after_success:
- 'bundle exec codeclimate-test-reporter'
cache: bundler
matrix:
exclude:
- env: INTEGRATION_TEST=true
- rvm: 2.3
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: 2.3
gemfile: gemfiles/action_mailer_edge.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_edge.gemfile
include:
- rvm: 2.4
gemfile: gemfiles/action_mailer_52.gemfile
env: INTEGRATION_TEST=true
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/action_mailer_edge.gemfile
| language: ruby
rvm:
- ruby-head
- - 2.4.6
? --
+ - 2.4
- - 2.3.8
? --
+ - 2.3
gemfile:
- 'gemfiles/action_mailer_edge.gemfile'
- 'gemfiles/action_mailer_52.gemfile'
- 'gemfiles/action_mailer_51.gemfile'
env:
- INTEGRATION_TEST=false
- INTEGRATION_TEST=true
sudo: false
script:
- 'bundle exec rubocop -c .rubocop.yml'
- 'bundle exec rspec'
- 'if [ $INTEGRATION_TEST == "true" ]; then bundle exec rspec integration_test; fi'
after_success:
- 'bundle exec codeclimate-test-reporter'
cache: bundler
matrix:
exclude:
- env: INTEGRATION_TEST=true
- - rvm: 2.3.8
? --
+ - rvm: 2.3
gemfile: gemfiles/action_mailer_51.gemfile
- - rvm: 2.3.8
? --
+ - rvm: 2.3
gemfile: gemfiles/action_mailer_edge.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_51.gemfile
- rvm: ruby-head
gemfile: gemfiles/action_mailer_edge.gemfile
include:
- - rvm: 2.4.6
? --
+ - rvm: 2.4
gemfile: gemfiles/action_mailer_52.gemfile
env: INTEGRATION_TEST=true
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/action_mailer_edge.gemfile | 10 | 0.232558 | 5 | 5 |
ba2a258610bc0bde7b28ed1e41a3dadd9936c134 | lib/generators/rails/responders_controller_generator.rb | lib/generators/rails/responders_controller_generator.rb | require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
source_root File.expand_path("../templates", __FILE__)
protected
def flash?
target = if defined?(Rails.application) && Rails.application.parent.const_defined?(:ApplicationController)
Rails.application.parent.const_get(:ApplicationController)
elsif defined?(::ApplicationController)
::ApplicationController
end
if target
!target.responder.ancestors.include?(Responders::FlashResponder)
else
true
end
end
end
end
end | require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
source_root File.expand_path("../templates", __FILE__)
protected
def flash?
if defined?(ApplicationController)
!ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
else
Rails.application.config.responders.flash_keys.blank?
end
end
end
end
end | Allow flash detection even in engines. | Allow flash detection even in engines.
| Ruby | mit | pravi/responders,gpr/responders,pravi/responders,telekomatrix/responders,plataformatec/responders,gpr/responders,plataformatec/responders,muthhus/responders,plataformatec/responders,telekomatrix/responders,muthhus/responders | ruby | ## Code Before:
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
source_root File.expand_path("../templates", __FILE__)
protected
def flash?
target = if defined?(Rails.application) && Rails.application.parent.const_defined?(:ApplicationController)
Rails.application.parent.const_get(:ApplicationController)
elsif defined?(::ApplicationController)
::ApplicationController
end
if target
!target.responder.ancestors.include?(Responders::FlashResponder)
else
true
end
end
end
end
end
## Instruction:
Allow flash detection even in engines.
## Code After:
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
source_root File.expand_path("../templates", __FILE__)
protected
def flash?
if defined?(ApplicationController)
!ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
else
Rails.application.config.responders.flash_keys.blank?
end
end
end
end
end | require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
source_root File.expand_path("../templates", __FILE__)
- protected
+ protected
? ++
def flash?
- target = if defined?(Rails.application) && Rails.application.parent.const_defined?(:ApplicationController)
- Rails.application.parent.const_get(:ApplicationController)
- elsif defined?(::ApplicationController)
? --- --
+ if defined?(ApplicationController)
- ::ApplicationController
- end
-
- if target
- !target.responder.ancestors.include?(Responders::FlashResponder)
? ^ ^ ^
+ !ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
? +++++++ ^^^^^^^ ^^^ ^
else
- true
+ Rails.application.config.responders.flash_keys.blank?
end
end
end
end
end | 14 | 0.56 | 4 | 10 |
140ce823602e0f398afa4203d27a47684f1dbf11 | .travis.yml | .travis.yml | language: python
python: "2.7"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
coverage run --source='.' --omit='*_test.py' -m unittest discover --pattern='*_test.py'
after_success:
coveralls
| language: python
cache: pip
python: "2.7"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
coverage run --source='.' --omit='*_test.py' -m unittest discover --pattern='*_test.py'
after_success:
coveralls
| Add caching to make CI runs faster | Add caching to make CI runs faster
| YAML | apache-2.0 | m-lab/signal-searcher | yaml | ## Code Before:
language: python
python: "2.7"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
coverage run --source='.' --omit='*_test.py' -m unittest discover --pattern='*_test.py'
after_success:
coveralls
## Instruction:
Add caching to make CI runs faster
## Code After:
language: python
cache: pip
python: "2.7"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
coverage run --source='.' --omit='*_test.py' -m unittest discover --pattern='*_test.py'
after_success:
coveralls
| language: python
+ cache: pip
python: "2.7"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
coverage run --source='.' --omit='*_test.py' -m unittest discover --pattern='*_test.py'
after_success:
coveralls | 1 | 0.111111 | 1 | 0 |
b5126cc37b501ef8170ff5634f8247219237815e | ruby/benchmark.rb | ruby/benchmark.rb | require "benchmark"
if(ARGV.size != 1)
puts "Usage: ruby benchmark.rb <filename>"
exit 1
end
def measure(data, pattern)
count = 0
elapsed = Benchmark.measure {
count = data.scan(pattern).size
}
puts "#{elapsed.real * 1e3} - #{count}"
end
data = File.read(ARGV[0])
# Email
measure(data, /[\w\.+-]+@[\w\.-]+\.[\w\.-]+/)
# URI
measure(data, /[\w]+:\/\/[^\/\s?#]+[^\s?#]+(?:\?[^\s#]*)?(?:#[^\s]*)?/)
# IP
measure(data, /(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])/)
| require "benchmark"
if(ARGV.size != 1)
puts "Usage: ruby benchmark.rb <filename>"
exit 1
end
def measure(data, pattern)
count = 0
elapsed = Benchmark.measure {
count = data.scan(Regexp.compile(pattern)).size
}
puts "#{elapsed.real * 1e3} - #{count}"
end
data = File.read(ARGV[0])
# Email
measure(data, '[\w\.+-]+@[\w\.-]+\.[\w\.-]+')
# URI
measure(data, '[\w]+:\/\/[^\/\s?#]+[^\s?#]+(?:\?[^\s#]*)?(?:#[^\s]*)?')
# IP
measure(data, '(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])')
| Include regex compilation in measuring | Ruby: Include regex compilation in measuring
| Ruby | mit | mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark,mariomka/regex-benchmark | ruby | ## Code Before:
require "benchmark"
if(ARGV.size != 1)
puts "Usage: ruby benchmark.rb <filename>"
exit 1
end
def measure(data, pattern)
count = 0
elapsed = Benchmark.measure {
count = data.scan(pattern).size
}
puts "#{elapsed.real * 1e3} - #{count}"
end
data = File.read(ARGV[0])
# Email
measure(data, /[\w\.+-]+@[\w\.-]+\.[\w\.-]+/)
# URI
measure(data, /[\w]+:\/\/[^\/\s?#]+[^\s?#]+(?:\?[^\s#]*)?(?:#[^\s]*)?/)
# IP
measure(data, /(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])/)
## Instruction:
Ruby: Include regex compilation in measuring
## Code After:
require "benchmark"
if(ARGV.size != 1)
puts "Usage: ruby benchmark.rb <filename>"
exit 1
end
def measure(data, pattern)
count = 0
elapsed = Benchmark.measure {
count = data.scan(Regexp.compile(pattern)).size
}
puts "#{elapsed.real * 1e3} - #{count}"
end
data = File.read(ARGV[0])
# Email
measure(data, '[\w\.+-]+@[\w\.-]+\.[\w\.-]+')
# URI
measure(data, '[\w]+:\/\/[^\/\s?#]+[^\s?#]+(?:\?[^\s#]*)?(?:#[^\s]*)?')
# IP
measure(data, '(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])')
| require "benchmark"
if(ARGV.size != 1)
puts "Usage: ruby benchmark.rb <filename>"
exit 1
end
def measure(data, pattern)
count = 0
elapsed = Benchmark.measure {
- count = data.scan(pattern).size
+ count = data.scan(Regexp.compile(pattern)).size
? +++++++++++++++ +
}
puts "#{elapsed.real * 1e3} - #{count}"
end
data = File.read(ARGV[0])
# Email
- measure(data, /[\w\.+-]+@[\w\.-]+\.[\w\.-]+/)
? ^ ^
+ measure(data, '[\w\.+-]+@[\w\.-]+\.[\w\.-]+')
? ^ ^
# URI
- measure(data, /[\w]+:\/\/[^\/\s?#]+[^\s?#]+(?:\?[^\s#]*)?(?:#[^\s]*)?/)
? ^ ^
+ measure(data, '[\w]+:\/\/[^\/\s?#]+[^\s?#]+(?:\?[^\s#]*)?(?:#[^\s]*)?')
? ^ ^
# IP
- measure(data, /(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])/)
? ^ ^
+ measure(data, '(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])')
? ^ ^
| 8 | 0.307692 | 4 | 4 |
4e52f15c442875322e2b6c3e51108297eb8945a0 | src/com/davidmogar/njc/ast/types/StringType.java | src/com/davidmogar/njc/ast/types/StringType.java | package com.davidmogar.njc.ast.types;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
super(line, column);
}
public static StringType getInstance(int line, int column) {
if (instance == null) {
instance = new StringType(line, column);
}
return instance;
}
@Override
public Object accept(Visitor visitor, Object object) {
return visitor.visit(this, object);
}
}
| package com.davidmogar.njc.ast.types;
import com.davidmogar.njc.TypeError;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
super(line, column);
}
public static StringType getInstance(int line, int column) {
if (instance == null) {
instance = new StringType(line, column);
}
return instance;
}
@Override
public Object accept(Visitor visitor, Object object) {
return visitor.visit(this, object);
}
}
| Remove code added in a previous commit | Remove code added in a previous commit
String literals shouldn't be assignable.
| Java | mit | davidmogar/njc | java | ## Code Before:
package com.davidmogar.njc.ast.types;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
super(line, column);
}
public static StringType getInstance(int line, int column) {
if (instance == null) {
instance = new StringType(line, column);
}
return instance;
}
@Override
public Object accept(Visitor visitor, Object object) {
return visitor.visit(this, object);
}
}
## Instruction:
Remove code added in a previous commit
String literals shouldn't be assignable.
## Code After:
package com.davidmogar.njc.ast.types;
import com.davidmogar.njc.TypeError;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
super(line, column);
}
public static StringType getInstance(int line, int column) {
if (instance == null) {
instance = new StringType(line, column);
}
return instance;
}
@Override
public Object accept(Visitor visitor, Object object) {
return visitor.visit(this, object);
}
}
| package com.davidmogar.njc.ast.types;
+ import com.davidmogar.njc.TypeError;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
super(line, column);
}
public static StringType getInstance(int line, int column) {
if (instance == null) {
instance = new StringType(line, column);
}
return instance;
}
@Override
public Object accept(Visitor visitor, Object object) {
return visitor.visit(this, object);
}
} | 1 | 0.037037 | 1 | 0 |
87bd5d0444d06860961f13dfbc8308e92c40263f | app/controllers/users_controller.rb | app/controllers/users_controller.rb | get '/' do
@user = User.new
if session[:user_id]
@user = User.find(session[:user_id])
end
puts session[:user_id]
errors = @user.errors.full_messages
erb :'index', locals: { errors: errors}
end
get '/users/new/?' do
@user = User.new
end
post '/users/?' do
@user = User.new(params[:user])
if @user.save
session[:user_id] = @user.id
redirect "/users/#{@user.id}"
else
#@user
errors = @user.errors.full_messages
erb :'users/new', locals: { errors: errors }
end
end
get '/users/:id/?' do
@user = User.find(params[:id])
@destination = Destination.find_by(user_id: @user.id)
redirect "/" unless current_user.id == @user.id
erb :'users/show', locals: {user: @user, destination: @destination}
end
| get '/' do
@user = User.new
if session[:user_id]
@user = User.find(session[:user_id])
end
puts session[:user_id]
errors = @user.errors.full_messages
erb :'index', locals: { errors: errors}
end
get '/users/new/?' do
@user = User.new
end
post '/users/?' do
@user = User.new(params[:user])
if @user.save
session[:user_id] = @user.id
redirect "/sources/new"
else
errors = @user.errors.full_messages
erb :'users/new', locals: { errors: errors }
end
end
get '/users/:id/?' do
@user = User.find(params[:id])
@destination = Destination.find_by(user_id: @user.id)
redirect "/" unless current_user.id == @user.id
erb :'users/show', locals: {user: @user, destination: @destination}
end
| Change flow from user profile to connect dropbox | Change flow from user profile to connect dropbox
| Ruby | mit | kenworthyc/weeker,kenworthyc/weeker | ruby | ## Code Before:
get '/' do
@user = User.new
if session[:user_id]
@user = User.find(session[:user_id])
end
puts session[:user_id]
errors = @user.errors.full_messages
erb :'index', locals: { errors: errors}
end
get '/users/new/?' do
@user = User.new
end
post '/users/?' do
@user = User.new(params[:user])
if @user.save
session[:user_id] = @user.id
redirect "/users/#{@user.id}"
else
#@user
errors = @user.errors.full_messages
erb :'users/new', locals: { errors: errors }
end
end
get '/users/:id/?' do
@user = User.find(params[:id])
@destination = Destination.find_by(user_id: @user.id)
redirect "/" unless current_user.id == @user.id
erb :'users/show', locals: {user: @user, destination: @destination}
end
## Instruction:
Change flow from user profile to connect dropbox
## Code After:
get '/' do
@user = User.new
if session[:user_id]
@user = User.find(session[:user_id])
end
puts session[:user_id]
errors = @user.errors.full_messages
erb :'index', locals: { errors: errors}
end
get '/users/new/?' do
@user = User.new
end
post '/users/?' do
@user = User.new(params[:user])
if @user.save
session[:user_id] = @user.id
redirect "/sources/new"
else
errors = @user.errors.full_messages
erb :'users/new', locals: { errors: errors }
end
end
get '/users/:id/?' do
@user = User.find(params[:id])
@destination = Destination.find_by(user_id: @user.id)
redirect "/" unless current_user.id == @user.id
erb :'users/show', locals: {user: @user, destination: @destination}
end
| get '/' do
@user = User.new
if session[:user_id]
@user = User.find(session[:user_id])
end
puts session[:user_id]
errors = @user.errors.full_messages
erb :'index', locals: { errors: errors}
end
get '/users/new/?' do
@user = User.new
end
post '/users/?' do
@user = User.new(params[:user])
if @user.save
session[:user_id] = @user.id
- redirect "/users/#{@user.id}"
+ redirect "/sources/new"
else
- #@user
errors = @user.errors.full_messages
erb :'users/new', locals: { errors: errors }
end
end
get '/users/:id/?' do
@user = User.find(params[:id])
@destination = Destination.find_by(user_id: @user.id)
redirect "/" unless current_user.id == @user.id
erb :'users/show', locals: {user: @user, destination: @destination}
end | 3 | 0.085714 | 1 | 2 |
22cd0157d81831d765ae328e4cba253f314761a3 | index.js | index.js | module.exports = function cu(fn) {
'use strict';
var args = [].slice.call(arguments);
if ('function' !== typeof fn) throw new Error('auto-curry: Invalid parameter. First parameter should be a function.');
if ('function' === typeof fn && !fn.length) return fn;
if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1));
return function() {
var tempArgs = args.concat([].slice.call(arguments));
return cu.apply(this, tempArgs);
};
};
| module.exports = function cu(fn) {
'use strict'
var args = [].slice.call(arguments)
var typeOfFn = typeof fn
if ('function' !== typeOfFn) throw new Error('auto-curry: Invalid parameter. Expected function, received ' + typeOfFn)
if (fn.length <= 1) return fn
if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1))
return function() {
return cu.apply(this, args.concat([].slice.call(arguments)))
};
};
| Return unary fn as is and remove redundant checks | Return unary fn as is and remove redundant checks
| JavaScript | mit | zeusdeux/auto-curry | javascript | ## Code Before:
module.exports = function cu(fn) {
'use strict';
var args = [].slice.call(arguments);
if ('function' !== typeof fn) throw new Error('auto-curry: Invalid parameter. First parameter should be a function.');
if ('function' === typeof fn && !fn.length) return fn;
if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1));
return function() {
var tempArgs = args.concat([].slice.call(arguments));
return cu.apply(this, tempArgs);
};
};
## Instruction:
Return unary fn as is and remove redundant checks
## Code After:
module.exports = function cu(fn) {
'use strict'
var args = [].slice.call(arguments)
var typeOfFn = typeof fn
if ('function' !== typeOfFn) throw new Error('auto-curry: Invalid parameter. Expected function, received ' + typeOfFn)
if (fn.length <= 1) return fn
if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1))
return function() {
return cu.apply(this, args.concat([].slice.call(arguments)))
};
};
| module.exports = function cu(fn) {
- 'use strict';
? -
+ 'use strict'
- var args = [].slice.call(arguments);
+ var args = [].slice.call(arguments)
+ var typeOfFn = typeof fn
+
- if ('function' !== typeof fn) throw new Error('auto-curry: Invalid parameter. First parameter should be a function.');
? ^ ^^ ^^^^^^ ---- ------- ----- ^ -
+ if ('function' !== typeOfFn) throw new Error('auto-curry: Invalid parameter. Expected function, received ' + typeOfFn)
? ^ ^ ^^ + ^^^^^^^^^^^ +++++++++++
- if ('function' === typeof fn && !fn.length) return fn;
+ if (fn.length <= 1) return fn
- if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1));
? -
+ if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1))
+
return function() {
+ return cu.apply(this, args.concat([].slice.call(arguments)))
- var tempArgs = args.concat([].slice.call(arguments));
- return cu.apply(this, tempArgs);
};
}; | 16 | 1.333333 | 9 | 7 |
bd0cac01d50f18383908de2c0bea31aba97eb258 | filesize.gemspec | filesize.gemspec | Gem::Specification.new do |s|
s.name = "filesize"
s.version = "0.1.0"
s.licenses = ["MIT"]
s.authors = ["Dominik Honnef"]
s.description = "filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size."
s.summary = s.description
s.email = "dominikh@fork-bomb.org"
s.has_rdoc = "yard"
s.files = ["README.markdown", "lib/filesize.rb", "filesize.gemspec"]
s.homepage = "https://github.com/dominikh/filesize"
s.required_ruby_version = ">= 1.8.6"
s.add_development_dependency "rspec", "~> 3.0"
end
| Gem::Specification.new do |s|
s.name = "filesize"
s.version = "0.1.0"
s.licenses = ["MIT"]
s.authors = ["Dominik Honnef"]
s.description = "filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size."
s.summary = s.description
s.email = "dominikh@fork-bomb.org"
s.has_rdoc = "yard"
s.files = Dir.glob("{lib,spec}/**/*.rb") + ["LICENSE", "README.md"]
s.homepage = "https://github.com/dominikh/filesize"
s.required_ruby_version = ">= 1.8.6"
s.add_development_dependency "rspec", "~> 3.0"
end
| Use proper glob for files in gemspec | Use proper glob for files in gemspec
| Ruby | mit | dominikh/filesize | ruby | ## Code Before:
Gem::Specification.new do |s|
s.name = "filesize"
s.version = "0.1.0"
s.licenses = ["MIT"]
s.authors = ["Dominik Honnef"]
s.description = "filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size."
s.summary = s.description
s.email = "dominikh@fork-bomb.org"
s.has_rdoc = "yard"
s.files = ["README.markdown", "lib/filesize.rb", "filesize.gemspec"]
s.homepage = "https://github.com/dominikh/filesize"
s.required_ruby_version = ">= 1.8.6"
s.add_development_dependency "rspec", "~> 3.0"
end
## Instruction:
Use proper glob for files in gemspec
## Code After:
Gem::Specification.new do |s|
s.name = "filesize"
s.version = "0.1.0"
s.licenses = ["MIT"]
s.authors = ["Dominik Honnef"]
s.description = "filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size."
s.summary = s.description
s.email = "dominikh@fork-bomb.org"
s.has_rdoc = "yard"
s.files = Dir.glob("{lib,spec}/**/*.rb") + ["LICENSE", "README.md"]
s.homepage = "https://github.com/dominikh/filesize"
s.required_ruby_version = ">= 1.8.6"
s.add_development_dependency "rspec", "~> 3.0"
end
| Gem::Specification.new do |s|
s.name = "filesize"
s.version = "0.1.0"
s.licenses = ["MIT"]
s.authors = ["Dominik Honnef"]
s.description = "filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size."
s.summary = s.description
s.email = "dominikh@fork-bomb.org"
s.has_rdoc = "yard"
- s.files = ["README.markdown", "lib/filesize.rb", "filesize.gemspec"]
+ s.files = Dir.glob("{lib,spec}/**/*.rb") + ["LICENSE", "README.md"]
s.homepage = "https://github.com/dominikh/filesize"
s.required_ruby_version = ">= 1.8.6"
s.add_development_dependency "rspec", "~> 3.0"
end | 2 | 0.117647 | 1 | 1 |
3c8601897a43fbe68d1ebaffbe25ae3d7249669b | platform/target/network/wait_for_time.ex | platform/target/network/wait_for_time.ex | defmodule Farmbot.Target.Network.WaitForTime do
use Farmbot.Logger
nerves_time = case Nerves.Time.FileTime.time() do
{:error, _} -> NaiveDateTime.utc_now()
ndt -> ndt
end
@nerves_time nerves_time
def start_link(_, _) do
:ok = wait_for_time()
Logger.success 3, "Time seems to be set. Moving on."
IO.puts "Check: #{inspect(@nerves_time)}"
IO.puts "Current: #{inspect(NaiveDateTime.utc_now())}"
:ignore
end
# • -1 -- the first date comes before the second one
# • 0 -- both arguments represent the same date when coalesced to the same
# timezone.
# • 1 -- the first date comes after the second one
defp wait_for_time do
case Timex.compare(NaiveDateTime.utc_now(), get_file_time()) do
1 -> :ok
_ ->
Process.sleep(1000)
# Logger.warn "Waiting for time."
wait_for_time()
end
end
def get_file_time, do: @nerves_time
end
| defmodule Farmbot.Target.Network.WaitForTime do
use Farmbot.Logger
nerves_time = case Nerves.Time.FileTime.time() do
{:error, _} -> NaiveDateTime.utc_now()
ndt -> ndt
end
@nerves_time nerves_time
def start_link(_, _) do
:ok = wait_for_time()
Logger.success 3, "Time seems to be set. Moving on."
IO.puts "Check: #{inspect(@nerves_time)}"
IO.puts "Current: #{inspect(NaiveDateTime.utc_now())}"
:ignore
end
# • -1 -- the first date comes before the second one
# • 0 -- both arguments represent the same date when coalesced to the same
# timezone.
# • 1 -- the first date comes after the second one
defp wait_for_time do
case Nerves.Time.synchronized?() && Timex.compare(NaiveDateTime.utc_now(), get_file_time()) do
1 -> :ok
_ ->
Nerves.Time.restart_ntpd()
Process.sleep(1000)
# Logger.warn "Waiting for time."
wait_for_time()
end
end
def get_file_time, do: @nerves_time
end
| Fix race condition in getting time. | Fix race condition in getting time.
| Elixir | mit | FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os | elixir | ## Code Before:
defmodule Farmbot.Target.Network.WaitForTime do
use Farmbot.Logger
nerves_time = case Nerves.Time.FileTime.time() do
{:error, _} -> NaiveDateTime.utc_now()
ndt -> ndt
end
@nerves_time nerves_time
def start_link(_, _) do
:ok = wait_for_time()
Logger.success 3, "Time seems to be set. Moving on."
IO.puts "Check: #{inspect(@nerves_time)}"
IO.puts "Current: #{inspect(NaiveDateTime.utc_now())}"
:ignore
end
# • -1 -- the first date comes before the second one
# • 0 -- both arguments represent the same date when coalesced to the same
# timezone.
# • 1 -- the first date comes after the second one
defp wait_for_time do
case Timex.compare(NaiveDateTime.utc_now(), get_file_time()) do
1 -> :ok
_ ->
Process.sleep(1000)
# Logger.warn "Waiting for time."
wait_for_time()
end
end
def get_file_time, do: @nerves_time
end
## Instruction:
Fix race condition in getting time.
## Code After:
defmodule Farmbot.Target.Network.WaitForTime do
use Farmbot.Logger
nerves_time = case Nerves.Time.FileTime.time() do
{:error, _} -> NaiveDateTime.utc_now()
ndt -> ndt
end
@nerves_time nerves_time
def start_link(_, _) do
:ok = wait_for_time()
Logger.success 3, "Time seems to be set. Moving on."
IO.puts "Check: #{inspect(@nerves_time)}"
IO.puts "Current: #{inspect(NaiveDateTime.utc_now())}"
:ignore
end
# • -1 -- the first date comes before the second one
# • 0 -- both arguments represent the same date when coalesced to the same
# timezone.
# • 1 -- the first date comes after the second one
defp wait_for_time do
case Nerves.Time.synchronized?() && Timex.compare(NaiveDateTime.utc_now(), get_file_time()) do
1 -> :ok
_ ->
Nerves.Time.restart_ntpd()
Process.sleep(1000)
# Logger.warn "Waiting for time."
wait_for_time()
end
end
def get_file_time, do: @nerves_time
end
| defmodule Farmbot.Target.Network.WaitForTime do
use Farmbot.Logger
nerves_time = case Nerves.Time.FileTime.time() do
{:error, _} -> NaiveDateTime.utc_now()
ndt -> ndt
end
@nerves_time nerves_time
def start_link(_, _) do
:ok = wait_for_time()
Logger.success 3, "Time seems to be set. Moving on."
IO.puts "Check: #{inspect(@nerves_time)}"
IO.puts "Current: #{inspect(NaiveDateTime.utc_now())}"
:ignore
end
# • -1 -- the first date comes before the second one
# • 0 -- both arguments represent the same date when coalesced to the same
# timezone.
# • 1 -- the first date comes after the second one
defp wait_for_time do
- case Timex.compare(NaiveDateTime.utc_now(), get_file_time()) do
+ case Nerves.Time.synchronized?() && Timex.compare(NaiveDateTime.utc_now(), get_file_time()) do
? +++++++++++++++++++++++++++++++
1 -> :ok
_ ->
+ Nerves.Time.restart_ntpd()
Process.sleep(1000)
# Logger.warn "Waiting for time."
wait_for_time()
end
end
def get_file_time, do: @nerves_time
end | 3 | 0.090909 | 2 | 1 |
7c79a82e84a5a39c3f0f1813257899198b725885 | JustRunnerChat/JustRunnerChat/ChatScripts/main.js | JustRunnerChat/JustRunnerChat/ChatScripts/main.js | /// <reference path="controller.js" />
/// <reference path="dataAccess.js" />
(function () {
var serviceRoot = "http://localhost:16502/api/";
var persister = Chat.persisters.get(serviceRoot);
var controller = Chat.controller.get(persister);
controller.loadUI("#body");
}()); | /// <reference path="controller.js" />
/// <reference path="dataAccess.js" />
(function () {
var serviceRoot = "http://roadrunnerchat.apphb.com/api/";
var persister = Chat.persisters.get(serviceRoot);
var controller = Chat.controller.get(persister);
controller.loadUI("#body");
}()); | Change service root for apphourbor. | Change service root for apphourbor.
| JavaScript | mit | VelizarIT/WebServices-TheRoadRunner,Cheeesus/WebServices-TheRoadRunner,Cheeesus/WebServices-TheRoadRunner,VelizarIT/WebServices-TheRoadRunner | javascript | ## Code Before:
/// <reference path="controller.js" />
/// <reference path="dataAccess.js" />
(function () {
var serviceRoot = "http://localhost:16502/api/";
var persister = Chat.persisters.get(serviceRoot);
var controller = Chat.controller.get(persister);
controller.loadUI("#body");
}());
## Instruction:
Change service root for apphourbor.
## Code After:
/// <reference path="controller.js" />
/// <reference path="dataAccess.js" />
(function () {
var serviceRoot = "http://roadrunnerchat.apphb.com/api/";
var persister = Chat.persisters.get(serviceRoot);
var controller = Chat.controller.get(persister);
controller.loadUI("#body");
}()); | /// <reference path="controller.js" />
/// <reference path="dataAccess.js" />
(function () {
- var serviceRoot = "http://localhost:16502/api/";
+ var serviceRoot = "http://roadrunnerchat.apphb.com/api/";
var persister = Chat.persisters.get(serviceRoot);
var controller = Chat.controller.get(persister);
controller.loadUI("#body");
}()); | 2 | 0.181818 | 1 | 1 |
f652bf726b2fde487912f21f821a7d3b3a5d8be7 | forge.go | forge.go | package forge
import (
"github.com/sclevine/forge/engine"
)
type Loader interface {
Loading(message string, progress <-chan engine.Progress) error
}
type Colorizer func(string, ...interface{}) string
type AppConfig struct {
Name string `yaml:"name"`
Buildpack string `yaml:"buildpack,omitempty"`
Buildpacks []string `yaml:"buildpacks,omitempty"`
Command string `yaml:"command,omitempty"`
DiskQuota string `yaml:"disk_quota,omitempty"`
Memory string `yaml:"memory,omitempty"`
StagingEnv map[string]string `yaml:"staging_env,omitempty"`
RunningEnv map[string]string `yaml:"running_env,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Services Services `yaml:"services,omitempty"`
}
type NetworkConfig struct {
ContainerID string
ContainerPort string
HostIP string
HostPort string
}
//go:generate mockgen -package mocks -destination mocks/container.go github.com/sclevine/forge/engine Container
//go:generate mockgen -package mocks -destination mocks/image.go github.com/sclevine/forge/engine Image
//go:generate mockgen -package mocks -destination mocks/engine.go github.com/sclevine/forge Engine
type Engine interface {
NewContainer(config *engine.ContainerConfig) (engine.Container, error)
}
| package forge
import (
"github.com/sclevine/forge/engine"
)
type Loader interface {
Loading(message string, progress <-chan engine.Progress) error
}
type Colorizer func(string, ...interface{}) string
type AppConfig struct {
Name string `yaml:"name"`
Buildpack string `yaml:"buildpack,omitempty"`
Buildpacks []string `yaml:"buildpacks,omitempty"`
Command string `yaml:"command,omitempty"`
DiskQuota string `yaml:"disk_quota,omitempty"`
Memory string `yaml:"memory,omitempty"`
StagingEnv map[string]string `yaml:"staging_env,omitempty"`
RunningEnv map[string]string `yaml:"running_env,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Services Services `yaml:"services,omitempty"`
}
type NetworkConfig struct {
ContainerID string
ContainerPort string
HostIP string
HostPort string
}
//go:generate mockgen -package mocks -destination mocks/container.go github.com/sclevine/forge/engine Container
//go:generate mockgen -package mocks -destination mocks/engine.go github.com/sclevine/forge Engine
type Engine interface {
NewContainer(config *engine.ContainerConfig) (engine.Container, error)
}
| Remove unused image mock generator | Remove unused image mock generator
| Go | apache-2.0 | sclevine/forge,sclevine/forge | go | ## Code Before:
package forge
import (
"github.com/sclevine/forge/engine"
)
type Loader interface {
Loading(message string, progress <-chan engine.Progress) error
}
type Colorizer func(string, ...interface{}) string
type AppConfig struct {
Name string `yaml:"name"`
Buildpack string `yaml:"buildpack,omitempty"`
Buildpacks []string `yaml:"buildpacks,omitempty"`
Command string `yaml:"command,omitempty"`
DiskQuota string `yaml:"disk_quota,omitempty"`
Memory string `yaml:"memory,omitempty"`
StagingEnv map[string]string `yaml:"staging_env,omitempty"`
RunningEnv map[string]string `yaml:"running_env,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Services Services `yaml:"services,omitempty"`
}
type NetworkConfig struct {
ContainerID string
ContainerPort string
HostIP string
HostPort string
}
//go:generate mockgen -package mocks -destination mocks/container.go github.com/sclevine/forge/engine Container
//go:generate mockgen -package mocks -destination mocks/image.go github.com/sclevine/forge/engine Image
//go:generate mockgen -package mocks -destination mocks/engine.go github.com/sclevine/forge Engine
type Engine interface {
NewContainer(config *engine.ContainerConfig) (engine.Container, error)
}
## Instruction:
Remove unused image mock generator
## Code After:
package forge
import (
"github.com/sclevine/forge/engine"
)
type Loader interface {
Loading(message string, progress <-chan engine.Progress) error
}
type Colorizer func(string, ...interface{}) string
type AppConfig struct {
Name string `yaml:"name"`
Buildpack string `yaml:"buildpack,omitempty"`
Buildpacks []string `yaml:"buildpacks,omitempty"`
Command string `yaml:"command,omitempty"`
DiskQuota string `yaml:"disk_quota,omitempty"`
Memory string `yaml:"memory,omitempty"`
StagingEnv map[string]string `yaml:"staging_env,omitempty"`
RunningEnv map[string]string `yaml:"running_env,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Services Services `yaml:"services,omitempty"`
}
type NetworkConfig struct {
ContainerID string
ContainerPort string
HostIP string
HostPort string
}
//go:generate mockgen -package mocks -destination mocks/container.go github.com/sclevine/forge/engine Container
//go:generate mockgen -package mocks -destination mocks/engine.go github.com/sclevine/forge Engine
type Engine interface {
NewContainer(config *engine.ContainerConfig) (engine.Container, error)
}
| package forge
import (
"github.com/sclevine/forge/engine"
)
type Loader interface {
Loading(message string, progress <-chan engine.Progress) error
}
type Colorizer func(string, ...interface{}) string
type AppConfig struct {
Name string `yaml:"name"`
Buildpack string `yaml:"buildpack,omitempty"`
Buildpacks []string `yaml:"buildpacks,omitempty"`
Command string `yaml:"command,omitempty"`
DiskQuota string `yaml:"disk_quota,omitempty"`
Memory string `yaml:"memory,omitempty"`
StagingEnv map[string]string `yaml:"staging_env,omitempty"`
RunningEnv map[string]string `yaml:"running_env,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Services Services `yaml:"services,omitempty"`
}
type NetworkConfig struct {
ContainerID string
ContainerPort string
HostIP string
HostPort string
}
//go:generate mockgen -package mocks -destination mocks/container.go github.com/sclevine/forge/engine Container
- //go:generate mockgen -package mocks -destination mocks/image.go github.com/sclevine/forge/engine Image
//go:generate mockgen -package mocks -destination mocks/engine.go github.com/sclevine/forge Engine
type Engine interface {
NewContainer(config *engine.ContainerConfig) (engine.Container, error)
} | 1 | 0.026316 | 0 | 1 |
82351910cad0e4f4c4d0135bae2d1321249b12de | .travis.yml | .travis.yml | language: java
before_install:
- chmod +x gradlew
after_success:
- ./gradlew codeCoverageReport coveralls
| language: java
before_install:
- chmod +x gradlew
after_success:
- if [ -e ./gradlew ]; then ./gradlew codeCoverageReport;else gradle codeCoverageReport;fi
- bash <(curl -s https://codecov.io/bash)
| Switch back to codecov with sub-projects jacoco report | Switch back to codecov with sub-projects jacoco report
| YAML | mit | manoharprabhu/CodeCompiler,manoharprabhu/CodeCompiler,manoharprabhu/CodeCompiler,manoharprabhu/CodeCompiler | yaml | ## Code Before:
language: java
before_install:
- chmod +x gradlew
after_success:
- ./gradlew codeCoverageReport coveralls
## Instruction:
Switch back to codecov with sub-projects jacoco report
## Code After:
language: java
before_install:
- chmod +x gradlew
after_success:
- if [ -e ./gradlew ]; then ./gradlew codeCoverageReport;else gradle codeCoverageReport;fi
- bash <(curl -s https://codecov.io/bash)
| language: java
before_install:
- chmod +x gradlew
after_success:
- - ./gradlew codeCoverageReport coveralls
+ - if [ -e ./gradlew ]; then ./gradlew codeCoverageReport;else gradle codeCoverageReport;fi
+ - bash <(curl -s https://codecov.io/bash)
| 3 | 0.5 | 2 | 1 |
3f4b4c43c5a9bc0afdea51075f7aac551adb5438 | app/controllers/index.rb | app/controllers/index.rb | get '/' do
redirect '/homepage'
end
get '/homepage' do
erb :'homepage/index'
end
| get '/' do
erb :'homepage/index'
end
get '/dashboard' do
erb :'/dashboard'
end
| Change homepage route to '/' and create get dashboard route | Change homepage route to '/' and create get dashboard route
| Ruby | mit | alexpadraic/OutsidePools,alexpadraic/OutsidePools,alexpadraic/OutsidePools | ruby | ## Code Before:
get '/' do
redirect '/homepage'
end
get '/homepage' do
erb :'homepage/index'
end
## Instruction:
Change homepage route to '/' and create get dashboard route
## Code After:
get '/' do
erb :'homepage/index'
end
get '/dashboard' do
erb :'/dashboard'
end
| get '/' do
- redirect '/homepage'
+ erb :'homepage/index'
end
- get '/homepage' do
- erb :'homepage/index'
+ get '/dashboard' do
+ erb :'/dashboard'
end | 6 | 0.857143 | 3 | 3 |
4fb563b2c5a1cba356e6562722e0d05ef8d87a55 | src/index.js | src/index.js | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './static/bootstrap/css/bootstrap.css';
import App from './Main/App';
import ErrorBoundary from './Main/ErrorBoundary';
import { unregister } from './registerServiceWorker';
function isError(x) {
return x instanceof Error;
}
function toMessage(x) {
return isError(x) ? x.message : x;
}
function toStack(x) {
return isError(x) ? x.stack : undefined;
}
window.addEventListener('unhandledrejection', event => {
const message = toMessage(event);
console.error(`Unhandled rejection: ${message}`);
Raven && Raven.captureException(event.reason || new Error('Unhandled promise rejection'), { // eslint-disable-line no-undef
extra: {
reason: message,
originalEvent: event,
stack: toStack(event),
},
});
});
render(
<ErrorBoundary>
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="report/:reportCode" />
<Route path="report/:reportCode/:fightId" />
<Route path="report/:reportCode/:fightId/:playerName" />
<Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
</Route>
</Router>
</ErrorBoundary>,
document.getElementById('app-mount')
);
unregister();
| import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './static/bootstrap/css/bootstrap.css';
import App from './Main/App';
import ErrorBoundary from './Main/ErrorBoundary';
import { unregister } from './registerServiceWorker';
// Source: https://docs.sentry.io/clients/javascript/usage/#promises
window.onunhandledrejection = function(evt) {
Raven && Raven.captureException(evt.reason); // eslint-disable-line no-undef
};
render(
<ErrorBoundary>
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="report/:reportCode" />
<Route path="report/:reportCode/:fightId" />
<Route path="report/:reportCode/:fightId/:playerName" />
<Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
</Route>
</Router>
</ErrorBoundary>,
document.getElementById('app-mount')
);
unregister();
| Undo custom `unhandledrejection` and just use Raven's suggestions (too much spam of events that provide no information to resolve them) | Undo custom `unhandledrejection` and just use Raven's suggestions (too much spam of events that provide no information to resolve them)
| JavaScript | agpl-3.0 | enragednuke/WoWAnalyzer,hasseboulen/WoWAnalyzer,fyruna/WoWAnalyzer,enragednuke/WoWAnalyzer,hasseboulen/WoWAnalyzer,anom0ly/WoWAnalyzer,ronaldpereira/WoWAnalyzer,fyruna/WoWAnalyzer,FaideWW/WoWAnalyzer,enragednuke/WoWAnalyzer,Juko8/WoWAnalyzer,FaideWW/WoWAnalyzer,yajinni/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,Juko8/WoWAnalyzer,sMteX/WoWAnalyzer,anom0ly/WoWAnalyzer,sMteX/WoWAnalyzer,fyruna/WoWAnalyzer,anom0ly/WoWAnalyzer,FaideWW/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,yajinni/WoWAnalyzer,ronaldpereira/WoWAnalyzer,ronaldpereira/WoWAnalyzer,hasseboulen/WoWAnalyzer,yajinni/WoWAnalyzer,anom0ly/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,Juko8/WoWAnalyzer | javascript | ## Code Before:
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './static/bootstrap/css/bootstrap.css';
import App from './Main/App';
import ErrorBoundary from './Main/ErrorBoundary';
import { unregister } from './registerServiceWorker';
function isError(x) {
return x instanceof Error;
}
function toMessage(x) {
return isError(x) ? x.message : x;
}
function toStack(x) {
return isError(x) ? x.stack : undefined;
}
window.addEventListener('unhandledrejection', event => {
const message = toMessage(event);
console.error(`Unhandled rejection: ${message}`);
Raven && Raven.captureException(event.reason || new Error('Unhandled promise rejection'), { // eslint-disable-line no-undef
extra: {
reason: message,
originalEvent: event,
stack: toStack(event),
},
});
});
render(
<ErrorBoundary>
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="report/:reportCode" />
<Route path="report/:reportCode/:fightId" />
<Route path="report/:reportCode/:fightId/:playerName" />
<Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
</Route>
</Router>
</ErrorBoundary>,
document.getElementById('app-mount')
);
unregister();
## Instruction:
Undo custom `unhandledrejection` and just use Raven's suggestions (too much spam of events that provide no information to resolve them)
## Code After:
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './static/bootstrap/css/bootstrap.css';
import App from './Main/App';
import ErrorBoundary from './Main/ErrorBoundary';
import { unregister } from './registerServiceWorker';
// Source: https://docs.sentry.io/clients/javascript/usage/#promises
window.onunhandledrejection = function(evt) {
Raven && Raven.captureException(evt.reason); // eslint-disable-line no-undef
};
render(
<ErrorBoundary>
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="report/:reportCode" />
<Route path="report/:reportCode/:fightId" />
<Route path="report/:reportCode/:fightId/:playerName" />
<Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
</Route>
</Router>
</ErrorBoundary>,
document.getElementById('app-mount')
);
unregister();
| import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './static/bootstrap/css/bootstrap.css';
import App from './Main/App';
import ErrorBoundary from './Main/ErrorBoundary';
import { unregister } from './registerServiceWorker';
+ // Source: https://docs.sentry.io/clients/javascript/usage/#promises
+ window.onunhandledrejection = function(evt) {
- function isError(x) {
- return x instanceof Error;
- }
- function toMessage(x) {
- return isError(x) ? x.message : x;
- }
- function toStack(x) {
- return isError(x) ? x.stack : undefined;
- }
-
- window.addEventListener('unhandledrejection', event => {
- const message = toMessage(event);
- console.error(`Unhandled rejection: ${message}`);
- Raven && Raven.captureException(event.reason || new Error('Unhandled promise rejection'), { // eslint-disable-line no-undef
? -- ------------------------------------------- ^^^
+ Raven && Raven.captureException(evt.reason); // eslint-disable-line no-undef
? ^
- extra: {
- reason: message,
- originalEvent: event,
- stack: toStack(event),
- },
- });
- });
? -
+ };
render(
<ErrorBoundary>
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="report/:reportCode" />
<Route path="report/:reportCode/:fightId" />
<Route path="report/:reportCode/:fightId/:playerName" />
<Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
</Route>
</Router>
</ErrorBoundary>,
document.getElementById('app-mount')
);
unregister(); | 25 | 0.531915 | 4 | 21 |
164224914262e622b1d19cf39b25edddf0f17f77 | README.md | README.md | Setup scripts of Intel QSV encoding for CentOS 7.1
| Setup scripts of Intel QSV encoding for CentOS 7.1
## Requirements
* QSV supported Intel CPU
- Haswell Core i Series
- Broadwell Core i Series
- Xeon E3 v3 with iGPU
- Xeon E3 v4 with iGPU
* [Intel Media Server Studio 2015 R6 Community Edition](https://software.intel.com/en-us/intel-media-server-studio)
* CentOS 7.1 x64
## Install QSV libraries and custom kernel
1. Download Intel Media Server Studio.
2. Move it into /tmp directory.
3. Copy install-MSS.sh into /tmp directory.
4. Run `./install-MSS.sh`.
5. `reboot`
## License
MIT
| Add requirements and install step | Add requirements and install step
| Markdown | mit | mzyy94/QSV-on-Linux | markdown | ## Code Before:
Setup scripts of Intel QSV encoding for CentOS 7.1
## Instruction:
Add requirements and install step
## Code After:
Setup scripts of Intel QSV encoding for CentOS 7.1
## Requirements
* QSV supported Intel CPU
- Haswell Core i Series
- Broadwell Core i Series
- Xeon E3 v3 with iGPU
- Xeon E3 v4 with iGPU
* [Intel Media Server Studio 2015 R6 Community Edition](https://software.intel.com/en-us/intel-media-server-studio)
* CentOS 7.1 x64
## Install QSV libraries and custom kernel
1. Download Intel Media Server Studio.
2. Move it into /tmp directory.
3. Copy install-MSS.sh into /tmp directory.
4. Run `./install-MSS.sh`.
5. `reboot`
## License
MIT
| Setup scripts of Intel QSV encoding for CentOS 7.1
+
+ ## Requirements
+ * QSV supported Intel CPU
+ - Haswell Core i Series
+ - Broadwell Core i Series
+ - Xeon E3 v3 with iGPU
+ - Xeon E3 v4 with iGPU
+ * [Intel Media Server Studio 2015 R6 Community Edition](https://software.intel.com/en-us/intel-media-server-studio)
+ * CentOS 7.1 x64
+
+ ## Install QSV libraries and custom kernel
+
+ 1. Download Intel Media Server Studio.
+ 2. Move it into /tmp directory.
+ 3. Copy install-MSS.sh into /tmp directory.
+ 4. Run `./install-MSS.sh`.
+ 5. `reboot`
+
+
+ ## License
+ MIT | 21 | 21 | 21 | 0 |
152684545ce4ec3e366126f6976ab187f624c14c | app/Http/Controllers/LoginController.php | app/Http/Controllers/LoginController.php | <?php
namespace App\Http\Controllers;
use App\Http\Requests\LoginRequest;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $lockoutTime = 60 * 60 * 3;
protected $maxLoginAttempts = 5;
public function index()
{
// if the user is already logged in then redirect to index
if (\Auth::check())
return \Redirect::action('MangaController@index');
return view('login');
}
public function login(LoginRequest $request)
{
if (\Auth::check())
return \Redirect::action('MangaController@index');
if ($this->hasTooManyLoginAttempts($request)) {
$this->fireLockoutEvent($request);
return \Redirect::action('LoginController@index')
->withErrors(['lockout' => 'You have been locked out. Try again in 3 hours.']);
}
$username = \Input::get('username');
$password = \Input::get('password');
if (\Auth::attempt(['name' => $username, 'password' => $password]) == false) {
$this->incrementLoginAttempts($request);
return \Redirect::action('LoginController@index')
->withErrors(['login' => 'You have given invalid credentials. Please try again.']);
}
$this->clearLoginAttempts($request);
return \Redirect::intended();
}
public function logout() {
\Auth::logout();
return \Redirect::action('LoginController@login');
}
}
| <?php
namespace App\Http\Controllers;
use App\Http\Requests\LoginRequest;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $lockoutTime = 60 * 60 * 3;
protected $maxLoginAttempts = 5;
public function index()
{
// if the user is already logged in then redirect to index
if (\Auth::check())
return \Redirect::action('HomeController@index');
return view('login');
}
public function login(LoginRequest $request)
{
if (\Auth::check())
return \Redirect::action('HomeController@index');
if ($this->hasTooManyLoginAttempts($request)) {
$this->fireLockoutEvent($request);
return \Redirect::action('LoginController@index')
->withErrors(['lockout' => 'You have been locked out. Try again in 3 hours.']);
}
$username = \Input::get('username');
$password = \Input::get('password');
if (\Auth::attempt(['name' => $username, 'password' => $password]) == false) {
$this->incrementLoginAttempts($request);
return \Redirect::action('LoginController@index')
->withErrors(['login' => 'You have given invalid credentials. Please try again.']);
}
$this->clearLoginAttempts($request);
return \Redirect::intended();
}
public function logout() {
\Auth::logout();
return \Redirect::action('LoginController@login');
}
}
| Fix reference to old controller name | Fix reference to old controller name
| PHP | bsd-3-clause | pierobot/mangapie,pierobot/mangapie,pierobot/mangapie | php | ## Code Before:
<?php
namespace App\Http\Controllers;
use App\Http\Requests\LoginRequest;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $lockoutTime = 60 * 60 * 3;
protected $maxLoginAttempts = 5;
public function index()
{
// if the user is already logged in then redirect to index
if (\Auth::check())
return \Redirect::action('MangaController@index');
return view('login');
}
public function login(LoginRequest $request)
{
if (\Auth::check())
return \Redirect::action('MangaController@index');
if ($this->hasTooManyLoginAttempts($request)) {
$this->fireLockoutEvent($request);
return \Redirect::action('LoginController@index')
->withErrors(['lockout' => 'You have been locked out. Try again in 3 hours.']);
}
$username = \Input::get('username');
$password = \Input::get('password');
if (\Auth::attempt(['name' => $username, 'password' => $password]) == false) {
$this->incrementLoginAttempts($request);
return \Redirect::action('LoginController@index')
->withErrors(['login' => 'You have given invalid credentials. Please try again.']);
}
$this->clearLoginAttempts($request);
return \Redirect::intended();
}
public function logout() {
\Auth::logout();
return \Redirect::action('LoginController@login');
}
}
## Instruction:
Fix reference to old controller name
## Code After:
<?php
namespace App\Http\Controllers;
use App\Http\Requests\LoginRequest;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $lockoutTime = 60 * 60 * 3;
protected $maxLoginAttempts = 5;
public function index()
{
// if the user is already logged in then redirect to index
if (\Auth::check())
return \Redirect::action('HomeController@index');
return view('login');
}
public function login(LoginRequest $request)
{
if (\Auth::check())
return \Redirect::action('HomeController@index');
if ($this->hasTooManyLoginAttempts($request)) {
$this->fireLockoutEvent($request);
return \Redirect::action('LoginController@index')
->withErrors(['lockout' => 'You have been locked out. Try again in 3 hours.']);
}
$username = \Input::get('username');
$password = \Input::get('password');
if (\Auth::attempt(['name' => $username, 'password' => $password]) == false) {
$this->incrementLoginAttempts($request);
return \Redirect::action('LoginController@index')
->withErrors(['login' => 'You have given invalid credentials. Please try again.']);
}
$this->clearLoginAttempts($request);
return \Redirect::intended();
}
public function logout() {
\Auth::logout();
return \Redirect::action('LoginController@login');
}
}
| <?php
namespace App\Http\Controllers;
use App\Http\Requests\LoginRequest;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $lockoutTime = 60 * 60 * 3;
protected $maxLoginAttempts = 5;
public function index()
{
// if the user is already logged in then redirect to index
if (\Auth::check())
- return \Redirect::action('MangaController@index');
? ^^^^^
+ return \Redirect::action('HomeController@index');
? ^^^^
return view('login');
}
public function login(LoginRequest $request)
{
if (\Auth::check())
- return \Redirect::action('MangaController@index');
? ^^^^^
+ return \Redirect::action('HomeController@index');
? ^^^^
if ($this->hasTooManyLoginAttempts($request)) {
$this->fireLockoutEvent($request);
return \Redirect::action('LoginController@index')
->withErrors(['lockout' => 'You have been locked out. Try again in 3 hours.']);
}
$username = \Input::get('username');
$password = \Input::get('password');
if (\Auth::attempt(['name' => $username, 'password' => $password]) == false) {
$this->incrementLoginAttempts($request);
return \Redirect::action('LoginController@index')
->withErrors(['login' => 'You have given invalid credentials. Please try again.']);
}
$this->clearLoginAttempts($request);
return \Redirect::intended();
}
public function logout() {
\Auth::logout();
return \Redirect::action('LoginController@login');
}
} | 4 | 0.066667 | 2 | 2 |
8512d0ec2b0e5a49eb0da84951fc31edb28e37bd | NaturalDocs/NaturalDocs.bat | NaturalDocs/NaturalDocs.bat | @echo off
set NaturalDocsParams=
rem Shift and loop so we can get more than nine parameters.
rem This is especially important if we have spaces in file names.
:MORE
if "%1"=="" goto NOMORE
set NaturalDocsParams=%NaturalDocsParams% %1
shift
goto MORE
:NOMORE
perl NaturalDocs %NaturalDocsParams%
set NaturalDocsParams= | @perl %~dp0NaturalDocs %* | Make the Wndows batch callable from any directory | Make the Wndows batch callable from any directory
The perl script NaturalDocs shuld be referred to with the same path
as the calling batch, otherwise the script would have to be in the
search path. The %~dp0 environment variable points to the directory
which the script is being executed in.
All batch arguments can bepassed to a nested batch by %*.
| Batchfile | agpl-3.0 | prantlf/NaturalDocs,prantlf/NaturalDocs,prantlf/NaturalDocs | batchfile | ## Code Before:
@echo off
set NaturalDocsParams=
rem Shift and loop so we can get more than nine parameters.
rem This is especially important if we have spaces in file names.
:MORE
if "%1"=="" goto NOMORE
set NaturalDocsParams=%NaturalDocsParams% %1
shift
goto MORE
:NOMORE
perl NaturalDocs %NaturalDocsParams%
set NaturalDocsParams=
## Instruction:
Make the Wndows batch callable from any directory
The perl script NaturalDocs shuld be referred to with the same path
as the calling batch, otherwise the script would have to be in the
search path. The %~dp0 environment variable points to the directory
which the script is being executed in.
All batch arguments can bepassed to a nested batch by %*.
## Code After:
@perl %~dp0NaturalDocs %* | + @perl %~dp0NaturalDocs %*
- @echo off
-
- set NaturalDocsParams=
-
- rem Shift and loop so we can get more than nine parameters.
- rem This is especially important if we have spaces in file names.
-
- :MORE
- if "%1"=="" goto NOMORE
- set NaturalDocsParams=%NaturalDocsParams% %1
- shift
- goto MORE
- :NOMORE
-
- perl NaturalDocs %NaturalDocsParams%
-
- set NaturalDocsParams= | 18 | 1.058824 | 1 | 17 |
bc20949f8e5461d6ffa901d24677acb1bae922dd | mangopaysdk/types/payinexecutiondetailsdirect.py | mangopaysdk/types/payinexecutiondetailsdirect.py | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType { DEFAULT, FORCE }
self.SecureMode = None
| from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType { DEFAULT, FORCE }
self.SecureMode = None
self.StatementDescriptor = None
| Add StatementDescriptor for card direct payins | Add StatementDescriptor for card direct payins | Python | mit | chocopoche/mangopay2-python-sdk,Mangopay/mangopay2-python-sdk | python | ## Code Before:
from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType { DEFAULT, FORCE }
self.SecureMode = None
## Instruction:
Add StatementDescriptor for card direct payins
## Code After:
from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType { DEFAULT, FORCE }
self.SecureMode = None
self.StatementDescriptor = None
| from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType { DEFAULT, FORCE }
self.SecureMode = None
+ self.StatementDescriptor = None | 1 | 0.083333 | 1 | 0 |
d19f6aada25880451086508c98391177a94addfa | task/build_metadata.rake | task/build_metadata.rake | file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", __FILE__] do |t|
sh "git update-index --assume-unchanged #{t.name}"
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
:git_sha => `git rev-parse --short HEAD`.strip,
:release => Rake::Task["release"].instance_variable_get(:@already_invoked),
}
File.open(t.name, "w") {|f| f << <<-RUBY }
# frozen_string_literal: true
module Bundler
BUILD_METADATA = {
#{build_metadata.sort.map {|k, v| " #{k.inspect} => #{BUNDLER_SPEC.send(:ruby_code, v)}," }.join("\n")}
}.freeze
end
RUBY
end
| file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", ".git/logs/HEAD", __FILE__] do |t|
sh "git update-index --assume-unchanged #{t.name}"
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
:git_sha => `git rev-parse --short HEAD`.strip,
:release => Rake::Task["release"].instance_variable_get(:@already_invoked),
}
File.open(t.name, "w") {|f| f << <<-RUBY }
# frozen_string_literal: true
module Bundler
BUILD_METADATA = {
#{build_metadata.sort.map {|k, v| " #{k.inspect} => #{BUNDLER_SPEC.send(:ruby_code, v)}," }.join("\n")}
}.freeze
end
RUBY
end
| Rebuild build metadata whenever the HEAD changes | Rebuild build metadata whenever the HEAD changes
| Ruby | mit | mvz/bundler,dilumnavanjana/bundler,dilumnavanjana/bundler,mvz/bundler,bundler/bundler,bundler/bundler | ruby | ## Code Before:
file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", __FILE__] do |t|
sh "git update-index --assume-unchanged #{t.name}"
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
:git_sha => `git rev-parse --short HEAD`.strip,
:release => Rake::Task["release"].instance_variable_get(:@already_invoked),
}
File.open(t.name, "w") {|f| f << <<-RUBY }
# frozen_string_literal: true
module Bundler
BUILD_METADATA = {
#{build_metadata.sort.map {|k, v| " #{k.inspect} => #{BUNDLER_SPEC.send(:ruby_code, v)}," }.join("\n")}
}.freeze
end
RUBY
end
## Instruction:
Rebuild build metadata whenever the HEAD changes
## Code After:
file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", ".git/logs/HEAD", __FILE__] do |t|
sh "git update-index --assume-unchanged #{t.name}"
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
:git_sha => `git rev-parse --short HEAD`.strip,
:release => Rake::Task["release"].instance_variable_get(:@already_invoked),
}
File.open(t.name, "w") {|f| f << <<-RUBY }
# frozen_string_literal: true
module Bundler
BUILD_METADATA = {
#{build_metadata.sort.map {|k, v| " #{k.inspect} => #{BUNDLER_SPEC.send(:ruby_code, v)}," }.join("\n")}
}.freeze
end
RUBY
end
| - file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", __FILE__] do |t|
+ file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", ".git/logs/HEAD", __FILE__] do |t|
? ++++++++++++++++++
sh "git update-index --assume-unchanged #{t.name}"
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
:git_sha => `git rev-parse --short HEAD`.strip,
:release => Rake::Task["release"].instance_variable_get(:@already_invoked),
}
File.open(t.name, "w") {|f| f << <<-RUBY }
# frozen_string_literal: true
module Bundler
BUILD_METADATA = {
#{build_metadata.sort.map {|k, v| " #{k.inspect} => #{BUNDLER_SPEC.send(:ruby_code, v)}," }.join("\n")}
}.freeze
end
RUBY
end | 2 | 0.105263 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.