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
a2591fa48bc5756e13fc3855313ccf9b2086c162
install_ruby2-1-2.sh
install_ruby2-1-2.sh
apt-get update apt-get install -y wget cd /tmp rm -rf ruby-installer mkdir ruby-installer cd ruby-installer echo "fetch latest ruby from ftp.ruby-lang.org" wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -xzvf ruby-2.1.2.tar.gz echo "installing ruby 2.1.2" cd ruby-2.1.2/ && ./configure && make && make install echo "installed ruby interpreter, version:" echo `ruby -v` gem install bundler --no-ri --no-rdoc echo "installed bundler" rm -rf /tmp/ruby-installer
apt-get update apt-get install -y wget build-essential autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev cd /tmp rm -rf ruby-installer mkdir ruby-installer cd ruby-installer echo "fetch latest ruby from ftp.ruby-lang.org" wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -xzvf ruby-2.1.2.tar.gz echo "installing ruby 2.1.2" cd ruby-2.1.2/ && ./configure && make && make install echo "installed ruby interpreter, version:" echo `ruby -v` gem install bundler --no-ri --no-rdoc echo "installed bundler" apt-get clean rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Make the ruby file completely self contained
Make the ruby file completely self contained
Shell
mit
pivotal-cf-experimental/docker-technology-scripts
shell
## Code Before: apt-get update apt-get install -y wget cd /tmp rm -rf ruby-installer mkdir ruby-installer cd ruby-installer echo "fetch latest ruby from ftp.ruby-lang.org" wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -xzvf ruby-2.1.2.tar.gz echo "installing ruby 2.1.2" cd ruby-2.1.2/ && ./configure && make && make install echo "installed ruby interpreter, version:" echo `ruby -v` gem install bundler --no-ri --no-rdoc echo "installed bundler" rm -rf /tmp/ruby-installer ## Instruction: Make the ruby file completely self contained ## Code After: apt-get update apt-get install -y wget build-essential autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev cd /tmp rm -rf ruby-installer mkdir ruby-installer cd ruby-installer echo "fetch latest ruby from ftp.ruby-lang.org" wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -xzvf ruby-2.1.2.tar.gz echo "installing ruby 2.1.2" cd ruby-2.1.2/ && ./configure && make && make install echo "installed ruby interpreter, version:" echo `ruby -v` gem install bundler --no-ri --no-rdoc echo "installed bundler" apt-get clean rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
apt-get update - apt-get install -y wget + apt-get install -y wget build-essential autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev cd /tmp rm -rf ruby-installer mkdir ruby-installer cd ruby-installer echo "fetch latest ruby from ftp.ruby-lang.org" wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -xzvf ruby-2.1.2.tar.gz echo "installing ruby 2.1.2" cd ruby-2.1.2/ && ./configure && make && make install echo "installed ruby interpreter, version:" echo `ruby -v` gem install bundler --no-ri --no-rdoc echo "installed bundler" - rm -rf /tmp/ruby-installer + + apt-get clean + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
6
0.333333
4
2
e6bb4f1491e8a2420ff4965dc48ade144d87676e
app/views/merge_requests/_merge_request.html.haml
app/views/merge_requests/_merge_request.html.haml
%li.wll{ :class => mr_css_classes(merge_request) } .right .left - if merge_request.merged? %span.btn.small.disabled.grouped %strong %i.icon-ok = "MERGED" - if merge_request.notes.any? %span.btn.small.disabled.grouped %i.icon-comment = merge_request.notes.count %span.btn.small.disabled.grouped = merge_request.source_branch → = merge_request.target_branch = image_tag gravatar_icon(merge_request.author_email), :class => "avatar" = link_to project_merge_request_path(merge_request.project, merge_request) do %p.row_title= truncate(merge_request.title, :length => 80) %span.update-author %small.cdark= "##{merge_request.id}" authored by #{merge_request.author_name} = time_ago_in_words(merge_request.created_at) ago - if merge_request.upvotes > 0 %span.badge.badge-success= "+#{merge_request.upvotes}"
%li.wll{ :class => mr_css_classes(merge_request) } .right .left - if merge_request.merged? %span.btn.small.disabled.grouped %strong %i.icon-ok = "MERGED" - if merge_request.notes.any? %span.btn.small.disabled.grouped %i.icon-comment = merge_request.notes.count %span.btn.small.disabled.grouped = merge_request.source_branch → = merge_request.target_branch = image_tag gravatar_icon(merge_request.author_email), :class => "avatar" %p= link_to truncate(merge_request.title, :length => 80), project_merge_request_path(merge_request.project, merge_request), :class => "row_title" %span.update-author %small.cdark= "##{merge_request.id}" authored by #{merge_request.author_name} = time_ago_in_words(merge_request.created_at) ago - if merge_request.upvotes > 0 %span.badge.badge-success= "+#{merge_request.upvotes}"
Update links to merge requests
Update links to merge requests
Haml
mit
adaiguoguo/gitlab_globalserarch,SkyWei/gitlabhq,liyakun/gitlabhq,xuvw/gitlabhq,liyakun/gitlabhq,cui-liqiang/gitlab-ce,michaKFromParis/sparkslab,Datacom/gitlabhq,ArthurHoaro/Public-GitLab,yulchitaj/TEST3,allysonbarros/gitlabhq,mmkassem/gitlabhq,cncodog/gitlab,NKMR6194/gitlabhq,sonalkr132/gitlabhq,pjknkda/gitlabhq,htve/GitlabForChinese,CodeCantor/gitlabhq,larryli/gitlabhq,nmav/gitlabhq,ksoichiro/gitlabhq,Kambda/mobbr-gitlabhq,darkrasid/gitlabhq,mente/gitlabhq,ordiychen/gitlabhq,gopeter/gitlabhq,chenrui2014/gitlabhq,Keystion/gitlabhq,wangcan2014/gitlabhq,bbodenmiller/gitlabhq,michaKFromParis/sparkslab,larryli/gitlabhq,hzy001/gitlabhq,rumpelsepp/gitlabhq,yonglehou/gitlabhq,louahola/gitlabhq,dwrensha/gitlabhq,jrjang/gitlab-ce,delkyd/gitlabhq,luzhongyang/gitlabhq,bladealslayer/gitlabhq,SVArago/gitlabhq,michaKFromParis/gitlabhq,pjknkda/gitlabhq,yama07/gitlabhq,dvrylc/gitlabhq,Burick/gitlabhq,mente/gitlabhq,fendoudeqingchunhh/gitlabhq,ksoichiro/gitlabhq,kitech/gitlabhq,wangcan2014/gitlabhq,zBMNForks/gitlabhq,salipro4ever/gitlabhq,adaiguoguo/gitlab_globalserarch,ngpestelos/gitlabhq,sideci-sample/sideci-sample-gitlabhq,jairzh/gitlabhq-sfdc,ordiychen/gitlabhq,dyon/gitlab,dvrylc/gitlabhq,stanhu/gitlabhq,pulkit21/gitlabhq,ZeoAlliance/gitlabhq,per-garden/gitlabhq,shinexiao/gitlabhq,ngpestelos/gitlabhq,123Haynes/gitlabhq,dvrylc/gitlabhq,Burick/gitlabhq,akumetsuv/gitlab,yama07/gitlabhq,michaKFromParis/gitlabhqold,ibiart/gitlabhq,johnmyqin/gitlabhq,ArthurHoaro/Public-GitLab,darkrasid/gitlabhq,rumpelsepp/gitlabhq,Kambda/mobbr-gitlabhq,flashbuckets/gitlabhq,chadyred/gitlabhq,axilleas/gitlabhq,childbamboo/gitlabhq,per-garden/gitlabhq,mavimo/gitlabhq,chrrrles/nodeflab,8thcolor/rubyconfau2015-sadr,eliasp/gitlabhq,pupaxxo/gitlabhq,darkrasid/gitlabhq,since2014/gitlabhq,theodi/gitlabhq,TheWatcher/gitlabhq,TheWatcher/gitlabhq,ordiychen/gitlabhq,zBMNForks/gitlabhq,H3Chief/gitlabhq,htve/GitlabForChinese,lvfeng1130/gitlabhq,rhels/gitlabhq,fendoudeqingchunhh/gitlabhq,jaepyoung/gitlabhq,akumetsuv/gitlab,allistera/gitlabhq,daiyu/gitlab-zh,revaret/gitlabhq,allysonbarros/gitlabhq,achako/gitlabhq,youprofit/gitlabhq,jaepyoung/gitlabhq,ksoichiro/gitlabhq,fscherwi/gitlabhq,julianengel/gitlabhq,mr-dxdy/gitlabhq,mmkassem/gitlabhq,michaKFromParis/gitlabhq,robbkidd/gitlabhq,szechyjs/gitlabhq,tk23/gitlabhq,joalmeid/gitlabhq,szechyjs/gitlabhq,icedwater/gitlabhq,cinderblock/gitlabhq,DanielZhangQingLong/gitlabhq,Soullivaneuh/gitlabhq,since2014/gitlabhq,icedwater/gitlabhq,nmav/gitlabhq,mathstuf/gitlabhq,stanhu/gitlabhq,yfaizal/gitlabhq,k4zzk/gitlabhq,aaronsnyder/gitlabhq,mr-dxdy/gitlabhq,Razer6/gitlabhq,Soullivaneuh/gitlabhq,shinexiao/gitlabhq,sekcheong/gitlabhq,ayufan/gitlabhq,stoplightio/gitlabhq,aaronsnyder/gitlabhq,louahola/gitlabhq,mr-dxdy/gitlabhq,hzy001/gitlabhq,zrbsprite/gitlabhq,achako/gitlabhq,SVArago/gitlabhq,hq804116393/gitlabhq,yuyue2013/ss,iiet/iiet-git,dyon/gitlab,koreamic/gitlabhq,htve/GitlabForChinese,yama07/gitlabhq,mmkassem/gitlabhq,fgbreel/gitlabhq,daiyu/gitlab-zh,TheWatcher/gitlabhq,NARKOZ/gitlabhq,hacsoc/gitlabhq,fearenales/gitlabhq,Datacom/gitlabhq,axilleas/gitlabhq,openwide-java/gitlabhq,ikappas/gitlabhq,icedwater/gitlabhq,sideci-sample/sideci-sample-gitlabhq,NARKOZ/gitlabhq,theodi/gitlabhq,ikappas/gitlabhq,adaiguoguo/gitlab_globalserarch,stanhu/gitlabhq,rhels/gitlabhq,t-zuehlsdorff/gitlabhq,whluwit/gitlabhq,riyad/gitlabhq,stellamiranda/mobbr-gitlabhq,Tyrael/gitlabhq,kitech/gitlabhq,whluwit/gitlabhq,NKMR6194/gitlabhq,larryli/gitlabhq,goeun/myRepo,sue445/gitlabhq,yonglehou/gitlabhq,Kambda/Mobbr,szechyjs/gitlabhq,manfer/gitlabhq,MauriceMohlek/gitlabhq,8thcolor/testing-public-gitlabhq,t-zuehlsdorff/gitlabhq,yonglehou/gitlabhq,copystudy/gitlabhq,LytayTOUCH/gitlabhq,vjustov/gitlabhq,dukex/gitlabhq,adaiguoguo/gitlab_globalserarch,jvanbaarsen/gitlabhq,jrjang/gitlabhq,Exeia/gitlabhq,delkyd/gitlabhq,fearenales/gitlabhq,betabot7/gitlabhq,flashbuckets/gitlabhq,whluwit/gitlabhq,yulchitaj/TEST3,DanielZhangQingLong/gitlabhq,childbamboo/gitlabhq,eliasp/gitlabhq,0x20h/gitlabhq,yfaizal/gitlabhq,williamherry/gitlabhq,iiet/iiet-git,daiyu/gitlab-zh,cui-liqiang/gitlab-ce,iiet/iiet-git,cinderblock/gitlabhq,MauriceMohlek/gitlabhq,zBMNForks/gitlabhq,chadyred/gitlabhq,tempbottle/gitlabhq,jrjang/gitlabhq,revaret/gitlabhq,bigsurge/gitlabhq,sakishum/gitlabhq,jrjang/gitlabhq,salipro4ever/gitlabhq,jirutka/gitlabhq,ikappas/gitlabhq,Burick/gitlabhq,kemenaran/gitlabhq,flashbuckets/gitlabhq,atomaka/gitlabhq,szechyjs/gitlabhq,H3Chief/gitlabhq,ayufan/gitlabhq,theonlydoo/gitlabhq,rfeese/gitlab-ce,LUMC/gitlabhq,lvfeng1130/gitlabhq,allysonbarros/gitlabhq,neiljbrookes/glab,8thcolor/testing-public-gitlabhq,ngpestelos/gitlabhq,pkgr/gitlabhq,screenpages/gitlabhq,mrb/gitlabhq,screenpages/gitlabhq,OlegGirko/gitlab-ce,tim-hoff/gitlabhq,fearenales/gitlabhq,jirutka/gitlabhq,Keystion/gitlabhq,OtkurBiz/gitlabhq,rebecamendez/gitlabhq,williamherry/gitlabhq,youprofit/gitlabhq,yatish27/gitlabhq,stellamiranda/mobbr-gitlabhq,rhels/gitlabhq,CodeCantor/gitlabhq,joalmeid/gitlabhq,openwide-java/gitlabhq,bbodenmiller/gitlabhq,LytayTOUCH/gitlabhq,OlegGirko/gitlab-ce,it33/gitlabhq,koreamic/gitlabhq,robbkidd/gitlabhq,chenrui2014/gitlabhq,chrrrles/nodeflab,eliasp/gitlabhq,1ed/gitlabhq,since2014/gitlabhq,stellamiranda/mobbr-gitlabhq,manfer/gitlabhq,rfeese/gitlab-ce,screenpages/gitlabhq,williamherry/gitlabhq,folpindo/gitlabhq,Telekom-PD/gitlabhq,dreampet/gitlab,sekcheong/gitlabhq,OtkurBiz/gitlabhq,dreampet/gitlab,hacsoc/gitlabhq,jrjang/gitlab-ce,pulkit21/gitlabhq,mavimo/gitlabhq,icedwater/gitlabhq,gopeter/gitlabhq,liyakun/gitlabhq,Kambda/Mobbr,dplarson/gitlabhq,yatish27/gitlabhq,hq804116393/gitlabhq,yuyue2013/ss,ksoichiro/gitlabhq,WSDC-NITWarangal/gitlabhq,Burick/gitlabhq,zBMNForks/gitlabhq,8thcolor/rubyconfau2015-sadr,k4zzk/gitlabhq,jairzh/gitlabhq-sfdc,bozaro/gitlabhq,tk23/gitlabhq,shinexiao/gitlabhq,bigsurge/gitlabhq,cui-liqiang/gitlab-ce,martijnvermaat/gitlabhq,copystudy/gitlabhq,dwrensha/gitlabhq,ArthurHoaro/Public-GitLab,pupaxxo/gitlabhq,mathstuf/gitlabhq,lvfeng1130/gitlabhq,Kambda/mobbr-gitlabhq,salipro4ever/gitlabhq,123Haynes/gitlabhq,hzy001/gitlabhq,luzhongyang/gitlabhq,neiljbrookes/glab,rfeese/gitlab-ce,wangcan2014/gitlabhq,louahola/gitlabhq,martinma4/gitlabhq,NuLL3rr0r/gitlabhq,dplarson/gitlabhq,chenrui2014/gitlabhq,hq804116393/gitlabhq,dyon/gitlab,Devin001/gitlabhq,nuecho/gitlabhq,Telekom-PD/gitlabhq,8thcolor/testing-public-gitlabhq,wangcan2014/gitlabhq,gorgee/gitlabhq,johnmyqin/gitlabhq,windymid/test2,dreampet/gitlab,sue445/gitlabhq,bigsurge/gitlabhq,axilleas/gitlabhq,openwide-java/gitlabhq,8thcolor/eurucamp2014-htdsadr,rfeese/gitlab-ce,OtkurBiz/gitlabhq,eliasp/gitlabhq,sonalkr132/gitlabhq,ZeoAlliance/gitlabhq,nguyen-tien-mulodo/gitlabhq,delkyd/gitlabhq,allistera/gitlabhq,initiummedia/gitlabhq,liyakun/gitlabhq,Razer6/gitlabhq,copystudy/gitlabhq,ttasanen/gitlabhq,gorgee/gitlabhq,inetfuture/gitlab-tweak,bozaro/gitlabhq,daiyu/gitlab-zh,k4zzk/gitlabhq,ZeoAlliance/gitlabhq,xuvw/gitlabhq,pkallberg/tjenare,dplarson/gitlabhq,manfer/gitlabhq,ikappas/gitlabhq,tempbottle/gitlabhq,pkgr/gitlabhq,fantasywind/gitlabhq,Razer6/gitlabhq,Telekom-PD/gitlabhq,ordiychen/gitlabhq,gopeter/gitlabhq,martijnvermaat/gitlabhq,pupaxxo/gitlabhq,nguyen-tien-mulodo/gitlabhq,kemenaran/gitlabhq,dukex/gitlabhq,tempbottle/gitlabhq,mente/gitlabhq,Razer6/gitlabhq,ttasanen/gitlabhq,kotaro-dev/gitlab-6-9,dvrylc/gitlabhq,sakishum/gitlabhq,dwrensha/gitlabhq,fscherwi/gitlabhq,SVArago/gitlabhq,zrbsprite/gitlabhq,NARKOZ/gitlabhq,dplarson/gitlabhq,8thcolor/eurucamp2014-htdsadr,vjustov/gitlabhq,youprofit/gitlabhq,chrrrles/nodeflab,sonalkr132/gitlabhq,akumetsuv/gitlab,WSDC-NITWarangal/gitlabhq,WSDC-NITWarangal/gitlabhq,fantasywind/gitlabhq,yatish27/gitlabhq,fgbreel/gitlabhq,lvfeng1130/gitlabhq,it33/gitlabhq,michaKFromParis/sparkslab,fantasywind/gitlabhq,louahola/gitlabhq,jairzh/gitlabhq-sfdc,H3Chief/gitlabhq,mathstuf/gitlabhq,nmav/gitlabhq,yuyue2013/ss,per-garden/gitlabhq,Kambda/Mobbr,allysonbarros/gitlabhq,goeun/myRepo,michaKFromParis/gitlabhqold,t-zuehlsdorff/gitlabhq,ferdinandrosario/gitlabhq,it33/gitlabhq,pjknkda/gitlabhq,shinexiao/gitlabhq,Keystion/gitlabhq,TheWatcher/gitlabhq,jirutka/gitlabhq,yama07/gitlabhq,julianengel/gitlabhq,manfer/gitlabhq,Devin001/gitlabhq,tim-hoff/gitlabhq,lbt/gitlabhq,ferdinandrosario/gitlabhq,bigsurge/gitlabhq,1ed/gitlabhq,LytayTOUCH/gitlabhq,theodi/gitlabhq,neiljbrookes/glab,dukex/gitlabhq,Tyrael/gitlabhq,ayufan/gitlabhq,mathstuf/gitlabhq,DanielZhangQingLong/gitlabhq,folpindo/gitlabhq,lbt/gitlabhq,joalmeid/gitlabhq,julianengel/gitlabhq,MauriceMohlek/gitlabhq,ibiart/gitlabhq,yfaizal/gitlabhq,yulchitaj/TEST3,williamherry/gitlabhq,cinderblock/gitlabhq,nmav/gitlabhq,zrbsprite/gitlabhq,darkrasid/gitlabhq,hacsoc/gitlabhq,OtkurBiz/gitlabhq,achako/gitlabhq,johnmyqin/gitlabhq,hq804116393/gitlabhq,pkgr/gitlabhq,martijnvermaat/gitlabhq,lbt/gitlabhq,folpindo/gitlabhq,Exeia/gitlabhq,SkyWei/gitlabhq,kemenaran/gitlabhq,mrb/gitlabhq,pulkit21/gitlabhq,rhels/gitlabhq,yulchitaj/TEST3,dwrensha/gitlabhq,NuLL3rr0r/gitlabhq,sue445/gitlabhq,atomaka/gitlabhq,sekcheong/gitlabhq,mrb/gitlabhq,xuvw/gitlabhq,childbamboo/gitlabhq,jairzh/gitlabhq-sfdc,sue445/gitlabhq,stoplightio/gitlabhq,allistera/gitlabhq,fscherwi/gitlabhq,koreamic/gitlabhq,jaepyoung/gitlabhq,SkyWei/gitlabhq,phinfonet/mobbr-gitlabhq,tk23/gitlabhq,Tyrael/gitlabhq,allistera/gitlabhq,nuecho/gitlabhq,openwide-java/gitlabhq,stanhu/gitlabhq,cinderblock/gitlabhq,bbodenmiller/gitlabhq,jrjang/gitlabhq,fpgentil/gitlabhq,fantasywind/gitlabhq,mr-dxdy/gitlabhq,Datacom/gitlabhq,123Haynes/gitlabhq,delkyd/gitlabhq,goeun/myRepo,rebecamendez/gitlabhq,gorgee/gitlabhq,atomaka/gitlabhq,jirutka/gitlabhq,fscherwi/gitlabhq,luzhongyang/gitlabhq,ttasanen/gitlabhq,robbkidd/gitlabhq,pkallberg/tjenare,martinma4/gitlabhq,initiummedia/gitlabhq,vjustov/gitlabhq,ibiart/gitlabhq,phinfonet/mobbr-gitlabhq,sakishum/gitlabhq,youprofit/gitlabhq,joalmeid/gitlabhq,riyad/gitlabhq,dreampet/gitlab,Datacom/gitlabhq,jrjang/gitlab-ce,windymid/test2,luzhongyang/gitlabhq,stoplightio/gitlabhq,nguyen-tien-mulodo/gitlabhq,revaret/gitlabhq,0x20h/gitlabhq,LUMC/gitlabhq,sakishum/gitlabhq,mrb/gitlabhq,axilleas/gitlabhq,k4zzk/gitlabhq,sideci-sample/sideci-sample-gitlabhq,it33/gitlabhq,tempbottle/gitlabhq,bozaro/gitlabhq,tim-hoff/gitlabhq,vjustov/gitlabhq,kotaro-dev/gitlab-6-9,fearenales/gitlabhq,CodeCantor/gitlabhq,tim-hoff/gitlabhq,yatish27/gitlabhq,NARKOZ/gitlabhq,rumpelsepp/gitlabhq,Exeia/gitlabhq,cncodog/gitlab,mavimo/gitlabhq,fgbreel/gitlabhq,kotaro-dev/gitlab-6-9,Keystion/gitlabhq,ngpestelos/gitlabhq,nguyen-tien-mulodo/gitlabhq,inetfuture/gitlab-tweak,rebecamendez/gitlabhq,duduribeiro/gitlabhq,windymid/test2,Tyrael/gitlabhq,Telekom-PD/gitlabhq,michaKFromParis/sparkslab,initiummedia/gitlabhq,jvanbaarsen/gitlabhq,OlegGirko/gitlab-ce,copystudy/gitlabhq,cui-liqiang/gitlab-ce,koreamic/gitlabhq,martinma4/gitlabhq,folpindo/gitlabhq,chadyred/gitlabhq,Exeia/gitlabhq,aaronsnyder/gitlabhq,flashbuckets/gitlabhq,iiet/iiet-git,fendoudeqingchunhh/gitlabhq,0x20h/gitlabhq,Devin001/gitlabhq,kitech/gitlabhq,gorgee/gitlabhq,jvanbaarsen/gitlabhq,stoplightio/gitlabhq,michaKFromParis/gitlabhqold,chenrui2014/gitlabhq,jrjang/gitlab-ce,fpgentil/gitlabhq,Soullivaneuh/gitlabhq,8thcolor/eurucamp2014-htdsadr,theodi/gitlabhq,betabot7/gitlabhq,screenpages/gitlabhq,phinfonet/mobbr-gitlabhq,yfaizal/gitlabhq,ferdinandrosario/gitlabhq,1ed/gitlabhq,SkyWei/gitlabhq,SVArago/gitlabhq,bbodenmiller/gitlabhq,fpgentil/gitlabhq,cncodog/gitlab,jvanbaarsen/gitlabhq,betabot7/gitlabhq,theonlydoo/gitlabhq,salipro4ever/gitlabhq,NuLL3rr0r/gitlabhq,michaKFromParis/gitlabhq,Devin001/gitlabhq,Soullivaneuh/gitlabhq,zrbsprite/gitlabhq,larryli/gitlabhq,mavimo/gitlabhq,aaronsnyder/gitlabhq,bladealslayer/gitlabhq,per-garden/gitlabhq,duduribeiro/gitlabhq,chadyred/gitlabhq,sekcheong/gitlabhq,theonlydoo/gitlabhq,hzy001/gitlabhq,cncodog/gitlab,LytayTOUCH/gitlabhq,OlegGirko/gitlab-ce,yonglehou/gitlabhq,duduribeiro/gitlabhq,mente/gitlabhq,DanielZhangQingLong/gitlabhq,8thcolor/rubyconfau2015-sadr,michaKFromParis/gitlabhqold,johnmyqin/gitlabhq,pjknkda/gitlabhq,initiummedia/gitlabhq,MauriceMohlek/gitlabhq,t-zuehlsdorff/gitlabhq,rebecamendez/gitlabhq,H3Chief/gitlabhq,martijnvermaat/gitlabhq,bozaro/gitlabhq,tk23/gitlabhq,theonlydoo/gitlabhq,jaepyoung/gitlabhq,whluwit/gitlabhq,pulkit21/gitlabhq,mmkassem/gitlabhq,sonalkr132/gitlabhq,gopeter/gitlabhq,duduribeiro/gitlabhq,revaret/gitlabhq,inetfuture/gitlab-tweak,fgbreel/gitlabhq,fendoudeqingchunhh/gitlabhq,htve/GitlabForChinese,ferdinandrosario/gitlabhq,nuecho/gitlabhq,since2014/gitlabhq,bladealslayer/gitlabhq,dukex/gitlabhq,kitech/gitlabhq,rumpelsepp/gitlabhq,ttasanen/gitlabhq,NKMR6194/gitlabhq,LUMC/gitlabhq,hacsoc/gitlabhq,LUMC/gitlabhq,ayufan/gitlabhq,yuyue2013/ss,michaKFromParis/gitlabhq,fpgentil/gitlabhq,riyad/gitlabhq,kemenaran/gitlabhq,martinma4/gitlabhq,julianengel/gitlabhq,WSDC-NITWarangal/gitlabhq,childbamboo/gitlabhq,pkallberg/tjenare,NKMR6194/gitlabhq
haml
## Code Before: %li.wll{ :class => mr_css_classes(merge_request) } .right .left - if merge_request.merged? %span.btn.small.disabled.grouped %strong %i.icon-ok = "MERGED" - if merge_request.notes.any? %span.btn.small.disabled.grouped %i.icon-comment = merge_request.notes.count %span.btn.small.disabled.grouped = merge_request.source_branch → = merge_request.target_branch = image_tag gravatar_icon(merge_request.author_email), :class => "avatar" = link_to project_merge_request_path(merge_request.project, merge_request) do %p.row_title= truncate(merge_request.title, :length => 80) %span.update-author %small.cdark= "##{merge_request.id}" authored by #{merge_request.author_name} = time_ago_in_words(merge_request.created_at) ago - if merge_request.upvotes > 0 %span.badge.badge-success= "+#{merge_request.upvotes}" ## Instruction: Update links to merge requests ## Code After: %li.wll{ :class => mr_css_classes(merge_request) } .right .left - if merge_request.merged? %span.btn.small.disabled.grouped %strong %i.icon-ok = "MERGED" - if merge_request.notes.any? %span.btn.small.disabled.grouped %i.icon-comment = merge_request.notes.count %span.btn.small.disabled.grouped = merge_request.source_branch → = merge_request.target_branch = image_tag gravatar_icon(merge_request.author_email), :class => "avatar" %p= link_to truncate(merge_request.title, :length => 80), project_merge_request_path(merge_request.project, merge_request), :class => "row_title" %span.update-author %small.cdark= "##{merge_request.id}" authored by #{merge_request.author_name} = time_ago_in_words(merge_request.created_at) ago - if merge_request.upvotes > 0 %span.badge.badge-success= "+#{merge_request.upvotes}"
%li.wll{ :class => mr_css_classes(merge_request) } .right .left - if merge_request.merged? %span.btn.small.disabled.grouped %strong %i.icon-ok = "MERGED" - if merge_request.notes.any? %span.btn.small.disabled.grouped %i.icon-comment = merge_request.notes.count %span.btn.small.disabled.grouped = merge_request.source_branch → = merge_request.target_branch = image_tag gravatar_icon(merge_request.author_email), :class => "avatar" + %p= link_to truncate(merge_request.title, :length => 80), project_merge_request_path(merge_request.project, merge_request), :class => "row_title" - = link_to project_merge_request_path(merge_request.project, merge_request) do - %p.row_title= truncate(merge_request.title, :length => 80) %span.update-author %small.cdark= "##{merge_request.id}" authored by #{merge_request.author_name} = time_ago_in_words(merge_request.created_at) ago - if merge_request.upvotes > 0 %span.badge.badge-success= "+#{merge_request.upvotes}"
3
0.107143
1
2
1f6ea045b6d8e69ede8b524a586f8efc292eefab
exercises/two-fer/metadata.yml
exercises/two-fer/metadata.yml
--- blurb: 'Create a sentence of the form "One for X, one for me."' source: "This is an exercise to introduce users to basic programming constructs, just after Hello World." source_url: "https://en.wikipedia.org/wiki/Two-fer"
--- blurb: 'Create a sentence of the form "One for X, one for me."' source_url: "https://en.wikipedia.org/wiki/Two-fer"
Remove assumption about track ordering
two-fer: Remove assumption about track ordering The exercise was originally made to have the same format as the old hello-world exercise: provide a default value if none is passed, and use the passed argument when present. This let us simplify hello-world so that it is a simple check to ensure that everything is wired together correctly. That said, there are languages where implementing this is non-trivial, so while we did make the exercise to replace the old hello-world, it doesn't necessarily follow that it would always directly follow a hello-world exercise.
YAML
mit
exercism/x-common,rpottsoh/x-common,exercism/x-common,jmluy/x-common,petertseng/x-common,rpottsoh/x-common,jmluy/x-common,ErikSchierboom/x-common,petertseng/x-common,jmluy/x-common,ErikSchierboom/x-common
yaml
## Code Before: --- blurb: 'Create a sentence of the form "One for X, one for me."' source: "This is an exercise to introduce users to basic programming constructs, just after Hello World." source_url: "https://en.wikipedia.org/wiki/Two-fer" ## Instruction: two-fer: Remove assumption about track ordering The exercise was originally made to have the same format as the old hello-world exercise: provide a default value if none is passed, and use the passed argument when present. This let us simplify hello-world so that it is a simple check to ensure that everything is wired together correctly. That said, there are languages where implementing this is non-trivial, so while we did make the exercise to replace the old hello-world, it doesn't necessarily follow that it would always directly follow a hello-world exercise. ## Code After: --- blurb: 'Create a sentence of the form "One for X, one for me."' source_url: "https://en.wikipedia.org/wiki/Two-fer"
--- blurb: 'Create a sentence of the form "One for X, one for me."' - source: "This is an exercise to introduce users to basic programming constructs, just after Hello World." source_url: "https://en.wikipedia.org/wiki/Two-fer"
1
0.25
0
1
6f9b1328194f38cdf62f8092c1aeb0d2eb679cba
composer.json
composer.json
{ "name": "colindecarlo/coolection", "description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.", "version": "0.0.0", "type": "library", "keywords": ["array", "collection", "functional", "iterator", "utility"], "license": "MIT", "authors": [ { "name": "Colin DeCarlo", "email": "colin@thedecarlos.ca" } ], "support": { "email": "colin@thedecarlos.ca", "issues": "https://github.com/colindecarlo/coolection/issues", "source": "https://github.com/colindecarlo/coolection" }, "require": {}, "autoload": { "psr-4": { "Coolection\\": "src" } } }
{ "name": "colindecarlo/coolection", "description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.", "version": "0.0.0", "type": "library", "keywords": ["array", "collection", "functional", "iterator", "utility"], "license": "MIT", "authors": [ { "name": "Colin DeCarlo", "email": "colin@thedecarlos.ca" } ], "support": { "email": "colin@thedecarlos.ca", "issues": "https://github.com/colindecarlo/coolection/issues", "source": "https://github.com/colindecarlo/coolection" }, "require-dev": { "phpunit/phpunit": "~4.5" }, "autoload": { "psr-4": { "Coolection\\": "src" } } }
Add PHPUnit as a required-dev dependency
Add PHPUnit as a required-dev dependency
JSON
mit
colindecarlo/collection
json
## Code Before: { "name": "colindecarlo/coolection", "description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.", "version": "0.0.0", "type": "library", "keywords": ["array", "collection", "functional", "iterator", "utility"], "license": "MIT", "authors": [ { "name": "Colin DeCarlo", "email": "colin@thedecarlos.ca" } ], "support": { "email": "colin@thedecarlos.ca", "issues": "https://github.com/colindecarlo/coolection/issues", "source": "https://github.com/colindecarlo/coolection" }, "require": {}, "autoload": { "psr-4": { "Coolection\\": "src" } } } ## Instruction: Add PHPUnit as a required-dev dependency ## Code After: { "name": "colindecarlo/coolection", "description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.", "version": "0.0.0", "type": "library", "keywords": ["array", "collection", "functional", "iterator", "utility"], "license": "MIT", "authors": [ { "name": "Colin DeCarlo", "email": "colin@thedecarlos.ca" } ], "support": { "email": "colin@thedecarlos.ca", "issues": "https://github.com/colindecarlo/coolection/issues", "source": "https://github.com/colindecarlo/coolection" }, "require-dev": { "phpunit/phpunit": "~4.5" }, "autoload": { "psr-4": { "Coolection\\": "src" } } }
{ "name": "colindecarlo/coolection", "description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.", "version": "0.0.0", "type": "library", "keywords": ["array", "collection", "functional", "iterator", "utility"], "license": "MIT", "authors": [ { "name": "Colin DeCarlo", "email": "colin@thedecarlos.ca" } ], "support": { "email": "colin@thedecarlos.ca", "issues": "https://github.com/colindecarlo/coolection/issues", "source": "https://github.com/colindecarlo/coolection" }, - "require": {}, ? -- + "require-dev": { ? ++++ + "phpunit/phpunit": "~4.5" + }, "autoload": { "psr-4": { "Coolection\\": "src" } } }
4
0.16
3
1
a647f7af6d4e3eac9fe85e6f6532e48ef60127f8
integration_tests/go/src/call_c_from_go/main.go
integration_tests/go/src/call_c_from_go/main.go
package main // #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files // #include <mini-os/experimental.h> import "C" import "fmt" //go:cgo_import_static test //go:linkname test test var test byte func main() {} //export Main func Main(unused int) { C.test() fmt.Println("Hello World!") }
package main // #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files // #include <mini-os/experimental.h> import "C" import "fmt" func main() {} //export Main func Main(unused int) { C.test() fmt.Println("Hello World!") }
Remove unnecessary cgo directives from test
Remove unnecessary cgo directives from test
Go
bsd-2-clause
unigornel/unigornel,unigornel/unigornel
go
## Code Before: package main // #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files // #include <mini-os/experimental.h> import "C" import "fmt" //go:cgo_import_static test //go:linkname test test var test byte func main() {} //export Main func Main(unused int) { C.test() fmt.Println("Hello World!") } ## Instruction: Remove unnecessary cgo directives from test ## Code After: package main // #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files // #include <mini-os/experimental.h> import "C" import "fmt" func main() {} //export Main func Main(unused int) { C.test() fmt.Println("Hello World!") }
package main // #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files // #include <mini-os/experimental.h> import "C" import "fmt" - - //go:cgo_import_static test - //go:linkname test test - var test byte func main() {} //export Main func Main(unused int) { C.test() fmt.Println("Hello World!") }
4
0.210526
0
4
4697c64e9068a4ea3bd7bd4d07c718a64597a6be
app/services/onestop_id_service.rb
app/services/onestop_id_service.rb
class OnestopIdService include Singleton def self.find!(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id) end end
class OnestopIdService include Singleton def self.find(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id(onestop_id) end def self.find!(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id) end end
Add OnestopIdService.find to complement OnestopIdService.find!
Add OnestopIdService.find to complement OnestopIdService.find!
Ruby
mit
transitland/transitland-datastore,transitland/transitland-datastore,transitland/transitland-datastore
ruby
## Code Before: class OnestopIdService include Singleton def self.find!(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id) end end ## Instruction: Add OnestopIdService.find to complement OnestopIdService.find! ## Code After: class OnestopIdService include Singleton def self.find(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id(onestop_id) end def self.find!(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id) end end
class OnestopIdService include Singleton + + def self.find(onestop_id) + OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id(onestop_id) + end def self.find!(onestop_id) OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id) end end
4
0.571429
4
0
c84d46b3e35357dff939765e78875b539e7a69c9
app/views/admin/issues/index.html.erb
app/views/admin/issues/index.html.erb
<div class="row"> <h2> <span class="col-sm-10">Manage Platform</span> <span class="col-sm-2"> <%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %> </span> </h2> </div> <div class="row"> <div class='issue-header'> <div class="col-md-4"> <h4>Title</h4> </div> <div class="col-md-8"> <h4>Position</h4> </div> </div> <%- @issues.all.each do |issue| %> <div class='issue'> <div class="col-md-4"> <%= issue.title %> </div> <div class="col-md-4"> <%= issue.opinion %> </div> <div class="col-md-4"> <%= link_to "Edit", edit_admin_issue_path(issue.id) %> / <%= link_to "Delete", admin_issue_path(issue.id), method: :delete %> </div> </div> <%- end %> </div>
<div class="row"> <h2> <span class="col-sm-10">Manage Platform</span> <span class="col-sm-2"> <%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %> </span> </h2> </div> <div> <div class='row issue-header'> <div class="col-md-4"> <h4>Title</h4> </div> <div class="col-md-8"> <h4>Position</h4> </div> </div> <%- @issues.all.each do |issue| %> <div class='row issue'> <div class="col-md-4"> <%= issue.title %> </div> <div class="col-md-4"> <%= issue.opinion %> </div> <div class="col-md-4"> <%= link_to "Edit", edit_admin_issue_path(issue.id) %> / <%= link_to "Delete", admin_issue_path(issue.id), method: :delete %> </div> </div> <%- end %> </div>
Fix admin view bootstrap display problem for issues
Fix admin view bootstrap display problem for issues
HTML+ERB
isc
OpenCampaign/opencampaign,OpenCampaign/opencampaign,OpenCampaign/opencampaign
html+erb
## Code Before: <div class="row"> <h2> <span class="col-sm-10">Manage Platform</span> <span class="col-sm-2"> <%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %> </span> </h2> </div> <div class="row"> <div class='issue-header'> <div class="col-md-4"> <h4>Title</h4> </div> <div class="col-md-8"> <h4>Position</h4> </div> </div> <%- @issues.all.each do |issue| %> <div class='issue'> <div class="col-md-4"> <%= issue.title %> </div> <div class="col-md-4"> <%= issue.opinion %> </div> <div class="col-md-4"> <%= link_to "Edit", edit_admin_issue_path(issue.id) %> / <%= link_to "Delete", admin_issue_path(issue.id), method: :delete %> </div> </div> <%- end %> </div> ## Instruction: Fix admin view bootstrap display problem for issues ## Code After: <div class="row"> <h2> <span class="col-sm-10">Manage Platform</span> <span class="col-sm-2"> <%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %> </span> </h2> </div> <div> <div class='row issue-header'> <div class="col-md-4"> <h4>Title</h4> </div> <div class="col-md-8"> <h4>Position</h4> </div> </div> <%- @issues.all.each do |issue| %> <div class='row issue'> <div class="col-md-4"> <%= issue.title %> </div> <div class="col-md-4"> <%= issue.opinion %> </div> <div class="col-md-4"> <%= link_to "Edit", edit_admin_issue_path(issue.id) %> / <%= link_to "Delete", admin_issue_path(issue.id), method: :delete %> </div> </div> <%- end %> </div>
<div class="row"> <h2> <span class="col-sm-10">Manage Platform</span> <span class="col-sm-2"> <%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %> </span> </h2> </div> - <div class="row"> + <div> - <div class='issue-header'> + <div class='row issue-header'> ? ++++ <div class="col-md-4"> <h4>Title</h4> </div> <div class="col-md-8"> <h4>Position</h4> </div> </div> <%- @issues.all.each do |issue| %> - <div class='issue'> + <div class='row issue'> ? ++++ <div class="col-md-4"> <%= issue.title %> </div> <div class="col-md-4"> <%= issue.opinion %> </div> <div class="col-md-4"> <%= link_to "Edit", edit_admin_issue_path(issue.id) %> / <%= link_to "Delete", admin_issue_path(issue.id), method: :delete %> </div> </div> <%- end %> </div>
6
0.1875
3
3
cc8076bf191edb825ba1a4bc64f27873629979ae
Godeps/Godeps.json
Godeps/Godeps.json
{ "ImportPath": "github.com/syncthing/syncthing-inotify", "GoVersion": "go1.6", "GodepVersion": "v71", "Deps": [ { "ImportPath": "github.com/cenkalti/backoff", "Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a" }, { "ImportPath": "github.com/syncthing/syncthing/lib/ignore", "Comment": "v0.13.4", "Rev": "9bb5988b4ed726a7eb7662dce01580b0e82dab02" }, { "ImportPath": "github.com/zillode/notify", "Rev": "2da5cc9881e8f16bab76b63129c7781898f97d16" } ] }
{ "ImportPath": "github.com/syncthing/syncthing-inotify", "GoVersion": "go1.6", "GodepVersion": "v71", "Deps": [ { "ImportPath": "github.com/cenkalti/backoff", "Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a" }, { "ImportPath": "github.com/syncthing/syncthing/lib/ignore", "Comment": "v0.13.4", "Rev": "9bb5988b4ed726a7eb7662dce01580b0e82dab02" }, { "ImportPath": "github.com/zillode/notify", "Rev": "df33c1a773b462f936a149c36696c018c047eaa9" } ] }
Fix notify version for godeps.
Fix notify version for godeps.
JSON
mpl-2.0
syncthing/syncthing-inotify,syncthing/syncthing-inotify,imsodin/syncthing-inotify,imsodin/syncthing-inotify,syncthing/syncthing-inotify,imsodin/syncthing-inotify
json
## Code Before: { "ImportPath": "github.com/syncthing/syncthing-inotify", "GoVersion": "go1.6", "GodepVersion": "v71", "Deps": [ { "ImportPath": "github.com/cenkalti/backoff", "Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a" }, { "ImportPath": "github.com/syncthing/syncthing/lib/ignore", "Comment": "v0.13.4", "Rev": "9bb5988b4ed726a7eb7662dce01580b0e82dab02" }, { "ImportPath": "github.com/zillode/notify", "Rev": "2da5cc9881e8f16bab76b63129c7781898f97d16" } ] } ## Instruction: Fix notify version for godeps. ## Code After: { "ImportPath": "github.com/syncthing/syncthing-inotify", "GoVersion": "go1.6", "GodepVersion": "v71", "Deps": [ { "ImportPath": "github.com/cenkalti/backoff", "Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a" }, { "ImportPath": "github.com/syncthing/syncthing/lib/ignore", "Comment": "v0.13.4", "Rev": "9bb5988b4ed726a7eb7662dce01580b0e82dab02" }, { "ImportPath": "github.com/zillode/notify", "Rev": "df33c1a773b462f936a149c36696c018c047eaa9" } ] }
{ "ImportPath": "github.com/syncthing/syncthing-inotify", "GoVersion": "go1.6", "GodepVersion": "v71", "Deps": [ { "ImportPath": "github.com/cenkalti/backoff", "Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a" }, { "ImportPath": "github.com/syncthing/syncthing/lib/ignore", "Comment": "v0.13.4", "Rev": "9bb5988b4ed726a7eb7662dce01580b0e82dab02" }, { "ImportPath": "github.com/zillode/notify", - "Rev": "2da5cc9881e8f16bab76b63129c7781898f97d16" + "Rev": "df33c1a773b462f936a149c36696c018c047eaa9" } ] }
2
0.1
1
1
7480df0fd6a00c11045cf0c1523610e611606cfa
test/fixtures/hard/indentation.js
test/fixtures/hard/indentation.js
import styled from 'styled-components' // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` return Button } return InnerComp() } const Button = styled.button`color: blue;`
import styled, { keyframes } from 'styled-components' // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` return Button } return InnerComp() } const Button = styled.button`color: blue;` const animations = { spinnerCircle: keyframes` 0% { opacity: 0; } 100% { opacity: 1; } ` }
Move wrongly linted animation to hard tests
Move wrongly linted animation to hard tests
JavaScript
mit
styled-components/stylelint-processor-styled-components
javascript
## Code Before: import styled from 'styled-components' // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` return Button } return InnerComp() } const Button = styled.button`color: blue;` ## Instruction: Move wrongly linted animation to hard tests ## Code After: import styled, { keyframes } from 'styled-components' // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` return Button } return InnerComp() } const Button = styled.button`color: blue;` const animations = { spinnerCircle: keyframes` 0% { opacity: 0; } 100% { opacity: 1; } ` }
- import styled from 'styled-components' + import styled, { keyframes } from 'styled-components' ? +++++++++++++++ // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` return Button } return InnerComp() } const Button = styled.button`color: blue;` + + const animations = { + spinnerCircle: keyframes` + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } + ` + }
14
0.583333
13
1
e907487fca0a545405bd64e8e2bcada5e146c381
p4.js
p4.js
/*jshint node:true*/ "use strict"; var exec = require("child_process").exec; function runCommand(command, args, done) { if(typeof args === "function") { done = args; args = ""; } exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) { if(err) return done(err); if(stdErr) return done(new Error(stdErr)); done(null, stdOut); }); } function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { edit(path, function(err) { if(!err) return done(); add(path, done); }); } exports.edit = edit; exports.add = add; exports.smartEdit = smartEdit; exports.run = runCommand;
/*jshint node:true*/ "use strict"; var exec = require("child_process").exec; function runCommand(command, args, done) { if(typeof args === "function") { done = args; args = ""; } exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) { if(err) return done(err); if(stdErr) return done(new Error(stdErr)); done(null, stdOut); }); } function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { edit(path, function(err) { if(!err) return done(); add(path, done); }); } function revertUnchanged(path, done) { runCommand("revert", "-a", done); } exports.edit = edit; exports.add = add; exports.smartEdit = smartEdit; exports.run = runCommand; exports.revertUnchanged = revertUnchanged;
Add revertUnchanged command, because it's not uncommon.
Add revertUnchanged command, because it's not uncommon.
JavaScript
isc
gcochard/p4-oo
javascript
## Code Before: /*jshint node:true*/ "use strict"; var exec = require("child_process").exec; function runCommand(command, args, done) { if(typeof args === "function") { done = args; args = ""; } exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) { if(err) return done(err); if(stdErr) return done(new Error(stdErr)); done(null, stdOut); }); } function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { edit(path, function(err) { if(!err) return done(); add(path, done); }); } exports.edit = edit; exports.add = add; exports.smartEdit = smartEdit; exports.run = runCommand; ## Instruction: Add revertUnchanged command, because it's not uncommon. ## Code After: /*jshint node:true*/ "use strict"; var exec = require("child_process").exec; function runCommand(command, args, done) { if(typeof args === "function") { done = args; args = ""; } exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) { if(err) return done(err); if(stdErr) return done(new Error(stdErr)); done(null, stdOut); }); } function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { edit(path, function(err) { if(!err) return done(); add(path, done); }); } function revertUnchanged(path, done) { runCommand("revert", "-a", done); } exports.edit = edit; exports.add = add; exports.smartEdit = smartEdit; exports.run = runCommand; exports.revertUnchanged = revertUnchanged;
/*jshint node:true*/ "use strict"; var exec = require("child_process").exec; function runCommand(command, args, done) { if(typeof args === "function") { done = args; args = ""; } exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) { if(err) return done(err); if(stdErr) return done(new Error(stdErr)); done(null, stdOut); }); } function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { edit(path, function(err) { if(!err) return done(); add(path, done); }); } + function revertUnchanged(path, done) { + runCommand("revert", "-a", done); + } + exports.edit = edit; exports.add = add; exports.smartEdit = smartEdit; exports.run = runCommand; + exports.revertUnchanged = revertUnchanged;
5
0.128205
5
0
6f77ac919f9f3d3972646a6f26907fefb79a3be2
configuration-sample.json
configuration-sample.json
{ "tkdisplay":{ "width":32, "height":16, "scale":8 }, "leddisplay":{ "port":"/dev/ttyUSB0", "speed":2000000 }, "animator":{ "queue":256, "fps":25, "loop":true, "animations": [ {"module":"animations.rainbow", "duration":30.0}, { "module": "animations.tweet", "duration": 30.0, "auth":{ "basic":{ "login":"XXXXXX", "password":"YYYYYY" }, "oauth":{ "consumer_key":"", "consumer_secret":"", "oauth_token":"", "oauth_secret":"" } }, "track":"whatever", "fps":0, "wait":2.5, "speed":1, "font":"fonts/alterebro-pixel-font.ttf", "size":16, "baseline":4 }, {"module":"animations.heartbeat", "duration":30.0} ] } }
{ "tkdisplay":{ "width":32, "height":16, "scale":8 }, "leddisplay":{ "port":"/dev/ttyUSB0", "speed":2000000 }, "animator":{ "queue":256, "fps":25, "loop":true, "animations": [ {"module":"animations.rainbow", "duration":30.0}, { "module": "animations.tweet", "duration": 30.0, "auth":{ "oauth":{ "consumer_key":"", "consumer_secret":"", "oauth_token":"", "oauth_secret":"" } }, "track":"whatever", "fps":0, "wait":2.5, "speed":1, "font":"fonts/alterebro-pixel-font.ttf", "size":16, "baseline":4 }, {"module":"animations.heartbeat", "duration":30.0} ] } }
Remove basic auth from configuration sample
Remove basic auth from configuration sample
JSON
mit
nlehuen/led_display
json
## Code Before: { "tkdisplay":{ "width":32, "height":16, "scale":8 }, "leddisplay":{ "port":"/dev/ttyUSB0", "speed":2000000 }, "animator":{ "queue":256, "fps":25, "loop":true, "animations": [ {"module":"animations.rainbow", "duration":30.0}, { "module": "animations.tweet", "duration": 30.0, "auth":{ "basic":{ "login":"XXXXXX", "password":"YYYYYY" }, "oauth":{ "consumer_key":"", "consumer_secret":"", "oauth_token":"", "oauth_secret":"" } }, "track":"whatever", "fps":0, "wait":2.5, "speed":1, "font":"fonts/alterebro-pixel-font.ttf", "size":16, "baseline":4 }, {"module":"animations.heartbeat", "duration":30.0} ] } } ## Instruction: Remove basic auth from configuration sample ## Code After: { "tkdisplay":{ "width":32, "height":16, "scale":8 }, "leddisplay":{ "port":"/dev/ttyUSB0", "speed":2000000 }, "animator":{ "queue":256, "fps":25, "loop":true, "animations": [ {"module":"animations.rainbow", "duration":30.0}, { "module": "animations.tweet", "duration": 30.0, "auth":{ "oauth":{ "consumer_key":"", "consumer_secret":"", "oauth_token":"", "oauth_secret":"" } }, "track":"whatever", "fps":0, "wait":2.5, "speed":1, "font":"fonts/alterebro-pixel-font.ttf", "size":16, "baseline":4 }, {"module":"animations.heartbeat", "duration":30.0} ] } }
{ "tkdisplay":{ "width":32, "height":16, "scale":8 }, "leddisplay":{ "port":"/dev/ttyUSB0", "speed":2000000 }, "animator":{ "queue":256, "fps":25, "loop":true, "animations": [ {"module":"animations.rainbow", "duration":30.0}, { "module": "animations.tweet", "duration": 30.0, "auth":{ - "basic":{ - "login":"XXXXXX", - "password":"YYYYYY" - }, "oauth":{ "consumer_key":"", "consumer_secret":"", "oauth_token":"", "oauth_secret":"" } }, "track":"whatever", "fps":0, "wait":2.5, "speed":1, "font":"fonts/alterebro-pixel-font.ttf", "size":16, "baseline":4 }, {"module":"animations.heartbeat", "duration":30.0} ] } }
4
0.093023
0
4
4bd121549168c1ecff7cdda43309fb85ff35bab2
src/js/background/lib/launch.js
src/js/background/lib/launch.js
import {exec} from 'child_process'; import {isAbsolute} from 'path'; function launch(path, options = {}) { if(!isAbsolute(path)) { return new Error('Application path "%s" is not absolute.', path); } if(!options instanceof Object) { return new Error('Option passed to launch must be an instance of Object, got ', typeof options); } if(!options.detached instanceof Boolean) { return new Error('Option key \'detached\' must an instance of Boolean, got ', typeof options.detached); } return exec(path, {detached: options.detached || true}, (err, stdout, stderr) => { if(err) { console.log(stderr); } }); } module.exports = launch;
import {exec} from 'child_process'; import {isAbsolute} from 'path'; function launch(path, options = {}) { if(!isAbsolute(path)) { throw new Error('Application path "%s" is not absolute.', path); } if(!options instanceof Object) { throw new Error('Option passed to launch must be an instance of Object, got ', typeof options); } if(!options.detached instanceof Boolean) { throw new Error('Option key \'detached\' must an instance of Boolean, got ', typeof options.detached); } return exec(path, {detached: options.detached || true}, (err, stdout, stderr) => { if(err) { console.log(stderr); } }); } module.exports = launch;
Fix throw error instead of returning
Fix throw error instead of returning
JavaScript
mit
simonlovesyou/AutoRobot
javascript
## Code Before: import {exec} from 'child_process'; import {isAbsolute} from 'path'; function launch(path, options = {}) { if(!isAbsolute(path)) { return new Error('Application path "%s" is not absolute.', path); } if(!options instanceof Object) { return new Error('Option passed to launch must be an instance of Object, got ', typeof options); } if(!options.detached instanceof Boolean) { return new Error('Option key \'detached\' must an instance of Boolean, got ', typeof options.detached); } return exec(path, {detached: options.detached || true}, (err, stdout, stderr) => { if(err) { console.log(stderr); } }); } module.exports = launch; ## Instruction: Fix throw error instead of returning ## Code After: import {exec} from 'child_process'; import {isAbsolute} from 'path'; function launch(path, options = {}) { if(!isAbsolute(path)) { throw new Error('Application path "%s" is not absolute.', path); } if(!options instanceof Object) { throw new Error('Option passed to launch must be an instance of Object, got ', typeof options); } if(!options.detached instanceof Boolean) { throw new Error('Option key \'detached\' must an instance of Boolean, got ', typeof options.detached); } return exec(path, {detached: options.detached || true}, (err, stdout, stderr) => { if(err) { console.log(stderr); } }); } module.exports = launch;
import {exec} from 'child_process'; import {isAbsolute} from 'path'; function launch(path, options = {}) { if(!isAbsolute(path)) { - return new Error('Application path "%s" is not absolute.', path); ? ^^^^^ + throw new Error('Application path "%s" is not absolute.', path); ? ++ ^^ } if(!options instanceof Object) { - return new Error('Option passed to launch must be an instance of Object, got ', typeof options); ? ^^^^^ + throw new Error('Option passed to launch must be an instance of Object, got ', typeof options); ? ++ ^^ } if(!options.detached instanceof Boolean) { - return new Error('Option key \'detached\' must an instance of Boolean, got ', typeof options.detached); ? ^^^^^ + throw new Error('Option key \'detached\' must an instance of Boolean, got ', typeof options.detached); ? ++ ^^ } return exec(path, {detached: options.detached || true}, (err, stdout, stderr) => { if(err) { console.log(stderr); } }); } module.exports = launch;
6
0.26087
3
3
6b2868588077ae6f9d1a732d60f1246776941404
app/policies/beach_api_core/entity_policy.rb
app/policies/beach_api_core/entity_policy.rb
module BeachApiCore class EntityPolicy < ApplicationPolicy def show? record.user == user end def destroy? record.user == user end def lookup? record.user == user end end end
module BeachApiCore class EntityPolicy < ApplicationPolicy alias show? entity_user? alias destroy? entity_user? alias lookup? entity_user? alias create? entity_user? alias index? entity_user? private def entity_user? record.user == user end end end
Add create? and index? to entity policy
Add create? and index? to entity policy
Ruby
mit
beachio/beach-api-core,beachio/beach-api-core,beachio/beach-api-core
ruby
## Code Before: module BeachApiCore class EntityPolicy < ApplicationPolicy def show? record.user == user end def destroy? record.user == user end def lookup? record.user == user end end end ## Instruction: Add create? and index? to entity policy ## Code After: module BeachApiCore class EntityPolicy < ApplicationPolicy alias show? entity_user? alias destroy? entity_user? alias lookup? entity_user? alias create? entity_user? alias index? entity_user? private def entity_user? record.user == user end end end
module BeachApiCore class EntityPolicy < ApplicationPolicy - def show? - record.user == user - end + alias show? entity_user? + alias destroy? entity_user? + alias lookup? entity_user? + alias create? entity_user? + alias index? entity_user? + private - def destroy? - record.user == user - end - def lookup? + def entity_user? record.user == user end end end
14
0.933333
7
7
bd8847c123f450bae136db4f98b13bd85b9bd8f6
test/unit/Connection/Settings.test.php
test/unit/Connection/Settings.test.php
<?php namespace Gt\Database\Connection; class SettingsTest extends \PHPUnit_Framework_TestCase { }#
<?php namespace Gt\Database\Connection; class SettingsTest extends \PHPUnit_Framework_TestCase { public function testPropertiesSet() { $details = [ "dataSource" => "test-data-source", "database" => "test-database", "hostname" => "test-hostname", "username" => "test-username", "password" => "test-password", ]; $settings = new Settings( $details["dataSource"], $details["database"], $details["hostname"], $details["username"], $details["password"] ); $this->assertEquals($details["dataSource"], $settings->getDataSource()); $this->assertEquals($details["database"], $settings->getDatabase()); $this->assertEquals($details["hostname"], $settings->getHostname()); $this->assertEquals($details["username"], $settings->getUsername()); $this->assertEquals($details["password"], $settings->getPassword()); } }#
Test properties are set on Settings object.
Test properties are set on Settings object.
PHP
mit
j4m3s/Database
php
## Code Before: <?php namespace Gt\Database\Connection; class SettingsTest extends \PHPUnit_Framework_TestCase { }# ## Instruction: Test properties are set on Settings object. ## Code After: <?php namespace Gt\Database\Connection; class SettingsTest extends \PHPUnit_Framework_TestCase { public function testPropertiesSet() { $details = [ "dataSource" => "test-data-source", "database" => "test-database", "hostname" => "test-hostname", "username" => "test-username", "password" => "test-password", ]; $settings = new Settings( $details["dataSource"], $details["database"], $details["hostname"], $details["username"], $details["password"] ); $this->assertEquals($details["dataSource"], $settings->getDataSource()); $this->assertEquals($details["database"], $settings->getDatabase()); $this->assertEquals($details["hostname"], $settings->getHostname()); $this->assertEquals($details["username"], $settings->getUsername()); $this->assertEquals($details["password"], $settings->getPassword()); } }#
<?php namespace Gt\Database\Connection; class SettingsTest extends \PHPUnit_Framework_TestCase { + public function testPropertiesSet() { + $details = [ + "dataSource" => "test-data-source", + "database" => "test-database", + "hostname" => "test-hostname", + "username" => "test-username", + "password" => "test-password", + ]; + + $settings = new Settings( + $details["dataSource"], + $details["database"], + $details["hostname"], + $details["username"], + $details["password"] + ); + + $this->assertEquals($details["dataSource"], $settings->getDataSource()); + $this->assertEquals($details["database"], $settings->getDatabase()); + $this->assertEquals($details["hostname"], $settings->getHostname()); + $this->assertEquals($details["username"], $settings->getUsername()); + $this->assertEquals($details["password"], $settings->getPassword()); + } + }#
24
4
24
0
2b5c186337bcb396f630c0b86938e43eb06d3e5b
tests/test_i10knobs.py
tests/test_i10knobs.py
from pkg_resources import require require("cothread") require("mock") import unittest import mock import sys # Mock out catools as it requires EPICS binaries at import sys.modules['cothread.catools'] = mock.MagicMock() import cothread import sys import os from PyQt4 import QtGui sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) import i10knobs class I10KnobsTest(unittest.TestCase): def test_init(self): cothread.iqt() window = QtGui.QMainWindow() _ = i10knobs.KnobsUi(window)
from pkg_resources import require require("cothread") require("mock") import unittest import mock import sys # Mock out catools as it requires EPICS binaries at import sys.modules['cothread.catools'] = mock.MagicMock() import cothread import sys import os from PyQt4 import QtGui sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) import i10knobs class I10KnobsTest(unittest.TestCase): def test_import(self): pass def test_init(self): cothread.iqt() window = QtGui.QMainWindow() _ = i10knobs.KnobsUi(window)
Add test checking only for imports
Add test checking only for imports
Python
apache-2.0
dls-controls/i10switching,dls-controls/i10switching
python
## Code Before: from pkg_resources import require require("cothread") require("mock") import unittest import mock import sys # Mock out catools as it requires EPICS binaries at import sys.modules['cothread.catools'] = mock.MagicMock() import cothread import sys import os from PyQt4 import QtGui sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) import i10knobs class I10KnobsTest(unittest.TestCase): def test_init(self): cothread.iqt() window = QtGui.QMainWindow() _ = i10knobs.KnobsUi(window) ## Instruction: Add test checking only for imports ## Code After: from pkg_resources import require require("cothread") require("mock") import unittest import mock import sys # Mock out catools as it requires EPICS binaries at import sys.modules['cothread.catools'] = mock.MagicMock() import cothread import sys import os from PyQt4 import QtGui sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) import i10knobs class I10KnobsTest(unittest.TestCase): def test_import(self): pass def test_init(self): cothread.iqt() window = QtGui.QMainWindow() _ = i10knobs.KnobsUi(window)
from pkg_resources import require require("cothread") require("mock") import unittest import mock import sys # Mock out catools as it requires EPICS binaries at import sys.modules['cothread.catools'] = mock.MagicMock() import cothread import sys import os from PyQt4 import QtGui sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) import i10knobs class I10KnobsTest(unittest.TestCase): + def test_import(self): + pass + def test_init(self): cothread.iqt() window = QtGui.QMainWindow() _ = i10knobs.KnobsUi(window)
3
0.115385
3
0
6544a0c8c5f1d5992bece404c220ea07907990cd
services/libratometrics.rb
services/libratometrics.rb
class Service::LibratoMetrics < Service def receive_logs values = Hash.new { |h,k| h[k] = 0 } payload[:events].each do |event| time = Time.parse(event[:received_at]) time = time.to_i - (time.to_i % 60) values[time] += 1 end gauges = values.collect do |time, count| { :name => settings[:name], :value => count, :measure_time => time } end http.basic_auth settings[:user], settings[:token] res = http_post 'https://metrics-api.librato.com/v1/metrics.json' do |req| req.headers[:content_type] = 'application/json' req.body = { :gauges => gauges }.to_json end end end
class Service::LibratoMetrics < Service def receive_logs # values[hostname][time] values = Hash.new do |h,k| h[k] = Hash.new do |i,l| i[l] = 0 end end payload[:events].each do |event| time = Time.parse(event[:received_at]) time = time.to_i - (time.to_i % 60) values[event[:source_name]][time] += 1 end gauges = values.collect do |source_name, hash| hash.collect do |time, count| { :name => settings[:name], :source => source_name, :value => count, :measure_time => time } end end.flatten http.basic_auth settings[:user], settings[:token] res = http_post 'https://metrics-api.librato.com/v1/metrics.json' do |req| req.headers[:content_type] = 'application/json' req.body = { :gauges => gauges }.to_json end end end
Send the source for librato metrics
Send the source for librato metrics
Ruby
mit
zakwilson/papertrail-services,papertrail/papertrail-services
ruby
## Code Before: class Service::LibratoMetrics < Service def receive_logs values = Hash.new { |h,k| h[k] = 0 } payload[:events].each do |event| time = Time.parse(event[:received_at]) time = time.to_i - (time.to_i % 60) values[time] += 1 end gauges = values.collect do |time, count| { :name => settings[:name], :value => count, :measure_time => time } end http.basic_auth settings[:user], settings[:token] res = http_post 'https://metrics-api.librato.com/v1/metrics.json' do |req| req.headers[:content_type] = 'application/json' req.body = { :gauges => gauges }.to_json end end end ## Instruction: Send the source for librato metrics ## Code After: class Service::LibratoMetrics < Service def receive_logs # values[hostname][time] values = Hash.new do |h,k| h[k] = Hash.new do |i,l| i[l] = 0 end end payload[:events].each do |event| time = Time.parse(event[:received_at]) time = time.to_i - (time.to_i % 60) values[event[:source_name]][time] += 1 end gauges = values.collect do |source_name, hash| hash.collect do |time, count| { :name => settings[:name], :source => source_name, :value => count, :measure_time => time } end end.flatten http.basic_auth settings[:user], settings[:token] res = http_post 'https://metrics-api.librato.com/v1/metrics.json' do |req| req.headers[:content_type] = 'application/json' req.body = { :gauges => gauges }.to_json end end end
class Service::LibratoMetrics < Service def receive_logs + # values[hostname][time] - values = Hash.new { |h,k| h[k] = 0 } ? ^ ----------- + values = Hash.new do |h,k| ? ^^ + h[k] = Hash.new do |i,l| + i[l] = 0 + end + end payload[:events].each do |event| time = Time.parse(event[:received_at]) time = time.to_i - (time.to_i % 60) - values[time] += 1 + values[event[:source_name]][time] += 1 end - gauges = values.collect do |time, count| ? ^^ ^^^^^ + gauges = values.collect do |source_name, hash| ? ^^^^^^^^^ ^^^^ + hash.collect do |time, count| - { + { ? ++ - :name => settings[:name], + :name => settings[:name], ? ++ + :source => source_name, - :value => count, + :value => count, ? ++ - :measure_time => time + :measure_time => time ? ++ - } + } ? ++ - end + end ? ++ + end.flatten http.basic_auth settings[:user], settings[:token] res = http_post 'https://metrics-api.librato.com/v1/metrics.json' do |req| req.headers[:content_type] = 'application/json' req.body = { :gauges => gauges }.to_json end end end
26
0.896552
17
9
bd878da54d9816779303a0e7ea042c9adaeab993
runserver.py
runserver.py
from optparse import OptionParser from sys import stderr import pytz from werkzeug import script from werkzeug.script import make_runserver from firmant.wsgi import Application from firmant.utils import mod_to_dict from firmant.utils import get_module parser = OptionParser() parser.add_option('-s', '--settings', dest='settings', type='string', default='settings', help='the settings module to use for the test server.') parser.add_option('-p', '--port', dest='port', type='int', default='8080', help='the port on which to run the test server.') parser.add_option('-H', '--host', dest='host', type='string', default='', help='the host to which the server should bind.') (options, args) = parser.parse_args() try: settings = mod_to_dict(get_module(options.settings)) except ImportError: stderr.write('Please specify a settings module that can be imported.\n') exit(1) def make_app(): return Application(settings) action_runserver = script.make_runserver(make_app, use_reloader=False) if __name__ == '__main__': print 'Starting local WSGI Server' print 'Please do not use this server for production' script.run()
from wsgiref.simple_server import make_server from optparse import OptionParser from sys import stderr import socket import pytz from firmant.wsgi import Application from firmant.utils import mod_to_dict from firmant.utils import get_module parser = OptionParser() parser.add_option('-s', '--settings', dest='settings', type='string', default='settings', help='the settings module to use for the test server.') parser.add_option('-p', '--port', dest='port', type='int', default='8080', help='the port on which to run the test server.') parser.add_option('-H', '--host', dest='host', type='string', default='', help='the host to which the server should bind.') (options, args) = parser.parse_args() try: settings = mod_to_dict(get_module(options.settings)) except ImportError: stderr.write('Please specify a settings module that can be imported.\n') exit(1) try: server = make_server(options.host, options.port, Application(settings)) except socket.error: stderr.write('Please specify a host/port to which you may bind (the ' 'defaults usually work well)\n') exit(1) if __name__ == '__main__': print 'Starting local WSGI Server' print 'Please do not use this server for production' print 'Settings: %s' % options.settings print 'Bound to: http://%s:%i/' % (options.host, options.port) print '============================================' server.serve_forever()
Revert to old server script (worked better).
Revert to old server script (worked better). The old script did not auto-reload and did display requests made to the server. The werkzeug-based script's auto-reload feature would mess with the import magic that powers plugins.
Python
bsd-3-clause
rescrv/firmant
python
## Code Before: from optparse import OptionParser from sys import stderr import pytz from werkzeug import script from werkzeug.script import make_runserver from firmant.wsgi import Application from firmant.utils import mod_to_dict from firmant.utils import get_module parser = OptionParser() parser.add_option('-s', '--settings', dest='settings', type='string', default='settings', help='the settings module to use for the test server.') parser.add_option('-p', '--port', dest='port', type='int', default='8080', help='the port on which to run the test server.') parser.add_option('-H', '--host', dest='host', type='string', default='', help='the host to which the server should bind.') (options, args) = parser.parse_args() try: settings = mod_to_dict(get_module(options.settings)) except ImportError: stderr.write('Please specify a settings module that can be imported.\n') exit(1) def make_app(): return Application(settings) action_runserver = script.make_runserver(make_app, use_reloader=False) if __name__ == '__main__': print 'Starting local WSGI Server' print 'Please do not use this server for production' script.run() ## Instruction: Revert to old server script (worked better). The old script did not auto-reload and did display requests made to the server. The werkzeug-based script's auto-reload feature would mess with the import magic that powers plugins. ## Code After: from wsgiref.simple_server import make_server from optparse import OptionParser from sys import stderr import socket import pytz from firmant.wsgi import Application from firmant.utils import mod_to_dict from firmant.utils import get_module parser = OptionParser() parser.add_option('-s', '--settings', dest='settings', type='string', default='settings', help='the settings module to use for the test server.') parser.add_option('-p', '--port', dest='port', type='int', default='8080', help='the port on which to run the test server.') parser.add_option('-H', '--host', dest='host', type='string', default='', help='the host to which the server should bind.') (options, args) = parser.parse_args() try: settings = mod_to_dict(get_module(options.settings)) except ImportError: stderr.write('Please specify a settings module that can be imported.\n') exit(1) try: server = make_server(options.host, options.port, Application(settings)) except socket.error: stderr.write('Please specify a host/port to which you may bind (the ' 'defaults usually work well)\n') exit(1) if __name__ == '__main__': print 'Starting local WSGI Server' print 'Please do not use this server for production' print 'Settings: %s' % options.settings print 'Bound to: http://%s:%i/' % (options.host, options.port) print '============================================' server.serve_forever()
+ from wsgiref.simple_server import make_server from optparse import OptionParser from sys import stderr + import socket import pytz - from werkzeug import script - from werkzeug.script import make_runserver from firmant.wsgi import Application from firmant.utils import mod_to_dict from firmant.utils import get_module parser = OptionParser() parser.add_option('-s', '--settings', dest='settings', type='string', default='settings', help='the settings module to use for the test server.') parser.add_option('-p', '--port', dest='port', type='int', default='8080', help='the port on which to run the test server.') parser.add_option('-H', '--host', dest='host', type='string', default='', help='the host to which the server should bind.') (options, args) = parser.parse_args() try: settings = mod_to_dict(get_module(options.settings)) except ImportError: stderr.write('Please specify a settings module that can be imported.\n') exit(1) - def make_app(): - return Application(settings) + try: + server = make_server(options.host, options.port, Application(settings)) + except socket.error: + stderr.write('Please specify a host/port to which you may bind (the ' + 'defaults usually work well)\n') + exit(1) - action_runserver = script.make_runserver(make_app, use_reloader=False) if __name__ == '__main__': print 'Starting local WSGI Server' print 'Please do not use this server for production' - script.run() + print 'Settings: %s' % options.settings + print 'Bound to: http://%s:%i/' % (options.host, options.port) + print '============================================' + server.serve_forever()
18
0.486486
12
6
630d24c79df443ed42778c2f124c91f20c84b93b
src/Surfnet/ServiceProviderDashboard/Infrastructure/DashboardBundle/Resources/views/EntityDetail/detailAttributeField.html.twig
src/Surfnet/ServiceProviderDashboard/Infrastructure/DashboardBundle/Resources/views/EntityDetail/detailAttributeField.html.twig
{% if value and value.motivation is not null %} <h3 class="attribute-title">{{ label }}</h3> <div class="detail attribute"> {% if informationPopup is defined %} <span data-tippy-content="{{ informationPopup|trans }}" class="help-button"> <i class="fa fa-question-circle"></i> </span> {% endif %} {% if value.motivation is not empty %} <label>{{ 'entity.detail.attribute.motivation'|trans }}</label> <span>{{ value.motivation }}</span> {% else %} <span>{{ 'entity.detail.attribute.no_motivation_set'|trans }}</span> {% endif %} </div> {% endif %}
{% if value and value.motivation is not null %} <h3 class="attribute-title">{{ label }}</h3> <div class="detail attribute"> {% if informationPopup is defined %} <span data-tippy-content="{{ informationPopup|trans }}" class="help-button"> <i class="fa fa-question-circle"></i> </span> {% endif %} {% if value.motivation is not empty %} <span>{{ value.motivation }}</span> {% else %} <span>{{ 'entity.detail.attribute.no_motivation_set'|trans }}</span> {% endif %} </div> {% endif %}
Remove motivation placeholder from view entity page
Remove motivation placeholder from view entity page
Twig
apache-2.0
SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard
twig
## Code Before: {% if value and value.motivation is not null %} <h3 class="attribute-title">{{ label }}</h3> <div class="detail attribute"> {% if informationPopup is defined %} <span data-tippy-content="{{ informationPopup|trans }}" class="help-button"> <i class="fa fa-question-circle"></i> </span> {% endif %} {% if value.motivation is not empty %} <label>{{ 'entity.detail.attribute.motivation'|trans }}</label> <span>{{ value.motivation }}</span> {% else %} <span>{{ 'entity.detail.attribute.no_motivation_set'|trans }}</span> {% endif %} </div> {% endif %} ## Instruction: Remove motivation placeholder from view entity page ## Code After: {% if value and value.motivation is not null %} <h3 class="attribute-title">{{ label }}</h3> <div class="detail attribute"> {% if informationPopup is defined %} <span data-tippy-content="{{ informationPopup|trans }}" class="help-button"> <i class="fa fa-question-circle"></i> </span> {% endif %} {% if value.motivation is not empty %} <span>{{ value.motivation }}</span> {% else %} <span>{{ 'entity.detail.attribute.no_motivation_set'|trans }}</span> {% endif %} </div> {% endif %}
{% if value and value.motivation is not null %} <h3 class="attribute-title">{{ label }}</h3> <div class="detail attribute"> {% if informationPopup is defined %} <span data-tippy-content="{{ informationPopup|trans }}" class="help-button"> <i class="fa fa-question-circle"></i> </span> {% endif %} {% if value.motivation is not empty %} - <label>{{ 'entity.detail.attribute.motivation'|trans }}</label> <span>{{ value.motivation }}</span> {% else %} <span>{{ 'entity.detail.attribute.no_motivation_set'|trans }}</span> {% endif %} </div> {% endif %}
1
0.058824
0
1
1af2795907b3a686d9bce4bdc94b89f3678dd1af
corehq/apps/sms/migrations/0049_auto_enable_turnio_ff.py
corehq/apps/sms/migrations/0049_auto_enable_turnio_ff.py
from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend in SQLTurnWhatsAppBackend.active_objects.all(): domain = backend.domain TURN_IO_BACKEND.set(item=domain, enabled=True, namespace=NAMESPACE_DOMAIN) def noop(apps, schema_editor): pass class Migration(migrations.Migration): dependencies = [ ('sms', '0048_delete_sqlicdsbackend'), ] operations = [ migrations.RunPython(auto_enable_turnio_ff_for_certain_domains, reverse_code=noop), ]
from django.db import migrations from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend') for backend in SQLTurnWhatsAppBackend.objects.all(): # Check for backend.deleted to account for active_objects if not backend.deleted: domain = backend.domain TURN_IO_BACKEND.set(item=domain, enabled=True, namespace=NAMESPACE_DOMAIN) def noop(apps, schema_editor): pass class Migration(migrations.Migration): dependencies = [ ('sms', '0048_delete_sqlicdsbackend'), ] operations = [ migrations.RunPython(auto_enable_turnio_ff_for_certain_domains, reverse_code=noop), ]
Use historical model in migration, not directly imported model
Use historical model in migration, not directly imported model
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
python
## Code Before: from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend in SQLTurnWhatsAppBackend.active_objects.all(): domain = backend.domain TURN_IO_BACKEND.set(item=domain, enabled=True, namespace=NAMESPACE_DOMAIN) def noop(apps, schema_editor): pass class Migration(migrations.Migration): dependencies = [ ('sms', '0048_delete_sqlicdsbackend'), ] operations = [ migrations.RunPython(auto_enable_turnio_ff_for_certain_domains, reverse_code=noop), ] ## Instruction: Use historical model in migration, not directly imported model ## Code After: from django.db import migrations from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend') for backend in SQLTurnWhatsAppBackend.objects.all(): # Check for backend.deleted to account for active_objects if not backend.deleted: domain = backend.domain TURN_IO_BACKEND.set(item=domain, enabled=True, namespace=NAMESPACE_DOMAIN) def noop(apps, schema_editor): pass class Migration(migrations.Migration): dependencies = [ ('sms', '0048_delete_sqlicdsbackend'), ] operations = [ migrations.RunPython(auto_enable_turnio_ff_for_certain_domains, reverse_code=noop), ]
from django.db import migrations - from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): + SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend') + - for backend in SQLTurnWhatsAppBackend.active_objects.all(): ? ------- + for backend in SQLTurnWhatsAppBackend.objects.all(): + # Check for backend.deleted to account for active_objects + if not backend.deleted: - domain = backend.domain + domain = backend.domain ? ++++ - TURN_IO_BACKEND.set(item=domain, enabled=True, namespace=NAMESPACE_DOMAIN) + TURN_IO_BACKEND.set(item=domain, enabled=True, namespace=NAMESPACE_DOMAIN) ? ++++ def noop(apps, schema_editor): pass class Migration(migrations.Migration): dependencies = [ ('sms', '0048_delete_sqlicdsbackend'), ] operations = [ migrations.RunPython(auto_enable_turnio_ff_for_certain_domains, reverse_code=noop), ]
11
0.44
7
4
12093c3076f0a08bd6cefcda661116df1e7f5220
magnum/common/pythonk8sclient/README.rst
magnum/common/pythonk8sclient/README.rst
========================== Kubernetes API client code ========================== Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1beta3: * Clone the Kubernetes repo. git clone https://github.com/GoogleCloudPlatform/kubernetes.git * Clone the swagger-codegen repo. git clone https://github.com/swagger-api/swagger-codegen.git * Run below command to generate the API client code for Kubernetes. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ./kubernetes/api/swagger-spec/v1beta3.json -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode.
========================== Kubernetes API client code ========================== Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Prerequisites ------------- You need to install required packages for swagger codegen. Please refer to `<https://github.com/swagger-api/swagger-codegen#prerequisites>`_ Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1: * Clone the Magnum repo:: git clone https://github.com/openstack/magnum.git * Clone the swagger-codegen repo. It is recommended to checkout a release (e.g. v2.1.3) instead of using the master branch:: git clone https://github.com/swagger-api/swagger-codegen.git cd swagger-codegen/ git checkout tags/v2.1.3 * Build swagger-codegen:: mvn package * Run below command to generate the API client code for Kubernetes:: cd .. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ generate \ -i ./magnum/magnum/common/pythonk8sclient/templates/v1.json \ -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode.
Update documentation for generating k8s v1 client
Update documentation for generating k8s v1 client Partially-Implements: blueprint kubernetes-v1 Change-Id: I30e7d17ce00619c7519a7271837bb8721c65ed5f
reStructuredText
apache-2.0
dimtruck/magnum,eshijia/magnum,mjbrewer/testindex,mjbrewer/testindex,Tennyson53/magnum,eshijia/magnum,ArchiFleKs/magnum,Tennyson53/magnum,jay-lau/magnum,openstack/magnum,openstack/magnum,mjbrewer/testindex,dimtruck/magnum,ArchiFleKs/magnum
restructuredtext
## Code Before: ========================== Kubernetes API client code ========================== Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1beta3: * Clone the Kubernetes repo. git clone https://github.com/GoogleCloudPlatform/kubernetes.git * Clone the swagger-codegen repo. git clone https://github.com/swagger-api/swagger-codegen.git * Run below command to generate the API client code for Kubernetes. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ./kubernetes/api/swagger-spec/v1beta3.json -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode. ## Instruction: Update documentation for generating k8s v1 client Partially-Implements: blueprint kubernetes-v1 Change-Id: I30e7d17ce00619c7519a7271837bb8721c65ed5f ## Code After: ========================== Kubernetes API client code ========================== Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Prerequisites ------------- You need to install required packages for swagger codegen. Please refer to `<https://github.com/swagger-api/swagger-codegen#prerequisites>`_ Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1: * Clone the Magnum repo:: git clone https://github.com/openstack/magnum.git * Clone the swagger-codegen repo. It is recommended to checkout a release (e.g. v2.1.3) instead of using the master branch:: git clone https://github.com/swagger-api/swagger-codegen.git cd swagger-codegen/ git checkout tags/v2.1.3 * Build swagger-codegen:: mvn package * Run below command to generate the API client code for Kubernetes:: cd .. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ generate \ -i ./magnum/magnum/common/pythonk8sclient/templates/v1.json \ -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode.
========================== Kubernetes API client code ========================== Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec + Prerequisites + ------------- + + You need to install required packages for swagger codegen. Please refer to + `<https://github.com/swagger-api/swagger-codegen#prerequisites>`_ + Steps to generate API client code --------------------------------- - Steps to generate Kubernetes client code for v1beta3: ? ----- + Steps to generate Kubernetes client code for v1: - * Clone the Kubernetes repo. + * Clone the Magnum repo:: - git clone https://github.com/GoogleCloudPlatform/kubernetes.git + git clone https://github.com/openstack/magnum.git - * Clone the swagger-codegen repo. + * Clone the swagger-codegen repo. It is recommended to checkout a release + (e.g. v2.1.3) instead of using the master branch:: - git clone https://github.com/swagger-api/swagger-codegen.git + git clone https://github.com/swagger-api/swagger-codegen.git ? ++ + cd swagger-codegen/ + git checkout tags/v2.1.3 - * Run below command to generate the API client code for Kubernetes. + * Build swagger-codegen:: - java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ./kubernetes/api/swagger-spec/v1beta3.json -l python -o ./KubernetesClientCode + mvn package + + * Run below command to generate the API client code for Kubernetes:: + + cd .. + java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ + generate \ + -i ./magnum/magnum/common/pythonk8sclient/templates/v1.json \ + -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode.
31
0.885714
24
7
ecf04892332f85bc6f7bc184eee381fc4aadc804
roles/keitaro.php/tasks/main.yml
roles/keitaro.php/tasks/main.yml
- name: Install php extensions yum: name: - "{{php_version}}" - "{{php_version}}-php-bcmath" - "{{php_version}}-php-devel" - "{{php_version}}-php-mysqlnd" - "{{php_version}}-php-opcache" - "{{php_version}}-php-pecl-redis" - "{{php_version}}-php-mbstring" - "{{php_version}}-php-pear" - "{{php_version}}-php-xml" - "{{php_version}}-php-pecl-zip" - "{{php_version}}-php-ioncube-loader" state: installed - name: Link php directories and php binary file: src: "{{item.from}}" dest: "{{item.to}}" state: link with_items: - {from: "/usr/bin/{{php_version}}", to: '/usr/bin/php'} - {from: "/opt/remi/{{php_version}}/root/bin/php-config", to: '/usr/bin/php-config'} - {from: "/etc/opt/remi/{{php_version}}", to: '/etc/php'} - {from: "/var/opt/remi/{{php_version}}/log/php-fpm", to: '/var/log/php-fpm'} - name: Tune php include: tune-php.yml
- name: Install php extensions yum: name: - "{{php_version}}" - "{{php_version}}-php-bcmath" - "{{php_version}}-php-devel" - "{{php_version}}-php-mysqlnd" - "{{php_version}}-php-opcache" - "{{php_version}}-php-pecl-redis" - "{{php_version}}-php-mbstring" - "{{php_version}}-php-pear" - "{{php_version}}-php-xml" - "{{php_version}}-php-pecl-zip" - "{{php_version}}-php-ioncube-loader" state: installed - name: Link php directories and php binary file: src: "{{item.from}}" dest: "{{item.to}}" state: link with_items: - {from: "/usr/bin/{{php_version}}", to: '/usr/bin/php'} - {from: "/opt/remi/{{php_version}}/root/bin/php-config", to: '/usr/bin/php-config'} - {from: "/etc/opt/remi/{{php_version}}", to: '/etc/php'} - name: Tune php include: tune-php.yml
Make symling to php-fpm log after installing php-fpm
Make symling to php-fpm log after installing php-fpm
YAML
mit
keitarocorp/centos_provision,keitarocorp/centos_provision
yaml
## Code Before: - name: Install php extensions yum: name: - "{{php_version}}" - "{{php_version}}-php-bcmath" - "{{php_version}}-php-devel" - "{{php_version}}-php-mysqlnd" - "{{php_version}}-php-opcache" - "{{php_version}}-php-pecl-redis" - "{{php_version}}-php-mbstring" - "{{php_version}}-php-pear" - "{{php_version}}-php-xml" - "{{php_version}}-php-pecl-zip" - "{{php_version}}-php-ioncube-loader" state: installed - name: Link php directories and php binary file: src: "{{item.from}}" dest: "{{item.to}}" state: link with_items: - {from: "/usr/bin/{{php_version}}", to: '/usr/bin/php'} - {from: "/opt/remi/{{php_version}}/root/bin/php-config", to: '/usr/bin/php-config'} - {from: "/etc/opt/remi/{{php_version}}", to: '/etc/php'} - {from: "/var/opt/remi/{{php_version}}/log/php-fpm", to: '/var/log/php-fpm'} - name: Tune php include: tune-php.yml ## Instruction: Make symling to php-fpm log after installing php-fpm ## Code After: - name: Install php extensions yum: name: - "{{php_version}}" - "{{php_version}}-php-bcmath" - "{{php_version}}-php-devel" - "{{php_version}}-php-mysqlnd" - "{{php_version}}-php-opcache" - "{{php_version}}-php-pecl-redis" - "{{php_version}}-php-mbstring" - "{{php_version}}-php-pear" - "{{php_version}}-php-xml" - "{{php_version}}-php-pecl-zip" - "{{php_version}}-php-ioncube-loader" state: installed - name: Link php directories and php binary file: src: "{{item.from}}" dest: "{{item.to}}" state: link with_items: - {from: "/usr/bin/{{php_version}}", to: '/usr/bin/php'} - {from: "/opt/remi/{{php_version}}/root/bin/php-config", to: '/usr/bin/php-config'} - {from: "/etc/opt/remi/{{php_version}}", to: '/etc/php'} - name: Tune php include: tune-php.yml
- name: Install php extensions yum: name: - "{{php_version}}" - "{{php_version}}-php-bcmath" - "{{php_version}}-php-devel" - "{{php_version}}-php-mysqlnd" - "{{php_version}}-php-opcache" - "{{php_version}}-php-pecl-redis" - "{{php_version}}-php-mbstring" - "{{php_version}}-php-pear" - "{{php_version}}-php-xml" - "{{php_version}}-php-pecl-zip" - "{{php_version}}-php-ioncube-loader" state: installed - name: Link php directories and php binary file: src: "{{item.from}}" dest: "{{item.to}}" state: link with_items: - {from: "/usr/bin/{{php_version}}", to: '/usr/bin/php'} - {from: "/opt/remi/{{php_version}}/root/bin/php-config", to: '/usr/bin/php-config'} - {from: "/etc/opt/remi/{{php_version}}", to: '/etc/php'} - - {from: "/var/opt/remi/{{php_version}}/log/php-fpm", to: '/var/log/php-fpm'} - name: Tune php include: tune-php.yml
1
0.033333
0
1
cfda4c5cc063df4a7594aa52673fe03719eccb07
setup.cfg
setup.cfg
[bumpversion] current_version = 1.3.8 commit = False tag = True [bdist_wheel] universal = true [tool:pytest] norecursedirs = build docs/_build *.egg .tox *.venv addopts = --verbose --tb=short --capture=no # show extra test summary info as specified by chars (f)ailed, (E)error, # (s)skipped, (x)failed, (X)passed. -rfEsxX --cov=pymemcache --cov-report=xml --cov-report=term-missing -m unit markers = unit integration benchmark [flake8] show-source = True [bumpversion:file:pymemcache/__init__.py]
[bumpversion] current_version = 1.3.8 commit = False tag = True [bdist_wheel] universal = true [tool:pytest] norecursedirs = build docs/_build *.egg .tox *.venv addopts = --verbose --tb=short --capture=no # show extra test summary info as specified by chars (f)ailed, (E)error, # (s)skipped, (x)failed, (X)passed. -rfEsxX --cov=pymemcache --cov-report=xml --cov-report=term-missing -m unit markers = unit integration benchmark [flake8] show-source = True max-line-length = 80 [bumpversion:file:pymemcache/__init__.py]
Make line length reqs explicit
Make line length reqs explicit
INI
apache-2.0
pinterest/pymemcache,sontek/pymemcache,pinterest/pymemcache,sontek/pymemcache,bwalks/pymemcache,ewdurbin/pymemcache
ini
## Code Before: [bumpversion] current_version = 1.3.8 commit = False tag = True [bdist_wheel] universal = true [tool:pytest] norecursedirs = build docs/_build *.egg .tox *.venv addopts = --verbose --tb=short --capture=no # show extra test summary info as specified by chars (f)ailed, (E)error, # (s)skipped, (x)failed, (X)passed. -rfEsxX --cov=pymemcache --cov-report=xml --cov-report=term-missing -m unit markers = unit integration benchmark [flake8] show-source = True [bumpversion:file:pymemcache/__init__.py] ## Instruction: Make line length reqs explicit ## Code After: [bumpversion] current_version = 1.3.8 commit = False tag = True [bdist_wheel] universal = true [tool:pytest] norecursedirs = build docs/_build *.egg .tox *.venv addopts = --verbose --tb=short --capture=no # show extra test summary info as specified by chars (f)ailed, (E)error, # (s)skipped, (x)failed, (X)passed. -rfEsxX --cov=pymemcache --cov-report=xml --cov-report=term-missing -m unit markers = unit integration benchmark [flake8] show-source = True max-line-length = 80 [bumpversion:file:pymemcache/__init__.py]
[bumpversion] current_version = 1.3.8 commit = False tag = True [bdist_wheel] universal = true [tool:pytest] norecursedirs = build docs/_build *.egg .tox *.venv addopts = --verbose --tb=short --capture=no # show extra test summary info as specified by chars (f)ailed, (E)error, # (s)skipped, (x)failed, (X)passed. -rfEsxX --cov=pymemcache --cov-report=xml --cov-report=term-missing -m unit markers = unit integration benchmark [flake8] show-source = True + max-line-length = 80 [bumpversion:file:pymemcache/__init__.py]
1
0.034483
1
0
1599bc03b0a1cd202836479fba2406457a17f118
user_map/tests/urls.py
user_map/tests/urls.py
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^user-map/', include('user_map.urls', namespace='user_map')) )
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^user-map/', include('user_map.urls', namespace='user_map')), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}, name='my_login', ), )
Add login url for testing.
Add login url for testing.
Python
lgpl-2.1
akbargumbira/django-user-map,akbargumbira/django-user-map,akbargumbira/django-user-map,akbargumbira/django-user-map
python
## Code Before: from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^user-map/', include('user_map.urls', namespace='user_map')) ) ## Instruction: Add login url for testing. ## Code After: from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^user-map/', include('user_map.urls', namespace='user_map')), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}, name='my_login', ), )
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', - url(r'^user-map/', include('user_map.urls', namespace='user_map')) + url(r'^user-map/', include('user_map.urls', namespace='user_map')), ? + + url(r'^login/$', + 'django.contrib.auth.views.login', + {'template_name': 'admin/login.html'}, + name='my_login', + ), )
7
1.166667
6
1
c1b6357c4d6876caa081af0799ec6c7a189ad13f
fabfile.py
fabfile.py
from fabric.api import * from fabric.contrib.console import confirm appengine_dir='appengine-web/src' goldquest_dir='src' def update(): # update to latest code from repo local('git pull') def test(): local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir)) # jslint # pychecker # run jasmine tests def compile(): # Minimize javascript using google closure. local("java -jar ~/bin/compiler.jar --js %(path)s/javascript/game.js --js_output_file %(path)s/javascript/game.min.js" % dict(path=appengine_dir)) def deploy_appengine(): local("appcfg.py update " + appengine_dir) def prepare_deploy(): test() compile() def deploy(): update() prepare_deploy() deploy_appengine() # tweet about release
from fabric.api import * from fabric.contrib.console import confirm cfg = dict( appengine_dir='appengine-web/src', goldquest_dir='src', appengine_token='', ) def update(): # update to latest code from repo local('git pull') def test(): local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" % cfg) # jslint # pychecker # run jasmine tests def compile(): # Minimize javascript using google closure. local("java -jar ~/bin/compiler.jar --js %(appengine_dir)s/javascript/game.js --js_output_file %(appengine_dir)s/javascript/game.min.js" % cfg) def deploy_appengine(): local("appcfg.py --oauth2_refresh_token=%(appengine_token)s update %(appengine_dir)s" % cfg) def prepare_deploy(): test() compile() def deploy(): update() prepare_deploy() deploy_appengine() # tweet about release
Add support for appengine update oauth2 token in deploy script.
NEW: Add support for appengine update oauth2 token in deploy script.
Python
mit
ollej/GoldQuest,ollej/GoldQuest,ollej/GoldQuest,ollej/GoldQuest
python
## Code Before: from fabric.api import * from fabric.contrib.console import confirm appengine_dir='appengine-web/src' goldquest_dir='src' def update(): # update to latest code from repo local('git pull') def test(): local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir)) # jslint # pychecker # run jasmine tests def compile(): # Minimize javascript using google closure. local("java -jar ~/bin/compiler.jar --js %(path)s/javascript/game.js --js_output_file %(path)s/javascript/game.min.js" % dict(path=appengine_dir)) def deploy_appengine(): local("appcfg.py update " + appengine_dir) def prepare_deploy(): test() compile() def deploy(): update() prepare_deploy() deploy_appengine() # tweet about release ## Instruction: NEW: Add support for appengine update oauth2 token in deploy script. ## Code After: from fabric.api import * from fabric.contrib.console import confirm cfg = dict( appengine_dir='appengine-web/src', goldquest_dir='src', appengine_token='', ) def update(): # update to latest code from repo local('git pull') def test(): local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" % cfg) # jslint # pychecker # run jasmine tests def compile(): # Minimize javascript using google closure. local("java -jar ~/bin/compiler.jar --js %(appengine_dir)s/javascript/game.js --js_output_file %(appengine_dir)s/javascript/game.min.js" % cfg) def deploy_appengine(): local("appcfg.py --oauth2_refresh_token=%(appengine_token)s update %(appengine_dir)s" % cfg) def prepare_deploy(): test() compile() def deploy(): update() prepare_deploy() deploy_appengine() # tweet about release
from fabric.api import * from fabric.contrib.console import confirm + cfg = dict( - appengine_dir='appengine-web/src' + appengine_dir='appengine-web/src', ? ++++ + - goldquest_dir='src' + goldquest_dir='src', ? ++++ + + appengine_token='', + ) def update(): # update to latest code from repo local('git pull') def test(): - local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir)) ? -------------------- + local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" % cfg) ? ++++++++ # jslint # pychecker # run jasmine tests def compile(): # Minimize javascript using google closure. - local("java -jar ~/bin/compiler.jar --js %(path)s/javascript/game.js --js_output_file %(path)s/javascript/game.min.js" % dict(path=appengine_dir)) ? ^^^ ^^^ -- ^^^^^^^^^^^^ ------- - + local("java -jar ~/bin/compiler.jar --js %(appengine_dir)s/javascript/game.js --js_output_file %(appengine_dir)s/javascript/game.min.js" % cfg) ? + ^^^^^^^^^^^ + ^^^^^^^^^^^ ^ def deploy_appengine(): - local("appcfg.py update " + appengine_dir) + local("appcfg.py --oauth2_refresh_token=%(appengine_token)s update %(appengine_dir)s" % cfg) def prepare_deploy(): test() compile() def deploy(): update() prepare_deploy() deploy_appengine() # tweet about release
13
0.40625
8
5
abd5012d9d1a8ec5f3a2fc1a1bb7d1c96885b459
README.md
README.md
goupnp is a UPnP client library for Go Installation ------------ Run `go get -u github.com/huin/goupnp`. Regenerating dcps generated source code: ---------------------------------------- 1. Install gotasks: `go get -u github.com/jingweno/gotask` 2. Change to the gotasks directory: `cd gotasks` 3. Download UPnP specification data (if not done already): `wget http://upnp.org/resources/upnpresources.zip` 4. Regenerate source code: `gotask specgen -s upnpresources.zip -o ../dcps`
goupnp is a UPnP client library for Go Installation ------------ Run `go get -u github.com/huin/goupnp`. Regenerating dcps generated source code: ---------------------------------------- 1. Install gotasks: `go get -u github.com/jingweno/gotask` 2. Change to the gotasks directory: `cd gotasks` 3. Download UPnP specification data (if not done already): `wget http://upnp.org/resources/upnpresources.zip` 4. Regenerate source code: `gotask specgen -s upnpresources.zip -o ../dcps` Supporting additional UPnP devices and services: ------------------------------------------------ Supporting additional services is, in the trivial case, simply a matter of adding the service to the `dcpMetadataByDir` whitelist in `gotasks/specgen_task.go`. However, it would be helpful if anyone needing such a service could test the service against the service they have, and then reporting any trouble encountered as an [issue on this project](https://github.com/huin/goupnp/issues/new). If it just works, then please report at least minimal working functionality as an issue, and optionally contribute the metadata upstream.
Add notes about supporting additional dcps.
Add notes about supporting additional dcps.
Markdown
bsd-2-clause
huin/goupnp
markdown
## Code Before: goupnp is a UPnP client library for Go Installation ------------ Run `go get -u github.com/huin/goupnp`. Regenerating dcps generated source code: ---------------------------------------- 1. Install gotasks: `go get -u github.com/jingweno/gotask` 2. Change to the gotasks directory: `cd gotasks` 3. Download UPnP specification data (if not done already): `wget http://upnp.org/resources/upnpresources.zip` 4. Regenerate source code: `gotask specgen -s upnpresources.zip -o ../dcps` ## Instruction: Add notes about supporting additional dcps. ## Code After: goupnp is a UPnP client library for Go Installation ------------ Run `go get -u github.com/huin/goupnp`. Regenerating dcps generated source code: ---------------------------------------- 1. Install gotasks: `go get -u github.com/jingweno/gotask` 2. Change to the gotasks directory: `cd gotasks` 3. Download UPnP specification data (if not done already): `wget http://upnp.org/resources/upnpresources.zip` 4. Regenerate source code: `gotask specgen -s upnpresources.zip -o ../dcps` Supporting additional UPnP devices and services: ------------------------------------------------ Supporting additional services is, in the trivial case, simply a matter of adding the service to the `dcpMetadataByDir` whitelist in `gotasks/specgen_task.go`. However, it would be helpful if anyone needing such a service could test the service against the service they have, and then reporting any trouble encountered as an [issue on this project](https://github.com/huin/goupnp/issues/new). If it just works, then please report at least minimal working functionality as an issue, and optionally contribute the metadata upstream.
goupnp is a UPnP client library for Go Installation ------------ Run `go get -u github.com/huin/goupnp`. Regenerating dcps generated source code: ---------------------------------------- 1. Install gotasks: `go get -u github.com/jingweno/gotask` 2. Change to the gotasks directory: `cd gotasks` 3. Download UPnP specification data (if not done already): `wget http://upnp.org/resources/upnpresources.zip` 4. Regenerate source code: `gotask specgen -s upnpresources.zip -o ../dcps` + + Supporting additional UPnP devices and services: + ------------------------------------------------ + + Supporting additional services is, in the trivial case, simply a matter of + adding the service to the `dcpMetadataByDir` whitelist in + `gotasks/specgen_task.go`. However, it would be helpful if anyone needing such + a service could test the service against the service they have, and then + reporting any trouble encountered as an [issue on this + project](https://github.com/huin/goupnp/issues/new). If it just works, then + please report at least minimal working functionality as an issue, and + optionally contribute the metadata upstream.
12
0.857143
12
0
c35fac67e2f4b22df35e1149a97addc78cc9f21d
whelktool/scripts/cleanups/2020/01/lxl-2760.groovy
whelktool/scripts/cleanups/2020/01/lxl-2760.groovy
// A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy subdivisionTypes = [ 'GenreForm' : 'GenreSubdivision', 'Temporal' : 'TemporalSubdivision', 'Geographic' : 'GeographicSubdivision' ] COMPLEX_SUBJECT_TYPE = 'ComplexSubject' boolean changeToSubdivision(it, subdivisionTypes) { boolean changed = false it.termComponentList.eachWithIndex { term, i -> if (i != 0) { if (subdivisionTypes[term['@type']]) { term['@type'] = subdivisionTypes[term['@type']] changed = true } } } return changed } selectBySqlWhere(''' collection = 'hold' AND data::text LIKE '%"termComponentList"%' ''') { data -> // guard against missing entity if (data.graph.size() < 2) { return } def (record, instance) = data.graph instance.subject.findAll { it['@type'] == COMPLEX_SUBJECT_TYPE }.each { if (changeToSubdivision(it, subdivisionTypes)) { data.scheduleSave() } } }
// A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") subdivisionTypes = [ 'GenreForm' : 'GenreSubdivision', 'Temporal' : 'TemporalSubdivision', 'Geographic' : 'GeographicSubdivision' ] COMPLEX_SUBJECT_TYPE = 'ComplexSubject' boolean changeToSubdivision(it, subdivisionTypes) { boolean changed = false it.termComponentList.eachWithIndex { term, i -> if (i != 0) { if (subdivisionTypes[term['@type']]) { term['@type'] = subdivisionTypes[term['@type']] changed = true } } } return changed } selectBySqlWhere(''' collection = 'hold' AND data::text LIKE '%"termComponentList"%' ''') { data -> // guard against missing entity if (data.graph.size() < 2) { return } def (record, instance) = data.graph instance.subject.findAll { it['@type'] == COMPLEX_SUBJECT_TYPE }.each { if (changeToSubdivision(it, subdivisionTypes)) { scheduledForUpdating.println("${data.doc.getURI()}") data.scheduleSave() } } }
Add reporting to cleanup script.
Add reporting to cleanup script.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
groovy
## Code Before: // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy subdivisionTypes = [ 'GenreForm' : 'GenreSubdivision', 'Temporal' : 'TemporalSubdivision', 'Geographic' : 'GeographicSubdivision' ] COMPLEX_SUBJECT_TYPE = 'ComplexSubject' boolean changeToSubdivision(it, subdivisionTypes) { boolean changed = false it.termComponentList.eachWithIndex { term, i -> if (i != 0) { if (subdivisionTypes[term['@type']]) { term['@type'] = subdivisionTypes[term['@type']] changed = true } } } return changed } selectBySqlWhere(''' collection = 'hold' AND data::text LIKE '%"termComponentList"%' ''') { data -> // guard against missing entity if (data.graph.size() < 2) { return } def (record, instance) = data.graph instance.subject.findAll { it['@type'] == COMPLEX_SUBJECT_TYPE }.each { if (changeToSubdivision(it, subdivisionTypes)) { data.scheduleSave() } } } ## Instruction: Add reporting to cleanup script. ## Code After: // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") subdivisionTypes = [ 'GenreForm' : 'GenreSubdivision', 'Temporal' : 'TemporalSubdivision', 'Geographic' : 'GeographicSubdivision' ] COMPLEX_SUBJECT_TYPE = 'ComplexSubject' boolean changeToSubdivision(it, subdivisionTypes) { boolean changed = false it.termComponentList.eachWithIndex { term, i -> if (i != 0) { if (subdivisionTypes[term['@type']]) { term['@type'] = subdivisionTypes[term['@type']] changed = true } } } return changed } selectBySqlWhere(''' collection = 'hold' AND data::text LIKE '%"termComponentList"%' ''') { data -> // guard against missing entity if (data.graph.size() < 2) { return } def (record, instance) = data.graph instance.subject.findAll { it['@type'] == COMPLEX_SUBJECT_TYPE }.each { if (changeToSubdivision(it, subdivisionTypes)) { scheduledForUpdating.println("${data.doc.getURI()}") data.scheduleSave() } } }
// A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy + + PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") subdivisionTypes = [ 'GenreForm' : 'GenreSubdivision', 'Temporal' : 'TemporalSubdivision', 'Geographic' : 'GeographicSubdivision' ] COMPLEX_SUBJECT_TYPE = 'ComplexSubject' boolean changeToSubdivision(it, subdivisionTypes) { boolean changed = false it.termComponentList.eachWithIndex { term, i -> if (i != 0) { if (subdivisionTypes[term['@type']]) { term['@type'] = subdivisionTypes[term['@type']] changed = true } } } return changed } selectBySqlWhere(''' collection = 'hold' AND data::text LIKE '%"termComponentList"%' ''') { data -> // guard against missing entity if (data.graph.size() < 2) { return } def (record, instance) = data.graph instance.subject.findAll { it['@type'] == COMPLEX_SUBJECT_TYPE }.each { if (changeToSubdivision(it, subdivisionTypes)) { + scheduledForUpdating.println("${data.doc.getURI()}") data.scheduleSave() } } }
3
0.075
3
0
06650fb26422ceda512e9518c11df57fb7901a26
bookmarker.gemspec
bookmarker.gemspec
$:.push File.expand_path("../lib", __FILE__) require "bookmarker/version" Gem::Specification.new do |s| s.name = "bookmarker" s.version = Bookmarker::VERSION s.authors = ["Marat Galiev"] s.email = ["kazanlug@gmail.com"] s.homepage = "https://github.com/maratgaliev/bookmarker" s.summary = "Add bookmarks to your models" s.description = "Simple add bookmarks functionality to your models" s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.test_files = Dir["test/**/*"] s.add_dependency "rails", "~> 3.2.12" s.require_paths = ["lib"] s.add_development_dependency "sqlite3" s.add_development_dependency "rspec" end
$:.push File.expand_path("../lib", __FILE__) require "bookmarker/version" Gem::Specification.new do |s| s.name = "bookmarker" s.version = Bookmarker::VERSION s.authors = ["Marat Galiev"] s.email = ["kazanlug@gmail.com"] s.homepage = "https://github.com/maratgaliev/bookmarker" s.summary = "Add bookmarks to your models" s.description = "Simple add bookmarks functionality to your models" s.test_files = Dir["test/**/*"] s.add_dependency "rails", "~> 3.2.12" s.require_paths = ["lib"] s.add_development_dependency "sqlite3" s.add_development_dependency "rspec" end
Remove files option from gemspec
Remove files option from gemspec
Ruby
mit
maratgaliev/bookmarker,maratgaliev/bookmarker
ruby
## Code Before: $:.push File.expand_path("../lib", __FILE__) require "bookmarker/version" Gem::Specification.new do |s| s.name = "bookmarker" s.version = Bookmarker::VERSION s.authors = ["Marat Galiev"] s.email = ["kazanlug@gmail.com"] s.homepage = "https://github.com/maratgaliev/bookmarker" s.summary = "Add bookmarks to your models" s.description = "Simple add bookmarks functionality to your models" s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.test_files = Dir["test/**/*"] s.add_dependency "rails", "~> 3.2.12" s.require_paths = ["lib"] s.add_development_dependency "sqlite3" s.add_development_dependency "rspec" end ## Instruction: Remove files option from gemspec ## Code After: $:.push File.expand_path("../lib", __FILE__) require "bookmarker/version" Gem::Specification.new do |s| s.name = "bookmarker" s.version = Bookmarker::VERSION s.authors = ["Marat Galiev"] s.email = ["kazanlug@gmail.com"] s.homepage = "https://github.com/maratgaliev/bookmarker" s.summary = "Add bookmarks to your models" s.description = "Simple add bookmarks functionality to your models" s.test_files = Dir["test/**/*"] s.add_dependency "rails", "~> 3.2.12" s.require_paths = ["lib"] s.add_development_dependency "sqlite3" s.add_development_dependency "rspec" end
$:.push File.expand_path("../lib", __FILE__) require "bookmarker/version" Gem::Specification.new do |s| s.name = "bookmarker" s.version = Bookmarker::VERSION s.authors = ["Marat Galiev"] s.email = ["kazanlug@gmail.com"] s.homepage = "https://github.com/maratgaliev/bookmarker" s.summary = "Add bookmarks to your models" s.description = "Simple add bookmarks functionality to your models" - s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.test_files = Dir["test/**/*"] s.add_dependency "rails", "~> 3.2.12" s.require_paths = ["lib"] s.add_development_dependency "sqlite3" s.add_development_dependency "rspec" end
1
0.05
0
1
40ee4d60c035b5b1543bd9b7493bde99f59d7dd8
web-client/app/views/directives/usersCarousel.html
web-client/app/views/directives/usersCarousel.html
<div class="carousel"> <div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" > <a ui-sref="app.publishers.profile.user.published({ userId: user.id })"> <div ng-class="{'dimmer': user.id !== selectedUser.id }"></div> <div class="cover" data-manshar-cover url="{{user.thumb_url}}"></div> <span ng-show="user.published_articles_count"> <i class="fa fa-edit"></i> {{user.published_articles_count}} </span> <p class="author-name"> {{user.name}} </p> </a> </div> </div>
<div class="carousel"> <div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" > <a ui-sref="app.publishers.profile.user.published({ userId: user.id })"> <div ng-class="{'dimmer': user.id !== selectedUser.id }"></div> <div class="cover" data-manshar-cover url="{{user.thumb_url}}"></div> </a> </div> </div>
Remove usernames and published articles count from users carousel.
Remove usernames and published articles count from users carousel.
HTML
bsd-2-clause
manshar/manshar,manshar/manshar,ahmgeek/manshar,ahmgeek/manshar,manshar/manshar,ahmgeek/manshar,manshar/manshar,ahmgeek/manshar
html
## Code Before: <div class="carousel"> <div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" > <a ui-sref="app.publishers.profile.user.published({ userId: user.id })"> <div ng-class="{'dimmer': user.id !== selectedUser.id }"></div> <div class="cover" data-manshar-cover url="{{user.thumb_url}}"></div> <span ng-show="user.published_articles_count"> <i class="fa fa-edit"></i> {{user.published_articles_count}} </span> <p class="author-name"> {{user.name}} </p> </a> </div> </div> ## Instruction: Remove usernames and published articles count from users carousel. ## Code After: <div class="carousel"> <div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" > <a ui-sref="app.publishers.profile.user.published({ userId: user.id })"> <div ng-class="{'dimmer': user.id !== selectedUser.id }"></div> <div class="cover" data-manshar-cover url="{{user.thumb_url}}"></div> </a> </div> </div>
<div class="carousel"> <div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" > <a ui-sref="app.publishers.profile.user.published({ userId: user.id })"> <div ng-class="{'dimmer': user.id !== selectedUser.id }"></div> <div class="cover" data-manshar-cover url="{{user.thumb_url}}"></div> - <span ng-show="user.published_articles_count"> - <i class="fa fa-edit"></i> {{user.published_articles_count}} - </span> - <p class="author-name"> {{user.name}} </p> </a> </div> </div>
4
0.333333
0
4
af6672dc10dd9c108b108ac5590cffdbb063eb79
visual/flow_vis.html
visual/flow_vis.html
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Flow job name goes here</title> <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script> <script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script> <script src="http://cpettitt.github.io/project/graphlib/latest/graphlib.min.js"></script> <script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.js"></script> <!-- <script type='text/javascript' src="http://cpettitt.github.io/project/dagre/latest/dagre.js"></script> --> <link rel="stylesheet" type="text/css" href="stylesheets/flow.css"></link> <script src="js/graph.js"></script> </head> <body> <svg width="1024" height="900"> <defs> <marker id="arrowhead" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="5" orient="auto" style="fill: #333"> <path d="M 0 0 L 10 5 L 0 10 z"></path> </marker> </defs> <g transform="translate(20,20)"/> </svg> </body> </html>
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Flow job name goes here</title> <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script> <script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script> <script src="http://cpettitt.github.io/project/dagre/v0.6.4/dagre.min.js"></script> <script src="http://cpettitt.github.io/project/dagre-d3/v0.3.2/dagre-d3.min.js"></script> <!-- <script type='text/javascript' src="http://cpettitt.github.io/project/dagre/latest/dagre.js"></script> --> <link rel="stylesheet" type="text/css" href="stylesheets/flow.css"></link> <script src="js/graph.js"></script> </head> <body> <svg width="1024" height="900"> <g transform="translate(20,20)"/> </svg> </body> </html>
Set to use specific Dagre version
Set to use specific Dagre version Latest as of 2014-12-01
HTML
bsd-3-clause
lhupfeldt/jenkinsflow,lechat/jenkinsflow,lechat/jenkinsflow,lechat/jenkinsflow,lhupfeldt/jenkinsflow,lechat/jenkinsflow,lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow
html
## Code Before: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Flow job name goes here</title> <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script> <script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script> <script src="http://cpettitt.github.io/project/graphlib/latest/graphlib.min.js"></script> <script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.js"></script> <!-- <script type='text/javascript' src="http://cpettitt.github.io/project/dagre/latest/dagre.js"></script> --> <link rel="stylesheet" type="text/css" href="stylesheets/flow.css"></link> <script src="js/graph.js"></script> </head> <body> <svg width="1024" height="900"> <defs> <marker id="arrowhead" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="5" orient="auto" style="fill: #333"> <path d="M 0 0 L 10 5 L 0 10 z"></path> </marker> </defs> <g transform="translate(20,20)"/> </svg> </body> </html> ## Instruction: Set to use specific Dagre version Latest as of 2014-12-01 ## Code After: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Flow job name goes here</title> <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script> <script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script> <script src="http://cpettitt.github.io/project/dagre/v0.6.4/dagre.min.js"></script> <script src="http://cpettitt.github.io/project/dagre-d3/v0.3.2/dagre-d3.min.js"></script> <!-- <script type='text/javascript' src="http://cpettitt.github.io/project/dagre/latest/dagre.js"></script> --> <link rel="stylesheet" type="text/css" href="stylesheets/flow.css"></link> <script src="js/graph.js"></script> </head> <body> <svg width="1024" height="900"> <g transform="translate(20,20)"/> </svg> </body> </html>
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Flow job name goes here</title> <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script> <script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script> - <script src="http://cpettitt.github.io/project/graphlib/latest/graphlib.min.js"></script> ? ------------- ^^^^^^ + <script src="http://cpettitt.github.io/project/dagre/v0.6.4/dagre.min.js"></script> ? ++ ++++++++++ ^ - <script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.js"></script> ? ^^^^^^ + <script src="http://cpettitt.github.io/project/dagre-d3/v0.3.2/dagre-d3.min.js"></script> ? ^^^^^^ ++++ <!-- <script type='text/javascript' src="http://cpettitt.github.io/project/dagre/latest/dagre.js"></script> --> <link rel="stylesheet" type="text/css" href="stylesheets/flow.css"></link> <script src="js/graph.js"></script> </head> <body> <svg width="1024" height="900"> - <defs> - <marker id="arrowhead" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="5" orient="auto" style="fill: #333"> - <path d="M 0 0 L 10 5 L 0 10 z"></path> - </marker> - </defs> <g transform="translate(20,20)"/> </svg> </body> </html>
9
0.36
2
7
e326f1f956f7da6e2475011357f2249d3fd1620c
app/assets/stylesheets/renalware/_patient_search.scss
app/assets/stylesheets/renalware/_patient_search.scss
$search-bar-height: 2.15rem; $btn-hover-background-color: darken($off-white, 10%); $btn-hover-color: darken($dark-grey, 10%); .patient-search-form { button.button.tiny.postfix { padding: 0; background-color: $off-white; color: $dark-grey; height: $search-bar-height; &:hover { background-color: $btn-hover-background-color; color: $btn-hover-color; } } input { height: $search-bar-height; border: none; padding: 0; } }
$search-bar-height: 2.15rem; $btn-hover-background-color: darken($off-white, 10%); $btn-hover-color: darken($dark-grey, 10%); .has-form { width: 260px; } .patient-search-form { button.button.tiny.postfix { padding: 0; background-color: $off-white; color: $dark-grey; height: $search-bar-height; &:hover { background-color: $btn-hover-background-color; color: $btn-hover-color; } } input { height: $search-bar-height; border: none; } }
Improve search input appearance in chrome
Improve search input appearance in chrome
SCSS
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
scss
## Code Before: $search-bar-height: 2.15rem; $btn-hover-background-color: darken($off-white, 10%); $btn-hover-color: darken($dark-grey, 10%); .patient-search-form { button.button.tiny.postfix { padding: 0; background-color: $off-white; color: $dark-grey; height: $search-bar-height; &:hover { background-color: $btn-hover-background-color; color: $btn-hover-color; } } input { height: $search-bar-height; border: none; padding: 0; } } ## Instruction: Improve search input appearance in chrome ## Code After: $search-bar-height: 2.15rem; $btn-hover-background-color: darken($off-white, 10%); $btn-hover-color: darken($dark-grey, 10%); .has-form { width: 260px; } .patient-search-form { button.button.tiny.postfix { padding: 0; background-color: $off-white; color: $dark-grey; height: $search-bar-height; &:hover { background-color: $btn-hover-background-color; color: $btn-hover-color; } } input { height: $search-bar-height; border: none; } }
$search-bar-height: 2.15rem; $btn-hover-background-color: darken($off-white, 10%); $btn-hover-color: darken($dark-grey, 10%); + .has-form { + width: 260px; + } + .patient-search-form { + button.button.tiny.postfix { padding: 0; background-color: $off-white; color: $dark-grey; height: $search-bar-height; &:hover { background-color: $btn-hover-background-color; color: $btn-hover-color; } } + input { height: $search-bar-height; border: none; - padding: 0; - } }
8
0.363636
6
2
ebeb53dfe961c8fbc9616ab529bb6d6fc345dbcc
src/modules/common/constants.js
src/modules/common/constants.js
import {UnitState} from '../unit/constants'; export const API_URL = 'https://servicemat.hel.ninja/servicemap/v1'; //http://api.hel.fi/servicemap/v1'; export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1'; export const APP_NAME = 'outdoors-sports-map'; export const DEFAULT_LANG = 'fi'; export const mobileBreakpoint = 768; export type Action = { type: string, payload: Object }; export type FetchAction = { type: string, payload: { params: Object } }; export type EntityAction = { type: string, payload: { entities: Object, result: mixed } }; export type AppState = { unit: UnitState }; export type QueryValue = | string | Array<string>; export const routerPaths = { singleUnit: 'unit/:unitId' };
import {UnitState} from '../unit/constants'; export const API_URL = 'http://api.hel.fi/servicemap/v1'; export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1'; export const APP_NAME = 'outdoors-sports-map'; export const DEFAULT_LANG = 'fi'; export const mobileBreakpoint = 768; export type Action = { type: string, payload: Object }; export type FetchAction = { type: string, payload: { params: Object } }; export type EntityAction = { type: string, payload: { entities: Object, result: mixed } }; export type AppState = { unit: UnitState }; export type QueryValue = | string | Array<string>; export const routerPaths = { singleUnit: 'unit/:unitId' };
Change API URL to production one
Change API URL to production one
JavaScript
mit
nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map
javascript
## Code Before: import {UnitState} from '../unit/constants'; export const API_URL = 'https://servicemat.hel.ninja/servicemap/v1'; //http://api.hel.fi/servicemap/v1'; export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1'; export const APP_NAME = 'outdoors-sports-map'; export const DEFAULT_LANG = 'fi'; export const mobileBreakpoint = 768; export type Action = { type: string, payload: Object }; export type FetchAction = { type: string, payload: { params: Object } }; export type EntityAction = { type: string, payload: { entities: Object, result: mixed } }; export type AppState = { unit: UnitState }; export type QueryValue = | string | Array<string>; export const routerPaths = { singleUnit: 'unit/:unitId' }; ## Instruction: Change API URL to production one ## Code After: import {UnitState} from '../unit/constants'; export const API_URL = 'http://api.hel.fi/servicemap/v1'; export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1'; export const APP_NAME = 'outdoors-sports-map'; export const DEFAULT_LANG = 'fi'; export const mobileBreakpoint = 768; export type Action = { type: string, payload: Object }; export type FetchAction = { type: string, payload: { params: Object } }; export type EntityAction = { type: string, payload: { entities: Object, result: mixed } }; export type AppState = { unit: UnitState }; export type QueryValue = | string | Array<string>; export const routerPaths = { singleUnit: 'unit/:unitId' };
import {UnitState} from '../unit/constants'; - export const API_URL = 'https://servicemat.hel.ninja/servicemap/v1'; //http://api.hel.fi/servicemap/v1'; + export const API_URL = 'http://api.hel.fi/servicemap/v1'; export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1'; export const APP_NAME = 'outdoors-sports-map'; export const DEFAULT_LANG = 'fi'; export const mobileBreakpoint = 768; export type Action = { type: string, payload: Object }; export type FetchAction = { type: string, payload: { params: Object } }; export type EntityAction = { type: string, payload: { entities: Object, result: mixed } }; export type AppState = { unit: UnitState }; export type QueryValue = | string | Array<string>; export const routerPaths = { singleUnit: 'unit/:unitId' };
2
0.05
1
1
19b6c6c6ecf8a6c4ffcf060f8504727e9bd81f50
README.md
README.md
rmq_grid ======== Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA. Enjoy use of it on the Github Page here: [http://infinitered.github.io/rmq_grid/](http://infinitered.github.io/rmq_grid/) ## Usage Click and drag on the grid to build your frames. Click non-grid frame to delete.
rmq_grid ======== Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA. Enjoy use of it on the Github Page here: [http://infinitered.github.io/rmq_grid/](http://infinitered.github.io/rmq_grid/) ## Usage Click and drag on the grid to build your frames. Click non-grid frame to delete. ## Premium Support [RMQ](https://github.com/infinitered/rmq) and [rmq_grid](https://github.com/infinitered/rmq_grid), as open source projects, are free to use and always will be. [Infinite Red](https://infinite.red/) offers premium RMQ and rmq_grid support and general mobile app design/development services. Email us at [hello@infinite.red](mailto:hello@infinite.red) to get in touch with us for more details.
Add note about premium support
Add note about premium support
Markdown
mit
infinitered/rmq_grid,infinitered/rmq_grid
markdown
## Code Before: rmq_grid ======== Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA. Enjoy use of it on the Github Page here: [http://infinitered.github.io/rmq_grid/](http://infinitered.github.io/rmq_grid/) ## Usage Click and drag on the grid to build your frames. Click non-grid frame to delete. ## Instruction: Add note about premium support ## Code After: rmq_grid ======== Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA. Enjoy use of it on the Github Page here: [http://infinitered.github.io/rmq_grid/](http://infinitered.github.io/rmq_grid/) ## Usage Click and drag on the grid to build your frames. Click non-grid frame to delete. ## Premium Support [RMQ](https://github.com/infinitered/rmq) and [rmq_grid](https://github.com/infinitered/rmq_grid), as open source projects, are free to use and always will be. [Infinite Red](https://infinite.red/) offers premium RMQ and rmq_grid support and general mobile app design/development services. Email us at [hello@infinite.red](mailto:hello@infinite.red) to get in touch with us for more details.
rmq_grid ======== Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA. Enjoy use of it on the Github Page here: [http://infinitered.github.io/rmq_grid/](http://infinitered.github.io/rmq_grid/) ## Usage Click and drag on the grid to build your frames. Click non-grid frame to delete. + + ## Premium Support + + [RMQ](https://github.com/infinitered/rmq) and [rmq_grid](https://github.com/infinitered/rmq_grid), as open source projects, are free to use and always will be. [Infinite Red](https://infinite.red/) offers premium RMQ and rmq_grid support and general mobile app design/development services. Email us at [hello@infinite.red](mailto:hello@infinite.red) to get in touch with us for more details.
4
0.333333
4
0
31dcb63b788cec0cf589a54827bb98abed6f1de6
views/priority_service_170330/intro/index.html
views/priority_service_170330/intro/index.html
{{< layout}} {{$main-content}} <div class="column-full"> <div class="flash-card"> <header> <h1>Before you continue</h1> </header> <div class="grid-row"> <div class="column-two-thirds"> <p>If your name has changed, you need to <a href="https://www.gov.uk/changing-passport-information">update your information</a>.</p> <p>If your face has changed significantly, not including the normal signs of ageing, you need to <a href="https://passportapplication.service.gov.uk/ips-olc/">apply in a different way</a>.</p> <a href="/priority_service_170315/intro/what-you-need" class="button">Continue</a><br> </div> </div> </div> </div> {{/ main-content}} {{/ layout}}
{{< layout}} {{$main-content}} <div class="column-full"> <div class="flash-card"> <header> <h1>Before you continue</h1> </header> <div class="grid-row"> <div class="column-two-thirds"> <p>If your name has changed, you need to <a href="https://www.gov.uk/changing-passport-information">update your information</a>.</p> <p>If your face has changed significantly, not including the normal signs of ageing, you need to <a href="https://passportapplication.service.gov.uk/ips-olc/">apply in a different way</a>.</p> &nbsp; <a href="/priority_service_170315/intro/what-you-need" class="button">Continue</a><br> </div> </div> </div> </div> {{/ main-content}} {{/ layout}}
Add nonbreakingspace to solve the problem of buttons being too close together
Add nonbreakingspace to solve the problem of buttons being too close together
HTML
mit
UKHomeOffice/passports-prototype,UKHomeOffice/passports-prototype
html
## Code Before: {{< layout}} {{$main-content}} <div class="column-full"> <div class="flash-card"> <header> <h1>Before you continue</h1> </header> <div class="grid-row"> <div class="column-two-thirds"> <p>If your name has changed, you need to <a href="https://www.gov.uk/changing-passport-information">update your information</a>.</p> <p>If your face has changed significantly, not including the normal signs of ageing, you need to <a href="https://passportapplication.service.gov.uk/ips-olc/">apply in a different way</a>.</p> <a href="/priority_service_170315/intro/what-you-need" class="button">Continue</a><br> </div> </div> </div> </div> {{/ main-content}} {{/ layout}} ## Instruction: Add nonbreakingspace to solve the problem of buttons being too close together ## Code After: {{< layout}} {{$main-content}} <div class="column-full"> <div class="flash-card"> <header> <h1>Before you continue</h1> </header> <div class="grid-row"> <div class="column-two-thirds"> <p>If your name has changed, you need to <a href="https://www.gov.uk/changing-passport-information">update your information</a>.</p> <p>If your face has changed significantly, not including the normal signs of ageing, you need to <a href="https://passportapplication.service.gov.uk/ips-olc/">apply in a different way</a>.</p> &nbsp; <a href="/priority_service_170315/intro/what-you-need" class="button">Continue</a><br> </div> </div> </div> </div> {{/ main-content}} {{/ layout}}
{{< layout}} {{$main-content}} <div class="column-full"> <div class="flash-card"> <header> <h1>Before you continue</h1> </header> <div class="grid-row"> <div class="column-two-thirds"> <p>If your name has changed, you need to <a href="https://www.gov.uk/changing-passport-information">update your information</a>.</p> <p>If your face has changed significantly, not including the normal signs of ageing, you need to <a href="https://passportapplication.service.gov.uk/ips-olc/">apply in a different way</a>.</p> + &nbsp; + <a href="/priority_service_170315/intro/what-you-need" class="button">Continue</a><br> </div> </div> </div> </div> {{/ main-content}} {{/ layout}}
2
0.074074
2
0
0e75538f3d0d8abd7413b11d2476ffaa12e0f609
lib/shopify_api/resources/fulfillment.rb
lib/shopify_api/resources/fulfillment.rb
module ShopifyAPI class Fulfillment < Base self.prefix = "/admin/orders/:order_id/" def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end end end
module ShopifyAPI class Fulfillment < Base self.prefix = "/admin/orders/:order_id/" def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end def complete; load_attributes_from_response(post(:complete, {}, only_id)); end end end
Add complete action for Fulfillment endpoint
Add complete action for Fulfillment endpoint
Ruby
mit
carsonreinke/shopify_api,discolabs/shopify_api,kevinmpowell/shopify_api,resistorsoftware/shopify_api,ipmobiletech/shopify_api,Shopify/shopify_api,aareano/shopify_api,lalithr95/shopify_api,cefigueiredo/shopify_api,kingscott/shopify_api,DanielVartanov/shopify_api
ruby
## Code Before: module ShopifyAPI class Fulfillment < Base self.prefix = "/admin/orders/:order_id/" def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end end end ## Instruction: Add complete action for Fulfillment endpoint ## Code After: module ShopifyAPI class Fulfillment < Base self.prefix = "/admin/orders/:order_id/" def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end def complete; load_attributes_from_response(post(:complete, {}, only_id)); end end end
module ShopifyAPI class Fulfillment < Base self.prefix = "/admin/orders/:order_id/" def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end + def complete; load_attributes_from_response(post(:complete, {}, only_id)); end end end
1
0.142857
1
0
12dfba0942899dc1ac28b654950bfb4a6ff81e69
script/run_fcgi_with_plackup_and_carton.sh
script/run_fcgi_with_plackup_and_carton.sh
working_dir=`dirname $0` cd $working_dir echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2 exec ./run_plackup_with_carton.sh -s FCGI
working_dir=`dirname $0` cd $working_dir echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2 exec ./run_plackup_with_carton.sh -s FCGI --manager MediaWords::MyFCgiManager
Use the wrapper class for FCGI
Use the wrapper class for FCGI
Shell
agpl-3.0
AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud
shell
## Code Before: working_dir=`dirname $0` cd $working_dir echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2 exec ./run_plackup_with_carton.sh -s FCGI ## Instruction: Use the wrapper class for FCGI ## Code After: working_dir=`dirname $0` cd $working_dir echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2 exec ./run_plackup_with_carton.sh -s FCGI --manager MediaWords::MyFCgiManager
working_dir=`dirname $0` cd $working_dir echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2 - exec ./run_plackup_with_carton.sh -s FCGI + exec ./run_plackup_with_carton.sh -s FCGI --manager MediaWords::MyFCgiManager
2
0.25
1
1
f7a22e9afc00bf43db8b7089cc818fb30013b85f
src/main/scala/com/anchortab/model/Event.scala
src/main/scala/com/anchortab/model/Event.scala
package com.anchortab.model import net.liftweb._ import common._ import mongodb._ import util.Helpers._ import json._ import ext._ import JsonDSL._ import Extraction._ import org.joda.time.DateTime import org.bson.types.ObjectId case class Event(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, email:Option[String] = None, uniqueEventActorId:Option[ObjectId] = None, createdAt:DateTime = new DateTime, _id:ObjectId = ObjectId.get) extends MongoDocument[Event] { val meta = Event } object Event extends MongoDocumentMeta[Event] { override def formats = allFormats ++ JodaTimeSerializers.all object Types { val TabView = "tab-view" val TabSubmit = "tab-submit" val TabClose = "tab-close" val TabReopen = "tab-reopen" } } object EventLog { def track(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, cookieId:Option[String], email:Option[String] = None) { Event(eventType, ip, userAgent, userId, tabId, email).save } }
package com.anchortab.model import net.liftweb._ import common._ import mongodb._ import util.Helpers._ import json._ import ext._ import JsonDSL._ import Extraction._ import org.joda.time.DateTime import org.bson.types.ObjectId case class Event(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, email:Option[String] = None, domain: Option[String] = None, createdAt:DateTime = new DateTime, _id:ObjectId = ObjectId.get) extends MongoDocument[Event] { val meta = Event } object Event extends MongoDocumentMeta[Event] { override def formats = allFormats ++ JodaTimeSerializers.all object Types { val TabView = "tab-view" val TabSubmit = "tab-submit" val TabClose = "tab-close" val TabReopen = "tab-reopen" } } object EventLog { def track( eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, cookieId:Option[String], email:Option[String] = None, domain: Option[String] = None ) { Event(eventType, ip, userAgent, userId, tabId, email, domain).save } }
Add domain field to event.
Add domain field to event.
Scala
apache-2.0
farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab
scala
## Code Before: package com.anchortab.model import net.liftweb._ import common._ import mongodb._ import util.Helpers._ import json._ import ext._ import JsonDSL._ import Extraction._ import org.joda.time.DateTime import org.bson.types.ObjectId case class Event(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, email:Option[String] = None, uniqueEventActorId:Option[ObjectId] = None, createdAt:DateTime = new DateTime, _id:ObjectId = ObjectId.get) extends MongoDocument[Event] { val meta = Event } object Event extends MongoDocumentMeta[Event] { override def formats = allFormats ++ JodaTimeSerializers.all object Types { val TabView = "tab-view" val TabSubmit = "tab-submit" val TabClose = "tab-close" val TabReopen = "tab-reopen" } } object EventLog { def track(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, cookieId:Option[String], email:Option[String] = None) { Event(eventType, ip, userAgent, userId, tabId, email).save } } ## Instruction: Add domain field to event. ## Code After: package com.anchortab.model import net.liftweb._ import common._ import mongodb._ import util.Helpers._ import json._ import ext._ import JsonDSL._ import Extraction._ import org.joda.time.DateTime import org.bson.types.ObjectId case class Event(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, email:Option[String] = None, domain: Option[String] = None, createdAt:DateTime = new DateTime, _id:ObjectId = ObjectId.get) extends MongoDocument[Event] { val meta = Event } object Event extends MongoDocumentMeta[Event] { override def formats = allFormats ++ JodaTimeSerializers.all object Types { val TabView = "tab-view" val TabSubmit = "tab-submit" val TabClose = "tab-close" val TabReopen = "tab-reopen" } } object EventLog { def track( eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, cookieId:Option[String], email:Option[String] = None, domain: Option[String] = None ) { Event(eventType, ip, userAgent, userId, tabId, email, domain).save } }
package com.anchortab.model import net.liftweb._ import common._ import mongodb._ import util.Helpers._ import json._ import ext._ import JsonDSL._ import Extraction._ import org.joda.time.DateTime import org.bson.types.ObjectId case class Event(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, email:Option[String] = None, - uniqueEventActorId:Option[ObjectId] = None, + domain: Option[String] = None, createdAt:DateTime = new DateTime, _id:ObjectId = ObjectId.get) extends MongoDocument[Event] { val meta = Event } object Event extends MongoDocumentMeta[Event] { override def formats = allFormats ++ JodaTimeSerializers.all object Types { val TabView = "tab-view" val TabSubmit = "tab-submit" val TabClose = "tab-close" val TabReopen = "tab-reopen" } } object EventLog { - def track(eventType:String, ip:String, userAgent:String, userId:ObjectId, tabId:ObjectId, cookieId:Option[String], email:Option[String] = None) { + def track( + eventType:String, + ip:String, + userAgent:String, + userId:ObjectId, + tabId:ObjectId, + cookieId:Option[String], + email:Option[String] = None, + domain: Option[String] = None + ) { - Event(eventType, ip, userAgent, userId, tabId, email).save + Event(eventType, ip, userAgent, userId, tabId, email, domain).save ? ++++++++ } }
15
0.394737
12
3
eda3be21bb5cab16c4ef19212f7f6b9a1b402d7f
.travis.yml
.travis.yml
language: ruby before_script: - "bundle exec rake db:create" - "bundle exec rake db:schema:load RAILS_ENV=test" rvm: - 2.1.2 - 2.0.0 addons: postgresql: "9.3"
language: ruby before_script: - "bundle exec rake db:create" - "bundle exec rake db:schema:load RAILS_ENV=test" rvm: - 2.4.1 - 2.3.4 - 2.2.7 addons: postgresql: "9.3"
Use stable releases of Rubies
Travis: Use stable releases of Rubies
YAML
mit
QueueClassic/queue_classic_admin,QueueClassic/queue_classic_admin,QueueClassic/queue_classic_admin
yaml
## Code Before: language: ruby before_script: - "bundle exec rake db:create" - "bundle exec rake db:schema:load RAILS_ENV=test" rvm: - 2.1.2 - 2.0.0 addons: postgresql: "9.3" ## Instruction: Travis: Use stable releases of Rubies ## Code After: language: ruby before_script: - "bundle exec rake db:create" - "bundle exec rake db:schema:load RAILS_ENV=test" rvm: - 2.4.1 - 2.3.4 - 2.2.7 addons: postgresql: "9.3"
language: ruby before_script: - "bundle exec rake db:create" - "bundle exec rake db:schema:load RAILS_ENV=test" rvm: - - 2.1.2 ? -- + - 2.4.1 ? ++ - - 2.0.0 ? ^ ^ + - 2.3.4 ? ^ ^ + - 2.2.7 addons: postgresql: "9.3"
5
0.555556
3
2
245c5b10178bf29bee15ab92ae25baa9ab176d0a
.travis.yml
.travis.yml
language: perl matrix: include: - perl: "5.20" - perl: "5.18" - perl: "5.16" - perl: "5.14" - perl: "5.12" - perl: "5.10" - perl: "5.8" before_install: - sudo apt-get update -qq - sudo apt-get install -y graphviz
language: perl matrix: include: - perl: "5.20" - perl: "5.18" - perl: "5.16" - perl: "5.14" - perl: "5.12" - perl: "5.10" before_install: - sudo apt-get update -qq - sudo apt-get install -y graphviz
Remove dependency for 5.8. Perl.
Remove dependency for 5.8. Perl.
YAML
artistic-2.0
tupinek/Task-Map-Tube
yaml
## Code Before: language: perl matrix: include: - perl: "5.20" - perl: "5.18" - perl: "5.16" - perl: "5.14" - perl: "5.12" - perl: "5.10" - perl: "5.8" before_install: - sudo apt-get update -qq - sudo apt-get install -y graphviz ## Instruction: Remove dependency for 5.8. Perl. ## Code After: language: perl matrix: include: - perl: "5.20" - perl: "5.18" - perl: "5.16" - perl: "5.14" - perl: "5.12" - perl: "5.10" before_install: - sudo apt-get update -qq - sudo apt-get install -y graphviz
language: perl matrix: include: - perl: "5.20" - perl: "5.18" - perl: "5.16" - perl: "5.14" - perl: "5.12" - perl: "5.10" - - perl: "5.8" before_install: - sudo apt-get update -qq - sudo apt-get install -y graphviz
1
0.076923
0
1
33e3fcb875c2b1d72f87d5ee76a20ddea236b2de
views/daily-digest-email.html.twig
views/daily-digest-email.html.twig
<span class="h1">Latest Remote Jobs</span> <div> <ul style="list-style:none; padding:2px; margin:2px;"> {% for job in latestJobs %} <li class='job'> <a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'> <strong>{{job.companyname}}</strong> - <span class="position">{{job.position}} <span class="right date show-for-medium-up">{{job.dateadded_unixtime|date('M d')}}</span> </a> </li> {% endfor %} </div>
<span class="h1">Latest Remote Jobs</span> <div> <ul style="list-style:none; padding:2px; margin:2px;"> {% for job in latestJobs %} <li class='job'> <a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'> <strong>{{job.companyname}}</strong> - <span class="position">{{job.position}} <span class="right date show-for-medium-up">{{job.dateadded_unixtime|date('M d')}}</span> </a> </li> {% endfor %} </ul> </div> <strong>If daily emails get annoying, please let me know - it might be an idea to have a weekly email</strong>
Move some daily digest email info into the config
Move some daily digest email info into the config
Twig
mit
ashleyhindle/goremote.io,ashleyhindle/goremote.io,ashleyhindle/goremote.io,ashleyhindle/goremote.io
twig
## Code Before: <span class="h1">Latest Remote Jobs</span> <div> <ul style="list-style:none; padding:2px; margin:2px;"> {% for job in latestJobs %} <li class='job'> <a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'> <strong>{{job.companyname}}</strong> - <span class="position">{{job.position}} <span class="right date show-for-medium-up">{{job.dateadded_unixtime|date('M d')}}</span> </a> </li> {% endfor %} </div> ## Instruction: Move some daily digest email info into the config ## Code After: <span class="h1">Latest Remote Jobs</span> <div> <ul style="list-style:none; padding:2px; margin:2px;"> {% for job in latestJobs %} <li class='job'> <a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'> <strong>{{job.companyname}}</strong> - <span class="position">{{job.position}} <span class="right date show-for-medium-up">{{job.dateadded_unixtime|date('M d')}}</span> </a> </li> {% endfor %} </ul> </div> <strong>If daily emails get annoying, please let me know - it might be an idea to have a weekly email</strong>
<span class="h1">Latest Remote Jobs</span> <div> <ul style="list-style:none; padding:2px; margin:2px;"> {% for job in latestJobs %} <li class='job'> <a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'> <strong>{{job.companyname}}</strong> - <span class="position">{{job.position}} <span class="right date show-for-medium-up">{{job.dateadded_unixtime|date('M d')}}</span> </a> </li> {% endfor %} + + </ul> </div> + + <strong>If daily emails get annoying, please let me know - it might be an idea to have a weekly email</strong>
4
0.285714
4
0
fe85f1f135d2a7831afee6c8ab0bad394beb8aba
src/ais.py
src/ais.py
class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') class TestMonster(MonsterAI): def _take_turn(self): enemies = self.level.get_objects_outside_faction(self.owner.faction) if len(enemies) > 0: distances = {self.owner.distance_to(e): e for e in enemies} closest_distance = min(distances) closest_enemy = distances[closest_distance] if closest_distance <= 1.5: self.owner.fighter.attack(closest_enemy) else: self.owner.move_towards(closest_enemy.x, closest_enemy.y, self.level)
from src.constants import * class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') class TestMonster(MonsterAI): def _take_turn(self): enemies = self.level.get_objects_outside_faction(self.owner.faction) if len(enemies) > 0: # Identify the closest enemy distances = {self.owner.distance_to(e): e for e in enemies} closest_distance = min(distances) closest_enemy = distances[closest_distance] # Inspect inventory for usable items if self.owner.inventory is not None: usable = self.owner.inventory.get_usable_items() throwing_items = [i for i in usable if i.item.can_use(self.owner, closest_enemy, self.level)] else: throwing_items = [] # Attack if adjacent if closest_distance <= 1.5: self.owner.fighter.attack(closest_enemy) # Throw if you have a throwing item if len(throwing_items) > 0: throwing_items[0].item.use(self.owner, closest_enemy, self.level) else: self.owner.move_towards(closest_enemy.x, closest_enemy.y, self.level)
Add throwing item usage to test AI
Add throwing item usage to test AI Unforutnately the item isn't evicted from the inventory on usage, so the guy with the throwing item can kill everybody, but it's working - he does throw it!
Python
mit
MoyTW/RL_Arena_Experiment
python
## Code Before: class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') class TestMonster(MonsterAI): def _take_turn(self): enemies = self.level.get_objects_outside_faction(self.owner.faction) if len(enemies) > 0: distances = {self.owner.distance_to(e): e for e in enemies} closest_distance = min(distances) closest_enemy = distances[closest_distance] if closest_distance <= 1.5: self.owner.fighter.attack(closest_enemy) else: self.owner.move_towards(closest_enemy.x, closest_enemy.y, self.level) ## Instruction: Add throwing item usage to test AI Unforutnately the item isn't evicted from the inventory on usage, so the guy with the throwing item can kill everybody, but it's working - he does throw it! ## Code After: from src.constants import * class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') class TestMonster(MonsterAI): def _take_turn(self): enemies = self.level.get_objects_outside_faction(self.owner.faction) if len(enemies) > 0: # Identify the closest enemy distances = {self.owner.distance_to(e): e for e in enemies} closest_distance = min(distances) closest_enemy = distances[closest_distance] # Inspect inventory for usable items if self.owner.inventory is not None: usable = self.owner.inventory.get_usable_items() throwing_items = [i for i in usable if i.item.can_use(self.owner, closest_enemy, self.level)] else: throwing_items = [] # Attack if adjacent if closest_distance <= 1.5: self.owner.fighter.attack(closest_enemy) # Throw if you have a throwing item if len(throwing_items) > 0: throwing_items[0].item.use(self.owner, closest_enemy, self.level) else: self.owner.move_towards(closest_enemy.x, closest_enemy.y, self.level)
+ from src.constants import * + + class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') class TestMonster(MonsterAI): def _take_turn(self): + enemies = self.level.get_objects_outside_faction(self.owner.faction) + if len(enemies) > 0: + # Identify the closest enemy distances = {self.owner.distance_to(e): e for e in enemies} closest_distance = min(distances) closest_enemy = distances[closest_distance] + + # Inspect inventory for usable items + if self.owner.inventory is not None: + usable = self.owner.inventory.get_usable_items() + throwing_items = [i for i in usable if i.item.can_use(self.owner, closest_enemy, self.level)] + else: + throwing_items = [] + + # Attack if adjacent if closest_distance <= 1.5: self.owner.fighter.attack(closest_enemy) + # Throw if you have a throwing item + if len(throwing_items) > 0: + throwing_items[0].item.use(self.owner, closest_enemy, self.level) else: self.owner.move_towards(closest_enemy.x, closest_enemy.y, self.level)
18
0.75
18
0
6872c6000113192e2fcfb7eca9ad1cdadb4a3829
public/index.md
public/index.md
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed. ## What is it used for? Hosting any web site required by adding a Dockerfile to your app's source repository. ## What languages are supported? We have 10 languages supported already, and many frameworks. Detailed information [available here](/languages.html). ## How do I use it? There are several ways to get it: 1. An already prepared [Vagrant box](https://github.com/octohost/octovagrant). With [integrated wildcard dns](http://octodev.io) for easy reference. 2. An [Amazon AMI](https://github.com/octohost/octohost). 3. Build your own using [Packer](http://www.packer.io) and a set of [Chef cookbooks](https://github.com/octohost/octohost-cookbook). 4. _Deprecated_: An [Ansible playbook](https://github.com/octohost/octohost) we used to kick off the project. ## Any questions?
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed. ## What is it used for? Hosting any web site required by adding a Dockerfile to your app's source repository. ## What languages are supported? We have 10 languages supported already, and many frameworks. Detailed information [available here](/languages.html). ## How do I use it? There are several ways to get it: 1. An already prepared [Vagrant box](https://github.com/octohost/octovagrant). With [integrated wildcard dns](http://octodev.io) for easy reference. 2. An [Amazon AMI](https://github.com/octohost/octohost-cookbook). 3. Digital Ocean [Droplet](https://github.com/octohost/octohost-cookbook) 4. Rackspace [OpenStack Image](https://github.com/octohost/octohost-cookbook) 5. Build your own somewhere else using [Packer](http://www.packer.io) and a set of [Chef cookbooks](https://github.com/octohost/octohost-cookbook). 6. _Deprecated_: An [Ansible playbook](https://github.com/octohost/octohost) we used to kick off the project. ## Any questions?
Add a few more options.
Add a few more options.
Markdown
apache-2.0
octohost/www
markdown
## Code Before: Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed. ## What is it used for? Hosting any web site required by adding a Dockerfile to your app's source repository. ## What languages are supported? We have 10 languages supported already, and many frameworks. Detailed information [available here](/languages.html). ## How do I use it? There are several ways to get it: 1. An already prepared [Vagrant box](https://github.com/octohost/octovagrant). With [integrated wildcard dns](http://octodev.io) for easy reference. 2. An [Amazon AMI](https://github.com/octohost/octohost). 3. Build your own using [Packer](http://www.packer.io) and a set of [Chef cookbooks](https://github.com/octohost/octohost-cookbook). 4. _Deprecated_: An [Ansible playbook](https://github.com/octohost/octohost) we used to kick off the project. ## Any questions? ## Instruction: Add a few more options. ## Code After: Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed. ## What is it used for? Hosting any web site required by adding a Dockerfile to your app's source repository. ## What languages are supported? We have 10 languages supported already, and many frameworks. Detailed information [available here](/languages.html). ## How do I use it? There are several ways to get it: 1. An already prepared [Vagrant box](https://github.com/octohost/octovagrant). With [integrated wildcard dns](http://octodev.io) for easy reference. 2. An [Amazon AMI](https://github.com/octohost/octohost-cookbook). 3. Digital Ocean [Droplet](https://github.com/octohost/octohost-cookbook) 4. Rackspace [OpenStack Image](https://github.com/octohost/octohost-cookbook) 5. Build your own somewhere else using [Packer](http://www.packer.io) and a set of [Chef cookbooks](https://github.com/octohost/octohost-cookbook). 6. _Deprecated_: An [Ansible playbook](https://github.com/octohost/octohost) we used to kick off the project. ## Any questions?
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed. ## What is it used for? Hosting any web site required by adding a Dockerfile to your app's source repository. ## What languages are supported? We have 10 languages supported already, and many frameworks. Detailed information [available here](/languages.html). ## How do I use it? There are several ways to get it: 1. An already prepared [Vagrant box](https://github.com/octohost/octovagrant). With [integrated wildcard dns](http://octodev.io) for easy reference. - 2. An [Amazon AMI](https://github.com/octohost/octohost). + 2. An [Amazon AMI](https://github.com/octohost/octohost-cookbook). ? +++++++++ - 3. Build your own using [Packer](http://www.packer.io) and a set of [Chef cookbooks](https://github.com/octohost/octohost-cookbook). + 3. Digital Ocean [Droplet](https://github.com/octohost/octohost-cookbook) + 4. Rackspace [OpenStack Image](https://github.com/octohost/octohost-cookbook) + + 5. Build your own somewhere else using [Packer](http://www.packer.io) and a set of [Chef cookbooks](https://github.com/octohost/octohost-cookbook). + - 4. _Deprecated_: An [Ansible playbook](https://github.com/octohost/octohost) we used to kick off the project. ? ^ + 6. _Deprecated_: An [Ansible playbook](https://github.com/octohost/octohost) we used to kick off the project. ? ^ ## Any questions?
10
0.416667
7
3
e19d16c720b7ead9e3252da922b061118f63cb87
manage/run-dev.sh
manage/run-dev.sh
set -eu # Exit on error and undefined var is error MANAGE="python manage.py" # Check if settings exist APP_SETTINGS_FILE=studlan/settings/local.py if [[ ! -e $APP_SETTINGS_FILE ]]; then echo "App settings not found: $APP_SETTINGS_FILE" 1>&2 exit 1 fi # Activate venv and deactivate on exit source .venv/bin/activate trap deactivate EXIT # Collect new static files echo "Collecting new static files ..." $MANAGE collectstatic --noinput # Run migration, but skip initial if matching table names already exist echo "Running migration ..." $MANAGE migrate --fake-initial exec uwsgi --ini uwsgi.ini
set -eu # Exit on error and undefined var is error MANAGE="python manage.py" # Check if settings exist APP_SETTINGS_FILE=studlan/settings/local.py if [[ ! -e $APP_SETTINGS_FILE ]]; then echo "App settings not found: $APP_SETTINGS_FILE" 1>&2 exit 1 fi # Activate venv and deactivate on exit source .venv/bin/activate trap deactivate EXIT exec uwsgi --ini uwsgi.ini
Remove redundant steps from venv run script
Remove redundant steps from venv run script
Shell
mit
dotKom/studlan,CasualGaming/studlan,dotKom/studlan,dotKom/studlan,CasualGaming/studlan,CasualGaming/studlan,dotKom/studlan,CasualGaming/studlan
shell
## Code Before: set -eu # Exit on error and undefined var is error MANAGE="python manage.py" # Check if settings exist APP_SETTINGS_FILE=studlan/settings/local.py if [[ ! -e $APP_SETTINGS_FILE ]]; then echo "App settings not found: $APP_SETTINGS_FILE" 1>&2 exit 1 fi # Activate venv and deactivate on exit source .venv/bin/activate trap deactivate EXIT # Collect new static files echo "Collecting new static files ..." $MANAGE collectstatic --noinput # Run migration, but skip initial if matching table names already exist echo "Running migration ..." $MANAGE migrate --fake-initial exec uwsgi --ini uwsgi.ini ## Instruction: Remove redundant steps from venv run script ## Code After: set -eu # Exit on error and undefined var is error MANAGE="python manage.py" # Check if settings exist APP_SETTINGS_FILE=studlan/settings/local.py if [[ ! -e $APP_SETTINGS_FILE ]]; then echo "App settings not found: $APP_SETTINGS_FILE" 1>&2 exit 1 fi # Activate venv and deactivate on exit source .venv/bin/activate trap deactivate EXIT exec uwsgi --ini uwsgi.ini
set -eu # Exit on error and undefined var is error MANAGE="python manage.py" # Check if settings exist APP_SETTINGS_FILE=studlan/settings/local.py if [[ ! -e $APP_SETTINGS_FILE ]]; then echo "App settings not found: $APP_SETTINGS_FILE" 1>&2 exit 1 fi # Activate venv and deactivate on exit source .venv/bin/activate trap deactivate EXIT - # Collect new static files - echo "Collecting new static files ..." - $MANAGE collectstatic --noinput - - # Run migration, but skip initial if matching table names already exist - echo "Running migration ..." - $MANAGE migrate --fake-initial - exec uwsgi --ini uwsgi.ini
8
0.32
0
8
f7eca48996141c626721388389faa3ffd8f5712e
packages/ya/yarn-lock.yaml
packages/ya/yarn-lock.yaml
homepage: https://github.com/Profpatsch/yaml-lock#readme changelog-type: '' hash: 7f71a6d434d1955f8aca5159b9f05ceb88167d584dadfac844cd58cf43d5adea test-bench-deps: {} maintainer: mail@profpatsch.de synopsis: Represent and parse yarn.lock files changelog: '' basic-deps: base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any all-versions: - '0.1.0' author: Profpatsch latest: '0.1.0' description-type: haddock description: Types and parser for the lock file format of the npm successor yarn. license-name: MIT
homepage: https://github.com/Profpatsch/yarn-lock#readme changelog-type: markdown hash: 7fd55295a10edcce93f8c5c6f65622e1eef726032bc25271dfd32b80597cc1c7 test-bench-deps: ansi-wl-pprint: ! '>=0.6' tasty-th: ! '>=0.1.7' base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any yarn-lock: -any tasty-hunit: ! '>=0.9' tasty: ! '>=0.11' maintainer: mail@profpatsch.de synopsis: Represent and parse yarn.lock files changelog: ! '# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## 0.2 - 2017-05-21 ### Added - a multi-keyed map module - `decycle` function for removing npm dependency cycles ### Changed - Lockfile type is now a multi-keyed map ## [0.1] - 2017-04-18 ### Added - parser for `yarn.lock` files generated by yarn - data types representing the yarn file - Lockfile type that is a simple `Map` ' basic-deps: base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any all-versions: - '0.1.0' - '0.2.0' author: Profpatsch latest: '0.2.0' description-type: haddock description: Types and parser for the lock file format of the npm successor yarn. license-name: MIT
Update from Hackage at 2017-05-21T21:15:17Z
Update from Hackage at 2017-05-21T21:15:17Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/Profpatsch/yaml-lock#readme changelog-type: '' hash: 7f71a6d434d1955f8aca5159b9f05ceb88167d584dadfac844cd58cf43d5adea test-bench-deps: {} maintainer: mail@profpatsch.de synopsis: Represent and parse yarn.lock files changelog: '' basic-deps: base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any all-versions: - '0.1.0' author: Profpatsch latest: '0.1.0' description-type: haddock description: Types and parser for the lock file format of the npm successor yarn. license-name: MIT ## Instruction: Update from Hackage at 2017-05-21T21:15:17Z ## Code After: homepage: https://github.com/Profpatsch/yarn-lock#readme changelog-type: markdown hash: 7fd55295a10edcce93f8c5c6f65622e1eef726032bc25271dfd32b80597cc1c7 test-bench-deps: ansi-wl-pprint: ! '>=0.6' tasty-th: ! '>=0.1.7' base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any yarn-lock: -any tasty-hunit: ! '>=0.9' tasty: ! '>=0.11' maintainer: mail@profpatsch.de synopsis: Represent and parse yarn.lock files changelog: ! '# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## 0.2 - 2017-05-21 ### Added - a multi-keyed map module - `decycle` function for removing npm dependency cycles ### Changed - Lockfile type is now a multi-keyed map ## [0.1] - 2017-04-18 ### Added - parser for `yarn.lock` files generated by yarn - data types representing the yarn file - Lockfile type that is a simple `Map` ' basic-deps: base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any all-versions: - '0.1.0' - '0.2.0' author: Profpatsch latest: '0.2.0' description-type: haddock description: Types and parser for the lock file format of the npm successor yarn. license-name: MIT
- homepage: https://github.com/Profpatsch/yaml-lock#readme ? ^^ + homepage: https://github.com/Profpatsch/yarn-lock#readme ? ^^ - changelog-type: '' ? ^^ + changelog-type: markdown ? ^^^^^^^^ - hash: 7f71a6d434d1955f8aca5159b9f05ceb88167d584dadfac844cd58cf43d5adea + hash: 7fd55295a10edcce93f8c5c6f65622e1eef726032bc25271dfd32b80597cc1c7 - test-bench-deps: {} ? --- + test-bench-deps: + ansi-wl-pprint: ! '>=0.6' + tasty-th: ! '>=0.1.7' + base: ==4.* + text: -any + megaparsec: ==5.* + protolude: ! '>=0.1' + containers: -any + yarn-lock: -any + tasty-hunit: ! '>=0.9' + tasty: ! '>=0.11' maintainer: mail@profpatsch.de synopsis: Represent and parse yarn.lock files - changelog: '' + changelog: ! '# Changelog + + + All notable changes to this project will be documented in this file. + + + The format is based on [Keep a Changelog](http://keepachangelog.com/) + + and this project adheres to [Semantic Versioning](http://semver.org/). + + + ## 0.2 - 2017-05-21 + + + ### Added + + - a multi-keyed map module + + - `decycle` function for removing npm dependency cycles + + + ### Changed + + - Lockfile type is now a multi-keyed map + + + + ## [0.1] - 2017-04-18 + + + ### Added + + - parser for `yarn.lock` files generated by yarn + + - data types representing the yarn file + + - Lockfile type that is a simple `Map` + + + + ' basic-deps: base: ==4.* text: -any megaparsec: ==5.* protolude: ! '>=0.1' containers: -any all-versions: - '0.1.0' + - '0.2.0' author: Profpatsch - latest: '0.1.0' ? ^ + latest: '0.2.0' ? ^ description-type: haddock description: Types and parser for the lock file format of the npm successor yarn. license-name: MIT
63
3.15
57
6
02510fc815c1e60b057ff806e1f0898b3e09b532
expandablerecyclerview/src/test/java/com/bignerdranch/expandablerecyclerview/TestUtils.java
expandablerecyclerview/src/test/java/com/bignerdranch/expandablerecyclerview/TestUtils.java
package com.bignerdranch.expandablerecyclerview; import android.database.Observable; import android.support.v7.widget.RecyclerView; import java.lang.reflect.Field; import java.util.ArrayList; import static org.mockito.Mockito.mock; public final class TestUtils { private TestUtils() {} /** * Fixes internal dependencies to android.database.Observable so that a RecyclerView.Adapter can be tested using regular unit tests while * observing changes to the data setIsTypingRepository. */ public static RecyclerView.AdapterDataObserver fixAdapterForTesting(RecyclerView.Adapter adapter) throws NoSuchFieldException, IllegalAccessException { // Observables are not mocked by default so we need to hook the adapter up to an observer so we can track changes Field observableField = RecyclerView.Adapter.class.getDeclaredField("mObservable"); observableField.setAccessible(true); Object observable = observableField.get(adapter); Field observersField = Observable.class.getDeclaredField("mObservers"); observersField.setAccessible(true); final ArrayList<Object> observers = new ArrayList<>(); RecyclerView.AdapterDataObserver dataObserver = mock(RecyclerView.AdapterDataObserver.class); observers.add(dataObserver); observersField.set(observable, observers); return dataObserver; } }
package com.bignerdranch.expandablerecyclerview; import android.database.Observable; import android.support.v7.widget.RecyclerView; import java.lang.reflect.Field; import java.util.ArrayList; import static org.mockito.Mockito.mock; public final class TestUtils { private TestUtils() {} /** * Fixes internal dependencies to android.database.Observable so that a RecyclerView.Adapter * can be tested using regular unit tests while verifying changes to the data. * * Pulled from: https://github.com/badoo/Chateau/blob/master/ExampleApp/src/test/java/com/badoo/chateau/example/ui/utils/TestUtils.java */ public static RecyclerView.AdapterDataObserver fixAdapterForTesting(RecyclerView.Adapter adapter) throws NoSuchFieldException, IllegalAccessException { // Observables are not mocked by default so we need to hook the adapter up to an observer so we can track changes Field observableField = RecyclerView.Adapter.class.getDeclaredField("mObservable"); observableField.setAccessible(true); Object observable = observableField.get(adapter); Field observersField = Observable.class.getDeclaredField("mObservers"); observersField.setAccessible(true); final ArrayList<Object> observers = new ArrayList<>(); RecyclerView.AdapterDataObserver dataObserver = mock(RecyclerView.AdapterDataObserver.class); observers.add(dataObserver); observersField.set(observable, observers); return dataObserver; } }
Update documentation of testutils method
Update documentation of testutils method
Java
mit
bignerdranch/expandable-recycler-view,bignerdranch/expandable-recycler-view,Reline/realm-expandable-recycler-view
java
## Code Before: package com.bignerdranch.expandablerecyclerview; import android.database.Observable; import android.support.v7.widget.RecyclerView; import java.lang.reflect.Field; import java.util.ArrayList; import static org.mockito.Mockito.mock; public final class TestUtils { private TestUtils() {} /** * Fixes internal dependencies to android.database.Observable so that a RecyclerView.Adapter can be tested using regular unit tests while * observing changes to the data setIsTypingRepository. */ public static RecyclerView.AdapterDataObserver fixAdapterForTesting(RecyclerView.Adapter adapter) throws NoSuchFieldException, IllegalAccessException { // Observables are not mocked by default so we need to hook the adapter up to an observer so we can track changes Field observableField = RecyclerView.Adapter.class.getDeclaredField("mObservable"); observableField.setAccessible(true); Object observable = observableField.get(adapter); Field observersField = Observable.class.getDeclaredField("mObservers"); observersField.setAccessible(true); final ArrayList<Object> observers = new ArrayList<>(); RecyclerView.AdapterDataObserver dataObserver = mock(RecyclerView.AdapterDataObserver.class); observers.add(dataObserver); observersField.set(observable, observers); return dataObserver; } } ## Instruction: Update documentation of testutils method ## Code After: package com.bignerdranch.expandablerecyclerview; import android.database.Observable; import android.support.v7.widget.RecyclerView; import java.lang.reflect.Field; import java.util.ArrayList; import static org.mockito.Mockito.mock; public final class TestUtils { private TestUtils() {} /** * Fixes internal dependencies to android.database.Observable so that a RecyclerView.Adapter * can be tested using regular unit tests while verifying changes to the data. * * Pulled from: https://github.com/badoo/Chateau/blob/master/ExampleApp/src/test/java/com/badoo/chateau/example/ui/utils/TestUtils.java */ public static RecyclerView.AdapterDataObserver fixAdapterForTesting(RecyclerView.Adapter adapter) throws NoSuchFieldException, IllegalAccessException { // Observables are not mocked by default so we need to hook the adapter up to an observer so we can track changes Field observableField = RecyclerView.Adapter.class.getDeclaredField("mObservable"); observableField.setAccessible(true); Object observable = observableField.get(adapter); Field observersField = Observable.class.getDeclaredField("mObservers"); observersField.setAccessible(true); final ArrayList<Object> observers = new ArrayList<>(); RecyclerView.AdapterDataObserver dataObserver = mock(RecyclerView.AdapterDataObserver.class); observers.add(dataObserver); observersField.set(observable, observers); return dataObserver; } }
package com.bignerdranch.expandablerecyclerview; import android.database.Observable; import android.support.v7.widget.RecyclerView; import java.lang.reflect.Field; import java.util.ArrayList; import static org.mockito.Mockito.mock; public final class TestUtils { private TestUtils() {} /** - * Fixes internal dependencies to android.database.Observable so that a RecyclerView.Adapter can be tested using regular unit tests while ? --------------------------------------------- + * Fixes internal dependencies to android.database.Observable so that a RecyclerView.Adapter - * observing changes to the data setIsTypingRepository. + * can be tested using regular unit tests while verifying changes to the data. + * + * Pulled from: https://github.com/badoo/Chateau/blob/master/ExampleApp/src/test/java/com/badoo/chateau/example/ui/utils/TestUtils.java */ public static RecyclerView.AdapterDataObserver fixAdapterForTesting(RecyclerView.Adapter adapter) throws NoSuchFieldException, IllegalAccessException { // Observables are not mocked by default so we need to hook the adapter up to an observer so we can track changes Field observableField = RecyclerView.Adapter.class.getDeclaredField("mObservable"); observableField.setAccessible(true); Object observable = observableField.get(adapter); Field observersField = Observable.class.getDeclaredField("mObservers"); observersField.setAccessible(true); final ArrayList<Object> observers = new ArrayList<>(); RecyclerView.AdapterDataObserver dataObserver = mock(RecyclerView.AdapterDataObserver.class); observers.add(dataObserver); observersField.set(observable, observers); return dataObserver; } }
6
0.1875
4
2
1e010e940390ae5b650224363e4acecd816b2611
settings_dev.py
settings_dev.py
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_plugin.WindowCommand): def run(self): v = self.window.new_file() v.settings().set('default_dir', root_at_packages('User')) v.set_syntax_file(SETTINGS_SYNTAX) v.run_command('insert_snippet', {'contents': TPL})
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax" % PLUGIN_NAME) TPL = '''\ { "$1": $0 }'''.replace(" " * 4, "\t") class NewSettingsCommand(sublime_plugin.WindowCommand): def run(self): v = self.window.new_file() v.settings().set('default_dir', root_at_packages('User')) v.set_syntax_file(SETTINGS_SYNTAX) v.run_command('insert_snippet', {'contents': TPL})
Update syntax path for new settings file command
Update syntax path for new settings file command
Python
mit
SublimeText/AAAPackageDev,SublimeText/AAAPackageDev,SublimeText/PackageDev
python
## Code Before: import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_plugin.WindowCommand): def run(self): v = self.window.new_file() v.settings().set('default_dir', root_at_packages('User')) v.set_syntax_file(SETTINGS_SYNTAX) v.run_command('insert_snippet', {'contents': TPL}) ## Instruction: Update syntax path for new settings file command ## Code After: import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax" % PLUGIN_NAME) TPL = '''\ { "$1": $0 }'''.replace(" " * 4, "\t") class NewSettingsCommand(sublime_plugin.WindowCommand): def run(self): v = self.window.new_file() v.settings().set('default_dir', root_at_packages('User')) v.set_syntax_file(SETTINGS_SYNTAX) v.run_command('insert_snippet', {'contents': TPL})
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() - SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" ? -- ^^^^^^ + SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax" ? +++++ +++++++++++ ^ % PLUGIN_NAME) - TPL = "{\n\t$0\n}" + TPL = '''\ + { + "$1": $0 + }'''.replace(" " * 4, "\t") class NewSettingsCommand(sublime_plugin.WindowCommand): def run(self): v = self.window.new_file() v.settings().set('default_dir', root_at_packages('User')) v.set_syntax_file(SETTINGS_SYNTAX) v.run_command('insert_snippet', {'contents': TPL})
7
0.388889
5
2
e592e16682dcc10c4b4f5ba42d4cebc6fa60b2f3
.travis.yml
.travis.yml
os: osx osx_image: xcode9.2 env: global: - COLUMNS=240 - HOMEBREW_OPTFLAGS="-march=corei7" before_install: - brew cleanup - brew uninstall boost carthage cgal dirmngr gdal gnupg go gpg-agent libassuan libgcrypt libgeotiff libgpg-error liblwgeom libspatialite maven mercurial pinentry postgis postgresql python sfcgal swiftlint - brew update - brew upgrade - brew cleanup install: - brew install advancecomp - brew install https://raw.githubusercontent.com/lovell/homebrew-core/gdk-pixbuf-builtin-loaders/Formula/gdk-pixbuf.rb --builtin-loaders="png,jpeg" - brew install vips --without-fftw --without-graphicsmagick --without-poppler script: - ./package.sh addons: artifacts: s3_region: eu-west-1
os: osx osx_image: xcode9.2 env: global: - COLUMNS=240 - HOMEBREW_OPTFLAGS="-march=corei7" before_install: - brew cleanup - brew uninstall boost carthage cgal dirmngr gdal go libgeotiff liblwgeom libspatialite maven mercurial postgis postgresql python sfcgal swiftlint - brew update - brew upgrade - brew cleanup install: - brew install advancecomp - brew install https://raw.githubusercontent.com/lovell/homebrew-core/gdk-pixbuf-builtin-loaders/Formula/gdk-pixbuf.rb --builtin-loaders="png,jpeg" - brew install vips --without-fftw --without-graphicsmagick --without-poppler script: - ./package.sh addons: artifacts: s3_region: eu-west-1
Remove unused formulae to speed upgrade
Remove unused formulae to speed upgrade
YAML
apache-2.0
lovell/package-libvips-darwin,lovell/package-libvips-darwin
yaml
## Code Before: os: osx osx_image: xcode9.2 env: global: - COLUMNS=240 - HOMEBREW_OPTFLAGS="-march=corei7" before_install: - brew cleanup - brew uninstall boost carthage cgal dirmngr gdal gnupg go gpg-agent libassuan libgcrypt libgeotiff libgpg-error liblwgeom libspatialite maven mercurial pinentry postgis postgresql python sfcgal swiftlint - brew update - brew upgrade - brew cleanup install: - brew install advancecomp - brew install https://raw.githubusercontent.com/lovell/homebrew-core/gdk-pixbuf-builtin-loaders/Formula/gdk-pixbuf.rb --builtin-loaders="png,jpeg" - brew install vips --without-fftw --without-graphicsmagick --without-poppler script: - ./package.sh addons: artifacts: s3_region: eu-west-1 ## Instruction: Remove unused formulae to speed upgrade ## Code After: os: osx osx_image: xcode9.2 env: global: - COLUMNS=240 - HOMEBREW_OPTFLAGS="-march=corei7" before_install: - brew cleanup - brew uninstall boost carthage cgal dirmngr gdal go libgeotiff liblwgeom libspatialite maven mercurial postgis postgresql python sfcgal swiftlint - brew update - brew upgrade - brew cleanup install: - brew install advancecomp - brew install https://raw.githubusercontent.com/lovell/homebrew-core/gdk-pixbuf-builtin-loaders/Formula/gdk-pixbuf.rb --builtin-loaders="png,jpeg" - brew install vips --without-fftw --without-graphicsmagick --without-poppler script: - ./package.sh addons: artifacts: s3_region: eu-west-1
os: osx osx_image: xcode9.2 env: global: - COLUMNS=240 - HOMEBREW_OPTFLAGS="-march=corei7" before_install: - brew cleanup - - brew uninstall boost carthage cgal dirmngr gdal gnupg go gpg-agent libassuan libgcrypt libgeotiff libgpg-error liblwgeom libspatialite maven mercurial pinentry postgis postgresql python sfcgal swiftlint ? ------ ------------------------------ ------------- --------- + - brew uninstall boost carthage cgal dirmngr gdal go libgeotiff liblwgeom libspatialite maven mercurial postgis postgresql python sfcgal swiftlint - brew update - brew upgrade - brew cleanup install: - brew install advancecomp - brew install https://raw.githubusercontent.com/lovell/homebrew-core/gdk-pixbuf-builtin-loaders/Formula/gdk-pixbuf.rb --builtin-loaders="png,jpeg" - brew install vips --without-fftw --without-graphicsmagick --without-poppler script: - ./package.sh addons: artifacts: s3_region: eu-west-1
2
0.095238
1
1
377ed379383de3e4b6ddda8e45427b178b04422d
config/dev.bs.config.json
config/dev.bs.config.json
{ "server": { "baseDir": "./src", "routes": { "/": "./" } } }
{ "files": [ "./**/*.{html,htm,css,js,ts}"], "server": { "baseDir": "./src", "routes": { "/": "./" } } }
Add in the right files, including ts
Add in the right files, including ts
JSON
agpl-3.0
PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org
json
## Code Before: { "server": { "baseDir": "./src", "routes": { "/": "./" } } } ## Instruction: Add in the right files, including ts ## Code After: { "files": [ "./**/*.{html,htm,css,js,ts}"], "server": { "baseDir": "./src", "routes": { "/": "./" } } }
{ + "files": [ "./**/*.{html,htm,css,js,ts}"], "server": { "baseDir": "./src", "routes": { "/": "./" } } }
1
0.125
1
0
357f457ec038ae6d37ea8faf257ba8aeb27437ef
content/docs/ui/account-and-settings/custom-ssl-configurations.md
content/docs/ui/account-and-settings/custom-ssl-configurations.md
--- seo: title: Adding a Custom SSL configuration title: Adding a Custom SSL configuration layout: page weight: 0 group: account-management navigation: show: true --- If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, then you can setup custom SSL configuration. Before Adding a Custom SSL configuration, you need to set up a valid [link branding]({{root_url}}/ui/account-and-settings/how-to-set-up-link-branding/) on your account. *To add a custom SSL configuration:* 1. Prepare a proxy (like web application, nginx, or Amazon API Gateway) to take all traffic for `mailing.example.com` and forward it to `sendgrid.net`. 1. Set up the proxy to use HTTP or HTTPS. For HTTPS, provide valid SSL certificate for `mailing.example.com` domain. 1. To forward traffic, set `Host` HTTP header to `mailing.example.com` domain. 1. Point the CNAME record to your proxy. For example, `CNAME mailing.example.com proxy.example.com`. <call-out type="warning"> Don't validate the DNS record more than once, because after changing the CNAME, a second validation fails and the authentication stops working. </call-out> [Contact SendGrid Support](https://support.sendgrid.com/hc/en-us) to enable SSL click and open tracking.
--- seo: title: Adding a Custom SSL configuration title: Adding a Custom SSL configuration layout: page weight: 0 group: account-management navigation: show: true --- If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, you can set up a custom SSL configuration. Before Adding a Custom SSL configuration, you need to set up a valid [link branding]({{root_url}}/ui/account-and-settings/how-to-set-up-link-branding/) on your account. _To add a custom SSL configuration:_ 1. Prepare a proxy (like a web application, NGINX, or Amazon API Gateway) to take all traffic for `mailing.example.com` and forward it to `http://sendgrid.net` or `https://sendgrid.net`. 1. Set up the proxy to use HTTP or HTTPS. For HTTPS, provide a valid SSL certificate for `mailing.example.com` domain. 1. To forward traffic, set the `Host` HTTP header to `mailing.example.com` domain. 1. Point the CNAME record to your proxy. For example, `CNAME mailing.example.com proxy.example.com`. <call-out type="warning"> Don't validate the DNS record more than once. After changing the CNAME, a second validation will fail, and the authentication will stop working. </call-out> [Contact SendGrid Support](https://support.sendgrid.com/hc/en-us) to enable SSL click and open tracking.
Add https to custom ssl config
Add https to custom ssl config
Markdown
mit
Whatthefoxsays/docs,sendgrid/docs,Whatthefoxsays/docs,Whatthefoxsays/docs,sendgrid/docs,sendgrid/docs
markdown
## Code Before: --- seo: title: Adding a Custom SSL configuration title: Adding a Custom SSL configuration layout: page weight: 0 group: account-management navigation: show: true --- If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, then you can setup custom SSL configuration. Before Adding a Custom SSL configuration, you need to set up a valid [link branding]({{root_url}}/ui/account-and-settings/how-to-set-up-link-branding/) on your account. *To add a custom SSL configuration:* 1. Prepare a proxy (like web application, nginx, or Amazon API Gateway) to take all traffic for `mailing.example.com` and forward it to `sendgrid.net`. 1. Set up the proxy to use HTTP or HTTPS. For HTTPS, provide valid SSL certificate for `mailing.example.com` domain. 1. To forward traffic, set `Host` HTTP header to `mailing.example.com` domain. 1. Point the CNAME record to your proxy. For example, `CNAME mailing.example.com proxy.example.com`. <call-out type="warning"> Don't validate the DNS record more than once, because after changing the CNAME, a second validation fails and the authentication stops working. </call-out> [Contact SendGrid Support](https://support.sendgrid.com/hc/en-us) to enable SSL click and open tracking. ## Instruction: Add https to custom ssl config ## Code After: --- seo: title: Adding a Custom SSL configuration title: Adding a Custom SSL configuration layout: page weight: 0 group: account-management navigation: show: true --- If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, you can set up a custom SSL configuration. Before Adding a Custom SSL configuration, you need to set up a valid [link branding]({{root_url}}/ui/account-and-settings/how-to-set-up-link-branding/) on your account. _To add a custom SSL configuration:_ 1. Prepare a proxy (like a web application, NGINX, or Amazon API Gateway) to take all traffic for `mailing.example.com` and forward it to `http://sendgrid.net` or `https://sendgrid.net`. 1. Set up the proxy to use HTTP or HTTPS. For HTTPS, provide a valid SSL certificate for `mailing.example.com` domain. 1. To forward traffic, set the `Host` HTTP header to `mailing.example.com` domain. 1. Point the CNAME record to your proxy. For example, `CNAME mailing.example.com proxy.example.com`. <call-out type="warning"> Don't validate the DNS record more than once. After changing the CNAME, a second validation will fail, and the authentication will stop working. </call-out> [Contact SendGrid Support](https://support.sendgrid.com/hc/en-us) to enable SSL click and open tracking.
--- seo: title: Adding a Custom SSL configuration title: Adding a Custom SSL configuration layout: page weight: 0 group: account-management navigation: show: true --- - If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, then you can setup custom SSL configuration. ? ----- + If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, you can set up a custom SSL configuration. ? + ++ Before Adding a Custom SSL configuration, you need to set up a valid [link branding]({{root_url}}/ui/account-and-settings/how-to-set-up-link-branding/) on your account. - *To add a custom SSL configuration:* ? ^ ^ + _To add a custom SSL configuration:_ ? ^ ^ - 1. Prepare a proxy (like web application, nginx, or Amazon API Gateway) to take all traffic for `mailing.example.com` and forward it to `sendgrid.net`. ? ^^^^^ + 1. Prepare a proxy (like a web application, NGINX, or Amazon API Gateway) to take all traffic for `mailing.example.com` and forward it to `http://sendgrid.net` or `https://sendgrid.net`. ? ++ ^^^^^ +++++++++++++++++++++++++++++++++ - 1. Set up the proxy to use HTTP or HTTPS. For HTTPS, provide valid SSL certificate for `mailing.example.com` domain. + 1. Set up the proxy to use HTTP or HTTPS. For HTTPS, provide a valid SSL certificate for `mailing.example.com` domain. ? ++ - 1. To forward traffic, set `Host` HTTP header to `mailing.example.com` domain. + 1. To forward traffic, set the `Host` HTTP header to `mailing.example.com` domain. ? ++++ 1. Point the CNAME record to your proxy. For example, `CNAME mailing.example.com proxy.example.com`. <call-out type="warning"> - Don't validate the DNS record more than once, because after changing the CNAME, a second validation fails and the authentication stops working. ? ^ ^^^^^^^^^ ^ - + Don't validate the DNS record more than once. After changing the CNAME, a second validation will fail, and the authentication will stop working. ? ^ ^ +++++ ^ +++++ </call-out> [Contact SendGrid Support](https://support.sendgrid.com/hc/en-us) to enable SSL click and open tracking.
12
0.413793
6
6
9ecedf481a813fe928556f021bac5b6751385dfd
src/main/java/net/rithms/riot/constant/GameMode.java
src/main/java/net/rithms/riot/constant/GameMode.java
/* * Copyright 2014 Taylor Caldwell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.rithms.riot.constant; public enum GameMode { ARAM("ARAM"), ASCENSION("Ascension"), CLASSIC("Classic"), FIRSTBLOOD("Snowdown Showdown"), KINGPORO("King Poro"), ODIN("Dominion/Crystal Scar"), ONEFORALL("One for All"), TUTORIAL("Tutorial"); private String name; GameMode(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return getName(); } }
/* * Copyright 2014 Taylor Caldwell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.rithms.riot.constant; public enum GameMode { ARAM("ARAM"), ASCENSION("Ascension"), CLASSIC("Classic"), FIRSTBLOOD("Snowdown Showdown"), KINGPORO("King Poro"), ODIN("Dominion/Crystal Scar"), ONEFORALL("One for All"), SIEGE("Nexus Siege"), TUTORIAL("Tutorial"); private String name; GameMode(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return getName(); } }
Add Nexus Siege game mode
Add Nexus Siege game mode
Java
apache-2.0
taycaldwell/riot-api-java,rithms/riot-api-java
java
## Code Before: /* * Copyright 2014 Taylor Caldwell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.rithms.riot.constant; public enum GameMode { ARAM("ARAM"), ASCENSION("Ascension"), CLASSIC("Classic"), FIRSTBLOOD("Snowdown Showdown"), KINGPORO("King Poro"), ODIN("Dominion/Crystal Scar"), ONEFORALL("One for All"), TUTORIAL("Tutorial"); private String name; GameMode(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return getName(); } } ## Instruction: Add Nexus Siege game mode ## Code After: /* * Copyright 2014 Taylor Caldwell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.rithms.riot.constant; public enum GameMode { ARAM("ARAM"), ASCENSION("Ascension"), CLASSIC("Classic"), FIRSTBLOOD("Snowdown Showdown"), KINGPORO("King Poro"), ODIN("Dominion/Crystal Scar"), ONEFORALL("One for All"), SIEGE("Nexus Siege"), TUTORIAL("Tutorial"); private String name; GameMode(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return getName(); } }
/* * Copyright 2014 Taylor Caldwell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.rithms.riot.constant; public enum GameMode { ARAM("ARAM"), ASCENSION("Ascension"), CLASSIC("Classic"), FIRSTBLOOD("Snowdown Showdown"), KINGPORO("King Poro"), ODIN("Dominion/Crystal Scar"), ONEFORALL("One for All"), + SIEGE("Nexus Siege"), TUTORIAL("Tutorial"); private String name; GameMode(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return getName(); } }
1
0.023256
1
0
d21233c0f8763a3008f24c431d9710412a476624
.travis.yml
.travis.yml
dist: trusty language: php dist: trusty php: - '7.4' - '7.3' - '7.2' - '7.1' - '7.0' before_install: - composer update script: - composer validate - vendor/bin/phpunit --version - vendor/bin/phpunit --configuration tests/phpunit.xml notifications: email: recipients: - will.knauss@gmail.com on_success: never on_failure: always
dist: trusty language: php dist: trusty php: - '7.4' - '7.3' - '7.2' - '7.1' before_install: - composer update script: - composer validate - vendor/bin/phpunit --version - vendor/bin/phpunit --configuration tests/phpunit.xml notifications: email: recipients: - will.knauss@gmail.com on_success: never on_failure: always
Remove Travis tests for PHP 7.0
Remove Travis tests for PHP 7.0 It said: > TypeError: Return value of ParseCsv\tests\properties\BaseClass::setUp() must be an instance of void, none returned
YAML
mit
parsecsv/parsecsv-for-php
yaml
## Code Before: dist: trusty language: php dist: trusty php: - '7.4' - '7.3' - '7.2' - '7.1' - '7.0' before_install: - composer update script: - composer validate - vendor/bin/phpunit --version - vendor/bin/phpunit --configuration tests/phpunit.xml notifications: email: recipients: - will.knauss@gmail.com on_success: never on_failure: always ## Instruction: Remove Travis tests for PHP 7.0 It said: > TypeError: Return value of ParseCsv\tests\properties\BaseClass::setUp() must be an instance of void, none returned ## Code After: dist: trusty language: php dist: trusty php: - '7.4' - '7.3' - '7.2' - '7.1' before_install: - composer update script: - composer validate - vendor/bin/phpunit --version - vendor/bin/phpunit --configuration tests/phpunit.xml notifications: email: recipients: - will.knauss@gmail.com on_success: never on_failure: always
dist: trusty language: php dist: trusty php: - '7.4' - '7.3' - '7.2' - '7.1' - - '7.0' before_install: - composer update script: - composer validate - vendor/bin/phpunit --version - vendor/bin/phpunit --configuration tests/phpunit.xml notifications: email: recipients: - will.knauss@gmail.com on_success: never on_failure: always
1
0.04
0
1
f500e48e2cf4dd4065082eea5865bcaa77a8d904
spring-boot-cli/src/main/homebrew/springboot.rb
spring-boot-cli/src/main/homebrew/springboot.rb
require 'formula' class Springboot < Formula homepage 'http://projects.spring.io/spring-boot/' url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz' version '${version}' sha1 '${checksum}' def install bin.install 'bin/spring' lib.install 'lib/spring-boot-cli-${version}.jar' bash_completion.install 'shell-completion/bash/spring' zsh_completion.install 'shell-completion/zsh/_spring' end end
require 'formula' class Springboot < Formula homepage 'http://projects.spring.io/spring-boot/' url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz' version '${project.version}' sha1 '${checksum}' def install bin.install 'bin/spring' lib.install 'lib/spring-boot-cli-${project.version}.jar' bash_completion.install 'shell-completion/bash/spring' zsh_completion.install 'shell-completion/zsh/_spring' end end
Fix version replacement in homebrew generation
Fix version replacement in homebrew generation
Ruby
apache-2.0
eliudiaz/spring-boot,joshiste/spring-boot,chrylis/spring-boot,fireshort/spring-boot,na-na/spring-boot,qerub/spring-boot,prasenjit-net/spring-boot,ojacquemart/spring-boot,yhj630520/spring-boot,RishikeshDarandale/spring-boot,mouadtk/spring-boot,AngusZhu/spring-boot,satheeshmb/spring-boot,linead/spring-boot,dnsw83/spring-boot,vpavic/spring-boot,mouadtk/spring-boot,jack-luj/spring-boot,nghialunhaiha/spring-boot,hehuabing/spring-boot,philwebb/spring-boot,Buzzardo/spring-boot,scottfrederick/spring-boot,xingguang2013/spring-boot,isopov/spring-boot,imranansari/spring-boot,raiamber1/spring-boot,bclozel/spring-boot,nghialunhaiha/spring-boot,balajinsr/spring-boot,lexandro/spring-boot,lucassaldanha/spring-boot,jeremiahmarks/spring-boot,sbuettner/spring-boot,jorgepgjr/spring-boot,DeezCashews/spring-boot,fulvio-m/spring-boot,shakuzen/spring-boot,mosoft521/spring-boot,deki/spring-boot,existmaster/spring-boot,fulvio-m/spring-boot,SPNilsen/spring-boot,xc145214/spring-boot,jmnarloch/spring-boot,soul2zimate/spring-boot,jbovet/spring-boot,xdweleven/spring-boot,philwebb/spring-boot,nevenc-pivotal/spring-boot,sungha/spring-boot,felipeg48/spring-boot,RichardCSantana/spring-boot,Buzzardo/spring-boot,mbenson/spring-boot,tiarebalbi/spring-boot,smilence1986/spring-boot,eddumelendez/spring-boot,5zzang/spring-boot,jeremiahmarks/spring-boot,vandan16/Vandan,paweldolecinski/spring-boot,javyzheng/spring-boot,krmcbride/spring-boot,simonnordberg/spring-boot,wilkinsona/spring-boot,gauravbrills/spring-boot,scottfrederick/spring-boot,mouadtk/spring-boot,mabernardo/spring-boot,joansmith/spring-boot,tbadie/spring-boot,npcode/spring-boot,gregturn/spring-boot,qq83387856/spring-boot,brettwooldridge/spring-boot,hello2009chen/spring-boot,fjlopez/spring-boot,sbuettner/spring-boot,cmsandiga/spring-boot,roymanish/spring-boot,mbnshankar/spring-boot,eddumelendez/spring-boot,playleud/spring-boot,dreis2211/spring-boot,end-user/spring-boot,Nowheresly/spring-boot,xiaoleiPENG/my-project,herau/spring-boot,candrews/spring-boot,jayarampradhan/spring-boot,afroje-reshma/spring-boot-sample,yunbian/spring-boot,nelswadycki/spring-boot,michael-simons/spring-boot,mohican0607/spring-boot,simonnordberg/spring-boot,eddumelendez/spring-boot,MrMitchellMoore/spring-boot,ameraljovic/spring-boot,kdvolder/spring-boot,okba1/spring-boot,yuxiaole/spring-boot,ameraljovic/spring-boot,orangesdk/spring-boot,lokbun/spring-boot,mebinjacob/spring-boot,RainPlanter/spring-boot,rickeysu/spring-boot,bijukunjummen/spring-boot,xdweleven/spring-boot,prasenjit-net/spring-boot,tan9/spring-boot,vandan16/Vandan,damoyang/spring-boot,roymanish/spring-boot,mosoft521/spring-boot,jayarampradhan/spring-boot,ihoneymon/spring-boot,Chomeh/spring-boot,dnsw83/spring-boot,satheeshmb/spring-boot,rams2588/spring-boot,lif123/spring-boot,fireshort/spring-boot,Makhlab/spring-boot,marcellodesales/spring-boot,yangdd1205/spring-boot,fjlopez/spring-boot,duandf35/spring-boot,npcode/spring-boot,na-na/spring-boot,SaravananParthasarathy/SPSDemo,sankin/spring-boot,Xaerxess/spring-boot,domix/spring-boot,simonnordberg/spring-boot,RishikeshDarandale/spring-boot,simonnordberg/spring-boot,jjankar/spring-boot,candrews/spring-boot,auvik/spring-boot,mdeinum/spring-boot,PraveenkumarShethe/spring-boot,prakashme/spring-boot,gauravbrills/spring-boot,michael-simons/spring-boot,Chomeh/spring-boot,rstirling/spring-boot,nghiavo/spring-boot,sankin/spring-boot,MrMitchellMoore/spring-boot,orangesdk/spring-boot,mackeprm/spring-boot,i007422/jenkins2-course-spring-boot,duandf35/spring-boot,zhangshuangquan/spring-root,joansmith/spring-boot,jeremiahmarks/spring-boot,xwjxwj30abc/spring-boot,frost2014/spring-boot,htynkn/spring-boot,hello2009chen/spring-boot,liupd/spring-boot,ilayaperumalg/spring-boot,paddymahoney/spring-boot,sebastiankirsch/spring-boot,NetoDevel/spring-boot,ractive/spring-boot,sebastiankirsch/spring-boot,lenicliu/spring-boot,coolcao/spring-boot,mosen11/spring-boot,sungha/spring-boot,lburgazzoli/spring-boot,sungha/spring-boot,MasterRoots/spring-boot,wilkinsona/spring-boot,lif123/spring-boot,afroje-reshma/spring-boot-sample,panbiping/spring-boot,fireshort/spring-boot,royclarkson/spring-boot,deki/spring-boot,xwjxwj30abc/spring-boot,hehuabing/spring-boot,ralenmandao/spring-boot,rajendra-chola/jenkins2-course-spring-boot,sbcoba/spring-boot,kayelau/spring-boot,aahlenst/spring-boot,mbnshankar/spring-boot,kiranbpatil/spring-boot,imranansari/spring-boot,lingounet/spring-boot,scottfrederick/spring-boot,xingguang2013/spring-boot,yuxiaole/spring-boot,AstaTus/spring-boot,end-user/spring-boot,ptahchiev/spring-boot,buobao/spring-boot,bbrouwer/spring-boot,jforge/spring-boot,izeye/spring-boot,VitDevelop/spring-boot,vpavic/spring-boot,kamilszymanski/spring-boot,ydsakyclguozi/spring-boot,smilence1986/spring-boot,jayeshmuralidharan/spring-boot,SPNilsen/spring-boot,xingguang2013/spring-boot,jxblum/spring-boot,durai145/spring-boot,herau/spring-boot,huangyugui/spring-boot,jcastaldoFoodEssentials/spring-boot,tiarebalbi/spring-boot,ractive/spring-boot,srikalyan/spring-boot,rweisleder/spring-boot,vaseemahmed01/spring-boot,habuma/spring-boot,DONIKAN/spring-boot,mabernardo/spring-boot,johnktims/spring-boot,donhuvy/spring-boot,DeezCashews/spring-boot,zhanhb/spring-boot,ApiSecRay/spring-boot,ralenmandao/spring-boot,murilobr/spring-boot,tsachev/spring-boot,candrews/spring-boot,drumonii/spring-boot,drunklite/spring-boot,panbiping/spring-boot,satheeshmb/spring-boot,cleverjava/jenkins2-course-spring-boot,ojacquemart/spring-boot,ollie314/spring-boot,bjornlindstrom/spring-boot,lingounet/spring-boot,RichardCSantana/spring-boot,pnambiarsf/spring-boot,ihoneymon/spring-boot,smayoorans/spring-boot,izestrea/spring-boot,izeye/spring-boot,olivergierke/spring-boot,jmnarloch/spring-boot,npcode/spring-boot,tsachev/spring-boot,olivergierke/spring-boot,nevenc-pivotal/spring-boot,raiamber1/spring-boot,axelfontaine/spring-boot,kiranbpatil/spring-boot,bijukunjummen/spring-boot,mrumpf/spring-boot,jbovet/spring-boot,jforge/spring-boot,yangdd1205/spring-boot,lif123/spring-boot,bbrouwer/spring-boot,10045125/spring-boot,kdvolder/spring-boot,dfa1/spring-boot,ractive/spring-boot,eliudiaz/spring-boot,wwadge/spring-boot,vaseemahmed01/spring-boot,cbtpro/spring-boot,deki/spring-boot,mbenson/spring-boot,mlc0202/spring-boot,eddumelendez/spring-boot,xc145214/spring-boot,mabernardo/spring-boot,DeezCashews/spring-boot,keithsjohnson/spring-boot,tbbost/spring-boot,nghiavo/spring-boot,paweldolecinski/spring-boot,AngusZhu/spring-boot,axelfontaine/spring-boot,donthadineshkumar/spring-boot,patrikbeno/spring-boot,Nowheresly/spring-boot,jayarampradhan/spring-boot,jvz/spring-boot,krmcbride/spring-boot,minmay/spring-boot,yunbian/spring-boot,xiaoleiPENG/my-project,olivergierke/spring-boot,habuma/spring-boot,lexandro/spring-boot,mbrukman/spring-boot,kdvolder/spring-boot,royclarkson/spring-boot,prakashme/spring-boot,christian-posta/spring-boot,joshiste/spring-boot,rickeysu/spring-boot,mbnshankar/spring-boot,mosoft521/spring-boot,raiamber1/spring-boot,donhuvy/spring-boot,ihoneymon/spring-boot,auvik/spring-boot,Makhlab/spring-boot,jrrickard/spring-boot,mohican0607/spring-boot,orangesdk/spring-boot,shakuzen/spring-boot,allyjunio/spring-boot,mabernardo/spring-boot,neo4j-contrib/spring-boot,bbrouwer/spring-boot,mrumpf/spring-boot,cleverjava/jenkins2-course-spring-boot,zorosteven/spring-boot,rmoorman/spring-boot,keithsjohnson/spring-boot,jorgepgjr/spring-boot,zhangshuangquan/spring-root,tsachev/spring-boot,durai145/spring-boot,cbtpro/spring-boot,jorgepgjr/spring-boot,isopov/spring-boot,RainPlanter/spring-boot,hehuabing/spring-boot,pvorb/spring-boot,Makhlab/spring-boot,drunklite/spring-boot,RainPlanter/spring-boot,existmaster/spring-boot,donthadineshkumar/spring-boot,rweisleder/spring-boot,chrylis/spring-boot,nisuhw/spring-boot,jack-luj/spring-boot,zorosteven/spring-boot,lenicliu/spring-boot,meloncocoo/spring-boot,prakashme/spring-boot,vakninr/spring-boot,joshthornhill/spring-boot,10045125/spring-boot,soul2zimate/spring-boot,drunklite/spring-boot,srikalyan/spring-boot,hklv/spring-boot,mbenson/spring-boot,bjornlindstrom/spring-boot,srikalyan/spring-boot,sungha/spring-boot,gorcz/spring-boot,hklv/spring-boot,PraveenkumarShethe/spring-boot,nurkiewicz/spring-boot,artembilan/spring-boot,gorcz/spring-boot,bsodzik/spring-boot,axibase/spring-boot,keithsjohnson/spring-boot,dnsw83/spring-boot,smilence1986/spring-boot,marcellodesales/spring-boot,okba1/spring-boot,qerub/spring-boot,srinivasan01/spring-boot,yunbian/spring-boot,mbnshankar/spring-boot,crackien/spring-boot,buobao/spring-boot,marcellodesales/spring-boot,ameraljovic/spring-boot,mosen11/spring-boot,ydsakyclguozi/spring-boot,Charkui/spring-boot,htynkn/spring-boot,yuxiaole/spring-boot,bbrouwer/spring-boot,shangyi0102/spring-boot,thomasdarimont/spring-boot,javyzheng/spring-boot,fogone/spring-boot,yhj630520/spring-boot,sebastiankirsch/spring-boot,forestqqqq/spring-boot,hehuabing/spring-boot,ydsakyclguozi/spring-boot,habuma/spring-boot,mevasaroj/jenkins2-course-spring-boot,roberthafner/spring-boot,eonezhang/spring-boot,ChunPIG/spring-boot,fireshort/spring-boot,mouadtk/spring-boot,i007422/jenkins2-course-spring-boot,shangyi0102/spring-boot,na-na/spring-boot,chrylis/spring-boot,allyjunio/spring-boot,Nowheresly/spring-boot,dreis2211/spring-boot,smayoorans/spring-boot,jvz/spring-boot,vandan16/Vandan,xdweleven/spring-boot,AstaTus/spring-boot,jmnarloch/spring-boot,bclozel/spring-boot,wwadge/spring-boot,mbogoevici/spring-boot,navarrogabriela/spring-boot,tiarebalbi/spring-boot,lif123/spring-boot,mohican0607/spring-boot,liupd/spring-boot,herau/spring-boot,mabernardo/spring-boot,jxblum/spring-boot,Pokbab/spring-boot,nareshmiriyala/spring-boot,qq83387856/spring-boot,vandan16/Vandan,jayeshmuralidharan/spring-boot,zhanhb/spring-boot,soul2zimate/spring-boot,rizwan18/spring-boot,habuma/spring-boot,AngusZhu/spring-boot,izeye/spring-boot,jforge/spring-boot,bsodzik/spring-boot,xialeizhou/spring-boot,meftaul/spring-boot,fogone/spring-boot,nevenc-pivotal/spring-boot,nisuhw/spring-boot,philwebb/spring-boot-concourse,designreuse/spring-boot,patrikbeno/spring-boot,xc145214/spring-boot,RainPlanter/spring-boot,spring-projects/spring-boot,roymanish/spring-boot,paddymahoney/spring-boot,zhangshuangquan/spring-root,lokbun/spring-boot,paweldolecinski/spring-boot,nelswadycki/spring-boot,roberthafner/spring-boot,rajendra-chola/jenkins2-course-spring-boot,ractive/spring-boot,eonezhang/spring-boot,MrMitchellMoore/spring-boot,jxblum/spring-boot,akmaharshi/jenkins,smayoorans/spring-boot,mdeinum/spring-boot,JiweiWong/spring-boot,rams2588/spring-boot,smilence1986/spring-boot,kayelau/spring-boot,liupugong/spring-boot,artembilan/spring-boot,ojacquemart/spring-boot,hehuabing/spring-boot,xiaoleiPENG/my-project,lucassaldanha/spring-boot,mouadtk/spring-boot,mdeinum/spring-boot,RobertNickens/spring-boot,frost2014/spring-boot,scottfrederick/spring-boot,lcardito/spring-boot,linead/spring-boot,ApiSecRay/spring-boot,jbovet/spring-boot,satheeshmb/spring-boot,herau/spring-boot,xialeizhou/spring-boot,shakuzen/spring-boot,buobao/spring-boot,rickeysu/spring-boot,ptahchiev/spring-boot,rizwan18/spring-boot,buobao/spring-boot,trecloux/spring-boot,drumonii/spring-boot,jjankar/spring-boot,rams2588/spring-boot,orangesdk/spring-boot,lokbun/spring-boot,DONIKAN/spring-boot,mrumpf/spring-boot,huangyugui/spring-boot,nandakishorm/spring-boot,fogone/spring-boot,fjlopez/spring-boot,donthadineshkumar/spring-boot,liupd/spring-boot,habuma/spring-boot,cmsandiga/spring-boot,srikalyan/spring-boot,rstirling/spring-boot,qerub/spring-boot,nareshmiriyala/spring-boot,panbiping/spring-boot,shakuzen/spring-boot,philwebb/spring-boot,qerub/spring-boot,neo4j-contrib/spring-boot,qq83387856/spring-boot,cleverjava/jenkins2-course-spring-boot,Makhlab/spring-boot,murilobr/spring-boot,ilayaperumalg/spring-boot,forestqqqq/spring-boot,tbbost/spring-boot,mike-kukla/spring-boot,thomasdarimont/spring-boot,crackien/spring-boot,eric-stanley/spring-boot,olivergierke/spring-boot,mebinjacob/spring-boot,lucassaldanha/spring-boot,prakashme/spring-boot,mdeinum/spring-boot,SaravananParthasarathy/SPSDemo,gauravbrills/spring-boot,ydsakyclguozi/spring-boot,aahlenst/spring-boot,izestrea/spring-boot,kiranbpatil/spring-boot,playleud/spring-boot,jvz/spring-boot,NetoDevel/spring-boot,jjankar/spring-boot,M3lkior/spring-boot,zhangshuangquan/spring-root,tbadie/spring-boot,balajinsr/spring-boot,javyzheng/spring-boot,crackien/spring-boot,Pokbab/spring-boot,isopov/spring-boot,jrrickard/spring-boot,crackien/spring-boot,vakninr/spring-boot,ihoneymon/spring-boot,trecloux/spring-boot,hello2009chen/spring-boot,michael-simons/spring-boot,donthadineshkumar/spring-boot,jack-luj/spring-boot,spring-projects/spring-boot,drumonii/spring-boot,minmay/spring-boot,sankin/spring-boot,tbbost/spring-boot,PraveenkumarShethe/spring-boot,nandakishorm/spring-boot,ApiSecRay/spring-boot,pvorb/spring-boot,nghiavo/spring-boot,sebastiankirsch/spring-boot,Nowheresly/spring-boot,patrikbeno/spring-boot,htynkn/spring-boot,chrylis/spring-boot,liupugong/spring-boot,MrMitchellMoore/spring-boot,trecloux/spring-boot,rmoorman/spring-boot,rickeysu/spring-boot,eddumelendez/spring-boot,izeye/spring-boot,wwadge/spring-boot,okba1/spring-boot,spring-projects/spring-boot,DONIKAN/spring-boot,ojacquemart/spring-boot,DONIKAN/spring-boot,Chomeh/spring-boot,bjornlindstrom/spring-boot,meftaul/spring-boot,pnambiarsf/spring-boot,drunklite/spring-boot,yhj630520/spring-boot,lucassaldanha/spring-boot,meloncocoo/spring-boot,shangyi0102/spring-boot,philwebb/spring-boot-concourse,bclozel/spring-boot,ilayaperumalg/spring-boot,ChunPIG/spring-boot,DONIKAN/spring-boot,meftaul/spring-boot,jxblum/spring-boot,jayarampradhan/spring-boot,raiamber1/spring-boot,izestrea/spring-boot,gregturn/spring-boot,liupugong/spring-boot,rweisleder/spring-boot,patrikbeno/spring-boot,yhj630520/spring-boot,mevasaroj/jenkins2-course-spring-boot,christian-posta/spring-boot,rickeysu/spring-boot,pvorb/spring-boot,pnambiarsf/spring-boot,designreuse/spring-boot,sebastiankirsch/spring-boot,mbrukman/spring-boot,forestqqqq/spring-boot,michael-simons/spring-boot,zorosteven/spring-boot,jeremiahmarks/spring-boot,peteyan/spring-boot,AstaTus/spring-boot,wwadge/spring-boot,lexandro/spring-boot,MasterRoots/spring-boot,vpavic/spring-boot,marcellodesales/spring-boot,mike-kukla/spring-boot,MasterRoots/spring-boot,nebhale/spring-boot,jayeshmuralidharan/spring-boot,dreis2211/spring-boot,smayoorans/spring-boot,murilobr/spring-boot,jcastaldoFoodEssentials/spring-boot,lcardito/spring-boot,M3lkior/spring-boot,nelswadycki/spring-boot,Makhlab/spring-boot,na-na/spring-boot,donthadineshkumar/spring-boot,mosen11/spring-boot,crackien/spring-boot,xdweleven/spring-boot,mackeprm/spring-boot,vpavic/spring-boot,mosoft521/spring-boot,afroje-reshma/spring-boot-sample,cbtpro/spring-boot,kayelau/spring-boot,navarrogabriela/spring-boot,akmaharshi/jenkins,mike-kukla/spring-boot,soul2zimate/spring-boot,jayarampradhan/spring-boot,spring-projects/spring-boot,srinivasan01/spring-boot,izestrea/spring-boot,cmsandiga/spring-boot,cmsandiga/spring-boot,166yuan/spring-boot,drumonii/spring-boot,lenicliu/spring-boot,mbrukman/spring-boot,frost2014/spring-boot,xwjxwj30abc/spring-boot,pnambiarsf/spring-boot,linead/spring-boot,ollie314/spring-boot,tiarebalbi/spring-boot,christian-posta/spring-boot,joansmith/spring-boot,candrews/spring-boot,fulvio-m/spring-boot,felipeg48/spring-boot,master-slave/spring-boot,snicoll/spring-boot,thomasdarimont/spring-boot,duandf35/spring-boot,zhanhb/spring-boot,clarklj001/spring-boot,yhj630520/spring-boot,mackeprm/spring-boot,bclozel/spring-boot,wilkinsona/spring-boot,eddumelendez/spring-boot,cmsandiga/spring-boot,Buzzardo/spring-boot,mlc0202/spring-boot,jvz/spring-boot,raiamber1/spring-boot,mebinjacob/spring-boot,Xaerxess/spring-boot,axibase/spring-boot,forestqqqq/spring-boot,kamilszymanski/spring-boot,master-slave/spring-boot,qq83387856/spring-boot,vaseemahmed01/spring-boot,donhuvy/spring-boot,prasenjit-net/spring-boot,166yuan/spring-boot,neo4j-contrib/spring-boot,axelfontaine/spring-boot,jxblum/spring-boot,eric-stanley/spring-boot,Chomeh/spring-boot,coolcao/spring-boot,mdeinum/spring-boot,tiarebalbi/spring-boot,JiweiWong/spring-boot,navarrogabriela/spring-boot,nareshmiriyala/spring-boot,paweldolecinski/spring-boot,nurkiewicz/spring-boot,playleud/spring-boot,mbrukman/spring-boot,rajendra-chola/jenkins2-course-spring-boot,wilkinsona/spring-boot,axelfontaine/spring-boot,xiaoleiPENG/my-project,royclarkson/spring-boot,5zzang/spring-boot,panbiping/spring-boot,hklv/spring-boot,vandan16/Vandan,drumonii/spring-boot,auvik/spring-boot,bjornlindstrom/spring-boot,damoyang/spring-boot,spring-projects/spring-boot,mevasaroj/jenkins2-course-spring-boot,bclozel/spring-boot,sbcoba/spring-boot,coolcao/spring-boot,lcardito/spring-boot,Charkui/spring-boot,jrrickard/spring-boot,Xaerxess/spring-boot,roymanish/spring-boot,mike-kukla/spring-boot,jayeshmuralidharan/spring-boot,mbrukman/spring-boot,liupugong/spring-boot,vaseemahmed01/spring-boot,166yuan/spring-boot,prasenjit-net/spring-boot,zhanhb/spring-boot,chrylis/spring-boot,kamilszymanski/spring-boot,minmay/spring-boot,imranansari/spring-boot,mosen11/spring-boot,philwebb/spring-boot-concourse,brettwooldridge/spring-boot,jack-luj/spring-boot,bijukunjummen/spring-boot,royclarkson/spring-boot,Charkui/spring-boot,scottfrederick/spring-boot,paweldolecinski/spring-boot,SaravananParthasarathy/SPSDemo,mbenson/spring-boot,meloncocoo/spring-boot,qq83387856/spring-boot,RishikeshDarandale/spring-boot,kiranbpatil/spring-boot,frost2014/spring-boot,JiweiWong/spring-boot,yunbian/spring-boot,nghiavo/spring-boot,philwebb/spring-boot,dfa1/spring-boot,felipeg48/spring-boot,simonnordberg/spring-boot,thomasdarimont/spring-boot,gorcz/spring-boot,tbadie/spring-boot,RichardCSantana/spring-boot,shakuzen/spring-boot,ollie314/spring-boot,ralenmandao/spring-boot,coolcao/spring-boot,johnktims/spring-boot,nurkiewicz/spring-boot,rams2588/spring-boot,nurkiewicz/spring-boot,RainPlanter/spring-boot,navarrogabriela/spring-boot,shakuzen/spring-boot,dnsw83/spring-boot,Pokbab/spring-boot,pvorb/spring-boot,Pokbab/spring-boot,jeremiahmarks/spring-boot,murilobr/spring-boot,prasenjit-net/spring-boot,patrikbeno/spring-boot,damoyang/spring-boot,hklv/spring-boot,nebhale/spring-boot,axibase/spring-boot,mbenson/spring-boot,imranansari/spring-boot,panbiping/spring-boot,Pokbab/spring-boot,ilayaperumalg/spring-boot,jayeshmuralidharan/spring-boot,imranansari/spring-boot,i007422/jenkins2-course-spring-boot,eric-stanley/spring-boot,srikalyan/spring-boot,deki/spring-boot,mlc0202/spring-boot,166yuan/spring-boot,joansmith/spring-boot,cleverjava/jenkins2-course-spring-boot,jxblum/spring-boot,mrumpf/spring-boot,sbcoba/spring-boot,neo4j-contrib/spring-boot,lokbun/spring-boot,fogone/spring-boot,RobertNickens/spring-boot,gauravbrills/spring-boot,na-na/spring-boot,jvz/spring-boot,srinivasan01/spring-boot,roymanish/spring-boot,linead/spring-boot,huangyugui/spring-boot,rweisleder/spring-boot,huangyugui/spring-boot,wilkinsona/spring-boot,xialeizhou/spring-boot,Xaerxess/spring-boot,DeezCashews/spring-boot,tan9/spring-boot,kayelau/spring-boot,fogone/spring-boot,shangyi0102/spring-boot,existmaster/spring-boot,bclozel/spring-boot,mevasaroj/jenkins2-course-spring-boot,Charkui/spring-boot,isopov/spring-boot,hqrt/jenkins2-course-spring-boot,Charkui/spring-boot,forestqqqq/spring-boot,fulvio-m/spring-boot,vpavic/spring-boot,ilayaperumalg/spring-boot,rizwan18/spring-boot,ractive/spring-boot,kamilszymanski/spring-boot,clarklj001/spring-boot,166yuan/spring-boot,vakninr/spring-boot,mbogoevici/spring-boot,okba1/spring-boot,joshiste/spring-boot,axibase/spring-boot,jmnarloch/spring-boot,5zzang/spring-boot,playleud/spring-boot,nelswadycki/spring-boot,htynkn/spring-boot,hqrt/jenkins2-course-spring-boot,sbcoba/spring-boot,nareshmiriyala/spring-boot,fjlopez/spring-boot,lenicliu/spring-boot,AngusZhu/spring-boot,pvorb/spring-boot,ollie314/spring-boot,mohican0607/spring-boot,yunbian/spring-boot,felipeg48/spring-boot,sbuettner/spring-boot,nebhale/spring-boot,ojacquemart/spring-boot,tsachev/spring-boot,rstirling/spring-boot,PraveenkumarShethe/spring-boot,axelfontaine/spring-boot,AngusZhu/spring-boot,johnktims/spring-boot,mosen11/spring-boot,nisuhw/spring-boot,nevenc-pivotal/spring-boot,xingguang2013/spring-boot,lucassaldanha/spring-boot,donhuvy/spring-boot,SaravananParthasarathy/SPSDemo,tbadie/spring-boot,artembilan/spring-boot,nisuhw/spring-boot,MrMitchellMoore/spring-boot,eonezhang/spring-boot,npcode/spring-boot,JiweiWong/spring-boot,hqrt/jenkins2-course-spring-boot,MasterRoots/spring-boot,bijukunjummen/spring-boot,dreis2211/spring-boot,PraveenkumarShethe/spring-boot,jbovet/spring-boot,eric-stanley/spring-boot,wilkinsona/spring-boot,christian-posta/spring-boot,zhangshuangquan/spring-root,zhanhb/spring-boot,RobertNickens/spring-boot,jorgepgjr/spring-boot,lenicliu/spring-boot,lingounet/spring-boot,kiranbpatil/spring-boot,rmoorman/spring-boot,master-slave/spring-boot,liupugong/spring-boot,drumonii/spring-boot,end-user/spring-boot,JiweiWong/spring-boot,donhuvy/spring-boot,cleverjava/jenkins2-course-spring-boot,balajinsr/spring-boot,paddymahoney/spring-boot,vakninr/spring-boot,gorcz/spring-boot,nelswadycki/spring-boot,M3lkior/spring-boot,durai145/spring-boot,eliudiaz/spring-boot,bsodzik/spring-boot,tan9/spring-boot,damoyang/spring-boot,rams2588/spring-boot,lif123/spring-boot,xialeizhou/spring-boot,liupd/spring-boot,isopov/spring-boot,soul2zimate/spring-boot,htynkn/spring-boot,RishikeshDarandale/spring-boot,olivergierke/spring-boot,Chomeh/spring-boot,damoyang/spring-boot,kdvolder/spring-boot,roberthafner/spring-boot,5zzang/spring-boot,tiarebalbi/spring-boot,mbogoevici/spring-boot,nghialunhaiha/spring-boot,hello2009chen/spring-boot,srinivasan01/spring-boot,scottfrederick/spring-boot,navarrogabriela/spring-boot,marcellodesales/spring-boot,ptahchiev/spring-boot,Nowheresly/spring-boot,orangesdk/spring-boot,frost2014/spring-boot,clarklj001/spring-boot,ameraljovic/spring-boot,dnsw83/spring-boot,SPNilsen/spring-boot,rweisleder/spring-boot,akmaharshi/jenkins,michael-simons/spring-boot,johnktims/spring-boot,nghialunhaiha/spring-boot,nandakishorm/spring-boot,sankin/spring-boot,hklv/spring-boot,thomasdarimont/spring-boot,keithsjohnson/spring-boot,dfa1/spring-boot,sungha/spring-boot,bbrouwer/spring-boot,qerub/spring-boot,jrrickard/spring-boot,artembilan/spring-boot,roberthafner/spring-boot,donhuvy/spring-boot,rajendra-chola/jenkins2-course-spring-boot,NetoDevel/spring-boot,akmaharshi/jenkins,Xaerxess/spring-boot,vpavic/spring-boot,domix/spring-boot,5zzang/spring-boot,Buzzardo/spring-boot,jrrickard/spring-boot,duandf35/spring-boot,johnktims/spring-boot,balajinsr/spring-boot,rweisleder/spring-boot,axibase/spring-boot,ChunPIG/spring-boot,joshthornhill/spring-boot,mrumpf/spring-boot,VitDevelop/spring-boot,liupd/spring-boot,joshthornhill/spring-boot,vakninr/spring-boot,christian-posta/spring-boot,zhanhb/spring-boot,mbogoevici/spring-boot,jforge/spring-boot,aahlenst/spring-boot,lingounet/spring-boot,sankin/spring-boot,nisuhw/spring-boot,coolcao/spring-boot,M3lkior/spring-boot,nareshmiriyala/spring-boot,xiaoleiPENG/my-project,NetoDevel/spring-boot,master-slave/spring-boot,mackeprm/spring-boot,domix/spring-boot,felipeg48/spring-boot,ptahchiev/spring-boot,krmcbride/spring-boot,lcardito/spring-boot,SPNilsen/spring-boot,jbovet/spring-boot,master-slave/spring-boot,snicoll/spring-boot,mbnshankar/spring-boot,RichardCSantana/spring-boot,dreis2211/spring-boot,auvik/spring-boot,vaseemahmed01/spring-boot,ptahchiev/spring-boot,RichardCSantana/spring-boot,xingguang2013/spring-boot,DeezCashews/spring-boot,mebinjacob/spring-boot,jjankar/spring-boot,ollie314/spring-boot,lexandro/spring-boot,afroje-reshma/spring-boot-sample,existmaster/spring-boot,sbuettner/spring-boot,meloncocoo/spring-boot,auvik/spring-boot,jcastaldoFoodEssentials/spring-boot,fjlopez/spring-boot,hello2009chen/spring-boot,okba1/spring-boot,bjornlindstrom/spring-boot,candrews/spring-boot,M3lkior/spring-boot,aahlenst/spring-boot,srinivasan01/spring-boot,end-user/spring-boot,mbogoevici/spring-boot,RobertNickens/spring-boot,xialeizhou/spring-boot,javyzheng/spring-boot,eliudiaz/spring-boot,kdvolder/spring-boot,Buzzardo/spring-boot,kamilszymanski/spring-boot,ralenmandao/spring-boot,mike-kukla/spring-boot,npcode/spring-boot,rmoorman/spring-boot,lburgazzoli/spring-boot,minmay/spring-boot,rstirling/spring-boot,afroje-reshma/spring-boot-sample,satheeshmb/spring-boot,designreuse/spring-boot,duandf35/spring-boot,clarklj001/spring-boot,mdeinum/spring-boot,rmoorman/spring-boot,tan9/spring-boot,rajendra-chola/jenkins2-course-spring-boot,brettwooldridge/spring-boot,paddymahoney/spring-boot,javyzheng/spring-boot,playleud/spring-boot,izeye/spring-boot,rizwan18/spring-boot,brettwooldridge/spring-boot,spring-projects/spring-boot,jforge/spring-boot,allyjunio/spring-boot,felipeg48/spring-boot,VitDevelop/spring-boot,drunklite/spring-boot,mebinjacob/spring-boot,smayoorans/spring-boot,nandakishorm/spring-boot,nurkiewicz/spring-boot,huangyugui/spring-boot,keithsjohnson/spring-boot,kdvolder/spring-boot,ChunPIG/spring-boot,lexandro/spring-boot,AstaTus/spring-boot,philwebb/spring-boot-concourse,neo4j-contrib/spring-boot,akmaharshi/jenkins,ameraljovic/spring-boot,royclarkson/spring-boot,RishikeshDarandale/spring-boot,lcardito/spring-boot,deki/spring-boot,zorosteven/spring-boot,designreuse/spring-boot,jorgepgjr/spring-boot,trecloux/spring-boot,philwebb/spring-boot-concourse,NetoDevel/spring-boot,gregturn/spring-boot,tbbost/spring-boot,jjankar/spring-boot,joshiste/spring-boot,wwadge/spring-boot,nebhale/spring-boot,herau/spring-boot,peteyan/spring-boot,ChunPIG/spring-boot,AstaTus/spring-boot,i007422/jenkins2-course-spring-boot,domix/spring-boot,xwjxwj30abc/spring-boot,aahlenst/spring-boot,xc145214/spring-boot,yuxiaole/spring-boot,ptahchiev/spring-boot,peteyan/spring-boot,RobertNickens/spring-boot,nebhale/spring-boot,krmcbride/spring-boot,meftaul/spring-boot,hqrt/jenkins2-course-spring-boot,joansmith/spring-boot,VitDevelop/spring-boot,mevasaroj/jenkins2-course-spring-boot,joshiste/spring-boot,mohican0607/spring-boot,joshthornhill/spring-boot,ydsakyclguozi/spring-boot,balajinsr/spring-boot,mlc0202/spring-boot,trecloux/spring-boot,jack-luj/spring-boot,yuxiaole/spring-boot,shangyi0102/spring-boot,lokbun/spring-boot,snicoll/spring-boot,roberthafner/spring-boot,lburgazzoli/spring-boot,dreis2211/spring-boot,peteyan/spring-boot,bsodzik/spring-boot,sbcoba/spring-boot,bsodzik/spring-boot,existmaster/spring-boot,mbenson/spring-boot,rstirling/spring-boot,pnambiarsf/spring-boot,artembilan/spring-boot,eonezhang/spring-boot,sbuettner/spring-boot,xdweleven/spring-boot,ApiSecRay/spring-boot,durai145/spring-boot,domix/spring-boot,meftaul/spring-boot,ihoneymon/spring-boot,mosoft521/spring-boot,cbtpro/spring-boot,minmay/spring-boot,jcastaldoFoodEssentials/spring-boot,lingounet/spring-boot,fulvio-m/spring-boot,tsachev/spring-boot,linead/spring-boot,mackeprm/spring-boot,yangdd1205/spring-boot,tbbost/spring-boot,designreuse/spring-boot,habuma/spring-boot,buobao/spring-boot,ihoneymon/spring-boot,ralenmandao/spring-boot,joshthornhill/spring-boot,paddymahoney/spring-boot,cbtpro/spring-boot,fireshort/spring-boot,i007422/jenkins2-course-spring-boot,htynkn/spring-boot,lburgazzoli/spring-boot,eonezhang/spring-boot,izestrea/spring-boot,xc145214/spring-boot,durai145/spring-boot,jmnarloch/spring-boot,michael-simons/spring-boot,krmcbride/spring-boot,10045125/spring-boot,peteyan/spring-boot,nandakishorm/spring-boot,nevenc-pivotal/spring-boot,VitDevelop/spring-boot,nghiavo/spring-boot,brettwooldridge/spring-boot,zorosteven/spring-boot,tbadie/spring-boot,dfa1/spring-boot,lburgazzoli/spring-boot,prakashme/spring-boot,clarklj001/spring-boot,aahlenst/spring-boot,ApiSecRay/spring-boot,rizwan18/spring-boot,tsachev/spring-boot,ilayaperumalg/spring-boot,philwebb/spring-boot,tan9/spring-boot,meloncocoo/spring-boot,murilobr/spring-boot,end-user/spring-boot,bijukunjummen/spring-boot,SPNilsen/spring-boot,nghialunhaiha/spring-boot,gorcz/spring-boot,philwebb/spring-boot,jcastaldoFoodEssentials/spring-boot,eliudiaz/spring-boot,gauravbrills/spring-boot,Buzzardo/spring-boot,hqrt/jenkins2-course-spring-boot,SaravananParthasarathy/SPSDemo,isopov/spring-boot,chrylis/spring-boot,kayelau/spring-boot,dfa1/spring-boot,MasterRoots/spring-boot,allyjunio/spring-boot,joshiste/spring-boot,xwjxwj30abc/spring-boot,eric-stanley/spring-boot,mlc0202/spring-boot,allyjunio/spring-boot,smilence1986/spring-boot
ruby
## Code Before: require 'formula' class Springboot < Formula homepage 'http://projects.spring.io/spring-boot/' url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz' version '${version}' sha1 '${checksum}' def install bin.install 'bin/spring' lib.install 'lib/spring-boot-cli-${version}.jar' bash_completion.install 'shell-completion/bash/spring' zsh_completion.install 'shell-completion/zsh/_spring' end end ## Instruction: Fix version replacement in homebrew generation ## Code After: require 'formula' class Springboot < Formula homepage 'http://projects.spring.io/spring-boot/' url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz' version '${project.version}' sha1 '${checksum}' def install bin.install 'bin/spring' lib.install 'lib/spring-boot-cli-${project.version}.jar' bash_completion.install 'shell-completion/bash/spring' zsh_completion.install 'shell-completion/zsh/_spring' end end
require 'formula' class Springboot < Formula homepage 'http://projects.spring.io/spring-boot/' - url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz' + url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz' ? ++++++++ ++++++++ - version '${version}' + version '${project.version}' ? ++++++++ sha1 '${checksum}' def install bin.install 'bin/spring' - lib.install 'lib/spring-boot-cli-${version}.jar' + lib.install 'lib/spring-boot-cli-${project.version}.jar' ? ++++++++ bash_completion.install 'shell-completion/bash/spring' zsh_completion.install 'shell-completion/zsh/_spring' end end
6
0.4
3
3
65a9eaacca3ab6293cb1b2a0abc0166c86ea3ab5
app/views/rooms/show.html.erb
app/views/rooms/show.html.erb
<script> vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>'); </script> <input type="hidden" id="room-session" value="<%= @room_session %>"> <div id="chat-widget"> <div id="panel"> <button>Instructions</button> <button>Dashboard</button> </div> <div id="msg-output"></div> <form id="chat-form"> <input type="text" id="user-name"></input> <br> <input type="text" id="msg-input" placeholder="Message"></input> <input type="submit" id="send" value="send"></input> </form> </div>
<script> vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>'); </script> <input type="hidden" id="room-session" value="<%= @room_session %>"> <div id="chat-widget"> <div id="panel"> <button id="instructions">Instructions</button> <script> $("#instructions").click(function(){ vex.dialog.alert('Game instructions go here.'); }); </script> <button id="dashboard">Dashboard</button> </div> <div id="msg-output"></div> <form id="chat-form"> <input type="text" id="user-name"></input> <br> <input type="text" id="msg-input" placeholder="Message"></input> <input type="submit" id="send" value="send"></input> </form> </div>
Add game instructions modal dialog with placeholder text.
Add game instructions modal dialog with placeholder text.
HTML+ERB
mit
red-spotted-newts-2014/haunted,red-spotted-newts-2014/haunted
html+erb
## Code Before: <script> vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>'); </script> <input type="hidden" id="room-session" value="<%= @room_session %>"> <div id="chat-widget"> <div id="panel"> <button>Instructions</button> <button>Dashboard</button> </div> <div id="msg-output"></div> <form id="chat-form"> <input type="text" id="user-name"></input> <br> <input type="text" id="msg-input" placeholder="Message"></input> <input type="submit" id="send" value="send"></input> </form> </div> ## Instruction: Add game instructions modal dialog with placeholder text. ## Code After: <script> vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>'); </script> <input type="hidden" id="room-session" value="<%= @room_session %>"> <div id="chat-widget"> <div id="panel"> <button id="instructions">Instructions</button> <script> $("#instructions").click(function(){ vex.dialog.alert('Game instructions go here.'); }); </script> <button id="dashboard">Dashboard</button> </div> <div id="msg-output"></div> <form id="chat-form"> <input type="text" id="user-name"></input> <br> <input type="text" id="msg-input" placeholder="Message"></input> <input type="submit" id="send" value="send"></input> </form> </div>
<script> vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>'); </script> <input type="hidden" id="room-session" value="<%= @room_session %>"> <div id="chat-widget"> <div id="panel"> - <button>Instructions</button> + <button id="instructions">Instructions</button> ? ++++++++++++++++++ + + <script> + $("#instructions").click(function(){ + vex.dialog.alert('Game instructions go here.'); + }); + </script> + - <button>Dashboard</button> + <button id="dashboard">Dashboard</button> ? +++++++++++++++ </div> <div id="msg-output"></div> <form id="chat-form"> <input type="text" id="user-name"></input> <br> <input type="text" id="msg-input" placeholder="Message"></input> <input type="submit" id="send" value="send"></input> </form> </div>
11
0.611111
9
2
8f23a8037112efb40a34dfc0d1ad02fd7fb0959e
contributors.txt
contributors.txt
Lydia Duncan Simon Andreas Frimann Lund (original developer) Elliot Ronaghan Thomas Van Doren Russel Winder
Paul Cassella Lydia Duncan Michael Ferguson Simon Andreas Frimann Lund (original developer) Elliot Ronaghan Thomas Van Doren Russel Winder
Add Paul and Michael to the contributor's list
Add Paul and Michael to the contributor's list
Text
apache-2.0
chapel-lang/pychapel,russel/pychapel,chapel-lang/pychapel,russel/pychapel,chapel-lang/pychapel,russel/pychapel
text
## Code Before: Lydia Duncan Simon Andreas Frimann Lund (original developer) Elliot Ronaghan Thomas Van Doren Russel Winder ## Instruction: Add Paul and Michael to the contributor's list ## Code After: Paul Cassella Lydia Duncan Michael Ferguson Simon Andreas Frimann Lund (original developer) Elliot Ronaghan Thomas Van Doren Russel Winder
+ Paul Cassella Lydia Duncan + Michael Ferguson Simon Andreas Frimann Lund (original developer) Elliot Ronaghan Thomas Van Doren Russel Winder
2
0.4
2
0
38902fcc3c4e1dee3afbab26922ab7d204c75db3
_config.yml
_config.yml
markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty #relative_permalinks: true # Setup title: Eyebolt tagline: 'A Jekyll theme' description: 'Custom Software Solutions' url: http://www.eyebolt.com baseurl: / #baseurl: "" # Assets # # We specify the directory for Jekyll so we can use @imports. sass: sass_dir: _sass style: :compressed author: name: 'John Gardner' url: http://johngardner.name paginate: 5 # Custom vars version: 2.1.0 github: repo: https://github.com/Eyebolt/eyebolt.github.io # Gems gems: - jekyll-paginate - jekyll-gist
markdown: kramdown highlighter: rouge # Permalinks permalink: pretty #relative_permalinks: true # Setup title: Eyebolt tagline: 'A Jekyll theme' description: 'Custom Software Solutions' url: http://www.eyebolt.com baseurl: / #baseurl: "" # Assets # # We specify the directory for Jekyll so we can use @imports. sass: sass_dir: _sass style: :compressed author: name: 'John Gardner' url: http://johngardner.name paginate: 5 # Custom vars version: 2.1.0 github: repo: https://github.com/Eyebolt/eyebolt.github.io # Gems gems: - jekyll-paginate - jekyll-gist
Switch to valid markdown, highlight.
Switch to valid markdown, highlight.
YAML
apache-2.0
Eyebolt/eyebolt.github.io,Eyebolt/eyebolt.github.io
yaml
## Code Before: markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty #relative_permalinks: true # Setup title: Eyebolt tagline: 'A Jekyll theme' description: 'Custom Software Solutions' url: http://www.eyebolt.com baseurl: / #baseurl: "" # Assets # # We specify the directory for Jekyll so we can use @imports. sass: sass_dir: _sass style: :compressed author: name: 'John Gardner' url: http://johngardner.name paginate: 5 # Custom vars version: 2.1.0 github: repo: https://github.com/Eyebolt/eyebolt.github.io # Gems gems: - jekyll-paginate - jekyll-gist ## Instruction: Switch to valid markdown, highlight. ## Code After: markdown: kramdown highlighter: rouge # Permalinks permalink: pretty #relative_permalinks: true # Setup title: Eyebolt tagline: 'A Jekyll theme' description: 'Custom Software Solutions' url: http://www.eyebolt.com baseurl: / #baseurl: "" # Assets # # We specify the directory for Jekyll so we can use @imports. sass: sass_dir: _sass style: :compressed author: name: 'John Gardner' url: http://johngardner.name paginate: 5 # Custom vars version: 2.1.0 github: repo: https://github.com/Eyebolt/eyebolt.github.io # Gems gems: - jekyll-paginate - jekyll-gist
- markdown: redcarpet ? ^ ^^^^^^ + markdown: kramdown ? + ^^ ^^^ - highlighter: pygments ? ^^ - --- + highlighter: rouge ? ^^^ # Permalinks permalink: pretty #relative_permalinks: true # Setup title: Eyebolt tagline: 'A Jekyll theme' description: 'Custom Software Solutions' url: http://www.eyebolt.com baseurl: / #baseurl: "" # Assets # # We specify the directory for Jekyll so we can use @imports. sass: sass_dir: _sass style: :compressed author: name: 'John Gardner' url: http://johngardner.name paginate: 5 # Custom vars version: 2.1.0 github: repo: https://github.com/Eyebolt/eyebolt.github.io # Gems gems: - jekyll-paginate - jekyll-gist
4
0.105263
2
2
2f9b997f7138be1f6ab4243210ee039239e8bea6
karma.conf.js
karma.conf.js
/*eslint-env node */ /*eslint no-var: 0 */ module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], reporters: ['mocha', 'coverage'], coverageReporter: { reporters: [ { type: 'text-summary' }, { type: 'html', dir: 'coverage' } ] }, browsers: ['PhantomJS'], files: [ 'test/browser/**.js', 'test/shared/**.js' ], preprocessors: { 'test/**/*.js': ['webpack'], 'src/**/*.js': ['webpack'], '**/*.js': ['sourcemap'] }, webpack: { module: { /* Transpile source and test files */ preLoaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', query: { loose: 'all', blacklist: ['es6.tailCall'] } } ], /* Only Instrument our source files for coverage */ loaders: [ { test: /\.jsx?$/, loader: 'isparta', include: /src/ } ] }, resolve: { modulesDirectories: [__dirname, 'node_modules'] } }, webpackMiddleware: { noInfo: true } }); };
/*eslint-env node */ /*eslint no-var: 0 */ var coverage = String(process.env.COVERAGE)!=='false'; module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], reporters: ['mocha'].concat(coverage ? 'coverage' : []), coverageReporter: { reporters: [ { type: 'text-summary' }, { type: 'html', dir: 'coverage' } ] }, browsers: ['PhantomJS'], files: [ 'test/browser/**.js', 'test/shared/**.js' ], preprocessors: { 'test/**/*.js': ['webpack'], 'src/**/*.js': ['webpack'], '**/*.js': ['sourcemap'] }, webpack: { module: { /* Transpile source and test files */ preLoaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', query: { loose: 'all', blacklist: ['es6.tailCall'] } } ], /* Only Instrument our source files for coverage */ loaders: [].concat( coverage ? { test: /\.jsx?$/, loader: 'isparta', include: /src/ } : []) }, resolve: { modulesDirectories: [__dirname, 'node_modules'] } }, webpackMiddleware: { noInfo: true } }); };
Allow turning off coverage reporting for performance tests
Allow turning off coverage reporting for performance tests
JavaScript
mit
neeharv/preact,developit/preact,neeharv/preact,developit/preact,gogoyqj/preact
javascript
## Code Before: /*eslint-env node */ /*eslint no-var: 0 */ module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], reporters: ['mocha', 'coverage'], coverageReporter: { reporters: [ { type: 'text-summary' }, { type: 'html', dir: 'coverage' } ] }, browsers: ['PhantomJS'], files: [ 'test/browser/**.js', 'test/shared/**.js' ], preprocessors: { 'test/**/*.js': ['webpack'], 'src/**/*.js': ['webpack'], '**/*.js': ['sourcemap'] }, webpack: { module: { /* Transpile source and test files */ preLoaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', query: { loose: 'all', blacklist: ['es6.tailCall'] } } ], /* Only Instrument our source files for coverage */ loaders: [ { test: /\.jsx?$/, loader: 'isparta', include: /src/ } ] }, resolve: { modulesDirectories: [__dirname, 'node_modules'] } }, webpackMiddleware: { noInfo: true } }); }; ## Instruction: Allow turning off coverage reporting for performance tests ## Code After: /*eslint-env node */ /*eslint no-var: 0 */ var coverage = String(process.env.COVERAGE)!=='false'; module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], reporters: ['mocha'].concat(coverage ? 'coverage' : []), coverageReporter: { reporters: [ { type: 'text-summary' }, { type: 'html', dir: 'coverage' } ] }, browsers: ['PhantomJS'], files: [ 'test/browser/**.js', 'test/shared/**.js' ], preprocessors: { 'test/**/*.js': ['webpack'], 'src/**/*.js': ['webpack'], '**/*.js': ['sourcemap'] }, webpack: { module: { /* Transpile source and test files */ preLoaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', query: { loose: 'all', blacklist: ['es6.tailCall'] } } ], /* Only Instrument our source files for coverage */ loaders: [].concat( coverage ? { test: /\.jsx?$/, loader: 'isparta', include: /src/ } : []) }, resolve: { modulesDirectories: [__dirname, 'node_modules'] } }, webpackMiddleware: { noInfo: true } }); };
/*eslint-env node */ /*eslint no-var: 0 */ + + var coverage = String(process.env.COVERAGE)!=='false'; module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], - reporters: ['mocha', 'coverage'], + reporters: ['mocha'].concat(coverage ? 'coverage' : []), + coverageReporter: { reporters: [ { type: 'text-summary' }, { type: 'html', dir: 'coverage' } ] }, browsers: ['PhantomJS'], files: [ 'test/browser/**.js', 'test/shared/**.js' ], preprocessors: { 'test/**/*.js': ['webpack'], 'src/**/*.js': ['webpack'], '**/*.js': ['sourcemap'] }, webpack: { module: { /* Transpile source and test files */ preLoaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', query: { loose: 'all', blacklist: ['es6.tailCall'] } } ], /* Only Instrument our source files for coverage */ + loaders: [].concat( coverage ? { - loaders: [ - { - test: /\.jsx?$/, ? - + test: /\.jsx?$/, - loader: 'isparta', ? - + loader: 'isparta', - include: /src/ ? - + include: /src/ + } : []) - } - ] }, resolve: { modulesDirectories: [__dirname, 'node_modules'] } }, webpackMiddleware: { noInfo: true } }); };
17
0.257576
9
8
7f6f8eb2ea043f957a3ebd101e5b2ccf0f78c918
app/models/api/v3/topology_presenter.rb
app/models/api/v3/topology_presenter.rb
module Api module V3 class TopologyPresenter def initialize(scenario) @scenario = scenario @gql = @scenario.gql(prepare: true) @converters = @gql.present_graph.converters end # Creates a Hash suitable for conversion to JSON by Rails. # # @return [Hash{Symbol=>Object}] # The Hash containing the scenario attributes. # def as_json(*) json = Hash.new json[:converters] = converters json[:links] = links json end ####### private ####### def converters @converters.map do |c| position = positions.find(c) { key: c.key, x: position[:x], y: position[:y], fill_color: ConverterPositions::FILL_COLORS[c.sector_key], stroke_color: '#999', sector: c.sector_key, use: c.use_key } end end def links @converters.map(&:input_links).flatten.uniq.map do |l| { left: l.lft_converter.key, right: l.rgt_converter.key, color: l.carrier.graphviz_color || '#999', type: l.link_type } end end def positions ConverterPositions.new( Rails.root.join('config/converter_positions.yml')) end end end end
module Api module V3 class TopologyPresenter def initialize(scenario) @scenario = scenario @gql = @scenario.gql(prepare: true) @converters = @gql.present_graph.converters end # Creates a Hash suitable for conversion to JSON by Rails. # # @return [Hash{Symbol=>Object}] # The Hash containing the scenario attributes. # def as_json(*) json = Hash.new json[:converters] = converters json[:links] = links json end ####### private ####### def converters @converters.map do |c| position = positions.find(c) { key: c.key, x: position[:x], y: position[:y], fill_color: ConverterPositions::FILL_COLORS[c.sector_key], stroke_color: '#999', sector: c.sector_key, use: c.use_key } end end def links @converters.map(&:input_links).flatten.uniq.map do |l| { left: l.lft_converter.key, right: l.rgt_converter.key, color: l.carrier.graphviz_color || '#999', type: l.link_type } end end def positions ConverterPositions.new(Atlas.data_dir.join('config/node_positions.yml')) end end end end
Fix reference to converter positions file
Fix reference to converter positions file
Ruby
mit
quintel/etengine,quintel/etengine,quintel/etengine,quintel/etengine
ruby
## Code Before: module Api module V3 class TopologyPresenter def initialize(scenario) @scenario = scenario @gql = @scenario.gql(prepare: true) @converters = @gql.present_graph.converters end # Creates a Hash suitable for conversion to JSON by Rails. # # @return [Hash{Symbol=>Object}] # The Hash containing the scenario attributes. # def as_json(*) json = Hash.new json[:converters] = converters json[:links] = links json end ####### private ####### def converters @converters.map do |c| position = positions.find(c) { key: c.key, x: position[:x], y: position[:y], fill_color: ConverterPositions::FILL_COLORS[c.sector_key], stroke_color: '#999', sector: c.sector_key, use: c.use_key } end end def links @converters.map(&:input_links).flatten.uniq.map do |l| { left: l.lft_converter.key, right: l.rgt_converter.key, color: l.carrier.graphviz_color || '#999', type: l.link_type } end end def positions ConverterPositions.new( Rails.root.join('config/converter_positions.yml')) end end end end ## Instruction: Fix reference to converter positions file ## Code After: module Api module V3 class TopologyPresenter def initialize(scenario) @scenario = scenario @gql = @scenario.gql(prepare: true) @converters = @gql.present_graph.converters end # Creates a Hash suitable for conversion to JSON by Rails. # # @return [Hash{Symbol=>Object}] # The Hash containing the scenario attributes. # def as_json(*) json = Hash.new json[:converters] = converters json[:links] = links json end ####### private ####### def converters @converters.map do |c| position = positions.find(c) { key: c.key, x: position[:x], y: position[:y], fill_color: ConverterPositions::FILL_COLORS[c.sector_key], stroke_color: '#999', sector: c.sector_key, use: c.use_key } end end def links @converters.map(&:input_links).flatten.uniq.map do |l| { left: l.lft_converter.key, right: l.rgt_converter.key, color: l.carrier.graphviz_color || '#999', type: l.link_type } end end def positions ConverterPositions.new(Atlas.data_dir.join('config/node_positions.yml')) end end end end
module Api module V3 class TopologyPresenter def initialize(scenario) @scenario = scenario @gql = @scenario.gql(prepare: true) @converters = @gql.present_graph.converters end # Creates a Hash suitable for conversion to JSON by Rails. # # @return [Hash{Symbol=>Object}] # The Hash containing the scenario attributes. # def as_json(*) json = Hash.new json[:converters] = converters json[:links] = links json end ####### private ####### def converters @converters.map do |c| position = positions.find(c) { key: c.key, x: position[:x], y: position[:y], fill_color: ConverterPositions::FILL_COLORS[c.sector_key], stroke_color: '#999', sector: c.sector_key, use: c.use_key } end end def links @converters.map(&:input_links).flatten.uniq.map do |l| { left: l.lft_converter.key, right: l.rgt_converter.key, color: l.carrier.graphviz_color || '#999', type: l.link_type } end end def positions + ConverterPositions.new(Atlas.data_dir.join('config/node_positions.yml')) - ConverterPositions.new( - Rails.root.join('config/converter_positions.yml')) end end end end
3
0.04918
1
2
c501bba28d4a77ba03f6f1277be13913307f04e1
clowder/utility/print_utilities.py
clowder/utility/print_utilities.py
"""Print utilities""" import os import emoji from termcolor import colored from clowder.utility.git_utilities import ( git_current_sha, git_current_branch, git_is_detached, git_is_dirty ) def print_project_status(root_directory, path, name): """Print repo status""" repo_path = os.path.join(root_directory, path) git_path = os.path.join(repo_path, '.git') if not os.path.isdir(git_path): return if git_is_dirty(repo_path): color = 'red' symbol = '*' else: color = 'green' symbol = '' project_output = colored(symbol + name, color) if git_is_detached(repo_path): current_ref = git_current_sha(repo_path) current_ref_output = colored('(HEAD @ ' + current_ref + ')', 'magenta') else: current_branch = git_current_branch(repo_path) current_ref_output = colored('(' + current_branch + ')', 'magenta') path_output = colored(path, 'cyan') print(project_output + ' ' + current_ref_output + ' ' + path_output) def print_group(name): name_output = colored(name, attrs=['bold']) print(get_cat() + ' ' + name_output) def get_cat(): """Return a cat emoji""" return emoji.emojize(':cat:', use_aliases=True)
"""Print utilities""" import os import emoji from termcolor import colored, cprint from clowder.utility.git_utilities import ( git_current_sha, git_current_branch, git_is_detached, git_is_dirty ) def print_project_status(root_directory, path, name): """Print repo status""" repo_path = os.path.join(root_directory, path) git_path = os.path.join(repo_path, '.git') if not os.path.isdir(git_path): cprint(name, 'green') return if git_is_dirty(repo_path): color = 'red' symbol = '*' else: color = 'green' symbol = '' project_output = colored(symbol + name, color) if git_is_detached(repo_path): current_ref = git_current_sha(repo_path) current_ref_output = colored('(HEAD @ ' + current_ref + ')', 'magenta') else: current_branch = git_current_branch(repo_path) current_ref_output = colored('(' + current_branch + ')', 'magenta') path_output = colored(path, 'cyan') print(project_output + ' ' + current_ref_output + ' ' + path_output) def print_group(name): name_output = colored(name, attrs=['bold']) print(get_cat() + ' ' + name_output) def get_cat(): """Return a cat emoji""" return emoji.emojize(':cat:', use_aliases=True)
Print project name even if it doesn't exist on disk
Print project name even if it doesn't exist on disk
Python
mit
JrGoodle/clowder,JrGoodle/clowder,JrGoodle/clowder
python
## Code Before: """Print utilities""" import os import emoji from termcolor import colored from clowder.utility.git_utilities import ( git_current_sha, git_current_branch, git_is_detached, git_is_dirty ) def print_project_status(root_directory, path, name): """Print repo status""" repo_path = os.path.join(root_directory, path) git_path = os.path.join(repo_path, '.git') if not os.path.isdir(git_path): return if git_is_dirty(repo_path): color = 'red' symbol = '*' else: color = 'green' symbol = '' project_output = colored(symbol + name, color) if git_is_detached(repo_path): current_ref = git_current_sha(repo_path) current_ref_output = colored('(HEAD @ ' + current_ref + ')', 'magenta') else: current_branch = git_current_branch(repo_path) current_ref_output = colored('(' + current_branch + ')', 'magenta') path_output = colored(path, 'cyan') print(project_output + ' ' + current_ref_output + ' ' + path_output) def print_group(name): name_output = colored(name, attrs=['bold']) print(get_cat() + ' ' + name_output) def get_cat(): """Return a cat emoji""" return emoji.emojize(':cat:', use_aliases=True) ## Instruction: Print project name even if it doesn't exist on disk ## Code After: """Print utilities""" import os import emoji from termcolor import colored, cprint from clowder.utility.git_utilities import ( git_current_sha, git_current_branch, git_is_detached, git_is_dirty ) def print_project_status(root_directory, path, name): """Print repo status""" repo_path = os.path.join(root_directory, path) git_path = os.path.join(repo_path, '.git') if not os.path.isdir(git_path): cprint(name, 'green') return if git_is_dirty(repo_path): color = 'red' symbol = '*' else: color = 'green' symbol = '' project_output = colored(symbol + name, color) if git_is_detached(repo_path): current_ref = git_current_sha(repo_path) current_ref_output = colored('(HEAD @ ' + current_ref + ')', 'magenta') else: current_branch = git_current_branch(repo_path) current_ref_output = colored('(' + current_branch + ')', 'magenta') path_output = colored(path, 'cyan') print(project_output + ' ' + current_ref_output + ' ' + path_output) def print_group(name): name_output = colored(name, attrs=['bold']) print(get_cat() + ' ' + name_output) def get_cat(): """Return a cat emoji""" return emoji.emojize(':cat:', use_aliases=True)
"""Print utilities""" import os import emoji - from termcolor import colored + from termcolor import colored, cprint ? ++++++++ from clowder.utility.git_utilities import ( git_current_sha, git_current_branch, git_is_detached, git_is_dirty ) def print_project_status(root_directory, path, name): """Print repo status""" repo_path = os.path.join(root_directory, path) git_path = os.path.join(repo_path, '.git') if not os.path.isdir(git_path): + cprint(name, 'green') return if git_is_dirty(repo_path): color = 'red' symbol = '*' else: color = 'green' symbol = '' project_output = colored(symbol + name, color) if git_is_detached(repo_path): current_ref = git_current_sha(repo_path) current_ref_output = colored('(HEAD @ ' + current_ref + ')', 'magenta') else: current_branch = git_current_branch(repo_path) current_ref_output = colored('(' + current_branch + ')', 'magenta') path_output = colored(path, 'cyan') print(project_output + ' ' + current_ref_output + ' ' + path_output) def print_group(name): name_output = colored(name, attrs=['bold']) print(get_cat() + ' ' + name_output) def get_cat(): """Return a cat emoji""" return emoji.emojize(':cat:', use_aliases=True)
3
0.068182
2
1
a94aa2d9aa58a7c2df289588eb4f16d83725ce8f
numba/exttypes/tests/test_vtables.py
numba/exttypes/tests/test_vtables.py
__author__ = 'mark'
from __future__ import print_function, division, absolute_import import numba as nb from numba import * from numba.minivect.minitypes import FunctionType from numba.exttypes import virtual from numba.exttypes import ordering from numba.exttypes import methodtable from numba.exttypes.signatures import Method from numba.testing.test_support import parametrize, main class py_class(object): pass def myfunc1(a): pass def myfunc2(a, b): pass def myfunc3(a, b, c): pass types = list(nb.numeric) + [object_] array_types = [t[:] for t in types] array_types += [t[:, :] for t in types] array_types += [t[:, :, :] for t in types] all_types = types + array_types def method(func, name, sig): return Method(func, name, sig, False, False) make_methods1 = lambda: [ method(myfunc1, 'method', FunctionType(argtype, [argtype])) for argtype in all_types] make_methods2 = lambda: [ method(myfunc2, 'method', FunctionType(argtype1, [argtype1, argtype2])) for argtype1 in all_types for argtype2 in all_types] def make_table(methods): table = methodtable.VTabType(py_class, []) table.create_method_ordering() for i, method in enumerate(make_methods1()): key = method.name, method.signature.args method.lfunc_pointer = i table.specialized_methods[key] = method assert len(methods) == len(table.specialized_methods) return table def make_hashtable(methods): table = make_table(methods) hashtable = virtual.build_hashing_vtab(table) return hashtable #------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------ @parametrize(make_methods1()) def test_specializations(methods): hashtable = make_hashtable(methods) print(hashtable) for i, method in enumerate(methods): key = virtual.sep201_signature_string(method.signature, method.name) assert hashtable.find_method(key), (i, method, key) if __name__ == '__main__': main()
Add test for hash-based vtable creation
Add test for hash-based vtable creation
Python
bsd-2-clause
cpcloud/numba,ssarangi/numba,jriehl/numba,stuartarchibald/numba,pombredanne/numba,stefanseefeld/numba,stuartarchibald/numba,pitrou/numba,seibert/numba,cpcloud/numba,ssarangi/numba,IntelLabs/numba,IntelLabs/numba,sklam/numba,cpcloud/numba,seibert/numba,GaZ3ll3/numba,stonebig/numba,GaZ3ll3/numba,stonebig/numba,cpcloud/numba,IntelLabs/numba,stefanseefeld/numba,stefanseefeld/numba,gmarkall/numba,pombredanne/numba,stonebig/numba,shiquanwang/numba,pombredanne/numba,pitrou/numba,numba/numba,pitrou/numba,sklam/numba,IntelLabs/numba,gdementen/numba,gdementen/numba,numba/numba,gdementen/numba,stonebig/numba,stefanseefeld/numba,pitrou/numba,numba/numba,stonebig/numba,IntelLabs/numba,pitrou/numba,gmarkall/numba,gmarkall/numba,gdementen/numba,GaZ3ll3/numba,numba/numba,GaZ3ll3/numba,ssarangi/numba,pombredanne/numba,jriehl/numba,jriehl/numba,shiquanwang/numba,stuartarchibald/numba,gmarkall/numba,seibert/numba,stuartarchibald/numba,jriehl/numba,shiquanwang/numba,numba/numba,stefanseefeld/numba,jriehl/numba,sklam/numba,seibert/numba,seibert/numba,GaZ3ll3/numba,stuartarchibald/numba,cpcloud/numba,sklam/numba,pombredanne/numba,ssarangi/numba,gmarkall/numba,gdementen/numba,sklam/numba,ssarangi/numba
python
## Code Before: __author__ = 'mark' ## Instruction: Add test for hash-based vtable creation ## Code After: from __future__ import print_function, division, absolute_import import numba as nb from numba import * from numba.minivect.minitypes import FunctionType from numba.exttypes import virtual from numba.exttypes import ordering from numba.exttypes import methodtable from numba.exttypes.signatures import Method from numba.testing.test_support import parametrize, main class py_class(object): pass def myfunc1(a): pass def myfunc2(a, b): pass def myfunc3(a, b, c): pass types = list(nb.numeric) + [object_] array_types = [t[:] for t in types] array_types += [t[:, :] for t in types] array_types += [t[:, :, :] for t in types] all_types = types + array_types def method(func, name, sig): return Method(func, name, sig, False, False) make_methods1 = lambda: [ method(myfunc1, 'method', FunctionType(argtype, [argtype])) for argtype in all_types] make_methods2 = lambda: [ method(myfunc2, 'method', FunctionType(argtype1, [argtype1, argtype2])) for argtype1 in all_types for argtype2 in all_types] def make_table(methods): table = methodtable.VTabType(py_class, []) table.create_method_ordering() for i, method in enumerate(make_methods1()): key = method.name, method.signature.args method.lfunc_pointer = i table.specialized_methods[key] = method assert len(methods) == len(table.specialized_methods) return table def make_hashtable(methods): table = make_table(methods) hashtable = virtual.build_hashing_vtab(table) return hashtable #------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------ @parametrize(make_methods1()) def test_specializations(methods): hashtable = make_hashtable(methods) print(hashtable) for i, method in enumerate(methods): key = virtual.sep201_signature_string(method.signature, method.name) assert hashtable.find_method(key), (i, method, key) if __name__ == '__main__': main()
- __author__ = 'mark' + from __future__ import print_function, division, absolute_import + + import numba as nb + from numba import * + from numba.minivect.minitypes import FunctionType + from numba.exttypes import virtual + from numba.exttypes import ordering + from numba.exttypes import methodtable + from numba.exttypes.signatures import Method + from numba.testing.test_support import parametrize, main + + class py_class(object): + pass + + def myfunc1(a): + pass + + def myfunc2(a, b): + pass + + def myfunc3(a, b, c): + pass + + types = list(nb.numeric) + [object_] + + array_types = [t[:] for t in types] + array_types += [t[:, :] for t in types] + array_types += [t[:, :, :] for t in types] + + all_types = types + array_types + + def method(func, name, sig): + return Method(func, name, sig, False, False) + + make_methods1 = lambda: [ + method(myfunc1, 'method', FunctionType(argtype, [argtype])) + for argtype in all_types] + + make_methods2 = lambda: [ + method(myfunc2, 'method', FunctionType(argtype1, [argtype1, argtype2])) + for argtype1 in all_types + for argtype2 in all_types] + + + def make_table(methods): + table = methodtable.VTabType(py_class, []) + table.create_method_ordering() + + for i, method in enumerate(make_methods1()): + key = method.name, method.signature.args + method.lfunc_pointer = i + table.specialized_methods[key] = method + + assert len(methods) == len(table.specialized_methods) + + return table + + def make_hashtable(methods): + table = make_table(methods) + hashtable = virtual.build_hashing_vtab(table) + return hashtable + + #------------------------------------------------------------------------ + # Tests + #------------------------------------------------------------------------ + + @parametrize(make_methods1()) + def test_specializations(methods): + hashtable = make_hashtable(methods) + print(hashtable) + + for i, method in enumerate(methods): + key = virtual.sep201_signature_string(method.signature, method.name) + assert hashtable.find_method(key), (i, method, key) + + if __name__ == '__main__': + main()
78
78
77
1
e4bc111b41a2e4dac5065a4a55ff0d9b8b9d4a42
Plugin/CppApi/ArcGISRuntimeToolkit.pri
Plugin/CppApi/ArcGISRuntimeToolkit.pri
INCLUDEPATH += $PWD/include QMAKE_LFLAGS += -L$PWD/output -lArcGISRuntimeToolkitCppApi
macx: PLATFORM = "macOS" unix:!macx:!android:!ios: PLATFORM = "linux" win32: PLATFORM = "windows" ios: PLATFORM = "iOS" android: { PLATFORM = "android" contains(QT_ARCH, i386) { ANDROID_ARCH = "x86" } else { ANDROID_ARCH = "armv7" } } INCLUDEPATH += $PWD/include equals(ANDROID_ARCH, "") { PLATFORM_OUTPUT = $$PLATFORM } else { PLATFORM_OUTPUT = $$PLATFORM/$$ANDROID_ARCH } QMAKE_LFLAGS += -L$$PWD/output/$$PLATFORM_OUTPUT -lArcGISRuntimeToolkitCppApi
Update where the libs will be included from with a local build.
Update where the libs will be included from with a local build.
QMake
apache-2.0
Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt
qmake
## Code Before: INCLUDEPATH += $PWD/include QMAKE_LFLAGS += -L$PWD/output -lArcGISRuntimeToolkitCppApi ## Instruction: Update where the libs will be included from with a local build. ## Code After: macx: PLATFORM = "macOS" unix:!macx:!android:!ios: PLATFORM = "linux" win32: PLATFORM = "windows" ios: PLATFORM = "iOS" android: { PLATFORM = "android" contains(QT_ARCH, i386) { ANDROID_ARCH = "x86" } else { ANDROID_ARCH = "armv7" } } INCLUDEPATH += $PWD/include equals(ANDROID_ARCH, "") { PLATFORM_OUTPUT = $$PLATFORM } else { PLATFORM_OUTPUT = $$PLATFORM/$$ANDROID_ARCH } QMAKE_LFLAGS += -L$$PWD/output/$$PLATFORM_OUTPUT -lArcGISRuntimeToolkitCppApi
+ + macx: PLATFORM = "macOS" + unix:!macx:!android:!ios: PLATFORM = "linux" + win32: PLATFORM = "windows" + ios: PLATFORM = "iOS" + android: { + PLATFORM = "android" + contains(QT_ARCH, i386) { + ANDROID_ARCH = "x86" + } else { + ANDROID_ARCH = "armv7" + } + } INCLUDEPATH += $PWD/include + + equals(ANDROID_ARCH, "") { + PLATFORM_OUTPUT = $$PLATFORM + } else { + PLATFORM_OUTPUT = $$PLATFORM/$$ANDROID_ARCH + } + - QMAKE_LFLAGS += -L$PWD/output -lArcGISRuntimeToolkitCppApi + QMAKE_LFLAGS += -L$$PWD/output/$$PLATFORM_OUTPUT -lArcGISRuntimeToolkitCppApi ? + ++++++++++++++++++
22
7.333333
21
1
65a77c4631e13b693870ea21cd19778abbe57b6e
examples/app/simple/app/view/summit/Grid.js
examples/app/simple/app/view/summit/Grid.js
/** * The grid in which summits are displayed * @extends Ext.grid.Panel */ Ext.define('GX.view.summit.Grid' ,{ extend: 'Ext.grid.Panel', alias : 'widget.summitgrid', requires: [ 'GeoExt.selection.FeatureModel', 'GeoExt.grid.column.Symbolizer', 'Ext.grid.plugin.CellEditing', 'Ext.form.field.Number' ], initComponent: function() { Ext.apply(this, { border: true, columns: [ {header: '', dataIndex: 'symbolizer', xtype: 'gx_symbolizercolumn', width: 30}, {header: 'ID', dataIndex: 'fid', width: 40}, {header: 'Name', dataIndex: 'name', flex: 3}, {header: 'Elevation', dataIndex: 'elevation', width: 60, editor: {xtype: 'numberfield'} }, {header: 'Title', dataIndex: 'title', flex: 4}, {header: 'Position', dataIndex: 'position', flex: 4} ], flex: 1, title : 'Summits Grid', store: 'Summits', selType: 'featuremodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 }) ] }); this.getSelectionModel().autoPanMapOnSelection = true; this.callParent(arguments); // store singleton selection model instance GX.view.summit.Grid.selectionModel = this.getSelectionModel(); } });
/** * The grid in which summits are displayed * @extends Ext.grid.Panel */ Ext.define('GX.view.summit.Grid' ,{ extend: 'Ext.grid.Panel', alias : 'widget.summitgrid', requires: [ 'GeoExt.selection.FeatureModel', 'GeoExt.grid.column.Symbolizer', 'Ext.grid.plugin.CellEditing', 'Ext.form.field.Number' ], initComponent: function() { Ext.apply(this, { border: true, columns: [ {header: '', dataIndex: 'symbolizer', xtype: 'gx_symbolizercolumn', width: 30}, {header: 'ID', dataIndex: 'fid', width: 40}, {header: 'Name', dataIndex: 'name', flex: 3}, {header: 'Elevation', dataIndex: 'elevation', width: 60, editor: {xtype: 'numberfield'} }, {header: 'Title', dataIndex: 'title', flex: 4}, {header: 'Position', dataIndex: 'position', flex: 4} ], flex: 1, title : 'Summits Grid', store: 'Summits', selType: 'featuremodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 }) ] }); this.callParent(arguments); // store singleton selection model instance GX.view.summit.Grid.selectionModel = this.getSelectionModel(); } });
Revert "Added autoPanMapOnSelection to recenter the map by clicking a feature within the grid"
Revert "Added autoPanMapOnSelection to recenter the map by clicking a feature within the grid" This reverts commit c5270d13ab270e97610fe9c3c87573177f0261a1.
JavaScript
bsd-3-clause
annarieger/geoext2,Sundsvallskommun/geoext2,geoext/geoext2,chrismayer/geoext2,marcjansen/geoext2,bentrm/geoext2,marcjansen/geoext2,chrismayer/geoext2,geographika/geoext2,m-click/geoext2,geoext/geoext2,bentrm/geoext2,m-click/geoext2,Sundsvallskommun/geoext2,geographika/geoext2,annarieger/geoext2,Sundsvallskommun/geoext2
javascript
## Code Before: /** * The grid in which summits are displayed * @extends Ext.grid.Panel */ Ext.define('GX.view.summit.Grid' ,{ extend: 'Ext.grid.Panel', alias : 'widget.summitgrid', requires: [ 'GeoExt.selection.FeatureModel', 'GeoExt.grid.column.Symbolizer', 'Ext.grid.plugin.CellEditing', 'Ext.form.field.Number' ], initComponent: function() { Ext.apply(this, { border: true, columns: [ {header: '', dataIndex: 'symbolizer', xtype: 'gx_symbolizercolumn', width: 30}, {header: 'ID', dataIndex: 'fid', width: 40}, {header: 'Name', dataIndex: 'name', flex: 3}, {header: 'Elevation', dataIndex: 'elevation', width: 60, editor: {xtype: 'numberfield'} }, {header: 'Title', dataIndex: 'title', flex: 4}, {header: 'Position', dataIndex: 'position', flex: 4} ], flex: 1, title : 'Summits Grid', store: 'Summits', selType: 'featuremodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 }) ] }); this.getSelectionModel().autoPanMapOnSelection = true; this.callParent(arguments); // store singleton selection model instance GX.view.summit.Grid.selectionModel = this.getSelectionModel(); } }); ## Instruction: Revert "Added autoPanMapOnSelection to recenter the map by clicking a feature within the grid" This reverts commit c5270d13ab270e97610fe9c3c87573177f0261a1. ## Code After: /** * The grid in which summits are displayed * @extends Ext.grid.Panel */ Ext.define('GX.view.summit.Grid' ,{ extend: 'Ext.grid.Panel', alias : 'widget.summitgrid', requires: [ 'GeoExt.selection.FeatureModel', 'GeoExt.grid.column.Symbolizer', 'Ext.grid.plugin.CellEditing', 'Ext.form.field.Number' ], initComponent: function() { Ext.apply(this, { border: true, columns: [ {header: '', dataIndex: 'symbolizer', xtype: 'gx_symbolizercolumn', width: 30}, {header: 'ID', dataIndex: 'fid', width: 40}, {header: 'Name', dataIndex: 'name', flex: 3}, {header: 'Elevation', dataIndex: 'elevation', width: 60, editor: {xtype: 'numberfield'} }, {header: 'Title', dataIndex: 'title', flex: 4}, {header: 'Position', dataIndex: 'position', flex: 4} ], flex: 1, title : 'Summits Grid', store: 'Summits', selType: 'featuremodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 }) ] }); this.callParent(arguments); // store singleton selection model instance GX.view.summit.Grid.selectionModel = this.getSelectionModel(); } });
/** * The grid in which summits are displayed * @extends Ext.grid.Panel */ Ext.define('GX.view.summit.Grid' ,{ extend: 'Ext.grid.Panel', alias : 'widget.summitgrid', requires: [ 'GeoExt.selection.FeatureModel', 'GeoExt.grid.column.Symbolizer', 'Ext.grid.plugin.CellEditing', 'Ext.form.field.Number' ], initComponent: function() { Ext.apply(this, { border: true, columns: [ {header: '', dataIndex: 'symbolizer', xtype: 'gx_symbolizercolumn', width: 30}, {header: 'ID', dataIndex: 'fid', width: 40}, {header: 'Name', dataIndex: 'name', flex: 3}, {header: 'Elevation', dataIndex: 'elevation', width: 60, editor: {xtype: 'numberfield'} }, {header: 'Title', dataIndex: 'title', flex: 4}, {header: 'Position', dataIndex: 'position', flex: 4} ], flex: 1, title : 'Summits Grid', store: 'Summits', selType: 'featuremodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 }) ] }); - this.getSelectionModel().autoPanMapOnSelection = true; this.callParent(arguments); // store singleton selection model instance GX.view.summit.Grid.selectionModel = this.getSelectionModel(); } });
1
0.02381
0
1
29b87f95404cc72b383e8e038cd7c2ff7717bd34
jpa/eclipselink.jpa.test/resource/eclipselink-extensibility-model/persistence.xml
jpa/eclipselink.jpa.test/resource/eclipselink-extensibility-model/persistence.xml
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0"> <persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL"> <provider> org.eclipse.persistence.jpa.PersistenceProvider </provider> <properties> <property name="eclipselink.metadata-repository.xml.file" value="extension.xml"/> <property name="eclipselink.metadata-repository" value="XML"/> </properties> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> </persistence>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0"> <persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL"> <provider> org.eclipse.persistence.jpa.PersistenceProvider </provider> <properties> <property name="eclipselink.metadata-source.xml.file" value="extension.xml"/> <property name="eclipselink.metadata-source" value="XML"/> </properties> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> </persistence>
Update to testing xml file due to conflict with other check-in
Update to testing xml file due to conflict with other check-in
XML
epl-1.0
gameduell/eclipselink.runtime,gameduell/eclipselink.runtime,gameduell/eclipselink.runtime,gameduell/eclipselink.runtime
xml
## Code Before: <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0"> <persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL"> <provider> org.eclipse.persistence.jpa.PersistenceProvider </provider> <properties> <property name="eclipselink.metadata-repository.xml.file" value="extension.xml"/> <property name="eclipselink.metadata-repository" value="XML"/> </properties> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> </persistence> ## Instruction: Update to testing xml file due to conflict with other check-in ## Code After: <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0"> <persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL"> <provider> org.eclipse.persistence.jpa.PersistenceProvider </provider> <properties> <property name="eclipselink.metadata-source.xml.file" value="extension.xml"/> <property name="eclipselink.metadata-source" value="XML"/> </properties> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> </persistence>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0"> <persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL"> <provider> org.eclipse.persistence.jpa.PersistenceProvider </provider> <properties> - <property name="eclipselink.metadata-repository.xml.file" value="extension.xml"/> ? -------- + <property name="eclipselink.metadata-source.xml.file" value="extension.xml"/> ? +++ + - <property name="eclipselink.metadata-repository" value="XML"/> ? -------- + <property name="eclipselink.metadata-source" value="XML"/> ? +++ + </properties> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> </persistence>
4
0.307692
2
2
5040d84e82e5c00a1a329845f6db9c83d3010e2a
conda.recipe/meta.yaml
conda.recipe/meta.yaml
package: name: flask-ldap-login version: !!str 0.2.0 build: entry_points: - flask-ldap-login-check = flask_ldap_login.check:main requirements: build: - python - setuptools run: - python - python-ldap - flask - flask-wtf test: imports: - examples - flask_ldap_login commands: - flask-ldap-login-check --help about: home: https://github.com/ContinuumIO/flask-ldap-login license: BSD summary: 'Flask ldap login is designed to work on top of an existing application.'
package: name: flask-ldap-login version: !!str 0.3.0 build: entry_points: - flask-ldap-login-check = flask_ldap_login.check:main requirements: build: - python - setuptools - python-ldap - flask - flask-wtf run: - python - python-ldap - flask - flask-wtf test: imports: - examples - flask_ldap_login commands: - flask-ldap-login-check --help about: home: https://github.com/ContinuumIO/flask-ldap-login license: BSD summary: 'Flask ldap login is designed to work on top of an existing application.'
Fix dependencies and bump version number
Fix dependencies and bump version number
YAML
bsd-2-clause
ContinuumIO/flask-ldap-login,ContinuumIO/flask-ldap-login
yaml
## Code Before: package: name: flask-ldap-login version: !!str 0.2.0 build: entry_points: - flask-ldap-login-check = flask_ldap_login.check:main requirements: build: - python - setuptools run: - python - python-ldap - flask - flask-wtf test: imports: - examples - flask_ldap_login commands: - flask-ldap-login-check --help about: home: https://github.com/ContinuumIO/flask-ldap-login license: BSD summary: 'Flask ldap login is designed to work on top of an existing application.' ## Instruction: Fix dependencies and bump version number ## Code After: package: name: flask-ldap-login version: !!str 0.3.0 build: entry_points: - flask-ldap-login-check = flask_ldap_login.check:main requirements: build: - python - setuptools - python-ldap - flask - flask-wtf run: - python - python-ldap - flask - flask-wtf test: imports: - examples - flask_ldap_login commands: - flask-ldap-login-check --help about: home: https://github.com/ContinuumIO/flask-ldap-login license: BSD summary: 'Flask ldap login is designed to work on top of an existing application.'
package: name: flask-ldap-login - version: !!str 0.2.0 ? ^ + version: !!str 0.3.0 ? ^ build: entry_points: - flask-ldap-login-check = flask_ldap_login.check:main requirements: build: - python - setuptools + - python-ldap + - flask + - flask-wtf run: - python - python-ldap - flask - flask-wtf test: imports: - examples - flask_ldap_login commands: - flask-ldap-login-check --help about: home: https://github.com/ContinuumIO/flask-ldap-login license: BSD summary: 'Flask ldap login is designed to work on top of an existing application.'
5
0.16129
4
1
f00a3026f43a9dee33bbb6de3080cc36e5c4a759
scripts/cleanup.sh
scripts/cleanup.sh
/usr/bin/yes | /usr/bin/pacman -Scc # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync
/usr/bin/yes | /usr/bin/pacman -Scc /usr/bin/pacman-optimize # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync
Optimize the pacman database before zeroing the drive
Optimize the pacman database before zeroing the drive
Shell
isc
agt-the-walker/packer-arch,aidanharris/packer-arch,slash170/packer-arch,elasticdog/packer-arch,tomaspapan/packer-arch,cosmo0920/packer-arch,tomswartz07/packer-arch,appleby/Lisp-In-Small-Pieces-VM
shell
## Code Before: /usr/bin/yes | /usr/bin/pacman -Scc # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync ## Instruction: Optimize the pacman database before zeroing the drive ## Code After: /usr/bin/yes | /usr/bin/pacman -Scc /usr/bin/pacman-optimize # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync
/usr/bin/yes | /usr/bin/pacman -Scc + /usr/bin/pacman-optimize # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync
1
0.142857
1
0
569bc80a3fb0c9a1caa0265097bbf93213436937
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: working_directory: /go/src/github.com/oinume/algo docker: - image: golang:1.10-stretch environment: steps: - checkout - run: name: "Set .gitconfig" command: | echo "" > ~/.gitconfig git config --global url."https://github.com".insteadOf git://github.com git config --global http.https://gopkg.in.followRedirects true - run: name: "Install dep" command: | go get github.com/golang/dep/cmd/dep - restore_cache: key: go-dep-{{ checksum "Gopkg.lock" }} - run: name: "Install dependencies" command: | if [ ! -e "/go/src/github.com/oinume/algo/vendor" ]; then dep ensure -v fi - save_cache: key: go-dep-{{ checksum "Gopkg.lock" }} paths: - "/go/src/github.com/oinume/algo/vendor" # - run: # name: "Run go-lint" # command: make go-lint - run: name: "Run go-test" command: | go test -v ./... # - run: # name: "Upload to codecov" # command: | # bash <(curl -s https://codecov.io/bash)
version: 2 jobs: build: working_directory: /go/src/github.com/oinume/algo docker: - image: golang:1.10-stretch environment: steps: - checkout - run: name: "Set .gitconfig" command: | echo "" > ~/.gitconfig git config --global url."https://github.com".insteadOf git://github.com git config --global http.https://gopkg.in.followRedirects true - run: name: "Install dep" command: | go get github.com/golang/dep/cmd/dep - restore_cache: key: go-dep-{{ checksum "Gopkg.lock" }} - run: name: "Install dependencies" command: | if [ ! -e "/go/src/github.com/oinume/algo/vendor" ]; then dep ensure -v fi - save_cache: key: go-dep-{{ checksum "Gopkg.lock" }} paths: - "/go/src/github.com/oinume/algo/vendor" # - run: # name: "Run go-lint" # command: make go-lint - run: name: "Run go-test" command: | go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... - run: name: "Upload to codecov" command: | bash <(curl -s https://codecov.io/bash)
Enable code coverage with codecov
Enable code coverage with codecov
YAML
mit
oinume/algo,oinume/algo
yaml
## Code Before: version: 2 jobs: build: working_directory: /go/src/github.com/oinume/algo docker: - image: golang:1.10-stretch environment: steps: - checkout - run: name: "Set .gitconfig" command: | echo "" > ~/.gitconfig git config --global url."https://github.com".insteadOf git://github.com git config --global http.https://gopkg.in.followRedirects true - run: name: "Install dep" command: | go get github.com/golang/dep/cmd/dep - restore_cache: key: go-dep-{{ checksum "Gopkg.lock" }} - run: name: "Install dependencies" command: | if [ ! -e "/go/src/github.com/oinume/algo/vendor" ]; then dep ensure -v fi - save_cache: key: go-dep-{{ checksum "Gopkg.lock" }} paths: - "/go/src/github.com/oinume/algo/vendor" # - run: # name: "Run go-lint" # command: make go-lint - run: name: "Run go-test" command: | go test -v ./... # - run: # name: "Upload to codecov" # command: | # bash <(curl -s https://codecov.io/bash) ## Instruction: Enable code coverage with codecov ## Code After: version: 2 jobs: build: working_directory: /go/src/github.com/oinume/algo docker: - image: golang:1.10-stretch environment: steps: - checkout - run: name: "Set .gitconfig" command: | echo "" > ~/.gitconfig git config --global url."https://github.com".insteadOf git://github.com git config --global http.https://gopkg.in.followRedirects true - run: name: "Install dep" command: | go get github.com/golang/dep/cmd/dep - restore_cache: key: go-dep-{{ checksum "Gopkg.lock" }} - run: name: "Install dependencies" command: | if [ ! -e "/go/src/github.com/oinume/algo/vendor" ]; then dep ensure -v fi - save_cache: key: go-dep-{{ checksum "Gopkg.lock" }} paths: - "/go/src/github.com/oinume/algo/vendor" # - run: # name: "Run go-lint" # command: make go-lint - run: name: "Run go-test" command: | go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... - run: name: "Upload to codecov" command: | bash <(curl -s https://codecov.io/bash)
version: 2 jobs: build: working_directory: /go/src/github.com/oinume/algo docker: - image: golang:1.10-stretch environment: steps: - checkout - run: name: "Set .gitconfig" command: | echo "" > ~/.gitconfig git config --global url."https://github.com".insteadOf git://github.com git config --global http.https://gopkg.in.followRedirects true - run: name: "Install dep" command: | go get github.com/golang/dep/cmd/dep - restore_cache: key: go-dep-{{ checksum "Gopkg.lock" }} - run: name: "Install dependencies" command: | if [ ! -e "/go/src/github.com/oinume/algo/vendor" ]; then dep ensure -v fi - save_cache: key: go-dep-{{ checksum "Gopkg.lock" }} paths: - "/go/src/github.com/oinume/algo/vendor" # - run: # name: "Run go-lint" # command: make go-lint - run: name: "Run go-test" command: | - go test -v ./... + go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... - # - run: ? - + - run: - # name: "Upload to codecov" ? - + name: "Upload to codecov" - # command: | ? - + command: | - # bash <(curl -s https://codecov.io/bash) ? - + bash <(curl -s https://codecov.io/bash)
10
0.238095
5
5
1fc20cb08a7c4b7d0d218a0e82786a04bfba4662
lib/node_modules/@stdlib/assert/is-numeric-array/docs/repl.txt
lib/node_modules/@stdlib/assert/is-numeric-array/docs/repl.txt
{{alias}}( value ) Tests if a value is a numeric array. Parameters ---------- value: any Value to test. Returns ------- bool: boolean Boolean indicating if a value is a numeric array. Examples -------- > var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( 10 ) ) true > bool = {{alias}}( [ 1, 2, 3 ] ) true > bool = {{alias}}( [ '1', '2', '3' ] ) false
{{alias}}( value ) Tests if a value is a numeric array. Parameters ---------- value: any Value to test. Returns ------- bool: boolean Boolean indicating if a value is a numeric array. Examples -------- > var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( 10 ) ) true > bool = {{alias}}( [ 1, 2, 3 ] ) true > bool = {{alias}}( [ '1', '2', '3' ] ) false See Also --------
Add missing "See Also" section to REPL text
Add missing "See Also" section to REPL text
Text
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
text
## Code Before: {{alias}}( value ) Tests if a value is a numeric array. Parameters ---------- value: any Value to test. Returns ------- bool: boolean Boolean indicating if a value is a numeric array. Examples -------- > var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( 10 ) ) true > bool = {{alias}}( [ 1, 2, 3 ] ) true > bool = {{alias}}( [ '1', '2', '3' ] ) false ## Instruction: Add missing "See Also" section to REPL text ## Code After: {{alias}}( value ) Tests if a value is a numeric array. Parameters ---------- value: any Value to test. Returns ------- bool: boolean Boolean indicating if a value is a numeric array. Examples -------- > var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( 10 ) ) true > bool = {{alias}}( [ 1, 2, 3 ] ) true > bool = {{alias}}( [ '1', '2', '3' ] ) false See Also --------
{{alias}}( value ) Tests if a value is a numeric array. Parameters ---------- value: any Value to test. Returns ------- bool: boolean Boolean indicating if a value is a numeric array. Examples -------- > var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( 10 ) ) true > bool = {{alias}}( [ 1, 2, 3 ] ) true > bool = {{alias}}( [ '1', '2', '3' ] ) false + See Also + -------- + +
4
0.173913
4
0
ed4e6856ddbf9990769f64bbaf4d10a666671a65
sh_common/paths.bash
sh_common/paths.bash
[[ -d /usr/local/lib/node ]] && export NODE_PATH=/usr/local/lib/node [[ -d /usr/local/share/npm/bin ]] && export PATH=/usr/local/share/npm/bin:$PATH # For MacTeX [[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin # For "home" bin [[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH # Load chruby or rbenv or RVM if [ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then . /usr/local/opt/chruby/share/chruby/chruby.sh . /usr/local/opt/chruby/share/chruby/auto.sh elif command -v rbenv &> /dev/null; then eval "$(rbenv init -)" elif [ -s "$HOME/.rvm/scripts/rvm" ]; then . "$HOME/.rvm/scripts/rvm" fi # Load nodenv if command -v nodenv &> /dev/null; then eval "$(nodenv init -)" fi # For rustup if [[ -d "$HOME/.cargo/bin" ]]; then export PATH="$PATH:$HOME/.cargo/bin" fi # For Haskell Stack if [[ -d "$HOME/.local/bin" ]]; then export PATH="$PATH:$HOME/.local/bin" fi
[[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin # For "home" bin [[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH # Load chruby or rbenv or RVM if [ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then . /usr/local/opt/chruby/share/chruby/chruby.sh . /usr/local/opt/chruby/share/chruby/auto.sh elif command -v rbenv &> /dev/null; then eval "$(rbenv init -)" elif [ -s "$HOME/.rvm/scripts/rvm" ]; then . "$HOME/.rvm/scripts/rvm" fi # Load nodenv if command -v nodenv &> /dev/null; then eval "$(nodenv init -)" fi # For rustup if [[ -d "$HOME/.cargo/bin" ]]; then export PATH="$PATH:$HOME/.cargo/bin" fi # For Haskell Stack if [[ -d "$HOME/.local/bin" ]]; then export PATH="$PATH:$HOME/.local/bin" fi
Remove long-unneeded Node env setup
shell: Remove long-unneeded Node env setup
Shell
mit
amarshall/dotfiles,amarshall/dotfiles,amarshall/dotfiles,amarshall/dotfiles
shell
## Code Before: [[ -d /usr/local/lib/node ]] && export NODE_PATH=/usr/local/lib/node [[ -d /usr/local/share/npm/bin ]] && export PATH=/usr/local/share/npm/bin:$PATH # For MacTeX [[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin # For "home" bin [[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH # Load chruby or rbenv or RVM if [ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then . /usr/local/opt/chruby/share/chruby/chruby.sh . /usr/local/opt/chruby/share/chruby/auto.sh elif command -v rbenv &> /dev/null; then eval "$(rbenv init -)" elif [ -s "$HOME/.rvm/scripts/rvm" ]; then . "$HOME/.rvm/scripts/rvm" fi # Load nodenv if command -v nodenv &> /dev/null; then eval "$(nodenv init -)" fi # For rustup if [[ -d "$HOME/.cargo/bin" ]]; then export PATH="$PATH:$HOME/.cargo/bin" fi # For Haskell Stack if [[ -d "$HOME/.local/bin" ]]; then export PATH="$PATH:$HOME/.local/bin" fi ## Instruction: shell: Remove long-unneeded Node env setup ## Code After: [[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin # For "home" bin [[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH # Load chruby or rbenv or RVM if [ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then . /usr/local/opt/chruby/share/chruby/chruby.sh . /usr/local/opt/chruby/share/chruby/auto.sh elif command -v rbenv &> /dev/null; then eval "$(rbenv init -)" elif [ -s "$HOME/.rvm/scripts/rvm" ]; then . "$HOME/.rvm/scripts/rvm" fi # Load nodenv if command -v nodenv &> /dev/null; then eval "$(nodenv init -)" fi # For rustup if [[ -d "$HOME/.cargo/bin" ]]; then export PATH="$PATH:$HOME/.cargo/bin" fi # For Haskell Stack if [[ -d "$HOME/.local/bin" ]]; then export PATH="$PATH:$HOME/.local/bin" fi
- [[ -d /usr/local/lib/node ]] && export NODE_PATH=/usr/local/lib/node - [[ -d /usr/local/share/npm/bin ]] && export PATH=/usr/local/share/npm/bin:$PATH - - # For MacTeX [[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin # For "home" bin [[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH # Load chruby or rbenv or RVM if [ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then . /usr/local/opt/chruby/share/chruby/chruby.sh . /usr/local/opt/chruby/share/chruby/auto.sh elif command -v rbenv &> /dev/null; then eval "$(rbenv init -)" elif [ -s "$HOME/.rvm/scripts/rvm" ]; then . "$HOME/.rvm/scripts/rvm" fi # Load nodenv if command -v nodenv &> /dev/null; then eval "$(nodenv init -)" fi # For rustup if [[ -d "$HOME/.cargo/bin" ]]; then export PATH="$PATH:$HOME/.cargo/bin" fi # For Haskell Stack if [[ -d "$HOME/.local/bin" ]]; then export PATH="$PATH:$HOME/.local/bin" fi
4
0.121212
0
4
1a8a07575f4dcd90582db12ead44154116ff0353
pages/home-page.html
pages/home-page.html
<link rel="import" href="/bower_components/polymer/polymer.html"> <link rel="import" href="/layouts/sidebar-layout.html"> <link rel="import" href="/bower_components/core-item/core-item.html"> <polymer-element name="home-page" noscript> <template> <style type="text/css"> </style> <sidebar-layout selected="home"> <div class="title">Home</div> <div> <a is="pushstate-anchor" href="/notes"> <img src="../assets/ladivaar.png" height="100%" width="100%"> </a> </div> </sidebar-layout> </template> </polymer-element>
<link rel="import" href="/bower_components/polymer/polymer.html"> <link rel="import" href="/layouts/sidebar-layout.html"> <link rel="import" href="/bower_components/core-item/core-item.html"> <polymer-element name="home-page"> <template> <style type="text/css"> </style> <sidebar-layout selected="home"> <div class="title">Home</div> <div> <a is="pushstate-anchor" href="/notes"> <img src="../assets/ladivaar.png" height="100%" width="100%"> </a> </div> </sidebar-layout> </template> <script type="text/javascript"> Polymer('home-page', { ready:function() { setTimeout(function() { document.querySelector('app-router').go('/notes'); }, 2000) } }); </script> </polymer-element>
Set timer to hide logo ater 2 sec
Set timer to hide logo ater 2 sec
HTML
mit
harpreetkhalsagtbit/ladivaar-app,harpreetkhalsagtbit/ladivaar-app
html
## Code Before: <link rel="import" href="/bower_components/polymer/polymer.html"> <link rel="import" href="/layouts/sidebar-layout.html"> <link rel="import" href="/bower_components/core-item/core-item.html"> <polymer-element name="home-page" noscript> <template> <style type="text/css"> </style> <sidebar-layout selected="home"> <div class="title">Home</div> <div> <a is="pushstate-anchor" href="/notes"> <img src="../assets/ladivaar.png" height="100%" width="100%"> </a> </div> </sidebar-layout> </template> </polymer-element> ## Instruction: Set timer to hide logo ater 2 sec ## Code After: <link rel="import" href="/bower_components/polymer/polymer.html"> <link rel="import" href="/layouts/sidebar-layout.html"> <link rel="import" href="/bower_components/core-item/core-item.html"> <polymer-element name="home-page"> <template> <style type="text/css"> </style> <sidebar-layout selected="home"> <div class="title">Home</div> <div> <a is="pushstate-anchor" href="/notes"> <img src="../assets/ladivaar.png" height="100%" width="100%"> </a> </div> </sidebar-layout> </template> <script type="text/javascript"> Polymer('home-page', { ready:function() { setTimeout(function() { document.querySelector('app-router').go('/notes'); }, 2000) } }); </script> </polymer-element>
<link rel="import" href="/bower_components/polymer/polymer.html"> <link rel="import" href="/layouts/sidebar-layout.html"> <link rel="import" href="/bower_components/core-item/core-item.html"> - <polymer-element name="home-page" noscript> ? --------- + <polymer-element name="home-page"> <template> <style type="text/css"> </style> <sidebar-layout selected="home"> <div class="title">Home</div> <div> <a is="pushstate-anchor" href="/notes"> <img src="../assets/ladivaar.png" height="100%" width="100%"> </a> </div> </sidebar-layout> </template> + <script type="text/javascript"> + Polymer('home-page', { + ready:function() { + setTimeout(function() { + document.querySelector('app-router').go('/notes'); + }, 2000) + } + }); + </script> </polymer-element>
11
0.578947
10
1
f38d3ed6daf3e0ac8d87b7bd280027dd2d2a09ef
packages/at/attoparsec-time.yaml
packages/at/attoparsec-time.yaml
homepage: https://github.com/nikita-volkov/attoparsec-time changelog-type: '' hash: 7254ee92d32a5e9c95ac1f570b0a2cea34003428b01b2f50f9b96dd71339355d test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: Attoparsec parsers of time changelog: '' basic-deps: bytestring: ==0.10.* base: ! '>=4.9 && <5' time: ! '>=1.4 && <2' text: ! '>=1 && <2' attoparsec: ! '>=0.13 && <0.15' scientific: ==0.3.* all-versions: - '0.1' - 0.1.1 - 0.1.1.1 - 0.1.2 - 0.1.2.1 - 0.1.3 - 0.1.3.1 - 0.1.3.2 - 0.1.4 - '1' - 1.0.1 - 1.0.1.1 author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: 1.0.1.1 description-type: haddock description: A collection of Attoparsec parsers for the \"time\" library license-name: MIT
homepage: https://github.com/nikita-volkov/attoparsec-time changelog-type: '' hash: 4b2e24e2ecf1787561428c2ef666a7f2f3e63cd190412afc8ad96176f303ba5f test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: Attoparsec parsers of time changelog: '' basic-deps: bytestring: '>=0.10 && <0.12' base: '>=4.9 && <5' time: '>=1.4 && <2' text: '>=1 && <2' attoparsec: '>=0.13 && <0.15' all-versions: - '0.1' - 0.1.1 - 0.1.1.1 - 0.1.2 - 0.1.2.1 - 0.1.3 - 0.1.3.1 - 0.1.3.2 - 0.1.4 - '1' - 1.0.1 - 1.0.1.1 - 1.0.1.2 author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: 1.0.1.2 description-type: haddock description: A collection of Attoparsec parsers for the \"time\" library license-name: MIT
Update from Hackage at 2021-06-26T09:00:12Z
Update from Hackage at 2021-06-26T09:00:12Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/nikita-volkov/attoparsec-time changelog-type: '' hash: 7254ee92d32a5e9c95ac1f570b0a2cea34003428b01b2f50f9b96dd71339355d test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: Attoparsec parsers of time changelog: '' basic-deps: bytestring: ==0.10.* base: ! '>=4.9 && <5' time: ! '>=1.4 && <2' text: ! '>=1 && <2' attoparsec: ! '>=0.13 && <0.15' scientific: ==0.3.* all-versions: - '0.1' - 0.1.1 - 0.1.1.1 - 0.1.2 - 0.1.2.1 - 0.1.3 - 0.1.3.1 - 0.1.3.2 - 0.1.4 - '1' - 1.0.1 - 1.0.1.1 author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: 1.0.1.1 description-type: haddock description: A collection of Attoparsec parsers for the \"time\" library license-name: MIT ## Instruction: Update from Hackage at 2021-06-26T09:00:12Z ## Code After: homepage: https://github.com/nikita-volkov/attoparsec-time changelog-type: '' hash: 4b2e24e2ecf1787561428c2ef666a7f2f3e63cd190412afc8ad96176f303ba5f test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: Attoparsec parsers of time changelog: '' basic-deps: bytestring: '>=0.10 && <0.12' base: '>=4.9 && <5' time: '>=1.4 && <2' text: '>=1 && <2' attoparsec: '>=0.13 && <0.15' all-versions: - '0.1' - 0.1.1 - 0.1.1.1 - 0.1.2 - 0.1.2.1 - 0.1.3 - 0.1.3.1 - 0.1.3.2 - 0.1.4 - '1' - 1.0.1 - 1.0.1.1 - 1.0.1.2 author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: 1.0.1.2 description-type: haddock description: A collection of Attoparsec parsers for the \"time\" library license-name: MIT
homepage: https://github.com/nikita-volkov/attoparsec-time changelog-type: '' - hash: 7254ee92d32a5e9c95ac1f570b0a2cea34003428b01b2f50f9b96dd71339355d + hash: 4b2e24e2ecf1787561428c2ef666a7f2f3e63cd190412afc8ad96176f303ba5f test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: Attoparsec parsers of time changelog: '' basic-deps: - bytestring: ==0.10.* ? ^ ^ + bytestring: '>=0.10 && <0.12' ? ^^ ++++++ ^^^ - base: ! '>=4.9 && <5' ? -- + base: '>=4.9 && <5' - time: ! '>=1.4 && <2' ? -- + time: '>=1.4 && <2' - text: ! '>=1 && <2' ? -- + text: '>=1 && <2' - attoparsec: ! '>=0.13 && <0.15' ? -- + attoparsec: '>=0.13 && <0.15' - scientific: ==0.3.* all-versions: - '0.1' - 0.1.1 - 0.1.1.1 - 0.1.2 - 0.1.2.1 - 0.1.3 - 0.1.3.1 - 0.1.3.2 - 0.1.4 - '1' - 1.0.1 - 1.0.1.1 + - 1.0.1.2 author: Nikita Volkov <nikita.y.volkov@mail.ru> - latest: 1.0.1.1 ? ^ + latest: 1.0.1.2 ? ^ description-type: haddock description: A collection of Attoparsec parsers for the \"time\" library license-name: MIT
16
0.5
8
8
25480921d3823ebb09f3cd8db0f147c91c571101
README.md
README.md
Command line based multiple instance launcher for simulators and its support tools. Currently this is the private incubating project for the in-house simulation infrastructure. **Don't follow, watch, and touch this project!!** ## Configuration Check the configuration document ([link](docs/configure.md)).
Command line based multiple instance launcher. ## Configuration Check the configuration document ([link](docs/configure.md)).
Change introduction. But intro page is not yet ready completely
[fix] Change introduction. But intro page is not yet ready completely
Markdown
mit
Sungup/Undine
markdown
## Code Before: Command line based multiple instance launcher for simulators and its support tools. Currently this is the private incubating project for the in-house simulation infrastructure. **Don't follow, watch, and touch this project!!** ## Configuration Check the configuration document ([link](docs/configure.md)). ## Instruction: [fix] Change introduction. But intro page is not yet ready completely ## Code After: Command line based multiple instance launcher. ## Configuration Check the configuration document ([link](docs/configure.md)).
+ Command line based multiple instance launcher. - Command line based multiple instance launcher for simulators and its support - tools. Currently this is the private incubating project for the in-house - simulation infrastructure. **Don't follow, watch, and touch this project!!** ## Configuration Check the configuration document ([link](docs/configure.md)).
4
0.5
1
3
3b8c35040847c9f1c3f24598855d91ed600b18a4
Casks/dropbox-experimental.rb
Casks/dropbox-experimental.rb
class DropboxExperimental < Cask version '2.11.13' sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf' url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg" homepage 'https://www.dropbox.com/' license :unknown app 'Dropbox.app' end
class DropboxExperimental < Cask version '2.11.31' sha256 '70d2f24b776c330678573b5a04362c066ac3ab6e17d05ca34c21e8bccb5da898' url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg" homepage 'https://www.dropbox.com/' license :unknown app 'Dropbox.app' end
Upgrade Dropbox Experimental Build to v2.11.31
Upgrade Dropbox Experimental Build to v2.11.31
Ruby
bsd-2-clause
1zaman/homebrew-versions,delphinus35/homebrew-versions,zerrot/homebrew-versions,yurikoles/homebrew-versions,hugoboos/homebrew-versions,zorosteven/homebrew-versions,lantrix/homebrew-versions,wickedsp1d3r/homebrew-versions,Felerius/homebrew-versions,mauricerkelly/homebrew-versions,pkq/homebrew-versions,mauricerkelly/homebrew-versions,victorpopkov/homebrew-versions,cprecioso/homebrew-versions,yurikoles/homebrew-versions,hubwub/homebrew-versions,caskroom/homebrew-versions,toonetown/homebrew-cask-versions,bey2lah/homebrew-versions,mahori/homebrew-cask-versions,geggo98/homebrew-versions,404NetworkError/homebrew-versions,bondezbond/homebrew-versions,peterjosling/homebrew-versions,hubwub/homebrew-versions,peterjosling/homebrew-versions,bey2lah/homebrew-versions,digital-wonderland/homebrew-versions,stigkj/homebrew-caskroom-versions,gcds/homebrew-versions,stigkj/homebrew-caskroom-versions,a-x-/homebrew-versions,githubutilities/homebrew-versions,bondezbond/homebrew-versions,FinalDes/homebrew-versions,lantrix/homebrew-versions,danielbayley/homebrew-versions,victorpopkov/homebrew-versions,rogeriopradoj/homebrew-versions,pinut/homebrew-versions,danielbayley/homebrew-versions,hugoboos/homebrew-versions,rogeriopradoj/homebrew-versions,RJHsiao/homebrew-versions,ddinchev/homebrew-versions,FinalDes/homebrew-versions,mahori/homebrew-versions,404NetworkError/homebrew-versions,cprecioso/homebrew-versions,wickedsp1d3r/homebrew-versions,RJHsiao/homebrew-versions,Ngrd/homebrew-versions,coeligena/homebrew-verscustomized,caskroom/homebrew-versions,pkq/homebrew-versions,toonetown/homebrew-cask-versions,alebcay/homebrew-versions,Ngrd/homebrew-versions
ruby
## Code Before: class DropboxExperimental < Cask version '2.11.13' sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf' url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg" homepage 'https://www.dropbox.com/' license :unknown app 'Dropbox.app' end ## Instruction: Upgrade Dropbox Experimental Build to v2.11.31 ## Code After: class DropboxExperimental < Cask version '2.11.31' sha256 '70d2f24b776c330678573b5a04362c066ac3ab6e17d05ca34c21e8bccb5da898' url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg" homepage 'https://www.dropbox.com/' license :unknown app 'Dropbox.app' end
class DropboxExperimental < Cask - version '2.11.13' ? - + version '2.11.31' ? + - sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf' + sha256 '70d2f24b776c330678573b5a04362c066ac3ab6e17d05ca34c21e8bccb5da898' url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg" homepage 'https://www.dropbox.com/' license :unknown app 'Dropbox.app' end
4
0.4
2
2
2c660945f66bbe7946edf9fc08dd4a4a6691b3e4
lib/em-kannel/test_helper.rb
lib/em-kannel/test_helper.rb
require "ostruct" module EventMachine class Kannel def self.deliveries @deliveries ||= [] end Client.class_eval do def fake_response status = OpenStruct.new(status: 202) http = OpenStruct.new(response_header: status) Response.new(http, Time.now) end def deliver(&block) EM::Kannel.deliveries << @message yield(fake_response) if block_given? end end end end
require "ostruct" module EventMachine class Kannel def self.deliveries @deliveries ||= [] end Client.class_eval do def fake_response guid = UUID.new.generate status = OpenStruct.new(status: 202) http = OpenStruct.new( response_header: status, response: "0: Accepted for delivery: #{guid}" ) Response.new(http, Time.now) end def deliver(&block) EM::Kannel.deliveries << @message yield(fake_response) if block_given? end end end end
Add fake guid to test helper response
Add fake guid to test helper response
Ruby
mit
groupme/em-kannel
ruby
## Code Before: require "ostruct" module EventMachine class Kannel def self.deliveries @deliveries ||= [] end Client.class_eval do def fake_response status = OpenStruct.new(status: 202) http = OpenStruct.new(response_header: status) Response.new(http, Time.now) end def deliver(&block) EM::Kannel.deliveries << @message yield(fake_response) if block_given? end end end end ## Instruction: Add fake guid to test helper response ## Code After: require "ostruct" module EventMachine class Kannel def self.deliveries @deliveries ||= [] end Client.class_eval do def fake_response guid = UUID.new.generate status = OpenStruct.new(status: 202) http = OpenStruct.new( response_header: status, response: "0: Accepted for delivery: #{guid}" ) Response.new(http, Time.now) end def deliver(&block) EM::Kannel.deliveries << @message yield(fake_response) if block_given? end end end end
require "ostruct" module EventMachine class Kannel def self.deliveries @deliveries ||= [] end Client.class_eval do def fake_response + guid = UUID.new.generate + status = OpenStruct.new(status: 202) - http = OpenStruct.new(response_header: status) + http = OpenStruct.new( + response_header: status, + response: "0: Accepted for delivery: #{guid}" + ) Response.new(http, Time.now) end def deliver(&block) EM::Kannel.deliveries << @message yield(fake_response) if block_given? end end end end
7
0.304348
6
1
e23f6ad7d19ac10ffaa83a0d8985bd6e80d0f3d3
docs/contacts.rst
docs/contacts.rst
.. Copyright (c) 2016, Ruslan Baratov .. All rights reserved. Contacts -------- Public ====== Feel free to open new `issue`_ if you want to ask any questions. Public chat room: |gitter| Private ======= You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_: * ``7EBD836B7690C3742E6F3632742BEB00283529E06D76E06F7065544A5F9C6F37D948FB0F754B`` * ``4EED21EA40B0351D8BFC85A69499A3F7CFEDA6844DA39FF1783A4D9827423F075D7194707C43`` .. _issue: https://github.com/ruslo/hunter/issues/new .. _Tox: https://tox.chat .. |gitter| image:: https://badges.gitter.im/ruslo/hunter.svg :target: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
.. Copyright (c) 2016, Ruslan Baratov .. All rights reserved. Contacts -------- Public ====== Feel free to open new `issue`_ if you want to ask any questions. Public chat room: `gitter`_ Private ======= You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_: * ``7EBD836B7690C3742E6F3632742BEB00283529E06D76E06F7065544A5F9C6F37D948FB0F754B`` * ``4EED21EA40B0351D8BFC85A69499A3F7CFEDA6844DA39FF1783A4D9827423F075D7194707C43`` .. _issue: https://github.com/ruslo/hunter/issues/new .. _Tox: https://tox.chat .. _gitter: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge .. Stopped working for some reason: https://travis-ci.org/ruslo/hunter/jobs/185557845 .. .. |gitter| image:: https://badges.gitter.im/ruslo/hunter.svg .. :target: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
Fix docs generation on Travis CI
Fix docs generation on Travis CI
reStructuredText
bsd-2-clause
dmpriso/hunter,dan-42/hunter,ikliashchou/hunter,zhuhaow/hunter,fwinnen/hunter,dmpriso/hunter,RomanYudintsev/hunter,designerror/hunter,madmongo1/hunter,dan-42/hunter,tatraian/hunter,designerror/hunter,vdsrd/hunter,dvirtz/hunter,ingenue/hunter,dvirtz/hunter,ruslo/hunter,NeroBurner/hunter,xsacha/hunter,akalsi87/hunter,madmongo1/hunter,x10mind/hunter,ingenue/hunter,zhuhaow/hunter,tatraian/hunter,dan-42/hunter,RomanYudintsev/hunter,vdsrd/hunter,isaachier/hunter,mchiasson/hunter,x10mind/hunter,caseymcc/hunter,madmongo1/hunter,mchiasson/hunter,shekharhimanshu/hunter,ingenue/hunter,caseymcc/hunter,isaachier/hunter,xsacha/hunter,isaachier/hunter,x10mind/hunter,ruslo/hunter,tatraian/hunter,stohrendorf/hunter,fwinnen/hunter,NeroBurner/hunter,Knitschi/hunter,designerror/hunter,dan-42/hunter,shekharhimanshu/hunter,pretyman/hunter,ruslo/hunter,isaachier/hunter,pretyman/hunter,madmongo1/hunter,NeroBurner/hunter,vdsrd/hunter,Knitschi/hunter,mchiasson/hunter,caseymcc/hunter,fwinnen/hunter,ruslo/hunter,ikliashchou/hunter,ikliashchou/hunter,mchiasson/hunter,ErniBrown/hunter,xsacha/hunter,akalsi87/hunter,pretyman/hunter,xsacha/hunter,Knitschi/hunter,NeroBurner/hunter,shekharhimanshu/hunter,ingenue/hunter,stohrendorf/hunter,stohrendorf/hunter,dvirtz/hunter,akalsi87/hunter,ErniBrown/hunter,ikliashchou/hunter,ErniBrown/hunter,zhuhaow/hunter,ErniBrown/hunter,dmpriso/hunter,pretyman/hunter,RomanYudintsev/hunter
restructuredtext
## Code Before: .. Copyright (c) 2016, Ruslan Baratov .. All rights reserved. Contacts -------- Public ====== Feel free to open new `issue`_ if you want to ask any questions. Public chat room: |gitter| Private ======= You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_: * ``7EBD836B7690C3742E6F3632742BEB00283529E06D76E06F7065544A5F9C6F37D948FB0F754B`` * ``4EED21EA40B0351D8BFC85A69499A3F7CFEDA6844DA39FF1783A4D9827423F075D7194707C43`` .. _issue: https://github.com/ruslo/hunter/issues/new .. _Tox: https://tox.chat .. |gitter| image:: https://badges.gitter.im/ruslo/hunter.svg :target: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge ## Instruction: Fix docs generation on Travis CI ## Code After: .. Copyright (c) 2016, Ruslan Baratov .. All rights reserved. Contacts -------- Public ====== Feel free to open new `issue`_ if you want to ask any questions. Public chat room: `gitter`_ Private ======= You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_: * ``7EBD836B7690C3742E6F3632742BEB00283529E06D76E06F7065544A5F9C6F37D948FB0F754B`` * ``4EED21EA40B0351D8BFC85A69499A3F7CFEDA6844DA39FF1783A4D9827423F075D7194707C43`` .. _issue: https://github.com/ruslo/hunter/issues/new .. _Tox: https://tox.chat .. _gitter: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge .. Stopped working for some reason: https://travis-ci.org/ruslo/hunter/jobs/185557845 .. .. |gitter| image:: https://badges.gitter.im/ruslo/hunter.svg .. :target: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
.. Copyright (c) 2016, Ruslan Baratov .. All rights reserved. Contacts -------- Public ====== Feel free to open new `issue`_ if you want to ask any questions. - Public chat room: |gitter| ? ^ ^ + Public chat room: `gitter`_ ? ^ ^^ Private ======= You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_: * ``7EBD836B7690C3742E6F3632742BEB00283529E06D76E06F7065544A5F9C6F37D948FB0F754B`` * ``4EED21EA40B0351D8BFC85A69499A3F7CFEDA6844DA39FF1783A4D9827423F075D7194707C43`` .. _issue: https://github.com/ruslo/hunter/issues/new .. _Tox: https://tox.chat + .. _gitter: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge + + .. Stopped working for some reason: https://travis-ci.org/ruslo/hunter/jobs/185557845 - .. |gitter| image:: https://badges.gitter.im/ruslo/hunter.svg + .. .. |gitter| image:: https://badges.gitter.im/ruslo/hunter.svg ? +++ - :target: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge + .. :target: https://gitter.im/ruslo/hunter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge ? ++
9
0.346154
6
3
27f47ef27654dfa9c68bb90d3b8fae2e3a281396
pitchfork/__init__.py
pitchfork/__init__.py
from flask import Flask, g from happymongo import HapPyMongo from config import config from adminbp import bp as admin_bp from manage_globals import bp as manage_bp from engine import bp as engine_bp from inspect import getmembers, isfunction import context_functions import views import template_filters app = Flask(__name__) app.config.from_object(config) app.register_blueprint(admin_bp, url_prefix='/admin') app.register_blueprint(manage_bp, url_prefix='/manage') app.register_blueprint(engine_bp, url_prefix='/engine') # Setup DB based on the app name mongo, db = HapPyMongo(config) custom_filters = { name: function for name, function in getmembers(template_filters) if isfunction(function) } app.jinja_env.filters.update(custom_filters) app.context_processor(context_functions.utility_processor) views.ProductsView.register(app) views.MiscView.register(app) @app.before_request def before_request(): g.db = db
import setup_application app, db = setup_application.create_app()
Move out app setup to setup file to finish cleaning up the init file
Move out app setup to setup file to finish cleaning up the init file
Python
apache-2.0
rackerlabs/pitchfork,oldarmyc/pitchfork,oldarmyc/pitchfork,rackerlabs/pitchfork,rackerlabs/pitchfork,oldarmyc/pitchfork
python
## Code Before: from flask import Flask, g from happymongo import HapPyMongo from config import config from adminbp import bp as admin_bp from manage_globals import bp as manage_bp from engine import bp as engine_bp from inspect import getmembers, isfunction import context_functions import views import template_filters app = Flask(__name__) app.config.from_object(config) app.register_blueprint(admin_bp, url_prefix='/admin') app.register_blueprint(manage_bp, url_prefix='/manage') app.register_blueprint(engine_bp, url_prefix='/engine') # Setup DB based on the app name mongo, db = HapPyMongo(config) custom_filters = { name: function for name, function in getmembers(template_filters) if isfunction(function) } app.jinja_env.filters.update(custom_filters) app.context_processor(context_functions.utility_processor) views.ProductsView.register(app) views.MiscView.register(app) @app.before_request def before_request(): g.db = db ## Instruction: Move out app setup to setup file to finish cleaning up the init file ## Code After: import setup_application app, db = setup_application.create_app()
+ import setup_application - from flask import Flask, g - from happymongo import HapPyMongo - from config import config - from adminbp import bp as admin_bp - from manage_globals import bp as manage_bp - from engine import bp as engine_bp - from inspect import getmembers, isfunction + app, db = setup_application.create_app() - import context_functions - import views - import template_filters - - - app = Flask(__name__) - app.config.from_object(config) - app.register_blueprint(admin_bp, url_prefix='/admin') - app.register_blueprint(manage_bp, url_prefix='/manage') - app.register_blueprint(engine_bp, url_prefix='/engine') - - # Setup DB based on the app name - mongo, db = HapPyMongo(config) - custom_filters = { - name: function for name, function in getmembers(template_filters) - if isfunction(function) - } - app.jinja_env.filters.update(custom_filters) - app.context_processor(context_functions.utility_processor) - - views.ProductsView.register(app) - views.MiscView.register(app) - - - @app.before_request - def before_request(): - g.db = db
36
0.972973
2
34
ca9a05b02fb8e9dbba27c6b3721636b3065837e2
app/jobs/admin_activity_notify_job.rb
app/jobs/admin_activity_notify_job.rb
class AdminActivityNotifyJob < ApplicationJob CHANNEL = if Rails.env.production? '#admin-activities'.freeze else '#sandbox'.freeze end queue_as :default def perform(user, text) Slack::Web::Client.new.chat_postMessage( channel: CHANNEL, text: text, username: user.member.name, ) end end
class AdminActivityNotifyJob < ApplicationJob CHANNEL = if Rails.env.production? '#notif-admin'.freeze else '#sandbox'.freeze end queue_as :default def perform(user, text) Slack::Web::Client.new.chat_postMessage( channel: CHANNEL, text: text, username: user.member.name, ) end end
Change channel name in AdminActivityNotifyJob
Change channel name in AdminActivityNotifyJob
Ruby
mit
sankichi92/LiveLog,sankichi92/LiveLog,sankichi92/LiveLog,sankichi92/LiveLog
ruby
## Code Before: class AdminActivityNotifyJob < ApplicationJob CHANNEL = if Rails.env.production? '#admin-activities'.freeze else '#sandbox'.freeze end queue_as :default def perform(user, text) Slack::Web::Client.new.chat_postMessage( channel: CHANNEL, text: text, username: user.member.name, ) end end ## Instruction: Change channel name in AdminActivityNotifyJob ## Code After: class AdminActivityNotifyJob < ApplicationJob CHANNEL = if Rails.env.production? '#notif-admin'.freeze else '#sandbox'.freeze end queue_as :default def perform(user, text) Slack::Web::Client.new.chat_postMessage( channel: CHANNEL, text: text, username: user.member.name, ) end end
class AdminActivityNotifyJob < ApplicationJob CHANNEL = if Rails.env.production? - '#admin-activities'.freeze ? ----------- + '#notif-admin'.freeze ? ++++++ else '#sandbox'.freeze end queue_as :default def perform(user, text) Slack::Web::Client.new.chat_postMessage( channel: CHANNEL, text: text, username: user.member.name, ) end end
2
0.117647
1
1
672867b109f65f57fe73f55f4a4f840b4e461544
features/pubkeys/show.feature
features/pubkeys/show.feature
Feature: Show public keys for a user Background: Given I load the policy: """ - !user id: alice public_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop """ Scenario: After adding a key, the key is shown When I run `conjur pubkeys show alice` And the output should match /^ssh-rsa .* laptop$/ Scenario: Public keys can be listed using cURL, without authentication When I successfully run `curl -k $conjur_url/public_keys/cucumber/user/alice` Then the output should match /^ssh-rsa .* laptop$/
Feature: Show public keys for a user Background: Given I load the policy: """ - !user id: alice public_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop """ Scenario: After adding a key, the key is shown When I run `conjur pubkeys show alice` And the output should match /^ssh-rsa .* laptop$/
Remove a feature that tests only the appliance
Remove a feature that tests only the appliance This feature doesn't test the CLI at all, but just the appliance. There are similar tests elsewhere already, where they belong.
Cucumber
mit
conjurinc/cli-ruby,conjurinc/cli-ruby
cucumber
## Code Before: Feature: Show public keys for a user Background: Given I load the policy: """ - !user id: alice public_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop """ Scenario: After adding a key, the key is shown When I run `conjur pubkeys show alice` And the output should match /^ssh-rsa .* laptop$/ Scenario: Public keys can be listed using cURL, without authentication When I successfully run `curl -k $conjur_url/public_keys/cucumber/user/alice` Then the output should match /^ssh-rsa .* laptop$/ ## Instruction: Remove a feature that tests only the appliance This feature doesn't test the CLI at all, but just the appliance. There are similar tests elsewhere already, where they belong. ## Code After: Feature: Show public keys for a user Background: Given I load the policy: """ - !user id: alice public_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop """ Scenario: After adding a key, the key is shown When I run `conjur pubkeys show alice` And the output should match /^ssh-rsa .* laptop$/
Feature: Show public keys for a user Background: Given I load the policy: """ - !user id: alice public_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop """ Scenario: After adding a key, the key is shown When I run `conjur pubkeys show alice` And the output should match /^ssh-rsa .* laptop$/ - - Scenario: Public keys can be listed using cURL, without authentication - When I successfully run `curl -k $conjur_url/public_keys/cucumber/user/alice` - Then the output should match /^ssh-rsa .* laptop$/
4
0.222222
0
4
50786f25f9f7629eb24407b9061a4ebb9b57ea57
app/views/accounts/_show.html.haml
app/views/accounts/_show.html.haml
.contextual = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings] = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings] = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings] = contextual_links_for = boot_page_title .tabbable %ul.nav.nav-tabs %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}} %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}} %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}} .tab-content #tab-bookings.tab-pane.active= render 'show_bookings' #tab-info.tab-pane= render "form" #tab-attachments.tab-pane= render 'show_attachments' = render 'bookings/sidebar'
.contextual = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings] = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings] = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings] = icon_link_to :print, :format => :pdf, :by_value_period => params[:by_value_period], :years => params[:years], :per_page => 10000 = contextual_links_for = boot_page_title .tabbable %ul.nav.nav-tabs %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}} %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}} %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}} .tab-content #tab-bookings.tab-pane.active= render 'show_bookings' #tab-info.tab-pane= render "form" #tab-attachments.tab-pane= render 'show_attachments' = render 'bookings/sidebar'
Add print/pdf link for accounts view.
Add print/pdf link for accounts view.
Haml
agpl-3.0
gaapt/bookyt,gaapt/bookyt,hauledev/bookyt,silvermind/bookyt,hauledev/bookyt,hauledev/bookyt,huerlisi/bookyt,gaapt/bookyt,hauledev/bookyt,huerlisi/bookyt,silvermind/bookyt,wtag/bookyt,silvermind/bookyt,silvermind/bookyt,xuewenfei/bookyt,huerlisi/bookyt,xuewenfei/bookyt,xuewenfei/bookyt,wtag/bookyt,wtag/bookyt,gaapt/bookyt
haml
## Code Before: .contextual = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings] = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings] = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings] = contextual_links_for = boot_page_title .tabbable %ul.nav.nav-tabs %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}} %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}} %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}} .tab-content #tab-bookings.tab-pane.active= render 'show_bookings' #tab-info.tab-pane= render "form" #tab-attachments.tab-pane= render 'show_attachments' = render 'bookings/sidebar' ## Instruction: Add print/pdf link for accounts view. ## Code After: .contextual = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings] = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings] = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings] = icon_link_to :print, :format => :pdf, :by_value_period => params[:by_value_period], :years => params[:years], :per_page => 10000 = contextual_links_for = boot_page_title .tabbable %ul.nav.nav-tabs %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}} %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}} %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}} .tab-content #tab-bookings.tab-pane.active= render 'show_bookings' #tab-info.tab-pane= render "form" #tab-attachments.tab-pane= render 'show_attachments' = render 'bookings/sidebar'
.contextual = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings] = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings] = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings] + = icon_link_to :print, :format => :pdf, :by_value_period => params[:by_value_period], :years => params[:years], :per_page => 10000 = contextual_links_for = boot_page_title .tabbable %ul.nav.nav-tabs %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}} %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}} %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}} .tab-content #tab-bookings.tab-pane.active= render 'show_bookings' #tab-info.tab-pane= render "form" #tab-attachments.tab-pane= render 'show_attachments' = render 'bookings/sidebar'
1
0.05
1
0
926ee23ef946dc2eba0cae5321601c5fadad9e5e
examples/faceted_lineplot.py
examples/faceted_lineplot.py
import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palette("rocket_r", 6))) # Set up the FacetGrid with independent x axes g = sns.FacetGrid(dots, col="align", sharex=False, size=5, aspect=.75) # Draw the lineplot on each facet g.map_dataframe(sns.lineplot, "time", "firing_rate", hue="coherence", size="choice", size_order=["T1", "T2"], palette=palette) g.add_legend()
import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palette("rocket_r", 6))) # Plot the lines on two facets sns.relplot(x="time", y="firing_rate", hue="coherence", size="choice", col="align", size_order=["T1", "T2"], palette=palette, height=5, aspect=.75, facet_kws=dict(sharex=False), kind="line", legend="full", data=dots)
Update dots lineplot example to use relplot
Update dots lineplot example to use relplot
Python
bsd-3-clause
sauliusl/seaborn,lukauskas/seaborn,petebachant/seaborn,phobson/seaborn,anntzer/seaborn,lukauskas/seaborn,mwaskom/seaborn,phobson/seaborn,arokem/seaborn,anntzer/seaborn,arokem/seaborn,mwaskom/seaborn
python
## Code Before: import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palette("rocket_r", 6))) # Set up the FacetGrid with independent x axes g = sns.FacetGrid(dots, col="align", sharex=False, size=5, aspect=.75) # Draw the lineplot on each facet g.map_dataframe(sns.lineplot, "time", "firing_rate", hue="coherence", size="choice", size_order=["T1", "T2"], palette=palette) g.add_legend() ## Instruction: Update dots lineplot example to use relplot ## Code After: import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palette("rocket_r", 6))) # Plot the lines on two facets sns.relplot(x="time", y="firing_rate", hue="coherence", size="choice", col="align", size_order=["T1", "T2"], palette=palette, height=5, aspect=.75, facet_kws=dict(sharex=False), kind="line", legend="full", data=dots)
import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palette("rocket_r", 6))) + # Plot the lines on two facets + sns.relplot(x="time", y="firing_rate", - # Set up the FacetGrid with independent x axes - g = sns.FacetGrid(dots, col="align", - sharex=False, size=5, aspect=.75) - - # Draw the lineplot on each facet - g.map_dataframe(sns.lineplot, "time", "firing_rate", - hue="coherence", size="choice", ? ---- + hue="coherence", size="choice", col="align", ? +++++++++++++ - size_order=["T1", "T2"], ? ---- + size_order=["T1", "T2"], palette=palette, ? +++++++++++++++++ - palette=palette) - g.add_legend() + height=5, aspect=.75, facet_kws=dict(sharex=False), + kind="line", legend="full", data=dots)
16
0.8
6
10
3c26d7e13f1db906a9a4cfcaac31dc4228ef95b5
lib/mercenary.rb
lib/mercenary.rb
lib = File.expand_path('../', __FILE__) require "#{lib}/mercenary/version" require "optparse" require "logger" module Mercenary autoload :Command, "#{lib}/mercenary/command" autoload :Option, "#{lib}/mercenary/option" autoload :Presenter, "#{lib}/mercenary/presenter" autoload :Program, "#{lib}/mercenary/program" # Public: Instantiate a new program and execute. # # name - the name of your program # # Returns nothing. def self.program(name) program = Program.new(name) yield program program.go(ARGV) end end
require File.expand_path("../mercenary/version", __FILE__) require "optparse" require "logger" module Mercenary autoload :Command, File.expand_path("../mercenary/command", __FILE__) autoload :Option, File.expand_path("../mercenary/option", __FILE__) autoload :Presenter, File.expand_path("../mercenary/presenter", __FILE__) autoload :Program, File.expand_path("../mercenary/program", __FILE__) # Public: Instantiate a new program and execute. # # name - the name of your program # # Returns nothing. def self.program(name) program = Program.new(name) yield program program.go(ARGV) end end
Use File.expand_path to build paths.
Use File.expand_path to build paths.
Ruby
mit
jekyll/mercenary,jekyll/mercenary
ruby
## Code Before: lib = File.expand_path('../', __FILE__) require "#{lib}/mercenary/version" require "optparse" require "logger" module Mercenary autoload :Command, "#{lib}/mercenary/command" autoload :Option, "#{lib}/mercenary/option" autoload :Presenter, "#{lib}/mercenary/presenter" autoload :Program, "#{lib}/mercenary/program" # Public: Instantiate a new program and execute. # # name - the name of your program # # Returns nothing. def self.program(name) program = Program.new(name) yield program program.go(ARGV) end end ## Instruction: Use File.expand_path to build paths. ## Code After: require File.expand_path("../mercenary/version", __FILE__) require "optparse" require "logger" module Mercenary autoload :Command, File.expand_path("../mercenary/command", __FILE__) autoload :Option, File.expand_path("../mercenary/option", __FILE__) autoload :Presenter, File.expand_path("../mercenary/presenter", __FILE__) autoload :Program, File.expand_path("../mercenary/program", __FILE__) # Public: Instantiate a new program and execute. # # name - the name of your program # # Returns nothing. def self.program(name) program = Program.new(name) yield program program.go(ARGV) end end
+ require File.expand_path("../mercenary/version", __FILE__) - lib = File.expand_path('../', __FILE__) - - require "#{lib}/mercenary/version" require "optparse" require "logger" module Mercenary - autoload :Command, "#{lib}/mercenary/command" - autoload :Option, "#{lib}/mercenary/option" - autoload :Presenter, "#{lib}/mercenary/presenter" - autoload :Program, "#{lib}/mercenary/program" + autoload :Command, File.expand_path("../mercenary/command", __FILE__) + autoload :Option, File.expand_path("../mercenary/option", __FILE__) + autoload :Presenter, File.expand_path("../mercenary/presenter", __FILE__) + autoload :Program, File.expand_path("../mercenary/program", __FILE__) # Public: Instantiate a new program and execute. # # name - the name of your program # # Returns nothing. def self.program(name) program = Program.new(name) yield program program.go(ARGV) end end
12
0.521739
5
7
177c5da3cfb8a27f601ac03b6995fa93ca454306
README.md
README.md
[![Build Status](https://travis-ci.org/CocoaPods/cocoapods-packager.png?branch=master)](https://travis-ci.org/CocoaPods/cocoapods-packager) CocoaPods plugin which allows you to generate a static library from a podspec. ## Usage ```bash $ pod package KFData ```
[![Build Status](https://travis-ci.org/CocoaPods/cocoapods-packager.png?branch=master)](https://travis-ci.org/CocoaPods/cocoapods-packager) :warning::warning: This isn't ready for consumption just yet, follow [this issue](https://github.com/CocoaPods/cocoapods-packager/issues/1) to keep an eye on the status. :warning::warning: CocoaPods plugin which allows you to generate a static library from a podspec. This is useful for distributing your podspec as a static library. ## Usage ```bash $ pod package KFData ```
Improve the readme to mark it isn't ready.
Improve the readme to mark it isn't ready. Fixes https://github.com/kylef/life/issues/2
Markdown
mit
danielribeiro/cocoapods-packager,ArthurKK/cocoapods-packager,dnkoutso/cocoapods-packager,ArthurKK/cocoapods-packager,jtreanor/cocoapods-packager,danielribeiro/cocoapods-packager,dnkoutso/cocoapods-packager,jtreanor/cocoapods-packager
markdown
## Code Before: [![Build Status](https://travis-ci.org/CocoaPods/cocoapods-packager.png?branch=master)](https://travis-ci.org/CocoaPods/cocoapods-packager) CocoaPods plugin which allows you to generate a static library from a podspec. ## Usage ```bash $ pod package KFData ``` ## Instruction: Improve the readme to mark it isn't ready. Fixes https://github.com/kylef/life/issues/2 ## Code After: [![Build Status](https://travis-ci.org/CocoaPods/cocoapods-packager.png?branch=master)](https://travis-ci.org/CocoaPods/cocoapods-packager) :warning::warning: This isn't ready for consumption just yet, follow [this issue](https://github.com/CocoaPods/cocoapods-packager/issues/1) to keep an eye on the status. :warning::warning: CocoaPods plugin which allows you to generate a static library from a podspec. This is useful for distributing your podspec as a static library. ## Usage ```bash $ pod package KFData ```
[![Build Status](https://travis-ci.org/CocoaPods/cocoapods-packager.png?branch=master)](https://travis-ci.org/CocoaPods/cocoapods-packager) + :warning::warning: This isn't ready for consumption just yet, follow [this + issue](https://github.com/CocoaPods/cocoapods-packager/issues/1) to keep an + eye on the status. :warning::warning: + CocoaPods plugin which allows you to generate a static library from a podspec. + This is useful for distributing your podspec as a static library. ## Usage ```bash $ pod package KFData ```
5
0.454545
5
0
b7d66827c703e2f437ddbb81f090a6c01d9349b3
lib/file.js
lib/file.js
var path = require('path') , fs = require('fs') , clone = require('clone') , data = require('./data') , getset = require('deep-get-set') , DeepMerge = require('deep-merge') , merge = DeepMerge(function(a, b) { return b }); getset.p = true; function File(path) { this._path = path; this._obj = {}; } File.prototype.open = function() { if (fs.existsSync(this._path)) { var text = fs.readFileSync(this._path, 'utf8') , format = data.createFormat(path.extname(this._path)); this._obj = format.parse(text); } } File.prototype.get = function(path) { path = path.replace(/\//g, '.'); return clone(getset(this._obj, path)); } File.prototype.toObject = function() { return clone(this._obj); } module.exports = File;
var path = require('path') , fs = require('fs') , clone = require('clone') , getset = require('deep-get-set') , data = require('./data'); getset.p = true; function File(path) { this._path = path; this._obj = {}; } File.prototype.open = function() { if (fs.existsSync(this._path)) { var text = fs.readFileSync(this._path, 'utf8') , format = data.createFormat(path.extname(this._path)); this._obj = format.parse(text); } } File.prototype.get = function(path) { path = path.replace(/\//g, '.'); return clone(getset(this._obj, path)); } File.prototype.toObject = function() { return clone(this._obj); } module.exports = File;
Remove unused deep-merge dependency from File.
Remove unused deep-merge dependency from File.
JavaScript
mit
jaredhanson/node-decisions
javascript
## Code Before: var path = require('path') , fs = require('fs') , clone = require('clone') , data = require('./data') , getset = require('deep-get-set') , DeepMerge = require('deep-merge') , merge = DeepMerge(function(a, b) { return b }); getset.p = true; function File(path) { this._path = path; this._obj = {}; } File.prototype.open = function() { if (fs.existsSync(this._path)) { var text = fs.readFileSync(this._path, 'utf8') , format = data.createFormat(path.extname(this._path)); this._obj = format.parse(text); } } File.prototype.get = function(path) { path = path.replace(/\//g, '.'); return clone(getset(this._obj, path)); } File.prototype.toObject = function() { return clone(this._obj); } module.exports = File; ## Instruction: Remove unused deep-merge dependency from File. ## Code After: var path = require('path') , fs = require('fs') , clone = require('clone') , getset = require('deep-get-set') , data = require('./data'); getset.p = true; function File(path) { this._path = path; this._obj = {}; } File.prototype.open = function() { if (fs.existsSync(this._path)) { var text = fs.readFileSync(this._path, 'utf8') , format = data.createFormat(path.extname(this._path)); this._obj = format.parse(text); } } File.prototype.get = function(path) { path = path.replace(/\//g, '.'); return clone(getset(this._obj, path)); } File.prototype.toObject = function() { return clone(this._obj); } module.exports = File;
var path = require('path') , fs = require('fs') , clone = require('clone') - , data = require('./data') , getset = require('deep-get-set') + , data = require('./data'); - , DeepMerge = require('deep-merge') - , merge = DeepMerge(function(a, b) { - return b - }); getset.p = true; function File(path) { this._path = path; this._obj = {}; } File.prototype.open = function() { if (fs.existsSync(this._path)) { var text = fs.readFileSync(this._path, 'utf8') , format = data.createFormat(path.extname(this._path)); this._obj = format.parse(text); } } File.prototype.get = function(path) { path = path.replace(/\//g, '.'); return clone(getset(this._obj, path)); } File.prototype.toObject = function() { return clone(this._obj); } module.exports = File;
6
0.157895
1
5
edfd216f0567c327405659c6d90763550778cf57
.travis.yml
.travis.yml
sudo: false language: python python: - "3.2" - "3.3" - "3.4" - "3.5" # Install dependencies install: - pip install Cython - make - pip install -e . - pip install pytest # Run tests script: py.test
sudo: false language: python python: - '3.2' - '3.3' - '3.4' - '3.5' install: - pip install Cython - make - pip install -e . - pip install pytest script: py.test notifications: email: false slack: rooms: secure: rxQsNRK9XBkBV0pdYuJG+tsN2tky+JUEF5ayDIUAzSaPeB//VVNNofJhcmfNgG1WiEEi6fe0dR/Y6UDsoVyQrbCHO2q2bIVQp6A/63vgz3DcVQzMahB/QVwte7gy02nLf6rS2g3VetVXrTW6OO4Cv7NQrQb58biVFx/yBtQ3qzI= on_success: never on_failure: always
Add Slack notifications to Travis
Add Slack notifications to Travis
YAML
mit
wmayner/pyemd,wmayner/pyemd
yaml
## Code Before: sudo: false language: python python: - "3.2" - "3.3" - "3.4" - "3.5" # Install dependencies install: - pip install Cython - make - pip install -e . - pip install pytest # Run tests script: py.test ## Instruction: Add Slack notifications to Travis ## Code After: sudo: false language: python python: - '3.2' - '3.3' - '3.4' - '3.5' install: - pip install Cython - make - pip install -e . - pip install pytest script: py.test notifications: email: false slack: rooms: secure: rxQsNRK9XBkBV0pdYuJG+tsN2tky+JUEF5ayDIUAzSaPeB//VVNNofJhcmfNgG1WiEEi6fe0dR/Y6UDsoVyQrbCHO2q2bIVQp6A/63vgz3DcVQzMahB/QVwte7gy02nLf6rS2g3VetVXrTW6OO4Cv7NQrQb58biVFx/yBtQ3qzI= on_success: never on_failure: always
sudo: false language: python python: + - '3.2' + - '3.3' + - '3.4' + - '3.5' - - "3.2" - - "3.3" - - "3.4" - - "3.5" - # Install dependencies - install: ? - + install: - - pip install Cython ? -- + - pip install Cython - - make ? -- + - make - - pip install -e . ? -- + - pip install -e . - - pip install pytest ? -- + - pip install pytest - # Run tests script: py.test + notifications: + email: false + slack: + rooms: + secure: rxQsNRK9XBkBV0pdYuJG+tsN2tky+JUEF5ayDIUAzSaPeB//VVNNofJhcmfNgG1WiEEi6fe0dR/Y6UDsoVyQrbCHO2q2bIVQp6A/63vgz3DcVQzMahB/QVwte7gy02nLf6rS2g3VetVXrTW6OO4Cv7NQrQb58biVFx/yBtQ3qzI= + on_success: never + on_failure: always
27
1.8
16
11
b22cd4afc0859e7200730f641931420f75b4262e
update-translations.sh
update-translations.sh
CKAN_INSTALL_DIR=../ckan python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot for LANG in fr es ca it bg tr do if [ -e ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po ] then python setup.py update_catalog -l $LANG -i ../ckan/ckan/i18n/ckanext.pot -o ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po else python setup.py init_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po fi test -d $CKAN_INSTALL_DIR && msgcat --use-first \ "ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po" \ "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.po" \ | msgfmt - -o "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.mo" done
CKAN_INSTALL_DIR=../ckan/ python setup.py extract_messages --mapping-file babel.cfg --output i18n/ckanext.pot for LANG in fr es ca it bg tr do if [ -e i18n/$LANG/LC_MESSAGES/ckanext.po ] then python setup.py update_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po else python setup.py init_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po fi test -d $CKAN_INSTALL_DIR && msgcat --use-first \ "i18n/$LANG/LC_MESSAGES/ckanext.po" \ "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.po" \ | msgfmt - -o "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.mo" done
Revert modifications in translations script
Revert modifications in translations script
Shell
agpl-3.0
ozwillo/ckanext-ozwillo-theme,ozwillo/ckanext-ozwillo-theme,ozwillo/ckanext-ozwillo-theme,ozwillo/ckanext-ozwillo-theme
shell
## Code Before: CKAN_INSTALL_DIR=../ckan python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot for LANG in fr es ca it bg tr do if [ -e ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po ] then python setup.py update_catalog -l $LANG -i ../ckan/ckan/i18n/ckanext.pot -o ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po else python setup.py init_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po fi test -d $CKAN_INSTALL_DIR && msgcat --use-first \ "ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po" \ "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.po" \ | msgfmt - -o "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.mo" done ## Instruction: Revert modifications in translations script ## Code After: CKAN_INSTALL_DIR=../ckan/ python setup.py extract_messages --mapping-file babel.cfg --output i18n/ckanext.pot for LANG in fr es ca it bg tr do if [ -e i18n/$LANG/LC_MESSAGES/ckanext.po ] then python setup.py update_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po else python setup.py init_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po fi test -d $CKAN_INSTALL_DIR && msgcat --use-first \ "i18n/$LANG/LC_MESSAGES/ckanext.po" \ "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.po" \ | msgfmt - -o "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.mo" done
- CKAN_INSTALL_DIR=../ckan + CKAN_INSTALL_DIR=../ckan/ ? + - python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot ? ------------- + python setup.py extract_messages --mapping-file babel.cfg --output i18n/ckanext.pot for LANG in fr es ca it bg tr do - if [ -e ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po ] + if [ -e i18n/$LANG/LC_MESSAGES/ckanext.po ] then - python setup.py update_catalog -l $LANG -i ../ckan/ckan/i18n/ckanext.pot -o ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po ? ------------- ---------------------- -------------- + python setup.py update_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po else python setup.py init_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po fi test -d $CKAN_INSTALL_DIR && msgcat --use-first \ - "ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po" \ + "i18n/$LANG/LC_MESSAGES/ckanext.po" \ "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.po" \ | msgfmt - -o "$CKAN_INSTALL_DIR/ckan/i18n/$LANG/LC_MESSAGES/ckan.mo" done
10
0.526316
5
5
ad349fd828eedb842b7556ec629d1b36aa43c890
app/views/links/_header.html.slim
app/views/links/_header.html.slim
nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController" .container .navbar-header button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button" span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand href="#" I want to learn: #bs-example-navbar-collapse-1.collapse.navbar-collapse form.navbar-form.navbar-left role="form" ng-submit='submit()' action="#" .input-group.input-group-lg input.form-control.tags(type="text" spellcheck="false" autofocus ng-model='fieldValue' typeahead-editable='false' typeahead="subject as subject.name for subject in subjects | filter:$viewValue | limitTo:8") span.input-group-btn button.btn.btn-primary.btn-lg.btn-block type="button" ng-disabled="fieldValue == null || fieldValue.length == 0" ng-click="submit()" Go! .nav.navbar-nav.navbar-right data-target="#myModal" data-toggle="modal" button.btn.btn-primary.btn-lg.pull-right.btn-top type="button" Log in
nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController" .container .navbar-header button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button" span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand href="#" I want to learn: #bs-example-navbar-collapse-1.collapse.navbar-collapse form.navbar-form.navbar-left role="form" ng-submit='submit()' action="#" .input-group.input-group-lg input.form-control.tags(type="text" spellcheck="false" autofocus ng-model='fieldValue' placeholder="#{@subject.name}" typeahead-editable='false' typeahead="subject as subject.name for subject in subjects | filter:$viewValue | limitTo:8") span.input-group-btn button.btn.btn-primary.btn-lg.btn-block type="button" ng-disabled="fieldValue == null || fieldValue.length == 0" ng-click="submit()" Go! .nav.navbar-nav.navbar-right data-target="#myModal" data-toggle="modal" button.btn.btn-primary.btn-lg.pull-right.btn-top type="button" Log in
Add placeholder with current subject to header
Add placeholder with current subject to header
Slim
mit
amberbit/programming-resources
slim
## Code Before: nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController" .container .navbar-header button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button" span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand href="#" I want to learn: #bs-example-navbar-collapse-1.collapse.navbar-collapse form.navbar-form.navbar-left role="form" ng-submit='submit()' action="#" .input-group.input-group-lg input.form-control.tags(type="text" spellcheck="false" autofocus ng-model='fieldValue' typeahead-editable='false' typeahead="subject as subject.name for subject in subjects | filter:$viewValue | limitTo:8") span.input-group-btn button.btn.btn-primary.btn-lg.btn-block type="button" ng-disabled="fieldValue == null || fieldValue.length == 0" ng-click="submit()" Go! .nav.navbar-nav.navbar-right data-target="#myModal" data-toggle="modal" button.btn.btn-primary.btn-lg.pull-right.btn-top type="button" Log in ## Instruction: Add placeholder with current subject to header ## Code After: nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController" .container .navbar-header button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button" span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand href="#" I want to learn: #bs-example-navbar-collapse-1.collapse.navbar-collapse form.navbar-form.navbar-left role="form" ng-submit='submit()' action="#" .input-group.input-group-lg input.form-control.tags(type="text" spellcheck="false" autofocus ng-model='fieldValue' placeholder="#{@subject.name}" typeahead-editable='false' typeahead="subject as subject.name for subject in subjects | filter:$viewValue | limitTo:8") span.input-group-btn button.btn.btn-primary.btn-lg.btn-block type="button" ng-disabled="fieldValue == null || fieldValue.length == 0" ng-click="submit()" Go! .nav.navbar-nav.navbar-right data-target="#myModal" data-toggle="modal" button.btn.btn-primary.btn-lg.pull-right.btn-top type="button" Log in
nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController" .container .navbar-header button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button" span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand href="#" I want to learn: #bs-example-navbar-collapse-1.collapse.navbar-collapse form.navbar-form.navbar-left role="form" ng-submit='submit()' action="#" .input-group.input-group-lg - input.form-control.tags(type="text" spellcheck="false" autofocus ng-model='fieldValue' typeahead-editable='false' typeahead="subject as subject.name for subject in subjects | filter:$viewValue | limitTo:8") + input.form-control.tags(type="text" spellcheck="false" autofocus ng-model='fieldValue' placeholder="#{@subject.name}" typeahead-editable='false' typeahead="subject as subject.name for subject in subjects | filter:$viewValue | limitTo:8") ? ++++++++++++++++++++++++++++++++ span.input-group-btn button.btn.btn-primary.btn-lg.btn-block type="button" ng-disabled="fieldValue == null || fieldValue.length == 0" ng-click="submit()" Go! .nav.navbar-nav.navbar-right data-target="#myModal" data-toggle="modal" button.btn.btn-primary.btn-lg.pull-right.btn-top type="button" Log in
2
0.117647
1
1
1faf8c4861acf752cae7e72f8f55a0ac173d2aa2
tests/Functions/PolynomialTest.php
tests/Functions/PolynomialTest.php
<?php namespace Math\Functions; class PolynomialTest extends \PHPUnit_Framework_TestCase { public function testString() { // p(x) = x² + 2x + 3 $polynomial = new Polynomial([1, 2, 3]); $expected = " x² + 2x + 3"; $actual = strval($polynomial); $this->assertEquals($expected, $actual); } public function testEval() { // p(x) = x² + 2x + 3 // p(0) = 3 $polynomial = new Polynomial([1, 2, 3]); $expected = 3; $actual = $polynomial(0); $this->assertEquals($expected, $actual); } }
<?php namespace Math\Functions; class PolynomialTest extends \PHPUnit_Framework_TestCase { public function testString() { // p(x) = x² + 2x + 3 $polynomial = new Polynomial([1, 2, 3]); $expected = " x² + 2x + 3"; $actual = strval($polynomial); $this->assertEquals($expected, $actual); } /** * @dataProvider dataProviderForEval */ public function testEval(array $coefficients, $x, $expected) { $polynomial = new Polynomial($coefficients); $evaluated = $polynomial($x); $this->assertEquals($expected, $evaluated); } public function dataProviderForEval() { return [ [ [1, 2, 3], // p(x) = x² + 2x + 3 0, 3 // p(0) = 3 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 1, 6 // p(1) = 6 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 2, 11 // p(2) = 11 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 3, 18 // p(3) = 18 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 4, 27 // p(4) = 27 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 -1, 2 // p(-1) = 2 ], ]; } }
Refactor Polynomial unit test and add more test cases.
Refactor Polynomial unit test and add more test cases.
PHP
mit
Beakerboy/math-php,markrogoyski/math-php
php
## Code Before: <?php namespace Math\Functions; class PolynomialTest extends \PHPUnit_Framework_TestCase { public function testString() { // p(x) = x² + 2x + 3 $polynomial = new Polynomial([1, 2, 3]); $expected = " x² + 2x + 3"; $actual = strval($polynomial); $this->assertEquals($expected, $actual); } public function testEval() { // p(x) = x² + 2x + 3 // p(0) = 3 $polynomial = new Polynomial([1, 2, 3]); $expected = 3; $actual = $polynomial(0); $this->assertEquals($expected, $actual); } } ## Instruction: Refactor Polynomial unit test and add more test cases. ## Code After: <?php namespace Math\Functions; class PolynomialTest extends \PHPUnit_Framework_TestCase { public function testString() { // p(x) = x² + 2x + 3 $polynomial = new Polynomial([1, 2, 3]); $expected = " x² + 2x + 3"; $actual = strval($polynomial); $this->assertEquals($expected, $actual); } /** * @dataProvider dataProviderForEval */ public function testEval(array $coefficients, $x, $expected) { $polynomial = new Polynomial($coefficients); $evaluated = $polynomial($x); $this->assertEquals($expected, $evaluated); } public function dataProviderForEval() { return [ [ [1, 2, 3], // p(x) = x² + 2x + 3 0, 3 // p(0) = 3 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 1, 6 // p(1) = 6 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 2, 11 // p(2) = 11 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 3, 18 // p(3) = 18 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 4, 27 // p(4) = 27 ], [ [1, 2, 3], // p(x) = x² + 2x + 3 -1, 2 // p(-1) = 2 ], ]; } }
<?php namespace Math\Functions; class PolynomialTest extends \PHPUnit_Framework_TestCase { public function testString() { // p(x) = x² + 2x + 3 $polynomial = new Polynomial([1, 2, 3]); $expected = " x² + 2x + 3"; $actual = strval($polynomial); $this->assertEquals($expected, $actual); } - public function testEval() + /** + * @dataProvider dataProviderForEval + */ + public function testEval(array $coefficients, $x, $expected) { - // p(x) = x² + 2x + 3 - // p(0) = 3 + $polynomial = new Polynomial($coefficients); + $evaluated = $polynomial($x); + $this->assertEquals($expected, $evaluated); + } - $polynomial = new Polynomial([1, 2, 3]); - $expected = 3; - $actual = $polynomial(0); - $this->assertEquals($expected, $actual); + public function dataProviderForEval() + { + return [ + [ + [1, 2, 3], // p(x) = x² + 2x + 3 + 0, 3 // p(0) = 3 + ], + [ + [1, 2, 3], // p(x) = x² + 2x + 3 + 1, 6 // p(1) = 6 + ], + [ + [1, 2, 3], // p(x) = x² + 2x + 3 + 2, 11 // p(2) = 11 + ], + [ + [1, 2, 3], // p(x) = x² + 2x + 3 + 3, 18 // p(3) = 18 + ], + [ + [1, 2, 3], // p(x) = x² + 2x + 3 + 4, 27 // p(4) = 27 + ], + [ + [1, 2, 3], // p(x) = x² + 2x + 3 + -1, 2 // p(-1) = 2 + ], + ]; } }
43
1.592593
36
7
032bb2005be2ed4e0b20f15a22e3616b4098f2c1
src/Element.php
src/Element.php
<?php namespace duncan3dc\DomParser; trait Element { public function __get($key) { $value = $this->dom->$key; switch ($key) { case "parentNode": return $this->newElement($value); case "nodeValue": return trim($value); } return $value; } public function nodeValue($value) { $this->dom->nodeValue = ""; $node = $this->dom->ownerDocument->createTextNode($value); $this->dom->appendChild($node); } public function getAttribute($name) { return $this->dom->getAttribute($name); } public function setAttribute($name, $value) { return $this->dom->setAttribute($name, $value); } public function getAttributes() { $attributes = []; foreach ($this->dom->attributes as $attr) { $attributes[$attr->name] = $attr->value; } return $attributes; } }
<?php namespace duncan3dc\DomParser; trait Element { public function __toString() { return $this->nodeValue; } public function __get($key) { $value = $this->dom->$key; switch ($key) { case "parentNode": return $this->newElement($value); case "nodeValue": return trim($value); } return $value; } public function nodeValue($value) { $this->dom->nodeValue = ""; $node = $this->dom->ownerDocument->createTextNode($value); $this->dom->appendChild($node); } public function getAttribute($name) { return $this->dom->getAttribute($name); } public function setAttribute($name, $value) { return $this->dom->setAttribute($name, $value); } public function getAttributes() { $attributes = []; foreach ($this->dom->attributes as $attr) { $attributes[$attr->name] = $attr->value; } return $attributes; } }
Allow elements to be cast to strings
Allow elements to be cast to strings This returns their nodeValue, and is useful to avoid checking that an element exists before attempting to get it's nodeValue
PHP
apache-2.0
duncan3dc/domparser,duncan3dc/domparser
php
## Code Before: <?php namespace duncan3dc\DomParser; trait Element { public function __get($key) { $value = $this->dom->$key; switch ($key) { case "parentNode": return $this->newElement($value); case "nodeValue": return trim($value); } return $value; } public function nodeValue($value) { $this->dom->nodeValue = ""; $node = $this->dom->ownerDocument->createTextNode($value); $this->dom->appendChild($node); } public function getAttribute($name) { return $this->dom->getAttribute($name); } public function setAttribute($name, $value) { return $this->dom->setAttribute($name, $value); } public function getAttributes() { $attributes = []; foreach ($this->dom->attributes as $attr) { $attributes[$attr->name] = $attr->value; } return $attributes; } } ## Instruction: Allow elements to be cast to strings This returns their nodeValue, and is useful to avoid checking that an element exists before attempting to get it's nodeValue ## Code After: <?php namespace duncan3dc\DomParser; trait Element { public function __toString() { return $this->nodeValue; } public function __get($key) { $value = $this->dom->$key; switch ($key) { case "parentNode": return $this->newElement($value); case "nodeValue": return trim($value); } return $value; } public function nodeValue($value) { $this->dom->nodeValue = ""; $node = $this->dom->ownerDocument->createTextNode($value); $this->dom->appendChild($node); } public function getAttribute($name) { return $this->dom->getAttribute($name); } public function setAttribute($name, $value) { return $this->dom->setAttribute($name, $value); } public function getAttributes() { $attributes = []; foreach ($this->dom->attributes as $attr) { $attributes[$attr->name] = $attr->value; } return $attributes; } }
<?php namespace duncan3dc\DomParser; trait Element { + public function __toString() + { + return $this->nodeValue; + } + + public function __get($key) { $value = $this->dom->$key; switch ($key) { case "parentNode": return $this->newElement($value); case "nodeValue": return trim($value); } return $value; } public function nodeValue($value) { $this->dom->nodeValue = ""; $node = $this->dom->ownerDocument->createTextNode($value); $this->dom->appendChild($node); } public function getAttribute($name) { return $this->dom->getAttribute($name); } public function setAttribute($name, $value) { return $this->dom->setAttribute($name, $value); } public function getAttributes() { $attributes = []; foreach ($this->dom->attributes as $attr) { $attributes[$attr->name] = $attr->value; } return $attributes; } }
6
0.111111
6
0
f6808e74d831698e5203bfcd49dfe7dd39861a47
roles/init-env/tasks/main.yml
roles/init-env/tasks/main.yml
--- # roles/initialize/tasks/main.yml - name: Create group_vars directory. local_action: file path=group_vars state=directory mode=0755 - name: Create host_vars directory. local_action: file path=host_vars state=directory mode=0755 - name: Create the main variables file. local_action: template src=all.yml.j2 dest=group_vars/all.yml
--- # roles/initialize/tasks/main.yml - name: Create group_vars directory. local_action: file path=group_vars state=directory mode=0755 - name: Create host_vars directory. local_action: file path=host_vars state=directory mode=0755 - name: Create the main variables file (group_vars/all.yml). local_action: template src=all.yml.j2 dest=group_vars/all.yml
Use a slightly more explicit task name
Use a slightly more explicit task name Signed-off-by: KheOps <ab12fa204a2b42f5d8c4f486abafbac2ef71cf44@ceops.eu>
YAML
agpl-3.0
equalitie/eqpress,equalitie/eqpress,equalitie/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,equalitie/eqpress,equalitie/eqpress
yaml
## Code Before: --- # roles/initialize/tasks/main.yml - name: Create group_vars directory. local_action: file path=group_vars state=directory mode=0755 - name: Create host_vars directory. local_action: file path=host_vars state=directory mode=0755 - name: Create the main variables file. local_action: template src=all.yml.j2 dest=group_vars/all.yml ## Instruction: Use a slightly more explicit task name Signed-off-by: KheOps <ab12fa204a2b42f5d8c4f486abafbac2ef71cf44@ceops.eu> ## Code After: --- # roles/initialize/tasks/main.yml - name: Create group_vars directory. local_action: file path=group_vars state=directory mode=0755 - name: Create host_vars directory. local_action: file path=host_vars state=directory mode=0755 - name: Create the main variables file (group_vars/all.yml). local_action: template src=all.yml.j2 dest=group_vars/all.yml
--- # roles/initialize/tasks/main.yml - name: Create group_vars directory. local_action: file path=group_vars state=directory mode=0755 - name: Create host_vars directory. local_action: file path=host_vars state=directory mode=0755 - - name: Create the main variables file. + - name: Create the main variables file (group_vars/all.yml). ? ++++++++++++++++ +++++ local_action: template src=all.yml.j2 dest=group_vars/all.yml
2
0.166667
1
1
b2874dd95bb4810cb47e65eb3cb86651afbad40c
test/controllers/diaries_controller_test.rb
test/controllers/diaries_controller_test.rb
require 'test_helper' class DiariesControllerTest < ActionController::TestCase def setup @user = users(:joe) @other_user = users(:user_1) end test 'should redirect get new when not logged in' do get :new, user_id: @user assert_redirected_to login_url end test 'should redirect edit when not logged in' do # get :edit, user_id: @user # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect update when not logged in' do # patch :update, id: @user, user: { name: @user.name, email: @user.email } # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect edit when logged in as wrong user' do # log_in_as(@other_user) # get :edit, id: @user # assert flash.empty? # assert_redirected_to root_url end end
require 'test_helper' class DiariesControllerTest < ActionController::TestCase def setup @user = users(:joe) @other_user = users(:user_1) end test 'should redirect get index when not logged in' do get :index, user_id: @user assert_redirected_to login_url end test 'should redirect get new when not logged in' do get :new, user_id: @user assert_redirected_to login_url end test 'should redirect edit when not logged in' do # get :edit, user_id: @user # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect update when not logged in' do # patch :update, id: @user, user: { name: @user.name, email: @user.email } # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect edit when logged in as wrong user' do # log_in_as(@other_user) # get :edit, id: @user # assert flash.empty? # assert_redirected_to root_url end end
Add test for diary index
Add test for diary index
Ruby
mit
MasterRoot24/cloudiary,MasterRoot24/cloudiary,MasterRoot24/cloudiary
ruby
## Code Before: require 'test_helper' class DiariesControllerTest < ActionController::TestCase def setup @user = users(:joe) @other_user = users(:user_1) end test 'should redirect get new when not logged in' do get :new, user_id: @user assert_redirected_to login_url end test 'should redirect edit when not logged in' do # get :edit, user_id: @user # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect update when not logged in' do # patch :update, id: @user, user: { name: @user.name, email: @user.email } # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect edit when logged in as wrong user' do # log_in_as(@other_user) # get :edit, id: @user # assert flash.empty? # assert_redirected_to root_url end end ## Instruction: Add test for diary index ## Code After: require 'test_helper' class DiariesControllerTest < ActionController::TestCase def setup @user = users(:joe) @other_user = users(:user_1) end test 'should redirect get index when not logged in' do get :index, user_id: @user assert_redirected_to login_url end test 'should redirect get new when not logged in' do get :new, user_id: @user assert_redirected_to login_url end test 'should redirect edit when not logged in' do # get :edit, user_id: @user # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect update when not logged in' do # patch :update, id: @user, user: { name: @user.name, email: @user.email } # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect edit when logged in as wrong user' do # log_in_as(@other_user) # get :edit, id: @user # assert flash.empty? # assert_redirected_to root_url end end
require 'test_helper' class DiariesControllerTest < ActionController::TestCase def setup @user = users(:joe) @other_user = users(:user_1) + end + + test 'should redirect get index when not logged in' do + get :index, user_id: @user + assert_redirected_to login_url end test 'should redirect get new when not logged in' do get :new, user_id: @user assert_redirected_to login_url end test 'should redirect edit when not logged in' do # get :edit, user_id: @user # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect update when not logged in' do # patch :update, id: @user, user: { name: @user.name, email: @user.email } # assert_not flash.empty? # assert_redirected_to login_url end test 'should redirect edit when logged in as wrong user' do # log_in_as(@other_user) # get :edit, id: @user # assert flash.empty? # assert_redirected_to root_url end end
5
0.15625
5
0
ae648bd5dc552acb9d8ce64387e81b0743922dd4
README.md
README.md
object-utils ============ [![Build Status](https://travis-ci.org/ultraq/object-utils.svg?branch=master)](https://travis-ci.org/ultraq/object-utils) [![npm](https://img.shields.io/npm/v/@ultraq/object-utils.svg?maxAge=3600)](https://www.npmjs.com/package/@ultraq/object-utils) [![License](https://img.shields.io/github/license/ultraq/object-utils.svg?maxAge=2592000)](https://github.com/ultraq/object-utils/blob/master/LICENSE.txt) A collection of utilities for JavaScript objects. Installation ------------ Via npm: ``` npm install @ultraq/object-utils --save ``` Via bower: ``` bower install https://github.com/ultraq/object-utils.git --save ``` API --- ### merge(target, ...sources) Deep-merges all of the properties of the objects in `sources` with `target`, modifying the target object and returning it. - **target**: object to merge values into - **sources**: array of argument list of objects to copy values from
object-utils ============ [![Build Status](https://travis-ci.org/ultraq/object-utils.svg?branch=master)](https://travis-ci.org/ultraq/object-utils) [![Coverage Status](https://coveralls.io/repos/github/ultraq/object-utils/badge.svg?branch=master)](https://coveralls.io/github/ultraq/object-utils?branch=master) [![npm](https://img.shields.io/npm/v/@ultraq/object-utils.svg?maxAge=3600)](https://www.npmjs.com/package/@ultraq/object-utils) [![License](https://img.shields.io/github/license/ultraq/object-utils.svg?maxAge=2592000)](https://github.com/ultraq/object-utils/blob/master/LICENSE.txt) A collection of utilities for JavaScript objects. Installation ------------ Via npm: ``` npm install @ultraq/object-utils --save ``` Via bower: ``` bower install https://github.com/ultraq/object-utils.git --save ``` API --- ### merge(target, ...sources) Deep-merges all of the properties of the objects in `sources` with `target`, modifying the target object and returning it. - **target**: object to merge values into - **sources**: array of argument list of objects to copy values from
Add code coverage badge! :grinning:
Add code coverage badge! :grinning:
Markdown
apache-2.0
ultraq/object-utils
markdown
## Code Before: object-utils ============ [![Build Status](https://travis-ci.org/ultraq/object-utils.svg?branch=master)](https://travis-ci.org/ultraq/object-utils) [![npm](https://img.shields.io/npm/v/@ultraq/object-utils.svg?maxAge=3600)](https://www.npmjs.com/package/@ultraq/object-utils) [![License](https://img.shields.io/github/license/ultraq/object-utils.svg?maxAge=2592000)](https://github.com/ultraq/object-utils/blob/master/LICENSE.txt) A collection of utilities for JavaScript objects. Installation ------------ Via npm: ``` npm install @ultraq/object-utils --save ``` Via bower: ``` bower install https://github.com/ultraq/object-utils.git --save ``` API --- ### merge(target, ...sources) Deep-merges all of the properties of the objects in `sources` with `target`, modifying the target object and returning it. - **target**: object to merge values into - **sources**: array of argument list of objects to copy values from ## Instruction: Add code coverage badge! :grinning: ## Code After: object-utils ============ [![Build Status](https://travis-ci.org/ultraq/object-utils.svg?branch=master)](https://travis-ci.org/ultraq/object-utils) [![Coverage Status](https://coveralls.io/repos/github/ultraq/object-utils/badge.svg?branch=master)](https://coveralls.io/github/ultraq/object-utils?branch=master) [![npm](https://img.shields.io/npm/v/@ultraq/object-utils.svg?maxAge=3600)](https://www.npmjs.com/package/@ultraq/object-utils) [![License](https://img.shields.io/github/license/ultraq/object-utils.svg?maxAge=2592000)](https://github.com/ultraq/object-utils/blob/master/LICENSE.txt) A collection of utilities for JavaScript objects. Installation ------------ Via npm: ``` npm install @ultraq/object-utils --save ``` Via bower: ``` bower install https://github.com/ultraq/object-utils.git --save ``` API --- ### merge(target, ...sources) Deep-merges all of the properties of the objects in `sources` with `target`, modifying the target object and returning it. - **target**: object to merge values into - **sources**: array of argument list of objects to copy values from
object-utils ============ [![Build Status](https://travis-ci.org/ultraq/object-utils.svg?branch=master)](https://travis-ci.org/ultraq/object-utils) + [![Coverage Status](https://coveralls.io/repos/github/ultraq/object-utils/badge.svg?branch=master)](https://coveralls.io/github/ultraq/object-utils?branch=master) [![npm](https://img.shields.io/npm/v/@ultraq/object-utils.svg?maxAge=3600)](https://www.npmjs.com/package/@ultraq/object-utils) [![License](https://img.shields.io/github/license/ultraq/object-utils.svg?maxAge=2592000)](https://github.com/ultraq/object-utils/blob/master/LICENSE.txt) A collection of utilities for JavaScript objects. Installation ------------ Via npm: ``` npm install @ultraq/object-utils --save ``` Via bower: ``` bower install https://github.com/ultraq/object-utils.git --save ``` API --- ### merge(target, ...sources) Deep-merges all of the properties of the objects in `sources` with `target`, modifying the target object and returning it. - **target**: object to merge values into - **sources**: array of argument list of objects to copy values from
1
0.027027
1
0
d664541ea09c2e52d41f9c0769ab29bad5ae5886
pyproject.toml
pyproject.toml
[tool.poetry] name = "parserutils" version = "2.0" description = "A collection of performant parsing utilities" authors = ["dharvey-consbio <dani.harvey@consbio.org>"] keywords = ["keyword", "another_keyword"] readme = "README.md" homepage = "https://github.com/consbio/parserutils/" repository = "https://github.com/consbio/parserutils/" license = "BSD" [tool.poetry.dependencies] python = "^3.6" defusedxml = "^0.7.1" python-dateutil = "^2.8.2" [tool.poetry.dev-dependencies] mock = "*" pipdeptree = "*" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"
[tool.poetry] name = "parserutils" version = "2.0" description = "A collection of performant parsing utilities" authors = ["dharvey-consbio <dani.harvey@consbio.org>"] keywords = ["parser", "parsing", "utils", "utilities", "collections", "dates", "elements", "numbers", "strings", "url", "xml"] readme = "README.md" homepage = "https://github.com/consbio/parserutils/" repository = "https://github.com/consbio/parserutils/" license = "BSD" [tool.poetry.dependencies] python = "^3.6" defusedxml = "^0.7.1" python-dateutil = "^2.8.2" [tool.poetry.dev-dependencies] mock = "*" pipdeptree = "*" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"
Update parserutils keywords for next deploy
Update parserutils keywords for next deploy
TOML
bsd-3-clause
consbio/parserutils
toml
## Code Before: [tool.poetry] name = "parserutils" version = "2.0" description = "A collection of performant parsing utilities" authors = ["dharvey-consbio <dani.harvey@consbio.org>"] keywords = ["keyword", "another_keyword"] readme = "README.md" homepage = "https://github.com/consbio/parserutils/" repository = "https://github.com/consbio/parserutils/" license = "BSD" [tool.poetry.dependencies] python = "^3.6" defusedxml = "^0.7.1" python-dateutil = "^2.8.2" [tool.poetry.dev-dependencies] mock = "*" pipdeptree = "*" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" ## Instruction: Update parserutils keywords for next deploy ## Code After: [tool.poetry] name = "parserutils" version = "2.0" description = "A collection of performant parsing utilities" authors = ["dharvey-consbio <dani.harvey@consbio.org>"] keywords = ["parser", "parsing", "utils", "utilities", "collections", "dates", "elements", "numbers", "strings", "url", "xml"] readme = "README.md" homepage = "https://github.com/consbio/parserutils/" repository = "https://github.com/consbio/parserutils/" license = "BSD" [tool.poetry.dependencies] python = "^3.6" defusedxml = "^0.7.1" python-dateutil = "^2.8.2" [tool.poetry.dev-dependencies] mock = "*" pipdeptree = "*" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"
[tool.poetry] name = "parserutils" version = "2.0" description = "A collection of performant parsing utilities" authors = ["dharvey-consbio <dani.harvey@consbio.org>"] - keywords = ["keyword", "another_keyword"] + keywords = ["parser", "parsing", "utils", "utilities", "collections", "dates", "elements", "numbers", "strings", "url", "xml"] readme = "README.md" homepage = "https://github.com/consbio/parserutils/" repository = "https://github.com/consbio/parserutils/" license = "BSD" [tool.poetry.dependencies] python = "^3.6" defusedxml = "^0.7.1" python-dateutil = "^2.8.2" [tool.poetry.dev-dependencies] mock = "*" pipdeptree = "*" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"
2
0.086957
1
1
fd6d392fd31e9d9a647af118c64f23f7d9f1488c
src/RemoteInterfaceGeneratorCLI/Templates/StringClassConverter.mustache
src/RemoteInterfaceGeneratorCLI/Templates/StringClassConverter.mustache
namespace {{rootNamespace}} { using Newtonsoft.Json; using System; public class StringClassConverter : JsonConverter { public override bool CanConvert(Type objectType) { return true; } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { try { if (reader.TokenType == JsonToken.String) { string value = reader.Value.ToString(); return Activator.CreateInstance(objectType, value); } } catch (Exception ex) { throw new JsonSerializationException($"Error converting value {reader.Value} to type '{objectType}'.", ex); } // we don't actually expect to get here. throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing sring class value."); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { throw new NotImplementedException(); } } }
namespace {{rootNamespace}} { using Newtonsoft.Json; using System; public class StringClassConverter : JsonConverter { public override bool CanConvert(Type objectType) { return true; } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { try { if (reader.TokenType == JsonToken.String) { string value = reader.Value.ToString(); return Activator.CreateInstance(objectType, value); } } catch (Exception ex) { throw new JsonSerializationException($"Error converting value {reader.Value} to type '{objectType}'.", ex); } // we don't actually expect to get here. throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing sring class value."); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { writer.WriteValue(value.ToString()); } } }
Add serialization capability to the string class converter
Add serialization capability to the string class converter
HTML+Django
mit
BaristaLabs/chrome-dev-tools,BaristaLabs/chrome-dev-tools
html+django
## Code Before: namespace {{rootNamespace}} { using Newtonsoft.Json; using System; public class StringClassConverter : JsonConverter { public override bool CanConvert(Type objectType) { return true; } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { try { if (reader.TokenType == JsonToken.String) { string value = reader.Value.ToString(); return Activator.CreateInstance(objectType, value); } } catch (Exception ex) { throw new JsonSerializationException($"Error converting value {reader.Value} to type '{objectType}'.", ex); } // we don't actually expect to get here. throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing sring class value."); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { throw new NotImplementedException(); } } } ## Instruction: Add serialization capability to the string class converter ## Code After: namespace {{rootNamespace}} { using Newtonsoft.Json; using System; public class StringClassConverter : JsonConverter { public override bool CanConvert(Type objectType) { return true; } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { try { if (reader.TokenType == JsonToken.String) { string value = reader.Value.ToString(); return Activator.CreateInstance(objectType, value); } } catch (Exception ex) { throw new JsonSerializationException($"Error converting value {reader.Value} to type '{objectType}'.", ex); } // we don't actually expect to get here. throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing sring class value."); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { writer.WriteValue(value.ToString()); } } }
namespace {{rootNamespace}} { using Newtonsoft.Json; using System; public class StringClassConverter : JsonConverter { public override bool CanConvert(Type objectType) { return true; } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { try { if (reader.TokenType == JsonToken.String) { string value = reader.Value.ToString(); return Activator.CreateInstance(objectType, value); } } catch (Exception ex) { throw new JsonSerializationException($"Error converting value {reader.Value} to type '{objectType}'.", ex); } // we don't actually expect to get here. throw new JsonSerializationException($"Unexpected token {reader.TokenType} when parsing sring class value."); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - throw new NotImplementedException(); + writer.WriteValue(value.ToString()); } } }
2
0.052632
1
1
47988a122854ce8aaeb0e3c68763e93fcc5a7ddc
travis/build.sh
travis/build.sh
set -e set -u set -o pipefail # Create Salt Links for States and Pillar # Create Ansible Links for Playbooks and Variables # mkdir -p /srv ln -sf "$(pwd)/salt/roots" /srv/salt ln -sf "$(pwd)/salt/pillar" /srv/pillar ln -sf "$(pwd)/ansible" /srv/ansible # Apply Salt States # salt-call --local -l warning state.apply # Apply Ansible Plays # export ANSIBLE_NOCOWS=1 cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml --limit=travis-ci exit 0
set -e set -u set -o pipefail # Create Salt Links for States and Pillar # Create Ansible Links for Playbooks and Variables # mkdir -p /srv ln -sf "$(pwd)/salt/roots" /srv/salt ln -sf "$(pwd)/salt/pillar" /srv/pillar ln -sf "$(pwd)/ansible" /srv/ansible # Apply Ansible Plays # export ANSIBLE_NOCOWS=1 cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml --limit=travis-ci # Apply Salt States # salt-call --local -l warning state.apply exit 0
Swap Ansible and Salt runs to ensure output regular as seems to stall on Salt from fresh
Swap Ansible and Salt runs to ensure output regular as seems to stall on Salt from fresh
Shell
mit
wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build
shell
## Code Before: set -e set -u set -o pipefail # Create Salt Links for States and Pillar # Create Ansible Links for Playbooks and Variables # mkdir -p /srv ln -sf "$(pwd)/salt/roots" /srv/salt ln -sf "$(pwd)/salt/pillar" /srv/pillar ln -sf "$(pwd)/ansible" /srv/ansible # Apply Salt States # salt-call --local -l warning state.apply # Apply Ansible Plays # export ANSIBLE_NOCOWS=1 cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml --limit=travis-ci exit 0 ## Instruction: Swap Ansible and Salt runs to ensure output regular as seems to stall on Salt from fresh ## Code After: set -e set -u set -o pipefail # Create Salt Links for States and Pillar # Create Ansible Links for Playbooks and Variables # mkdir -p /srv ln -sf "$(pwd)/salt/roots" /srv/salt ln -sf "$(pwd)/salt/pillar" /srv/pillar ln -sf "$(pwd)/ansible" /srv/ansible # Apply Ansible Plays # export ANSIBLE_NOCOWS=1 cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml --limit=travis-ci # Apply Salt States # salt-call --local -l warning state.apply exit 0
set -e set -u set -o pipefail # Create Salt Links for States and Pillar # Create Ansible Links for Playbooks and Variables # mkdir -p /srv ln -sf "$(pwd)/salt/roots" /srv/salt ln -sf "$(pwd)/salt/pillar" /srv/pillar ln -sf "$(pwd)/ansible" /srv/ansible - # Apply Salt States - # - salt-call --local -l warning state.apply - # Apply Ansible Plays # export ANSIBLE_NOCOWS=1 cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml --limit=travis-ci + # Apply Salt States + # + salt-call --local -l warning state.apply + exit 0
8
0.363636
4
4
ced0383de2f8c13b1f42515620ff04291b6b194a
src/js/AnimalWrapper.jsx
src/js/AnimalWrapper.jsx
'use strict'; var AnimalImage = require('./AnimalImage.jsx'); var AnimalWrapper = React.createClass({ handleClick: function () { this.props.onClick(this); }, render: function() { var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1"; var src = "http://www.chloechen.io/images/Animals/thumbnail/" + this.props.data.id + ".jpg"; return ( <li onClick={this.handleClick} className={listItemClassList} > </li> ); } }); module.exports = AnimalWrapper;
'use strict'; var AnimalImage = require('./AnimalImage.jsx'); var AnimalWrapper = React.createClass({ handleClick: function () { this.props.onClick(this); }, render: function() { var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1"; var src = "http://www.chloechen.io/images/Animals/thumbnail/" + this.props.data.id + ".jpg"; return ( <li onClick={this.handleClick} className={listItemClassList} > <figure> <AnimalImage src={src} alt={this.props.data.commonName} /> </figure> <h3 className="figcaption">{this.props.data.commonName}</h3> </li> ); } }); module.exports = AnimalWrapper;
Return for render complete, render successful
Return for render complete, render successful
JSX
isc
Yangani/maasai-mara,Yangani/maasai-mara
jsx
## Code Before: 'use strict'; var AnimalImage = require('./AnimalImage.jsx'); var AnimalWrapper = React.createClass({ handleClick: function () { this.props.onClick(this); }, render: function() { var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1"; var src = "http://www.chloechen.io/images/Animals/thumbnail/" + this.props.data.id + ".jpg"; return ( <li onClick={this.handleClick} className={listItemClassList} > </li> ); } }); module.exports = AnimalWrapper; ## Instruction: Return for render complete, render successful ## Code After: 'use strict'; var AnimalImage = require('./AnimalImage.jsx'); var AnimalWrapper = React.createClass({ handleClick: function () { this.props.onClick(this); }, render: function() { var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1"; var src = "http://www.chloechen.io/images/Animals/thumbnail/" + this.props.data.id + ".jpg"; return ( <li onClick={this.handleClick} className={listItemClassList} > <figure> <AnimalImage src={src} alt={this.props.data.commonName} /> </figure> <h3 className="figcaption">{this.props.data.commonName}</h3> </li> ); } }); module.exports = AnimalWrapper;
'use strict'; var AnimalImage = require('./AnimalImage.jsx'); var AnimalWrapper = React.createClass({ handleClick: function () { this.props.onClick(this); }, render: function() { var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1"; var src = "http://www.chloechen.io/images/Animals/thumbnail/" + this.props.data.id + ".jpg"; return ( <li onClick={this.handleClick} className={listItemClassList} > + <figure> + <AnimalImage src={src} alt={this.props.data.commonName} /> + </figure> + <h3 className="figcaption">{this.props.data.commonName}</h3> </li> ); } }); module.exports = AnimalWrapper;
4
0.2
4
0
5c17c13310b51b5813ff06921eeb7e1ba49a9a2c
phpunit.xml.dist
phpunit.xml.dist
<?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="tests/bootstrap.php" colors="true"> <testsuites> <testsuite name="PHPUnit"> <directory>tests/</directory> </testsuite> </testsuites> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory>src/Gliph</directory> </whitelist> </filter> <logging> <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70" showUncoveredFiles="true" /> <log type="coverage-clover" target="build/logs/clover.xml"/> </logging> </phpunit>
<?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="tests/bootstrap.php" colors="true"> <testsuites> <testsuite name="PHPUnit"> <directory>tests/</directory> </testsuite> </testsuites> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory>src/Gliph</directory> <exclude> <file>src/Gliph/Visitor/DepthFirstNoOpVisitor.php</file> </exclude> </whitelist> </filter> <logging> <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70" showUncoveredFiles="true" /> <log type="coverage-clover" target="build/logs/clover.xml"/> </logging> </phpunit>
Exclude the no-op DF visitor from coverage.
Exclude the no-op DF visitor from coverage.
unknown
mit
sdboyer/gliph
unknown
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="tests/bootstrap.php" colors="true"> <testsuites> <testsuite name="PHPUnit"> <directory>tests/</directory> </testsuite> </testsuites> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory>src/Gliph</directory> </whitelist> </filter> <logging> <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70" showUncoveredFiles="true" /> <log type="coverage-clover" target="build/logs/clover.xml"/> </logging> </phpunit> ## Instruction: Exclude the no-op DF visitor from coverage. ## Code After: <?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="tests/bootstrap.php" colors="true"> <testsuites> <testsuite name="PHPUnit"> <directory>tests/</directory> </testsuite> </testsuites> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory>src/Gliph</directory> <exclude> <file>src/Gliph/Visitor/DepthFirstNoOpVisitor.php</file> </exclude> </whitelist> </filter> <logging> <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70" showUncoveredFiles="true" /> <log type="coverage-clover" target="build/logs/clover.xml"/> </logging> </phpunit>
<?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="tests/bootstrap.php" colors="true"> <testsuites> <testsuite name="PHPUnit"> <directory>tests/</directory> </testsuite> </testsuites> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> - <directory>src/Gliph</directory> ? -- + <directory>src/Gliph</directory> + <exclude> + <file>src/Gliph/Visitor/DepthFirstNoOpVisitor.php</file> + </exclude> </whitelist> </filter> <logging> <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70" showUncoveredFiles="true" /> <log type="coverage-clover" target="build/logs/clover.xml"/> </logging> </phpunit>
5
0.185185
4
1
a56081d353119734b63f88760896040004db28fc
app/styles/components/gif-stream.scss
app/styles/components/gif-stream.scss
.gif-stream { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: map-get($z-index, "gif-stream"); overflow-x: hidden; overflow-y: auto; background-color: $white; } .gif-stream__container { display: flex; flex-wrap: wrap; justify-content: center; } .gif-stream__spinner { position: fixed; top: 50%; right: 0; left: 0; text-align: center; } .gif-stream__image { width: 100px; min-width: 100px; height: 100px; background-repeat: no-repeat; background-position: center; background-size: cover; opacity: 0; transition: opacity .2s linear; flex: 1; } .gif-stream__image--ready { opacity: 1; } .gif-stream__buttons { margin: 30px auto; }
.gif-stream { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: map-get($z-index, "gif-stream"); overflow-x: hidden; overflow-y: auto; background-color: $white; -webkit-overflow-scrolling: touch; // sass-lint:disable-line no-vendor-prefixes no-misspelled-properties } .gif-stream__container { display: flex; flex-wrap: wrap; justify-content: center; } .gif-stream__spinner { position: fixed; top: 50%; right: 0; left: 0; text-align: center; } .gif-stream__image { width: 100px; min-width: 100px; height: 100px; background-repeat: no-repeat; background-position: center; background-size: cover; opacity: 0; transition: opacity .2s linear; flex: 1; } .gif-stream__image--ready { opacity: 1; } .gif-stream__buttons { margin: 30px auto; }
Use elastic scroll for stream
Use elastic scroll for stream
SCSS
agpl-3.0
adzialocha/hoffnung3000,adzialocha/hoffnung3000
scss
## Code Before: .gif-stream { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: map-get($z-index, "gif-stream"); overflow-x: hidden; overflow-y: auto; background-color: $white; } .gif-stream__container { display: flex; flex-wrap: wrap; justify-content: center; } .gif-stream__spinner { position: fixed; top: 50%; right: 0; left: 0; text-align: center; } .gif-stream__image { width: 100px; min-width: 100px; height: 100px; background-repeat: no-repeat; background-position: center; background-size: cover; opacity: 0; transition: opacity .2s linear; flex: 1; } .gif-stream__image--ready { opacity: 1; } .gif-stream__buttons { margin: 30px auto; } ## Instruction: Use elastic scroll for stream ## Code After: .gif-stream { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: map-get($z-index, "gif-stream"); overflow-x: hidden; overflow-y: auto; background-color: $white; -webkit-overflow-scrolling: touch; // sass-lint:disable-line no-vendor-prefixes no-misspelled-properties } .gif-stream__container { display: flex; flex-wrap: wrap; justify-content: center; } .gif-stream__spinner { position: fixed; top: 50%; right: 0; left: 0; text-align: center; } .gif-stream__image { width: 100px; min-width: 100px; height: 100px; background-repeat: no-repeat; background-position: center; background-size: cover; opacity: 0; transition: opacity .2s linear; flex: 1; } .gif-stream__image--ready { opacity: 1; } .gif-stream__buttons { margin: 30px auto; }
.gif-stream { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: map-get($z-index, "gif-stream"); overflow-x: hidden; overflow-y: auto; background-color: $white; + + -webkit-overflow-scrolling: touch; // sass-lint:disable-line no-vendor-prefixes no-misspelled-properties } .gif-stream__container { display: flex; flex-wrap: wrap; justify-content: center; } .gif-stream__spinner { position: fixed; top: 50%; right: 0; left: 0; text-align: center; } .gif-stream__image { width: 100px; min-width: 100px; height: 100px; background-repeat: no-repeat; background-position: center; background-size: cover; opacity: 0; transition: opacity .2s linear; flex: 1; } .gif-stream__image--ready { opacity: 1; } .gif-stream__buttons { margin: 30px auto; }
2
0.035714
2
0
04d11d9fb75b281e1365be91a98e021a2caf31f9
app/views/access/index.html.erb
app/views/access/index.html.erb
<% @page_title = 'Admin Menu' %> <div class="menu"> <h2>Admin Menu</h2> <div class="identity">Logged in as:</div> <ul> <li><%= link_to('Manage Subjects', :controller => 'subjects') %></li> <li><%= link_to('Manage Pages', :controller => 'pages') %></li> <li><%= link_to('Manage Sections', :controller => 'sections') %></li> <li><%= link_to('Manage Admin Users', :controller => 'admin_users') %></li> <li><%= link_to('Logout', :action => 'logout') %></li> </ul> </div>
<% @page_title = 'Admin Menu' %> <div class="menu"> <h2>Admin Menu</h2> <div class="identity">Logged in as: <%= session[:username] %></div> <ul> <li><%= link_to('Manage Subjects', :controller => 'subjects') %></li> <li><%= link_to('Manage Pages', :controller => 'pages') %></li> <li><%= link_to('Manage Sections', :controller => 'sections') %></li> <li><%= link_to('Manage Admin Users', :controller => 'admin_users') %></li> <li><%= link_to('Logout', :action => 'logout') %></li> </ul> </div>
Add username to Admin Menu
Add username to Admin Menu
HTML+ERB
mit
joachimjusth/simple_cms,joachimjusth/simple_cms,joachimjusth/simple_cms
html+erb
## Code Before: <% @page_title = 'Admin Menu' %> <div class="menu"> <h2>Admin Menu</h2> <div class="identity">Logged in as:</div> <ul> <li><%= link_to('Manage Subjects', :controller => 'subjects') %></li> <li><%= link_to('Manage Pages', :controller => 'pages') %></li> <li><%= link_to('Manage Sections', :controller => 'sections') %></li> <li><%= link_to('Manage Admin Users', :controller => 'admin_users') %></li> <li><%= link_to('Logout', :action => 'logout') %></li> </ul> </div> ## Instruction: Add username to Admin Menu ## Code After: <% @page_title = 'Admin Menu' %> <div class="menu"> <h2>Admin Menu</h2> <div class="identity">Logged in as: <%= session[:username] %></div> <ul> <li><%= link_to('Manage Subjects', :controller => 'subjects') %></li> <li><%= link_to('Manage Pages', :controller => 'pages') %></li> <li><%= link_to('Manage Sections', :controller => 'sections') %></li> <li><%= link_to('Manage Admin Users', :controller => 'admin_users') %></li> <li><%= link_to('Logout', :action => 'logout') %></li> </ul> </div>
<% @page_title = 'Admin Menu' %> <div class="menu"> <h2>Admin Menu</h2> - <div class="identity">Logged in as:</div> + <div class="identity">Logged in as: <%= session[:username] %></div> ? ++++++++++++++++++++++++++ <ul> <li><%= link_to('Manage Subjects', :controller => 'subjects') %></li> <li><%= link_to('Manage Pages', :controller => 'pages') %></li> <li><%= link_to('Manage Sections', :controller => 'sections') %></li> <li><%= link_to('Manage Admin Users', :controller => 'admin_users') %></li> <li><%= link_to('Logout', :action => 'logout') %></li> </ul> </div>
2
0.153846
1
1
248f6c698b4c6ced3e53e71ddb951bfbfa7b44fc
.travis.yml
.travis.yml
language: python python: - 2.7 install: - pip install -r requirements.txt - python setup.py develop script: - coverage run ./runtests.py after_success: - coveralls
language: python python: - 2.7 env: matrix: - COMBO="Django==1.5.8 django-oscar==0.6.5" - COMBO="Django==1.5.8 django-oscar==0.7.2" - COMBO="Django==1.6.5 django-oscar==0.6.5" - COMBO="Django==1.6.5 django-oscar==0.7.2" - COMBO="Django==1.6.5 South==1.0 https://github.com/tangentlabs/django-oscar/archive/master.tar.gz" - COMBO="https://www.djangoproject.com/download/1.7c2/tarball/ https://github.com/tangentlabs/django-oscar/archive/master.tar.gz" install: - pip install $COMBO -r requirements.txt - python setup.py develop script: - coverage run ./runtests.py after_success: - coveralls
Test against different Django and Oscar versions on Travis
Test against different Django and Oscar versions on Travis This now imitates the tox test suite.
YAML
bsd-3-clause
django-oscar/django-oscar-datacash,django-oscar/django-oscar-datacash
yaml
## Code Before: language: python python: - 2.7 install: - pip install -r requirements.txt - python setup.py develop script: - coverage run ./runtests.py after_success: - coveralls ## Instruction: Test against different Django and Oscar versions on Travis This now imitates the tox test suite. ## Code After: language: python python: - 2.7 env: matrix: - COMBO="Django==1.5.8 django-oscar==0.6.5" - COMBO="Django==1.5.8 django-oscar==0.7.2" - COMBO="Django==1.6.5 django-oscar==0.6.5" - COMBO="Django==1.6.5 django-oscar==0.7.2" - COMBO="Django==1.6.5 South==1.0 https://github.com/tangentlabs/django-oscar/archive/master.tar.gz" - COMBO="https://www.djangoproject.com/download/1.7c2/tarball/ https://github.com/tangentlabs/django-oscar/archive/master.tar.gz" install: - pip install $COMBO -r requirements.txt - python setup.py develop script: - coverage run ./runtests.py after_success: - coveralls
language: python + python: - 2.7 + + env: + matrix: + - COMBO="Django==1.5.8 django-oscar==0.6.5" + - COMBO="Django==1.5.8 django-oscar==0.7.2" + - COMBO="Django==1.6.5 django-oscar==0.6.5" + - COMBO="Django==1.6.5 django-oscar==0.7.2" + - COMBO="Django==1.6.5 South==1.0 https://github.com/tangentlabs/django-oscar/archive/master.tar.gz" + - COMBO="https://www.djangoproject.com/download/1.7c2/tarball/ https://github.com/tangentlabs/django-oscar/archive/master.tar.gz" + install: - - pip install -r requirements.txt ? - + - pip install $COMBO -r requirements.txt ? +++++++ - python setup.py develop + script: - coverage run ./runtests.py + after_success: - coveralls
15
1.5
14
1
e0b2af6906388e38dc8dffd387296a2bca5c1c28
app/views/aq_repositories/show.html.erb
app/views/aq_repositories/show.html.erb
<div id="repository"> <%= render "infos", :repository => @repository %> <div class="repository"> <%= render "people", :repository => @repository %> <%= render "desc", :repository => @repository %> <div id="files"> <% if @repository.branches.size != 0 %> <%= render "files", :repository => @repository %> <% end %> </div> <div id="view_readme_file"> <% if @repository.branches.size != 0 and params[:dir].nil? %> <% branch = "master" %> <% branch = params[:branch] if params[:branch] %> <% tree = @grit_repo.tree(branch, "") %> <% if !params[:dir] %> <% blobs = tree.blobs %> <% if blobs %> <% blobs.each do |a_blob| %> <% if a_blob.name =~ /^(README|README.(.*))$/ and a_blob.mime_type =~ /^text\/(.*)$/ %> <pre><%= a_blob.data %></pre> <% end %> <% end %> <% end %> <% end %> <% end %> </div> <div class="clear"></div> </div> </div>
<div id="repository"> <%= render "infos", :repository => @repository %> <div class="repository"> <%= render "people", :repository => @repository %> <%= render "desc", :repository => @repository %> <div id="files"> <% if @repository.branches.size != 0 %> <%= render "files", :repository => @repository %> <% end %> </div> <% if @repository.branches.size != 0 and params[:dir].nil? %> <% branch = "master" %> <% branch = params[:branch] if params[:branch] %> <% tree = @grit_repo.tree(branch, "") %> <% if !params[:dir] %> <% blobs = tree.blobs %> <% if blobs %> <% blobs.each do |a_blob| %> <% if a_blob.name =~ /^(README|README.(.*))$/ and a_blob.mime_type =~ /^text\/(.*)$/ %> <div id="view_readme_file"> <pre><%= a_blob.data %></pre> </div> <% end %> <% end %> <% end %> <% end %> <% end %> <div class="clear"></div> </div> </div>
Move the div into the if condition, avoid always displaying of the div
Move the div into the if condition, avoid always displaying of the div
HTML+ERB
mit
mcansky/aq3,mcansky/aq3
html+erb
## Code Before: <div id="repository"> <%= render "infos", :repository => @repository %> <div class="repository"> <%= render "people", :repository => @repository %> <%= render "desc", :repository => @repository %> <div id="files"> <% if @repository.branches.size != 0 %> <%= render "files", :repository => @repository %> <% end %> </div> <div id="view_readme_file"> <% if @repository.branches.size != 0 and params[:dir].nil? %> <% branch = "master" %> <% branch = params[:branch] if params[:branch] %> <% tree = @grit_repo.tree(branch, "") %> <% if !params[:dir] %> <% blobs = tree.blobs %> <% if blobs %> <% blobs.each do |a_blob| %> <% if a_blob.name =~ /^(README|README.(.*))$/ and a_blob.mime_type =~ /^text\/(.*)$/ %> <pre><%= a_blob.data %></pre> <% end %> <% end %> <% end %> <% end %> <% end %> </div> <div class="clear"></div> </div> </div> ## Instruction: Move the div into the if condition, avoid always displaying of the div ## Code After: <div id="repository"> <%= render "infos", :repository => @repository %> <div class="repository"> <%= render "people", :repository => @repository %> <%= render "desc", :repository => @repository %> <div id="files"> <% if @repository.branches.size != 0 %> <%= render "files", :repository => @repository %> <% end %> </div> <% if @repository.branches.size != 0 and params[:dir].nil? %> <% branch = "master" %> <% branch = params[:branch] if params[:branch] %> <% tree = @grit_repo.tree(branch, "") %> <% if !params[:dir] %> <% blobs = tree.blobs %> <% if blobs %> <% blobs.each do |a_blob| %> <% if a_blob.name =~ /^(README|README.(.*))$/ and a_blob.mime_type =~ /^text\/(.*)$/ %> <div id="view_readme_file"> <pre><%= a_blob.data %></pre> </div> <% end %> <% end %> <% end %> <% end %> <% end %> <div class="clear"></div> </div> </div>
<div id="repository"> <%= render "infos", :repository => @repository %> <div class="repository"> <%= render "people", :repository => @repository %> <%= render "desc", :repository => @repository %> <div id="files"> <% if @repository.branches.size != 0 %> <%= render "files", :repository => @repository %> <% end %> </div> - <div id="view_readme_file"> <% if @repository.branches.size != 0 and params[:dir].nil? %> <% branch = "master" %> <% branch = params[:branch] if params[:branch] %> <% tree = @grit_repo.tree(branch, "") %> <% if !params[:dir] %> <% blobs = tree.blobs %> <% if blobs %> <% blobs.each do |a_blob| %> - <% if a_blob.name =~ /^(README|README.(.*))$/ and a_blob.mime_type =~ /^text\/(.*)$/ %> + <% if a_blob.name =~ /^(README|README.(.*))$/ and a_blob.mime_type =~ /^text\/(.*)$/ %> ? ++ + <div id="view_readme_file"> <pre><%= a_blob.data %></pre> + </div> <% end %> <% end %> <% end %> <% end %> <% end %> - </div> - <div class="clear"></div> </div> </div>
7
0.189189
3
4
373347f249f4d32a42a7e11baac3e793fb44b627
app/controllers/backend/schemes_controller.rb
app/controllers/backend/schemes_controller.rb
module Backend class SchemesController < Backend::BaseController skip_before_filter :verify_authenticity_token, if: :auth_via_access_token skip_before_filter :authenticate_user!, if: :auth_via_access_token before_filter :set_user_as_michael, if: :auth_via_access_token expose(:schemes) { |default| default.by_name } expose_decorated(:scheme, attributes: :scheme_params) def create flash.notice = 'Scheme successfully created' if scheme.persist respond_with(scheme, location: scheme) end def update flash.notice = 'Scheme successfully updated' if scheme.persist respond_with(scheme, location: scheme) end def destroy scheme.destroy redirect_to scheme, notice: "Scheme deleted" end def new end def edit end def index self.schemes = schemes.confirmed end def unconfirmed self.schemes = schemes.unconfirmed render :index end def show end private def auth_via_access_token authenticate_with_http_token do |token, options| token == SchemeFinderApi.api_access_token end if SchemeFinderApi.api_access_token.present? end def scheme_params params.require(:scheme).permit( :had_direct_interactions, :logo, :logo_cache, :confirmed, :contact_name, :contact_email, :contact_phone, :name, :website, :description, location_ids: [], sector_ids: [], audience_ids: [], activity_ids: [], company_size_ids: [], age_range_ids: [] ) end def set_user_as_michael if auth_via_access_token @current_user = User.find_by_email("michael.wallace@bitzesty.com") end end end end
module Backend class SchemesController < Backend::BaseController expose(:schemes) { |default| default.by_name } expose_decorated(:scheme, attributes: :scheme_params) def create flash.notice = 'Scheme successfully created' if scheme.persist respond_with(scheme, location: scheme) end def update flash.notice = 'Scheme successfully updated' if scheme.persist respond_with(scheme, location: scheme) end def destroy scheme.destroy redirect_to scheme, notice: "Scheme deleted" end def new end def edit end def index self.schemes = schemes.confirmed end def unconfirmed self.schemes = schemes.unconfirmed render :index end def show end private def scheme_params params.require(:scheme).permit( :had_direct_interactions, :logo, :logo_cache, :confirmed, :contact_name, :contact_email, :contact_phone, :name, :website, :description, location_ids: [], sector_ids: [], audience_ids: [], activity_ids: [], company_size_ids: [], age_range_ids: [] ) end end end
Revert "temporary allowing to update schemes with token auth"
Revert "temporary allowing to update schemes with token auth" This reverts commit 6c5e107737872cb27a4fb746126ea3d4bed8c2dd.
Ruby
mit
bitzesty/scheme-finder-api,bitzesty/scheme-finder-api
ruby
## Code Before: module Backend class SchemesController < Backend::BaseController skip_before_filter :verify_authenticity_token, if: :auth_via_access_token skip_before_filter :authenticate_user!, if: :auth_via_access_token before_filter :set_user_as_michael, if: :auth_via_access_token expose(:schemes) { |default| default.by_name } expose_decorated(:scheme, attributes: :scheme_params) def create flash.notice = 'Scheme successfully created' if scheme.persist respond_with(scheme, location: scheme) end def update flash.notice = 'Scheme successfully updated' if scheme.persist respond_with(scheme, location: scheme) end def destroy scheme.destroy redirect_to scheme, notice: "Scheme deleted" end def new end def edit end def index self.schemes = schemes.confirmed end def unconfirmed self.schemes = schemes.unconfirmed render :index end def show end private def auth_via_access_token authenticate_with_http_token do |token, options| token == SchemeFinderApi.api_access_token end if SchemeFinderApi.api_access_token.present? end def scheme_params params.require(:scheme).permit( :had_direct_interactions, :logo, :logo_cache, :confirmed, :contact_name, :contact_email, :contact_phone, :name, :website, :description, location_ids: [], sector_ids: [], audience_ids: [], activity_ids: [], company_size_ids: [], age_range_ids: [] ) end def set_user_as_michael if auth_via_access_token @current_user = User.find_by_email("michael.wallace@bitzesty.com") end end end end ## Instruction: Revert "temporary allowing to update schemes with token auth" This reverts commit 6c5e107737872cb27a4fb746126ea3d4bed8c2dd. ## Code After: module Backend class SchemesController < Backend::BaseController expose(:schemes) { |default| default.by_name } expose_decorated(:scheme, attributes: :scheme_params) def create flash.notice = 'Scheme successfully created' if scheme.persist respond_with(scheme, location: scheme) end def update flash.notice = 'Scheme successfully updated' if scheme.persist respond_with(scheme, location: scheme) end def destroy scheme.destroy redirect_to scheme, notice: "Scheme deleted" end def new end def edit end def index self.schemes = schemes.confirmed end def unconfirmed self.schemes = schemes.unconfirmed render :index end def show end private def scheme_params params.require(:scheme).permit( :had_direct_interactions, :logo, :logo_cache, :confirmed, :contact_name, :contact_email, :contact_phone, :name, :website, :description, location_ids: [], sector_ids: [], audience_ids: [], activity_ids: [], company_size_ids: [], age_range_ids: [] ) end end end
module Backend class SchemesController < Backend::BaseController - skip_before_filter :verify_authenticity_token, if: :auth_via_access_token - skip_before_filter :authenticate_user!, if: :auth_via_access_token - before_filter :set_user_as_michael, if: :auth_via_access_token - expose(:schemes) { |default| default.by_name } expose_decorated(:scheme, attributes: :scheme_params) def create flash.notice = 'Scheme successfully created' if scheme.persist respond_with(scheme, location: scheme) end def update flash.notice = 'Scheme successfully updated' if scheme.persist respond_with(scheme, location: scheme) end def destroy scheme.destroy redirect_to scheme, notice: "Scheme deleted" end def new end def edit end def index self.schemes = schemes.confirmed end def unconfirmed self.schemes = schemes.unconfirmed render :index end def show end private - def auth_via_access_token - authenticate_with_http_token do |token, options| - token == SchemeFinderApi.api_access_token - end if SchemeFinderApi.api_access_token.present? - end - def scheme_params params.require(:scheme).permit( :had_direct_interactions, :logo, :logo_cache, :confirmed, :contact_name, :contact_email, :contact_phone, :name, :website, :description, location_ids: [], sector_ids: [], audience_ids: [], activity_ids: [], company_size_ids: [], age_range_ids: [] ) end - - def set_user_as_michael - if auth_via_access_token - @current_user = User.find_by_email("michael.wallace@bitzesty.com") - end - end end end
16
0.210526
0
16
373fd6e9332ca225c1939b5bba675161bdec3596
bika/lims/upgrade/__init__.py
bika/lims/upgrade/__init__.py
import imp import sys def create_modules(module_path): path = "" module = None for element in module_path.split('.'): path += element try: module = __import__(path) except ImportError: new = imp.new_module(path) if module is not None: setattr(module, element, new) module = new sys.modules[path] = module __import__(path) path += "." return module def stub(module_path, class_name, base_class, meta_class=type): module = create_modules(module_path) cls = meta_class(class_name, (base_class, ), {}) setattr(module, class_name, cls) def skip_pre315(portal): # Hack prevent out-of-date upgrading # Related: PR #1484 # https://github.com/bikalabs/Bika-LIMS/pull/1484 qi = portal.portal_quickinstaller info = qi.upgradeInfo('bika.lims') if info['installedVersion'] > '315': return True
import imp import sys def create_modules(module_path): path = "" module = None for element in module_path.split('.'): path += element try: module = __import__(path) except ImportError: new = imp.new_module(path) if module is not None: setattr(module, element, new) module = new sys.modules[path] = module __import__(path) path += "." return module def stub(module_path, class_name, base_class, meta_class=type): module = create_modules(module_path) cls = meta_class(class_name, (base_class, ), {}) setattr(module, class_name, cls) def skip_pre315(portal): # Hack prevent out-of-date upgrading # Related: PR #1484 # https://github.com/bikalabs/Bika-LIMS/pull/1484 qi = portal.portal_quickinstaller info = qi.upgradeInfo('bika.lims') if info['installedVersion'] > '315': return True return False
Add return False to be sure all works as expected
Add return False to be sure all works as expected
Python
agpl-3.0
labsanmartin/Bika-LIMS,labsanmartin/Bika-LIMS,veroc/Bika-LIMS,labsanmartin/Bika-LIMS,veroc/Bika-LIMS,veroc/Bika-LIMS,rockfruit/bika.lims,rockfruit/bika.lims
python
## Code Before: import imp import sys def create_modules(module_path): path = "" module = None for element in module_path.split('.'): path += element try: module = __import__(path) except ImportError: new = imp.new_module(path) if module is not None: setattr(module, element, new) module = new sys.modules[path] = module __import__(path) path += "." return module def stub(module_path, class_name, base_class, meta_class=type): module = create_modules(module_path) cls = meta_class(class_name, (base_class, ), {}) setattr(module, class_name, cls) def skip_pre315(portal): # Hack prevent out-of-date upgrading # Related: PR #1484 # https://github.com/bikalabs/Bika-LIMS/pull/1484 qi = portal.portal_quickinstaller info = qi.upgradeInfo('bika.lims') if info['installedVersion'] > '315': return True ## Instruction: Add return False to be sure all works as expected ## Code After: import imp import sys def create_modules(module_path): path = "" module = None for element in module_path.split('.'): path += element try: module = __import__(path) except ImportError: new = imp.new_module(path) if module is not None: setattr(module, element, new) module = new sys.modules[path] = module __import__(path) path += "." return module def stub(module_path, class_name, base_class, meta_class=type): module = create_modules(module_path) cls = meta_class(class_name, (base_class, ), {}) setattr(module, class_name, cls) def skip_pre315(portal): # Hack prevent out-of-date upgrading # Related: PR #1484 # https://github.com/bikalabs/Bika-LIMS/pull/1484 qi = portal.portal_quickinstaller info = qi.upgradeInfo('bika.lims') if info['installedVersion'] > '315': return True return False
import imp import sys def create_modules(module_path): path = "" module = None for element in module_path.split('.'): path += element try: module = __import__(path) except ImportError: new = imp.new_module(path) if module is not None: setattr(module, element, new) module = new sys.modules[path] = module __import__(path) path += "." return module def stub(module_path, class_name, base_class, meta_class=type): module = create_modules(module_path) cls = meta_class(class_name, (base_class, ), {}) setattr(module, class_name, cls) def skip_pre315(portal): # Hack prevent out-of-date upgrading # Related: PR #1484 # https://github.com/bikalabs/Bika-LIMS/pull/1484 qi = portal.portal_quickinstaller info = qi.upgradeInfo('bika.lims') if info['installedVersion'] > '315': return True - + return False
2
0.04878
1
1
8d9b0f536f9079721b15fee948e60c6b80b9ebb4
.travis.yml
.travis.yml
language: node_js node_js: - "node" env: - JSDOM_VERSION=6 - JSDOM_VERSION=7 - JSDOM_VERSION=8 - JSDOM_VERSION=9 - JSDOM_VERSION=10 script: - npm install jsdom@$JSDOM_VERSION - ln -s ../ node_modules/karma-jsom-launcher - npm test
language: node_js node_js: - "node" env: - JSDOM_VERSION=6 - JSDOM_VERSION=7 - JSDOM_VERSION=8 - JSDOM_VERSION=9 - JSDOM_VERSION=10 - JSDOM_VERSION=11 script: - npm install jsdom@$JSDOM_VERSION - ln -s ../ node_modules/karma-jsom-launcher - npm test
Add jsdom-11 to the tested versions
Add jsdom-11 to the tested versions
YAML
mit
badeball/karma-jsdom-launcher
yaml
## Code Before: language: node_js node_js: - "node" env: - JSDOM_VERSION=6 - JSDOM_VERSION=7 - JSDOM_VERSION=8 - JSDOM_VERSION=9 - JSDOM_VERSION=10 script: - npm install jsdom@$JSDOM_VERSION - ln -s ../ node_modules/karma-jsom-launcher - npm test ## Instruction: Add jsdom-11 to the tested versions ## Code After: language: node_js node_js: - "node" env: - JSDOM_VERSION=6 - JSDOM_VERSION=7 - JSDOM_VERSION=8 - JSDOM_VERSION=9 - JSDOM_VERSION=10 - JSDOM_VERSION=11 script: - npm install jsdom@$JSDOM_VERSION - ln -s ../ node_modules/karma-jsom-launcher - npm test
language: node_js node_js: - "node" env: - JSDOM_VERSION=6 - JSDOM_VERSION=7 - JSDOM_VERSION=8 - JSDOM_VERSION=9 - JSDOM_VERSION=10 + - JSDOM_VERSION=11 script: - npm install jsdom@$JSDOM_VERSION - ln -s ../ node_modules/karma-jsom-launcher - npm test
1
0.076923
1
0