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
24c1309a9f221ec8be6a3b15dc843769f4157cf1
allauth/socialaccount/providers/twitch/views.py
allauth/socialaccount/providers/twitch/views.py
import requests from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import TwitchProvider class TwitchOAuth2Adapter(OAuth2Adapter): provider_id = TwitchProvider.id access_token_url = 'https://api.twitch.tv/kraken/oauth2/token' authorize_url = 'https://api.twitch.tv/kraken/oauth2/authorize' profile_url = 'https://api.twitch.tv/kraken/user' def complete_login(self, request, app, token, **kwargs): resp = requests.get( self.profile_url, params={'oauth_token': token.token, 'client_id': app.client_id}) extra_data = resp.json() return self.get_provider().sociallogin_from_response(request, extra_data) oauth2_login = OAuth2LoginView.adapter_view(TwitchOAuth2Adapter) oauth2_callback = OAuth2CallbackView.adapter_view(TwitchOAuth2Adapter)
import requests from allauth.socialaccount.providers.oauth2.client import OAuth2Error from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import TwitchProvider class TwitchOAuth2Adapter(OAuth2Adapter): provider_id = TwitchProvider.id access_token_url = 'https://api.twitch.tv/kraken/oauth2/token' authorize_url = 'https://api.twitch.tv/kraken/oauth2/authorize' profile_url = 'https://api.twitch.tv/kraken/user' def complete_login(self, request, app, token, **kwargs): params = {"oauth_token": token.token, "client_id": app.client_id} response = requests.get(self.profile_url, params=params) data = response.json() if response.status_code >= 400: error = data.get("error", "") message = data.get("message", "") raise OAuth2Error("Twitch API Error: %s (%s)" % (error, message)) if "_id" not in data: raise OAuth2Error("Invalid data from Twitch API: %r" % (data)) return self.get_provider().sociallogin_from_response(request, data) oauth2_login = OAuth2LoginView.adapter_view(TwitchOAuth2Adapter) oauth2_callback = OAuth2CallbackView.adapter_view(TwitchOAuth2Adapter)
Add error checking in API response
twitch: Add error checking in API response
Python
mit
rsalmaso/django-allauth,lukeburden/django-allauth,pennersr/django-allauth,AltSchool/django-allauth,pztrick/django-allauth,AltSchool/django-allauth,rsalmaso/django-allauth,bittner/django-allauth,pztrick/django-allauth,pennersr/django-allauth,lukeburden/django-allauth,lukeburden/django-allauth,pztrick/django-allauth,bittner/django-allauth,AltSchool/django-allauth,rsalmaso/django-allauth,bittner/django-allauth,pennersr/django-allauth
python
## Code Before: import requests from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import TwitchProvider class TwitchOAuth2Adapter(OAuth2Adapter): provider_id = TwitchProvider.id access_token_url = 'https://api.twitch.tv/kraken/oauth2/token' authorize_url = 'https://api.twitch.tv/kraken/oauth2/authorize' profile_url = 'https://api.twitch.tv/kraken/user' def complete_login(self, request, app, token, **kwargs): resp = requests.get( self.profile_url, params={'oauth_token': token.token, 'client_id': app.client_id}) extra_data = resp.json() return self.get_provider().sociallogin_from_response(request, extra_data) oauth2_login = OAuth2LoginView.adapter_view(TwitchOAuth2Adapter) oauth2_callback = OAuth2CallbackView.adapter_view(TwitchOAuth2Adapter) ## Instruction: twitch: Add error checking in API response ## Code After: import requests from allauth.socialaccount.providers.oauth2.client import OAuth2Error from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import TwitchProvider class TwitchOAuth2Adapter(OAuth2Adapter): provider_id = TwitchProvider.id access_token_url = 'https://api.twitch.tv/kraken/oauth2/token' authorize_url = 'https://api.twitch.tv/kraken/oauth2/authorize' profile_url = 'https://api.twitch.tv/kraken/user' def complete_login(self, request, app, token, **kwargs): params = {"oauth_token": token.token, "client_id": app.client_id} response = requests.get(self.profile_url, params=params) data = response.json() if response.status_code >= 400: error = data.get("error", "") message = data.get("message", "") raise OAuth2Error("Twitch API Error: %s (%s)" % (error, message)) if "_id" not in data: raise OAuth2Error("Invalid data from Twitch API: %r" % (data)) return self.get_provider().sociallogin_from_response(request, data) oauth2_login = OAuth2LoginView.adapter_view(TwitchOAuth2Adapter) oauth2_callback = OAuth2CallbackView.adapter_view(TwitchOAuth2Adapter)
import requests + from allauth.socialaccount.providers.oauth2.client import OAuth2Error from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import TwitchProvider class TwitchOAuth2Adapter(OAuth2Adapter): provider_id = TwitchProvider.id access_token_url = 'https://api.twitch.tv/kraken/oauth2/token' authorize_url = 'https://api.twitch.tv/kraken/oauth2/authorize' profile_url = 'https://api.twitch.tv/kraken/user' def complete_login(self, request, app, token, **kwargs): + params = {"oauth_token": token.token, "client_id": app.client_id} + response = requests.get(self.profile_url, params=params) + - resp = requests.get( - self.profile_url, - params={'oauth_token': token.token, - 'client_id': app.client_id}) - extra_data = resp.json() ? ------ + data = response.json() ? ++++ + if response.status_code >= 400: + error = data.get("error", "") + message = data.get("message", "") + raise OAuth2Error("Twitch API Error: %s (%s)" % (error, message)) + + if "_id" not in data: + raise OAuth2Error("Invalid data from Twitch API: %r" % (data)) + - return self.get_provider().sociallogin_from_response(request, + return self.get_provider().sociallogin_from_response(request, data) ? ++++++ - extra_data) oauth2_login = OAuth2LoginView.adapter_view(TwitchOAuth2Adapter) oauth2_callback = OAuth2CallbackView.adapter_view(TwitchOAuth2Adapter)
21
0.724138
14
7
87497c92ca68bf5b58ad932340f8b4cc2a5ae01c
docs/reference/migration/index.asciidoc
docs/reference/migration/index.asciidoc
[[breaking-changes]] = Breaking changes [partintro] -- This section discusses the changes that you need to be aware of when migrating your application from one version of Elasticsearch to another. As a general rule: * Migration between major versions -- e.g. `1.x` to `2.x` -- requires a <<restart-upgrade,full cluster restart>>. * Migration between minor versions -- e.g. `1.x` to `1.y` -- can be performed by <<rolling-upgrades,upgrading one node at a time>>. See <<setup-upgrade>> for more info. -- include::migrate_1_x.asciidoc[] include::migrate_1_0.asciidoc[]
[[breaking-changes]] = Breaking changes [partintro] -- This section discusses the changes that you need to be aware of when migrating your application from one version of Elasticsearch to another. As a general rule: * Migration between major versions -- e.g. `1.x` to `2.x` -- requires a <<restart-upgrade,full cluster restart>>. * Migration between minor versions -- e.g. `1.x` to `1.y` -- can be performed by <<rolling-upgrades,upgrading one node at a time>>. See <<setup-upgrade>> for more info. -- include::migrate_2_0.asciidoc[] include::migrate_1_x.asciidoc[] include::migrate_1_0.asciidoc[]
Add missing link to the 2.0 migration guide.
Docs: Add missing link to the 2.0 migration guide.
AsciiDoc
apache-2.0
anti-social/elasticsearch,winstonewert/elasticsearch,obourgain/elasticsearch,vingupta3/elasticsearch,StefanGor/elasticsearch,kaneshin/elasticsearch,dataduke/elasticsearch,zeroctu/elasticsearch,ivansun1010/elasticsearch,btiernay/elasticsearch,jpountz/elasticsearch,Liziyao/elasticsearch,humandb/elasticsearch,SergVro/elasticsearch,ouyangkongtong/elasticsearch,C-Bish/elasticsearch,TonyChai24/ESSource,opendatasoft/elasticsearch,socialrank/elasticsearch,sdauletau/elasticsearch,sposam/elasticsearch,gingerwizard/elasticsearch,SergVro/elasticsearch,rmuir/elasticsearch,VukDukic/elasticsearch,mikemccand/elasticsearch,likaiwalkman/elasticsearch,sneivandt/elasticsearch,hydro2k/elasticsearch,obourgain/elasticsearch,jango2015/elasticsearch,wbowling/elasticsearch,djschny/elasticsearch,ESamir/elasticsearch,sreeramjayan/elasticsearch,codebunt/elasticsearch,fforbeck/elasticsearch,btiernay/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,TonyChai24/ESSource,gmarz/elasticsearch,rlugojr/elasticsearch,Helen-Zhao/elasticsearch,nellicus/elasticsearch,rento19962/elasticsearch,khiraiwa/elasticsearch,henakamaMSFT/elasticsearch,phani546/elasticsearch,kcompher/elasticsearch,vrkansagara/elasticsearch,dataduke/elasticsearch,glefloch/elasticsearch,kenshin233/elasticsearch,amit-shar/elasticsearch,Chhunlong/elasticsearch,karthikjaps/elasticsearch,djschny/elasticsearch,strapdata/elassandra-test,ImpressTV/elasticsearch,wimvds/elasticsearch,loconsolutions/elasticsearch,achow/elasticsearch,nezirus/elasticsearch,pozhidaevak/elasticsearch,ImpressTV/elasticsearch,scottsom/elasticsearch,sauravmondallive/elasticsearch,skearns64/elasticsearch,kaneshin/elasticsearch,strapdata/elassandra,zeroctu/elasticsearch,vroyer/elassandra,cnfire/elasticsearch-1,aglne/elasticsearch,weipinghe/elasticsearch,lzo/elasticsearch-1,Liziyao/elasticsearch,koxa29/elasticsearch,YosuaMichael/elasticsearch,Siddartha07/elasticsearch,rmuir/elasticsearch,sjohnr/elasticsearch,Rygbee/elasticsearch,overcome/elasticsearch,rento19962/elasticsearch,golubev/elasticsearch,thecocce/elasticsearch,lks21c/elasticsearch,jprante/elasticsearch,sauravmondallive/elasticsearch,onegambler/elasticsearch,ZTE-PaaS/elasticsearch,vingupta3/elasticsearch,kenshin233/elasticsearch,kevinkluge/elasticsearch,wittyameta/elasticsearch,YosuaMichael/elasticsearch,mm0/elasticsearch,wuranbo/elasticsearch,EasonYi/elasticsearch,janmejay/elasticsearch,umeshdangat/elasticsearch,wittyameta/elasticsearch,LeoYao/elasticsearch,HarishAtGitHub/elasticsearch,rhoml/elasticsearch,nilabhsagar/elasticsearch,alexkuk/elasticsearch,mnylen/elasticsearch,mikemccand/elasticsearch,feiqitian/elasticsearch,mjason3/elasticsearch,tkssharma/elasticsearch,pablocastro/elasticsearch,Widen/elasticsearch,NBSW/elasticsearch,lzo/elasticsearch-1,trangvh/elasticsearch,ajhalani/elasticsearch,mm0/elasticsearch,wbowling/elasticsearch,HarishAtGitHub/elasticsearch,apepper/elasticsearch,18098924759/elasticsearch,sdauletau/elasticsearch,javachengwc/elasticsearch,YosuaMichael/elasticsearch,Flipkart/elasticsearch,strapdata/elassandra-test,a2lin/elasticsearch,dylan8902/elasticsearch,glefloch/elasticsearch,knight1128/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,fooljohnny/elasticsearch,schonfeld/elasticsearch,fekaputra/elasticsearch,nazarewk/elasticsearch,Liziyao/elasticsearch,polyfractal/elasticsearch,petmit/elasticsearch,ZTE-PaaS/elasticsearch,smflorentino/elasticsearch,JSCooke/elasticsearch,coding0011/elasticsearch,phani546/elasticsearch,hydro2k/elasticsearch,sposam/elasticsearch,dpursehouse/elasticsearch,xuzha/elasticsearch,spiegela/elasticsearch,tkssharma/elasticsearch,drewr/elasticsearch,dylan8902/elasticsearch,YosuaMichael/elasticsearch,glefloch/elasticsearch,easonC/elasticsearch,cwurm/elasticsearch,ajhalani/elasticsearch,strapdata/elassandra5-rc,opendatasoft/elasticsearch,fekaputra/elasticsearch,fernandozhu/elasticsearch,snikch/elasticsearch,yynil/elasticsearch,ThiagoGarciaAlves/elasticsearch,ajhalani/elasticsearch,EasonYi/elasticsearch,overcome/elasticsearch,Asimov4/elasticsearch,ckclark/elasticsearch,snikch/elasticsearch,ZTE-PaaS/elasticsearch,Charlesdong/elasticsearch,iantruslove/elasticsearch,Liziyao/elasticsearch,springning/elasticsearch,lmtwga/elasticsearch,kevinkluge/elasticsearch,khiraiwa/elasticsearch,strapdata/elassandra,jimczi/elasticsearch,kaneshin/elasticsearch,dataduke/elasticsearch,njlawton/elasticsearch,s1monw/elasticsearch,slavau/elasticsearch,iacdingping/elasticsearch,gingerwizard/elasticsearch,jpountz/elasticsearch,JackyMai/elasticsearch,snikch/elasticsearch,iantruslove/elasticsearch,vietlq/elasticsearch,skearns64/elasticsearch,vietlq/elasticsearch,camilojd/elasticsearch,HonzaKral/elasticsearch,karthikjaps/elasticsearch,kkirsche/elasticsearch,pritishppai/elasticsearch,himanshuag/elasticsearch,wayeast/elasticsearch,sjohnr/elasticsearch,spiegela/elasticsearch,mapr/elasticsearch,lks21c/elasticsearch,ImpressTV/elasticsearch,Shekharrajak/elasticsearch,karthikjaps/elasticsearch,sneivandt/elasticsearch,zhiqinghuang/elasticsearch,iacdingping/elasticsearch,dpursehouse/elasticsearch,masterweb121/elasticsearch,HarishAtGitHub/elasticsearch,LewayneNaidoo/elasticsearch,clintongormley/elasticsearch,Ansh90/elasticsearch,sauravmondallive/elasticsearch,alexbrasetvik/elasticsearch,C-Bish/elasticsearch,dantuffery/elasticsearch,lydonchandra/elasticsearch,nellicus/elasticsearch,pranavraman/elasticsearch,AndreKR/elasticsearch,kimimj/elasticsearch,mbrukman/elasticsearch,gingerwizard/elasticsearch,qwerty4030/elasticsearch,dongjoon-hyun/elasticsearch,pozhidaevak/elasticsearch,Clairebi/ElasticsearchClone,jw0201/elastic,janmejay/elasticsearch,dantuffery/elasticsearch,mgalushka/elasticsearch,karthikjaps/elasticsearch,Chhunlong/elasticsearch,mcku/elasticsearch,jeteve/elasticsearch,jchampion/elasticsearch,andrestc/elasticsearch,avikurapati/elasticsearch,mm0/elasticsearch,AleksKochev/elasticsearch,Kakakakakku/elasticsearch,rajanm/elasticsearch,sauravmondallive/elasticsearch,Flipkart/elasticsearch,Chhunlong/elasticsearch,iamjakob/elasticsearch,s1monw/elasticsearch,nknize/elasticsearch,njlawton/elasticsearch,MichaelLiZhou/elasticsearch,ulkas/elasticsearch,alexshadow007/elasticsearch,njlawton/elasticsearch,KimTaehee/elasticsearch,rajanm/elasticsearch,huanzhong/elasticsearch,ThalaivaStars/OrgRepo1,Brijeshrpatel9/elasticsearch,F0lha/elasticsearch,Widen/elasticsearch,elasticdog/elasticsearch,markharwood/elasticsearch,Asimov4/elasticsearch,LewayneNaidoo/elasticsearch,tsohil/elasticsearch,jpountz/elasticsearch,kubum/elasticsearch,mkis-/elasticsearch,mnylen/elasticsearch,jimczi/elasticsearch,iamjakob/elasticsearch,kcompher/elasticsearch,mmaracic/elasticsearch,kunallimaye/elasticsearch,strapdata/elassandra5-rc,PhaedrusTheGreek/elasticsearch,yongminxia/elasticsearch,davidvgalbraith/elasticsearch,spiegela/elasticsearch,Siddartha07/elasticsearch,opendatasoft/elasticsearch,milodky/elasticsearch,mapr/elasticsearch,mrorii/elasticsearch,pranavraman/elasticsearch,tahaemin/elasticsearch,xingguang2013/elasticsearch,Collaborne/elasticsearch,iamjakob/elasticsearch,yanjunh/elasticsearch,jsgao0/elasticsearch,njlawton/elasticsearch,achow/elasticsearch,iacdingping/elasticsearch,jchampion/elasticsearch,kkirsche/elasticsearch,NBSW/elasticsearch,apepper/elasticsearch,palecur/elasticsearch,glefloch/elasticsearch,LeoYao/elasticsearch,feiqitian/elasticsearch,mapr/elasticsearch,elancom/elasticsearch,nellicus/elasticsearch,sauravmondallive/elasticsearch,GlenRSmith/elasticsearch,btiernay/elasticsearch,alexshadow007/elasticsearch,wangtuo/elasticsearch,pritishppai/elasticsearch,truemped/elasticsearch,maddin2016/elasticsearch,lchennup/elasticsearch,loconsolutions/elasticsearch,Ansh90/elasticsearch,andrejserafim/elasticsearch,wenpos/elasticsearch,mortonsykes/elasticsearch,huypx1292/elasticsearch,rmuir/elasticsearch,IanvsPoplicola/elasticsearch,HonzaKral/elasticsearch,Siddartha07/elasticsearch,andrejserafim/elasticsearch,LewayneNaidoo/elasticsearch,linglaiyao1314/elasticsearch,masaruh/elasticsearch,petmit/elasticsearch,ricardocerq/elasticsearch,nezirus/elasticsearch,rajanm/elasticsearch,sneivandt/elasticsearch,masterweb121/elasticsearch,Ansh90/elasticsearch,GlenRSmith/elasticsearch,dongjoon-hyun/elasticsearch,nilabhsagar/elasticsearch,wangyuxue/elasticsearch,franklanganke/elasticsearch,tebriel/elasticsearch,clintongormley/elasticsearch,nknize/elasticsearch,myelin/elasticsearch,mgalushka/elasticsearch,ydsakyclguozi/elasticsearch,tsohil/elasticsearch,Siddartha07/elasticsearch,fooljohnny/elasticsearch,mm0/elasticsearch,shreejay/elasticsearch,ImpressTV/elasticsearch,fred84/elasticsearch,alexbrasetvik/elasticsearch,sscarduzio/elasticsearch,gingerwizard/elasticsearch,mkis-/elasticsearch,hanswang/elasticsearch,Flipkart/elasticsearch,mkis-/elasticsearch,codebunt/elasticsearch,MichaelLiZhou/elasticsearch,ulkas/elasticsearch,sc0ttkclark/elasticsearch,dongjoon-hyun/elasticsearch,btiernay/elasticsearch,ydsakyclguozi/elasticsearch,bestwpw/elasticsearch,wimvds/elasticsearch,springning/elasticsearch,kimimj/elasticsearch,infusionsoft/elasticsearch,easonC/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,cnfire/elasticsearch-1,AshishThakur/elasticsearch,maddin2016/elasticsearch,SergVro/elasticsearch,myelin/elasticsearch,adrianbk/elasticsearch,codebunt/elasticsearch,jbertouch/elasticsearch,elancom/elasticsearch,luiseduardohdbackup/elasticsearch,likaiwalkman/elasticsearch,koxa29/elasticsearch,ricardocerq/elasticsearch,mm0/elasticsearch,ydsakyclguozi/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,infusionsoft/elasticsearch,chirilo/elasticsearch,infusionsoft/elasticsearch,knight1128/elasticsearch,YosuaMichael/elasticsearch,HarishAtGitHub/elasticsearch,kaneshin/elasticsearch,rlugojr/elasticsearch,heng4fun/elasticsearch,wayeast/elasticsearch,umeshdangat/elasticsearch,dongjoon-hyun/elasticsearch,lightslife/elasticsearch,kunallimaye/elasticsearch,yanjunh/elasticsearch,kubum/elasticsearch,micpalmia/elasticsearch,KimTaehee/elasticsearch,vroyer/elassandra,jeteve/elasticsearch,franklanganke/elasticsearch,koxa29/elasticsearch,mmaracic/elasticsearch,robin13/elasticsearch,himanshuag/elasticsearch,vietlq/elasticsearch,vvcephei/elasticsearch,lmtwga/elasticsearch,Shekharrajak/elasticsearch,pranavraman/elasticsearch,scorpionvicky/elasticsearch,jeteve/elasticsearch,tebriel/elasticsearch,Fsero/elasticsearch,alexbrasetvik/elasticsearch,achow/elasticsearch,javachengwc/elasticsearch,iacdingping/elasticsearch,jimhooker2002/elasticsearch,drewr/elasticsearch,Rygbee/elasticsearch,Brijeshrpatel9/elasticsearch,beiske/elasticsearch,yongminxia/elasticsearch,F0lha/elasticsearch,easonC/elasticsearch,nilabhsagar/elasticsearch,robin13/elasticsearch,chrismwendt/elasticsearch,sjohnr/elasticsearch,yongminxia/elasticsearch,tahaemin/elasticsearch,aglne/elasticsearch,sscarduzio/elasticsearch,drewr/elasticsearch,sarwarbhuiyan/elasticsearch,kubum/elasticsearch,caengcjd/elasticsearch,wimvds/elasticsearch,kimimj/elasticsearch,schonfeld/elasticsearch,Kakakakakku/elasticsearch,yuy168/elasticsearch,trangvh/elasticsearch,kenshin233/elasticsearch,fooljohnny/elasticsearch,beiske/elasticsearch,rento19962/elasticsearch,liweinan0423/elasticsearch,Shekharrajak/elasticsearch,mnylen/elasticsearch,acchen97/elasticsearch,feiqitian/elasticsearch,i-am-Nathan/elasticsearch,xuzha/elasticsearch,F0lha/elasticsearch,shreejay/elasticsearch,Widen/elasticsearch,F0lha/elasticsearch,dantuffery/elasticsearch,kenshin233/elasticsearch,Flipkart/elasticsearch,MisterAndersen/elasticsearch,phani546/elasticsearch,i-am-Nathan/elasticsearch,mikemccand/elasticsearch,queirozfcom/elasticsearch,lks21c/elasticsearch,alexshadow007/elasticsearch,thecocce/elasticsearch,dataduke/elasticsearch,Rygbee/elasticsearch,franklanganke/elasticsearch,Microsoft/elasticsearch,smflorentino/elasticsearch,amit-shar/elasticsearch,jeteve/elasticsearch,geidies/elasticsearch,apepper/elasticsearch,dpursehouse/elasticsearch,kkirsche/elasticsearch,slavau/elasticsearch,ESamir/elasticsearch,kalburgimanjunath/elasticsearch,polyfractal/elasticsearch,sarwarbhuiyan/elasticsearch,martinstuga/elasticsearch,lmtwga/elasticsearch,andrejserafim/elasticsearch,nknize/elasticsearch,wittyameta/elasticsearch,Collaborne/elasticsearch,StefanGor/elasticsearch,beiske/elasticsearch,ulkas/elasticsearch,Uiho/elasticsearch,Chhunlong/elasticsearch,xingguang2013/elasticsearch,mcku/elasticsearch,dylan8902/elasticsearch,kevinkluge/elasticsearch,fforbeck/elasticsearch,ajhalani/elasticsearch,rhoml/elasticsearch,jchampion/elasticsearch,MjAbuz/elasticsearch,golubev/elasticsearch,Stacey-Gammon/elasticsearch,diendt/elasticsearch,kcompher/elasticsearch,yynil/elasticsearch,martinstuga/elasticsearch,AleksKochev/elasticsearch,SergVro/elasticsearch,Liziyao/elasticsearch,wenpos/elasticsearch,lmtwga/elasticsearch,Collaborne/elasticsearch,rajanm/elasticsearch,AndreKR/elasticsearch,clintongormley/elasticsearch,pritishppai/elasticsearch,gfyoung/elasticsearch,djschny/elasticsearch,milodky/elasticsearch,uschindler/elasticsearch,scottsom/elasticsearch,spiegela/elasticsearch,skearns64/elasticsearch,mrorii/elasticsearch,tebriel/elasticsearch,petabytedata/elasticsearch,golubev/elasticsearch,sreeramjayan/elasticsearch,weipinghe/elasticsearch,JSCooke/elasticsearch,areek/elasticsearch,sreeramjayan/elasticsearch,hanswang/elasticsearch,jimczi/elasticsearch,strapdata/elassandra-test,golubev/elasticsearch,jango2015/elasticsearch,anti-social/elasticsearch,jw0201/elastic,lzo/elasticsearch-1,a2lin/elasticsearch,diendt/elasticsearch,iantruslove/elasticsearch,ulkas/elasticsearch,snikch/elasticsearch,lchennup/elasticsearch,mortonsykes/elasticsearch,markwalkom/elasticsearch,wangtuo/elasticsearch,amaliujia/elasticsearch,lchennup/elasticsearch,milodky/elasticsearch,masaruh/elasticsearch,sposam/elasticsearch,mortonsykes/elasticsearch,scottsom/elasticsearch,easonC/elasticsearch,tcucchietti/elasticsearch,mcku/elasticsearch,Uiho/elasticsearch,camilojd/elasticsearch,pritishppai/elasticsearch,sdauletau/elasticsearch,bawse/elasticsearch,F0lha/elasticsearch,mnylen/elasticsearch,Clairebi/ElasticsearchClone,alexkuk/elasticsearch,gmarz/elasticsearch,mmaracic/elasticsearch,AndreKR/elasticsearch,Helen-Zhao/elasticsearch,fred84/elasticsearch,bestwpw/elasticsearch,JervyShi/elasticsearch,Shekharrajak/elasticsearch,kubum/elasticsearch,petmit/elasticsearch,naveenhooda2000/elasticsearch,camilojd/elasticsearch,mgalushka/elasticsearch,iamjakob/elasticsearch,wittyameta/elasticsearch,scorpionvicky/elasticsearch,lchennup/elasticsearch,mkis-/elasticsearch,abibell/elasticsearch,hafkensite/elasticsearch,dpursehouse/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,djschny/elasticsearch,LewayneNaidoo/elasticsearch,wittyameta/elasticsearch,amit-shar/elasticsearch,hydro2k/elasticsearch,sarwarbhuiyan/elasticsearch,davidvgalbraith/elasticsearch,vvcephei/elasticsearch,sposam/elasticsearch,slavau/elasticsearch,sarwarbhuiyan/elasticsearch,springning/elasticsearch,easonC/elasticsearch,likaiwalkman/elasticsearch,lchennup/elasticsearch,alexbrasetvik/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,nrkkalyan/elasticsearch,myelin/elasticsearch,Brijeshrpatel9/elasticsearch,queirozfcom/elasticsearch,GlenRSmith/elasticsearch,Collaborne/elasticsearch,djschny/elasticsearch,huypx1292/elasticsearch,nazarewk/elasticsearch,lightslife/elasticsearch,tcucchietti/elasticsearch,chirilo/elasticsearch,qwerty4030/elasticsearch,snikch/elasticsearch,ivansun1010/elasticsearch,pablocastro/elasticsearch,jbertouch/elasticsearch,avikurapati/elasticsearch,fernandozhu/elasticsearch,yynil/elasticsearch,abibell/elasticsearch,gmarz/elasticsearch,smflorentino/elasticsearch,ESamir/elasticsearch,18098924759/elasticsearch,JervyShi/elasticsearch,areek/elasticsearch,jaynblue/elasticsearch,lightslife/elasticsearch,ouyangkongtong/elasticsearch,pritishppai/elasticsearch,hafkensite/elasticsearch,HonzaKral/elasticsearch,kaneshin/elasticsearch,wayeast/elasticsearch,schonfeld/elasticsearch,humandb/elasticsearch,ThiagoGarciaAlves/elasticsearch,fekaputra/elasticsearch,xpandan/elasticsearch,apepper/elasticsearch,elasticdog/elasticsearch,jeteve/elasticsearch,lydonchandra/elasticsearch,pablocastro/elasticsearch,alexkuk/elasticsearch,Microsoft/elasticsearch,elancom/elasticsearch,HarishAtGitHub/elasticsearch,AshishThakur/elasticsearch,hafkensite/elasticsearch,fernandozhu/elasticsearch,kalburgimanjunath/elasticsearch,andrestc/elasticsearch,wuranbo/elasticsearch,strapdata/elassandra-test,skearns64/elasticsearch,hanst/elasticsearch,szroland/elasticsearch,diendt/elasticsearch,lightslife/elasticsearch,Widen/elasticsearch,jpountz/elasticsearch,mohit/elasticsearch,chrismwendt/elasticsearch,episerver/elasticsearch,ydsakyclguozi/elasticsearch,MaineC/elasticsearch,djschny/elasticsearch,xingguang2013/elasticsearch,mjhennig/elasticsearch,robin13/elasticsearch,linglaiyao1314/elasticsearch,yongminxia/elasticsearch,btiernay/elasticsearch,thecocce/elasticsearch,s1monw/elasticsearch,zkidkid/elasticsearch,ricardocerq/elasticsearch,nrkkalyan/elasticsearch,IanvsPoplicola/elasticsearch,petabytedata/elasticsearch,lmtwga/elasticsearch,clintongormley/elasticsearch,MjAbuz/elasticsearch,overcome/elasticsearch,xingguang2013/elasticsearch,ivansun1010/elasticsearch,MetSystem/elasticsearch,scorpionvicky/elasticsearch,Widen/elasticsearch,kingaj/elasticsearch,ricardocerq/elasticsearch,wuranbo/elasticsearch,henakamaMSFT/elasticsearch,MetSystem/elasticsearch,caengcjd/elasticsearch,tcucchietti/elasticsearch,KimTaehee/elasticsearch,Rygbee/elasticsearch,hanst/elasticsearch,hechunwen/elasticsearch,hafkensite/elasticsearch,gmarz/elasticsearch,mikemccand/elasticsearch,hanst/elasticsearch,brandonkearby/elasticsearch,palecur/elasticsearch,markharwood/elasticsearch,hanswang/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,jango2015/elasticsearch,kingaj/elasticsearch,likaiwalkman/elasticsearch,chirilo/elasticsearch,loconsolutions/elasticsearch,coding0011/elasticsearch,jimczi/elasticsearch,Liziyao/elasticsearch,scorpionvicky/elasticsearch,wayeast/elasticsearch,kenshin233/elasticsearch,mbrukman/elasticsearch,queirozfcom/elasticsearch,robin13/elasticsearch,chrismwendt/elasticsearch,acchen97/elasticsearch,naveenhooda2000/elasticsearch,diendt/elasticsearch,MjAbuz/elasticsearch,anti-social/elasticsearch,strapdata/elassandra,cnfire/elasticsearch-1,nilabhsagar/elasticsearch,AshishThakur/elasticsearch,maddin2016/elasticsearch,ZTE-PaaS/elasticsearch,VukDukic/elasticsearch,zkidkid/elasticsearch,i-am-Nathan/elasticsearch,wenpos/elasticsearch,truemped/elasticsearch,JackyMai/elasticsearch,nellicus/elasticsearch,areek/elasticsearch,Collaborne/elasticsearch,likaiwalkman/elasticsearch,caengcjd/elasticsearch,javachengwc/elasticsearch,ivansun1010/elasticsearch,bawse/elasticsearch,lightslife/elasticsearch,sdauletau/elasticsearch,uschindler/elasticsearch,PhaedrusTheGreek/elasticsearch,lydonchandra/elasticsearch,hirdesh2008/elasticsearch,aglne/elasticsearch,himanshuag/elasticsearch,awislowski/elasticsearch,18098924759/elasticsearch,vrkansagara/elasticsearch,andrestc/elasticsearch,myelin/elasticsearch,humandb/elasticsearch,tsohil/elasticsearch,mcku/elasticsearch,AndreKR/elasticsearch,ESamir/elasticsearch,lmtwga/elasticsearch,jeteve/elasticsearch,Charlesdong/elasticsearch,hafkensite/elasticsearch,jimhooker2002/elasticsearch,truemped/elasticsearch,likaiwalkman/elasticsearch,javachengwc/elasticsearch,wittyameta/elasticsearch,kingaj/elasticsearch,Rygbee/elasticsearch,mjason3/elasticsearch,Helen-Zhao/elasticsearch,vrkansagara/elasticsearch,mute/elasticsearch,weipinghe/elasticsearch,snikch/elasticsearch,kevinkluge/elasticsearch,caengcjd/elasticsearch,PhaedrusTheGreek/elasticsearch,wenpos/elasticsearch,phani546/elasticsearch,mgalushka/elasticsearch,wimvds/elasticsearch,feiqitian/elasticsearch,JervyShi/elasticsearch,tsohil/elasticsearch,artnowo/elasticsearch,slavau/elasticsearch,pritishppai/elasticsearch,tahaemin/elasticsearch,schonfeld/elasticsearch,xpandan/elasticsearch,vingupta3/elasticsearch,GlenRSmith/elasticsearch,strapdata/elassandra5-rc,easonC/elasticsearch,kaneshin/elasticsearch,kunallimaye/elasticsearch,trangvh/elasticsearch,wangtuo/elasticsearch,codebunt/elasticsearch,koxa29/elasticsearch,phani546/elasticsearch,SergVro/elasticsearch,masaruh/elasticsearch,artnowo/elasticsearch,Kakakakakku/elasticsearch,mnylen/elasticsearch,mmaracic/elasticsearch,kalimatas/elasticsearch,yanjunh/elasticsearch,pozhidaevak/elasticsearch,liweinan0423/elasticsearch,ckclark/elasticsearch,queirozfcom/elasticsearch,caengcjd/elasticsearch,wangtuo/elasticsearch,knight1128/elasticsearch,xuzha/elasticsearch,schonfeld/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,mrorii/elasticsearch,nilabhsagar/elasticsearch,heng4fun/elasticsearch,hirdesh2008/elasticsearch,linglaiyao1314/elasticsearch,mkis-/elasticsearch,slavau/elasticsearch,loconsolutions/elasticsearch,EasonYi/elasticsearch,dantuffery/elasticsearch,NBSW/elasticsearch,awislowski/elasticsearch,golubev/elasticsearch,Microsoft/elasticsearch,gfyoung/elasticsearch,karthikjaps/elasticsearch,djschny/elasticsearch,schonfeld/elasticsearch,MetSystem/elasticsearch,ajhalani/elasticsearch,hechunwen/elasticsearch,hechunwen/elasticsearch,F0lha/elasticsearch,mmaracic/elasticsearch,iacdingping/elasticsearch,himanshuag/elasticsearch,geidies/elasticsearch,fekaputra/elasticsearch,Fsero/elasticsearch,infusionsoft/elasticsearch,Siddartha07/elasticsearch,JSCooke/elasticsearch,MaineC/elasticsearch,wenpos/elasticsearch,kalburgimanjunath/elasticsearch,palecur/elasticsearch,geidies/elasticsearch,PhaedrusTheGreek/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,ThiagoGarciaAlves/elasticsearch,markwalkom/elasticsearch,winstonewert/elasticsearch,tahaemin/elasticsearch,MisterAndersen/elasticsearch,mcku/elasticsearch,iantruslove/elasticsearch,MetSystem/elasticsearch,bawse/elasticsearch,scorpionvicky/elasticsearch,vroyer/elasticassandra,mjason3/elasticsearch,nrkkalyan/elasticsearch,markllama/elasticsearch,polyfractal/elasticsearch,brandonkearby/elasticsearch,onegambler/elasticsearch,himanshuag/elasticsearch,kalimatas/elasticsearch,dylan8902/elasticsearch,wangtuo/elasticsearch,janmejay/elasticsearch,szroland/elasticsearch,sjohnr/elasticsearch,Shekharrajak/elasticsearch,linglaiyao1314/elasticsearch,onegambler/elasticsearch,pozhidaevak/elasticsearch,lzo/elasticsearch-1,pablocastro/elasticsearch,rhoml/elasticsearch,AshishThakur/elasticsearch,combinatorist/elasticsearch,vietlq/elasticsearch,hydro2k/elasticsearch,nomoa/elasticsearch,Stacey-Gammon/elasticsearch,tebriel/elasticsearch,vvcephei/elasticsearch,ImpressTV/elasticsearch,strapdata/elassandra5-rc,milodky/elasticsearch,shreejay/elasticsearch,achow/elasticsearch,likaiwalkman/elasticsearch,IanvsPoplicola/elasticsearch,rhoml/elasticsearch,kunallimaye/elasticsearch,Uiho/elasticsearch,MichaelLiZhou/elasticsearch,LeoYao/elasticsearch,queirozfcom/elasticsearch,pranavraman/elasticsearch,MetSystem/elasticsearch,KimTaehee/elasticsearch,yanjunh/elasticsearch,AleksKochev/elasticsearch,huanzhong/elasticsearch,andrestc/elasticsearch,ivansun1010/elasticsearch,nellicus/elasticsearch,iamjakob/elasticsearch,mute/elasticsearch,obourgain/elasticsearch,rmuir/elasticsearch,combinatorist/elasticsearch,kunallimaye/elasticsearch,vvcephei/elasticsearch,rmuir/elasticsearch,polyfractal/elasticsearch,andrestc/elasticsearch,cwurm/elasticsearch,rento19962/elasticsearch,skearns64/elasticsearch,wayeast/elasticsearch,nrkkalyan/elasticsearch,hanswang/elasticsearch,YosuaMichael/elasticsearch,Kakakakakku/elasticsearch,winstonewert/elasticsearch,JackyMai/elasticsearch,dataduke/elasticsearch,wangyuxue/elasticsearch,Collaborne/elasticsearch,mbrukman/elasticsearch,palecur/elasticsearch,luiseduardohdbackup/elasticsearch,Charlesdong/elasticsearch,kalburgimanjunath/elasticsearch,mortonsykes/elasticsearch,humandb/elasticsearch,i-am-Nathan/elasticsearch,queirozfcom/elasticsearch,schonfeld/elasticsearch,Shepard1212/elasticsearch,javachengwc/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,masterweb121/elasticsearch,winstonewert/elasticsearch,i-am-Nathan/elasticsearch,rhoml/elasticsearch,lightslife/elasticsearch,cnfire/elasticsearch-1,rhoml/elasticsearch,nazarewk/elasticsearch,AleksKochev/elasticsearch,amit-shar/elasticsearch,kubum/elasticsearch,phani546/elasticsearch,drewr/elasticsearch,SergVro/elasticsearch,sreeramjayan/elasticsearch,Siddartha07/elasticsearch,nrkkalyan/elasticsearch,mute/elasticsearch,weipinghe/elasticsearch,jimhooker2002/elasticsearch,luiseduardohdbackup/elasticsearch,hanswang/elasticsearch,MichaelLiZhou/elasticsearch,JervyShi/elasticsearch,sdauletau/elasticsearch,Helen-Zhao/elasticsearch,acchen97/elasticsearch,Helen-Zhao/elasticsearch,clintongormley/elasticsearch,EasonYi/elasticsearch,StefanGor/elasticsearch,HarishAtGitHub/elasticsearch,girirajsharma/elasticsearch,sc0ttkclark/elasticsearch,mapr/elasticsearch,myelin/elasticsearch,khiraiwa/elasticsearch,JervyShi/elasticsearch,AndreKR/elasticsearch,amaliujia/elasticsearch,elancom/elasticsearch,sc0ttkclark/elasticsearch,mute/elasticsearch,strapdata/elassandra-test,queirozfcom/elasticsearch,davidvgalbraith/elasticsearch,zkidkid/elasticsearch,acchen97/elasticsearch,andrejserafim/elasticsearch,linglaiyao1314/elasticsearch,ESamir/elasticsearch,AleksKochev/elasticsearch,Siddartha07/elasticsearch,zeroctu/elasticsearch,yongminxia/elasticsearch,kubum/elasticsearch,JervyShi/elasticsearch,knight1128/elasticsearch,koxa29/elasticsearch,mgalushka/elasticsearch,knight1128/elasticsearch,nknize/elasticsearch,iantruslove/elasticsearch,YosuaMichael/elasticsearch,vingupta3/elasticsearch,gfyoung/elasticsearch,dylan8902/elasticsearch,trangvh/elasticsearch,hafkensite/elasticsearch,awislowski/elasticsearch,brandonkearby/elasticsearch,MisterAndersen/elasticsearch,avikurapati/elasticsearch,heng4fun/elasticsearch,jaynblue/elasticsearch,StefanGor/elasticsearch,PhaedrusTheGreek/elasticsearch,acchen97/elasticsearch,Uiho/elasticsearch,NBSW/elasticsearch,ThiagoGarciaAlves/elasticsearch,Uiho/elasticsearch,tahaemin/elasticsearch,ulkas/elasticsearch,mbrukman/elasticsearch,Brijeshrpatel9/elasticsearch,diendt/elasticsearch,LewayneNaidoo/elasticsearch,jimhooker2002/elasticsearch,karthikjaps/elasticsearch,wimvds/elasticsearch,micpalmia/elasticsearch,apepper/elasticsearch,masaruh/elasticsearch,socialrank/elasticsearch,gfyoung/elasticsearch,qwerty4030/elasticsearch,GlenRSmith/elasticsearch,a2lin/elasticsearch,hanst/elasticsearch,fekaputra/elasticsearch,huanzhong/elasticsearch,zeroctu/elasticsearch,Rygbee/elasticsearch,chirilo/elasticsearch,wayeast/elasticsearch,amit-shar/elasticsearch,yuy168/elasticsearch,sdauletau/elasticsearch,avikurapati/elasticsearch,martinstuga/elasticsearch,kimimj/elasticsearch,petmit/elasticsearch,Shekharrajak/elasticsearch,martinstuga/elasticsearch,onegambler/elasticsearch,btiernay/elasticsearch,jimhooker2002/elasticsearch,amaliujia/elasticsearch,fekaputra/elasticsearch,springning/elasticsearch,yynil/elasticsearch,micpalmia/elasticsearch,linglaiyao1314/elasticsearch,episerver/elasticsearch,coding0011/elasticsearch,jaynblue/elasticsearch,18098924759/elasticsearch,hechunwen/elasticsearch,LeoYao/elasticsearch,ThalaivaStars/OrgRepo1,lydonchandra/elasticsearch,yuy168/elasticsearch,alexbrasetvik/elasticsearch,fooljohnny/elasticsearch,zeroctu/elasticsearch,ulkas/elasticsearch,nomoa/elasticsearch,pablocastro/elasticsearch,C-Bish/elasticsearch,onegambler/elasticsearch,gingerwizard/elasticsearch,markwalkom/elasticsearch,MetSystem/elasticsearch,ckclark/elasticsearch,artnowo/elasticsearch,shreejay/elasticsearch,Brijeshrpatel9/elasticsearch,tkssharma/elasticsearch,rlugojr/elasticsearch,kenshin233/elasticsearch,yuy168/elasticsearch,Stacey-Gammon/elasticsearch,strapdata/elassandra-test,smflorentino/elasticsearch,elasticdog/elasticsearch,MichaelLiZhou/elasticsearch,humandb/elasticsearch,zhiqinghuang/elasticsearch,iantruslove/elasticsearch,rlugojr/elasticsearch,fooljohnny/elasticsearch,kalburgimanjunath/elasticsearch,uschindler/elasticsearch,martinstuga/elasticsearch,uschindler/elasticsearch,geidies/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,davidvgalbraith/elasticsearch,mohit/elasticsearch,sjohnr/elasticsearch,infusionsoft/elasticsearch,18098924759/elasticsearch,masterweb121/elasticsearch,adrianbk/elasticsearch,kcompher/elasticsearch,mikemccand/elasticsearch,codebunt/elasticsearch,Charlesdong/elasticsearch,dataduke/elasticsearch,knight1128/elasticsearch,Clairebi/ElasticsearchClone,VukDukic/elasticsearch,beiske/elasticsearch,drewr/elasticsearch,Asimov4/elasticsearch,ouyangkongtong/elasticsearch,markwalkom/elasticsearch,jchampion/elasticsearch,khiraiwa/elasticsearch,HarishAtGitHub/elasticsearch,kalimatas/elasticsearch,rlugojr/elasticsearch,jchampion/elasticsearch,LeoYao/elasticsearch,Brijeshrpatel9/elasticsearch,xingguang2013/elasticsearch,tkssharma/elasticsearch,Asimov4/elasticsearch,wimvds/elasticsearch,gfyoung/elasticsearch,lks21c/elasticsearch,jpountz/elasticsearch,jprante/elasticsearch,jsgao0/elasticsearch,vingupta3/elasticsearch,abibell/elasticsearch,jsgao0/elasticsearch,pranavraman/elasticsearch,hydro2k/elasticsearch,jbertouch/elasticsearch,mohit/elasticsearch,aglne/elasticsearch,mjhennig/elasticsearch,mmaracic/elasticsearch,MaineC/elasticsearch,naveenhooda2000/elasticsearch,Microsoft/elasticsearch,nomoa/elasticsearch,episerver/elasticsearch,sarwarbhuiyan/elasticsearch,elancom/elasticsearch,TonyChai24/ESSource,szroland/elasticsearch,huanzhong/elasticsearch,JackyMai/elasticsearch,markharwood/elasticsearch,fforbeck/elasticsearch,C-Bish/elasticsearch,robin13/elasticsearch,smflorentino/elasticsearch,mortonsykes/elasticsearch,jw0201/elastic,Clairebi/ElasticsearchClone,obourgain/elasticsearch,mute/elasticsearch,scottsom/elasticsearch,davidvgalbraith/elasticsearch,TonyChai24/ESSource,cwurm/elasticsearch,camilojd/elasticsearch,thecocce/elasticsearch,springning/elasticsearch,MjAbuz/elasticsearch,iacdingping/elasticsearch,jimczi/elasticsearch,naveenhooda2000/elasticsearch,coding0011/elasticsearch,Kakakakakku/elasticsearch,rento19962/elasticsearch,petabytedata/elasticsearch,Widen/elasticsearch,ZTE-PaaS/elasticsearch,huanzhong/elasticsearch,codebunt/elasticsearch,petabytedata/elasticsearch,zhiqinghuang/elasticsearch,Fsero/elasticsearch,humandb/elasticsearch,sreeramjayan/elasticsearch,sauravmondallive/elasticsearch,hirdesh2008/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,Rygbee/elasticsearch,achow/elasticsearch,achow/elasticsearch,gmarz/elasticsearch,tahaemin/elasticsearch,clintongormley/elasticsearch,sjohnr/elasticsearch,tsohil/elasticsearch,markwalkom/elasticsearch,Brijeshrpatel9/elasticsearch,NBSW/elasticsearch,nazarewk/elasticsearch,EasonYi/elasticsearch,ImpressTV/elasticsearch,drewr/elasticsearch,wbowling/elasticsearch,springning/elasticsearch,apepper/elasticsearch,lchennup/elasticsearch,opendatasoft/elasticsearch,andrestc/elasticsearch,ouyangkongtong/elasticsearch,dongjoon-hyun/elasticsearch,jaynblue/elasticsearch,Microsoft/elasticsearch,weipinghe/elasticsearch,sc0ttkclark/elasticsearch,infusionsoft/elasticsearch,sarwarbhuiyan/elasticsearch,awislowski/elasticsearch,mcku/elasticsearch,kkirsche/elasticsearch,pablocastro/elasticsearch,MjAbuz/elasticsearch,xingguang2013/elasticsearch,lzo/elasticsearch-1,wittyameta/elasticsearch,slavau/elasticsearch,henakamaMSFT/elasticsearch,kingaj/elasticsearch,hafkensite/elasticsearch,nrkkalyan/elasticsearch,artnowo/elasticsearch,hirdesh2008/elasticsearch,mrorii/elasticsearch,yanjunh/elasticsearch,masterweb121/elasticsearch,nellicus/elasticsearch,mkis-/elasticsearch,mgalushka/elasticsearch,strapdata/elassandra,Collaborne/elasticsearch,luiseduardohdbackup/elasticsearch,brandonkearby/elasticsearch,Chhunlong/elasticsearch,rmuir/elasticsearch,vietlq/elasticsearch,NBSW/elasticsearch,fred84/elasticsearch,wuranbo/elasticsearch,mbrukman/elasticsearch,nezirus/elasticsearch,mjason3/elasticsearch,franklanganke/elasticsearch,jango2015/elasticsearch,scottsom/elasticsearch,camilojd/elasticsearch,jprante/elasticsearch,jchampion/elasticsearch,truemped/elasticsearch,ThalaivaStars/OrgRepo1,truemped/elasticsearch,golubev/elasticsearch,chrismwendt/elasticsearch,alexkuk/elasticsearch,cnfire/elasticsearch-1,chrismwendt/elasticsearch,episerver/elasticsearch,vrkansagara/elasticsearch,Shepard1212/elasticsearch,amit-shar/elasticsearch,geidies/elasticsearch,jango2015/elasticsearch,alexkuk/elasticsearch,markllama/elasticsearch,markllama/elasticsearch,drewr/elasticsearch,s1monw/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,sc0ttkclark/elasticsearch,lzo/elasticsearch-1,Fsero/elasticsearch,anti-social/elasticsearch,combinatorist/elasticsearch,pozhidaevak/elasticsearch,nomoa/elasticsearch,hanst/elasticsearch,rento19962/elasticsearch,alexkuk/elasticsearch,JSCooke/elasticsearch,btiernay/elasticsearch,tsohil/elasticsearch,sposam/elasticsearch,geidies/elasticsearch,szroland/elasticsearch,ckclark/elasticsearch,xpandan/elasticsearch,loconsolutions/elasticsearch,KimTaehee/elasticsearch,pranavraman/elasticsearch,kingaj/elasticsearch,elancom/elasticsearch,a2lin/elasticsearch,fforbeck/elasticsearch,areek/elasticsearch,kingaj/elasticsearch,MjAbuz/elasticsearch,beiske/elasticsearch,jaynblue/elasticsearch,chirilo/elasticsearch,kevinkluge/elasticsearch,janmejay/elasticsearch,umeshdangat/elasticsearch,heng4fun/elasticsearch,markwalkom/elasticsearch,jbertouch/elasticsearch,a2lin/elasticsearch,luiseduardohdbackup/elasticsearch,weipinghe/elasticsearch,luiseduardohdbackup/elasticsearch,vvcephei/elasticsearch,MetSystem/elasticsearch,socialrank/elasticsearch,abibell/elasticsearch,humandb/elasticsearch,petabytedata/elasticsearch,hirdesh2008/elasticsearch,Shepard1212/elasticsearch,bestwpw/elasticsearch,jimhooker2002/elasticsearch,bestwpw/elasticsearch,kalburgimanjunath/elasticsearch,ImpressTV/elasticsearch,janmejay/elasticsearch,andrejserafim/elasticsearch,cwurm/elasticsearch,mm0/elasticsearch,vietlq/elasticsearch,javachengwc/elasticsearch,janmejay/elasticsearch,zhiqinghuang/elasticsearch,onegambler/elasticsearch,masterweb121/elasticsearch,kevinkluge/elasticsearch,zhiqinghuang/elasticsearch,vietlq/elasticsearch,mrorii/elasticsearch,ThalaivaStars/OrgRepo1,zkidkid/elasticsearch,sscarduzio/elasticsearch,linglaiyao1314/elasticsearch,franklanganke/elasticsearch,dylan8902/elasticsearch,markllama/elasticsearch,umeshdangat/elasticsearch,Charlesdong/elasticsearch,uschindler/elasticsearch,Clairebi/ElasticsearchClone,PhaedrusTheGreek/elasticsearch,avikurapati/elasticsearch,yynil/elasticsearch,combinatorist/elasticsearch,ckclark/elasticsearch,dataduke/elasticsearch,infusionsoft/elasticsearch,sposam/elasticsearch,Fsero/elasticsearch,franklanganke/elasticsearch,HonzaKral/elasticsearch,petabytedata/elasticsearch,fforbeck/elasticsearch,overcome/elasticsearch,obourgain/elasticsearch,beiske/elasticsearch,iamjakob/elasticsearch,szroland/elasticsearch,fernandozhu/elasticsearch,ulkas/elasticsearch,zeroctu/elasticsearch,diendt/elasticsearch,markharwood/elasticsearch,xpandan/elasticsearch,MichaelLiZhou/elasticsearch,sscarduzio/elasticsearch,vingupta3/elasticsearch,nknize/elasticsearch,thecocce/elasticsearch,vroyer/elasticassandra,wbowling/elasticsearch,luiseduardohdbackup/elasticsearch,milodky/elasticsearch,kcompher/elasticsearch,Asimov4/elasticsearch,ThalaivaStars/OrgRepo1,tkssharma/elasticsearch,mapr/elasticsearch,wuranbo/elasticsearch,tkssharma/elasticsearch,elancom/elasticsearch,ydsakyclguozi/elasticsearch,acchen97/elasticsearch,qwerty4030/elasticsearch,iantruslove/elasticsearch,fred84/elasticsearch,kimimj/elasticsearch,lks21c/elasticsearch,truemped/elasticsearch,tcucchietti/elasticsearch,davidvgalbraith/elasticsearch,mbrukman/elasticsearch,ThalaivaStars/OrgRepo1,zeroctu/elasticsearch,zkidkid/elasticsearch,dpursehouse/elasticsearch,ThiagoGarciaAlves/elasticsearch,jsgao0/elasticsearch,fekaputra/elasticsearch,combinatorist/elasticsearch,markharwood/elasticsearch,yongminxia/elasticsearch,trangvh/elasticsearch,zhiqinghuang/elasticsearch,dylan8902/elasticsearch,heng4fun/elasticsearch,liweinan0423/elasticsearch,beiske/elasticsearch,huypx1292/elasticsearch,jpountz/elasticsearch,pablocastro/elasticsearch,polyfractal/elasticsearch,Widen/elasticsearch,coding0011/elasticsearch,PhaedrusTheGreek/elasticsearch,huypx1292/elasticsearch,MjAbuz/elasticsearch,xuzha/elasticsearch,micpalmia/elasticsearch,huanzhong/elasticsearch,koxa29/elasticsearch,andrestc/elasticsearch,skearns64/elasticsearch,cwurm/elasticsearch,polyfractal/elasticsearch,IanvsPoplicola/elasticsearch,sneivandt/elasticsearch,kunallimaye/elasticsearch,huypx1292/elasticsearch,VukDukic/elasticsearch,henakamaMSFT/elasticsearch,masterweb121/elasticsearch,milodky/elasticsearch,kkirsche/elasticsearch,mcku/elasticsearch,adrianbk/elasticsearch,adrianbk/elasticsearch,martinstuga/elasticsearch,socialrank/elasticsearch,smflorentino/elasticsearch,naveenhooda2000/elasticsearch,tkssharma/elasticsearch,ckclark/elasticsearch,Asimov4/elasticsearch,mnylen/elasticsearch,sarwarbhuiyan/elasticsearch,anti-social/elasticsearch,MisterAndersen/elasticsearch,njlawton/elasticsearch,nomoa/elasticsearch,elasticdog/elasticsearch,Stacey-Gammon/elasticsearch,jw0201/elastic,caengcjd/elasticsearch,abibell/elasticsearch,glefloch/elasticsearch,lydonchandra/elasticsearch,vroyer/elasticassandra,ThiagoGarciaAlves/elasticsearch,vroyer/elassandra,lzo/elasticsearch-1,lydonchandra/elasticsearch,kkirsche/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,girirajsharma/elasticsearch,thecocce/elasticsearch,hanswang/elasticsearch,girirajsharma/elasticsearch,EasonYi/elasticsearch,rajanm/elasticsearch,TonyChai24/ESSource,Ansh90/elasticsearch,lydonchandra/elasticsearch,liweinan0423/elasticsearch,huypx1292/elasticsearch,lchennup/elasticsearch,spiegela/elasticsearch,vrkansagara/elasticsearch,Uiho/elasticsearch,truemped/elasticsearch,strapdata/elassandra-test,petmit/elasticsearch,hydro2k/elasticsearch,bestwpw/elasticsearch,NBSW/elasticsearch,petabytedata/elasticsearch,jimhooker2002/elasticsearch,adrianbk/elasticsearch,ouyangkongtong/elasticsearch,lightslife/elasticsearch,jprante/elasticsearch,lmtwga/elasticsearch,AndreKR/elasticsearch,Liziyao/elasticsearch,winstonewert/elasticsearch,jw0201/elastic,chirilo/elasticsearch,acchen97/elasticsearch,socialrank/elasticsearch,KimTaehee/elasticsearch,kimimj/elasticsearch,TonyChai24/ESSource,jsgao0/elasticsearch,kingaj/elasticsearch,MaineC/elasticsearch,mbrukman/elasticsearch,mjhennig/elasticsearch,girirajsharma/elasticsearch,micpalmia/elasticsearch,AshishThakur/elasticsearch,nazarewk/elasticsearch,bestwpw/elasticsearch,himanshuag/elasticsearch,bawse/elasticsearch,VukDukic/elasticsearch,awislowski/elasticsearch,18098924759/elasticsearch,abibell/elasticsearch,mjhennig/elasticsearch,Stacey-Gammon/elasticsearch,hirdesh2008/elasticsearch,xuzha/elasticsearch,Shepard1212/elasticsearch,overcome/elasticsearch,maddin2016/elasticsearch,strapdata/elassandra,MisterAndersen/elasticsearch,kubum/elasticsearch,kevinkluge/elasticsearch,MichaelLiZhou/elasticsearch,aglne/elasticsearch,jbertouch/elasticsearch,ESamir/elasticsearch,girirajsharma/elasticsearch,hechunwen/elasticsearch,fred84/elasticsearch,mrorii/elasticsearch,girirajsharma/elasticsearch,hanst/elasticsearch,Fsero/elasticsearch,hirdesh2008/elasticsearch,knight1128/elasticsearch,khiraiwa/elasticsearch,loconsolutions/elasticsearch,tahaemin/elasticsearch,nrkkalyan/elasticsearch,aglne/elasticsearch,hanswang/elasticsearch,yuy168/elasticsearch,jeteve/elasticsearch,markllama/elasticsearch,springning/elasticsearch,henakamaMSFT/elasticsearch,bestwpw/elasticsearch,amaliujia/elasticsearch,ouyangkongtong/elasticsearch,iacdingping/elasticsearch,yynil/elasticsearch,xingguang2013/elasticsearch,bawse/elasticsearch,AshishThakur/elasticsearch,Chhunlong/elasticsearch,kcompher/elasticsearch,sdauletau/elasticsearch,ivansun1010/elasticsearch,Ansh90/elasticsearch,jsgao0/elasticsearch,szroland/elasticsearch,liweinan0423/elasticsearch,onegambler/elasticsearch,mjason3/elasticsearch,rajanm/elasticsearch,areek/elasticsearch,yuy168/elasticsearch,s1monw/elasticsearch,jango2015/elasticsearch,Charlesdong/elasticsearch,mgalushka/elasticsearch,amaliujia/elasticsearch,tsohil/elasticsearch,apepper/elasticsearch,amit-shar/elasticsearch,sneivandt/elasticsearch,kcompher/elasticsearch,LeoYao/elasticsearch,wayeast/elasticsearch,maddin2016/elasticsearch,masaruh/elasticsearch,anti-social/elasticsearch,mjhennig/elasticsearch,nellicus/elasticsearch,pranavraman/elasticsearch,MaineC/elasticsearch,wangyuxue/elasticsearch,shreejay/elasticsearch,kunallimaye/elasticsearch,hydro2k/elasticsearch,xpandan/elasticsearch,JackyMai/elasticsearch,cnfire/elasticsearch-1,yuy168/elasticsearch,ricardocerq/elasticsearch,rento19962/elasticsearch,kimimj/elasticsearch,palecur/elasticsearch,Kakakakakku/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,franklanganke/elasticsearch,mjhennig/elasticsearch,fooljohnny/elasticsearch,caengcjd/elasticsearch,jprante/elasticsearch,Shepard1212/elasticsearch,opendatasoft/elasticsearch,jw0201/elastic,sc0ttkclark/elasticsearch,alexbrasetvik/elasticsearch,iamjakob/elasticsearch,mute/elasticsearch,episerver/elasticsearch,wbowling/elasticsearch,18098924759/elasticsearch,areek/elasticsearch,mnylen/elasticsearch,KimTaehee/elasticsearch,nezirus/elasticsearch,TonyChai24/ESSource,mjhennig/elasticsearch,mute/elasticsearch,vingupta3/elasticsearch,Flipkart/elasticsearch,vrkansagara/elasticsearch,jaynblue/elasticsearch,mapr/elasticsearch,tebriel/elasticsearch,markllama/elasticsearch,alexshadow007/elasticsearch,abibell/elasticsearch,Flipkart/elasticsearch,wimvds/elasticsearch,kenshin233/elasticsearch,feiqitian/elasticsearch,slavau/elasticsearch,Chhunlong/elasticsearch,kalimatas/elasticsearch,umeshdangat/elasticsearch,strapdata/elassandra5-rc,markllama/elasticsearch,mohit/elasticsearch,andrejserafim/elasticsearch,adrianbk/elasticsearch,xpandan/elasticsearch,overcome/elasticsearch,weipinghe/elasticsearch,adrianbk/elasticsearch,ouyangkongtong/elasticsearch,karthikjaps/elasticsearch,Clairebi/ElasticsearchClone,StefanGor/elasticsearch,hechunwen/elasticsearch,Fsero/elasticsearch,markharwood/elasticsearch,socialrank/elasticsearch,wbowling/elasticsearch,EasonYi/elasticsearch,Shekharrajak/elasticsearch,mm0/elasticsearch,sscarduzio/elasticsearch,nezirus/elasticsearch,vvcephei/elasticsearch,pritishppai/elasticsearch,tebriel/elasticsearch,artnowo/elasticsearch,kalburgimanjunath/elasticsearch,C-Bish/elasticsearch,sc0ttkclark/elasticsearch,mohit/elasticsearch,Ansh90/elasticsearch,feiqitian/elasticsearch,ckclark/elasticsearch,jango2015/elasticsearch,kalimatas/elasticsearch,dantuffery/elasticsearch,alexshadow007/elasticsearch,ydsakyclguozi/elasticsearch,brandonkearby/elasticsearch,zhiqinghuang/elasticsearch,achow/elasticsearch,LeoYao/elasticsearch,Ansh90/elasticsearch,Uiho/elasticsearch,camilojd/elasticsearch,JSCooke/elasticsearch,sreeramjayan/elasticsearch,khiraiwa/elasticsearch,areek/elasticsearch,fernandozhu/elasticsearch,qwerty4030/elasticsearch,himanshuag/elasticsearch,elasticdog/elasticsearch,Charlesdong/elasticsearch,jbertouch/elasticsearch,cnfire/elasticsearch-1,opendatasoft/elasticsearch,amaliujia/elasticsearch,wbowling/elasticsearch,yongminxia/elasticsearch,IanvsPoplicola/elasticsearch,tcucchietti/elasticsearch,socialrank/elasticsearch,xuzha/elasticsearch,sposam/elasticsearch,huanzhong/elasticsearch
asciidoc
## Code Before: [[breaking-changes]] = Breaking changes [partintro] -- This section discusses the changes that you need to be aware of when migrating your application from one version of Elasticsearch to another. As a general rule: * Migration between major versions -- e.g. `1.x` to `2.x` -- requires a <<restart-upgrade,full cluster restart>>. * Migration between minor versions -- e.g. `1.x` to `1.y` -- can be performed by <<rolling-upgrades,upgrading one node at a time>>. See <<setup-upgrade>> for more info. -- include::migrate_1_x.asciidoc[] include::migrate_1_0.asciidoc[] ## Instruction: Docs: Add missing link to the 2.0 migration guide. ## Code After: [[breaking-changes]] = Breaking changes [partintro] -- This section discusses the changes that you need to be aware of when migrating your application from one version of Elasticsearch to another. As a general rule: * Migration between major versions -- e.g. `1.x` to `2.x` -- requires a <<restart-upgrade,full cluster restart>>. * Migration between minor versions -- e.g. `1.x` to `1.y` -- can be performed by <<rolling-upgrades,upgrading one node at a time>>. See <<setup-upgrade>> for more info. -- include::migrate_2_0.asciidoc[] include::migrate_1_x.asciidoc[] include::migrate_1_0.asciidoc[]
[[breaking-changes]] = Breaking changes [partintro] -- This section discusses the changes that you need to be aware of when migrating your application from one version of Elasticsearch to another. As a general rule: * Migration between major versions -- e.g. `1.x` to `2.x` -- requires a <<restart-upgrade,full cluster restart>>. * Migration between minor versions -- e.g. `1.x` to `1.y` -- can be performed by <<rolling-upgrades,upgrading one node at a time>>. See <<setup-upgrade>> for more info. -- + include::migrate_2_0.asciidoc[] + include::migrate_1_x.asciidoc[] include::migrate_1_0.asciidoc[] - -
4
0.16
2
2
424f5676aaf1e3ebcb915bb6f69b8da4de25a490
_includes/header.html
_includes/header.html
<header id="page-header" role="banner"> <div class="page-header-content"> <a href="{{ HOME_PATH }}/" class="logo-link">XWP</a> <nav class="page-nav top-nav" role="navigation"> <ul class="header-nav nav-dropdowns js-mobile-expandable"> {% assign pages_list = site.pages | sort: "weight" %} {% assign group = 'navigation' %} {% include Util/pages_list %} </ul> </nav> <a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}" class="main-nav-supplemental-icon" title="Edit this page on GitHub"> <span class="screen-reader-text">Edit on GitHub</span> </a> <a class="toggle-menu-icon js-mobile-expandable-toggle"> <span class="screen-reader-text">Toggle Main Navigation</span> </a> </div> </header> <header class="template-header header-{{ page.page }}"> <div class="grid-inner"> <h1> {% if page.page == "introduction" %} Best Practices<br> <span class="subhead">XWP Engineering</span> {% else %} {{ page.title }} {% endif %} </h1> </div> </header>
<header id="page-header" role="banner"> <div class="page-header-content"> <a href="{{ HOME_PATH }}/" class="logo-link">XWP</a> <nav class="page-nav top-nav" role="navigation"> <ul class="header-nav nav-dropdowns js-mobile-expandable"> {% assign pages_list = site.pages | sort: "weight" %} {% assign group = 'navigation' %} {% include Util/pages_list %} </ul> </nav> <a href="https://github.com/xwp/engineering-best-practices" class="main-nav-supplemental-icon" title="Edit on GitHub"> <span class="screen-reader-text">Edit on GitHub</span> </a> <a class="toggle-menu-icon js-mobile-expandable-toggle"> <span class="screen-reader-text">Toggle Main Navigation</span> </a> </div> </header> <header class="template-header header-{{ page.page }}"> <div class="grid-inner"> <h1> {% if page.page == "introduction" %} Best Practices<br> <span class="subhead">XWP Engineering</span> {% else %} {{ page.title }} {% endif %} </h1> </div> </header>
Revert to original edit on GitHub link
Revert to original edit on GitHub link
HTML
mit
arlenbyrd/engineering-best-practices,arlenbyrd/engineering-best-practices,arlenbyrd/engineering-best-practices
html
## Code Before: <header id="page-header" role="banner"> <div class="page-header-content"> <a href="{{ HOME_PATH }}/" class="logo-link">XWP</a> <nav class="page-nav top-nav" role="navigation"> <ul class="header-nav nav-dropdowns js-mobile-expandable"> {% assign pages_list = site.pages | sort: "weight" %} {% assign group = 'navigation' %} {% include Util/pages_list %} </ul> </nav> <a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}" class="main-nav-supplemental-icon" title="Edit this page on GitHub"> <span class="screen-reader-text">Edit on GitHub</span> </a> <a class="toggle-menu-icon js-mobile-expandable-toggle"> <span class="screen-reader-text">Toggle Main Navigation</span> </a> </div> </header> <header class="template-header header-{{ page.page }}"> <div class="grid-inner"> <h1> {% if page.page == "introduction" %} Best Practices<br> <span class="subhead">XWP Engineering</span> {% else %} {{ page.title }} {% endif %} </h1> </div> </header> ## Instruction: Revert to original edit on GitHub link ## Code After: <header id="page-header" role="banner"> <div class="page-header-content"> <a href="{{ HOME_PATH }}/" class="logo-link">XWP</a> <nav class="page-nav top-nav" role="navigation"> <ul class="header-nav nav-dropdowns js-mobile-expandable"> {% assign pages_list = site.pages | sort: "weight" %} {% assign group = 'navigation' %} {% include Util/pages_list %} </ul> </nav> <a href="https://github.com/xwp/engineering-best-practices" class="main-nav-supplemental-icon" title="Edit on GitHub"> <span class="screen-reader-text">Edit on GitHub</span> </a> <a class="toggle-menu-icon js-mobile-expandable-toggle"> <span class="screen-reader-text">Toggle Main Navigation</span> </a> </div> </header> <header class="template-header header-{{ page.page }}"> <div class="grid-inner"> <h1> {% if page.page == "introduction" %} Best Practices<br> <span class="subhead">XWP Engineering</span> {% else %} {{ page.title }} {% endif %} </h1> </div> </header>
<header id="page-header" role="banner"> <div class="page-header-content"> <a href="{{ HOME_PATH }}/" class="logo-link">XWP</a> <nav class="page-nav top-nav" role="navigation"> <ul class="header-nav nav-dropdowns js-mobile-expandable"> {% assign pages_list = site.pages | sort: "weight" %} {% assign group = 'navigation' %} {% include Util/pages_list %} </ul> </nav> - <a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}" class="main-nav-supplemental-icon" title="Edit this page on GitHub"> + <a href="https://github.com/xwp/engineering-best-practices" class="main-nav-supplemental-icon" title="Edit on GitHub"> <span class="screen-reader-text">Edit on GitHub</span> </a> <a class="toggle-menu-icon js-mobile-expandable-toggle"> <span class="screen-reader-text">Toggle Main Navigation</span> </a> </div> </header> <header class="template-header header-{{ page.page }}"> <div class="grid-inner"> <h1> {% if page.page == "introduction" %} Best Practices<br> <span class="subhead">XWP Engineering</span> {% else %} {{ page.title }} {% endif %} </h1> </div> </header>
2
0.060606
1
1
eed5d1b8d88fa448d5bf93b407b0a42ea7993eb1
lerna.json
lerna.json
{ "lerna": "2.3.1", "packages": [ "packages/*" ], "version": "1.2.0" }
{ "lerna": "2.3.1", "packages": [ "packages/*" ], "version": "1.2.0", "npmClient": "yarn", "useWorkspaces": true }
Use Yarn and Yarn workspace for managing packages
Use Yarn and Yarn workspace for managing packages
JSON
apache-2.0
iCHEF/gypcrete,iCHEF/gypcrete
json
## Code Before: { "lerna": "2.3.1", "packages": [ "packages/*" ], "version": "1.2.0" } ## Instruction: Use Yarn and Yarn workspace for managing packages ## Code After: { "lerna": "2.3.1", "packages": [ "packages/*" ], "version": "1.2.0", "npmClient": "yarn", "useWorkspaces": true }
{ "lerna": "2.3.1", "packages": [ "packages/*" ], - "version": "1.2.0" + "version": "1.2.0", ? + + "npmClient": "yarn", + "useWorkspaces": true }
4
0.571429
3
1
0f575502e77250d33fa6afe1c85fe2e96106d4c9
Cargo.toml
Cargo.toml
[package] name = "icecore" version = "0.0.1" authors = ["Jacques Rott <jacques.rott@gmail.com>"]
[package] name = "icecore" version = "0.0.1" authors = ["Johannes Dollinger <emulbreh@googlemail.com>", "Jacques Rott <jacques.rott@gmail.com>"]
Add Johannes to the authors
Add Johannes to the authors
TOML
mit
jacquesrott/icecore,jacquesrott/icecore
toml
## Code Before: [package] name = "icecore" version = "0.0.1" authors = ["Jacques Rott <jacques.rott@gmail.com>"] ## Instruction: Add Johannes to the authors ## Code After: [package] name = "icecore" version = "0.0.1" authors = ["Johannes Dollinger <emulbreh@googlemail.com>", "Jacques Rott <jacques.rott@gmail.com>"]
[package] name = "icecore" version = "0.0.1" - authors = ["Jacques Rott <jacques.rott@gmail.com>"] + authors = ["Johannes Dollinger <emulbreh@googlemail.com>", "Jacques Rott <jacques.rott@gmail.com>"]
2
0.4
1
1
d99f0394549607d82b85aeb72457094409afdc20
lib/external-request.js
lib/external-request.js
'use strict'; // callback(err, data) function externalRequest(transport, options, callback) { const request = transport.get(options, function (response) { let data = ''; response.on('data', function (chunk) { data += chunk; }); response.on('end', function () { if (response.statusCode === 200) { callback(null, data); } else { callback(new Error(data)); } }); }); request.on('error', function (err) { callback(err); }); } module.exports = externalRequest;
'use strict'; const REQUEST_TIMEOUT = 10000; // callback(err, data) function externalRequest(transport, options, callback) { const request = transport.get(options, function (response) { let data = ''; response.on('data', function (chunk) { data += chunk; }); response.on('end', function () { if (response.statusCode === 200) { callback(null, data); } else { callback(new Error(data)); } }); }); request.setTimeout(REQUEST_TIMEOUT, function () { this.abort(); }); request.on('error', function (err) { callback(err); }); } module.exports = externalRequest;
Set a connection timeout for DevTools methods
Set a connection timeout for DevTools methods Close #194
JavaScript
mit
cyrus-and/chrome-remote-interface,cyrus-and/chrome-remote-interface
javascript
## Code Before: 'use strict'; // callback(err, data) function externalRequest(transport, options, callback) { const request = transport.get(options, function (response) { let data = ''; response.on('data', function (chunk) { data += chunk; }); response.on('end', function () { if (response.statusCode === 200) { callback(null, data); } else { callback(new Error(data)); } }); }); request.on('error', function (err) { callback(err); }); } module.exports = externalRequest; ## Instruction: Set a connection timeout for DevTools methods Close #194 ## Code After: 'use strict'; const REQUEST_TIMEOUT = 10000; // callback(err, data) function externalRequest(transport, options, callback) { const request = transport.get(options, function (response) { let data = ''; response.on('data', function (chunk) { data += chunk; }); response.on('end', function () { if (response.statusCode === 200) { callback(null, data); } else { callback(new Error(data)); } }); }); request.setTimeout(REQUEST_TIMEOUT, function () { this.abort(); }); request.on('error', function (err) { callback(err); }); } module.exports = externalRequest;
'use strict'; + + const REQUEST_TIMEOUT = 10000; // callback(err, data) function externalRequest(transport, options, callback) { const request = transport.get(options, function (response) { let data = ''; response.on('data', function (chunk) { data += chunk; }); response.on('end', function () { if (response.statusCode === 200) { callback(null, data); } else { callback(new Error(data)); } }); }); + request.setTimeout(REQUEST_TIMEOUT, function () { + this.abort(); + }); request.on('error', function (err) { callback(err); }); } module.exports = externalRequest;
5
0.217391
5
0
ce8d0653da88b25a13d837c2f1a396412bf6ea18
runtime/observatory/web/main.dart
runtime/observatory/web/main.dart
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'package:logging/logging.dart'; import 'package:observatory/elements.dart'; main() async { Logger.root.level = Level.INFO; Logger.root.onRecord.listen((LogRecord rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); }); await initElements(); Logger.root.info('Starting Observatory'); document.body.children .insert(0, document.createElement('observatory-application')); }
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'package:logging/logging.dart'; import 'package:observatory/elements.dart'; import 'package:stack_trace/stack_trace.dart'; main() async { Chain.capture(() async { Logger.root.level = Level.INFO; Logger.root.onRecord.listen((LogRecord rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); }); await initElements(); Logger.root.info('Starting Observatory'); document.body.children .insert(0, document.createElement('observatory-application')); }); }
Improve async stack traces in Observatory
Improve async stack traces in Observatory BUG= R=rmacnak@google.com Review URL: https://codereview.chromium.org/2333923007 .
Dart
bsd-3-clause
dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk
dart
## Code Before: // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'package:logging/logging.dart'; import 'package:observatory/elements.dart'; main() async { Logger.root.level = Level.INFO; Logger.root.onRecord.listen((LogRecord rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); }); await initElements(); Logger.root.info('Starting Observatory'); document.body.children .insert(0, document.createElement('observatory-application')); } ## Instruction: Improve async stack traces in Observatory BUG= R=rmacnak@google.com Review URL: https://codereview.chromium.org/2333923007 . ## Code After: // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'package:logging/logging.dart'; import 'package:observatory/elements.dart'; import 'package:stack_trace/stack_trace.dart'; main() async { Chain.capture(() async { Logger.root.level = Level.INFO; Logger.root.onRecord.listen((LogRecord rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); }); await initElements(); Logger.root.info('Starting Observatory'); document.body.children .insert(0, document.createElement('observatory-application')); }); }
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'package:logging/logging.dart'; import 'package:observatory/elements.dart'; + import 'package:stack_trace/stack_trace.dart'; main() async { + Chain.capture(() async { - Logger.root.level = Level.INFO; + Logger.root.level = Level.INFO; ? ++ - Logger.root.onRecord.listen((LogRecord rec) { + Logger.root.onRecord.listen((LogRecord rec) { ? ++ - print('${rec.level.name}: ${rec.time}: ${rec.message}'); + print('${rec.level.name}: ${rec.time}: ${rec.message}'); ? ++ + }); + await initElements(); + Logger.root.info('Starting Observatory'); + document.body.children + .insert(0, document.createElement('observatory-application')); }); - await initElements(); - Logger.root.info('Starting Observatory'); - document.body.children - .insert(0, document.createElement('observatory-application')); }
17
0.944444
10
7
c28de968845f98c6590784df1fe5beff7b3d021e
workshops/templatetags/training_progress.py
workshops/templatetags/training_progress.py
from django import template from django.utils.safestring import mark_safe from workshops.models import TrainingProgress register = template.Library() @register.simple_tag def progress_label(progress): assert isinstance(progress, TrainingProgress) if progress.discarded: additional_label = 'default' else: switch = { 'n': 'warning', 'f': 'danger', 'p': 'success', } additional_label = switch[progress.state] fmt = 'label label-{}'.format(additional_label) return mark_safe(fmt) @register.simple_tag def progress_description(progress): assert isinstance(progress, TrainingProgress) text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format( discarded='discarded ' if progress.discarded else '', state=progress.get_state_display(), type=progress.requirement, evaluated_by=('evaluated by {}'.format( progress.evaluated_by.full_name) if progress.evaluated_by is not None else 'submitted'), day=progress.created_at.strftime('%A %d %B %Y at %H:%M'), notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '', ) text = text[0].upper() + text[1:] return mark_safe(text)
from django import template from django.template.defaultfilters import escape from django.utils.safestring import mark_safe from workshops.models import TrainingProgress register = template.Library() @register.simple_tag def progress_label(progress): assert isinstance(progress, TrainingProgress) if progress.discarded: additional_label = 'default' else: switch = { 'n': 'warning', 'f': 'danger', 'p': 'success', } additional_label = switch[progress.state] fmt = 'label label-{}'.format(additional_label) return mark_safe(fmt) @register.simple_tag def progress_description(progress): assert isinstance(progress, TrainingProgress) text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format( discarded='discarded ' if progress.discarded else '', state=progress.get_state_display(), type=progress.requirement, evaluated_by=('evaluated by {}'.format( progress.evaluated_by.full_name) if progress.evaluated_by is not None else 'submitted'), day=progress.created_at.strftime('%A %d %B %Y at %H:%M'), notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '', ) text = text[0].upper() + text[1:] return mark_safe(text)
Fix unescaped content in training progress description templatetag
Fix unescaped content in training progress description templatetag This template tag was using content from entry notes directly. In cases of some users this messed up the display of label in the templates.
Python
mit
pbanaszkiewicz/amy,pbanaszkiewicz/amy,swcarpentry/amy,swcarpentry/amy,pbanaszkiewicz/amy,swcarpentry/amy
python
## Code Before: from django import template from django.utils.safestring import mark_safe from workshops.models import TrainingProgress register = template.Library() @register.simple_tag def progress_label(progress): assert isinstance(progress, TrainingProgress) if progress.discarded: additional_label = 'default' else: switch = { 'n': 'warning', 'f': 'danger', 'p': 'success', } additional_label = switch[progress.state] fmt = 'label label-{}'.format(additional_label) return mark_safe(fmt) @register.simple_tag def progress_description(progress): assert isinstance(progress, TrainingProgress) text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format( discarded='discarded ' if progress.discarded else '', state=progress.get_state_display(), type=progress.requirement, evaluated_by=('evaluated by {}'.format( progress.evaluated_by.full_name) if progress.evaluated_by is not None else 'submitted'), day=progress.created_at.strftime('%A %d %B %Y at %H:%M'), notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '', ) text = text[0].upper() + text[1:] return mark_safe(text) ## Instruction: Fix unescaped content in training progress description templatetag This template tag was using content from entry notes directly. In cases of some users this messed up the display of label in the templates. ## Code After: from django import template from django.template.defaultfilters import escape from django.utils.safestring import mark_safe from workshops.models import TrainingProgress register = template.Library() @register.simple_tag def progress_label(progress): assert isinstance(progress, TrainingProgress) if progress.discarded: additional_label = 'default' else: switch = { 'n': 'warning', 'f': 'danger', 'p': 'success', } additional_label = switch[progress.state] fmt = 'label label-{}'.format(additional_label) return mark_safe(fmt) @register.simple_tag def progress_description(progress): assert isinstance(progress, TrainingProgress) text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format( discarded='discarded ' if progress.discarded else '', state=progress.get_state_display(), type=progress.requirement, evaluated_by=('evaluated by {}'.format( progress.evaluated_by.full_name) if progress.evaluated_by is not None else 'submitted'), day=progress.created_at.strftime('%A %d %B %Y at %H:%M'), notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '', ) text = text[0].upper() + text[1:] return mark_safe(text)
from django import template + from django.template.defaultfilters import escape from django.utils.safestring import mark_safe from workshops.models import TrainingProgress register = template.Library() @register.simple_tag def progress_label(progress): assert isinstance(progress, TrainingProgress) if progress.discarded: additional_label = 'default' else: switch = { 'n': 'warning', 'f': 'danger', 'p': 'success', } additional_label = switch[progress.state] fmt = 'label label-{}'.format(additional_label) return mark_safe(fmt) @register.simple_tag def progress_description(progress): assert isinstance(progress, TrainingProgress) text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format( discarded='discarded ' if progress.discarded else '', state=progress.get_state_display(), type=progress.requirement, evaluated_by=('evaluated by {}'.format( progress.evaluated_by.full_name) if progress.evaluated_by is not None else 'submitted'), day=progress.created_at.strftime('%A %d %B %Y at %H:%M'), - notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '', + notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '', ? +++++++ + ) text = text[0].upper() + text[1:] return mark_safe(text)
3
0.069767
2
1
0fe13144a90ff2d33b6a1068e5f44bb94dea7acb
demo/select-option/index.html
demo/select-option/index.html
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Select option</title> <link rel="stylesheet" href="../../style/common.css" type="text/css"> <link rel="stylesheet" href="select-option.css" type="text/css"> </head> <body> <section class="description"> <a href="description.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Description</a> </section> <section class="demo"> <h2>Demo</h2> <form action="#"> <fieldset> <label> Take your pick <select> <option>Item A</option> <option selected="selected">Item B</option> </select> </label> </fieldset> </form> </section> <section class="documentation"> <a href="documentation.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Documentation</a> </section> <a href="../../index.html" class="pat-inject" data-pat-inject="source: #global-navigation::element; target: self::element; trigger: autoload">Global navigation</a> <script data-main="../../src/main" src="../../bungledeps/require.js" type="text/javascript" charset="utf-8"></script> </body> </html>
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Select option</title> <link rel="stylesheet" href="../../style/common.css" type="text/css"> <link rel="stylesheet" href="select-option.css" type="text/css"> </head> <body> <section class="description"> <a href="description.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Description</a> </section> <section class="demo"> <h2>Demo</h2> <form action="#"> <fieldset> <label> Take your pick <select> <option>Item A</option> <option selected="selected">Item B</option> </select> </label> </fieldset> </form> </section> <section class="documentation"> <a href="documentation.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Documentation</a> </section> <a href="../../index.html" class="pat-inject" data-pat-inject="source: #global-navigation::element; target: self::element; trigger: autoload">Global navigation</a> <script src="../../bundles/patterns.min.js" type="text/javascript" charset="utf-8"></script> </body> </html>
Use bundle for select-option demo.
Use bundle for select-option demo.
HTML
bsd-3-clause
janga1997/Patterns,janga1997/Patterns,garbas/Patterns,garbas/Patterns,garbas/Patterns,janga1997/Patterns
html
## Code Before: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Select option</title> <link rel="stylesheet" href="../../style/common.css" type="text/css"> <link rel="stylesheet" href="select-option.css" type="text/css"> </head> <body> <section class="description"> <a href="description.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Description</a> </section> <section class="demo"> <h2>Demo</h2> <form action="#"> <fieldset> <label> Take your pick <select> <option>Item A</option> <option selected="selected">Item B</option> </select> </label> </fieldset> </form> </section> <section class="documentation"> <a href="documentation.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Documentation</a> </section> <a href="../../index.html" class="pat-inject" data-pat-inject="source: #global-navigation::element; target: self::element; trigger: autoload">Global navigation</a> <script data-main="../../src/main" src="../../bungledeps/require.js" type="text/javascript" charset="utf-8"></script> </body> </html> ## Instruction: Use bundle for select-option demo. ## Code After: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Select option</title> <link rel="stylesheet" href="../../style/common.css" type="text/css"> <link rel="stylesheet" href="select-option.css" type="text/css"> </head> <body> <section class="description"> <a href="description.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Description</a> </section> <section class="demo"> <h2>Demo</h2> <form action="#"> <fieldset> <label> Take your pick <select> <option>Item A</option> <option selected="selected">Item B</option> </select> </label> </fieldset> </form> </section> <section class="documentation"> <a href="documentation.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Documentation</a> </section> <a href="../../index.html" class="pat-inject" data-pat-inject="source: #global-navigation::element; target: self::element; trigger: autoload">Global navigation</a> <script src="../../bundles/patterns.min.js" type="text/javascript" charset="utf-8"></script> </body> </html>
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Select option</title> <link rel="stylesheet" href="../../style/common.css" type="text/css"> <link rel="stylesheet" href="select-option.css" type="text/css"> </head> <body> <section class="description"> <a href="description.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Description</a> </section> <section class="demo"> <h2>Demo</h2> <form action="#"> <fieldset> <label> Take your pick <select> <option>Item A</option> <option selected="selected">Item B</option> </select> </label> </fieldset> </form> </section> <section class="documentation"> <a href="documentation.md" class="pat-inject" data-pat-inject="source: ::element; target: self::element; trigger: autoload">Documentation</a> </section> <a href="../../index.html" class="pat-inject" data-pat-inject="source: #global-navigation::element; target: self::element; trigger: autoload">Global navigation</a> - <script data-main="../../src/main" src="../../bungledeps/require.js" type="text/javascript" charset="utf-8"></script> ? --------------------------- ^ --- ^^^ ^^ + <script src="../../bundles/patterns.min.js" type="text/javascript" charset="utf-8"></script> ? ^ +++++ ^^^^ ^ </body> </html>
2
0.057143
1
1
31fc5062095900ba2313fa9b3507a2855e5170b0
app/models/application_form.rb
app/models/application_form.rb
class ApplicationForm include ActiveModel::Validations include ActiveModel::Conversion include ActiveModel::Serialization extend ActiveModel::Naming delegate :application, to: :team FIELDS = [:student_name, :student_email, :about_student, :about_pair, :gender_identification_student, :gender_identification_pair, :location, :attended_rg_workshop, :coding_level, :coding_level_pair, :skills, :learing_summary, :learning_since_workshop, :learning_since_workshop_pair, :code_samples, :coaches, :hours_per_coach, :why_team_successful, :projects, :project_period, :minimum_money, :misc_info] MUST_FIELDS = FIELDS - [:misc_info, :minimum_money] attr_accessor *FIELDS attr_reader :current_user, :team validates_presence_of *MUST_FIELDS # def initialize(attributes = {}) # attributes.each do |name, value| # send("#{name}=", value) # end # end def initialize(team: Team.new, current_user: User.new) @team, @current_user = team, current_user end def persisted? application.present? end def fields FIELDS end def attributes fields.inject({}) { |result, field| result[field] = self.send(field); result } end end
class ApplicationForm include ActiveModel::Validations include ActiveModel::Conversion include ActiveModel::Serialization extend ActiveModel::Naming delegate :application, to: :team FIELDS = [:student_name, :student_email, :about_student, :about_pair, :gender_identification_student, :gender_identification_pair, :location, :attended_rg_workshop, :coding_level, :coding_level_pair, :skills, :learing_summary, :learning_since_workshop, :learning_since_workshop_pair, :code_samples, :coaches, :hours_per_coach, :why_team_successful, :projects, :project_period, :minimum_money, :misc_info] MUST_FIELDS = FIELDS - [:misc_info, :minimum_money] attr_accessor *FIELDS attr_reader :current_user, :team validates_presence_of *MUST_FIELDS # def initialize(attributes = {}) # attributes.each do |name, value| # send("#{name}=", value) # end # end def initialize(team: Team.new, current_user: User.new) @team, @current_user = team, current_user end def persisted? application.present? end Role::TEAM_ROLES.each do |role| define_method "as_#{role}?" do # def as_student? team.send(role.pluralize).include? current_user # team.students.include? current_user end # end end def fields FIELDS end def attributes fields.inject({}) { |result, field| result[field] = self.send(field); result } end end
Determine the role of the currently editing user
Determine the role of the currently editing user
Ruby
mit
rails-girls-summer-of-code/rgsoc-teams,ramonh/rgsoc-teams,beanieboi/rgsoc-teams,ramonh/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams,michaelem/rgsoc-teams,beanieboi/rgsoc-teams,michaelem/rgsoc-teams,TeamCheesy/rgsoc-teams,TeamCheesy/rgsoc-teams,beanieboi/rgsoc-teams,michaelem/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams,TeamCheesy/rgsoc-teams,ramonh/rgsoc-teams
ruby
## Code Before: class ApplicationForm include ActiveModel::Validations include ActiveModel::Conversion include ActiveModel::Serialization extend ActiveModel::Naming delegate :application, to: :team FIELDS = [:student_name, :student_email, :about_student, :about_pair, :gender_identification_student, :gender_identification_pair, :location, :attended_rg_workshop, :coding_level, :coding_level_pair, :skills, :learing_summary, :learning_since_workshop, :learning_since_workshop_pair, :code_samples, :coaches, :hours_per_coach, :why_team_successful, :projects, :project_period, :minimum_money, :misc_info] MUST_FIELDS = FIELDS - [:misc_info, :minimum_money] attr_accessor *FIELDS attr_reader :current_user, :team validates_presence_of *MUST_FIELDS # def initialize(attributes = {}) # attributes.each do |name, value| # send("#{name}=", value) # end # end def initialize(team: Team.new, current_user: User.new) @team, @current_user = team, current_user end def persisted? application.present? end def fields FIELDS end def attributes fields.inject({}) { |result, field| result[field] = self.send(field); result } end end ## Instruction: Determine the role of the currently editing user ## Code After: class ApplicationForm include ActiveModel::Validations include ActiveModel::Conversion include ActiveModel::Serialization extend ActiveModel::Naming delegate :application, to: :team FIELDS = [:student_name, :student_email, :about_student, :about_pair, :gender_identification_student, :gender_identification_pair, :location, :attended_rg_workshop, :coding_level, :coding_level_pair, :skills, :learing_summary, :learning_since_workshop, :learning_since_workshop_pair, :code_samples, :coaches, :hours_per_coach, :why_team_successful, :projects, :project_period, :minimum_money, :misc_info] MUST_FIELDS = FIELDS - [:misc_info, :minimum_money] attr_accessor *FIELDS attr_reader :current_user, :team validates_presence_of *MUST_FIELDS # def initialize(attributes = {}) # attributes.each do |name, value| # send("#{name}=", value) # end # end def initialize(team: Team.new, current_user: User.new) @team, @current_user = team, current_user end def persisted? application.present? end Role::TEAM_ROLES.each do |role| define_method "as_#{role}?" do # def as_student? team.send(role.pluralize).include? current_user # team.students.include? current_user end # end end def fields FIELDS end def attributes fields.inject({}) { |result, field| result[field] = self.send(field); result } end end
class ApplicationForm include ActiveModel::Validations include ActiveModel::Conversion include ActiveModel::Serialization extend ActiveModel::Naming delegate :application, to: :team FIELDS = [:student_name, :student_email, :about_student, :about_pair, :gender_identification_student, :gender_identification_pair, :location, :attended_rg_workshop, :coding_level, :coding_level_pair, :skills, :learing_summary, :learning_since_workshop, :learning_since_workshop_pair, :code_samples, :coaches, :hours_per_coach, :why_team_successful, :projects, :project_period, :minimum_money, :misc_info] MUST_FIELDS = FIELDS - [:misc_info, :minimum_money] attr_accessor *FIELDS attr_reader :current_user, :team validates_presence_of *MUST_FIELDS # def initialize(attributes = {}) # attributes.each do |name, value| # send("#{name}=", value) # end # end def initialize(team: Team.new, current_user: User.new) @team, @current_user = team, current_user end def persisted? application.present? end + Role::TEAM_ROLES.each do |role| + define_method "as_#{role}?" do # def as_student? + team.send(role.pluralize).include? current_user # team.students.include? current_user + end # end + end + def fields FIELDS end def attributes fields.inject({}) { |result, field| result[field] = self.send(field); result } end end
6
0.125
6
0
819b9dd5bf7112b72ad8a6955c3b89f3b31fc31e
lib/flying_sphinx/tunnel.rb
lib/flying_sphinx/tunnel.rb
class FlyingSphinx::Tunnel def self.connect(configuration, &block) tunnel = new configuration tunnel.open do |session| session.loop do puts "Channel Count: #{session.channels.count}" block.call end end end def initialize(configuration) @configuration = configuration end def open(&block) session = Net::SSH.start(@configuration.host, 'sphinx', ssh_options) session.forward.remote( db_port, db_host, @configuration.database_port, '0.0.0.0' ) session.loop { !remote_exists?(session) } yield session session.close unless session.closed? ensure session.shutdown unless session.closed? end private def db_host db_config[:host] end def db_port db_config[:port] end def db_config @db_config ||= ActiveRecord::Base.connection.instance_variable_get(:@config) end def ssh_options {:keys => [ File.expand_path('../../../keys/key', __FILE__) ]} end def remote_exists?(session) session.forward.active_remotes.include?( [@configuration.database_port, '0.0.0.0'] ) end end
class FlyingSphinx::Tunnel def self.connect(configuration, &block) tunnel = new configuration tunnel.open do |session| session.loop do return false unless session.busy?(true) block.call end end end def initialize(configuration) @configuration = configuration end def open(&block) session = Net::SSH.start(@configuration.host, 'sphinx', ssh_options) session.forward.remote( db_port, db_host, @configuration.database_port, '0.0.0.0' ) session.loop { !remote_exists?(session) } yield session session.close unless session.closed? ensure session.shutdown unless session.closed? end private def db_host db_config[:host] end def db_port db_config[:port] end def db_config @db_config ||= ActiveRecord::Base.connection.instance_variable_get(:@config) end def ssh_options {:keys => [ File.expand_path('../../../keys/key', __FILE__) ]} end def remote_exists?(session) session.forward.active_remotes.include?( [@configuration.database_port, '0.0.0.0'] ) end end
Stop looping when the session is quiet (port forward no longer exists).
Stop looping when the session is quiet (port forward no longer exists).
Ruby
mit
flying-sphinx/flying-sphinx
ruby
## Code Before: class FlyingSphinx::Tunnel def self.connect(configuration, &block) tunnel = new configuration tunnel.open do |session| session.loop do puts "Channel Count: #{session.channels.count}" block.call end end end def initialize(configuration) @configuration = configuration end def open(&block) session = Net::SSH.start(@configuration.host, 'sphinx', ssh_options) session.forward.remote( db_port, db_host, @configuration.database_port, '0.0.0.0' ) session.loop { !remote_exists?(session) } yield session session.close unless session.closed? ensure session.shutdown unless session.closed? end private def db_host db_config[:host] end def db_port db_config[:port] end def db_config @db_config ||= ActiveRecord::Base.connection.instance_variable_get(:@config) end def ssh_options {:keys => [ File.expand_path('../../../keys/key', __FILE__) ]} end def remote_exists?(session) session.forward.active_remotes.include?( [@configuration.database_port, '0.0.0.0'] ) end end ## Instruction: Stop looping when the session is quiet (port forward no longer exists). ## Code After: class FlyingSphinx::Tunnel def self.connect(configuration, &block) tunnel = new configuration tunnel.open do |session| session.loop do return false unless session.busy?(true) block.call end end end def initialize(configuration) @configuration = configuration end def open(&block) session = Net::SSH.start(@configuration.host, 'sphinx', ssh_options) session.forward.remote( db_port, db_host, @configuration.database_port, '0.0.0.0' ) session.loop { !remote_exists?(session) } yield session session.close unless session.closed? ensure session.shutdown unless session.closed? end private def db_host db_config[:host] end def db_port db_config[:port] end def db_config @db_config ||= ActiveRecord::Base.connection.instance_variable_get(:@config) end def ssh_options {:keys => [ File.expand_path('../../../keys/key', __FILE__) ]} end def remote_exists?(session) session.forward.active_remotes.include?( [@configuration.database_port, '0.0.0.0'] ) end end
class FlyingSphinx::Tunnel def self.connect(configuration, &block) tunnel = new configuration tunnel.open do |session| session.loop do - puts "Channel Count: #{session.channels.count}" + return false unless session.busy?(true) block.call end end end def initialize(configuration) @configuration = configuration end def open(&block) session = Net::SSH.start(@configuration.host, 'sphinx', ssh_options) session.forward.remote( db_port, db_host, @configuration.database_port, '0.0.0.0' ) session.loop { !remote_exists?(session) } yield session session.close unless session.closed? ensure session.shutdown unless session.closed? end private def db_host db_config[:host] end def db_port db_config[:port] end def db_config @db_config ||= ActiveRecord::Base.connection.instance_variable_get(:@config) end def ssh_options {:keys => [ File.expand_path('../../../keys/key', __FILE__) ]} end def remote_exists?(session) session.forward.active_remotes.include?( [@configuration.database_port, '0.0.0.0'] ) end end
2
0.036364
1
1
51f826615e84633901cb9370ec52c25a3f0e8145
prediction-service-builder/examples/spam-detection-python/example-python.sh
prediction-service-builder/examples/spam-detection-python/example-python.sh
rm -f example-python.war curl -X POST \ --form pojo=@GBM_model_python_1463864606917_1.java \ --form jar=@h2o-genmodel.jar \ --form python=@score.py \ --form pythonextra=@vectorizer.pickle \ --form pythonextra=@lib/modelling.py \ --form pythonextra=@lib/__init__.py \ localhost:55000/makepythonwar > example-python.war if [ -s example-python.war ] then echo "Created example-python.war" echo "Run with run-example-python.sh" else echo "Failed to build example.war" exit 1 fi
rm -f example-python.war curl --fail -X POST \ --form pojo=@GBM_model_python_1463864606917_1.java \ --form jar=@h2o-genmodel.jar \ --form python=@score.py \ --form pythonextra=@vectorizer.pickle \ --form pythonextra=@lib/modelling.py \ --form pythonextra=@lib/__init__.py \ localhost:55000/makepythonwar --output example-python.war || exit if [ -s example-python.war ] then echo "Created example-python.war" echo "Run with run-example-python.sh" else echo "Failed to build example.war" exit 1 fi
Improve error processing of WAR generation for example
Improve error processing of WAR generation for example
Shell
agpl-3.0
h2oai/steam,h2oai/steam,h2oai/steam,h2oai/steam,h2oai/steam,h2oai/steam,h2oai/steam,h2oai/steam
shell
## Code Before: rm -f example-python.war curl -X POST \ --form pojo=@GBM_model_python_1463864606917_1.java \ --form jar=@h2o-genmodel.jar \ --form python=@score.py \ --form pythonextra=@vectorizer.pickle \ --form pythonextra=@lib/modelling.py \ --form pythonextra=@lib/__init__.py \ localhost:55000/makepythonwar > example-python.war if [ -s example-python.war ] then echo "Created example-python.war" echo "Run with run-example-python.sh" else echo "Failed to build example.war" exit 1 fi ## Instruction: Improve error processing of WAR generation for example ## Code After: rm -f example-python.war curl --fail -X POST \ --form pojo=@GBM_model_python_1463864606917_1.java \ --form jar=@h2o-genmodel.jar \ --form python=@score.py \ --form pythonextra=@vectorizer.pickle \ --form pythonextra=@lib/modelling.py \ --form pythonextra=@lib/__init__.py \ localhost:55000/makepythonwar --output example-python.war || exit if [ -s example-python.war ] then echo "Created example-python.war" echo "Run with run-example-python.sh" else echo "Failed to build example.war" exit 1 fi
rm -f example-python.war - curl -X POST \ + curl --fail -X POST \ ? +++++++ --form pojo=@GBM_model_python_1463864606917_1.java \ --form jar=@h2o-genmodel.jar \ --form python=@score.py \ --form pythonextra=@vectorizer.pickle \ --form pythonextra=@lib/modelling.py \ --form pythonextra=@lib/__init__.py \ - localhost:55000/makepythonwar > example-python.war ? ^ + localhost:55000/makepythonwar --output example-python.war || exit ? ^^^^^^^^ ++++++++ if [ -s example-python.war ] then echo "Created example-python.war" echo "Run with run-example-python.sh" else echo "Failed to build example.war" exit 1 fi
4
0.190476
2
2
1e71296b638670db1fa4f182114d9dd75e828617
vendor/chef-server-12/templates/default/chef-server.rb.erb
vendor/chef-server-12/templates/default/chef-server.rb.erb
topology '<%= node['chef-server-12']['topology'] %>' api_fqdn '<%= node['chef-server-12']['api_fqdn'] %>' nginx['server_name'] = '<%= node['chef-server-12']['api_fqdn'] %>' <% if node['chef-server-12']['analytics'] || node['chef-server-12']['supermarket'] @applications = {} @applications.merge!({ analytics: { redirect_uri: "https://#{node['chef-server-12']['analytics']['fqdn']}/" } }) if node['chef-server-12']['analytics'] @applications.merge!({ supermarket: { redirect_uri: "https://#{node['chef-server-12']['supermarket']['fqdn']}/auth/chef_oauth2/callback" } }) if node['chef-server-12']['supermarket'] %> oc_id['applications'] = <%= @applications.inspect -%> <% if node['chef-server-12']['analytics'] -%> rabbitmq['vip'] = '<%= node['chef-server-12']['api_fqdn'] %>' rabbitmq['node_ip_address'] = '0.0.0.0' <% end -%> <% end -%>
topology '<%= node['chef-server-12']['topology'] %>' api_fqdn '<%= node['chef-server-12']['api_fqdn'] %>' nginx['server_name'] = '<%= node['chef-server-12']['api_fqdn'] %>' <% if node['chef-server-12']['analytics'] || node['chef-server-12']['supermarket'] @applications = {} @applications.merge!({ analytics: { redirect_uri: "https://#{node['chef-server-12']['analytics']['fqdn']}/" } }) if node['chef-server-12']['analytics'] @applications.merge!({ supermarket: { redirect_uri: "https://#{node['chef-server-12']['supermarket']['fqdn']}/auth/chef_oauth2/callback" } }) if node['chef-server-12']['supermarket'] %> oc_id['vip'] = 'localhost' oc_id['applications'] = <%= @applications.inspect -%> <% if node['chef-server-12']['analytics'] -%> rabbitmq['vip'] = '<%= node['chef-server-12']['api_fqdn'] %>' rabbitmq['node_ip_address'] = '0.0.0.0' <% end -%> <% end -%>
Add `oc_id['vip']` to chef-server config
Add `oc_id['vip']` to chef-server config In Chef Server 12 if /etc/hosts has localhost resolving to both IPv4 and IPv6 IP addresses then rails will bind to the IPv6 address. This breaks access to OC-ID because oc_id['vip'] currently defaults to 127.0.0.1 which breaks OAuth login for Supermarket and Analytics servers This commit adds `oc_id['vip'] = 'localhost'` to fix the above
HTML+ERB
apache-2.0
opscode-cookbooks/delivery-cluster,opscode-cookbooks/delivery-cluster,chef-cookbooks/delivery-cluster,chef-cookbooks/delivery-cluster
html+erb
## Code Before: topology '<%= node['chef-server-12']['topology'] %>' api_fqdn '<%= node['chef-server-12']['api_fqdn'] %>' nginx['server_name'] = '<%= node['chef-server-12']['api_fqdn'] %>' <% if node['chef-server-12']['analytics'] || node['chef-server-12']['supermarket'] @applications = {} @applications.merge!({ analytics: { redirect_uri: "https://#{node['chef-server-12']['analytics']['fqdn']}/" } }) if node['chef-server-12']['analytics'] @applications.merge!({ supermarket: { redirect_uri: "https://#{node['chef-server-12']['supermarket']['fqdn']}/auth/chef_oauth2/callback" } }) if node['chef-server-12']['supermarket'] %> oc_id['applications'] = <%= @applications.inspect -%> <% if node['chef-server-12']['analytics'] -%> rabbitmq['vip'] = '<%= node['chef-server-12']['api_fqdn'] %>' rabbitmq['node_ip_address'] = '0.0.0.0' <% end -%> <% end -%> ## Instruction: Add `oc_id['vip']` to chef-server config In Chef Server 12 if /etc/hosts has localhost resolving to both IPv4 and IPv6 IP addresses then rails will bind to the IPv6 address. This breaks access to OC-ID because oc_id['vip'] currently defaults to 127.0.0.1 which breaks OAuth login for Supermarket and Analytics servers This commit adds `oc_id['vip'] = 'localhost'` to fix the above ## Code After: topology '<%= node['chef-server-12']['topology'] %>' api_fqdn '<%= node['chef-server-12']['api_fqdn'] %>' nginx['server_name'] = '<%= node['chef-server-12']['api_fqdn'] %>' <% if node['chef-server-12']['analytics'] || node['chef-server-12']['supermarket'] @applications = {} @applications.merge!({ analytics: { redirect_uri: "https://#{node['chef-server-12']['analytics']['fqdn']}/" } }) if node['chef-server-12']['analytics'] @applications.merge!({ supermarket: { redirect_uri: "https://#{node['chef-server-12']['supermarket']['fqdn']}/auth/chef_oauth2/callback" } }) if node['chef-server-12']['supermarket'] %> oc_id['vip'] = 'localhost' oc_id['applications'] = <%= @applications.inspect -%> <% if node['chef-server-12']['analytics'] -%> rabbitmq['vip'] = '<%= node['chef-server-12']['api_fqdn'] %>' rabbitmq['node_ip_address'] = '0.0.0.0' <% end -%> <% end -%>
topology '<%= node['chef-server-12']['topology'] %>' api_fqdn '<%= node['chef-server-12']['api_fqdn'] %>' nginx['server_name'] = '<%= node['chef-server-12']['api_fqdn'] %>' <% if node['chef-server-12']['analytics'] || node['chef-server-12']['supermarket'] @applications = {} @applications.merge!({ analytics: { redirect_uri: "https://#{node['chef-server-12']['analytics']['fqdn']}/" } }) if node['chef-server-12']['analytics'] @applications.merge!({ supermarket: { redirect_uri: "https://#{node['chef-server-12']['supermarket']['fqdn']}/auth/chef_oauth2/callback" } }) if node['chef-server-12']['supermarket'] %> + oc_id['vip'] = 'localhost' oc_id['applications'] = <%= @applications.inspect -%> <% if node['chef-server-12']['analytics'] -%> rabbitmq['vip'] = '<%= node['chef-server-12']['api_fqdn'] %>' rabbitmq['node_ip_address'] = '0.0.0.0' <% end -%> <% end -%>
1
0.04
1
0
f12d1d1cb96447e9bd83a5d7fb394ca733caf186
download/index.html
download/index.html
--- layout: page title: Download commentsEnabled: true permalink: /download/ --- <p> As version 0.6.0 release is approaching we are going to list snapshots here. </p> {% include download/past-releases.html %} <!-- vim: set noai ts=4 sw=4 expandtab: -->
--- layout: page title: Download commentsEnabled: true permalink: /download/ --- <h3>Version 0.6.0 Snapshots</h3> <p>Latest Snapshot Released on: 25 Oct 2015</p> <h4>64-bit image</h4> <a class="btn btn-primary" href="http://sourceforge.net/projects/mauios/files/snapshots/hawaii-20151025-x86_64.iso/download">Download</a> <ul> <li><strong>SHA1:</strong> 748781b6280a6e99830621f293ec3333da52a785</li> <li><strong>SHA256:</strong> f2b7e5bf1863b8c239adc77a5ea8be54e8c945da7f0fc496eaac015998b6b083</li> </ul> <h4>Release Notes</h4> <p> Hardware supported by Open Source drivers should work. Here's the list of supported GPUs: </p> <ul> <li>Intel: i915 or newer cards</li> <li>AMD/ATI: using the open source driver except for cards supported by radeonsi</li> <li>NVIDIA: cards supported by the nouveau open source driver</li> <li>VMware</li> <li>QEMU and VirtualBox are not currently supported due to lack of drivers.</li> </ul> <p> If you try the ISO image on VMware, please enable 3D acceleration. </p> <p> To do so select the virtual machine, click on the VM → Settings menu item, now in the Hardware tab select Display and check Accelerate 3d graphics. </p> <h4>Known Issues</h4> <p> The user interface is not fully rendered on virtual machines so it's currently best to test the snapshots on bare metal. </p> <!-- vim: set noai ts=4 sw=4 expandtab: -->
Update download page with latest snapshot
Update download page with latest snapshot
HTML
mit
hawaii-desktop/hawaii-desktop.github.io,hawaii-desktop/hawaii-desktop.github.io,hawaii-desktop/hawaii-desktop.github.io
html
## Code Before: --- layout: page title: Download commentsEnabled: true permalink: /download/ --- <p> As version 0.6.0 release is approaching we are going to list snapshots here. </p> {% include download/past-releases.html %} <!-- vim: set noai ts=4 sw=4 expandtab: --> ## Instruction: Update download page with latest snapshot ## Code After: --- layout: page title: Download commentsEnabled: true permalink: /download/ --- <h3>Version 0.6.0 Snapshots</h3> <p>Latest Snapshot Released on: 25 Oct 2015</p> <h4>64-bit image</h4> <a class="btn btn-primary" href="http://sourceforge.net/projects/mauios/files/snapshots/hawaii-20151025-x86_64.iso/download">Download</a> <ul> <li><strong>SHA1:</strong> 748781b6280a6e99830621f293ec3333da52a785</li> <li><strong>SHA256:</strong> f2b7e5bf1863b8c239adc77a5ea8be54e8c945da7f0fc496eaac015998b6b083</li> </ul> <h4>Release Notes</h4> <p> Hardware supported by Open Source drivers should work. Here's the list of supported GPUs: </p> <ul> <li>Intel: i915 or newer cards</li> <li>AMD/ATI: using the open source driver except for cards supported by radeonsi</li> <li>NVIDIA: cards supported by the nouveau open source driver</li> <li>VMware</li> <li>QEMU and VirtualBox are not currently supported due to lack of drivers.</li> </ul> <p> If you try the ISO image on VMware, please enable 3D acceleration. </p> <p> To do so select the virtual machine, click on the VM → Settings menu item, now in the Hardware tab select Display and check Accelerate 3d graphics. </p> <h4>Known Issues</h4> <p> The user interface is not fully rendered on virtual machines so it's currently best to test the snapshots on bare metal. </p> <!-- vim: set noai ts=4 sw=4 expandtab: -->
--- layout: page title: Download commentsEnabled: true permalink: /download/ --- + <h3>Version 0.6.0 Snapshots</h3> + <p>Latest Snapshot Released on: 25 Oct 2015</p> + + <h4>64-bit image</h4> + <a class="btn btn-primary" href="http://sourceforge.net/projects/mauios/files/snapshots/hawaii-20151025-x86_64.iso/download">Download</a> + <ul> + <li><strong>SHA1:</strong> 748781b6280a6e99830621f293ec3333da52a785</li> + <li><strong>SHA256:</strong> f2b7e5bf1863b8c239adc77a5ea8be54e8c945da7f0fc496eaac015998b6b083</li> + </ul> + + <h4>Release Notes</h4> + <p> - As version 0.6.0 release is approaching we are going to list snapshots here. + Hardware supported by Open Source drivers should work. + Here's the list of supported GPUs: </p> - {% include download/past-releases.html %} + <ul> + <li>Intel: i915 or newer cards</li> + <li>AMD/ATI: using the open source driver except for cards supported by radeonsi</li> + <li>NVIDIA: cards supported by the nouveau open source driver</li> + <li>VMware</li> + <li>QEMU and VirtualBox are not currently supported due to lack of drivers.</li> + </ul> + + <p> + If you try the ISO image on VMware, please enable 3D acceleration. + </p> + + <p> + To do so select the virtual machine, click on the VM → Settings menu item, now in the Hardware tab select Display and check Accelerate 3d graphics. + </p> + + <h4>Known Issues</h4> + + <p> + The user interface is not fully rendered on virtual machines so it's currently best to + test the snapshots on bare metal. + </p> <!-- vim: set noai ts=4 sw=4 expandtab: -->
38
2.714286
36
2
93068f92d27f33a3d9a5ae04ddd957ef3dab763c
Form/DataTransformer/JsonToArrayTransformer.php
Form/DataTransformer/JsonToArrayTransformer.php
<?php /** * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr> * @license: MIT */ namespace IDCI\Bundle\ExtraFormBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; class JsonToArrayTransformer implements DataTransformerInterface { /** * {@inheritdoc} */ public function transform($value) { if (null === $value) { return ""; } return json_encode($value); } /** * {@inheritdoc} */ public function reverseTransform($value) { return json_decode($value, true); } }
<?php /** * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr> * @license: MIT */ namespace IDCI\Bundle\ExtraFormBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; class JsonToArrayTransformer implements DataTransformerInterface { /** * {@inheritdoc} */ public function transform($value) { if (null === $value) { return ""; } if (is_array($value)) { return json_encode($value); } return $value; } /** * {@inheritdoc} */ public function reverseTransform($value) { $decoded = json_decode($value, true); return null === $decoded ? $value : $decoded; } }
Improve json to array transformer
Improve json to array transformer
PHP
mit
IDCI-Consulting/ExtraFormBundle,IDCI-Consulting/ExtraFormBundle
php
## Code Before: <?php /** * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr> * @license: MIT */ namespace IDCI\Bundle\ExtraFormBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; class JsonToArrayTransformer implements DataTransformerInterface { /** * {@inheritdoc} */ public function transform($value) { if (null === $value) { return ""; } return json_encode($value); } /** * {@inheritdoc} */ public function reverseTransform($value) { return json_decode($value, true); } } ## Instruction: Improve json to array transformer ## Code After: <?php /** * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr> * @license: MIT */ namespace IDCI\Bundle\ExtraFormBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; class JsonToArrayTransformer implements DataTransformerInterface { /** * {@inheritdoc} */ public function transform($value) { if (null === $value) { return ""; } if (is_array($value)) { return json_encode($value); } return $value; } /** * {@inheritdoc} */ public function reverseTransform($value) { $decoded = json_decode($value, true); return null === $decoded ? $value : $decoded; } }
<?php /** * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr> * @license: MIT */ namespace IDCI\Bundle\ExtraFormBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; class JsonToArrayTransformer implements DataTransformerInterface { /** * {@inheritdoc} */ public function transform($value) { if (null === $value) { return ""; } + if (is_array($value)) { - return json_encode($value); + return json_encode($value); ? +++ + } + + return $value; } /** * {@inheritdoc} */ public function reverseTransform($value) { - return json_decode($value, true); ? ^ ^^^^ + $decoded = json_decode($value, true); ? ^^ ^^^^^^^ + + return null === $decoded ? $value : $decoded; } }
10
0.277778
8
2
646a248d59f835264729b48a0116d51089f6113e
oscar/templatetags/currency_filters.py
oscar/templatetags/currency_filters.py
from decimal import Decimal as D, InvalidOperation from django import template from django.conf import settings from babel.numbers import format_currency register = template.Library() @register.filter(name='currency') def currency(value): """ Format decimal value as currency """ try: value = D(value) except (TypeError, InvalidOperation): return u"" # Using Babel's currency formatting # http://packages.python.org/Babel/api/babel.numbers-module.html#format_currency kwargs = { 'currency': settings.OSCAR_DEFAULT_CURRENCY, 'format': getattr(settings, 'OSCAR_CURRENCY_FORMAT', None)} locale = getattr(settings, 'OSCAR_CURRENCY_LOCALE', None) if locale: kwargs['locale'] = locale return format_currency(value, **kwargs)
from decimal import Decimal as D, InvalidOperation from django import template from django.conf import settings from babel.numbers import format_currency register = template.Library() @register.filter(name='currency') def currency(value): """ Format decimal value as currency """ try: value = D(value) except (TypeError, InvalidOperation): return u"" # Using Babel's currency formatting # http://babel.pocoo.org/docs/api/numbers/#babel.numbers.format_currency kwargs = { 'currency': settings.OSCAR_DEFAULT_CURRENCY, 'format': getattr(settings, 'OSCAR_CURRENCY_FORMAT', None)} locale = getattr(settings, 'OSCAR_CURRENCY_LOCALE', None) if locale: kwargs['locale'] = locale return format_currency(value, **kwargs)
Replace broken babel documentation link
Replace broken babel documentation link According to Babel's PyPI package page, http://babel.pocoo.org/docs/ is the official documentation website.
Python
bsd-3-clause
lijoantony/django-oscar,faratro/django-oscar,michaelkuty/django-oscar,MatthewWilkes/django-oscar,django-oscar/django-oscar,dongguangming/django-oscar,taedori81/django-oscar,pasqualguerrero/django-oscar,marcoantoniooliveira/labweb,faratro/django-oscar,Jannes123/django-oscar,binarydud/django-oscar,Jannes123/django-oscar,solarissmoke/django-oscar,faratro/django-oscar,pdonadeo/django-oscar,ademuk/django-oscar,vovanbo/django-oscar,michaelkuty/django-oscar,okfish/django-oscar,thechampanurag/django-oscar,sasha0/django-oscar,rocopartners/django-oscar,binarydud/django-oscar,pdonadeo/django-oscar,elliotthill/django-oscar,john-parton/django-oscar,adamend/django-oscar,ahmetdaglarbas/e-commerce,mexeniz/django-oscar,Jannes123/django-oscar,monikasulik/django-oscar,rocopartners/django-oscar,josesanch/django-oscar,QLGu/django-oscar,Bogh/django-oscar,dongguangming/django-oscar,spartonia/django-oscar,bschuon/django-oscar,vovanbo/django-oscar,marcoantoniooliveira/labweb,WadeYuChen/django-oscar,manevant/django-oscar,anentropic/django-oscar,django-oscar/django-oscar,thechampanurag/django-oscar,Jannes123/django-oscar,solarissmoke/django-oscar,marcoantoniooliveira/labweb,jinnykoo/wuyisj,monikasulik/django-oscar,Bogh/django-oscar,bnprk/django-oscar,lijoantony/django-oscar,adamend/django-oscar,okfish/django-oscar,itbabu/django-oscar,jinnykoo/wuyisj,kapt/django-oscar,jinnykoo/wuyisj.com,pasqualguerrero/django-oscar,MatthewWilkes/django-oscar,anentropic/django-oscar,DrOctogon/unwash_ecom,josesanch/django-oscar,WadeYuChen/django-oscar,makielab/django-oscar,WillisXChen/django-oscar,manevant/django-oscar,faratro/django-oscar,john-parton/django-oscar,itbabu/django-oscar,spartonia/django-oscar,kapari/django-oscar,WillisXChen/django-oscar,ademuk/django-oscar,thechampanurag/django-oscar,kapari/django-oscar,saadatqadri/django-oscar,machtfit/django-oscar,makielab/django-oscar,sonofatailor/django-oscar,jinnykoo/christmas,michaelkuty/django-oscar,makielab/django-oscar,okfish/django-oscar,manevant/django-oscar,DrOctogon/unwash_ecom,taedori81/django-oscar,Idematica/django-oscar,Idematica/django-oscar,nickpack/django-oscar,jinnykoo/christmas,ahmetdaglarbas/e-commerce,mexeniz/django-oscar,vovanbo/django-oscar,jinnykoo/wuyisj.com,okfish/django-oscar,mexeniz/django-oscar,jinnykoo/wuyisj.com,machtfit/django-oscar,itbabu/django-oscar,bschuon/django-oscar,dongguangming/django-oscar,MatthewWilkes/django-oscar,anentropic/django-oscar,machtfit/django-oscar,Idematica/django-oscar,michaelkuty/django-oscar,jinnykoo/wuyisj.com,sasha0/django-oscar,amirrpp/django-oscar,monikasulik/django-oscar,bnprk/django-oscar,elliotthill/django-oscar,spartonia/django-oscar,lijoantony/django-oscar,jinnykoo/wuyisj,nickpack/django-oscar,sonofatailor/django-oscar,nfletton/django-oscar,jmt4/django-oscar,ka7eh/django-oscar,WadeYuChen/django-oscar,WillisXChen/django-oscar,eddiep1101/django-oscar,rocopartners/django-oscar,saadatqadri/django-oscar,binarydud/django-oscar,jlmadurga/django-oscar,django-oscar/django-oscar,itbabu/django-oscar,ademuk/django-oscar,jmt4/django-oscar,sasha0/django-oscar,nfletton/django-oscar,DrOctogon/unwash_ecom,taedori81/django-oscar,Bogh/django-oscar,ahmetdaglarbas/e-commerce,anentropic/django-oscar,binarydud/django-oscar,WadeYuChen/django-oscar,jlmadurga/django-oscar,makielab/django-oscar,marcoantoniooliveira/labweb,nfletton/django-oscar,manevant/django-oscar,nickpack/django-oscar,lijoantony/django-oscar,taedori81/django-oscar,sonofatailor/django-oscar,ahmetdaglarbas/e-commerce,kapari/django-oscar,ka7eh/django-oscar,saadatqadri/django-oscar,bnprk/django-oscar,solarissmoke/django-oscar,john-parton/django-oscar,solarissmoke/django-oscar,QLGu/django-oscar,kapt/django-oscar,john-parton/django-oscar,WillisXChen/django-oscar,jlmadurga/django-oscar,elliotthill/django-oscar,pdonadeo/django-oscar,pasqualguerrero/django-oscar,amirrpp/django-oscar,nickpack/django-oscar,bschuon/django-oscar,kapari/django-oscar,sasha0/django-oscar,MatthewWilkes/django-oscar,Bogh/django-oscar,nfletton/django-oscar,pasqualguerrero/django-oscar,dongguangming/django-oscar,amirrpp/django-oscar,saadatqadri/django-oscar,josesanch/django-oscar,QLGu/django-oscar,monikasulik/django-oscar,ademuk/django-oscar,spartonia/django-oscar,jlmadurga/django-oscar,jinnykoo/christmas,ka7eh/django-oscar,rocopartners/django-oscar,sonofatailor/django-oscar,eddiep1101/django-oscar,QLGu/django-oscar,jmt4/django-oscar,adamend/django-oscar,adamend/django-oscar,eddiep1101/django-oscar,bnprk/django-oscar,jinnykoo/wuyisj,WillisXChen/django-oscar,amirrpp/django-oscar,eddiep1101/django-oscar,vovanbo/django-oscar,bschuon/django-oscar,kapt/django-oscar,mexeniz/django-oscar,WillisXChen/django-oscar,ka7eh/django-oscar,thechampanurag/django-oscar,pdonadeo/django-oscar,jmt4/django-oscar,django-oscar/django-oscar
python
## Code Before: from decimal import Decimal as D, InvalidOperation from django import template from django.conf import settings from babel.numbers import format_currency register = template.Library() @register.filter(name='currency') def currency(value): """ Format decimal value as currency """ try: value = D(value) except (TypeError, InvalidOperation): return u"" # Using Babel's currency formatting # http://packages.python.org/Babel/api/babel.numbers-module.html#format_currency kwargs = { 'currency': settings.OSCAR_DEFAULT_CURRENCY, 'format': getattr(settings, 'OSCAR_CURRENCY_FORMAT', None)} locale = getattr(settings, 'OSCAR_CURRENCY_LOCALE', None) if locale: kwargs['locale'] = locale return format_currency(value, **kwargs) ## Instruction: Replace broken babel documentation link According to Babel's PyPI package page, http://babel.pocoo.org/docs/ is the official documentation website. ## Code After: from decimal import Decimal as D, InvalidOperation from django import template from django.conf import settings from babel.numbers import format_currency register = template.Library() @register.filter(name='currency') def currency(value): """ Format decimal value as currency """ try: value = D(value) except (TypeError, InvalidOperation): return u"" # Using Babel's currency formatting # http://babel.pocoo.org/docs/api/numbers/#babel.numbers.format_currency kwargs = { 'currency': settings.OSCAR_DEFAULT_CURRENCY, 'format': getattr(settings, 'OSCAR_CURRENCY_FORMAT', None)} locale = getattr(settings, 'OSCAR_CURRENCY_LOCALE', None) if locale: kwargs['locale'] = locale return format_currency(value, **kwargs)
from decimal import Decimal as D, InvalidOperation from django import template from django.conf import settings from babel.numbers import format_currency register = template.Library() @register.filter(name='currency') def currency(value): """ Format decimal value as currency """ try: value = D(value) except (TypeError, InvalidOperation): return u"" # Using Babel's currency formatting - # http://packages.python.org/Babel/api/babel.numbers-module.html#format_currency + # http://babel.pocoo.org/docs/api/numbers/#babel.numbers.format_currency kwargs = { 'currency': settings.OSCAR_DEFAULT_CURRENCY, 'format': getattr(settings, 'OSCAR_CURRENCY_FORMAT', None)} locale = getattr(settings, 'OSCAR_CURRENCY_LOCALE', None) if locale: kwargs['locale'] = locale return format_currency(value, **kwargs)
2
0.074074
1
1
c2b4d0baa04c329d7dbcc0958af79f134b15d11b
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: working_directory: /go/src/github.com/domainr/whois docker: - image: domainr/ci:latest steps: - checkout - run: name: go get command: go get -t -d -v ./... - run: name: go build command: go build -v # Run Tests - run: mkdir -p /tmp/test-results - run: name: Run Tests command: | trap "go-junit-report < ${TEST_RESULTS}/go-test.log > ${TEST_RESULTS}/go-test-report.xml" EXIT go test -v -race ./... | tee ${TEST_RESULTS}/go-test.log # Report - store_test_results: path: /tmp/test-results - store_artifacts: path: /tmp/test-results destination: results
version: 2 jobs: build: working_directory: /go/src/github.com/domainr/whois docker: - image: domainr/ci:latest steps: - checkout - run: name: go get command: go get -t -d -v ./... - run: name: go build command: go build -v # Run Tests - run: mkdir -p test-results - run: name: Run Tests command: | trap "go-junit-report < test-results/go-test.log > test-results/go-test-report.xml" EXIT go test -v -race ./... | tee test-results/go-test.log # Report - store_test_results: path: test-results - store_artifacts: path: test-results destination: results
Fix test results folder path
Fix test results folder path
YAML
mit
domainr/whois
yaml
## Code Before: version: 2 jobs: build: working_directory: /go/src/github.com/domainr/whois docker: - image: domainr/ci:latest steps: - checkout - run: name: go get command: go get -t -d -v ./... - run: name: go build command: go build -v # Run Tests - run: mkdir -p /tmp/test-results - run: name: Run Tests command: | trap "go-junit-report < ${TEST_RESULTS}/go-test.log > ${TEST_RESULTS}/go-test-report.xml" EXIT go test -v -race ./... | tee ${TEST_RESULTS}/go-test.log # Report - store_test_results: path: /tmp/test-results - store_artifacts: path: /tmp/test-results destination: results ## Instruction: Fix test results folder path ## Code After: version: 2 jobs: build: working_directory: /go/src/github.com/domainr/whois docker: - image: domainr/ci:latest steps: - checkout - run: name: go get command: go get -t -d -v ./... - run: name: go build command: go build -v # Run Tests - run: mkdir -p test-results - run: name: Run Tests command: | trap "go-junit-report < test-results/go-test.log > test-results/go-test-report.xml" EXIT go test -v -race ./... | tee test-results/go-test.log # Report - store_test_results: path: test-results - store_artifacts: path: test-results destination: results
version: 2 jobs: build: working_directory: /go/src/github.com/domainr/whois docker: - image: domainr/ci:latest steps: - checkout - run: name: go get command: go get -t -d -v ./... - run: name: go build command: go build -v # Run Tests - - run: mkdir -p /tmp/test-results ? ----- + - run: mkdir -p test-results - run: name: Run Tests command: | - trap "go-junit-report < ${TEST_RESULTS}/go-test.log > ${TEST_RESULTS}/go-test-report.xml" EXIT + trap "go-junit-report < test-results/go-test.log > test-results/go-test-report.xml" EXIT - go test -v -race ./... | tee ${TEST_RESULTS}/go-test.log ? ^^^^^^^^^^^^^^^ + go test -v -race ./... | tee test-results/go-test.log ? ^^^^^^^^^^^^ # Report - store_test_results: - path: /tmp/test-results ? ----- + path: test-results - store_artifacts: - path: /tmp/test-results ? ----- + path: test-results destination: results
10
0.344828
5
5
fc6ff975c610299599c7f0230d9e459929f52693
lib/aweplug/helpers/searchisko_social.rb
lib/aweplug/helpers/searchisko_social.rb
module Aweplug module Helpers module SearchiskoSocial def add_social_links contributor unless contributor['accounts'].nil? contributor['social'] = contributor['accounts'].inject({}) do |res, account| case account['domain'] when 'jboss.org' # No-op when 'google.com' account['service'] = 'google-plus' account['url'] = "http://plus.google.com/+#{account['username']}" account['icon'] = 'fa-google-plus' res[account['service']] = account else default account do |a| res[a['service']] = a end end res end end contributor end def normalize normalization, existing, searchisko, sys_title = nil searchisko.normalize(normalization, existing) do |normalized| if normalized['sys_contributor'].nil? return OpenStruct.new({:sys_title => sys_title || existing}) else return add_social_links(normalized['contributor_profile']) end end end private def default a a['service'] = a['domain'].chomp('.com') a['url'] = "http://#{a['domain']}/#{a['username']}" a['icon'] = "fa-#{a['service']}" yield a if block_given? end end end end
module Aweplug module Helpers module SearchiskoSocial def add_social_links contributor unless contributor['accounts'].nil? contributor['social'] = contributor['accounts'].inject({}) do |res, account| case account['domain'] when 'jboss.org' # No-op when 'google.com' account['service'] = 'google-plus' account['url'] = "http://plus.google.com/+#{account['username']}" account['icon'] = 'fa-google-plus' res[account['service']] = account else default account do |a| res[a['service']] = a end end res end end contributor end def normalize normalization, existing, searchisko, name = nil res = nil if !existing.nil? searchisko.normalize(normalization, existing) do |normalized| unless normalized['sys_contributor'].nil? res = add_social_links(normalized['contributor_profile']) end end elsif !name.nil? searchisko.normalize('contributor_profile_by_jbossdeveloper_quickstart_author', name) do |normalized| unless normalized['sys_contributor'].nil? res = add_social_links(normalized['contributor_profile']) end end end res || OpenStruct.new({ :sys_title => name || existing }) end private def default a a['service'] = a['domain'].chomp('.com') a['url'] = "http://#{a['domain']}/#{a['username']}" a['icon'] = "fa-#{a['service']}" yield a if block_given? end end end end
Make searchisko normalisation a bit cleverer
Make searchisko normalisation a bit cleverer
Ruby
mit
awestruct/aweplug,LightGuard/aweplug,LightGuard/aweplug,Dantheman720/aweplug,awestruct/aweplug,Dantheman720/aweplug
ruby
## Code Before: module Aweplug module Helpers module SearchiskoSocial def add_social_links contributor unless contributor['accounts'].nil? contributor['social'] = contributor['accounts'].inject({}) do |res, account| case account['domain'] when 'jboss.org' # No-op when 'google.com' account['service'] = 'google-plus' account['url'] = "http://plus.google.com/+#{account['username']}" account['icon'] = 'fa-google-plus' res[account['service']] = account else default account do |a| res[a['service']] = a end end res end end contributor end def normalize normalization, existing, searchisko, sys_title = nil searchisko.normalize(normalization, existing) do |normalized| if normalized['sys_contributor'].nil? return OpenStruct.new({:sys_title => sys_title || existing}) else return add_social_links(normalized['contributor_profile']) end end end private def default a a['service'] = a['domain'].chomp('.com') a['url'] = "http://#{a['domain']}/#{a['username']}" a['icon'] = "fa-#{a['service']}" yield a if block_given? end end end end ## Instruction: Make searchisko normalisation a bit cleverer ## Code After: module Aweplug module Helpers module SearchiskoSocial def add_social_links contributor unless contributor['accounts'].nil? contributor['social'] = contributor['accounts'].inject({}) do |res, account| case account['domain'] when 'jboss.org' # No-op when 'google.com' account['service'] = 'google-plus' account['url'] = "http://plus.google.com/+#{account['username']}" account['icon'] = 'fa-google-plus' res[account['service']] = account else default account do |a| res[a['service']] = a end end res end end contributor end def normalize normalization, existing, searchisko, name = nil res = nil if !existing.nil? searchisko.normalize(normalization, existing) do |normalized| unless normalized['sys_contributor'].nil? res = add_social_links(normalized['contributor_profile']) end end elsif !name.nil? searchisko.normalize('contributor_profile_by_jbossdeveloper_quickstart_author', name) do |normalized| unless normalized['sys_contributor'].nil? res = add_social_links(normalized['contributor_profile']) end end end res || OpenStruct.new({ :sys_title => name || existing }) end private def default a a['service'] = a['domain'].chomp('.com') a['url'] = "http://#{a['domain']}/#{a['username']}" a['icon'] = "fa-#{a['service']}" yield a if block_given? end end end end
module Aweplug module Helpers module SearchiskoSocial def add_social_links contributor unless contributor['accounts'].nil? contributor['social'] = contributor['accounts'].inject({}) do |res, account| case account['domain'] when 'jboss.org' # No-op when 'google.com' account['service'] = 'google-plus' account['url'] = "http://plus.google.com/+#{account['username']}" account['icon'] = 'fa-google-plus' res[account['service']] = account else default account do |a| res[a['service']] = a end end res end end contributor end - def normalize normalization, existing, searchisko, sys_title = nil ? ^^^^^^^^ + def normalize normalization, existing, searchisko, name = nil ? ^^^ + res = nil + if !existing.nil? - searchisko.normalize(normalization, existing) do |normalized| + searchisko.normalize(normalization, existing) do |normalized| ? ++ - if normalized['sys_contributor'].nil? ? ^^ + unless normalized['sys_contributor'].nil? ? ^^^^^^^^ - return OpenStruct.new({:sys_title => sys_title || existing}) - else - return add_social_links(normalized['contributor_profile']) ? ^^^^ + res = add_social_links(normalized['contributor_profile']) ? ++ ^^^ + end + end + elsif !name.nil? + searchisko.normalize('contributor_profile_by_jbossdeveloper_quickstart_author', name) do |normalized| + unless normalized['sys_contributor'].nil? + res = add_social_links(normalized['contributor_profile']) + end end end + res || OpenStruct.new({ :sys_title => name || existing }) end private def default a a['service'] = a['domain'].chomp('.com') a['url'] = "http://#{a['domain']}/#{a['username']}" a['icon'] = "fa-#{a['service']}" yield a if block_given? end end end end
20
0.416667
14
6
c00e5e2e4998de83dc9a90c5b2ad0b05e46f2a2c
.kitchen.yml
.kitchen.yml
--- driver_plugin: vagrant platforms: - name: ubuntu-14.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1404 - name: ubuntu-12.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1204 - name: ubuntu-10.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1004 - name: centos-7.0 driver_config: require_chef_omnibus: '11.14' box: centos70 - name: centos-6.4 driver_config: require_chef_omnibus: '11.14' box: centos64 - name: centos-5.8 driver_config: require_chef_omnibus: '11.14' box: centos58 suites: - name: default run_list: - recipe[omnibus_updater_test::default] #- recipe[minitest-handler] - name: upgrade run_list: - recipe[omnibus_updater_test::version_upgrade] #- recipe[minitest-handler]
--- driver_plugin: vagrant platforms: - name: ubuntu-14.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1404 - name: ubuntu-12.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1204 - name: centos-7.0 driver_config: require_chef_omnibus: '11.14' box: centos70 - name: centos-6.4 driver_config: require_chef_omnibus: '11.14' box: centos64 suites: - name: default run_list: - recipe[omnibus_updater_test::default] #- recipe[minitest-handler] - name: upgrade run_list: - recipe[omnibus_updater_test::version_upgrade] #- recipe[minitest-handler]
Remove centos 5.8 and Ubuntu 10.04 from test suites. Caveat vintage OS deployer.
Remove centos 5.8 and Ubuntu 10.04 from test suites. Caveat vintage OS deployer.
YAML
apache-2.0
chef-cookbooks/omnibus_updater,tas50/omnibus_updater,hw-cookbooks/omnibus_updater
yaml
## Code Before: --- driver_plugin: vagrant platforms: - name: ubuntu-14.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1404 - name: ubuntu-12.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1204 - name: ubuntu-10.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1004 - name: centos-7.0 driver_config: require_chef_omnibus: '11.14' box: centos70 - name: centos-6.4 driver_config: require_chef_omnibus: '11.14' box: centos64 - name: centos-5.8 driver_config: require_chef_omnibus: '11.14' box: centos58 suites: - name: default run_list: - recipe[omnibus_updater_test::default] #- recipe[minitest-handler] - name: upgrade run_list: - recipe[omnibus_updater_test::version_upgrade] #- recipe[minitest-handler] ## Instruction: Remove centos 5.8 and Ubuntu 10.04 from test suites. Caveat vintage OS deployer. ## Code After: --- driver_plugin: vagrant platforms: - name: ubuntu-14.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1404 - name: ubuntu-12.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1204 - name: centos-7.0 driver_config: require_chef_omnibus: '11.14' box: centos70 - name: centos-6.4 driver_config: require_chef_omnibus: '11.14' box: centos64 suites: - name: default run_list: - recipe[omnibus_updater_test::default] #- recipe[minitest-handler] - name: upgrade run_list: - recipe[omnibus_updater_test::version_upgrade] #- recipe[minitest-handler]
--- driver_plugin: vagrant platforms: - name: ubuntu-14.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1404 - name: ubuntu-12.04 driver_config: require_chef_omnibus: '11.14' box: ubuntu1204 - - name: ubuntu-10.04 - driver_config: - require_chef_omnibus: '11.14' - box: ubuntu1004 - name: centos-7.0 driver_config: require_chef_omnibus: '11.14' box: centos70 - name: centos-6.4 driver_config: require_chef_omnibus: '11.14' box: centos64 - - name: centos-5.8 - driver_config: - require_chef_omnibus: '11.14' - box: centos58 suites: - name: default run_list: - recipe[omnibus_updater_test::default] #- recipe[minitest-handler] - name: upgrade run_list: - recipe[omnibus_updater_test::version_upgrade] #- recipe[minitest-handler]
8
0.222222
0
8
98e00b18e66eead105f61eb8a8e075d49178e394
src/cli/commands/build.js
src/cli/commands/build.js
const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const babelrcHelper = require('../../config/babelrcHelper').default; module.exports = ({ directory = process.cwd(), babel = path.join(directory, 'node_modules', 'babel-cli', 'bin', 'babel.js'), webpack = path.join(directory, 'node_modules', 'webpack', 'bin', 'webpack.js'), isIntegrationTest = false, }) => { // build for server, using babel const srcFolder = path.join(directory, 'src'); const builtFolder = path.join(directory, 'build'); const babelrcSrc = path.join(directory, '.babelrc'); const config = babelrcHelper(true, directory, true); fs.writeFileSync(babelrcSrc, JSON.stringify(config), 'utf8'); execSync(`${babel} ${srcFolder} -d ${builtFolder}`); execSync(`rm ${babelrcSrc}`); // build for web, using webpack const webpackConfig = path.join(__dirname, '../../../lib', 'config', 'webpack.prod.js'); const testEnv = (isIntegrationTest) ? 'integration' : 'null'; execSync(`cd ${directory}; TEST_ENV=${testEnv} ${webpack} --config ${webpackConfig}`); };
const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const babelrcHelper = require('../../config/babelrcHelper').default; module.exports = ({ directory = process.cwd(), babel = path.join(directory, 'node_modules', 'babel-cli', 'bin', 'babel.js'), webpack = path.join(directory, 'node_modules', 'webpack', 'bin', 'webpack.js'), isIntegrationTest = false, }) => { // build for server, using babel const srcFolder = path.join(directory, 'src'); const builtFolder = path.join(directory, 'build'); const babelrcSrc = path.join(directory, '.babelrc'); const config = babelrcHelper(true, directory, true); fs.writeFileSync(babelrcSrc, JSON.stringify(config), 'utf8'); execSync(`${babel} ${srcFolder} -d ${builtFolder} --copy-files`); execSync(`rm ${babelrcSrc}`); // build for web, using webpack const webpackConfig = path.join(__dirname, '../../../lib', 'config', 'webpack.prod.js'); const testEnv = (isIntegrationTest) ? 'integration' : 'null'; execSync(`cd ${directory}; TEST_ENV=${testEnv} ${webpack} --config ${webpackConfig}`); };
Make sure to copy appmanifest.json
Make sure to copy appmanifest.json
JavaScript
mit
fervorous/fervor
javascript
## Code Before: const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const babelrcHelper = require('../../config/babelrcHelper').default; module.exports = ({ directory = process.cwd(), babel = path.join(directory, 'node_modules', 'babel-cli', 'bin', 'babel.js'), webpack = path.join(directory, 'node_modules', 'webpack', 'bin', 'webpack.js'), isIntegrationTest = false, }) => { // build for server, using babel const srcFolder = path.join(directory, 'src'); const builtFolder = path.join(directory, 'build'); const babelrcSrc = path.join(directory, '.babelrc'); const config = babelrcHelper(true, directory, true); fs.writeFileSync(babelrcSrc, JSON.stringify(config), 'utf8'); execSync(`${babel} ${srcFolder} -d ${builtFolder}`); execSync(`rm ${babelrcSrc}`); // build for web, using webpack const webpackConfig = path.join(__dirname, '../../../lib', 'config', 'webpack.prod.js'); const testEnv = (isIntegrationTest) ? 'integration' : 'null'; execSync(`cd ${directory}; TEST_ENV=${testEnv} ${webpack} --config ${webpackConfig}`); }; ## Instruction: Make sure to copy appmanifest.json ## Code After: const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const babelrcHelper = require('../../config/babelrcHelper').default; module.exports = ({ directory = process.cwd(), babel = path.join(directory, 'node_modules', 'babel-cli', 'bin', 'babel.js'), webpack = path.join(directory, 'node_modules', 'webpack', 'bin', 'webpack.js'), isIntegrationTest = false, }) => { // build for server, using babel const srcFolder = path.join(directory, 'src'); const builtFolder = path.join(directory, 'build'); const babelrcSrc = path.join(directory, '.babelrc'); const config = babelrcHelper(true, directory, true); fs.writeFileSync(babelrcSrc, JSON.stringify(config), 'utf8'); execSync(`${babel} ${srcFolder} -d ${builtFolder} --copy-files`); execSync(`rm ${babelrcSrc}`); // build for web, using webpack const webpackConfig = path.join(__dirname, '../../../lib', 'config', 'webpack.prod.js'); const testEnv = (isIntegrationTest) ? 'integration' : 'null'; execSync(`cd ${directory}; TEST_ENV=${testEnv} ${webpack} --config ${webpackConfig}`); };
const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const babelrcHelper = require('../../config/babelrcHelper').default; module.exports = ({ directory = process.cwd(), babel = path.join(directory, 'node_modules', 'babel-cli', 'bin', 'babel.js'), webpack = path.join(directory, 'node_modules', 'webpack', 'bin', 'webpack.js'), isIntegrationTest = false, }) => { // build for server, using babel const srcFolder = path.join(directory, 'src'); const builtFolder = path.join(directory, 'build'); const babelrcSrc = path.join(directory, '.babelrc'); const config = babelrcHelper(true, directory, true); fs.writeFileSync(babelrcSrc, JSON.stringify(config), 'utf8'); - execSync(`${babel} ${srcFolder} -d ${builtFolder}`); + execSync(`${babel} ${srcFolder} -d ${builtFolder} --copy-files`); ? +++++++++++++ execSync(`rm ${babelrcSrc}`); // build for web, using webpack const webpackConfig = path.join(__dirname, '../../../lib', 'config', 'webpack.prod.js'); const testEnv = (isIntegrationTest) ? 'integration' : 'null'; execSync(`cd ${directory}; TEST_ENV=${testEnv} ${webpack} --config ${webpackConfig}`); };
2
0.076923
1
1
1bc6ae199937feeda1afdfc4215e038dd14f1049
app/views/episode/show.html.haml
app/views/episode/show.html.haml
- cache @episode do %h1 #{@episode.title} %h2 #{@series.name} / Season #{@season.season_number} / Episode #{@episode.season_sequence} in season %p #{simple_format(@episode.description)}
- cache @episode do %h1 #{@episode.title} %h2 #{link_to(@series.name,series_path(@series))} / #{link_to("Season #{@season.season_number}",series_season_path(@series,@season))} / Episode #{@episode.season_sequence} %p #{simple_format(@episode.description)}
Add URLs, not that they're useful :)
Add URLs, not that they're useful :)
Haml
apache-2.0
allynfolksjr/trek-with-friends,allynfolksjr/trek-with-friends
haml
## Code Before: - cache @episode do %h1 #{@episode.title} %h2 #{@series.name} / Season #{@season.season_number} / Episode #{@episode.season_sequence} in season %p #{simple_format(@episode.description)} ## Instruction: Add URLs, not that they're useful :) ## Code After: - cache @episode do %h1 #{@episode.title} %h2 #{link_to(@series.name,series_path(@series))} / #{link_to("Season #{@season.season_number}",series_season_path(@series,@season))} / Episode #{@episode.season_sequence} %p #{simple_format(@episode.description)}
- cache @episode do %h1 #{@episode.title} - %h2 #{@series.name} / Season #{@season.season_number} / Episode #{@episode.season_sequence} in season + %h2 + #{link_to(@series.name,series_path(@series))} / + #{link_to("Season #{@season.season_number}",series_season_path(@series,@season))} / + Episode #{@episode.season_sequence} %p #{simple_format(@episode.description)}
5
1.25
4
1
16c3e8317d983860bdf589213328d4a67d80109f
_includes/footer.html
_includes/footer.html
<footer class="site-footer"> <div class="wrapper"> <nav class="footer-nav"> <a href="/demo" class="footer-link">Demo</a> &bull; <a href="https://github.com/hospitalrun" class="footer-link">Source</a> &bull; <a href="/beta" class="footer-link">Beta</a> &bull; <a href="/events" class="footer-link" target="_blank">Hack Events</a> &bull; <a href="/team" class="footer-link" target="_blank">Team</a> &bull; <a href="/blog.html" class="footer-link" target="_blank">Blog</a> &bull; <a href="/contribute" class="footer-link">Contribute</a> &bull; <a href="http://goo.gl/NCJDnJ" class="footer-link" target="_blank">Why HospitalRun?</a> </nav> </div> </footer>
<footer class="site-footer"> <div class="wrapper"> <nav class="footer-nav"> <a href="/demo" class="footer-link">Demo</a> &bull; <a href="https://github.com/hospitalrun" class="footer-link">Source</a> &bull; <a href="/beta" class="footer-link">Beta</a> &bull; <a href="/events" class="footer-link" target="_blank">Hack Events</a> &bull; <a href="/team" class="footer-link" target="_blank">Team</a> &bull; <a href="/blog.html" class="footer-link">Blog</a> &bull; <a href="/contribute" class="footer-link">Contribute</a> &bull; <a href="http://goo.gl/NCJDnJ" class="footer-link" target="_blank">Why HospitalRun?</a> </nav> </div> </footer>
Remove target blank from blog link in foooter
Remove target blank from blog link in foooter
HTML
mit
HospitalRun/hospitalrun.github.io,HospitalRun/hospitalrun.github.io,HospitalRun/hospitalrun.github.io
html
## Code Before: <footer class="site-footer"> <div class="wrapper"> <nav class="footer-nav"> <a href="/demo" class="footer-link">Demo</a> &bull; <a href="https://github.com/hospitalrun" class="footer-link">Source</a> &bull; <a href="/beta" class="footer-link">Beta</a> &bull; <a href="/events" class="footer-link" target="_blank">Hack Events</a> &bull; <a href="/team" class="footer-link" target="_blank">Team</a> &bull; <a href="/blog.html" class="footer-link" target="_blank">Blog</a> &bull; <a href="/contribute" class="footer-link">Contribute</a> &bull; <a href="http://goo.gl/NCJDnJ" class="footer-link" target="_blank">Why HospitalRun?</a> </nav> </div> </footer> ## Instruction: Remove target blank from blog link in foooter ## Code After: <footer class="site-footer"> <div class="wrapper"> <nav class="footer-nav"> <a href="/demo" class="footer-link">Demo</a> &bull; <a href="https://github.com/hospitalrun" class="footer-link">Source</a> &bull; <a href="/beta" class="footer-link">Beta</a> &bull; <a href="/events" class="footer-link" target="_blank">Hack Events</a> &bull; <a href="/team" class="footer-link" target="_blank">Team</a> &bull; <a href="/blog.html" class="footer-link">Blog</a> &bull; <a href="/contribute" class="footer-link">Contribute</a> &bull; <a href="http://goo.gl/NCJDnJ" class="footer-link" target="_blank">Why HospitalRun?</a> </nav> </div> </footer>
<footer class="site-footer"> <div class="wrapper"> <nav class="footer-nav"> <a href="/demo" class="footer-link">Demo</a> &bull; <a href="https://github.com/hospitalrun" class="footer-link">Source</a> &bull; <a href="/beta" class="footer-link">Beta</a> &bull; <a href="/events" class="footer-link" target="_blank">Hack Events</a> &bull; <a href="/team" class="footer-link" target="_blank">Team</a> &bull; - <a href="/blog.html" class="footer-link" target="_blank">Blog</a> &bull; ? ---------------- + <a href="/blog.html" class="footer-link">Blog</a> &bull; <a href="/contribute" class="footer-link">Contribute</a> &bull; <a href="http://goo.gl/NCJDnJ" class="footer-link" target="_blank">Why HospitalRun?</a> </nav> </div> </footer>
2
0.133333
1
1
06fefbc9239b82531894c3336acd545e4971189c
README.md
README.md
(fork of github.com/rs/cors) ## Usage ```go func main() { r := chi.NewRouter() // Basic CORS // for more ideas, see: https://developer.github.com/v3/#cross-origin-resource-sharing cors := cors.New(cors.Options{ // AllowedOrigins: []string{"https://foo.com"}, // Use this to allow specific origin hosts AllowedOrigins: []string{"*"}, // AllowOriginFunc: func(r *http.Request, origin string) bool { return true }, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"}, AllowCredentials: true, MaxAge: 300, // Maximum value not ignored by any of major browsers }) r.Use(cors.Handler) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) }) http.ListenAndServe(":3000", r) } ```
[go-chi/cors](https://github.com/go-chi/cors) is a fork of github.com/rs/cors that provides a `net/http` compatible middleware for performing preflight CORS checks on the server side. These headers are required for using the browser native [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This middleware is designed to be used as a global middleware on the chi router. Applying with within a `r.Group()` or using `With()` will not work without routes matching `OPTIONS` added. ## Usage ```go func main() { r := chi.NewRouter() // Basic CORS // for more ideas, see: https://developer.github.com/v3/#cross-origin-resource-sharing cors := cors.New(cors.Options{ // AllowedOrigins: []string{"https://foo.com"}, // Use this to allow specific origin hosts AllowedOrigins: []string{"*"}, // AllowOriginFunc: func(r *http.Request, origin string) bool { return true }, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"}, AllowCredentials: true, MaxAge: 300, // Maximum value not ignored by any of major browsers }) r.Use(cors.Handler) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) }) http.ListenAndServe(":3000", r) } ```
Update docs to cover inline mux edge case
Update docs to cover inline mux edge case
Markdown
mit
go-chi/cors
markdown
## Code Before: (fork of github.com/rs/cors) ## Usage ```go func main() { r := chi.NewRouter() // Basic CORS // for more ideas, see: https://developer.github.com/v3/#cross-origin-resource-sharing cors := cors.New(cors.Options{ // AllowedOrigins: []string{"https://foo.com"}, // Use this to allow specific origin hosts AllowedOrigins: []string{"*"}, // AllowOriginFunc: func(r *http.Request, origin string) bool { return true }, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"}, AllowCredentials: true, MaxAge: 300, // Maximum value not ignored by any of major browsers }) r.Use(cors.Handler) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) }) http.ListenAndServe(":3000", r) } ``` ## Instruction: Update docs to cover inline mux edge case ## Code After: [go-chi/cors](https://github.com/go-chi/cors) is a fork of github.com/rs/cors that provides a `net/http` compatible middleware for performing preflight CORS checks on the server side. These headers are required for using the browser native [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This middleware is designed to be used as a global middleware on the chi router. Applying with within a `r.Group()` or using `With()` will not work without routes matching `OPTIONS` added. ## Usage ```go func main() { r := chi.NewRouter() // Basic CORS // for more ideas, see: https://developer.github.com/v3/#cross-origin-resource-sharing cors := cors.New(cors.Options{ // AllowedOrigins: []string{"https://foo.com"}, // Use this to allow specific origin hosts AllowedOrigins: []string{"*"}, // AllowOriginFunc: func(r *http.Request, origin string) bool { return true }, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"}, AllowCredentials: true, MaxAge: 300, // Maximum value not ignored by any of major browsers }) r.Use(cors.Handler) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) }) http.ListenAndServe(":3000", r) } ```
- (fork of github.com/rs/cors) + [go-chi/cors](https://github.com/go-chi/cors) is a fork of github.com/rs/cors that provides a `net/http` compatible middleware for performing preflight CORS checks on the server side. These headers are required for using the browser native [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). + + This middleware is designed to be used as a global middleware on the chi router. Applying with within a `r.Group()` or using `With()` will not work without routes matching `OPTIONS` added. ## Usage ```go func main() { r := chi.NewRouter() // Basic CORS // for more ideas, see: https://developer.github.com/v3/#cross-origin-resource-sharing cors := cors.New(cors.Options{ // AllowedOrigins: []string{"https://foo.com"}, // Use this to allow specific origin hosts AllowedOrigins: []string{"*"}, // AllowOriginFunc: func(r *http.Request, origin string) bool { return true }, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"}, AllowCredentials: true, MaxAge: 300, // Maximum value not ignored by any of major browsers }) r.Use(cors.Handler) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) }) http.ListenAndServe(":3000", r) } ```
4
0.129032
3
1
4bba192ccc689e5dee235076612a7765f1842028
recipe/build.sh
recipe/build.sh
./configure --prefix="$PREFIX" --with-gmp-prefix="$PREFIX" make -j$CPU_COUNT make check make install-strip
if [[ "`uname`" == "Linux" ]] then export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${PREFIX}/lib" fi ./configure --prefix="$PREFIX" --with-gmp-prefix="$PREFIX" make -j$CPU_COUNT make check make install-strip
Add `-rpath-link` in linker flags
Add `-rpath-link` in linker flags
Shell
apache-2.0
litex-hub/litex-conda-eda,litex-hub/litex-conda-prog,timvideos/conda-hdmi2usb-packages,timvideos/conda-misoc-lm32,litex-hub/litex-conda-compilers,timvideos/conda-hdmi2usb-packages,timvideos/conda-misoc-lm32
shell
## Code Before: ./configure --prefix="$PREFIX" --with-gmp-prefix="$PREFIX" make -j$CPU_COUNT make check make install-strip ## Instruction: Add `-rpath-link` in linker flags ## Code After: if [[ "`uname`" == "Linux" ]] then export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${PREFIX}/lib" fi ./configure --prefix="$PREFIX" --with-gmp-prefix="$PREFIX" make -j$CPU_COUNT make check make install-strip
+ if [[ "`uname`" == "Linux" ]] + then + export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${PREFIX}/lib" + fi + ./configure --prefix="$PREFIX" --with-gmp-prefix="$PREFIX" make -j$CPU_COUNT make check make install-strip
5
1.25
5
0
a439b552acbd586615b15b86d79ed003979aeaed
static/js/sh_init.js
static/js/sh_init.js
var codes = document.getElementsByTagName("code"); var title, elTitle, elPre; for (var i=0, l=codes.length ; i<l ; i++) { elPre = codes[i].parentNode; if (elPre.tagName != "PRE") continue; // Prepare for highlighting // elPre.className = elPre.className.replace("sourceCode ",""); if (elPre.className.match("sourceCode")) switch (elPre.className.replace("sourceCode ","")) { case 'css': case 'haskell': case 'html': case 'php': case 'python': elPre.className = "sourceCode sh_" + elPre.className.replace("sourceCode ", ""); break; case 'js': elPre.className += " sh_javascript"; case 'literate haskell': elPre.className += " sh_haskell"; break; } } //sh_highlightDocument("/static/js/lang/", ".js");
var codes = document.getElementsByTagName("code"); var title, elTitle, elPre; for (var i=0, l=codes.length ; i<l ; i++) { elPre = codes[i].parentNode; if (elPre.tagName != "PRE") continue; // Prepare for highlighting // elPre.className = elPre.className.replace("sourceCode ",""); if (elPre.className.match("sourceCode")) switch (elPre.className.replace("sourceCode ","")) { case 'css': case 'haskell': case 'html': case 'php': case 'java': case 'python': elPre.className = "sourceCode sh_" + elPre.className.replace("sourceCode ", ""); break; case 'js': elPre.className += " sh_javascript"; case 'literate haskell': elPre.className += " sh_haskell"; break; } } //sh_highlightDocument("/static/js/lang/", ".js");
Add java to automatic conversions
Add java to automatic conversions
JavaScript
bsd-3-clause
MasseR/Blog,MasseR/Blog
javascript
## Code Before: var codes = document.getElementsByTagName("code"); var title, elTitle, elPre; for (var i=0, l=codes.length ; i<l ; i++) { elPre = codes[i].parentNode; if (elPre.tagName != "PRE") continue; // Prepare for highlighting // elPre.className = elPre.className.replace("sourceCode ",""); if (elPre.className.match("sourceCode")) switch (elPre.className.replace("sourceCode ","")) { case 'css': case 'haskell': case 'html': case 'php': case 'python': elPre.className = "sourceCode sh_" + elPre.className.replace("sourceCode ", ""); break; case 'js': elPre.className += " sh_javascript"; case 'literate haskell': elPre.className += " sh_haskell"; break; } } //sh_highlightDocument("/static/js/lang/", ".js"); ## Instruction: Add java to automatic conversions ## Code After: var codes = document.getElementsByTagName("code"); var title, elTitle, elPre; for (var i=0, l=codes.length ; i<l ; i++) { elPre = codes[i].parentNode; if (elPre.tagName != "PRE") continue; // Prepare for highlighting // elPre.className = elPre.className.replace("sourceCode ",""); if (elPre.className.match("sourceCode")) switch (elPre.className.replace("sourceCode ","")) { case 'css': case 'haskell': case 'html': case 'php': case 'java': case 'python': elPre.className = "sourceCode sh_" + elPre.className.replace("sourceCode ", ""); break; case 'js': elPre.className += " sh_javascript"; case 'literate haskell': elPre.className += " sh_haskell"; break; } } //sh_highlightDocument("/static/js/lang/", ".js");
var codes = document.getElementsByTagName("code"); var title, elTitle, elPre; for (var i=0, l=codes.length ; i<l ; i++) { elPre = codes[i].parentNode; if (elPre.tagName != "PRE") continue; // Prepare for highlighting // elPre.className = elPre.className.replace("sourceCode ",""); if (elPre.className.match("sourceCode")) switch (elPre.className.replace("sourceCode ","")) { case 'css': case 'haskell': case 'html': case 'php': + case 'java': case 'python': elPre.className = "sourceCode sh_" + elPre.className.replace("sourceCode ", ""); break; case 'js': elPre.className += " sh_javascript"; case 'literate haskell': elPre.className += " sh_haskell"; break; } } //sh_highlightDocument("/static/js/lang/", ".js");
1
0.038462
1
0
5fcf3185cae6f8bdd1a319773d6ca091b370345a
lib/fog/core/mock.rb
lib/fog/core/mock.rb
module Fog @mocking = false def self.mock! @mocking = true end def self.mock? @mocking end def self.mocking? @mocking end module Mock @delay = 1 def self.delay @delay end def self.delay=(new_delay) raise ArgumentError, "delay must be non-negative" unless new_delay >= 0 @delay = new_delay end def self.not_implemented raise Fog::Errors::MockNotImplemented.new("Contributions welcome!") end def self.random_base64(length) random_selection( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", length ) end def self.random_hex(length) max = ('f' * length).to_i(16) rand(max).to_s(16).rjust(length, '0') end def self.random_letters(length) random_selection( 'abcdefghijklmnopqrstuvwxyz', length ) end def self.random_numbers(length) max = ('9' * length).to_i rand(max).to_s end def self.random_selection(characters, length) selection = '' length.times do position = rand(characters.length) selection << characters[position..position] end selection end end end
module Fog @mocking = false def self.mock! @mocking = true end def self.mock? @mocking end def self.mocking? @mocking end module Mock @delay = 1 def self.delay @delay end def self.delay=(new_delay) raise ArgumentError, "delay must be non-negative" unless new_delay >= 0 @delay = new_delay end def self.not_implemented raise Fog::Errors::MockNotImplemented.new("Contributions welcome!") end def self.random_base64(length) random_selection( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", length ) end def self.random_hex(length) max = ('f' * length).to_i(16) rand(max).to_s(16).rjust(length, '0') end def self.random_letters(length) random_selection( 'abcdefghijklmnopqrstuvwxyz', length ) end def self.random_numbers(length) max = ('9' * length).to_i rand(max).to_s end def self.random_selection(characters, length) selection = '' length.times do position = rand(characters.length) selection << characters[position..position] end selection end def self.reset providers = Fog.providers.map{|p| eval("Fog::#{p}")} providers.select!{|m| m.constants.include?(:Compute)} providers.each do |provider| next unless provider::Compute::Mock.respond_to?(:reset) provider::Compute::Mock.reset end end end end
Add a reset method to Fog::Mock that resets all providers/services.
Add a reset method to Fog::Mock that resets all providers/services.
Ruby
mit
joshisa/fog,asebastian-r7/fog,adecarolis/fog,fog/fog,duhast/fog,adecarolis/fog,brilliomsinterop/fog,sapcc/fog,phillbaker/fog,martinb3/fog,lwander/fog,nalabjp/fog,dhague/fog,zephyrean/fog,mavenlink/fog,bryanl/fog,10io/fog,nalabjp/fog,zephyrean/fog,phillbaker/fog,brandondunne/fog,joshmyers/fog,joshmyers/fog,10io/fog,seanhandley/fog,Programatica/fog,MSOpenTech/fog,brilliomsinterop/fog,cocktail-io/fog,mavenlink/fog,github/fog,adamleff/fog,glennpratt/fog,eLobato/fog,pyama86/fog,papedaniel/fog,ManageIQ/fog,dpowell7/fog,Programatica/fog,surminus/fog,Ladas/fog,dhague/fog,dtdream/fog,yyuu/fog,displague/fog,icco/fog,b0e/fog,alphagov/fog,ack/fog,bryanl/fog,NETWAYS/fog,pravi/fog,nandhanurrevanth/fog,dustacio/fog,backupify/fog,12spokes/fog,pyama86/fog,TerryHowe/fog,sideci-sample/sideci-sample-fog,TerryHowe/fog,runtimerevolution/fog,mitchlloyd/fog,unorthodoxgeek/fog,SpryBTS/fog,dLobatog/fog,papedaniel/fog,surminus/fog,fog/fog,backupify/fog,plribeiro3000/fog,kongslund/fog,lwander/fog,mohitsethi/fog,nandhanurrevanth/fog,asebastian-r7/fog,zephyrean/fog,runtimerevolution/fog,sferik/fog,petems/fog,dustacio/fog,joshisa/fog,icco/fog,duhast/fog,sideci-sample/sideci-sample-fog,SpryBTS/fog,rackspace/fog,dLobatog/fog,mitchlloyd/fog,nicolasbrechet/fog,brilliomsinterop/fog,petems/fog,theforeman/fog,nandhanurrevanth/fog,bdunne/fog,theforeman/fog,martinb3/fog,mohitsethi/fog,b0ric/fog,adamleff/fog,phillbaker/fog,seanhandley/fog,glennpratt/fog,nicolasbrechet/fog,eLobato/fog,pravi/fog,covario-cdiaz/fog,b0ric/fog,sapcc/fog,MSOpenTech/fog,displague/fog,plribeiro3000/fog,NETWAYS/fog,unorthodoxgeek/fog,dtdream/fog,ManageIQ/fog,github/fog,cocktail-io/fog,alphagov/fog,yyuu/fog,kongslund/fog,ack/fog,rackspace/fog,covario-cdiaz/fog,Ladas/fog
ruby
## Code Before: module Fog @mocking = false def self.mock! @mocking = true end def self.mock? @mocking end def self.mocking? @mocking end module Mock @delay = 1 def self.delay @delay end def self.delay=(new_delay) raise ArgumentError, "delay must be non-negative" unless new_delay >= 0 @delay = new_delay end def self.not_implemented raise Fog::Errors::MockNotImplemented.new("Contributions welcome!") end def self.random_base64(length) random_selection( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", length ) end def self.random_hex(length) max = ('f' * length).to_i(16) rand(max).to_s(16).rjust(length, '0') end def self.random_letters(length) random_selection( 'abcdefghijklmnopqrstuvwxyz', length ) end def self.random_numbers(length) max = ('9' * length).to_i rand(max).to_s end def self.random_selection(characters, length) selection = '' length.times do position = rand(characters.length) selection << characters[position..position] end selection end end end ## Instruction: Add a reset method to Fog::Mock that resets all providers/services. ## Code After: module Fog @mocking = false def self.mock! @mocking = true end def self.mock? @mocking end def self.mocking? @mocking end module Mock @delay = 1 def self.delay @delay end def self.delay=(new_delay) raise ArgumentError, "delay must be non-negative" unless new_delay >= 0 @delay = new_delay end def self.not_implemented raise Fog::Errors::MockNotImplemented.new("Contributions welcome!") end def self.random_base64(length) random_selection( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", length ) end def self.random_hex(length) max = ('f' * length).to_i(16) rand(max).to_s(16).rjust(length, '0') end def self.random_letters(length) random_selection( 'abcdefghijklmnopqrstuvwxyz', length ) end def self.random_numbers(length) max = ('9' * length).to_i rand(max).to_s end def self.random_selection(characters, length) selection = '' length.times do position = rand(characters.length) selection << characters[position..position] end selection end def self.reset providers = Fog.providers.map{|p| eval("Fog::#{p}")} providers.select!{|m| m.constants.include?(:Compute)} providers.each do |provider| next unless provider::Compute::Mock.respond_to?(:reset) provider::Compute::Mock.reset end end end end
module Fog @mocking = false def self.mock! @mocking = true end def self.mock? @mocking end def self.mocking? @mocking end module Mock @delay = 1 def self.delay @delay end def self.delay=(new_delay) raise ArgumentError, "delay must be non-negative" unless new_delay >= 0 @delay = new_delay end def self.not_implemented raise Fog::Errors::MockNotImplemented.new("Contributions welcome!") end def self.random_base64(length) random_selection( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", length ) end def self.random_hex(length) max = ('f' * length).to_i(16) rand(max).to_s(16).rjust(length, '0') end def self.random_letters(length) random_selection( 'abcdefghijklmnopqrstuvwxyz', length ) end def self.random_numbers(length) max = ('9' * length).to_i rand(max).to_s end def self.random_selection(characters, length) selection = '' length.times do position = rand(characters.length) selection << characters[position..position] end selection end + def self.reset + providers = Fog.providers.map{|p| eval("Fog::#{p}")} + providers.select!{|m| m.constants.include?(:Compute)} + + providers.each do |provider| + next unless provider::Compute::Mock.respond_to?(:reset) + provider::Compute::Mock.reset + end + end + end end
10
0.147059
10
0
0ee8ea6d7ae11a12984761e71c2dfd17c13232a1
metadata/com.ibrahimyousre.resumebuilder.txt
metadata/com.ibrahimyousre.resumebuilder.txt
Categories:Writing License:MIT Web Site: Source Code:https://github.com/IbrahimYousre/Resume-Builder Issue Tracker:https://github.com/IbrahimYousre/Resume-Builder/issues Auto Name:Resume Builder Summary:An app to help you create your resume Description: This is a simple Android app that will help you build a beautiful resume. . Repo Type:git Repo:https://github.com/IbrahimYousre/Resume-Builder.git Build:1.1,2 commit=v1.1.2 subdir=app gradle=yes Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1 Current Version Code:2
Categories:Writing License:MIT Web Site: Source Code:https://github.com/IbrahimYousre/Resume-Builder Issue Tracker:https://github.com/IbrahimYousre/Resume-Builder/issues Auto Name:Resume Builder Summary:An app to help you create your resume Description: This is a simple Android app that will help you build a beautiful resume. . Repo Type:git Repo:https://github.com/IbrahimYousre/Resume-Builder.git Build:1.1,2 commit=v1.1.2 subdir=app gradle=yes Build:1.1.4,4 commit=v1.1.4 subdir=app gradle=yes Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1.4 Current Version Code:4
Update Resume Builder to 1.1.4 (4)
Update Resume Builder to 1.1.4 (4)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Writing License:MIT Web Site: Source Code:https://github.com/IbrahimYousre/Resume-Builder Issue Tracker:https://github.com/IbrahimYousre/Resume-Builder/issues Auto Name:Resume Builder Summary:An app to help you create your resume Description: This is a simple Android app that will help you build a beautiful resume. . Repo Type:git Repo:https://github.com/IbrahimYousre/Resume-Builder.git Build:1.1,2 commit=v1.1.2 subdir=app gradle=yes Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1 Current Version Code:2 ## Instruction: Update Resume Builder to 1.1.4 (4) ## Code After: Categories:Writing License:MIT Web Site: Source Code:https://github.com/IbrahimYousre/Resume-Builder Issue Tracker:https://github.com/IbrahimYousre/Resume-Builder/issues Auto Name:Resume Builder Summary:An app to help you create your resume Description: This is a simple Android app that will help you build a beautiful resume. . Repo Type:git Repo:https://github.com/IbrahimYousre/Resume-Builder.git Build:1.1,2 commit=v1.1.2 subdir=app gradle=yes Build:1.1.4,4 commit=v1.1.4 subdir=app gradle=yes Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1.4 Current Version Code:4
Categories:Writing License:MIT Web Site: Source Code:https://github.com/IbrahimYousre/Resume-Builder Issue Tracker:https://github.com/IbrahimYousre/Resume-Builder/issues Auto Name:Resume Builder Summary:An app to help you create your resume Description: This is a simple Android app that will help you build a beautiful resume. . Repo Type:git Repo:https://github.com/IbrahimYousre/Resume-Builder.git Build:1.1,2 commit=v1.1.2 subdir=app gradle=yes + Build:1.1.4,4 + commit=v1.1.4 + subdir=app + gradle=yes + Auto Update Mode:Version v%v Update Check Mode:Tags - Current Version:1.1 + Current Version:1.1.4 ? ++ - Current Version Code:2 ? ^ + Current Version Code:4 ? ^
9
0.375
7
2
7fdd63b78b68d910cfea5b2aca66643c51f74b37
TestDPRO.st
TestDPRO.st
| results | "Load in the tests appropriate for DPRO and run them," Package manager install: 'Core\Object Arts\Dolphin\Base\Dolphin Base Tests.pax'. results := SmalltalkSystem current runRegressionTests. SessionManager current quit: results failureCount+results errorCount !
[ | results | Processor sleep: 1000. "Load in the tests appropriate for DPRO and run them," Package manager install: 'Core\Object Arts\Dolphin\Base\Dolphin Base Tests.pax'. results := SmalltalkSystem current runRegressionTests. SessionManager current quit: results failureCount+results errorCount] postToInputQueue !
Allow message queue to stabilize
Allow message queue to stabilize
Smalltalk
mit
shoshanatech/Dolphin,jgfoster/Dolphin,blairmcg/Dolphin,shoshanatech/Dolphin,objectarts/Dolphin,jgfoster/Dolphin,jgfoster/Dolphin,objectarts/Dolphin,blairmcg/Dolphin,ScottyPotty1/ScottyPotty1-Main-Repository,dolphinsmalltalk/Dolphin,shoshanatech/Dolphin,shoshanatech/Dolphin,dolphinsmalltalk/Dolphin,ScottyPotty1/ScottyPotty1-Main-Repository,dolphinsmalltalk/Dolphin,dolphinsmalltalk/Dolphin,blairmcg/Dolphin,blairmcg/Dolphin,jgfoster/Dolphin
smalltalk
## Code Before: | results | "Load in the tests appropriate for DPRO and run them," Package manager install: 'Core\Object Arts\Dolphin\Base\Dolphin Base Tests.pax'. results := SmalltalkSystem current runRegressionTests. SessionManager current quit: results failureCount+results errorCount ! ## Instruction: Allow message queue to stabilize ## Code After: [ | results | Processor sleep: 1000. "Load in the tests appropriate for DPRO and run them," Package manager install: 'Core\Object Arts\Dolphin\Base\Dolphin Base Tests.pax'. results := SmalltalkSystem current runRegressionTests. SessionManager current quit: results failureCount+results errorCount] postToInputQueue !
- | results | + [ | results | ? ++ + + Processor sleep: 1000. "Load in the tests appropriate for DPRO and run them," Package manager install: 'Core\Object Arts\Dolphin\Base\Dolphin Base Tests.pax'. results := SmalltalkSystem current runRegressionTests. - SessionManager current quit: results failureCount+results errorCount ! + SessionManager current quit: results failureCount+results errorCount] postToInputQueue ! ? ++++++++++++++++++
6
0.857143
4
2
2500047d45c40c72a228e88e31d9ffb594a1bf9f
index.html
index.html
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello World!</title> </head> <body> <h1>Hello World!</h1> We are using node <script>document.write(process.versions.node)</script>, Chrome <script>document.write(process.versions.chrome)</script>, and Electron <script>document.write(process.versions.electron)</script>. <video autoplay="true"></video> </body> <script> const focusCore = require('../aperture').renderer; focusCore.init(); </script> </html>
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello World!</title> </head> <body> <a id="start" href="#">Start</a> <a id="stop" href="#">Stop and save</a> <a id="toggle" href="#">Toggle thumbnail size</a><br> <video id="thumbnail" width="500px" autoplay="true"></video> </body> <script> const aperture = require('../aperture').renderer; aperture.init(); const thumbnail = document.querySelector('#thumbnail'); document.querySelector('#start').onclick = () => { aperture.startRecording().then(url => { thumbnail.src = url; }) }; document.querySelector('#stop').onclick = () => { const url = aperture.stopRecording(); var a = document.createElement('a'); a.style.display = 'none'; a.href = url; a.download = `Screen record ${Date()}.webm`; document.body.appendChild(a); a.click(); }; document.querySelector('#toggle').onclick = () => { if (thumbnail.width === 500) { console.log('here'); thumbnail.removeAttribute('width'); } else { console.log('here2'); thumbnail.width = '500'; } }; </script> </html>
Use the latest aperture API :fire:
Use the latest aperture API :fire:
HTML
mit
albinekb/kap,wulkano/kap,albinekb/kap,albinekb/kap
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello World!</title> </head> <body> <h1>Hello World!</h1> We are using node <script>document.write(process.versions.node)</script>, Chrome <script>document.write(process.versions.chrome)</script>, and Electron <script>document.write(process.versions.electron)</script>. <video autoplay="true"></video> </body> <script> const focusCore = require('../aperture').renderer; focusCore.init(); </script> </html> ## Instruction: Use the latest aperture API :fire: ## Code After: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello World!</title> </head> <body> <a id="start" href="#">Start</a> <a id="stop" href="#">Stop and save</a> <a id="toggle" href="#">Toggle thumbnail size</a><br> <video id="thumbnail" width="500px" autoplay="true"></video> </body> <script> const aperture = require('../aperture').renderer; aperture.init(); const thumbnail = document.querySelector('#thumbnail'); document.querySelector('#start').onclick = () => { aperture.startRecording().then(url => { thumbnail.src = url; }) }; document.querySelector('#stop').onclick = () => { const url = aperture.stopRecording(); var a = document.createElement('a'); a.style.display = 'none'; a.href = url; a.download = `Screen record ${Date()}.webm`; document.body.appendChild(a); a.click(); }; document.querySelector('#toggle').onclick = () => { if (thumbnail.width === 500) { console.log('here'); thumbnail.removeAttribute('width'); } else { console.log('here2'); thumbnail.width = '500'; } }; </script> </html>
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello World!</title> </head> <body> + <a id="start" href="#">Start</a> + <a id="stop" href="#">Stop and save</a> + <a id="toggle" href="#">Toggle thumbnail size</a><br> + <video id="thumbnail" width="500px" autoplay="true"></video> - <h1>Hello World!</h1> - We are using node <script>document.write(process.versions.node)</script>, - Chrome <script>document.write(process.versions.chrome)</script>, - and Electron <script>document.write(process.versions.electron)</script>. - - <video autoplay="true"></video> </body> <script> - const focusCore = require('../aperture').renderer; ? ^^^ --- + const aperture = require('../aperture').renderer; ? ^^^^^ - focusCore.init(); + aperture.init(); + + const thumbnail = document.querySelector('#thumbnail'); + document.querySelector('#start').onclick = () => { + aperture.startRecording().then(url => { + thumbnail.src = url; + }) + }; + + document.querySelector('#stop').onclick = () => { + const url = aperture.stopRecording(); + + var a = document.createElement('a'); + a.style.display = 'none'; + a.href = url; + a.download = `Screen record ${Date()}.webm`; + document.body.appendChild(a); + a.click(); + }; + + document.querySelector('#toggle').onclick = () => { + if (thumbnail.width === 500) { + console.log('here'); + thumbnail.removeAttribute('width'); + } else { + console.log('here2'); + thumbnail.width = '500'; + } + }; </script> </html>
42
2.1
34
8
4a4fe68242213c636294b4a6e0d130a26010d440
templates/mainstay_wiki/index.html
templates/mainstay_wiki/index.html
{% extends "mainstay_wiki/base.html" %} {% block content %} <p>Welcome to the Wiki</p> <p><a href="{% url 'mainstay_wiki:add_page' %}">Add a new page</a></p> {% if recently_updated %} <h3>Recently Updated Pages</h3> {% for p in recently_updated %} <p> <a href="{% url 'mainstay_wiki:page' p.title %}">{{ p.title }}</a> (Updated at {{ p.updated_at }}) </p> {% endfor %} {% endif %} {% endblock %}
{% extends "mainstay_wiki/base.html" %} {% block content %} <p>Welcome to the Wiki</p> <p><a href="{% url 'mainstay_wiki:add_page' %}">Add a new page</a></p> {% if recently_updated %} <h3>Recently Updated Pages</h3> {% for p in recently_updated %} <p> <a href="{% url 'mainstay_wiki:page' p.title %}">{{ p.title }}</a> (Updated at {{ p.updated_at }}) </p> {% endfor %} {% endif %} {% endblock %}
Reformat html for recently updated
Reformat html for recently updated
HTML
mit
plumdog/mainstay_wiki
html
## Code Before: {% extends "mainstay_wiki/base.html" %} {% block content %} <p>Welcome to the Wiki</p> <p><a href="{% url 'mainstay_wiki:add_page' %}">Add a new page</a></p> {% if recently_updated %} <h3>Recently Updated Pages</h3> {% for p in recently_updated %} <p> <a href="{% url 'mainstay_wiki:page' p.title %}">{{ p.title }}</a> (Updated at {{ p.updated_at }}) </p> {% endfor %} {% endif %} {% endblock %} ## Instruction: Reformat html for recently updated ## Code After: {% extends "mainstay_wiki/base.html" %} {% block content %} <p>Welcome to the Wiki</p> <p><a href="{% url 'mainstay_wiki:add_page' %}">Add a new page</a></p> {% if recently_updated %} <h3>Recently Updated Pages</h3> {% for p in recently_updated %} <p> <a href="{% url 'mainstay_wiki:page' p.title %}">{{ p.title }}</a> (Updated at {{ p.updated_at }}) </p> {% endfor %} {% endif %} {% endblock %}
{% extends "mainstay_wiki/base.html" %} {% block content %} - <p>Welcome to the Wiki</p> + <p>Welcome to the Wiki</p> ? ++ - <p><a href="{% url 'mainstay_wiki:add_page' %}">Add a new page</a></p> + <p><a href="{% url 'mainstay_wiki:add_page' %}">Add a new page</a></p> ? ++ - {% if recently_updated %} + {% if recently_updated %} ? ++ - <h3>Recently Updated Pages</h3> + <h3>Recently Updated Pages</h3> ? ++++ - {% for p in recently_updated %} + {% for p in recently_updated %} ? ++++ - <p> + <p> - <a href="{% url 'mainstay_wiki:page' p.title %}">{{ p.title }}</a> (Updated at {{ p.updated_at }}) ? ^^ -------------------------------- + <a href="{% url 'mainstay_wiki:page' p.title %}">{{ p.title }}</a> ? ^ - </p> + (Updated at {{ p.updated_at }}) + </p> - {% endfor %} + {% endfor %} ? ++++ - {% endif %} + {% endif %} ? ++ {% endblock %}
21
1.235294
11
10
300f7b70bb3aa74f635f489ef0027e35b1275e2d
src/definitions/Handler.ts
src/definitions/Handler.ts
import * as Big from "bignumber.js"; import * as Frames from "../definitions/FrameDirectory"; import {ItemTypes} from "./Inventory"; import {Attributes, RequestContext} from "./SkillContext"; export class Frame { constructor(id: string, entry: ReturnsResponseContext, unhandled: ReturnsFrame, FrameMap: ActionMap) { this.id = id; this.entry = entry; this.actions = FrameMap; this.unhandled = unhandled; Frames[id] = this; } id: string; entry: ReturnsResponseContext; unhandled: ReturnsFrame; actions: ActionMap; } export class ResponseContext { constructor(model: ResponseModel) { this.model = model; } model: ResponseModel; } export class ResponseModel { constructor() { this.cookieCount = new Big(0); this.upgrades = []; } speech: string; reprompt?: string; cookieCount: Big.BigNumber; upgrades: Array<ItemTypes>; } export interface ReturnsResponseContext { (Attributes: Attributes, Context?: RequestContext): ResponseContext | Promise<ResponseContext>; } export interface ActionMap { [key: string]: ReturnsFrame | undefined; } export interface ReturnsFrame { (Attributes: Attributes, Context?: RequestContext): Frame | Promise<Frame>; }
import * as Big from "bignumber.js"; import * as Frames from "../definitions/FrameDirectory"; import {ItemTypes} from "./Inventory"; import {Attributes, RequestContext} from "./SkillContext"; export class Frame { constructor(id: string, entry: ReturnsResponseContext, unhandled: ReturnsFrame, FrameMap: ActionMap) { this.id = id; this.entry = entry; this.actions = FrameMap; this.unhandled = unhandled; Frames[id] = this; } id: string; entry: ReturnsResponseContext; unhandled: ReturnsFrame; actions: ActionMap; } export class ResponseContext { constructor(model: ResponseModel) { this.model = model; } model: ResponseModel; } export class ResponseModel { constructor() { this.cookieCount = new Big(0); this.upgrades = []; } speech: string; reprompt?: string; cardText: string; cardTitle: string; cardSubtitle: string; cookieCount: Big.BigNumber; upgrades: Array<ItemTypes>; } export interface ReturnsResponseContext { (Attributes: Attributes, Context?: RequestContext): ResponseContext | Promise<ResponseContext>; } export interface ActionMap { [key: string]: ReturnsFrame | undefined; } export interface ReturnsFrame { (Attributes: Attributes, Context?: RequestContext): Frame | Promise<Frame>; }
Add card attributes to model.
Add card attributes to model.
TypeScript
agpl-3.0
deegles/cookietime,deegles/cookietime
typescript
## Code Before: import * as Big from "bignumber.js"; import * as Frames from "../definitions/FrameDirectory"; import {ItemTypes} from "./Inventory"; import {Attributes, RequestContext} from "./SkillContext"; export class Frame { constructor(id: string, entry: ReturnsResponseContext, unhandled: ReturnsFrame, FrameMap: ActionMap) { this.id = id; this.entry = entry; this.actions = FrameMap; this.unhandled = unhandled; Frames[id] = this; } id: string; entry: ReturnsResponseContext; unhandled: ReturnsFrame; actions: ActionMap; } export class ResponseContext { constructor(model: ResponseModel) { this.model = model; } model: ResponseModel; } export class ResponseModel { constructor() { this.cookieCount = new Big(0); this.upgrades = []; } speech: string; reprompt?: string; cookieCount: Big.BigNumber; upgrades: Array<ItemTypes>; } export interface ReturnsResponseContext { (Attributes: Attributes, Context?: RequestContext): ResponseContext | Promise<ResponseContext>; } export interface ActionMap { [key: string]: ReturnsFrame | undefined; } export interface ReturnsFrame { (Attributes: Attributes, Context?: RequestContext): Frame | Promise<Frame>; } ## Instruction: Add card attributes to model. ## Code After: import * as Big from "bignumber.js"; import * as Frames from "../definitions/FrameDirectory"; import {ItemTypes} from "./Inventory"; import {Attributes, RequestContext} from "./SkillContext"; export class Frame { constructor(id: string, entry: ReturnsResponseContext, unhandled: ReturnsFrame, FrameMap: ActionMap) { this.id = id; this.entry = entry; this.actions = FrameMap; this.unhandled = unhandled; Frames[id] = this; } id: string; entry: ReturnsResponseContext; unhandled: ReturnsFrame; actions: ActionMap; } export class ResponseContext { constructor(model: ResponseModel) { this.model = model; } model: ResponseModel; } export class ResponseModel { constructor() { this.cookieCount = new Big(0); this.upgrades = []; } speech: string; reprompt?: string; cardText: string; cardTitle: string; cardSubtitle: string; cookieCount: Big.BigNumber; upgrades: Array<ItemTypes>; } export interface ReturnsResponseContext { (Attributes: Attributes, Context?: RequestContext): ResponseContext | Promise<ResponseContext>; } export interface ActionMap { [key: string]: ReturnsFrame | undefined; } export interface ReturnsFrame { (Attributes: Attributes, Context?: RequestContext): Frame | Promise<Frame>; }
import * as Big from "bignumber.js"; import * as Frames from "../definitions/FrameDirectory"; import {ItemTypes} from "./Inventory"; import {Attributes, RequestContext} from "./SkillContext"; export class Frame { constructor(id: string, entry: ReturnsResponseContext, unhandled: ReturnsFrame, FrameMap: ActionMap) { this.id = id; this.entry = entry; this.actions = FrameMap; this.unhandled = unhandled; Frames[id] = this; } id: string; entry: ReturnsResponseContext; unhandled: ReturnsFrame; actions: ActionMap; } export class ResponseContext { constructor(model: ResponseModel) { this.model = model; } model: ResponseModel; } export class ResponseModel { constructor() { this.cookieCount = new Big(0); this.upgrades = []; } speech: string; reprompt?: string; + cardText: string; + cardTitle: string; + cardSubtitle: string; cookieCount: Big.BigNumber; upgrades: Array<ItemTypes>; } export interface ReturnsResponseContext { (Attributes: Attributes, Context?: RequestContext): ResponseContext | Promise<ResponseContext>; } export interface ActionMap { [key: string]: ReturnsFrame | undefined; } export interface ReturnsFrame { (Attributes: Attributes, Context?: RequestContext): Frame | Promise<Frame>; }
3
0.054545
3
0
7b1b6d8b671da8cc0d0af5e57841f80b56d3b4b8
README.md
README.md
[![Build Status](https://travis-ci.org/scsouthw/project-oxford-python.svg?branch=master)](https://travis-ci.org/scsouthw/project-oxford-python) # Project Oxford for Python # ## Contributing ## **Development environment** * Install [python](https://www.python.org/downloads/), [pip](http://pip.readthedocs.org/en/stable/installing/), [Visual Studio](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx), [python tools for VS](https://www.visualstudio.com/en-us/features/python-vs.aspx) * Get a [Project Oxford API key](https://www.projectoxford.ai/) * Install dev dependencies ``` python setup.py install ``` * Set environment variable API key ``` set OXFORD_API_KEY=<insert_your_key_here> ``` * Run tests ``` python setup.py test ```
[![Build Status](https://travis-ci.org/scsouthw/project-oxford-python.svg?branch=master)](https://travis-ci.org/scsouthw/project-oxford-python) This package contains a set of intelligent APIs understanding images: It can detect and analyze people's faces, their age, gender, and similarity. It can identify people based on a set of images. It can understand what is displayed in a picture and crop it according to where the important features are. It can tell you whether an image contains adult content, what the main colors are, and which of your images belong in a group. If your image features text, it will tell you the language and return the text as a string. It's basically magic. For more details on the Project Oxford API, please visit [projectoxford.ai](projectoxford.ai/demo/face#detection). This python module implements all APIs available in the Face and Vision APIs of Project Oxford. ![](https://i.imgur.com/Zrsnhd3.jpg) ## Contributing **Development environment** * Install [python](https://www.python.org/downloads/), [pip](http://pip.readthedocs.org/en/stable/installing/), [Visual Studio](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx), [python tools for VS](https://www.visualstudio.com/en-us/features/python-vs.aspx) * Get a [Project Oxford API key](https://www.projectoxford.ai/) * Install dev dependencies ``` pip install requests ``` * Set environment variable API key ``` set OXFORD_API_KEY=<insert_your_key_here> ``` * Run tests ``` python setup.py test ``` ## License Licensed as MIT - please see LICENSE for details.
Update description and add license
Update description and add license
Markdown
mit
scsouthw/project-oxford-python,chidochipotle/oxford
markdown
## Code Before: [![Build Status](https://travis-ci.org/scsouthw/project-oxford-python.svg?branch=master)](https://travis-ci.org/scsouthw/project-oxford-python) # Project Oxford for Python # ## Contributing ## **Development environment** * Install [python](https://www.python.org/downloads/), [pip](http://pip.readthedocs.org/en/stable/installing/), [Visual Studio](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx), [python tools for VS](https://www.visualstudio.com/en-us/features/python-vs.aspx) * Get a [Project Oxford API key](https://www.projectoxford.ai/) * Install dev dependencies ``` python setup.py install ``` * Set environment variable API key ``` set OXFORD_API_KEY=<insert_your_key_here> ``` * Run tests ``` python setup.py test ``` ## Instruction: Update description and add license ## Code After: [![Build Status](https://travis-ci.org/scsouthw/project-oxford-python.svg?branch=master)](https://travis-ci.org/scsouthw/project-oxford-python) This package contains a set of intelligent APIs understanding images: It can detect and analyze people's faces, their age, gender, and similarity. It can identify people based on a set of images. It can understand what is displayed in a picture and crop it according to where the important features are. It can tell you whether an image contains adult content, what the main colors are, and which of your images belong in a group. If your image features text, it will tell you the language and return the text as a string. It's basically magic. For more details on the Project Oxford API, please visit [projectoxford.ai](projectoxford.ai/demo/face#detection). This python module implements all APIs available in the Face and Vision APIs of Project Oxford. ![](https://i.imgur.com/Zrsnhd3.jpg) ## Contributing **Development environment** * Install [python](https://www.python.org/downloads/), [pip](http://pip.readthedocs.org/en/stable/installing/), [Visual Studio](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx), [python tools for VS](https://www.visualstudio.com/en-us/features/python-vs.aspx) * Get a [Project Oxford API key](https://www.projectoxford.ai/) * Install dev dependencies ``` pip install requests ``` * Set environment variable API key ``` set OXFORD_API_KEY=<insert_your_key_here> ``` * Run tests ``` python setup.py test ``` ## License Licensed as MIT - please see LICENSE for details.
- [![Build Status](https://travis-ci.org/scsouthw/project-oxford-python.svg?branch=master)](https://travis-ci.org/scsouthw/project-oxford-python) ? - + [![Build Status](https://travis-ci.org/scsouthw/project-oxford-python.svg?branch=master)](https://travis-ci.org/scsouthw/project-oxford-python) - # Project Oxford for Python # + This package contains a set of intelligent APIs understanding images: It can detect and analyze people's faces, their age, gender, and similarity. It can identify people based on a set of images. It can understand what is displayed in a picture and crop it according to where the important features are. It can tell you whether an image contains adult content, what the main colors are, and which of your images belong in a group. If your image features text, it will tell you the language and return the text as a string. It's basically magic. For more details on the Project Oxford API, please visit [projectoxford.ai](projectoxford.ai/demo/face#detection). + This python module implements all APIs available in the Face and Vision APIs of Project Oxford. + + ![](https://i.imgur.com/Zrsnhd3.jpg) + - ## Contributing ## ? --- + ## Contributing **Development environment** * Install [python](https://www.python.org/downloads/), [pip](http://pip.readthedocs.org/en/stable/installing/), [Visual Studio](https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx), [python tools for VS](https://www.visualstudio.com/en-us/features/python-vs.aspx) * Get a [Project Oxford API key](https://www.projectoxford.ai/) * Install dev dependencies ``` - python setup.py install + pip install requests ``` * Set environment variable API key ``` set OXFORD_API_KEY=<insert_your_key_here> ``` * Run tests ``` python setup.py test ``` + + ## License + Licensed as MIT - please see LICENSE for details.
15
0.576923
11
4
956fb0f84a9d7418a6286dc1f930304acb42e515
composer.json
composer.json
{ "name": "solarium/solarium-cloud", "type": "library", "description": "PHP SolrCloud client", "keywords": ["solr", "solrcloud", "solarium", "solr-client", "search", "zookeeper", "zookeeper-client", "php"], "homepage": "https://github.com/solariumphp/solarium-cloud", "license": "BSD-2-Clause", "authors": [ { "name": "Jeroen Steggink", "homepage": "https://knowsy.nl", "role": "Developer" }, { "name": "See GitHub contributors", "homepage": "https://github.com/solariumphp/solarium-cloud/contributors" } ], "require": { "php": "~7.0", "solarium/solarium": "~4.0", "symfony/cache": "~3.4" }, "require-dev": { "phpunit/phpunit": "~6.1" }, "autoload": { "psr-4": { "Solarium\\Cloud\\": "src/Solarium/Cloud/" } } }
{ "name": "solarium/solarium-cloud", "type": "library", "description": "PHP Apache SolrCloud client", "keywords": ["solr", "solrcloud", "solarium", "solr-client", "search", "zookeeper", "zookeeper-client", "php"], "homepage": "https://github.com/solariumphp/solarium-cloud", "license": "BSD-2-Clause", "authors": [ { "name": "Jeroen Steggink", "homepage": "https://knowsy.nl", "role": "Developer" }, { "name": "See GitHub contributors", "homepage": "https://github.com/solariumphp/solarium-cloud/contributors" } ], "require": { "php": "~7.0", "solarium/solarium": "~3.8.1", "symfony/cache": "~3.4" }, "require-dev": { "phpunit/phpunit": "~6.1" }, "autoload": { "psr-4": { "Solarium\\Cloud\\": "src/Solarium/Cloud/" } } }
Set Solarium version back to 3.8.1.
Set Solarium version back to 3.8.1.
JSON
bsd-2-clause
solariumphp/solarium-cloud
json
## Code Before: { "name": "solarium/solarium-cloud", "type": "library", "description": "PHP SolrCloud client", "keywords": ["solr", "solrcloud", "solarium", "solr-client", "search", "zookeeper", "zookeeper-client", "php"], "homepage": "https://github.com/solariumphp/solarium-cloud", "license": "BSD-2-Clause", "authors": [ { "name": "Jeroen Steggink", "homepage": "https://knowsy.nl", "role": "Developer" }, { "name": "See GitHub contributors", "homepage": "https://github.com/solariumphp/solarium-cloud/contributors" } ], "require": { "php": "~7.0", "solarium/solarium": "~4.0", "symfony/cache": "~3.4" }, "require-dev": { "phpunit/phpunit": "~6.1" }, "autoload": { "psr-4": { "Solarium\\Cloud\\": "src/Solarium/Cloud/" } } } ## Instruction: Set Solarium version back to 3.8.1. ## Code After: { "name": "solarium/solarium-cloud", "type": "library", "description": "PHP Apache SolrCloud client", "keywords": ["solr", "solrcloud", "solarium", "solr-client", "search", "zookeeper", "zookeeper-client", "php"], "homepage": "https://github.com/solariumphp/solarium-cloud", "license": "BSD-2-Clause", "authors": [ { "name": "Jeroen Steggink", "homepage": "https://knowsy.nl", "role": "Developer" }, { "name": "See GitHub contributors", "homepage": "https://github.com/solariumphp/solarium-cloud/contributors" } ], "require": { "php": "~7.0", "solarium/solarium": "~3.8.1", "symfony/cache": "~3.4" }, "require-dev": { "phpunit/phpunit": "~6.1" }, "autoload": { "psr-4": { "Solarium\\Cloud\\": "src/Solarium/Cloud/" } } }
{ "name": "solarium/solarium-cloud", "type": "library", - "description": "PHP SolrCloud client", + "description": "PHP Apache SolrCloud client", ? +++++++ "keywords": ["solr", "solrcloud", "solarium", "solr-client", "search", "zookeeper", "zookeeper-client", "php"], "homepage": "https://github.com/solariumphp/solarium-cloud", "license": "BSD-2-Clause", "authors": [ { "name": "Jeroen Steggink", "homepage": "https://knowsy.nl", "role": "Developer" }, { "name": "See GitHub contributors", "homepage": "https://github.com/solariumphp/solarium-cloud/contributors" } ], "require": { "php": "~7.0", - "solarium/solarium": "~4.0", ? ^ ^ + "solarium/solarium": "~3.8.1", ? ^ ^^^ "symfony/cache": "~3.4" }, "require-dev": { "phpunit/phpunit": "~6.1" }, "autoload": { "psr-4": { "Solarium\\Cloud\\": "src/Solarium/Cloud/" } } }
4
0.133333
2
2
7eaa1cf6f8e572ce5b854fffce10b05628c79c0f
tools/marvin/setup.py
tools/marvin/setup.py
from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version else: try: import paramiko except ImportError: print "Marvin requires paramiko to be installed" raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], )
from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], )
Install paramiko as a dependency, don't complain about the requirement
Install paramiko as a dependency, don't complain about the requirement
Python
apache-2.0
mufaddalq/cloudstack-datera-driver,jcshen007/cloudstack,cinderella/incubator-cloudstack,cinderella/incubator-cloudstack,wido/cloudstack,jcshen007/cloudstack,resmo/cloudstack,argv0/cloudstack,mufaddalq/cloudstack-datera-driver,mufaddalq/cloudstack-datera-driver,wido/cloudstack,jcshen007/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,mufaddalq/cloudstack-datera-driver,GabrielBrascher/cloudstack,jcshen007/cloudstack,GabrielBrascher/cloudstack,argv0/cloudstack,GabrielBrascher/cloudstack,wido/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,jcshen007/cloudstack,DaanHoogland/cloudstack,wido/cloudstack,jcshen007/cloudstack,mufaddalq/cloudstack-datera-driver,GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,mufaddalq/cloudstack-datera-driver,argv0/cloudstack,DaanHoogland/cloudstack,wido/cloudstack,resmo/cloudstack,resmo/cloudstack,jcshen007/cloudstack,cinderella/incubator-cloudstack,wido/cloudstack,DaanHoogland/cloudstack,cinderella/incubator-cloudstack,GabrielBrascher/cloudstack,wido/cloudstack,argv0/cloudstack,argv0/cloudstack,DaanHoogland/cloudstack,DaanHoogland/cloudstack,cinderella/incubator-cloudstack,GabrielBrascher/cloudstack,resmo/cloudstack,argv0/cloudstack
python
## Code Before: from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version else: try: import paramiko except ImportError: print "Marvin requires paramiko to be installed" raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], ) ## Instruction: Install paramiko as a dependency, don't complain about the requirement ## Code After: from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], )
from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version - else: - try: - import paramiko - except ImportError: - print "Marvin requires paramiko to be installed" - raise ? ---- + raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], )
7
0.225806
1
6
082674e124eb3721db3e44bd00519f343762d40a
app/helpers/api/pages_helper.rb
app/helpers/api/pages_helper.rb
module Api::PagesHelper def image_url(page, size = 'medium') path = page.primary_image.try(:content).try(:url, size) return '' if path.blank? URI.join(ActionController::Base.asset_host, path).to_s end # List all images required for api/featured.json def images_src_set(page) %w[medium_square medium large].each_with_index.collect do |size, index| (url = image_url(page, size)).present? ? (url.to_s + " #{index + 1}x") : nil end end end
module Api::PagesHelper def image_url(page, size = 'medium') path = page.primary_image.try(:content).try(:url, size) return '' if path.blank? URI.join(ActionController::Base.asset_host, path).to_s end # List all images required for api/featured.json def images_src_set(page) %w[medium medium_square large].each_with_index.collect do |size, index| (url = image_url(page, size)).present? ? (url.to_s + " #{index + 1}x") : nil end end end
Revert "Changed the order of images in the srcset attrib"
Revert "Changed the order of images in the srcset attrib" This reverts commit 33e665a8c0cb7ce36f3d5121fa0a7c164b6994e8.
Ruby
mit
SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign
ruby
## Code Before: module Api::PagesHelper def image_url(page, size = 'medium') path = page.primary_image.try(:content).try(:url, size) return '' if path.blank? URI.join(ActionController::Base.asset_host, path).to_s end # List all images required for api/featured.json def images_src_set(page) %w[medium_square medium large].each_with_index.collect do |size, index| (url = image_url(page, size)).present? ? (url.to_s + " #{index + 1}x") : nil end end end ## Instruction: Revert "Changed the order of images in the srcset attrib" This reverts commit 33e665a8c0cb7ce36f3d5121fa0a7c164b6994e8. ## Code After: module Api::PagesHelper def image_url(page, size = 'medium') path = page.primary_image.try(:content).try(:url, size) return '' if path.blank? URI.join(ActionController::Base.asset_host, path).to_s end # List all images required for api/featured.json def images_src_set(page) %w[medium medium_square large].each_with_index.collect do |size, index| (url = image_url(page, size)).present? ? (url.to_s + " #{index + 1}x") : nil end end end
module Api::PagesHelper def image_url(page, size = 'medium') path = page.primary_image.try(:content).try(:url, size) return '' if path.blank? URI.join(ActionController::Base.asset_host, path).to_s end # List all images required for api/featured.json def images_src_set(page) - %w[medium_square medium large].each_with_index.collect do |size, index| ? ------- + %w[medium medium_square large].each_with_index.collect do |size, index| ? +++++++ (url = image_url(page, size)).present? ? (url.to_s + " #{index + 1}x") : nil end end end
2
0.125
1
1
f0f8e41755da7c89f4492b2a80d3c22f1ea2d1de
.travis.yml
.travis.yml
language: ruby rvm: - "2.5" - "2.4" - "2.3" git: depth: 5 cache: bundler before_install: - nvm install node env: - EXECJS_RUNTIME=Node - EXECJS_RUNTIME=MiniRacer matrix: exclude: - rvm: "2.3" env: "EXECJS_RUNTIME=Node" - rvm: "2.4" env: "EXECJS_RUNTIME=Node"
language: ruby rvm: - "2.6" - "2.5" - "2.4" - "2.3" git: depth: 5 cache: bundler before_install: - nvm install node env: - EXECJS_RUNTIME=Node - EXECJS_RUNTIME=MiniRacer matrix: exclude: - rvm: "2.3" env: "EXECJS_RUNTIME=Node" - rvm: "2.4" env: "EXECJS_RUNTIME=Node" - rvm: "2.5" env: "EXECJS_RUNTIME=Node"
Update Ruby for Travis CI
Update Ruby for Travis CI
YAML
mit
ai/autoprefixer-rails,ai/autoprefixer-rails,ai/autoprefixer-rails,ai/autoprefixer-rails
yaml
## Code Before: language: ruby rvm: - "2.5" - "2.4" - "2.3" git: depth: 5 cache: bundler before_install: - nvm install node env: - EXECJS_RUNTIME=Node - EXECJS_RUNTIME=MiniRacer matrix: exclude: - rvm: "2.3" env: "EXECJS_RUNTIME=Node" - rvm: "2.4" env: "EXECJS_RUNTIME=Node" ## Instruction: Update Ruby for Travis CI ## Code After: language: ruby rvm: - "2.6" - "2.5" - "2.4" - "2.3" git: depth: 5 cache: bundler before_install: - nvm install node env: - EXECJS_RUNTIME=Node - EXECJS_RUNTIME=MiniRacer matrix: exclude: - rvm: "2.3" env: "EXECJS_RUNTIME=Node" - rvm: "2.4" env: "EXECJS_RUNTIME=Node" - rvm: "2.5" env: "EXECJS_RUNTIME=Node"
language: ruby rvm: + - "2.6" - "2.5" - "2.4" - "2.3" git: depth: 5 cache: bundler before_install: - nvm install node env: - EXECJS_RUNTIME=Node - EXECJS_RUNTIME=MiniRacer matrix: exclude: - rvm: "2.3" env: "EXECJS_RUNTIME=Node" - rvm: "2.4" env: "EXECJS_RUNTIME=Node" + + - rvm: "2.5" + env: "EXECJS_RUNTIME=Node"
4
0.2
4
0
4974bb1e1deca1333f42b449af2a5acde6871687
overwrite_theme/main.html
overwrite_theme/main.html
{% extends "base.html" %} {% block content %} <div class="admonition info"> <p class="admonition-title"> HTCondor-CE 4 Documentation </p> <p> This documentation is for HTCondor-CE 4. If you need documentation for HTCondor-CE 3, please consult <a href="https://htcondor-ce.readthedocs.io/en/stable/">https://htcondor-ce.readthedocs.io/en/stable/</a> </p> </div> {{ super() }} {% endblock %}
{% extends "base.html" %} {% block content %} <div class="admonition question"> <p class="admonition-title"> Virtual Office Hours </p> <p> Have questions about HTCondor-CE? Join our office hours on <a href="https://research.cs.wisc.edu/htcondor/office-hours/2020-07-21-HTCondorCE/">21 July, 2020</a>! </p> </div> <div class="admonition info"> <p class="admonition-title"> HTCondor-CE 4 Documentation </p> <p> This documentation is for HTCondor-CE 4. If you need documentation for HTCondor-CE 3, please consult <a href="https://htcondor-ce.readthedocs.io/en/stable/">https://htcondor-ce.readthedocs.io/en/stable/</a> </p> </div> {{ super() }} {% endblock %}
Add site-wide office hours admonition
Add site-wide office hours admonition
HTML
apache-2.0
brianhlin/htcondor-ce,matyasselmeci/htcondor-ce,matyasselmeci/htcondor-ce,opensciencegrid/htcondor-ce,brianhlin/htcondor-ce,brianhlin/htcondor-ce,opensciencegrid/htcondor-ce,opensciencegrid/htcondor-ce,matyasselmeci/htcondor-ce
html
## Code Before: {% extends "base.html" %} {% block content %} <div class="admonition info"> <p class="admonition-title"> HTCondor-CE 4 Documentation </p> <p> This documentation is for HTCondor-CE 4. If you need documentation for HTCondor-CE 3, please consult <a href="https://htcondor-ce.readthedocs.io/en/stable/">https://htcondor-ce.readthedocs.io/en/stable/</a> </p> </div> {{ super() }} {% endblock %} ## Instruction: Add site-wide office hours admonition ## Code After: {% extends "base.html" %} {% block content %} <div class="admonition question"> <p class="admonition-title"> Virtual Office Hours </p> <p> Have questions about HTCondor-CE? Join our office hours on <a href="https://research.cs.wisc.edu/htcondor/office-hours/2020-07-21-HTCondorCE/">21 July, 2020</a>! </p> </div> <div class="admonition info"> <p class="admonition-title"> HTCondor-CE 4 Documentation </p> <p> This documentation is for HTCondor-CE 4. If you need documentation for HTCondor-CE 3, please consult <a href="https://htcondor-ce.readthedocs.io/en/stable/">https://htcondor-ce.readthedocs.io/en/stable/</a> </p> </div> {{ super() }} {% endblock %}
{% extends "base.html" %} {% block content %} + <div class="admonition question"> + <p class="admonition-title"> + Virtual Office Hours + </p> + <p> + Have questions about HTCondor-CE? + Join our office hours on + <a href="https://research.cs.wisc.edu/htcondor/office-hours/2020-07-21-HTCondorCE/">21 July, 2020</a>! + </p> + </div> <div class="admonition info"> <p class="admonition-title"> HTCondor-CE 4 Documentation </p> <p> This documentation is for HTCondor-CE 4. If you need documentation for HTCondor-CE 3, please consult <a href="https://htcondor-ce.readthedocs.io/en/stable/">https://htcondor-ce.readthedocs.io/en/stable/</a> </p> </div> {{ super() }} {% endblock %}
10
0.666667
10
0
93019b6835de3d23367897c514f13b83da330fd1
config/nvim/lua/gb-git.lua
config/nvim/lua/gb-git.lua
keymap = require("nutils").map require("gitsigns").setup( { watch_index = { interval = 100 } } ) keymap("n", "<leader>gs", ":vertical Git<CR>", {silent = true}) keymap("n", "<leader>gh", ":diffget //2<CR>", {silent = true}) keymap("n", "<leader>gl", ":diffget //3<CR>", {silent = true})
keymap = require("nutils").map require("gitsigns").setup( { watch_index = { interval = 100 } } ) keymap("n", "<leader>gs", ":vertical Git<CR>", {silent = true}) keymap("n", "<leader>gh", ":diffget //2<CR>", {silent = true}) keymap("n", "<leader>gl", ":diffget //3<CR>", {silent = true}) keymap("n", "<leader>gb", ":Git blame<CR>", {silent = true})
Add shortcut for git blame
Add shortcut for git blame
Lua
mit
gblock0/dotfiles
lua
## Code Before: keymap = require("nutils").map require("gitsigns").setup( { watch_index = { interval = 100 } } ) keymap("n", "<leader>gs", ":vertical Git<CR>", {silent = true}) keymap("n", "<leader>gh", ":diffget //2<CR>", {silent = true}) keymap("n", "<leader>gl", ":diffget //3<CR>", {silent = true}) ## Instruction: Add shortcut for git blame ## Code After: keymap = require("nutils").map require("gitsigns").setup( { watch_index = { interval = 100 } } ) keymap("n", "<leader>gs", ":vertical Git<CR>", {silent = true}) keymap("n", "<leader>gh", ":diffget //2<CR>", {silent = true}) keymap("n", "<leader>gl", ":diffget //3<CR>", {silent = true}) keymap("n", "<leader>gb", ":Git blame<CR>", {silent = true})
keymap = require("nutils").map require("gitsigns").setup( { watch_index = { interval = 100 } } ) keymap("n", "<leader>gs", ":vertical Git<CR>", {silent = true}) keymap("n", "<leader>gh", ":diffget //2<CR>", {silent = true}) keymap("n", "<leader>gl", ":diffget //3<CR>", {silent = true}) + keymap("n", "<leader>gb", ":Git blame<CR>", {silent = true})
1
0.076923
1
0
31d3762317b1ab84f2b2565f111e7d84937936d1
ci/dependencies.sh
ci/dependencies.sh
pyrus channel-discover pear.survivethedeepend.com pyrus install deepend/Mockery phpenv rehash
pyrus channel-discover pear.survivethedeepend.com pyrus channel-discover hamcrest.googlecode.com/svn/pear pyrus install deepend/Mockery --alldeps phpenv rehash
Add Hamcrest as B-D for CI
Add Hamcrest as B-D for CI
Shell
bsd-2-clause
protecinnovations/aws-php,protecinnovations/aws-php
shell
## Code Before: pyrus channel-discover pear.survivethedeepend.com pyrus install deepend/Mockery phpenv rehash ## Instruction: Add Hamcrest as B-D for CI ## Code After: pyrus channel-discover pear.survivethedeepend.com pyrus channel-discover hamcrest.googlecode.com/svn/pear pyrus install deepend/Mockery --alldeps phpenv rehash
pyrus channel-discover pear.survivethedeepend.com + pyrus channel-discover hamcrest.googlecode.com/svn/pear - pyrus install deepend/Mockery + pyrus install deepend/Mockery --alldeps ? ++++++++++ phpenv rehash
3
0.6
2
1
3299714f51fc5cec67fb480d1a0c54164b98452b
src/poule/server/action.go
src/poule/server/action.go
package server import ( "poule/configuration" "poule/gh" "poule/runner" "github.com/Sirupsen/logrus" ) func executeAction(config *configuration.Config, action configuration.Action, item gh.Item) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, "number": item.Number(), "repository": item.Repository(), }).Info("running operation") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } return opRunner.Handle(item) } return nil } func executeActionOnAllItems(config *configuration.Config, action configuration.Action) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, }).Info("running operation on stock") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } return opRunner.HandleStock() } return nil }
package server import ( "poule/configuration" "poule/gh" "poule/runner" "github.com/Sirupsen/logrus" ) func executeAction(config *configuration.Config, action configuration.Action, item gh.Item) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, "number": item.Number(), "repository": item.Repository(), }).Info("running operation") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } if err := opRunner.Handle(item); err != nil { return err } } return nil } func executeActionOnAllItems(config *configuration.Config, action configuration.Action) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, }).Info("running operation on stock") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } if err := opRunner.HandleStock(); err != nil { return err } } return nil }
Fix serve bug executing only the first operation
Fix serve bug executing only the first operation Fix a bug where only the first operation as part of a trigger was executed when running in serve mode. Signed-off-by: Arnaud Porterie (icecrime) <55258e89a8b41a46066b3a9514b15a78c1a88d17@docker.com>
Go
apache-2.0
icecrime/poule,icecrime/poule
go
## Code Before: package server import ( "poule/configuration" "poule/gh" "poule/runner" "github.com/Sirupsen/logrus" ) func executeAction(config *configuration.Config, action configuration.Action, item gh.Item) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, "number": item.Number(), "repository": item.Repository(), }).Info("running operation") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } return opRunner.Handle(item) } return nil } func executeActionOnAllItems(config *configuration.Config, action configuration.Action) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, }).Info("running operation on stock") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } return opRunner.HandleStock() } return nil } ## Instruction: Fix serve bug executing only the first operation Fix a bug where only the first operation as part of a trigger was executed when running in serve mode. Signed-off-by: Arnaud Porterie (icecrime) <55258e89a8b41a46066b3a9514b15a78c1a88d17@docker.com> ## Code After: package server import ( "poule/configuration" "poule/gh" "poule/runner" "github.com/Sirupsen/logrus" ) func executeAction(config *configuration.Config, action configuration.Action, item gh.Item) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, "number": item.Number(), "repository": item.Repository(), }).Info("running operation") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } if err := opRunner.Handle(item); err != nil { return err } } return nil } func executeActionOnAllItems(config *configuration.Config, action configuration.Action) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, }).Info("running operation on stock") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } if err := opRunner.HandleStock(); err != nil { return err } } return nil }
package server import ( "poule/configuration" "poule/gh" "poule/runner" "github.com/Sirupsen/logrus" ) func executeAction(config *configuration.Config, action configuration.Action, item gh.Item) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, "number": item.Number(), "repository": item.Repository(), }).Info("running operation") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } - return opRunner.Handle(item) + if err := opRunner.Handle(item); err != nil { + return err + } } return nil } func executeActionOnAllItems(config *configuration.Config, action configuration.Action) error { for _, opConfig := range action.Operations { logrus.WithFields(logrus.Fields{ "operation": opConfig.Type, }).Info("running operation on stock") opRunner, err := runner.NewOperationRunnerFromConfig(config, &opConfig) if err != nil { return err } - return opRunner.HandleStock() + if err := opRunner.HandleStock(); err != nil { + return err + } } return nil }
8
0.195122
6
2
3624cff9719ae4fee82d131badfd9564938f1e76
.config/fish/conf.d/02-path.fish
.config/fish/conf.d/02-path.fish
function add_to_path -d "Add the given directory to user's path" if test -d $argv set -gx fish_user_paths $fish_user_paths $argv end end add_to_path $GOROOT/bin add_to_path $GOPATH/bin add_to_path ~/.local/bin add_to_path /usr/bin/core_perl add_to_path ~/sh
function add_to_path -d "Add the given directory to user's path" if test -d $argv set -gx fish_user_paths $fish_user_paths $argv end end add_to_path $GOROOT/bin add_to_path $GOPATH/bin add_to_path ~/.local/bin add_to_path /usr/bin/core_perl add_to_path ~/sh add_to_path /home/_/nummen/matlab/bin
Create matlab branch and add matlab bin to $PATH
Create matlab branch and add matlab bin to $PATH
fish
unlicense
karlek/dotfiles,karlek/dotfiles
fish
## Code Before: function add_to_path -d "Add the given directory to user's path" if test -d $argv set -gx fish_user_paths $fish_user_paths $argv end end add_to_path $GOROOT/bin add_to_path $GOPATH/bin add_to_path ~/.local/bin add_to_path /usr/bin/core_perl add_to_path ~/sh ## Instruction: Create matlab branch and add matlab bin to $PATH ## Code After: function add_to_path -d "Add the given directory to user's path" if test -d $argv set -gx fish_user_paths $fish_user_paths $argv end end add_to_path $GOROOT/bin add_to_path $GOPATH/bin add_to_path ~/.local/bin add_to_path /usr/bin/core_perl add_to_path ~/sh add_to_path /home/_/nummen/matlab/bin
function add_to_path -d "Add the given directory to user's path" if test -d $argv set -gx fish_user_paths $fish_user_paths $argv end end add_to_path $GOROOT/bin add_to_path $GOPATH/bin add_to_path ~/.local/bin add_to_path /usr/bin/core_perl add_to_path ~/sh + add_to_path /home/_/nummen/matlab/bin
1
0.1
1
0
2534ce1676294325de05b5afaa58a78b39c47783
third_party/mlir/lib/Dialect/LLVMIR/CMakeLists.txt
third_party/mlir/lib/Dialect/LLVMIR/CMakeLists.txt
add_llvm_library(MLIRLLVMIR IR/LLVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport) add_llvm_library(MLIRNVVMIR IR/NVVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport) add_llvm_library(MLIRROCDLIR IR/ROCDLDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport)
add_llvm_library(MLIRLLVMIR IR/LLVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) add_llvm_library(MLIRNVVMIR IR/NVVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) add_llvm_library(MLIRROCDLIR IR/ROCDLDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR)
Add MLIRIR as a dependency to LLVM and related dialects
Add MLIRIR as a dependency to LLVM and related dialects Fixes https://github.com/tensorflow/mlir/issues/289 PiperOrigin-RevId: 283914472 Change-Id: Id5fff4822e4a08310e50f2b4a8bb78056bb4cc53
Text
apache-2.0
petewarden/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,xzturn/tensorflow,aam-at/tensorflow,aam-at/tensorflow,yongtang/tensorflow,renyi533/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,sarvex/tensorflow,aam-at/tensorflow,gunan/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,gunan/tensorflow,freedomtan/tensorflow,annarev/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,gunan/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,jhseu/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,renyi533/tensorflow,jhseu/tensorflow,renyi533/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,aam-at/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,davidzchen/tensorflow,annarev/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,karllessard/tensorflow,gunan/tensorflow,annarev/tensorflow,yongtang/tensorflow,sarvex/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,yongtang/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,xzturn/tensorflow,gunan/tensorflow,karllessard/tensorflow,petewarden/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,jhseu/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,petewarden/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,aldian/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,renyi533/tensorflow,aldian/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,yongtang/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,aldian/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,gunan/tensorflow,renyi533/tensorflow,aam-at/tensorflow,gunan/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,aldian/tensorflow,gunan/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,sarvex/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,jhseu/tensorflow
text
## Code Before: add_llvm_library(MLIRLLVMIR IR/LLVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport) add_llvm_library(MLIRNVVMIR IR/NVVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport) add_llvm_library(MLIRROCDLIR IR/ROCDLDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport) ## Instruction: Add MLIRIR as a dependency to LLVM and related dialects Fixes https://github.com/tensorflow/mlir/issues/289 PiperOrigin-RevId: 283914472 Change-Id: Id5fff4822e4a08310e50f2b4a8bb78056bb4cc53 ## Code After: add_llvm_library(MLIRLLVMIR IR/LLVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) add_llvm_library(MLIRNVVMIR IR/NVVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) add_llvm_library(MLIRROCDLIR IR/ROCDLDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR)
add_llvm_library(MLIRLLVMIR IR/LLVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) - target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport) + target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) ? +++++++ add_llvm_library(MLIRNVVMIR IR/NVVMDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) - target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport) + target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) ? +++++++ add_llvm_library(MLIRROCDLIR IR/ROCDLDialect.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR ) add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport) - target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport) + target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR) ? +++++++
6
0.230769
3
3
dca694edd86586e1b5b0dd0ad8e359bb105ab500
appveyor.yml
appveyor.yml
version: '{build}' # init: # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) install: - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - "%devkit%\\devkitvars.bat" - ruby --version - gem --version - bundle install build: off test_script: - bundle exec rake test # - bundle exec rake test TESTOPTS=-v branches: only: - master # https://www.appveyor.com/docs/installed-software/#ruby environment: matrix: - ruby_version: "23-x64" devkit: C:\Ruby23-x64\DevKit - ruby_version: "23" devkit: C:\Ruby23\DevKit
version: '{build}' # init: # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) install: - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version - ridk.cmd exec bundle install build: off test_script: - bundle exec rake test # - bundle exec rake test TESTOPTS=-v branches: only: - master # https://www.appveyor.com/docs/installed-software/#ruby environment: matrix: - ruby_version: "24-x64" - ruby_version: "24"
Switch to use Ruby 2.4 from Ruby 2.3
Switch to use Ruby 2.4 from Ruby 2.3
YAML
apache-2.0
okahashi117/fluent-plugin-winevtlog
yaml
## Code Before: version: '{build}' # init: # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) install: - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - "%devkit%\\devkitvars.bat" - ruby --version - gem --version - bundle install build: off test_script: - bundle exec rake test # - bundle exec rake test TESTOPTS=-v branches: only: - master # https://www.appveyor.com/docs/installed-software/#ruby environment: matrix: - ruby_version: "23-x64" devkit: C:\Ruby23-x64\DevKit - ruby_version: "23" devkit: C:\Ruby23\DevKit ## Instruction: Switch to use Ruby 2.4 from Ruby 2.3 ## Code After: version: '{build}' # init: # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) install: - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version - ridk.cmd exec bundle install build: off test_script: - bundle exec rake test # - bundle exec rake test TESTOPTS=-v branches: only: - master # https://www.appveyor.com/docs/installed-software/#ruby environment: matrix: - ruby_version: "24-x64" - ruby_version: "24"
version: '{build}' # init: # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) install: - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - - "%devkit%\\devkitvars.bat" - ruby --version - gem --version - - bundle install + - ridk.cmd exec bundle install build: off test_script: - bundle exec rake test # - bundle exec rake test TESTOPTS=-v branches: only: - master # https://www.appveyor.com/docs/installed-software/#ruby environment: matrix: - - ruby_version: "23-x64" ? ^ + - ruby_version: "24-x64" ? ^ - devkit: C:\Ruby23-x64\DevKit - - ruby_version: "23" ? ^ + - ruby_version: "24" ? ^ - devkit: C:\Ruby23\DevKit
9
0.333333
3
6
56a0380c9542f28ed5c7d8a7d12d442b8159fab3
app/redux/reducers/root-reducer.js
app/redux/reducers/root-reducer.js
import { combineReducers } from 'redux'; import quotes from './quotes'; import loading from './loading'; export default combineReducers({ quotes, loading });
import { combineReducers } from 'redux'; import quotes from './quotes'; import loading from './loading'; import backup from './backup'; export default combineReducers({ quotes, loading, backup });
Add backup as state tree
Add backup as state tree
JavaScript
mit
subramaniashiva/quotes-pwa,subramaniashiva/quotes-pwa
javascript
## Code Before: import { combineReducers } from 'redux'; import quotes from './quotes'; import loading from './loading'; export default combineReducers({ quotes, loading }); ## Instruction: Add backup as state tree ## Code After: import { combineReducers } from 'redux'; import quotes from './quotes'; import loading from './loading'; import backup from './backup'; export default combineReducers({ quotes, loading, backup });
import { combineReducers } from 'redux'; import quotes from './quotes'; import loading from './loading'; + import backup from './backup'; export default combineReducers({ quotes, - loading + loading, ? + + backup });
4
0.444444
3
1
5d08111c2c67c57aaeb1d5eae992e6ab26c8a86b
test/test-extract-cat-only.expect.yaml
test/test-extract-cat-only.expect.yaml
"additionalInfo": "containsControlCodes": false "containsGlyphs": false "firstPageHeight": 841.8 "firstPageWidth": 595.2 "numberOfPages": 1 "input": "test/cat-only.pdf" "rects": - "lines": [] "page": 1 "rect": - 0.0 - 0.0 - 1.0 - 1.0 "yamlOutput": true
"additionalInfo": "containsControlCodes": false "containsGlyphs": false "firstPageHeight": 841.8 "firstPageWidth": 595.2 "numberOfPages": 1 "input": "test/cat-only.pdf" "numberOfPages": 1 "rects": - "lines": [] "page": 1 "rect": - 0.0 - 0.0 - 1.0 - 1.0 "yamlOutput": true
Add numberOfPages to the output
Add numberOfPages to the output
YAML
agpl-3.0
scrive/scrivepdftools,scrive/scrivepdftools
yaml
## Code Before: "additionalInfo": "containsControlCodes": false "containsGlyphs": false "firstPageHeight": 841.8 "firstPageWidth": 595.2 "numberOfPages": 1 "input": "test/cat-only.pdf" "rects": - "lines": [] "page": 1 "rect": - 0.0 - 0.0 - 1.0 - 1.0 "yamlOutput": true ## Instruction: Add numberOfPages to the output ## Code After: "additionalInfo": "containsControlCodes": false "containsGlyphs": false "firstPageHeight": 841.8 "firstPageWidth": 595.2 "numberOfPages": 1 "input": "test/cat-only.pdf" "numberOfPages": 1 "rects": - "lines": [] "page": 1 "rect": - 0.0 - 0.0 - 1.0 - 1.0 "yamlOutput": true
"additionalInfo": "containsControlCodes": false "containsGlyphs": false "firstPageHeight": 841.8 "firstPageWidth": 595.2 "numberOfPages": 1 "input": "test/cat-only.pdf" + "numberOfPages": 1 "rects": - "lines": [] "page": 1 "rect": - 0.0 - 0.0 - 1.0 - 1.0 "yamlOutput": true
1
0.058824
1
0
6ebedc3b0717e50264ab7ca496a7973135f6aec5
basic-spread.html
basic-spread.html
<!-- Makes all its children as wide/tall as the widest/tallest children. --> <link rel="import" href="../basic-element/basic-element.html"> <link rel="import" href="../basic-stack/basic-stack.html"> <polymer-element name="basic-spread" extends="basic-element" noscript> <template> <style> :host { display: block; /*overflow: hidden;*/ position: relative; } ::content > :nth-child(2) { transform: translateX(100%); } ::content > :nth-child(3) { transform: translateX(200%); } </style> <basic-stack> <content></content> </basic-stack> </template> </polymer-element>
<!-- Makes all its children as wide/tall as the widest/tallest children. --> <link rel="import" href="../basic-element/basic-element.html"> <link rel="import" href="../basic-stack/basic-stack.html"> <polymer-element name="basic-spread" extends="basic-element"> <template> <style> :host { display: block; /*overflow: hidden;*/ position: relative; } ::content > :nth-child(2) { left: 100%; } ::content > :nth-child(3) { left: 200%; } </style> <basic-stack id="spreadStack"> <content></content> </basic-stack> </template> <script> Polymer({ recalc: function() { this.$.spreadStack.recalc(); } }); </script> </polymer-element>
Add explicit script, which seems to force change in when attached handler of subelement basic-stack gets invoked. Route recalc requests to basic-stack.
Add explicit script, which seems to force change in when attached handler of subelement basic-stack gets invoked. Route recalc requests to basic-stack.
HTML
mit
basic-web-components/basic-spread
html
## Code Before: <!-- Makes all its children as wide/tall as the widest/tallest children. --> <link rel="import" href="../basic-element/basic-element.html"> <link rel="import" href="../basic-stack/basic-stack.html"> <polymer-element name="basic-spread" extends="basic-element" noscript> <template> <style> :host { display: block; /*overflow: hidden;*/ position: relative; } ::content > :nth-child(2) { transform: translateX(100%); } ::content > :nth-child(3) { transform: translateX(200%); } </style> <basic-stack> <content></content> </basic-stack> </template> </polymer-element> ## Instruction: Add explicit script, which seems to force change in when attached handler of subelement basic-stack gets invoked. Route recalc requests to basic-stack. ## Code After: <!-- Makes all its children as wide/tall as the widest/tallest children. --> <link rel="import" href="../basic-element/basic-element.html"> <link rel="import" href="../basic-stack/basic-stack.html"> <polymer-element name="basic-spread" extends="basic-element"> <template> <style> :host { display: block; /*overflow: hidden;*/ position: relative; } ::content > :nth-child(2) { left: 100%; } ::content > :nth-child(3) { left: 200%; } </style> <basic-stack id="spreadStack"> <content></content> </basic-stack> </template> <script> Polymer({ recalc: function() { this.$.spreadStack.recalc(); } }); </script> </polymer-element>
<!-- Makes all its children as wide/tall as the widest/tallest children. --> <link rel="import" href="../basic-element/basic-element.html"> <link rel="import" href="../basic-stack/basic-stack.html"> - <polymer-element name="basic-spread" extends="basic-element" noscript> ? --------- + <polymer-element name="basic-spread" extends="basic-element"> <template> <style> :host { display: block; /*overflow: hidden;*/ position: relative; } - ::content > :nth-child(2) { transform: translateX(100%); } ? -------- ----------- - + ::content > :nth-child(2) { left: 100%; } ? +++ - ::content > :nth-child(3) { transform: translateX(200%); } ? -------- ----------- - + ::content > :nth-child(3) { left: 200%; } ? +++ </style> - <basic-stack> + <basic-stack id="spreadStack"> <content></content> </basic-stack> </template> + <script> + Polymer({ + + recalc: function() { + this.$.spreadStack.recalc(); + } + + }); + </script> </polymer-element>
17
0.708333
13
4
10442d68f1845c1da7709bf96a956e8a8f9cebd8
recipes-mender/mender/mender_0.1.bb
recipes-mender/mender/mender_0.1.bb
DESCRIPTION = "mender" HOMEPAGE = "https://mender.io/" #From oe-meta-go (https://github.com/mem/oe-meta-go) DEPENDS = "go-cross" S = "${WORKDIR}/git" SRC_URI = "git://git@github.com/mendersoftware/mender.git;protocol=ssh" SRCREV = "${AUTOREV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" inherit go do_compile() { go build -o mender } do_install() { install -d "${D}/${bindir}" install -m 0755 "${S}/mender" "${D}/${bindir}" }
DESCRIPTION = "Mender tool for doing OTA software updates." HOMEPAGE = "https://mender.io/" #From oe-meta-go (https://github.com/mem/oe-meta-go) DEPENDS = "go-cross" S = "${WORKDIR}/git" SRC_URI = "git://git@github.com/mendersoftware/mender.git;protocol=ssh" SRCREV = "${AUTOREV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" inherit go do_compile() { go build -o mender } do_install() { install -d "${D}/${bindir}" install -m 0755 "${S}/mender" "${D}/${bindir}" }
Change Mender recipe description to trigger automatic Jenkins build.
Change Mender recipe description to trigger automatic Jenkins build.
BitBake
apache-2.0
GregorioDiStefano/meta-mender,bboozzoo/meta-mender,GregorioDiStefano/meta-mender,bboozzoo/meta-mender,bboozzoo/meta-mender,bboozzoo/meta-mender,GregorioDiStefano/meta-mender
bitbake
## Code Before: DESCRIPTION = "mender" HOMEPAGE = "https://mender.io/" #From oe-meta-go (https://github.com/mem/oe-meta-go) DEPENDS = "go-cross" S = "${WORKDIR}/git" SRC_URI = "git://git@github.com/mendersoftware/mender.git;protocol=ssh" SRCREV = "${AUTOREV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" inherit go do_compile() { go build -o mender } do_install() { install -d "${D}/${bindir}" install -m 0755 "${S}/mender" "${D}/${bindir}" } ## Instruction: Change Mender recipe description to trigger automatic Jenkins build. ## Code After: DESCRIPTION = "Mender tool for doing OTA software updates." HOMEPAGE = "https://mender.io/" #From oe-meta-go (https://github.com/mem/oe-meta-go) DEPENDS = "go-cross" S = "${WORKDIR}/git" SRC_URI = "git://git@github.com/mendersoftware/mender.git;protocol=ssh" SRCREV = "${AUTOREV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" inherit go do_compile() { go build -o mender } do_install() { install -d "${D}/${bindir}" install -m 0755 "${S}/mender" "${D}/${bindir}" }
- DESCRIPTION = "mender" + DESCRIPTION = "Mender tool for doing OTA software updates." HOMEPAGE = "https://mender.io/" #From oe-meta-go (https://github.com/mem/oe-meta-go) DEPENDS = "go-cross" S = "${WORKDIR}/git" SRC_URI = "git://git@github.com/mendersoftware/mender.git;protocol=ssh" SRCREV = "${AUTOREV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" inherit go do_compile() { go build -o mender } do_install() { install -d "${D}/${bindir}" install -m 0755 "${S}/mender" "${D}/${bindir}" }
2
0.083333
1
1
e42f71677214f06959b9f15bf49de92bcadd0928
css/delayedscroll.css
css/delayedscroll.css
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .delayedscroll, .delayedscroll > * { height: 100%; width: 100%; margin: 0 auto; }
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .delayedscroll, .delayedscroll > * { height: 100%; width: 100%; margin: 0 auto; } ::-webkit-scrollbar { display: none; }
Hide scrollbar for webkit browsers
Hide scrollbar for webkit browsers
CSS
mit
jffry-mrtn/autoscroll.js,jffrymrtn/autoscroll.js
css
## Code Before: html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .delayedscroll, .delayedscroll > * { height: 100%; width: 100%; margin: 0 auto; } ## Instruction: Hide scrollbar for webkit browsers ## Code After: html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .delayedscroll, .delayedscroll > * { height: 100%; width: 100%; margin: 0 auto; } ::-webkit-scrollbar { display: none; }
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .delayedscroll, .delayedscroll > * { height: 100%; width: 100%; margin: 0 auto; } + + ::-webkit-scrollbar { + display: none; + }
4
0.333333
4
0
160f22862d005b09ac77e6b03d80efc6dc958318
.travis.yml
.travis.yml
language: ruby sudo: false env: - JRUBY_OPTS="--dev -Xcext.enabled=false -Xcompile.invokedynamic=false" services: - redis addons: postgresql: 9.3 cache: bundler sudo: false rvm: - jruby-19mode - "2.0" - "2.1" jdk: oraclejdk7 matrix: fast_finish: true allow_failures: - rvm: "2.1" before_script: - redis-cli config set save "" - 'RAILS_ENV=test bundle exec rake db:create db:migrate --trace' script: - ./build.sh notifications: irc: irc.freenode.org#travis campfire: rooms: - secure: "FYd2nZjSOnzG0PoCfQ4mHYgjdj6W1C8jLoM6j+OsiLFDo37ShIwuMDjXkBNurUYY1ZyGLPZFngiC4QDZCw1RwefqMukjMqMG4BMt5SV3PNnodrJqLYcT6UfbzwDx8KaoiqClwBHGChzKj+2LgGSwhXxDwO7MqX4snJHTOLAwNy4=" template: - '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (details: %{build_url}, changes: %{compare_url})'
language: ruby sudo: false env: - JRUBY_OPTS="--dev -Xcext.enabled=false -Xcompile.invokedynamic=false" services: - redis addons: postgresql: 9.3 cache: bundler sudo: false rvm: - jruby-19mode - jruby-head - "2.0" - "2.1" jdk: oraclejdk7 matrix: fast_finish: true allow_failures: - rvm: "2.1" - rvm: jruby-head before_script: - redis-cli config set save "" - 'RAILS_ENV=test bundle exec rake db:create db:migrate --trace' script: - ./build.sh notifications: irc: irc.freenode.org#travis campfire: rooms: - secure: "FYd2nZjSOnzG0PoCfQ4mHYgjdj6W1C8jLoM6j+OsiLFDo37ShIwuMDjXkBNurUYY1ZyGLPZFngiC4QDZCw1RwefqMukjMqMG4BMt5SV3PNnodrJqLYcT6UfbzwDx8KaoiqClwBHGChzKj+2LgGSwhXxDwO7MqX4snJHTOLAwNy4=" template: - '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (details: %{build_url}, changes: %{compare_url})'
Test jruby-head (and allow failures)
Test jruby-head (and allow failures)
YAML
mit
Tiger66639/travis-core,travis-ci/travis-core,travis-ci/travis-core,Tiger66639/travis-core,final-ci/travis-core,jantman/travis-core,GistIcon/travis-core,travis-ci/travis-core,final-ci/travis-core,developerfm/travis-core,GistIcon/travis-core,kidaa/travis-core,jantman/travis-core,GistIcon/travis-core,developerfm/travis-core,kidaa/travis-core,Tiger66639/travis-core,kidaa/travis-core,final-ci/travis-core,developerfm/travis-core
yaml
## Code Before: language: ruby sudo: false env: - JRUBY_OPTS="--dev -Xcext.enabled=false -Xcompile.invokedynamic=false" services: - redis addons: postgresql: 9.3 cache: bundler sudo: false rvm: - jruby-19mode - "2.0" - "2.1" jdk: oraclejdk7 matrix: fast_finish: true allow_failures: - rvm: "2.1" before_script: - redis-cli config set save "" - 'RAILS_ENV=test bundle exec rake db:create db:migrate --trace' script: - ./build.sh notifications: irc: irc.freenode.org#travis campfire: rooms: - secure: "FYd2nZjSOnzG0PoCfQ4mHYgjdj6W1C8jLoM6j+OsiLFDo37ShIwuMDjXkBNurUYY1ZyGLPZFngiC4QDZCw1RwefqMukjMqMG4BMt5SV3PNnodrJqLYcT6UfbzwDx8KaoiqClwBHGChzKj+2LgGSwhXxDwO7MqX4snJHTOLAwNy4=" template: - '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (details: %{build_url}, changes: %{compare_url})' ## Instruction: Test jruby-head (and allow failures) ## Code After: language: ruby sudo: false env: - JRUBY_OPTS="--dev -Xcext.enabled=false -Xcompile.invokedynamic=false" services: - redis addons: postgresql: 9.3 cache: bundler sudo: false rvm: - jruby-19mode - jruby-head - "2.0" - "2.1" jdk: oraclejdk7 matrix: fast_finish: true allow_failures: - rvm: "2.1" - rvm: jruby-head before_script: - redis-cli config set save "" - 'RAILS_ENV=test bundle exec rake db:create db:migrate --trace' script: - ./build.sh notifications: irc: irc.freenode.org#travis campfire: rooms: - secure: "FYd2nZjSOnzG0PoCfQ4mHYgjdj6W1C8jLoM6j+OsiLFDo37ShIwuMDjXkBNurUYY1ZyGLPZFngiC4QDZCw1RwefqMukjMqMG4BMt5SV3PNnodrJqLYcT6UfbzwDx8KaoiqClwBHGChzKj+2LgGSwhXxDwO7MqX4snJHTOLAwNy4=" template: - '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (details: %{build_url}, changes: %{compare_url})'
language: ruby sudo: false env: - JRUBY_OPTS="--dev -Xcext.enabled=false -Xcompile.invokedynamic=false" services: - redis addons: postgresql: 9.3 cache: bundler sudo: false rvm: - jruby-19mode + - jruby-head - "2.0" - "2.1" jdk: oraclejdk7 matrix: fast_finish: true allow_failures: - rvm: "2.1" + - rvm: jruby-head before_script: - redis-cli config set save "" - 'RAILS_ENV=test bundle exec rake db:create db:migrate --trace' script: - ./build.sh notifications: irc: irc.freenode.org#travis campfire: rooms: - secure: "FYd2nZjSOnzG0PoCfQ4mHYgjdj6W1C8jLoM6j+OsiLFDo37ShIwuMDjXkBNurUYY1ZyGLPZFngiC4QDZCw1RwefqMukjMqMG4BMt5SV3PNnodrJqLYcT6UfbzwDx8KaoiqClwBHGChzKj+2LgGSwhXxDwO7MqX4snJHTOLAwNy4=" template: - '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (details: %{build_url}, changes: %{compare_url})'
2
0.046512
2
0
3ead42fe27b75e3415f256e899830a4956aacff9
api/internal/crawl/config/crawler/kustomize_stats/job.yaml
api/internal/crawl/config/crawler/kustomize_stats/job.yaml
apiVersion: batch/v1 kind: Job metadata: name: kustomize-stats spec: template: spec: restartPolicy: OnFailure containers: - name: kustomize-stats image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1 imagePullPolicy: Always command: ["/kustomize_stats"] args: ["--kinds=50", "--identifiers=50", "--kustomize-features=50"] env: - name: GITHUB_ACCESS_TOKEN valueFrom: secretKeyRef: name: github-access-token key: token - name: ELASTICSEARCH_URL valueFrom: configMapKeyRef: name: elasticsearch-config key: es-url
apiVersion: batch/v1 kind: Job metadata: name: kustomize-stats spec: template: spec: restartPolicy: OnFailure containers: - name: kustomize-stats image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1 imagePullPolicy: Always command: ["/kustomize_stats"] args: ["--index=kustomize", "--kinds=50", "--identifiers=50", "--kustomize-features=50"] env: - name: GITHUB_ACCESS_TOKEN valueFrom: secretKeyRef: name: github-access-token key: token - name: ELASTICSEARCH_URL valueFrom: configMapKeyRef: name: elasticsearch-config key: es-url
Add --index flag to kustomize_stats config file
Add --index flag to kustomize_stats config file
YAML
apache-2.0
kubernetes-sigs/kustomize,kubernetes-sigs/kustomize,kubernetes-sigs/kustomize
yaml
## Code Before: apiVersion: batch/v1 kind: Job metadata: name: kustomize-stats spec: template: spec: restartPolicy: OnFailure containers: - name: kustomize-stats image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1 imagePullPolicy: Always command: ["/kustomize_stats"] args: ["--kinds=50", "--identifiers=50", "--kustomize-features=50"] env: - name: GITHUB_ACCESS_TOKEN valueFrom: secretKeyRef: name: github-access-token key: token - name: ELASTICSEARCH_URL valueFrom: configMapKeyRef: name: elasticsearch-config key: es-url ## Instruction: Add --index flag to kustomize_stats config file ## Code After: apiVersion: batch/v1 kind: Job metadata: name: kustomize-stats spec: template: spec: restartPolicy: OnFailure containers: - name: kustomize-stats image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1 imagePullPolicy: Always command: ["/kustomize_stats"] args: ["--index=kustomize", "--kinds=50", "--identifiers=50", "--kustomize-features=50"] env: - name: GITHUB_ACCESS_TOKEN valueFrom: secretKeyRef: name: github-access-token key: token - name: ELASTICSEARCH_URL valueFrom: configMapKeyRef: name: elasticsearch-config key: es-url
apiVersion: batch/v1 kind: Job metadata: name: kustomize-stats spec: template: spec: restartPolicy: OnFailure containers: - name: kustomize-stats image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1 imagePullPolicy: Always command: ["/kustomize_stats"] - args: ["--kinds=50", "--identifiers=50", "--kustomize-features=50"] + args: ["--index=kustomize", "--kinds=50", "--identifiers=50", "--kustomize-features=50"] ? +++++++++++++++++++++ env: - name: GITHUB_ACCESS_TOKEN valueFrom: secretKeyRef: name: github-access-token key: token - name: ELASTICSEARCH_URL valueFrom: configMapKeyRef: name: elasticsearch-config key: es-url
2
0.08
1
1
28e56aa92f86b77352a7625a6782d956a0d2950e
ui-v2/tests/acceptance/steps/index-forwarding-steps.js
ui-v2/tests/acceptance/steps/index-forwarding-steps.js
import steps from './steps'; // step definitions that are shared between features should be moved to the // tests/acceptance/steps/steps.js file export default function(assert) { return steps(assert); // .then('I should find a file', function() { // assert.ok(true, this.step); // }); }
import steps from './steps'; // step definitions that are shared between features should be moved to the // tests/acceptance/steps/steps.js file export default function(assert) { return steps(assert).then('I should find a file', function() { assert.ok(true, this.step); }); }
Make this steps file the same as the others...
Make this steps file the same as the others... WIP: Ideally all of these would go
JavaScript
mpl-2.0
vamage/consul,42wim/consul,kingland/consul,youhong316/consul,calgaryscientific/consul,scalp42/consul,hashicorp/consul,scalp42/consul,vamage/consul,42wim/consul,scalp42/consul,vamage/consul,kingland/consul,calgaryscientific/consul,youhong316/consul,scalp42/consul,hashicorp/consul,youhong316/consul,42wim/consul,calgaryscientific/consul,hashicorp/consul,youhong316/consul,vamage/consul,kingland/consul,kingland/consul,calgaryscientific/consul,youhong316/consul,42wim/consul,calgaryscientific/consul,42wim/consul,hashicorp/consul,kingland/consul,scalp42/consul,vamage/consul
javascript
## Code Before: import steps from './steps'; // step definitions that are shared between features should be moved to the // tests/acceptance/steps/steps.js file export default function(assert) { return steps(assert); // .then('I should find a file', function() { // assert.ok(true, this.step); // }); } ## Instruction: Make this steps file the same as the others... WIP: Ideally all of these would go ## Code After: import steps from './steps'; // step definitions that are shared between features should be moved to the // tests/acceptance/steps/steps.js file export default function(assert) { return steps(assert).then('I should find a file', function() { assert.ok(true, this.step); }); }
import steps from './steps'; // step definitions that are shared between features should be moved to the // tests/acceptance/steps/steps.js file export default function(assert) { - return steps(assert); - // .then('I should find a file', function() { ? ^^ + return steps(assert).then('I should find a file', function() { ? ^^^^^^ +++++++++++++ - // assert.ok(true, this.step); ? --- + assert.ok(true, this.step); - // }); ? --- + }); }
7
0.636364
3
4
f087fa63250ab51a5b0e718dfa3bd44c17755b81
templates/content.php
templates/content.php
<article <?php post_class(); ?>> <header> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php get_template_part('templates/entry-meta'); ?> </header> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </article>
<article <?php post_class(); ?>> <header> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php if ($posts[0]->post_type == 'post') get_template_part('templates/entry-meta'); ?> </header> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </article>
Remove Meta on archive pages that aren't articles.
Remove Meta on archive pages that aren't articles.
PHP
mit
MikeiLL/HealthyHappyHarmony,MikeiLL/HealthyHappyHarmony,MikeiLL/HealthyHappyHarmony
php
## Code Before: <article <?php post_class(); ?>> <header> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php get_template_part('templates/entry-meta'); ?> </header> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </article> ## Instruction: Remove Meta on archive pages that aren't articles. ## Code After: <article <?php post_class(); ?>> <header> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php if ($posts[0]->post_type == 'post') get_template_part('templates/entry-meta'); ?> </header> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </article>
<article <?php post_class(); ?>> <header> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> + <?php if ($posts[0]->post_type == 'post') - <?php get_template_part('templates/entry-meta'); ?> ? ----- + get_template_part('templates/entry-meta'); ?> ? +++ </header> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </article>
3
0.333333
2
1
a071f8440169ccad8ca486cc35ad285d08e1d0b1
scripts/1_install.ps1
scripts/1_install.ps1
Set-ExecutionPolicy RemoteSigned # Install Chocolatey Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # Install some software choco install -y 7zip choco install -y dotnetcore-sdk choco install -y git #choco install -y github-desktop # Github Desktop gets updates so often that it's hard for the Chocolatey package to keep up choco install -y gitkraken choco install -y googlechrome choco install -y hyper choco install -y keepass choco install -y linqpad choco install -y nodejs-lts choco install -y notepadplusplus choco install -y poshgit choco install -y postman choco install -y rdcman choco install -y slack choco install -y sql-server-management-studio #choco install -y toggl # The Toggl Desktop Chocolatey package is significantly behind as of May 2017, so I'll install it manually #choco install -y visualstudiocode # VS Code gets updates so often that it's hard for the Chocolatey package to keep up RefreshEnv.cmd
Set-ExecutionPolicy RemoteSigned # Install Chocolatey Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # Install some software with Chocolatey choco install -y 7zip choco install -y dotnetcore-sdk choco install -y git #choco install -y github-desktop # Github Desktop gets updates so often that it's hard for the Chocolatey package to keep up choco install -y gitkraken choco install -y googlechrome choco install -y hyper choco install -y keepass choco install -y linqpad choco install -y nodejs-lts choco install -y notepadplusplus choco install -y poshgit choco install -y postman choco install -y rdcman choco install -y slack choco install -y sql-server-management-studio #choco install -y toggl # The Toggl Desktop Chocolatey package is significantly behind as of May 2017, so I'll install it manually #choco install -y visualstudiocode # VS Code gets updates so often that it's hard for the Chocolatey package to keep up RefreshEnv.cmd # Install some software with npm npm install -g @angular/cli npm install -g typescript
Install Angular CLI and TypeScript with npm
Install Angular CLI and TypeScript with npm
PowerShell
mit
ehdevries/devmachine
powershell
## Code Before: Set-ExecutionPolicy RemoteSigned # Install Chocolatey Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # Install some software choco install -y 7zip choco install -y dotnetcore-sdk choco install -y git #choco install -y github-desktop # Github Desktop gets updates so often that it's hard for the Chocolatey package to keep up choco install -y gitkraken choco install -y googlechrome choco install -y hyper choco install -y keepass choco install -y linqpad choco install -y nodejs-lts choco install -y notepadplusplus choco install -y poshgit choco install -y postman choco install -y rdcman choco install -y slack choco install -y sql-server-management-studio #choco install -y toggl # The Toggl Desktop Chocolatey package is significantly behind as of May 2017, so I'll install it manually #choco install -y visualstudiocode # VS Code gets updates so often that it's hard for the Chocolatey package to keep up RefreshEnv.cmd ## Instruction: Install Angular CLI and TypeScript with npm ## Code After: Set-ExecutionPolicy RemoteSigned # Install Chocolatey Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # Install some software with Chocolatey choco install -y 7zip choco install -y dotnetcore-sdk choco install -y git #choco install -y github-desktop # Github Desktop gets updates so often that it's hard for the Chocolatey package to keep up choco install -y gitkraken choco install -y googlechrome choco install -y hyper choco install -y keepass choco install -y linqpad choco install -y nodejs-lts choco install -y notepadplusplus choco install -y poshgit choco install -y postman choco install -y rdcman choco install -y slack choco install -y sql-server-management-studio #choco install -y toggl # The Toggl Desktop Chocolatey package is significantly behind as of May 2017, so I'll install it manually #choco install -y visualstudiocode # VS Code gets updates so often that it's hard for the Chocolatey package to keep up RefreshEnv.cmd # Install some software with npm npm install -g @angular/cli npm install -g typescript
Set-ExecutionPolicy RemoteSigned # Install Chocolatey Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - # Install some software + # Install some software with Chocolatey choco install -y 7zip choco install -y dotnetcore-sdk choco install -y git #choco install -y github-desktop # Github Desktop gets updates so often that it's hard for the Chocolatey package to keep up choco install -y gitkraken choco install -y googlechrome choco install -y hyper choco install -y keepass choco install -y linqpad choco install -y nodejs-lts choco install -y notepadplusplus choco install -y poshgit choco install -y postman choco install -y rdcman choco install -y slack choco install -y sql-server-management-studio #choco install -y toggl # The Toggl Desktop Chocolatey package is significantly behind as of May 2017, so I'll install it manually #choco install -y visualstudiocode # VS Code gets updates so often that it's hard for the Chocolatey package to keep up RefreshEnv.cmd + + # Install some software with npm + npm install -g @angular/cli + npm install -g typescript
6
0.230769
5
1
a983099660ab51b88fea8cd9b1bfeb2bfdeda5be
layouts/partials/article_header.html
layouts/partials/article_header.html
<header class="article-header"> <a href="{{ .Permalink }}"> <h1 class="article-title" itemprop="name"> {{ .Title }} </h1> </a> <div class="article-meta"> <div class="article-date"> <i class="fa fa-calendar"></i> <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time> &middot; {{ .WordCount }} {{ with .Site.Data.l10n.articles.words }}{{.}}{{end}} &middot; {{ .ReadingTime }} {{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}} </div> <div class="article-category"> {{ range .Params.categories }} <i class="fa fa-folder"></i> <a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a> {{ end }} </div> </div> </header>
<header class="article-header"> <a href="{{ .Permalink }}"> <h1 class="article-title" itemprop="name"> {{ .Title }} </h1> </a> <div class="article-meta"> <div class="article-date"> <i class="fa fa-calendar"></i> <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time> &middot; {{ .WordCount }} {{ with .Site.Data.l10n.articles.words }}{{.}}{{end}} &middot; {{ .ReadingTime }} {{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}} </div> {{ $categoryLen := len .Params.categories }} {{ if gt $categoryLen 0 }} <div class="article-category"> <i class="fa fa-folder"></i> {{ range $k, $v := .Params.categories }} <a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a> {{ if lt $k (sub $categoryLen 1) }}&middot;{{ end }} {{ end }} </div> {{ end }} {{ $tagsLen := len .Params.tags }} {{ if gt $tagsLen 0 }} <div class="article-category"> <i class="fa fa-tags"></i> {{ range $k, $v := .Params.tags }} <a class="article-category-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a> {{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }} {{ end }} </div> {{ end }} </div> </header>
Add tags to post header
Add tags to post header
HTML
mit
digitalcraftsman/hugo-icarus-theme,jpwenzel/hugo-icarus-theme,digitalcraftsman/hugo-icarus-theme,thiagomgd/hugo-doctorcorgi,thiagomgd/hugo-doctorcorgi,jpwenzel/hugo-icarus-theme,Dacode45/hugo-icarus-theme,Dacode45/hugo-icarus-theme
html
## Code Before: <header class="article-header"> <a href="{{ .Permalink }}"> <h1 class="article-title" itemprop="name"> {{ .Title }} </h1> </a> <div class="article-meta"> <div class="article-date"> <i class="fa fa-calendar"></i> <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time> &middot; {{ .WordCount }} {{ with .Site.Data.l10n.articles.words }}{{.}}{{end}} &middot; {{ .ReadingTime }} {{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}} </div> <div class="article-category"> {{ range .Params.categories }} <i class="fa fa-folder"></i> <a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a> {{ end }} </div> </div> </header> ## Instruction: Add tags to post header ## Code After: <header class="article-header"> <a href="{{ .Permalink }}"> <h1 class="article-title" itemprop="name"> {{ .Title }} </h1> </a> <div class="article-meta"> <div class="article-date"> <i class="fa fa-calendar"></i> <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time> &middot; {{ .WordCount }} {{ with .Site.Data.l10n.articles.words }}{{.}}{{end}} &middot; {{ .ReadingTime }} {{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}} </div> {{ $categoryLen := len .Params.categories }} {{ if gt $categoryLen 0 }} <div class="article-category"> <i class="fa fa-folder"></i> {{ range $k, $v := .Params.categories }} <a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a> {{ if lt $k (sub $categoryLen 1) }}&middot;{{ end }} {{ end }} </div> {{ end }} {{ $tagsLen := len .Params.tags }} {{ if gt $tagsLen 0 }} <div class="article-category"> <i class="fa fa-tags"></i> {{ range $k, $v := .Params.tags }} <a class="article-category-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a> {{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }} {{ end }} </div> {{ end }} </div> </header>
<header class="article-header"> <a href="{{ .Permalink }}"> <h1 class="article-title" itemprop="name"> {{ .Title }} </h1> </a> <div class="article-meta"> <div class="article-date"> <i class="fa fa-calendar"></i> <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time> &middot; {{ .WordCount }} {{ with .Site.Data.l10n.articles.words }}{{.}}{{end}} &middot; {{ .ReadingTime }} {{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}} </div> + {{ $categoryLen := len .Params.categories }} + {{ if gt $categoryLen 0 }} <div class="article-category"> - {{ range .Params.categories }} <i class="fa fa-folder"></i> + {{ range $k, $v := .Params.categories }} <a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a> + {{ if lt $k (sub $categoryLen 1) }}&middot;{{ end }} {{ end }} </div> + {{ end }} + + {{ $tagsLen := len .Params.tags }} + {{ if gt $tagsLen 0 }} + <div class="article-category"> + <i class="fa fa-tags"></i> + {{ range $k, $v := .Params.tags }} + <a class="article-category-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a> + {{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }} + {{ end }} + </div> + {{ end }} </div> </header>
17
0.68
16
1
9aba2facd6e0003b8b33d95f0889d49588089169
README.md
README.md
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?" How to [install apktool](http://ibotpeaches.github.io/Apktool/install/)
Add how to install for apktool
Add how to install for apktool
Markdown
mit
gelldur/jak_oni_to_robia_prezentacja,gelldur/jak_oni_to_robia_prezentacja
markdown
## Code Before: Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?" ## Instruction: Add how to install for apktool ## Code After: Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?" How to [install apktool](http://ibotpeaches.github.io/Apktool/install/)
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?" + + + How to [install apktool](http://ibotpeaches.github.io/Apktool/install/)
3
3
3
0
40af2e6842e67d280cbdfed0224c87885b23d7e5
base.php
base.php
<?php get_template_part('templates/part/head'); ?> <body <?php body_class(); ?>> <!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]--> <div class="wrap"> <div id="columnleft"> <div id="menu"> <?php get_template_part('templates/part/menu'); ?> </div> <?php dynamic_sidebar('sidebar-menu'); ?> </div> <div id="content" style="min-height: 300px;"> <!--<section class="quick-bar"> <?php //get_template_part('templates/quickbar'); ?> </section>--> <section class="articles"> <?php include roots_template_path(); ?> <?php //include roots_sidebar_path(); ?> </section> </div> <?php get_template_part('templates/part/footer'); ?> </div><!-- End of .wrap --> </body> </html>
<?php get_template_part('templates/part/head'); ?> <body <?php body_class(); ?>> <!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]--> <div class="wrap"> <div id="columnleft"> <div id="menu"> <?php get_template_part('templates/part/menu'); ?> </div> <div class="hidden-phone"> <?php ob_start(); dynamic_sidebar('sidebar-menu'); $_sb = ob_get_flush(); ?></div> </div> <div id="content" style="min-height: 300px;"> <!--<section class="quick-bar"> <?php //get_template_part('templates/quickbar'); ?> </section>--> <section class="articles"> <?php include roots_template_path(); ?> <?php //include roots_sidebar_path(); ?> </section> </div> <div class="visible-phone sidebar-menu-bottom"><?php echo $_sb; ?></div> <?php get_template_part('templates/part/footer'); ?> </div><!-- End of .wrap --> </body> </html>
Clone sidebar to bottom for phone display
Clone sidebar to bottom for phone display Signed-off-by: Herman Banken <a70bbf187a5275b5d5ff0f9d438a50197e0c274d@gmail.com>
PHP
mit
hermanbanken/wp-theme-excelsior,hermanbanken/wp-theme-excelsior
php
## Code Before: <?php get_template_part('templates/part/head'); ?> <body <?php body_class(); ?>> <!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]--> <div class="wrap"> <div id="columnleft"> <div id="menu"> <?php get_template_part('templates/part/menu'); ?> </div> <?php dynamic_sidebar('sidebar-menu'); ?> </div> <div id="content" style="min-height: 300px;"> <!--<section class="quick-bar"> <?php //get_template_part('templates/quickbar'); ?> </section>--> <section class="articles"> <?php include roots_template_path(); ?> <?php //include roots_sidebar_path(); ?> </section> </div> <?php get_template_part('templates/part/footer'); ?> </div><!-- End of .wrap --> </body> </html> ## Instruction: Clone sidebar to bottom for phone display Signed-off-by: Herman Banken <a70bbf187a5275b5d5ff0f9d438a50197e0c274d@gmail.com> ## Code After: <?php get_template_part('templates/part/head'); ?> <body <?php body_class(); ?>> <!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]--> <div class="wrap"> <div id="columnleft"> <div id="menu"> <?php get_template_part('templates/part/menu'); ?> </div> <div class="hidden-phone"> <?php ob_start(); dynamic_sidebar('sidebar-menu'); $_sb = ob_get_flush(); ?></div> </div> <div id="content" style="min-height: 300px;"> <!--<section class="quick-bar"> <?php //get_template_part('templates/quickbar'); ?> </section>--> <section class="articles"> <?php include roots_template_path(); ?> <?php //include roots_sidebar_path(); ?> </section> </div> <div class="visible-phone sidebar-menu-bottom"><?php echo $_sb; ?></div> <?php get_template_part('templates/part/footer'); ?> </div><!-- End of .wrap --> </body> </html>
<?php get_template_part('templates/part/head'); ?> <body <?php body_class(); ?>> <!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]--> <div class="wrap"> <div id="columnleft"> <div id="menu"> <?php get_template_part('templates/part/menu'); ?> </div> + <div class="hidden-phone"> + <?php + ob_start(); - <?php dynamic_sidebar('sidebar-menu'); ?> ? ^^^^^^ -- + dynamic_sidebar('sidebar-menu'); ? ^^ + $_sb = ob_get_flush(); + ?></div> </div> <div id="content" style="min-height: 300px;"> <!--<section class="quick-bar"> <?php //get_template_part('templates/quickbar'); ?> </section>--> <section class="articles"> <?php include roots_template_path(); ?> <?php //include roots_sidebar_path(); ?> </section> - + </div> + + <div class="visible-phone sidebar-menu-bottom"><?php echo $_sb; ?></div> <?php get_template_part('templates/part/footer'); ?> </div><!-- End of .wrap --> </body> </html>
11
0.354839
9
2
21fdbfc10cd1028cbaac23a0bfed23969f52813f
src/eds-ui/src/main/frontend/app/dsa/purposeAdd.dialog.ts
src/eds-ui/src/main/frontend/app/dsa/purposeAdd.dialog.ts
import {Component, Input} from "@angular/core"; import {Dsa} from "./models/Dsa"; import {DsaService} from "./dsa.service"; import {LoggerService} from "eds-common-js"; import {NgbModal, NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DsaPurpose} from "./models/DsaPurpose"; @Component({ selector: 'ngbd-modal-content', template: require('./purposeAdd.html') }) export class PurposeAddDialog { public static open(modalService: NgbModal, purposes : DsaPurpose[]) { const modalRef = modalService.open(PurposeAddDialog, { backdrop : "static"}); modalRef.componentInstance.resultData = jQuery.extend(true, [], purposes); return modalRef; } @Input() resultData : DsaPurpose[]; title : string = ''; detail : string = ''; newPurpose : DsaPurpose = new DsaPurpose(); constructor(public activeModal: NgbActiveModal, private log:LoggerService) {} Add() { this.newPurpose.title = this.title; this.newPurpose.detail = this.detail; this.resultData.push(this.newPurpose); this.activeModal.close(this.resultData); } AddAnother() { this.newPurpose.title = this.title; this.newPurpose.detail = this.detail; this.resultData.push(this.newPurpose); this.title = ''; this.detail = ''; } cancel() { this.activeModal.dismiss('cancel'); } }
import {Component, Input} from "@angular/core"; import {Dsa} from "./models/Dsa"; import {DsaService} from "./dsa.service"; import {LoggerService} from "eds-common-js"; import {NgbModal, NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DsaPurpose} from "./models/DsaPurpose"; @Component({ selector: 'ngbd-modal-content', template: require('./purposeAdd.html') }) export class PurposeAddDialog { public static open(modalService: NgbModal, purposes : DsaPurpose[]) { const modalRef = modalService.open(PurposeAddDialog, { backdrop : "static"}); modalRef.componentInstance.resultData = jQuery.extend(true, [], purposes); return modalRef; } @Input() resultData : DsaPurpose[]; title : string = ''; detail : string = ''; constructor(public activeModal: NgbActiveModal, private log:LoggerService) {} Add() { var newPurpose : DsaPurpose = new DsaPurpose(); newPurpose.title = this.title; newPurpose.detail = this.detail; this.resultData.push(newPurpose); this.activeModal.close(this.resultData); } AddAnother() { var newPurpose : DsaPurpose = new DsaPurpose(); newPurpose.title = this.title; newPurpose.detail = this.detail; this.resultData.push(newPurpose); this.title = ''; this.detail = ''; } cancel() { this.activeModal.dismiss('cancel'); } }
Fix scope issue when adding multiple purposes
Fix scope issue when adding multiple purposes
TypeScript
apache-2.0
endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS
typescript
## Code Before: import {Component, Input} from "@angular/core"; import {Dsa} from "./models/Dsa"; import {DsaService} from "./dsa.service"; import {LoggerService} from "eds-common-js"; import {NgbModal, NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DsaPurpose} from "./models/DsaPurpose"; @Component({ selector: 'ngbd-modal-content', template: require('./purposeAdd.html') }) export class PurposeAddDialog { public static open(modalService: NgbModal, purposes : DsaPurpose[]) { const modalRef = modalService.open(PurposeAddDialog, { backdrop : "static"}); modalRef.componentInstance.resultData = jQuery.extend(true, [], purposes); return modalRef; } @Input() resultData : DsaPurpose[]; title : string = ''; detail : string = ''; newPurpose : DsaPurpose = new DsaPurpose(); constructor(public activeModal: NgbActiveModal, private log:LoggerService) {} Add() { this.newPurpose.title = this.title; this.newPurpose.detail = this.detail; this.resultData.push(this.newPurpose); this.activeModal.close(this.resultData); } AddAnother() { this.newPurpose.title = this.title; this.newPurpose.detail = this.detail; this.resultData.push(this.newPurpose); this.title = ''; this.detail = ''; } cancel() { this.activeModal.dismiss('cancel'); } } ## Instruction: Fix scope issue when adding multiple purposes ## Code After: import {Component, Input} from "@angular/core"; import {Dsa} from "./models/Dsa"; import {DsaService} from "./dsa.service"; import {LoggerService} from "eds-common-js"; import {NgbModal, NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DsaPurpose} from "./models/DsaPurpose"; @Component({ selector: 'ngbd-modal-content', template: require('./purposeAdd.html') }) export class PurposeAddDialog { public static open(modalService: NgbModal, purposes : DsaPurpose[]) { const modalRef = modalService.open(PurposeAddDialog, { backdrop : "static"}); modalRef.componentInstance.resultData = jQuery.extend(true, [], purposes); return modalRef; } @Input() resultData : DsaPurpose[]; title : string = ''; detail : string = ''; constructor(public activeModal: NgbActiveModal, private log:LoggerService) {} Add() { var newPurpose : DsaPurpose = new DsaPurpose(); newPurpose.title = this.title; newPurpose.detail = this.detail; this.resultData.push(newPurpose); this.activeModal.close(this.resultData); } AddAnother() { var newPurpose : DsaPurpose = new DsaPurpose(); newPurpose.title = this.title; newPurpose.detail = this.detail; this.resultData.push(newPurpose); this.title = ''; this.detail = ''; } cancel() { this.activeModal.dismiss('cancel'); } }
import {Component, Input} from "@angular/core"; import {Dsa} from "./models/Dsa"; import {DsaService} from "./dsa.service"; import {LoggerService} from "eds-common-js"; import {NgbModal, NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DsaPurpose} from "./models/DsaPurpose"; @Component({ selector: 'ngbd-modal-content', template: require('./purposeAdd.html') }) export class PurposeAddDialog { public static open(modalService: NgbModal, purposes : DsaPurpose[]) { const modalRef = modalService.open(PurposeAddDialog, { backdrop : "static"}); modalRef.componentInstance.resultData = jQuery.extend(true, [], purposes); return modalRef; } @Input() resultData : DsaPurpose[]; title : string = ''; detail : string = ''; - newPurpose : DsaPurpose = new DsaPurpose(); constructor(public activeModal: NgbActiveModal, private log:LoggerService) {} Add() { + var newPurpose : DsaPurpose = new DsaPurpose(); - this.newPurpose.title = this.title; ? ----- + newPurpose.title = this.title; - this.newPurpose.detail = this.detail; ? ----- + newPurpose.detail = this.detail; - this.resultData.push(this.newPurpose); ? ----- + this.resultData.push(newPurpose); this.activeModal.close(this.resultData); } AddAnother() { + var newPurpose : DsaPurpose = new DsaPurpose(); - this.newPurpose.title = this.title; ? ----- + newPurpose.title = this.title; - this.newPurpose.detail = this.detail; ? ----- + newPurpose.detail = this.detail; - this.resultData.push(this.newPurpose); ? ----- + this.resultData.push(newPurpose); this.title = ''; this.detail = ''; } cancel() { this.activeModal.dismiss('cancel'); } }
15
0.319149
8
7
2ca7af260144f6b4d9386a309e87a89d15fe3930
app/scripts/app/templates/application.hbs
app/scripts/app/templates/application.hbs
<header class="l-header"> <nav class="navbar"> <h1 class="logo"> <span class="logo-title">ShareDrop</span> <span class="logo-subtitle">P2P file transfer</span> </h1> <ul class="nav"> {{#if you.email}} <li class="email"> {{you.email}} </li> <li> <a href="javascript:void(0)" class="sign" {{action 'signOut'}}>Sign out</a> </li> {{else}} <li> <a href="javascript:void(0)" class="sign" {{action 'signIn'}}>Sign in</a> </li> {{/if}} </ul> </nav> </header> {{outlet}} <footer class="l-footer"> <div class="cowbell-labs"> Made by <a href="https://cowbell-labs.com/" target="_blank"><span>Cowbell Labs</span></a> </div> <p class="about">{{outlet about_you}}</p> <a href="https://github.com/cowbell/sharedrop" class="github" target="_blank"></a> </footer>
<header class="l-header"> <nav class="navbar"> <h1 class="logo"> <span class="logo-title">ShareDrop</span> <span class="logo-subtitle">P2P file transfer</span> </h1> <ul class="nav"> {{#if you.email}} <li class="email"> {{you.email}} </li> <li> <a href="javascript:void(0)" class="sign" {{action 'signOut'}}>Sign out</a> </li> {{else}} <li> <a href="javascript:void(0)" class="sign" {{action 'signIn'}} title="Signing will allow others to recognize you by your email address and Gravatar">Sign in</a> </li> {{/if}} </ul> </nav> </header> {{outlet}} <footer class="l-footer"> <div class="cowbell-labs"> Made by <a href="https://cowbell-labs.com/" target="_blank"><span>Cowbell Labs</span></a> </div> <p class="about">{{outlet about_you}}</p> <a href="https://github.com/cowbell/sharedrop" class="github" target="_blank"></a> </footer>
Add info what signing in gives you
Add info what signing in gives you
Handlebars
mit
rogervaas/sharedrop,shelsonjava/sharedrop,shelsonjava/sharedrop,cowbell/sharedrop,umeshjakhar/sharedrop,shelsonjava/sharedrop,rogervaas/sharedrop,umeshjakhar/sharedrop,cowbell/sharedrop
handlebars
## Code Before: <header class="l-header"> <nav class="navbar"> <h1 class="logo"> <span class="logo-title">ShareDrop</span> <span class="logo-subtitle">P2P file transfer</span> </h1> <ul class="nav"> {{#if you.email}} <li class="email"> {{you.email}} </li> <li> <a href="javascript:void(0)" class="sign" {{action 'signOut'}}>Sign out</a> </li> {{else}} <li> <a href="javascript:void(0)" class="sign" {{action 'signIn'}}>Sign in</a> </li> {{/if}} </ul> </nav> </header> {{outlet}} <footer class="l-footer"> <div class="cowbell-labs"> Made by <a href="https://cowbell-labs.com/" target="_blank"><span>Cowbell Labs</span></a> </div> <p class="about">{{outlet about_you}}</p> <a href="https://github.com/cowbell/sharedrop" class="github" target="_blank"></a> </footer> ## Instruction: Add info what signing in gives you ## Code After: <header class="l-header"> <nav class="navbar"> <h1 class="logo"> <span class="logo-title">ShareDrop</span> <span class="logo-subtitle">P2P file transfer</span> </h1> <ul class="nav"> {{#if you.email}} <li class="email"> {{you.email}} </li> <li> <a href="javascript:void(0)" class="sign" {{action 'signOut'}}>Sign out</a> </li> {{else}} <li> <a href="javascript:void(0)" class="sign" {{action 'signIn'}} title="Signing will allow others to recognize you by your email address and Gravatar">Sign in</a> </li> {{/if}} </ul> </nav> </header> {{outlet}} <footer class="l-footer"> <div class="cowbell-labs"> Made by <a href="https://cowbell-labs.com/" target="_blank"><span>Cowbell Labs</span></a> </div> <p class="about">{{outlet about_you}}</p> <a href="https://github.com/cowbell/sharedrop" class="github" target="_blank"></a> </footer>
<header class="l-header"> <nav class="navbar"> <h1 class="logo"> <span class="logo-title">ShareDrop</span> <span class="logo-subtitle">P2P file transfer</span> </h1> <ul class="nav"> {{#if you.email}} <li class="email"> {{you.email}} </li> <li> <a href="javascript:void(0)" class="sign" {{action 'signOut'}}>Sign out</a> </li> {{else}} <li> - <a href="javascript:void(0)" class="sign" {{action 'signIn'}}>Sign in</a> + <a href="javascript:void(0)" class="sign" {{action 'signIn'}} title="Signing will allow others to recognize you by your email address and Gravatar">Sign in</a> </li> {{/if}} </ul> </nav> </header> {{outlet}} <footer class="l-footer"> <div class="cowbell-labs"> Made by <a href="https://cowbell-labs.com/" target="_blank"><span>Cowbell Labs</span></a> </div> <p class="about">{{outlet about_you}}</p> <a href="https://github.com/cowbell/sharedrop" class="github" target="_blank"></a> </footer>
2
0.055556
1
1
17a6b8b00c35e737b928c717598c29c845ff1082
model_card_toolkit/documentation/guide/install.md
model_card_toolkit/documentation/guide/install.md
The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/), and requires Python 3.6 or later. ```bash $ pip install model-card-toolkit ``` You may need to append the `--use-deprecated=legacy-resolver` flag when running pip20.3. ## Installing from source Alternatively, Model Card Toolkit can be installed from source. First, clone the github repo: ```bash $ git clone https://github.com/tensorflow/model-card-toolkit.git ``` Build the pip package from source: ```bash $ pip install wheel $ cd model_card_toolkit $ python3 setup.py sdist bdist_wheel ``` Finally, install your locally built package: ```bash $ pip install --upgrade ./dist/*pkg.whl ``` ## Filing a Bug If you run into issues with Model Card Toolkit installation, please [file an issue](https://github.com/tensorflow/model-card-toolkit/issues/new) with details on your operating system version, Python version, pip version, and locally-installed packages. You can find your locally-installed packages with [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/)).
The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/), and requires Python 3.6 or later. ```posix-terminal pip install model-card-toolkit ``` You may need to append the `--use-deprecated=legacy-resolver` flag when running pip20.3. ## Installing from source Alternatively, Model Card Toolkit can be installed from source. First, clone the github repo: ```posix-terminal git clone https://github.com/tensorflow/model-card-toolkit.git ``` Build the pip package from source: ```posix-terminal pip install wheel cd model_card_toolkit python3 setup.py sdist bdist_wheel ``` Finally, install your locally built package: ```posix-terminal pip install --upgrade ./dist/*pkg.whl ``` ## Filing a Bug If you run into issues with Model Card Toolkit installation, please [file an issue](https://github.com/tensorflow/model-card-toolkit/issues/new) with details on your operating system version, Python version, pip version, and locally-installed packages. You can find your locally-installed packages with [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/)).
Fix the render of commands
Fix the render of commands PiperOrigin-RevId: 355741444
Markdown
apache-2.0
tensorflow/model-card-toolkit,tensorflow/model-card-toolkit,tensorflow/model-card-toolkit
markdown
## Code Before: The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/), and requires Python 3.6 or later. ```bash $ pip install model-card-toolkit ``` You may need to append the `--use-deprecated=legacy-resolver` flag when running pip20.3. ## Installing from source Alternatively, Model Card Toolkit can be installed from source. First, clone the github repo: ```bash $ git clone https://github.com/tensorflow/model-card-toolkit.git ``` Build the pip package from source: ```bash $ pip install wheel $ cd model_card_toolkit $ python3 setup.py sdist bdist_wheel ``` Finally, install your locally built package: ```bash $ pip install --upgrade ./dist/*pkg.whl ``` ## Filing a Bug If you run into issues with Model Card Toolkit installation, please [file an issue](https://github.com/tensorflow/model-card-toolkit/issues/new) with details on your operating system version, Python version, pip version, and locally-installed packages. You can find your locally-installed packages with [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/)). ## Instruction: Fix the render of commands PiperOrigin-RevId: 355741444 ## Code After: The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/), and requires Python 3.6 or later. ```posix-terminal pip install model-card-toolkit ``` You may need to append the `--use-deprecated=legacy-resolver` flag when running pip20.3. ## Installing from source Alternatively, Model Card Toolkit can be installed from source. First, clone the github repo: ```posix-terminal git clone https://github.com/tensorflow/model-card-toolkit.git ``` Build the pip package from source: ```posix-terminal pip install wheel cd model_card_toolkit python3 setup.py sdist bdist_wheel ``` Finally, install your locally built package: ```posix-terminal pip install --upgrade ./dist/*pkg.whl ``` ## Filing a Bug If you run into issues with Model Card Toolkit installation, please [file an issue](https://github.com/tensorflow/model-card-toolkit/issues/new) with details on your operating system version, Python version, pip version, and locally-installed packages. You can find your locally-installed packages with [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/)).
The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/), and requires Python 3.6 or later. - ```bash + ```posix-terminal - $ pip install model-card-toolkit ? -- + pip install model-card-toolkit ``` You may need to append the `--use-deprecated=legacy-resolver` flag when running pip20.3. ## Installing from source Alternatively, Model Card Toolkit can be installed from source. First, clone the github repo: - ```bash + ```posix-terminal - $ git clone https://github.com/tensorflow/model-card-toolkit.git ? -- + git clone https://github.com/tensorflow/model-card-toolkit.git ``` Build the pip package from source: - ```bash + ```posix-terminal - $ pip install wheel ? -- + pip install wheel + - $ cd model_card_toolkit ? -- + cd model_card_toolkit + - $ python3 setup.py sdist bdist_wheel ? -- + python3 setup.py sdist bdist_wheel ``` Finally, install your locally built package: - ```bash + ```posix-terminal - $ pip install --upgrade ./dist/*pkg.whl ? -- + pip install --upgrade ./dist/*pkg.whl ``` ## Filing a Bug If you run into issues with Model Card Toolkit installation, please [file an issue](https://github.com/tensorflow/model-card-toolkit/issues/new) with details on your operating system version, Python version, pip version, and locally-installed packages. You can find your locally-installed packages with [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/)).
22
0.52381
12
10
667cde6f7baeb956af10e3e72a291e7d6a265888
alvar.rb
alvar.rb
require 'formula' class Alvar < Formula homepage 'http://virtual.vtt.fi/virtual/proj2/multimedia/alvar/index.html' url 'https://github.com/tzwenn/alvar.git', :branch => 'master' version '2.0.0' depends_on 'opencv' depends_on 'tinyxml' depends_on 'cmake' => :build def install system "cmake", ".", *std_cmake_args system "make", "install" end end
require 'formula' class Alvar < Formula homepage 'http://virtual.vtt.fi/virtual/proj2/multimedia/alvar/index.html' url 'https://github.com/tzwenn/alvar.git', :branch => 'master' version '2.0.0' depends_on 'homebrew/science/opencv' depends_on 'tinyxml' depends_on 'cmake' => :build option :cxx11 def install ENV.cxx11 if build.cxx11? system "cmake", ".", *std_cmake_args system "make", "install" end end
Use brew's c++11 flag, full name of opencv formula
Use brew's c++11 flag, full name of opencv formula
Ruby
bsd-2-clause
tzwenn/homebrew-multitoe
ruby
## Code Before: require 'formula' class Alvar < Formula homepage 'http://virtual.vtt.fi/virtual/proj2/multimedia/alvar/index.html' url 'https://github.com/tzwenn/alvar.git', :branch => 'master' version '2.0.0' depends_on 'opencv' depends_on 'tinyxml' depends_on 'cmake' => :build def install system "cmake", ".", *std_cmake_args system "make", "install" end end ## Instruction: Use brew's c++11 flag, full name of opencv formula ## Code After: require 'formula' class Alvar < Formula homepage 'http://virtual.vtt.fi/virtual/proj2/multimedia/alvar/index.html' url 'https://github.com/tzwenn/alvar.git', :branch => 'master' version '2.0.0' depends_on 'homebrew/science/opencv' depends_on 'tinyxml' depends_on 'cmake' => :build option :cxx11 def install ENV.cxx11 if build.cxx11? system "cmake", ".", *std_cmake_args system "make", "install" end end
require 'formula' class Alvar < Formula homepage 'http://virtual.vtt.fi/virtual/proj2/multimedia/alvar/index.html' url 'https://github.com/tzwenn/alvar.git', :branch => 'master' version '2.0.0' - depends_on 'opencv' + depends_on 'homebrew/science/opencv' depends_on 'tinyxml' depends_on 'cmake' => :build + option :cxx11 + def install + ENV.cxx11 if build.cxx11? + system "cmake", ".", *std_cmake_args system "make", "install" end end
6
0.352941
5
1
0ffa8f2a6816727dc32f54279de6ca3c0afe1ab4
controllers/encrypt.js
controllers/encrypt.js
'use strict' const config = require(__dirname + '/../config') const privateKey = require('fs').readFileSync('staticman_key', 'utf8') const NodeRSA = require('node-rsa') const key = new NodeRSA() key.importKey(privateKey) module.exports = ((req, res) => { try { const encryptedText = key.encrypt(req.params.text, 'base64') res.send(encryptedText) } catch (err) { res.status(500).send('Could not encrypt text') } })
'use strict' const config = require(__dirname + '/../config') const NodeRSA = require('node-rsa') const key = new NodeRSA() key.importKey(config.get('rsaPrivateKey')) module.exports = ((req, res) => { try { const encryptedText = key.encrypt(req.params.text, 'base64') res.send(encryptedText) } catch (err) { res.status(500).send('Could not encrypt text') } })
Read private key from config
Read private key from config
JavaScript
mit
eduardoboucas/jekyll-discuss,eduardoboucas/jekyll-discuss,zburgermeiszter/staticman,eduardoboucas/jekyll-discuss
javascript
## Code Before: 'use strict' const config = require(__dirname + '/../config') const privateKey = require('fs').readFileSync('staticman_key', 'utf8') const NodeRSA = require('node-rsa') const key = new NodeRSA() key.importKey(privateKey) module.exports = ((req, res) => { try { const encryptedText = key.encrypt(req.params.text, 'base64') res.send(encryptedText) } catch (err) { res.status(500).send('Could not encrypt text') } }) ## Instruction: Read private key from config ## Code After: 'use strict' const config = require(__dirname + '/../config') const NodeRSA = require('node-rsa') const key = new NodeRSA() key.importKey(config.get('rsaPrivateKey')) module.exports = ((req, res) => { try { const encryptedText = key.encrypt(req.params.text, 'base64') res.send(encryptedText) } catch (err) { res.status(500).send('Could not encrypt text') } })
'use strict' const config = require(__dirname + '/../config') - const privateKey = require('fs').readFileSync('staticman_key', 'utf8') const NodeRSA = require('node-rsa') const key = new NodeRSA() - key.importKey(privateKey) + key.importKey(config.get('rsaPrivateKey')) module.exports = ((req, res) => { try { const encryptedText = key.encrypt(req.params.text, 'base64') res.send(encryptedText) } catch (err) { res.status(500).send('Could not encrypt text') } })
3
0.166667
1
2
2156bfe0e9f6255fbf22f73e0eb01a80fc1ffa6e
requirements.txt
requirements.txt
biopython>=1.61 boto>=2.34.0 Cython>=0.19 ipyparallel>=4.0.0 ipython-cluster-helper>=0.4.9 Logbook>=0.6.0 lxml>=3.3.5 msgpack-python>=0.4.0 nose>=1.3.0 pandas>=0.14.1 progressbar>=2.3.0 pybedtools>=0.6.8 pysam>=0.8.2.1 pyzmq>=2.2.0 PyYAML>=3.10 toolz>=0.7.1 tornado>=3.1.0 # soft dependencies -- not required for bcbio-nextgen-vm azure>=0.11.1 arrow>=0.4.4 awscli>=1.7.14 bioblend>=0.4.3 bcbreport>=0.99.14 click>=3.3 cnvkit>=0.3.4 cutadapt==1.8.3 fadapa>=0.3.1 fabric>=1.7.0 gffutils>=0.8.4rc1 joblib>=0.8.4 openpyxl>=1.6.1,<2.0.0 path.py>=7.0 psutil>=1.2.0 pythonpy>=0.3.6 python-dateutil>=2.1 PyVCF>=0.6.7 sh>=1.07 tabulate>=0.7.3 scikit-learn>=0.15.2 seaborn>=0.5.0 bcbio-nextgen==0.9.3
biopython>=1.61 boto>=2.34.0 Cython>=0.19 ipyparallel>=4.0.0 ipython-cluster-helper>=0.4.9 Logbook>=0.6.0 lxml>=3.3.5 msgpack-python>=0.4.0 nose>=1.3.0 pandas>=0.14.1 progressbar>=2.3.0 pybedtools>=0.6.8 pysam>=0.8.2.1 pyzmq>=2.2.0 PyYAML>=3.10 toolz>=0.7.1 tornado>=3.1.0 # soft dependencies -- not required for bcbio-nextgen-vm azure>=0.11.1 arrow>=0.4.4 awscli>=1.7.14 bioblend>=0.4.3 bcbreport>=0.99.14 click>=3.3 fadapa>=0.3.1 fabric>=1.7.0 gffutils>=0.8.4rc1 joblib>=0.8.4 openpyxl>=1.6.1,<2.0.0 path.py>=7.0 psutil>=1.2.0 python-dateutil>=2.1 PyVCF>=0.6.7 sh>=1.07 tabulate>=0.7.3 scikit-learn>=0.15.2 seaborn>=0.5.0 bcbio-nextgen==0.9.3
Move external python-based packages to --tools
Move external python-based packages to --tools Packages we don't import in bcbio and call only via the command line are now installed via --tools using the standard conda packaging approach. This avoids needing to keep dependencies up to date in the requirements.
Text
mit
lbeltrame/bcbio-nextgen,guillermo-carrasco/bcbio-nextgen,a113n/bcbio-nextgen,vladsaveliev/bcbio-nextgen,gifford-lab/bcbio-nextgen,chapmanb/bcbio-nextgen,brainstorm/bcbio-nextgen,a113n/bcbio-nextgen,a113n/bcbio-nextgen,lpantano/bcbio-nextgen,lpantano/bcbio-nextgen,Cyberbio-Lab/bcbio-nextgen,chapmanb/bcbio-nextgen,brainstorm/bcbio-nextgen,vladsaveliev/bcbio-nextgen,biocyberman/bcbio-nextgen,Cyberbio-Lab/bcbio-nextgen,gifford-lab/bcbio-nextgen,lbeltrame/bcbio-nextgen,brainstorm/bcbio-nextgen,mjafin/bcbio-nextgen,gifford-lab/bcbio-nextgen,biocyberman/bcbio-nextgen,guillermo-carrasco/bcbio-nextgen,lpantano/bcbio-nextgen,chapmanb/bcbio-nextgen,mjafin/bcbio-nextgen,biocyberman/bcbio-nextgen,guillermo-carrasco/bcbio-nextgen,lbeltrame/bcbio-nextgen,mjafin/bcbio-nextgen,Cyberbio-Lab/bcbio-nextgen,vladsaveliev/bcbio-nextgen
text
## Code Before: biopython>=1.61 boto>=2.34.0 Cython>=0.19 ipyparallel>=4.0.0 ipython-cluster-helper>=0.4.9 Logbook>=0.6.0 lxml>=3.3.5 msgpack-python>=0.4.0 nose>=1.3.0 pandas>=0.14.1 progressbar>=2.3.0 pybedtools>=0.6.8 pysam>=0.8.2.1 pyzmq>=2.2.0 PyYAML>=3.10 toolz>=0.7.1 tornado>=3.1.0 # soft dependencies -- not required for bcbio-nextgen-vm azure>=0.11.1 arrow>=0.4.4 awscli>=1.7.14 bioblend>=0.4.3 bcbreport>=0.99.14 click>=3.3 cnvkit>=0.3.4 cutadapt==1.8.3 fadapa>=0.3.1 fabric>=1.7.0 gffutils>=0.8.4rc1 joblib>=0.8.4 openpyxl>=1.6.1,<2.0.0 path.py>=7.0 psutil>=1.2.0 pythonpy>=0.3.6 python-dateutil>=2.1 PyVCF>=0.6.7 sh>=1.07 tabulate>=0.7.3 scikit-learn>=0.15.2 seaborn>=0.5.0 bcbio-nextgen==0.9.3 ## Instruction: Move external python-based packages to --tools Packages we don't import in bcbio and call only via the command line are now installed via --tools using the standard conda packaging approach. This avoids needing to keep dependencies up to date in the requirements. ## Code After: biopython>=1.61 boto>=2.34.0 Cython>=0.19 ipyparallel>=4.0.0 ipython-cluster-helper>=0.4.9 Logbook>=0.6.0 lxml>=3.3.5 msgpack-python>=0.4.0 nose>=1.3.0 pandas>=0.14.1 progressbar>=2.3.0 pybedtools>=0.6.8 pysam>=0.8.2.1 pyzmq>=2.2.0 PyYAML>=3.10 toolz>=0.7.1 tornado>=3.1.0 # soft dependencies -- not required for bcbio-nextgen-vm azure>=0.11.1 arrow>=0.4.4 awscli>=1.7.14 bioblend>=0.4.3 bcbreport>=0.99.14 click>=3.3 fadapa>=0.3.1 fabric>=1.7.0 gffutils>=0.8.4rc1 joblib>=0.8.4 openpyxl>=1.6.1,<2.0.0 path.py>=7.0 psutil>=1.2.0 python-dateutil>=2.1 PyVCF>=0.6.7 sh>=1.07 tabulate>=0.7.3 scikit-learn>=0.15.2 seaborn>=0.5.0 bcbio-nextgen==0.9.3
biopython>=1.61 boto>=2.34.0 Cython>=0.19 ipyparallel>=4.0.0 ipython-cluster-helper>=0.4.9 Logbook>=0.6.0 lxml>=3.3.5 msgpack-python>=0.4.0 nose>=1.3.0 pandas>=0.14.1 progressbar>=2.3.0 pybedtools>=0.6.8 pysam>=0.8.2.1 pyzmq>=2.2.0 PyYAML>=3.10 toolz>=0.7.1 tornado>=3.1.0 # soft dependencies -- not required for bcbio-nextgen-vm azure>=0.11.1 arrow>=0.4.4 awscli>=1.7.14 bioblend>=0.4.3 bcbreport>=0.99.14 click>=3.3 - cnvkit>=0.3.4 - cutadapt==1.8.3 fadapa>=0.3.1 fabric>=1.7.0 gffutils>=0.8.4rc1 joblib>=0.8.4 openpyxl>=1.6.1,<2.0.0 path.py>=7.0 psutil>=1.2.0 - pythonpy>=0.3.6 python-dateutil>=2.1 PyVCF>=0.6.7 sh>=1.07 tabulate>=0.7.3 scikit-learn>=0.15.2 seaborn>=0.5.0 bcbio-nextgen==0.9.3
3
0.073171
0
3
8ee39038c058eb53eda071196e957998de2ec3c1
src/extension.ts
src/extension.ts
'use strict'; import * as vscode from 'vscode'; export function activate(context: vscode.ExtensionContext) { console.log('Dart-Code activated!'); } export function deactivate() { console.log('Dart-Code deactivated!'); }
"use strict"; import * as vscode from "vscode"; import * as fs from "fs"; import * as path from "path"; const configName = "dart"; const configSdkPath = "sdkPath"; let dartSdkRoot: string; export function activate(context: vscode.ExtensionContext) { console.log("Dart-Code activated!"); dartSdkRoot = findDartSdk(); if (dartSdkRoot != null) { vscode.window.showErrorMessage("Dart-Code: Could not find a Dart SDK to use. Please add it to your PATH or set it in the extensions settings and reload"); return; // Don't set anything else up; we can't work like this! } } export function deactivate() { console.log("Dart-Code deactivated!"); } function findDartSdk(): string { let config = vscode.workspace.getConfiguration(configName); let paths = (<string>process.env.PATH).split(";"); // We don't expect the user to add .\bin in config, but it would be in the PATHs if (config.has(configSdkPath)) paths.unshift(path.join(config.get<string>(configSdkPath), 'bin')); let sdkPath = paths.find(isValidDartSdk); if (sdkPath) return path.join(sdkPath, ".."); // Take .\bin back off. return null; } function isValidDartSdk(pathToTest: string): boolean { // To check for a Dart SDK, we check for .\dart or .\dart.exe let dartLinux = path.join(pathToTest, "dart"); let dartWindows = path.join(pathToTest, "dart.exe"); // Apparently this is the "correct" way to check files exist synchronously in Node :'( try { fs.accessSync(dartLinux, fs.X_OK); return true; // If no error, we found a match! } catch (e) { } try { fs.accessSync(dartWindows, fs.X_OK); return true; // If no error, we found a match! } catch (e) { } return false; // Neither one worked, so this must be an invalid path. }
Add code to detect SDK and alert the user if not found.
Add code to detect SDK and alert the user if not found.
TypeScript
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
typescript
## Code Before: 'use strict'; import * as vscode from 'vscode'; export function activate(context: vscode.ExtensionContext) { console.log('Dart-Code activated!'); } export function deactivate() { console.log('Dart-Code deactivated!'); } ## Instruction: Add code to detect SDK and alert the user if not found. ## Code After: "use strict"; import * as vscode from "vscode"; import * as fs from "fs"; import * as path from "path"; const configName = "dart"; const configSdkPath = "sdkPath"; let dartSdkRoot: string; export function activate(context: vscode.ExtensionContext) { console.log("Dart-Code activated!"); dartSdkRoot = findDartSdk(); if (dartSdkRoot != null) { vscode.window.showErrorMessage("Dart-Code: Could not find a Dart SDK to use. Please add it to your PATH or set it in the extensions settings and reload"); return; // Don't set anything else up; we can't work like this! } } export function deactivate() { console.log("Dart-Code deactivated!"); } function findDartSdk(): string { let config = vscode.workspace.getConfiguration(configName); let paths = (<string>process.env.PATH).split(";"); // We don't expect the user to add .\bin in config, but it would be in the PATHs if (config.has(configSdkPath)) paths.unshift(path.join(config.get<string>(configSdkPath), 'bin')); let sdkPath = paths.find(isValidDartSdk); if (sdkPath) return path.join(sdkPath, ".."); // Take .\bin back off. return null; } function isValidDartSdk(pathToTest: string): boolean { // To check for a Dart SDK, we check for .\dart or .\dart.exe let dartLinux = path.join(pathToTest, "dart"); let dartWindows = path.join(pathToTest, "dart.exe"); // Apparently this is the "correct" way to check files exist synchronously in Node :'( try { fs.accessSync(dartLinux, fs.X_OK); return true; // If no error, we found a match! } catch (e) { } try { fs.accessSync(dartWindows, fs.X_OK); return true; // If no error, we found a match! } catch (e) { } return false; // Neither one worked, so this must be an invalid path. }
- 'use strict'; ? ^ ^ + "use strict"; ? ^ ^ - import * as vscode from 'vscode'; ? ^ ^ + import * as vscode from "vscode"; ? ^ ^ + import * as fs from "fs"; + import * as path from "path"; + + const configName = "dart"; + const configSdkPath = "sdkPath"; + + let dartSdkRoot: string; export function activate(context: vscode.ExtensionContext) { - console.log('Dart-Code activated!'); ? ^ ^ + console.log("Dart-Code activated!"); ? ^ ^ + + dartSdkRoot = findDartSdk(); + if (dartSdkRoot != null) { + vscode.window.showErrorMessage("Dart-Code: Could not find a Dart SDK to use. Please add it to your PATH or set it in the extensions settings and reload"); + return; // Don't set anything else up; we can't work like this! + } } export function deactivate() { - console.log('Dart-Code deactivated!'); ? ^ ^ + console.log("Dart-Code deactivated!"); ? ^ ^ } + + function findDartSdk(): string { + let config = vscode.workspace.getConfiguration(configName); + let paths = (<string>process.env.PATH).split(";"); + + // We don't expect the user to add .\bin in config, but it would be in the PATHs + if (config.has(configSdkPath)) + paths.unshift(path.join(config.get<string>(configSdkPath), 'bin')); + + let sdkPath = paths.find(isValidDartSdk); + if (sdkPath) + return path.join(sdkPath, ".."); // Take .\bin back off. + + return null; + } + + function isValidDartSdk(pathToTest: string): boolean { + // To check for a Dart SDK, we check for .\dart or .\dart.exe + let dartLinux = path.join(pathToTest, "dart"); + let dartWindows = path.join(pathToTest, "dart.exe"); + + // Apparently this is the "correct" way to check files exist synchronously in Node :'( + try { + fs.accessSync(dartLinux, fs.X_OK); + return true; // If no error, we found a match! + } + catch (e) { } + try { + fs.accessSync(dartWindows, fs.X_OK); + return true; // If no error, we found a match! + } + catch (e) { } + + return false; // Neither one worked, so this must be an invalid path. + }
56
5.6
52
4
43279a83154a3adf147796eac241e0e60ce167b2
appveyor.yml
appveyor.yml
branches: only: - master init: - git config --global core.autocrlf input cache: - src\packages -> **\packages.config - tools -> build.cake build_script: - ps: .\build.ps1 after_build: - ps: $env:ARTIFACT_NAME = if($env:APPVEYOR_REPO_TAG_NAME){$env:APPVEYOR_REPO_TAG_NAME} else {"$($env:APPVEYOR_REPO_COMMIT)-pre"} artifacts: - path: artifacts name: SwashbuckleAspNetVersioningShim_%ARTIFACT_NAME% deploy: - provider: GitHub description: Release of SwashbuckleAspNetVersioningShim version %ARTIFACT_NAME% auth_token: secure: ehoWWS0WhJ+2JVbx23dFVeQUT8w6Sz+lrimWmBGIvNsgTM6z7AlTvdPuI33Jf5Dj artifact: /.*\.nupkg/ draft: false prerelease: true on: appveyor_repo_tag: true
branches: only: - master init: - git config --global core.autocrlf input image: - Visual Studio 2017 RC cache: - src\packages -> **\packages.config - tools -> build.cake build_script: - ps: .\build.ps1 after_build: - ps: $env:ARTIFACT_NAME = if($env:APPVEYOR_REPO_TAG_NAME){$env:APPVEYOR_REPO_TAG_NAME} else {"$($env:APPVEYOR_REPO_COMMIT)-pre"} artifacts: - path: artifacts name: SwashbuckleAspNetVersioningShim_%ARTIFACT_NAME% deploy: - provider: GitHub description: Release of SwashbuckleAspNetVersioningShim version %ARTIFACT_NAME% auth_token: secure: ehoWWS0WhJ+2JVbx23dFVeQUT8w6Sz+lrimWmBGIvNsgTM6z7AlTvdPuI33Jf5Dj artifact: /.*\.nupkg/ draft: false prerelease: true on: appveyor_repo_tag: true
Update AppVeyor config to use 2017 image
Update AppVeyor config to use 2017 image
YAML
mit
rh072005/SwashbuckleAspNetVersioningShim,rh072005/SwashbuckleAspNetVersioningShim
yaml
## Code Before: branches: only: - master init: - git config --global core.autocrlf input cache: - src\packages -> **\packages.config - tools -> build.cake build_script: - ps: .\build.ps1 after_build: - ps: $env:ARTIFACT_NAME = if($env:APPVEYOR_REPO_TAG_NAME){$env:APPVEYOR_REPO_TAG_NAME} else {"$($env:APPVEYOR_REPO_COMMIT)-pre"} artifacts: - path: artifacts name: SwashbuckleAspNetVersioningShim_%ARTIFACT_NAME% deploy: - provider: GitHub description: Release of SwashbuckleAspNetVersioningShim version %ARTIFACT_NAME% auth_token: secure: ehoWWS0WhJ+2JVbx23dFVeQUT8w6Sz+lrimWmBGIvNsgTM6z7AlTvdPuI33Jf5Dj artifact: /.*\.nupkg/ draft: false prerelease: true on: appveyor_repo_tag: true ## Instruction: Update AppVeyor config to use 2017 image ## Code After: branches: only: - master init: - git config --global core.autocrlf input image: - Visual Studio 2017 RC cache: - src\packages -> **\packages.config - tools -> build.cake build_script: - ps: .\build.ps1 after_build: - ps: $env:ARTIFACT_NAME = if($env:APPVEYOR_REPO_TAG_NAME){$env:APPVEYOR_REPO_TAG_NAME} else {"$($env:APPVEYOR_REPO_COMMIT)-pre"} artifacts: - path: artifacts name: SwashbuckleAspNetVersioningShim_%ARTIFACT_NAME% deploy: - provider: GitHub description: Release of SwashbuckleAspNetVersioningShim version %ARTIFACT_NAME% auth_token: secure: ehoWWS0WhJ+2JVbx23dFVeQUT8w6Sz+lrimWmBGIvNsgTM6z7AlTvdPuI33Jf5Dj artifact: /.*\.nupkg/ draft: false prerelease: true on: appveyor_repo_tag: true
branches: only: - master init: - git config --global core.autocrlf input + + image: + - Visual Studio 2017 RC cache: - src\packages -> **\packages.config - tools -> build.cake build_script: - ps: .\build.ps1 after_build: - ps: $env:ARTIFACT_NAME = if($env:APPVEYOR_REPO_TAG_NAME){$env:APPVEYOR_REPO_TAG_NAME} else {"$($env:APPVEYOR_REPO_COMMIT)-pre"} artifacts: - path: artifacts name: SwashbuckleAspNetVersioningShim_%ARTIFACT_NAME% deploy: - provider: GitHub description: Release of SwashbuckleAspNetVersioningShim version %ARTIFACT_NAME% auth_token: secure: ehoWWS0WhJ+2JVbx23dFVeQUT8w6Sz+lrimWmBGIvNsgTM6z7AlTvdPuI33Jf5Dj artifact: /.*\.nupkg/ draft: false prerelease: true on: appveyor_repo_tag: true
3
0.096774
3
0
3819e8548cc98099b632289285f9419b95e68d8c
README.md
README.md
countly-sdk-js ============== Countly SDK for Icenium and Phonegap
countly-sdk-js ============== Countly SDK for Icenium and Phonegap. This is a community supported project, written and maintained by Panteon Technologies (ufuk@panteon.com.tr)
Add supporting company / developer
Add supporting company / developer
Markdown
mit
trinisofttechnologies/countly-sdk-js,nicolsondsouza/countly-sdk-js,nicolsondsouza/countly-sdk-js,UssieApp/countly-sdk-js,Countly/countly-sdk-js,trinisofttechnologies/countly-sdk-js,trinisofttechnologies/countly-sdk-js,Countly/countly-sdk-js,UssieApp/countly-sdk-js,UssieApp/countly-sdk-js,nicolsondsouza/countly-sdk-js,Countly/countly-sdk-js,UssieApp/countly-sdk-js,trinisofttechnologies/countly-sdk-js,Countly/countly-sdk-js
markdown
## Code Before: countly-sdk-js ============== Countly SDK for Icenium and Phonegap ## Instruction: Add supporting company / developer ## Code After: countly-sdk-js ============== Countly SDK for Icenium and Phonegap. This is a community supported project, written and maintained by Panteon Technologies (ufuk@panteon.com.tr)
countly-sdk-js ============== - Countly SDK for Icenium and Phonegap + Countly SDK for Icenium and Phonegap. This is a community supported project, + written and maintained by Panteon Technologies (ufuk@panteon.com.tr)
3
0.75
2
1
6f3b0c997f7207279bf836edc94db1ac19d2ce1d
src/rabird/core/logging.py
src/rabird/core/logging.py
''' @date 2013-5-9 @author Hong-She Liang <starofrainnight@gmail.com> ''' import sys import os # Import the global logging unit, not our logging . global_logging = __import__('logging') def load_default_config(): arguments = { 'level': None, 'filename': None, 'filemode': None, 'format': None, 'datefmt': None, 'style': None, } for k in list(arguments.keys()): try: envionment_text = 'PYTHON_LOGGING_{}'.format(k.upper()) arguments[k] = os.environ[envionment_text] except ValueError: pass except KeyError: pass # Remove all arguments that is None value. keys = list(arguments.keys()) for k in keys: if arguments[k] is None: del arguments[k] # Set default level to logging.INFO . if 'level' not in list(arguments.keys()): arguments['level'] = global_logging.INFO global_logging.basicConfig(**arguments) # Added console handler only there have filename argument. if 'filename' in list(arguments.keys()): global_logging.getLogger().addHandler(global_logging.StreamHandler(sys.stdout))
''' @date 2013-5-9 @author Hong-She Liang <starofrainnight@gmail.com> ''' import sys import os # Import the global logging unit, not our logging . global_logging = __import__('logging') def load_default_config(): arguments = { 'level': None, 'filename': None, 'filemode': None, 'format': None, 'datefmt': None, 'style': None, } for k in list(arguments.keys()): try: envionment_text = 'PYTHON_LOGGING_%s' % k.upper() arguments[k] = os.environ[envionment_text] except ValueError: pass except KeyError: pass # Remove all arguments that is None value. keys = list(arguments.keys()) for k in keys: if arguments[k] is None: del arguments[k] # Set default level to logging.INFO . if 'level' not in list(arguments.keys()): arguments['level'] = global_logging.INFO global_logging.basicConfig(**arguments) # Added console handler only there have filename argument. if 'filename' in list(arguments.keys()): global_logging.getLogger().addHandler(global_logging.StreamHandler(sys.stdout))
Use old style string format method to avoid formatting warning
Use old style string format method to avoid formatting warning
Python
apache-2.0
starofrainnight/rabird.core
python
## Code Before: ''' @date 2013-5-9 @author Hong-She Liang <starofrainnight@gmail.com> ''' import sys import os # Import the global logging unit, not our logging . global_logging = __import__('logging') def load_default_config(): arguments = { 'level': None, 'filename': None, 'filemode': None, 'format': None, 'datefmt': None, 'style': None, } for k in list(arguments.keys()): try: envionment_text = 'PYTHON_LOGGING_{}'.format(k.upper()) arguments[k] = os.environ[envionment_text] except ValueError: pass except KeyError: pass # Remove all arguments that is None value. keys = list(arguments.keys()) for k in keys: if arguments[k] is None: del arguments[k] # Set default level to logging.INFO . if 'level' not in list(arguments.keys()): arguments['level'] = global_logging.INFO global_logging.basicConfig(**arguments) # Added console handler only there have filename argument. if 'filename' in list(arguments.keys()): global_logging.getLogger().addHandler(global_logging.StreamHandler(sys.stdout)) ## Instruction: Use old style string format method to avoid formatting warning ## Code After: ''' @date 2013-5-9 @author Hong-She Liang <starofrainnight@gmail.com> ''' import sys import os # Import the global logging unit, not our logging . global_logging = __import__('logging') def load_default_config(): arguments = { 'level': None, 'filename': None, 'filemode': None, 'format': None, 'datefmt': None, 'style': None, } for k in list(arguments.keys()): try: envionment_text = 'PYTHON_LOGGING_%s' % k.upper() arguments[k] = os.environ[envionment_text] except ValueError: pass except KeyError: pass # Remove all arguments that is None value. keys = list(arguments.keys()) for k in keys: if arguments[k] is None: del arguments[k] # Set default level to logging.INFO . if 'level' not in list(arguments.keys()): arguments['level'] = global_logging.INFO global_logging.basicConfig(**arguments) # Added console handler only there have filename argument. if 'filename' in list(arguments.keys()): global_logging.getLogger().addHandler(global_logging.StreamHandler(sys.stdout))
''' @date 2013-5-9 @author Hong-She Liang <starofrainnight@gmail.com> ''' import sys import os # Import the global logging unit, not our logging . global_logging = __import__('logging') def load_default_config(): arguments = { 'level': None, 'filename': None, 'filemode': None, 'format': None, 'datefmt': None, 'style': None, } for k in list(arguments.keys()): try: - envionment_text = 'PYTHON_LOGGING_{}'.format(k.upper()) ? ^^ ^^^^^^^^ - + envionment_text = 'PYTHON_LOGGING_%s' % k.upper() ? ^^ ^^^ arguments[k] = os.environ[envionment_text] except ValueError: pass except KeyError: pass # Remove all arguments that is None value. keys = list(arguments.keys()) for k in keys: if arguments[k] is None: del arguments[k] # Set default level to logging.INFO . if 'level' not in list(arguments.keys()): arguments['level'] = global_logging.INFO global_logging.basicConfig(**arguments) # Added console handler only there have filename argument. if 'filename' in list(arguments.keys()): global_logging.getLogger().addHandler(global_logging.StreamHandler(sys.stdout))
2
0.042553
1
1
61ad08bfca64f8f28a7b17b58d5c325b5489dffa
docs/docs/usage/ide-support.md
docs/docs/usage/ide-support.md
--- layout: doc-page title: "IDE support for Scala 3" movedTo: https://docs.scala-lang.org/scala3/getting-started.html --- This page is deprecated. Plese go to [getting-started](getting-started.md)
--- layout: doc-page title: "IDE support for Scala 3" movedTo: https://docs.scala-lang.org/scala3/getting-started.html --- This page is deprecated. Please go to the [getting-started](https://docs.scala-lang.org/scala3/getting-started.html)
Fix link in the IDE support page
Fix link in the IDE support page
Markdown
apache-2.0
sjrd/dotty,sjrd/dotty,dotty-staging/dotty,sjrd/dotty,lampepfl/dotty,lampepfl/dotty,sjrd/dotty,lampepfl/dotty,dotty-staging/dotty,sjrd/dotty,dotty-staging/dotty,dotty-staging/dotty,dotty-staging/dotty,lampepfl/dotty,lampepfl/dotty
markdown
## Code Before: --- layout: doc-page title: "IDE support for Scala 3" movedTo: https://docs.scala-lang.org/scala3/getting-started.html --- This page is deprecated. Plese go to [getting-started](getting-started.md) ## Instruction: Fix link in the IDE support page ## Code After: --- layout: doc-page title: "IDE support for Scala 3" movedTo: https://docs.scala-lang.org/scala3/getting-started.html --- This page is deprecated. Please go to the [getting-started](https://docs.scala-lang.org/scala3/getting-started.html)
--- layout: doc-page title: "IDE support for Scala 3" movedTo: https://docs.scala-lang.org/scala3/getting-started.html --- - This page is deprecated. Plese go to [getting-started](getting-started.md) ? ^ + This page is deprecated. Please go to the [getting-started](https://docs.scala-lang.org/scala3/getting-started.html) ? + ++++ +++++++++++++++++++++++++++++++++++ ++ ^
2
0.285714
1
1
a72ee48d587ba3a07674db481c62d75ffacad036
README.md
README.md
Servo Org Stats --------------- [![Build Status](https://travis-ci.org/servo/servo-org-stats.svg?branch=master)](https://travis-ci.org/servo/servo-org-stats) The master branch of this repo holds assorted metadata needed to combine a fork of [gitstat](https://github.com/edunham/gitstat/), the [orglog](https://github.com/edunham/orglog) tool, [TravisCI](http://travis-ci.org/), and [nightli.es](https://nightli.es/) to emit fancy graphs. The gh-pages branch contains the fancy graphs, overwritten every day with the latest ones. Gitstat's license is available [here](https://github.com/youknowone/gitstat/blob/master/LICENSE) and Orglog's license is available [here](https://github.com/edunham/orglog/blob/master/LICENSE).
Servo Org Stats --------------- [![Build Status](https://travis-ci.org/servo/servo-org-stats.svg?branch=master)](https://travis-ci.org/servo/servo-org-stats) The master branch of this repo holds assorted metadata needed to combine a fork of [gitstat](https://github.com/edunham/gitstat/), the [orglog](https://github.com/edunham/orglog) tool, [TravisCI](http://travis-ci.org/), and [nightli.es](https://nightli.es/) to emit fancy graphs. The gh-pages branch contains the fancy graphs, overwritten every day with the latest ones. Gitstat's license is available [here](https://github.com/youknowone/gitstat/blob/master/LICENSE) and Orglog's license is available [here](https://github.com/edunham/orglog/blob/master/LICENSE). ### Deployment: Travis needs `GH_USER`, `GH_PASS`, and `GH_TOKEN` environment variables belonging to an account that can push to this repo. The token should have the `repo` scope. The account @rustacean is used here because it does not have the same perms on other repos as @bors-servo.
Document how to fix up travisci token leaks
Document how to fix up travisci token leaks
Markdown
mit
servo/servo-org-stats,servo/servo-org-stats,servo/servo-org-stats
markdown
## Code Before: Servo Org Stats --------------- [![Build Status](https://travis-ci.org/servo/servo-org-stats.svg?branch=master)](https://travis-ci.org/servo/servo-org-stats) The master branch of this repo holds assorted metadata needed to combine a fork of [gitstat](https://github.com/edunham/gitstat/), the [orglog](https://github.com/edunham/orglog) tool, [TravisCI](http://travis-ci.org/), and [nightli.es](https://nightli.es/) to emit fancy graphs. The gh-pages branch contains the fancy graphs, overwritten every day with the latest ones. Gitstat's license is available [here](https://github.com/youknowone/gitstat/blob/master/LICENSE) and Orglog's license is available [here](https://github.com/edunham/orglog/blob/master/LICENSE). ## Instruction: Document how to fix up travisci token leaks ## Code After: Servo Org Stats --------------- [![Build Status](https://travis-ci.org/servo/servo-org-stats.svg?branch=master)](https://travis-ci.org/servo/servo-org-stats) The master branch of this repo holds assorted metadata needed to combine a fork of [gitstat](https://github.com/edunham/gitstat/), the [orglog](https://github.com/edunham/orglog) tool, [TravisCI](http://travis-ci.org/), and [nightli.es](https://nightli.es/) to emit fancy graphs. The gh-pages branch contains the fancy graphs, overwritten every day with the latest ones. Gitstat's license is available [here](https://github.com/youknowone/gitstat/blob/master/LICENSE) and Orglog's license is available [here](https://github.com/edunham/orglog/blob/master/LICENSE). ### Deployment: Travis needs `GH_USER`, `GH_PASS`, and `GH_TOKEN` environment variables belonging to an account that can push to this repo. The token should have the `repo` scope. The account @rustacean is used here because it does not have the same perms on other repos as @bors-servo.
Servo Org Stats --------------- [![Build Status](https://travis-ci.org/servo/servo-org-stats.svg?branch=master)](https://travis-ci.org/servo/servo-org-stats) The master branch of this repo holds assorted metadata needed to combine a fork of [gitstat](https://github.com/edunham/gitstat/), the [orglog](https://github.com/edunham/orglog) tool, [TravisCI](http://travis-ci.org/), and [nightli.es](https://nightli.es/) to emit fancy graphs. The gh-pages branch contains the fancy graphs, overwritten every day with the latest ones. Gitstat's license is available [here](https://github.com/youknowone/gitstat/blob/master/LICENSE) and Orglog's license is available [here](https://github.com/edunham/orglog/blob/master/LICENSE). + ### Deployment: + + Travis needs `GH_USER`, `GH_PASS`, and `GH_TOKEN` environment variables + belonging to an account that can push to this repo. The token should + have the `repo` scope. The account @rustacean is used here because + it does not have the same perms on other repos as @bors-servo. + +
8
0.444444
8
0
0bc7a6a353ef98845ab1f10d030d55d2f5ad8ee7
README.rst
README.rst
================= django-bitemporal ================= Bitemporal data support for the Django ORM
================= django-bitemporal ================= Bitemporal data support for the Django ORM Field Types =========== Row Key The primary key for the row regardless of the data in the row. Used to leverage sequences in the underlying database for databases that don't support sequences. Primary Key The primary key for the data itself. This column should be unique for a set of data but the value may not be unique across the column in the database. Start/End Date When the record is active in the real world, regardless of the time it was active in the system. Transaction Start/End Date When the record was active in the system. Effectively audit columns.
Update readme with column info
Update readme with column info
reStructuredText
bsd-3-clause
finiteloopsoftware/django-bitemporal
restructuredtext
## Code Before: ================= django-bitemporal ================= Bitemporal data support for the Django ORM ## Instruction: Update readme with column info ## Code After: ================= django-bitemporal ================= Bitemporal data support for the Django ORM Field Types =========== Row Key The primary key for the row regardless of the data in the row. Used to leverage sequences in the underlying database for databases that don't support sequences. Primary Key The primary key for the data itself. This column should be unique for a set of data but the value may not be unique across the column in the database. Start/End Date When the record is active in the real world, regardless of the time it was active in the system. Transaction Start/End Date When the record was active in the system. Effectively audit columns.
================= django-bitemporal ================= Bitemporal data support for the Django ORM + + Field Types + =========== + Row Key + The primary key for the row regardless of the data in the row. Used to + leverage sequences in the underlying database for databases that don't + support sequences. + + Primary Key + The primary key for the data itself. This column should be unique for a set + of data but the value may not be unique across the column in the database. + + Start/End Date + When the record is active in the real world, regardless of the time it was + active in the system. + + Transaction Start/End Date + When the record was active in the system. Effectively audit columns.
18
3.6
18
0
2e5c0b1507dcfac46c380102ff338a4be9f25d97
tests/sentry/auth/providers/test_oauth2.py
tests/sentry/auth/providers/test_oauth2.py
from __future__ import absolute_import, print_function import pytest from sentry.auth.exceptions import IdentityNotValid from sentry.auth.providers.oauth2 import OAuth2Provider from sentry.models import AuthIdentity, AuthProvider from sentry.testutils import TestCase class OAuth2ProviderTest(TestCase): def setUp(self): self.org = self.create_organization(owner=self.user) self.user = self.create_user('foo@example.com') self.auth_provider = AuthProvider.objects.create( provider='oauth2', organization=self.org, ) self.provider = self.get_provider() super(OAuth2ProviderTest, self).setUp() def get_provider(self): self.provider = OAuth2Provider( key=self.auth_provider.provider ) def test_refresh_identity_without_refresh_token(self): auth_identity = AuthIdentity.objects.create( auth_provider=self.auth_provider, user=self.user, data={ 'access_token': 'access_token', } ) provider = OAuth2Provider(key=self.auth_provider.provider) with pytest.raises(IdentityNotValid): provider.refresh_identity(auth_identity)
from __future__ import absolute_import, print_function import pytest from sentry.auth.exceptions import IdentityNotValid from sentry.auth.providers.oauth2 import OAuth2Provider from sentry.models import AuthIdentity, AuthProvider from sentry.testutils import TestCase class OAuth2ProviderTest(TestCase): def setUp(self): self.org = self.create_organization(owner=self.user) self.user = self.create_user('foo@example.com') self.auth_provider = AuthProvider.objects.create( provider='oauth2', organization=self.org, ) self.provider = self.get_provider() super(OAuth2ProviderTest, self).setUp() def get_provider(self): self.provider = OAuth2Provider( key=self.auth_provider.provider ) def test_refresh_identity_without_refresh_token(self): auth_identity = AuthIdentity.objects.create( auth_provider=self.auth_provider, user=self.user, data={ 'data': {'access_token': 'access_token'}, } ) provider = OAuth2Provider(key=self.auth_provider.provider) with pytest.raises(IdentityNotValid): provider.refresh_identity(auth_identity)
Correct identity data in test
Correct identity data in test
Python
bsd-3-clause
daevaorn/sentry,ewdurbin/sentry,mvaled/sentry,daevaorn/sentry,imankulov/sentry,llonchj/sentry,looker/sentry,BayanGroup/sentry,felixbuenemann/sentry,jean/sentry,vperron/sentry,BuildingLink/sentry,argonemyth/sentry,mvaled/sentry,boneyao/sentry,nicholasserra/sentry,gencer/sentry,JTCunning/sentry,imankulov/sentry,JamesMura/sentry,fotinakis/sentry,beeftornado/sentry,gencer/sentry,TedaLIEz/sentry,kevinlondon/sentry,ngonzalvez/sentry,JamesMura/sentry,ngonzalvez/sentry,1tush/sentry,songyi199111/sentry,songyi199111/sentry,zenefits/sentry,mvaled/sentry,JackDanger/sentry,boneyao/sentry,korealerts1/sentry,ewdurbin/sentry,wong2/sentry,TedaLIEz/sentry,fotinakis/sentry,boneyao/sentry,BayanGroup/sentry,zenefits/sentry,pauloschilling/sentry,BuildingLink/sentry,gg7/sentry,1tush/sentry,kevinlondon/sentry,pauloschilling/sentry,JamesMura/sentry,looker/sentry,BuildingLink/sentry,BuildingLink/sentry,songyi199111/sentry,gencer/sentry,fuziontech/sentry,mitsuhiko/sentry,ngonzalvez/sentry,nicholasserra/sentry,looker/sentry,drcapulet/sentry,daevaorn/sentry,mvaled/sentry,vperron/sentry,felixbuenemann/sentry,1tush/sentry,wong2/sentry,JTCunning/sentry,llonchj/sentry,ifduyue/sentry,argonemyth/sentry,Kryz/sentry,ifduyue/sentry,Natim/sentry,wujuguang/sentry,JackDanger/sentry,fuziontech/sentry,jean/sentry,gg7/sentry,hongliang5623/sentry,Kryz/sentry,gg7/sentry,mvaled/sentry,wujuguang/sentry,alexm92/sentry,imankulov/sentry,gencer/sentry,wujuguang/sentry,JackDanger/sentry,alexm92/sentry,vperron/sentry,argonemyth/sentry,pauloschilling/sentry,BuildingLink/sentry,Natim/sentry,fuziontech/sentry,fotinakis/sentry,ifduyue/sentry,kevinastone/sentry,beeftornado/sentry,daevaorn/sentry,wong2/sentry,Natim/sentry,nicholasserra/sentry,kevinastone/sentry,gencer/sentry,mvaled/sentry,beeftornado/sentry,BayanGroup/sentry,hongliang5623/sentry,JTCunning/sentry,zenefits/sentry,looker/sentry,ifduyue/sentry,drcapulet/sentry,jean/sentry,mitsuhiko/sentry,felixbuenemann/sentry,Kryz/sentry,zenefits/sentry,jean/sentry,TedaLIEz/sentry,zenefits/sentry,korealerts1/sentry,alexm92/sentry,kevinastone/sentry,jean/sentry,JamesMura/sentry,ewdurbin/sentry,kevinlondon/sentry,JamesMura/sentry,korealerts1/sentry,fotinakis/sentry,hongliang5623/sentry,drcapulet/sentry,looker/sentry,llonchj/sentry,ifduyue/sentry
python
## Code Before: from __future__ import absolute_import, print_function import pytest from sentry.auth.exceptions import IdentityNotValid from sentry.auth.providers.oauth2 import OAuth2Provider from sentry.models import AuthIdentity, AuthProvider from sentry.testutils import TestCase class OAuth2ProviderTest(TestCase): def setUp(self): self.org = self.create_organization(owner=self.user) self.user = self.create_user('foo@example.com') self.auth_provider = AuthProvider.objects.create( provider='oauth2', organization=self.org, ) self.provider = self.get_provider() super(OAuth2ProviderTest, self).setUp() def get_provider(self): self.provider = OAuth2Provider( key=self.auth_provider.provider ) def test_refresh_identity_without_refresh_token(self): auth_identity = AuthIdentity.objects.create( auth_provider=self.auth_provider, user=self.user, data={ 'access_token': 'access_token', } ) provider = OAuth2Provider(key=self.auth_provider.provider) with pytest.raises(IdentityNotValid): provider.refresh_identity(auth_identity) ## Instruction: Correct identity data in test ## Code After: from __future__ import absolute_import, print_function import pytest from sentry.auth.exceptions import IdentityNotValid from sentry.auth.providers.oauth2 import OAuth2Provider from sentry.models import AuthIdentity, AuthProvider from sentry.testutils import TestCase class OAuth2ProviderTest(TestCase): def setUp(self): self.org = self.create_organization(owner=self.user) self.user = self.create_user('foo@example.com') self.auth_provider = AuthProvider.objects.create( provider='oauth2', organization=self.org, ) self.provider = self.get_provider() super(OAuth2ProviderTest, self).setUp() def get_provider(self): self.provider = OAuth2Provider( key=self.auth_provider.provider ) def test_refresh_identity_without_refresh_token(self): auth_identity = AuthIdentity.objects.create( auth_provider=self.auth_provider, user=self.user, data={ 'data': {'access_token': 'access_token'}, } ) provider = OAuth2Provider(key=self.auth_provider.provider) with pytest.raises(IdentityNotValid): provider.refresh_identity(auth_identity)
from __future__ import absolute_import, print_function import pytest from sentry.auth.exceptions import IdentityNotValid from sentry.auth.providers.oauth2 import OAuth2Provider from sentry.models import AuthIdentity, AuthProvider from sentry.testutils import TestCase class OAuth2ProviderTest(TestCase): def setUp(self): self.org = self.create_organization(owner=self.user) self.user = self.create_user('foo@example.com') self.auth_provider = AuthProvider.objects.create( provider='oauth2', organization=self.org, ) self.provider = self.get_provider() super(OAuth2ProviderTest, self).setUp() def get_provider(self): self.provider = OAuth2Provider( key=self.auth_provider.provider ) def test_refresh_identity_without_refresh_token(self): auth_identity = AuthIdentity.objects.create( auth_provider=self.auth_provider, user=self.user, data={ - 'access_token': 'access_token', + 'data': {'access_token': 'access_token'}, ? +++++++++ + } ) provider = OAuth2Provider(key=self.auth_provider.provider) with pytest.raises(IdentityNotValid): provider.refresh_identity(auth_identity)
2
0.052632
1
1
13a31f66393292dca5850c609bdf94b54cb68776
integration/advent2013-day07.t
integration/advent2013-day07.t
use v6; use Test; plan 6; # U+2286 SUBSET OF OR EQUAL TO only sub infix:<<"\x2286">>($a, $b --> Bool) { $a (<=) $b; } is set( <a b c> ) ⊆ set( <a b c d> ), True, 'a b c ⊆ a b c d'; is set( <a b c d> ) ⊆ set( <a b c> ), False, 'a b c d ⊆ a b c'; is <a b c> ⊆ <a b d>, False, 'a b c ⊆ a b d'; is <a b c> === <a b c>, False, 'a b c === a b c'; is <a b c> eqv <a b c>, True, 'a b c eqv a b c'; is set(<a b c>).WHICH, 'Set|Str|a Str|b Str|c', 'is .WHICH what we expect';
use v6; use Test; plan 6; # U+2286 SUBSET OF OR EQUAL TO only sub infix:<<"\x2286">>($a, $b --> Bool) { $a (<=) $b; } is set( <a b c> ) ⊆ set( <a b c d> ), True, 'a b c ⊆ a b c d'; is set( <a b c d> ) ⊆ set( <a b c> ), False, 'a b c d ⊆ a b c'; is <a b c> ⊆ <a b d>, False, 'a b c ⊆ a b d'; is <a b c> === <a b c>, False, 'a b c === a b c'; is <a b c> eqv <a b c>, True, 'a b c eqv a b c'; is set(<a b c>).WHICH, set(<c b a>).WHICH, 'make sure .WHICH is consistent';
Make bogus .WHICH test less bogus
Make bogus .WHICH test less bogus
Perl
artistic-2.0
dogbert17/roast,bitrauser/roast,bitrauser/roast,perl6/roast,dogbert17/roast
perl
## Code Before: use v6; use Test; plan 6; # U+2286 SUBSET OF OR EQUAL TO only sub infix:<<"\x2286">>($a, $b --> Bool) { $a (<=) $b; } is set( <a b c> ) ⊆ set( <a b c d> ), True, 'a b c ⊆ a b c d'; is set( <a b c d> ) ⊆ set( <a b c> ), False, 'a b c d ⊆ a b c'; is <a b c> ⊆ <a b d>, False, 'a b c ⊆ a b d'; is <a b c> === <a b c>, False, 'a b c === a b c'; is <a b c> eqv <a b c>, True, 'a b c eqv a b c'; is set(<a b c>).WHICH, 'Set|Str|a Str|b Str|c', 'is .WHICH what we expect'; ## Instruction: Make bogus .WHICH test less bogus ## Code After: use v6; use Test; plan 6; # U+2286 SUBSET OF OR EQUAL TO only sub infix:<<"\x2286">>($a, $b --> Bool) { $a (<=) $b; } is set( <a b c> ) ⊆ set( <a b c d> ), True, 'a b c ⊆ a b c d'; is set( <a b c d> ) ⊆ set( <a b c> ), False, 'a b c d ⊆ a b c'; is <a b c> ⊆ <a b d>, False, 'a b c ⊆ a b d'; is <a b c> === <a b c>, False, 'a b c === a b c'; is <a b c> eqv <a b c>, True, 'a b c eqv a b c'; is set(<a b c>).WHICH, set(<c b a>).WHICH, 'make sure .WHICH is consistent';
use v6; use Test; plan 6; # U+2286 SUBSET OF OR EQUAL TO only sub infix:<<"\x2286">>($a, $b --> Bool) { $a (<=) $b; } is set( <a b c> ) ⊆ set( <a b c d> ), True, 'a b c ⊆ a b c d'; is set( <a b c d> ) ⊆ set( <a b c> ), False, 'a b c d ⊆ a b c'; is <a b c> ⊆ <a b d>, False, 'a b c ⊆ a b d'; is <a b c> === <a b c>, False, 'a b c === a b c'; is <a b c> eqv <a b c>, True, 'a b c eqv a b c'; - is set(<a b c>).WHICH, 'Set|Str|a Str|b Str|c', 'is .WHICH what we expect'; + is set(<a b c>).WHICH, set(<c b a>).WHICH, 'make sure .WHICH is consistent';
2
0.133333
1
1
ed891795dc061b2e990b577aa109827aa8757544
spec/spec_helper.rb
spec/spec_helper.rb
require 'puppet-lint' PuppetLint::Plugins.load_spec_helper
require 'simplecov' SimpleCov.start do enable_coverage :branch end require 'puppet-lint' PuppetLint::Plugins.load_spec_helper
Enable simplecov and turn on branch coverage
Enable simplecov and turn on branch coverage New from ruby 2.5 - shows coverage of if / else for example
Ruby
mit
deanwilson/puppet-lint-no_cron_resources-check
ruby
## Code Before: require 'puppet-lint' PuppetLint::Plugins.load_spec_helper ## Instruction: Enable simplecov and turn on branch coverage New from ruby 2.5 - shows coverage of if / else for example ## Code After: require 'simplecov' SimpleCov.start do enable_coverage :branch end require 'puppet-lint' PuppetLint::Plugins.load_spec_helper
+ require 'simplecov' + SimpleCov.start do + enable_coverage :branch + end + require 'puppet-lint' PuppetLint::Plugins.load_spec_helper
5
1.666667
5
0
fcc0118d9e80073d8d453007a3aab00a8c4cf0ef
client/app/accounts/services/account.service.ts
client/app/accounts/services/account.service.ts
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { environment } from '../../../environments/environment'; @Injectable() export class AccountService { private url = `${environment.backend.url}/accounts`; constructor(private http: Http) { } register(email: string, password: string): Promise<void> { const data = { email, password }; return this.http .post(this.url, data) .toPromise() .then(response => {}); } }
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { environment } from '../../../environments/environment'; @Injectable() export class AccountService { private url = `${environment.backend.url}/accounts`; constructor(private http: Http) { } register(email: string, password: string): Promise<void> { const data = { email, password }; return this.http .post(this.url, data) .toPromise() .then(response => {}); } createToken(email: string, password: string): Promise<string> { const data = { email, password }; return this.http .post(`${this.url}/token`, data) .toPromise() .then(response => response.json().access_token); } }
Add the create token method
Add the create token method
TypeScript
mit
fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training
typescript
## Code Before: import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { environment } from '../../../environments/environment'; @Injectable() export class AccountService { private url = `${environment.backend.url}/accounts`; constructor(private http: Http) { } register(email: string, password: string): Promise<void> { const data = { email, password }; return this.http .post(this.url, data) .toPromise() .then(response => {}); } } ## Instruction: Add the create token method ## Code After: import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { environment } from '../../../environments/environment'; @Injectable() export class AccountService { private url = `${environment.backend.url}/accounts`; constructor(private http: Http) { } register(email: string, password: string): Promise<void> { const data = { email, password }; return this.http .post(this.url, data) .toPromise() .then(response => {}); } createToken(email: string, password: string): Promise<string> { const data = { email, password }; return this.http .post(`${this.url}/token`, data) .toPromise() .then(response => response.json().access_token); } }
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { environment } from '../../../environments/environment'; @Injectable() export class AccountService { private url = `${environment.backend.url}/accounts`; constructor(private http: Http) { } register(email: string, password: string): Promise<void> { const data = { email, password }; return this.http .post(this.url, data) .toPromise() .then(response => {}); } + + createToken(email: string, password: string): Promise<string> { + const data = { email, password }; + + return this.http + .post(`${this.url}/token`, data) + .toPromise() + .then(response => response.json().access_token); + } }
9
0.428571
9
0
348bc1fb35b13b1648f9eeb68f1a887967f13ea5
samples/managedDevice/README.md
samples/managedDevice/README.md
Sample code for a managed device sending system utilization data The following data points are supported: * CPU utilization (%) * Memory utilization (%) * Outbound network utilization across all network interfaces (KB/s) * Inbound network utilization across all network interfaces (KB/s) ## Setup * [Windows](setup/windows.md) * [Ubuntu](setup/ubuntu.md) * [RHEL/CentOS](setup/rhel.md)
Sample code for a managed device sending system utilization data The following data points are supported: * CPU utilization (%) * Memory utilization (%) * Outbound network utilization across all network interfaces (KB/s) * Inbound network utilization across all network interfaces (KB/s) ## Setup * [Windows](setup/windows.md) * [Ubuntu](setup/ubuntu.md) * [RHEL/CentOS](setup/rhel.md) * [Raspbian](setup/raspbian.md)
Add raspbian setup to managedDevice sample readme
Add raspbian setup to managedDevice sample readme raspbian setup link is missing from readme
Markdown
epl-1.0
ibm-watson-iot/iot-python,Lokesh-K-Haralakatta/iot-python,ibm-watson-iot/iot-python,ibm-messaging/iot-python
markdown
## Code Before: Sample code for a managed device sending system utilization data The following data points are supported: * CPU utilization (%) * Memory utilization (%) * Outbound network utilization across all network interfaces (KB/s) * Inbound network utilization across all network interfaces (KB/s) ## Setup * [Windows](setup/windows.md) * [Ubuntu](setup/ubuntu.md) * [RHEL/CentOS](setup/rhel.md) ## Instruction: Add raspbian setup to managedDevice sample readme raspbian setup link is missing from readme ## Code After: Sample code for a managed device sending system utilization data The following data points are supported: * CPU utilization (%) * Memory utilization (%) * Outbound network utilization across all network interfaces (KB/s) * Inbound network utilization across all network interfaces (KB/s) ## Setup * [Windows](setup/windows.md) * [Ubuntu](setup/ubuntu.md) * [RHEL/CentOS](setup/rhel.md) * [Raspbian](setup/raspbian.md)
Sample code for a managed device sending system utilization data The following data points are supported: * CPU utilization (%) * Memory utilization (%) * Outbound network utilization across all network interfaces (KB/s) * Inbound network utilization across all network interfaces (KB/s) ## Setup * [Windows](setup/windows.md) * [Ubuntu](setup/ubuntu.md) * [RHEL/CentOS](setup/rhel.md) + * [Raspbian](setup/raspbian.md)
1
0.076923
1
0
5013b427baa7ac0cc82f0a52ae8eab7364e8186c
app/scripts/app/views/groups.js
app/scripts/app/views/groups.js
var GroupsView = Em.View.extend({ classNameBindings: ['groups', 'animateMe:yoyo:yaya'], init: function () { this._super(); this.one('click', this, function (e) { console.log('clicked !! ', this, e)}); window.a = this; }, tryThis: function () { var yesnow = this.get('controller.yesnow'); if (yesnow === 1) { this.set('animateMe', true); console.log('-----yesnow is true') } else { this.set('animateMe', false); console.log('-----yesnow is false') } }.observes('controller.yesnow') }); export default GroupsView;
var GroupsView = Em.View.extend({ classNameBindings: ['groups'], }); export default GroupsView;
Remove experimental fluff from GroupsView
Remove experimental fluff from GroupsView
JavaScript
mit
darvelo/wishlist,darvelo/wishlist
javascript
## Code Before: var GroupsView = Em.View.extend({ classNameBindings: ['groups', 'animateMe:yoyo:yaya'], init: function () { this._super(); this.one('click', this, function (e) { console.log('clicked !! ', this, e)}); window.a = this; }, tryThis: function () { var yesnow = this.get('controller.yesnow'); if (yesnow === 1) { this.set('animateMe', true); console.log('-----yesnow is true') } else { this.set('animateMe', false); console.log('-----yesnow is false') } }.observes('controller.yesnow') }); export default GroupsView; ## Instruction: Remove experimental fluff from GroupsView ## Code After: var GroupsView = Em.View.extend({ classNameBindings: ['groups'], }); export default GroupsView;
var GroupsView = Em.View.extend({ + classNameBindings: ['groups'], - classNameBindings: ['groups', 'animateMe:yoyo:yaya'], - init: function () { - this._super(); - this.one('click', this, function (e) { console.log('clicked !! ', this, e)}); - window.a = this; - }, - - tryThis: function () { - var yesnow = this.get('controller.yesnow'); - - if (yesnow === 1) { - this.set('animateMe', true); - console.log('-----yesnow is true') - } else { - this.set('animateMe', false); - console.log('-----yesnow is false') - } - }.observes('controller.yesnow') }); export default GroupsView;
19
0.863636
1
18
a839c23467d52215413f9fc0ca3a9496c7d2df65
omniauth-heroku.gemspec
omniauth-heroku.gemspec
Gem::Specification.new do |gem| gem.authors = ["Pedro Belo"] gem.email = ["pedro@heroku.com"] gem.description = %q{OmniAuth strategy for Heroku.} gem.summary = %q{OmniAuth strategy for Heroku.} gem.homepage = "https://github.com/heroku/omniauth-heroku" gem.license = "MIT" gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } gem.files = `git ls-files`.split("\n") gem.name = "omniauth-heroku" gem.require_paths = ["lib"] gem.version = "0.2.0" gem.add_dependency 'omniauth', '~> 1.2' gem.add_dependency 'omniauth-oauth2', '~> 1.2' end
Gem::Specification.new do |gem| gem.name = "omniauth-heroku" gem.authors = ["Pedro Belo"] gem.email = ["pedro@heroku.com"] gem.description = "OmniAuth strategy for Heroku." gem.summary = "OmniAuth strategy for Heroku." gem.homepage = "https://github.com/heroku/omniauth-heroku" gem.license = "MIT" gem.files = Dir["README.md", "LICENSE", "lib/**/*"] gem.require_path = "lib" gem.version = "0.2.0" gem.add_dependency "omniauth", "~> 1.2" gem.add_dependency "omniauth-oauth2", "~> 1.2" end
Clean up gemspec a bit
Clean up gemspec a bit
Ruby
mit
heroku/omniauth-heroku
ruby
## Code Before: Gem::Specification.new do |gem| gem.authors = ["Pedro Belo"] gem.email = ["pedro@heroku.com"] gem.description = %q{OmniAuth strategy for Heroku.} gem.summary = %q{OmniAuth strategy for Heroku.} gem.homepage = "https://github.com/heroku/omniauth-heroku" gem.license = "MIT" gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } gem.files = `git ls-files`.split("\n") gem.name = "omniauth-heroku" gem.require_paths = ["lib"] gem.version = "0.2.0" gem.add_dependency 'omniauth', '~> 1.2' gem.add_dependency 'omniauth-oauth2', '~> 1.2' end ## Instruction: Clean up gemspec a bit ## Code After: Gem::Specification.new do |gem| gem.name = "omniauth-heroku" gem.authors = ["Pedro Belo"] gem.email = ["pedro@heroku.com"] gem.description = "OmniAuth strategy for Heroku." gem.summary = "OmniAuth strategy for Heroku." gem.homepage = "https://github.com/heroku/omniauth-heroku" gem.license = "MIT" gem.files = Dir["README.md", "LICENSE", "lib/**/*"] gem.require_path = "lib" gem.version = "0.2.0" gem.add_dependency "omniauth", "~> 1.2" gem.add_dependency "omniauth-oauth2", "~> 1.2" end
Gem::Specification.new do |gem| + gem.name = "omniauth-heroku" gem.authors = ["Pedro Belo"] gem.email = ["pedro@heroku.com"] - gem.description = %q{OmniAuth strategy for Heroku.} ? ^^^ ^ + gem.description = "OmniAuth strategy for Heroku." ? ^ ^ - gem.summary = %q{OmniAuth strategy for Heroku.} ? ^^^ ^ + gem.summary = "OmniAuth strategy for Heroku." ? ^ ^ gem.homepage = "https://github.com/heroku/omniauth-heroku" gem.license = "MIT" + gem.files = Dir["README.md", "LICENSE", "lib/**/*"] - gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - gem.files = `git ls-files`.split("\n") - gem.name = "omniauth-heroku" - gem.require_paths = ["lib"] ? ^ - - + gem.require_path = "lib" ? ^ gem.version = "0.2.0" - gem.add_dependency 'omniauth', '~> 1.2' ? ^ ^ ^ ^ + gem.add_dependency "omniauth", "~> 1.2" ? ^ ^ ^ ^ - gem.add_dependency 'omniauth-oauth2', '~> 1.2' ? ^ ^ ^ ^ + gem.add_dependency "omniauth-oauth2", "~> 1.2" ? ^ ^ ^ ^ end
15
0.882353
7
8
243215031e9dbb2eac031f0e385926ee2f52b063
.travis.yml
.travis.yml
--- language: ruby sudo: false cache: bundler script: - bundle exec rake spec rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.5 env: - FACTER_GEM_VERSION="~> 1.6.0" - FACTER_GEM_VERSION="~> 1.7.0" - FACTER_GEM_VERSION="~> 2.0.0" - FACTER_GEM_VERSION="~> 2.1.0" - FACTER_GEM_VERSION="~> 2.2.0" - FACTER_GEM_VERSION="~> 2.3.0" matrix: fast_finish: true notifications: email: false
--- language: ruby sudo: false cache: bundler script: - bundle exec rake spec rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.5 env: - FACTER_GEM_VERSION="~> 1.6.0" - FACTER_GEM_VERSION="~> 1.7.0" - FACTER_GEM_VERSION="~> 2.0.0" - FACTER_GEM_VERSION="~> 2.1.0" - FACTER_GEM_VERSION="~> 2.2.0" - FACTER_GEM_VERSION="~> 2.3.0" matrix: fast_finish: true allow_failures: - rvm: 1.8.7 notifications: email: false
Allow failure on ruby 1.8.7
Allow failure on ruby 1.8.7
YAML
apache-2.0
pall-valmundsson/rspec-puppet-facts,DavidS/rspec-puppet-facts,mcanevet/rspec-puppet-facts,camptocamp/rspec-puppet-facts,dmitryilyin/rspec-puppet-facts,camptocamp/rspec-puppet-facts
yaml
## Code Before: --- language: ruby sudo: false cache: bundler script: - bundle exec rake spec rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.5 env: - FACTER_GEM_VERSION="~> 1.6.0" - FACTER_GEM_VERSION="~> 1.7.0" - FACTER_GEM_VERSION="~> 2.0.0" - FACTER_GEM_VERSION="~> 2.1.0" - FACTER_GEM_VERSION="~> 2.2.0" - FACTER_GEM_VERSION="~> 2.3.0" matrix: fast_finish: true notifications: email: false ## Instruction: Allow failure on ruby 1.8.7 ## Code After: --- language: ruby sudo: false cache: bundler script: - bundle exec rake spec rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.5 env: - FACTER_GEM_VERSION="~> 1.6.0" - FACTER_GEM_VERSION="~> 1.7.0" - FACTER_GEM_VERSION="~> 2.0.0" - FACTER_GEM_VERSION="~> 2.1.0" - FACTER_GEM_VERSION="~> 2.2.0" - FACTER_GEM_VERSION="~> 2.3.0" matrix: fast_finish: true allow_failures: - rvm: 1.8.7 notifications: email: false
--- language: ruby sudo: false cache: bundler script: - bundle exec rake spec rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.5 env: - FACTER_GEM_VERSION="~> 1.6.0" - FACTER_GEM_VERSION="~> 1.7.0" - FACTER_GEM_VERSION="~> 2.0.0" - FACTER_GEM_VERSION="~> 2.1.0" - FACTER_GEM_VERSION="~> 2.2.0" - FACTER_GEM_VERSION="~> 2.3.0" matrix: fast_finish: true + allow_failures: + - rvm: 1.8.7 notifications: email: false
2
0.090909
2
0
8ba8b080c333a68f87aa4ced5b14768e4077acc8
haxelib.json
haxelib.json
{ "name": "ufront-mvc", "license": "MIT", "classPath": "src", "tags": ["ufront","web","framework","mvc","neko","php"], "description": "MVC Framework that is at the core of ufront.", "contributors": ["fponticelli","jason"], "releasenote": "Small fix for FileSession on windows, and other minor improvements.", "version": "1.0.0-beta.2", "url": "https://github.com/ufront/ufront-mvc", "dependencies": { "hxevents": "", "detox": "", "random": "", "compiletime": "", "minject": "", "tink_core": "1.0.0-beta.3", "tink_macro": "0.0.0-beta " } }
{ "name": "ufront-mvc", "license": "MIT", "classPath": "src", "tags": ["ufront","web","framework","mvc","neko","php"], "description": "MVC Framework that is at the core of ufront.", "contributors": ["fponticelli","jason"], "releasenote": "Small fix for FileSession on windows, and other minor improvements.", "version": "1.0.0-beta.2", "url": "https://github.com/ufront/ufront-mvc", "dependencies": { "hxevents": "", "detox": "", "random": "", "compiletime": "", "minject": "", "tink_core": "", "tink_macro": "" } }
Remove specific versions from tink_core and tink_macro
Remove specific versions from tink_core and tink_macro Until haxelib supports fuzzy versions at least...
JSON
mit
ufront/ufront-mvc,ufront/ufront-mvc,kevinresol/ufront-mvc,kevinresol/ufront-mvc
json
## Code Before: { "name": "ufront-mvc", "license": "MIT", "classPath": "src", "tags": ["ufront","web","framework","mvc","neko","php"], "description": "MVC Framework that is at the core of ufront.", "contributors": ["fponticelli","jason"], "releasenote": "Small fix for FileSession on windows, and other minor improvements.", "version": "1.0.0-beta.2", "url": "https://github.com/ufront/ufront-mvc", "dependencies": { "hxevents": "", "detox": "", "random": "", "compiletime": "", "minject": "", "tink_core": "1.0.0-beta.3", "tink_macro": "0.0.0-beta " } } ## Instruction: Remove specific versions from tink_core and tink_macro Until haxelib supports fuzzy versions at least... ## Code After: { "name": "ufront-mvc", "license": "MIT", "classPath": "src", "tags": ["ufront","web","framework","mvc","neko","php"], "description": "MVC Framework that is at the core of ufront.", "contributors": ["fponticelli","jason"], "releasenote": "Small fix for FileSession on windows, and other minor improvements.", "version": "1.0.0-beta.2", "url": "https://github.com/ufront/ufront-mvc", "dependencies": { "hxevents": "", "detox": "", "random": "", "compiletime": "", "minject": "", "tink_core": "", "tink_macro": "" } }
{ "name": "ufront-mvc", "license": "MIT", "classPath": "src", "tags": ["ufront","web","framework","mvc","neko","php"], "description": "MVC Framework that is at the core of ufront.", "contributors": ["fponticelli","jason"], "releasenote": "Small fix for FileSession on windows, and other minor improvements.", "version": "1.0.0-beta.2", "url": "https://github.com/ufront/ufront-mvc", "dependencies": { "hxevents": "", "detox": "", "random": "", "compiletime": "", "minject": "", - "tink_core": "1.0.0-beta.3", ? ------------ + "tink_core": "", - "tink_macro": "0.0.0-beta " ? ----------- + "tink_macro": "" } }
4
0.2
2
2
3e71b5dc438b8847a364da0fb2cc220028ecc539
articles/native-platforms/electron/01-login.md
articles/native-platforms/electron/01-login.md
--- title: Login description: This tutorial will show you how to use the Auth0 Electron SDK to add authentication and authorization to your app. budicon: 448 --- <%= include('../../_includes/_package', { githubUrl: 'https://github.com/auth0-samples/auth0-electron-samples/tree/master/00-Starter-Seed', pkgOrg: 'auth0-samples', pkgRepo: 'auth0-electron-samples', pkgBranch: 'master', pkgPath: '00-Starter-Seed', pkgFilePath: null, pkgType: 'js' }) %> ::: panel-info System Requirements This tutorial and seed project have been tested with the following: * NodeJS 5.0.0 * Electron 0.36.7 ::: ## 1. Setting up the Callback URL <div class="setup-callback"> <p>Go to the <a href="${manage_url}/#/applications/${account.clientId}/settings">Application Settings</a> section in your Auth0 dashboard and make sure that the <b>Allowed Callback URLs</b> field contains the following values:</p> ``` https://${account.namespace}/mobile, file:/// ``` </div> ## 2. Add the Lock Widget Add **Auth0Lock** to your `index.html` file and set the viewport. ${snippet(meta.snippets.dependencies)} ## 4. Follow the Front End Quickstarts You can use any front end technology you like in your Electron application. Follow the [quickstart](/quickstart/spa) guide specific to your use case.
--- title: Login description: This tutorial will show you how to use the Auth0 Electron SDK to add authentication and authorization to your app. budicon: 448 --- <%= include('../../_includes/_package2', { org: 'auth0-samples', repo: 'auth0-electron-samples', path: '01-Login' }) %> ::: panel-info System Requirements This tutorial and seed project have been tested with the following: * NodeJS 5.0.0 * Electron 1.4.3 ::: ## 1. Setting up the Callback URL <div class="setup-callback"> <p>Go to the <a href="${manage_url}/#/applications/${account.clientId}/settings">Application Settings</a> section in your Auth0 dashboard and make sure that the <b>Allowed Callback URLs</b> field contains the following values:</p> ``` https://${account.namespace}/mobile, file:/// ``` </div> ## 2. Add the Lock Widget Add **Auth0Lock** to your `index.html` file and set the viewport. ${snippet(meta.snippets.dependencies)} > **Note:** Certain functionality provided by the Lock widget, such as single sign-on, does not work well in Electron. For best results, add `auth: { sso: false }` to your Lock configuration options. ## 4. Follow the Front End Quickstarts You can use any front end technology you like in your Electron application. Follow the [quickstart](/quickstart/spa) guide specific to your use case.
Update electron to use package2
Update electron to use package2
Markdown
mit
khorne3/docs,sandrinodimattia/docs,sandrinodimattia/docs,jeffreylees/docs,auth0/docs,yvonnewilson/docs,khorne3/docs,Annyv2/docs,hamzawi06/docs,auth0/docs,Annyv2/docs,khorne3/docs,auth0/docs,sandrinodimattia/docs,hamzawi06/docs,Annyv2/docs,hamzawi06/docs,yvonnewilson/docs,jeffreylees/docs,yvonnewilson/docs,jeffreylees/docs
markdown
## Code Before: --- title: Login description: This tutorial will show you how to use the Auth0 Electron SDK to add authentication and authorization to your app. budicon: 448 --- <%= include('../../_includes/_package', { githubUrl: 'https://github.com/auth0-samples/auth0-electron-samples/tree/master/00-Starter-Seed', pkgOrg: 'auth0-samples', pkgRepo: 'auth0-electron-samples', pkgBranch: 'master', pkgPath: '00-Starter-Seed', pkgFilePath: null, pkgType: 'js' }) %> ::: panel-info System Requirements This tutorial and seed project have been tested with the following: * NodeJS 5.0.0 * Electron 0.36.7 ::: ## 1. Setting up the Callback URL <div class="setup-callback"> <p>Go to the <a href="${manage_url}/#/applications/${account.clientId}/settings">Application Settings</a> section in your Auth0 dashboard and make sure that the <b>Allowed Callback URLs</b> field contains the following values:</p> ``` https://${account.namespace}/mobile, file:/// ``` </div> ## 2. Add the Lock Widget Add **Auth0Lock** to your `index.html` file and set the viewport. ${snippet(meta.snippets.dependencies)} ## 4. Follow the Front End Quickstarts You can use any front end technology you like in your Electron application. Follow the [quickstart](/quickstart/spa) guide specific to your use case. ## Instruction: Update electron to use package2 ## Code After: --- title: Login description: This tutorial will show you how to use the Auth0 Electron SDK to add authentication and authorization to your app. budicon: 448 --- <%= include('../../_includes/_package2', { org: 'auth0-samples', repo: 'auth0-electron-samples', path: '01-Login' }) %> ::: panel-info System Requirements This tutorial and seed project have been tested with the following: * NodeJS 5.0.0 * Electron 1.4.3 ::: ## 1. Setting up the Callback URL <div class="setup-callback"> <p>Go to the <a href="${manage_url}/#/applications/${account.clientId}/settings">Application Settings</a> section in your Auth0 dashboard and make sure that the <b>Allowed Callback URLs</b> field contains the following values:</p> ``` https://${account.namespace}/mobile, file:/// ``` </div> ## 2. Add the Lock Widget Add **Auth0Lock** to your `index.html` file and set the viewport. ${snippet(meta.snippets.dependencies)} > **Note:** Certain functionality provided by the Lock widget, such as single sign-on, does not work well in Electron. For best results, add `auth: { sso: false }` to your Lock configuration options. ## 4. Follow the Front End Quickstarts You can use any front end technology you like in your Electron application. Follow the [quickstart](/quickstart/spa) guide specific to your use case.
--- title: Login description: This tutorial will show you how to use the Auth0 Electron SDK to add authentication and authorization to your app. budicon: 448 --- - <%= include('../../_includes/_package', { + <%= include('../../_includes/_package2', { ? + - githubUrl: 'https://github.com/auth0-samples/auth0-electron-samples/tree/master/00-Starter-Seed', - pkgOrg: 'auth0-samples', ? ^^^^ + org: 'auth0-samples', ? ^ - pkgRepo: 'auth0-electron-samples', ? ^^^^ + repo: 'auth0-electron-samples', ? ^ + path: '01-Login' - pkgBranch: 'master', - pkgPath: '00-Starter-Seed', - pkgFilePath: null, - pkgType: 'js' }) %> ::: panel-info System Requirements This tutorial and seed project have been tested with the following: * NodeJS 5.0.0 - * Electron 0.36.7 ? ^ --- + * Electron 1.4.3 ? ^^^ ::: - - ## 1. Setting up the Callback URL <div class="setup-callback"> <p>Go to the <a href="${manage_url}/#/applications/${account.clientId}/settings">Application Settings</a> section in your Auth0 dashboard and make sure that the <b>Allowed Callback URLs</b> field contains the following values:</p> ``` https://${account.namespace}/mobile, file:/// ``` </div> ## 2. Add the Lock Widget Add **Auth0Lock** to your `index.html` file and set the viewport. ${snippet(meta.snippets.dependencies)} + > **Note:** Certain functionality provided by the Lock widget, such as single sign-on, does not work well in Electron. For best results, add `auth: { sso: false }` to your Lock configuration options. + ## 4. Follow the Front End Quickstarts You can use any front end technology you like in your Electron application. Follow the [quickstart](/quickstart/spa) guide specific to your use case.
18
0.409091
7
11
c90f8ff52dc39daf2713f46fd12d89f19af27a41
lib/kubeclient/google_application_default_credentials.rb
lib/kubeclient/google_application_default_credentials.rb
module Kubeclient # Get a bearer token from the Google's application default credentials. class GoogleApplicationDefaultCredentials class GoogleDependencyError < LoadError # rubocop:disable Lint/InheritException end class << self def token begin require 'googleauth' rescue LoadError => e raise GoogleDependencyError, 'Error requiring googleauth gem. Kubeclient itself does not include the ' \ 'googleauth gem. To support auth-provider gcp, you must include it in your ' \ "calling application. Failed with: #{e.message}" end scopes = ['https://www.googleapis.com/auth/cloud-platform'] authorization = Google::Auth.get_application_default(scopes) authorization.apply({}) authorization.access_token end end end end
module Kubeclient # Get a bearer token from the Google's application default credentials. class GoogleApplicationDefaultCredentials class GoogleDependencyError < LoadError # rubocop:disable Lint/InheritException end class << self def token begin require 'googleauth' rescue LoadError => e raise GoogleDependencyError, 'Error requiring googleauth gem. Kubeclient itself does not include the ' \ 'googleauth gem. To support auth-provider gcp, you must include it in your ' \ "calling application. Failed with: #{e.message}" end scopes = [ 'https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/userinfo.email' ] authorization = Google::Auth.get_application_default(scopes) authorization.apply({}) authorization.access_token end end end end
Add userinfo.email to default scopes
Add userinfo.email to default scopes
Ruby
mit
abonas/kubeclient
ruby
## Code Before: module Kubeclient # Get a bearer token from the Google's application default credentials. class GoogleApplicationDefaultCredentials class GoogleDependencyError < LoadError # rubocop:disable Lint/InheritException end class << self def token begin require 'googleauth' rescue LoadError => e raise GoogleDependencyError, 'Error requiring googleauth gem. Kubeclient itself does not include the ' \ 'googleauth gem. To support auth-provider gcp, you must include it in your ' \ "calling application. Failed with: #{e.message}" end scopes = ['https://www.googleapis.com/auth/cloud-platform'] authorization = Google::Auth.get_application_default(scopes) authorization.apply({}) authorization.access_token end end end end ## Instruction: Add userinfo.email to default scopes ## Code After: module Kubeclient # Get a bearer token from the Google's application default credentials. class GoogleApplicationDefaultCredentials class GoogleDependencyError < LoadError # rubocop:disable Lint/InheritException end class << self def token begin require 'googleauth' rescue LoadError => e raise GoogleDependencyError, 'Error requiring googleauth gem. Kubeclient itself does not include the ' \ 'googleauth gem. To support auth-provider gcp, you must include it in your ' \ "calling application. Failed with: #{e.message}" end scopes = [ 'https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/userinfo.email' ] authorization = Google::Auth.get_application_default(scopes) authorization.apply({}) authorization.access_token end end end end
module Kubeclient # Get a bearer token from the Google's application default credentials. class GoogleApplicationDefaultCredentials class GoogleDependencyError < LoadError # rubocop:disable Lint/InheritException end class << self def token begin require 'googleauth' rescue LoadError => e raise GoogleDependencyError, 'Error requiring googleauth gem. Kubeclient itself does not include the ' \ 'googleauth gem. To support auth-provider gcp, you must include it in your ' \ "calling application. Failed with: #{e.message}" end + + scopes = [ - scopes = ['https://www.googleapis.com/auth/cloud-platform'] ? ------ - - ^ + 'https://www.googleapis.com/auth/cloud-platform', ? ^ + 'https://www.googleapis.com/auth/userinfo.email' + ] + authorization = Google::Auth.get_application_default(scopes) authorization.apply({}) authorization.access_token end end end end
7
0.28
6
1
2f4af141990d20d2589f324c2c2424782fb7dffc
src/network/remote/simulations.js
src/network/remote/simulations.js
import { transformRequest } from './utils'; const headers = { 'Content-Type': 'application/json', }; export default function ({ client, filterQuery, mustContain, busy }) { return { getSimulation(id) { return busy(client._.get(`/simulations/${id}`)); }, editSimulation(simulation) { const expected = ['name', 'description', 'active', 'disabled', 'metadata', 'steps', '_id'], sfiltered = filterQuery(simulation, ...expected.slice(0, 5)); // Remove '_id' return busy(client._.patch(`/simulations/${simulation._id}`, sfiltered, { headers, transformRequest, })); }, deleteSimulation(id) { return busy(client._.delete(`/simulations/${id}`)); }, cloneSimulation(id, { name = 'Cloned simulation' }) { return busy(client._.post(`/simulations/${id}/clone`), { name }, { headers, transformRequest }); }, downloadSimulation(id) { return busy(client._.get(`/simulations/${id}/download`)); }, getSimulationStep(id, name) { return busy(client._.get(`/simulations/${id}/steps/${name}`)); }, updateSimulationStep(id, name, step) { return busy(client._.patch(`/simulations/${id}/steps/${name}`, step, { headers, transformRequest, })); }, }; }
import { transformRequest } from './utils'; const headers = { 'Content-Type': 'application/json', }; export default function ({ client, filterQuery, mustContain, busy }) { return { getSimulation(id) { return busy(client._.get(`/simulations/${id}`)); }, editSimulation(simulation) { const expected = ['name', 'description', 'active', 'disabled', 'metadata', 'steps'], sfiltered = filterQuery(simulation, ...expected); return busy(client._.patch(`/simulations/${simulation._id}`, sfiltered, { headers, transformRequest, })); }, deleteSimulation(id) { return busy(client._.delete(`/simulations/${id}`)); }, cloneSimulation(id, { name = 'Cloned simulation' }) { return busy(client._.post(`/simulations/${id}/clone`), { name }, { headers, transformRequest }); }, downloadSimulation(id) { return busy(client._.get(`/simulations/${id}/download`)); }, getSimulationStep(id, name) { return busy(client._.get(`/simulations/${id}/steps/${name}`)); }, updateSimulationStep(id, name, step) { return busy(client._.patch(`/simulations/${id}/steps/${name}`, step, { headers, transformRequest, })); }, }; }
Remove '_id' from expected and get rid of slice
Remove '_id' from expected and get rid of slice Not sure why we init the array to contain '_id' and then remove it? Anyway as 'steps' was added to the array the slice index was wrong causing an issue. So I have removed '_id' from the array.
JavaScript
apache-2.0
Kitware/HPCCloud,Kitware/HPCCloud,Kitware/HPCCloud,Kitware/HPCCloud
javascript
## Code Before: import { transformRequest } from './utils'; const headers = { 'Content-Type': 'application/json', }; export default function ({ client, filterQuery, mustContain, busy }) { return { getSimulation(id) { return busy(client._.get(`/simulations/${id}`)); }, editSimulation(simulation) { const expected = ['name', 'description', 'active', 'disabled', 'metadata', 'steps', '_id'], sfiltered = filterQuery(simulation, ...expected.slice(0, 5)); // Remove '_id' return busy(client._.patch(`/simulations/${simulation._id}`, sfiltered, { headers, transformRequest, })); }, deleteSimulation(id) { return busy(client._.delete(`/simulations/${id}`)); }, cloneSimulation(id, { name = 'Cloned simulation' }) { return busy(client._.post(`/simulations/${id}/clone`), { name }, { headers, transformRequest }); }, downloadSimulation(id) { return busy(client._.get(`/simulations/${id}/download`)); }, getSimulationStep(id, name) { return busy(client._.get(`/simulations/${id}/steps/${name}`)); }, updateSimulationStep(id, name, step) { return busy(client._.patch(`/simulations/${id}/steps/${name}`, step, { headers, transformRequest, })); }, }; } ## Instruction: Remove '_id' from expected and get rid of slice Not sure why we init the array to contain '_id' and then remove it? Anyway as 'steps' was added to the array the slice index was wrong causing an issue. So I have removed '_id' from the array. ## Code After: import { transformRequest } from './utils'; const headers = { 'Content-Type': 'application/json', }; export default function ({ client, filterQuery, mustContain, busy }) { return { getSimulation(id) { return busy(client._.get(`/simulations/${id}`)); }, editSimulation(simulation) { const expected = ['name', 'description', 'active', 'disabled', 'metadata', 'steps'], sfiltered = filterQuery(simulation, ...expected); return busy(client._.patch(`/simulations/${simulation._id}`, sfiltered, { headers, transformRequest, })); }, deleteSimulation(id) { return busy(client._.delete(`/simulations/${id}`)); }, cloneSimulation(id, { name = 'Cloned simulation' }) { return busy(client._.post(`/simulations/${id}/clone`), { name }, { headers, transformRequest }); }, downloadSimulation(id) { return busy(client._.get(`/simulations/${id}/download`)); }, getSimulationStep(id, name) { return busy(client._.get(`/simulations/${id}/steps/${name}`)); }, updateSimulationStep(id, name, step) { return busy(client._.patch(`/simulations/${id}/steps/${name}`, step, { headers, transformRequest, })); }, }; }
import { transformRequest } from './utils'; const headers = { 'Content-Type': 'application/json', }; export default function ({ client, filterQuery, mustContain, busy }) { return { getSimulation(id) { return busy(client._.get(`/simulations/${id}`)); }, editSimulation(simulation) { - const expected = ['name', 'description', 'active', 'disabled', 'metadata', 'steps', '_id'], ? ------- + const expected = ['name', 'description', 'active', 'disabled', 'metadata', 'steps'], - sfiltered = filterQuery(simulation, ...expected.slice(0, 5)); // Remove '_id' ? ------------ ---------------- + sfiltered = filterQuery(simulation, ...expected); return busy(client._.patch(`/simulations/${simulation._id}`, sfiltered, { headers, transformRequest, })); }, deleteSimulation(id) { return busy(client._.delete(`/simulations/${id}`)); }, cloneSimulation(id, { name = 'Cloned simulation' }) { return busy(client._.post(`/simulations/${id}/clone`), { name }, { headers, transformRequest }); }, downloadSimulation(id) { return busy(client._.get(`/simulations/${id}/download`)); }, getSimulationStep(id, name) { return busy(client._.get(`/simulations/${id}/steps/${name}`)); }, updateSimulationStep(id, name, step) { return busy(client._.patch(`/simulations/${id}/steps/${name}`, step, { headers, transformRequest, })); }, }; }
4
0.086957
2
2
0739eacefcd93cf8aef1258b42a55196743dda7d
Android.mk
Android.mk
LOCAL_PATH := $(call my-dir) # libloki include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c LOCAL_MODULE := libloki_static LOCAL_MODULE_TAGS := eng include $(BUILD_STATIC_LIBRARY) # build static binary include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c main.c LOCAL_MODULE := loki_tool_static LOCAL_MODULE_STEM := loki_tool LOCAL_MODULE_TAGS := eng # LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin LOCAL_STATIC_LIBRARIES := libc LOCAL_FORCE_STATIC_EXECUTABLE := true include $(BUILD_EXECUTABLE)
LOCAL_PATH := $(call my-dir) # libloki include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c LOCAL_MODULE := libloki_static LOCAL_MODULE_TAGS := eng include $(BUILD_STATIC_LIBRARY) # build static binary include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c loki_unlok.c main.c LOCAL_MODULE := loki_tool_static LOCAL_MODULE_STEM := loki_tool LOCAL_MODULE_TAGS := eng # LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin LOCAL_STATIC_LIBRARIES := libc LOCAL_FORCE_STATIC_EXECUTABLE := true include $(BUILD_EXECUTABLE)
Add unlok option when building with NDK
Add unlok option when building with NDK
Makefile
bsd-2-clause
djrbliss/loki,zcop/loki,GameTheory-/loki
makefile
## Code Before: LOCAL_PATH := $(call my-dir) # libloki include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c LOCAL_MODULE := libloki_static LOCAL_MODULE_TAGS := eng include $(BUILD_STATIC_LIBRARY) # build static binary include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c main.c LOCAL_MODULE := loki_tool_static LOCAL_MODULE_STEM := loki_tool LOCAL_MODULE_TAGS := eng # LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin LOCAL_STATIC_LIBRARIES := libc LOCAL_FORCE_STATIC_EXECUTABLE := true include $(BUILD_EXECUTABLE) ## Instruction: Add unlok option when building with NDK ## Code After: LOCAL_PATH := $(call my-dir) # libloki include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c LOCAL_MODULE := libloki_static LOCAL_MODULE_TAGS := eng include $(BUILD_STATIC_LIBRARY) # build static binary include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c loki_unlok.c main.c LOCAL_MODULE := loki_tool_static LOCAL_MODULE_STEM := loki_tool LOCAL_MODULE_TAGS := eng # LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin LOCAL_STATIC_LIBRARIES := libc LOCAL_FORCE_STATIC_EXECUTABLE := true include $(BUILD_EXECUTABLE)
LOCAL_PATH := $(call my-dir) # libloki include $(CLEAR_VARS) LOCAL_SRC_FILES := loki_flash.c loki_patch.c LOCAL_MODULE := libloki_static LOCAL_MODULE_TAGS := eng include $(BUILD_STATIC_LIBRARY) # build static binary include $(CLEAR_VARS) - LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c main.c + LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c loki_unlok.c main.c ? +++++++++++++ LOCAL_MODULE := loki_tool_static LOCAL_MODULE_STEM := loki_tool LOCAL_MODULE_TAGS := eng # LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin LOCAL_STATIC_LIBRARIES := libc LOCAL_FORCE_STATIC_EXECUTABLE := true include $(BUILD_EXECUTABLE)
2
0.105263
1
1
6dc726532d7cfa993382b259e93e1e43e0a127d6
app/controllers/Version.scala
app/controllers/Version.scala
package controllers import com.google.inject.Inject import uk.gov.dvla.vehicles.presentation.common import common.webserviceclients.addresslookup.ordnanceservey.OrdnanceSurveyConfig import common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupConfig import utils.helpers.Config class Version @Inject()(vehiclesKeeperConfig: VehicleAndKeeperLookupConfig, osAddressLookupConfig: OrdnanceSurveyConfig, config: Config) extends common.controllers.Version ( osAddressLookupConfig.baseUrl + "/version", vehiclesKeeperConfig.vehicleAndKeeperLookupMicroServiceBaseUrl + "/version", config.vrmRetentionEligibilityMicroServiceUrlBase + "/version", config.vrmRetentionRetainMicroServiceUrlBase + "/version" )
package controllers import com.google.inject.Inject import uk.gov.dvla.vehicles.presentation.common import common.webserviceclients.addresslookup.ordnanceservey.OrdnanceSurveyConfig import common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupConfig import utils.helpers.Config class Version @Inject()(vehiclesKeeperConfig: VehicleAndKeeperLookupConfig, osAddressLookupConfig: OrdnanceSurveyConfig, config: Config) extends common.controllers.Version ( osAddressLookupConfig.baseUrl + "/version", vehiclesKeeperConfig.vehicleAndKeeperLookupMicroServiceBaseUrl + "/version", config.paymentSolveMicroServiceUrlBase + "/version", config.vrmRetentionEligibilityMicroServiceUrlBase + "/version", config.vrmRetentionRetainMicroServiceUrlBase + "/version", config.auditMicroServiceUrlBase + "/version" )
Add payment-solve and audit versions
Add payment-solve and audit versions
Scala
mit
dvla/vrm-retention-online,dvla/vrm-retention-online,dvla/vrm-retention-online,dvla/vrm-retention-online
scala
## Code Before: package controllers import com.google.inject.Inject import uk.gov.dvla.vehicles.presentation.common import common.webserviceclients.addresslookup.ordnanceservey.OrdnanceSurveyConfig import common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupConfig import utils.helpers.Config class Version @Inject()(vehiclesKeeperConfig: VehicleAndKeeperLookupConfig, osAddressLookupConfig: OrdnanceSurveyConfig, config: Config) extends common.controllers.Version ( osAddressLookupConfig.baseUrl + "/version", vehiclesKeeperConfig.vehicleAndKeeperLookupMicroServiceBaseUrl + "/version", config.vrmRetentionEligibilityMicroServiceUrlBase + "/version", config.vrmRetentionRetainMicroServiceUrlBase + "/version" ) ## Instruction: Add payment-solve and audit versions ## Code After: package controllers import com.google.inject.Inject import uk.gov.dvla.vehicles.presentation.common import common.webserviceclients.addresslookup.ordnanceservey.OrdnanceSurveyConfig import common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupConfig import utils.helpers.Config class Version @Inject()(vehiclesKeeperConfig: VehicleAndKeeperLookupConfig, osAddressLookupConfig: OrdnanceSurveyConfig, config: Config) extends common.controllers.Version ( osAddressLookupConfig.baseUrl + "/version", vehiclesKeeperConfig.vehicleAndKeeperLookupMicroServiceBaseUrl + "/version", config.paymentSolveMicroServiceUrlBase + "/version", config.vrmRetentionEligibilityMicroServiceUrlBase + "/version", config.vrmRetentionRetainMicroServiceUrlBase + "/version", config.auditMicroServiceUrlBase + "/version" )
package controllers import com.google.inject.Inject import uk.gov.dvla.vehicles.presentation.common import common.webserviceclients.addresslookup.ordnanceservey.OrdnanceSurveyConfig import common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupConfig import utils.helpers.Config class Version @Inject()(vehiclesKeeperConfig: VehicleAndKeeperLookupConfig, osAddressLookupConfig: OrdnanceSurveyConfig, config: Config) extends common.controllers.Version ( osAddressLookupConfig.baseUrl + "/version", vehiclesKeeperConfig.vehicleAndKeeperLookupMicroServiceBaseUrl + "/version", + config.paymentSolveMicroServiceUrlBase + "/version", config.vrmRetentionEligibilityMicroServiceUrlBase + "/version", - config.vrmRetentionRetainMicroServiceUrlBase + "/version" + config.vrmRetentionRetainMicroServiceUrlBase + "/version", ? + + config.auditMicroServiceUrlBase + "/version" )
4
0.25
3
1
435d5d21c2bd2b14998fd206035cc93fd897f6c8
tests/testclasses.py
tests/testclasses.py
from datetime import datetime import unittest from normalize import ( JsonCollectionProperty, JsonProperty, JsonRecord, Record, RecordList, ) class MockChildRecord(JsonRecord): name = JsonProperty() class MockDelegateJsonRecord(JsonRecord): other = JsonProperty() class MockJsonRecord(JsonRecord): name = JsonProperty() age = JsonProperty(isa=int) seen = JsonProperty( json_name='last_seen', isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), ) children = JsonCollectionProperty(of=MockChildRecord) class MockUnsanitizedJsonRecord(JsonRecord): count = JsonProperty(isa=int) last_updated = JsonProperty( isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), extraneous=False, ) class MockRecordList(RecordList): record_cls = MockUnsanitizedJsonRecord def all_diff_types_equal(record, diff_type): """ Returns True if the given Record's DiffType and Record's Properties' DiffTypes are the same as the specified DiffType. """ if record.diff_type != diff_type: return False for field_name, prop in record._fields.iteritems(): prop_diff_type = prop.get_diff_info(record).diff_type # Property doesn't have a DiffType if prop_diff_type is None: continue if prop_diff_type != diff_type: return False prop_value = getattr(record, field_name) if isinstance(prop_value, Record): if not all_diff_types_equal(prop_value, diff_type): return False #elif isinstance(prop_value, JsonCollectionProperty): #if not all(all_diff_types_equal(v, diff_type) # for v in prop_value): #return False return True class StructableTestCase(unittest.TestCase): def assertAllDiffTypesEqual(self, record, diff_type): self.assertTrue(all_diff_types_equal(record, diff_type))
from datetime import datetime import unittest from normalize import ( JsonCollectionProperty, JsonProperty, JsonRecord, Record, RecordList, ) class MockChildRecord(JsonRecord): name = JsonProperty() class MockDelegateJsonRecord(JsonRecord): other = JsonProperty() class MockJsonRecord(JsonRecord): name = JsonProperty() age = JsonProperty(isa=int) seen = JsonProperty( json_name='last_seen', isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), ) children = JsonCollectionProperty(of=MockChildRecord) class MockExtraneousJsonRecord(JsonRecord): count = JsonProperty(isa=int) last_updated = JsonProperty( isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), extraneous=False, ) class MockRecordList(RecordList): itemtype = MockExtraneousJsonRecord
Remove some traces of this module's predecessor
Remove some traces of this module's predecessor
Python
mit
samv/normalize,tomo-otsuka/normalize,hearsaycorp/normalize
python
## Code Before: from datetime import datetime import unittest from normalize import ( JsonCollectionProperty, JsonProperty, JsonRecord, Record, RecordList, ) class MockChildRecord(JsonRecord): name = JsonProperty() class MockDelegateJsonRecord(JsonRecord): other = JsonProperty() class MockJsonRecord(JsonRecord): name = JsonProperty() age = JsonProperty(isa=int) seen = JsonProperty( json_name='last_seen', isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), ) children = JsonCollectionProperty(of=MockChildRecord) class MockUnsanitizedJsonRecord(JsonRecord): count = JsonProperty(isa=int) last_updated = JsonProperty( isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), extraneous=False, ) class MockRecordList(RecordList): record_cls = MockUnsanitizedJsonRecord def all_diff_types_equal(record, diff_type): """ Returns True if the given Record's DiffType and Record's Properties' DiffTypes are the same as the specified DiffType. """ if record.diff_type != diff_type: return False for field_name, prop in record._fields.iteritems(): prop_diff_type = prop.get_diff_info(record).diff_type # Property doesn't have a DiffType if prop_diff_type is None: continue if prop_diff_type != diff_type: return False prop_value = getattr(record, field_name) if isinstance(prop_value, Record): if not all_diff_types_equal(prop_value, diff_type): return False #elif isinstance(prop_value, JsonCollectionProperty): #if not all(all_diff_types_equal(v, diff_type) # for v in prop_value): #return False return True class StructableTestCase(unittest.TestCase): def assertAllDiffTypesEqual(self, record, diff_type): self.assertTrue(all_diff_types_equal(record, diff_type)) ## Instruction: Remove some traces of this module's predecessor ## Code After: from datetime import datetime import unittest from normalize import ( JsonCollectionProperty, JsonProperty, JsonRecord, Record, RecordList, ) class MockChildRecord(JsonRecord): name = JsonProperty() class MockDelegateJsonRecord(JsonRecord): other = JsonProperty() class MockJsonRecord(JsonRecord): name = JsonProperty() age = JsonProperty(isa=int) seen = JsonProperty( json_name='last_seen', isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), ) children = JsonCollectionProperty(of=MockChildRecord) class MockExtraneousJsonRecord(JsonRecord): count = JsonProperty(isa=int) last_updated = JsonProperty( isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), extraneous=False, ) class MockRecordList(RecordList): itemtype = MockExtraneousJsonRecord
from datetime import datetime import unittest from normalize import ( JsonCollectionProperty, JsonProperty, JsonRecord, Record, RecordList, ) class MockChildRecord(JsonRecord): name = JsonProperty() class MockDelegateJsonRecord(JsonRecord): other = JsonProperty() class MockJsonRecord(JsonRecord): name = JsonProperty() age = JsonProperty(isa=int) seen = JsonProperty( json_name='last_seen', isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), ) children = JsonCollectionProperty(of=MockChildRecord) - class MockUnsanitizedJsonRecord(JsonRecord): ? ^^^ ---- ^ + class MockExtraneousJsonRecord(JsonRecord): ? ^^^^ ^^^ count = JsonProperty(isa=int) last_updated = JsonProperty( isa=datetime, coerce=lambda x: datetime.strptime(x, '%Y-%m-%dT%H:%M:%S'), extraneous=False, ) class MockRecordList(RecordList): + itemtype = MockExtraneousJsonRecord - record_cls = MockUnsanitizedJsonRecord - - - def all_diff_types_equal(record, diff_type): - """ - Returns True if the given Record's DiffType and Record's Properties' - DiffTypes are the same as the specified DiffType. - """ - if record.diff_type != diff_type: - return False - - for field_name, prop in record._fields.iteritems(): - prop_diff_type = prop.get_diff_info(record).diff_type - - # Property doesn't have a DiffType - if prop_diff_type is None: - continue - - if prop_diff_type != diff_type: - return False - prop_value = getattr(record, field_name) - if isinstance(prop_value, Record): - if not all_diff_types_equal(prop_value, diff_type): - return False - #elif isinstance(prop_value, JsonCollectionProperty): - #if not all(all_diff_types_equal(v, diff_type) - # for v in prop_value): - #return False - - return True - - - class StructableTestCase(unittest.TestCase): - def assertAllDiffTypesEqual(self, record, diff_type): - self.assertTrue(all_diff_types_equal(record, diff_type))
38
0.506667
2
36
9a3ba6e0c0ad08ffc1256a2718fc960c94b8f16a
src/Middleware/PipelineProcessor.php
src/Middleware/PipelineProcessor.php
<?php namespace Refinery29\Piston\Middleware; use Refinery29\Piston\Response; class PipelineProcessor { /** * @param Subject $subject * * @return Response */ public function processPipeline(Subject $subject) { $response = $subject->getSubject() ->buildPipeline() ->process($subject); return $response instanceof Response ? $response : $subject->getResponse(); } }
<?php namespace Refinery29\Piston\Middleware; use Refinery29\Piston\Response; abstract class PipelineProcessor { /** * @param Subject $subject * * @return Response */ public static function processPipeline(Subject $subject) { $response = $subject->getSubject() ->buildPipeline() ->process($subject); return $response instanceof Response ? $response : $subject->getResponse(); } }
Make class abstract, function static
Make class abstract, function static
PHP
mit
refinery29/piston,refinery29/piston
php
## Code Before: <?php namespace Refinery29\Piston\Middleware; use Refinery29\Piston\Response; class PipelineProcessor { /** * @param Subject $subject * * @return Response */ public function processPipeline(Subject $subject) { $response = $subject->getSubject() ->buildPipeline() ->process($subject); return $response instanceof Response ? $response : $subject->getResponse(); } } ## Instruction: Make class abstract, function static ## Code After: <?php namespace Refinery29\Piston\Middleware; use Refinery29\Piston\Response; abstract class PipelineProcessor { /** * @param Subject $subject * * @return Response */ public static function processPipeline(Subject $subject) { $response = $subject->getSubject() ->buildPipeline() ->process($subject); return $response instanceof Response ? $response : $subject->getResponse(); } }
<?php namespace Refinery29\Piston\Middleware; use Refinery29\Piston\Response; - class PipelineProcessor + abstract class PipelineProcessor ? +++++++++ { /** * @param Subject $subject * * @return Response */ - public function processPipeline(Subject $subject) + public static function processPipeline(Subject $subject) ? +++++++ { $response = $subject->getSubject() ->buildPipeline() ->process($subject); return $response instanceof Response ? $response : $subject->getResponse(); } }
4
0.181818
2
2
d17bd23a065b234b4921e42045b92eb2f97e8c12
public/js/controllers/app.js
public/js/controllers/app.js
angular.module('pager') .controller('HeaderCtrl', function($rootScope, $scope, $state, User) { // Update user name in header $rootScope.$on('facebook:login', function() { $scope.name = User.getName().split(' ')[0]; $scope.image = 'http://agencedianeriel.com/photo/Ostiguy-Jeanne-nouv09.jpg'; }); // Update navigation in header $scope.$on('$viewContentLoaded', function() { $scope.view = $state.current.title; }); });
angular.module('pager') .controller('HeaderCtrl', function($rootScope, $scope, $state, User) { function updateUser() { $scope.name = User.getName().split(' ')[0]; $scope.image = 'http://agencedianeriel.com/photo/Ostiguy-Jeanne-nouv09.jpg'; } // Update user name in header $rootScope.$on('facebook:login', function() { updateUser(); }); // Update navigation in header $scope.$on('$viewContentLoaded', function() { $scope.view = $state.current.title; }); // By default, update user updateUser(); });
Load user info for header by default
Load user info for header by default
JavaScript
mit
antonshevchenko/pager,pungme/pager,pungme/pager,antonshevchenko/pager
javascript
## Code Before: angular.module('pager') .controller('HeaderCtrl', function($rootScope, $scope, $state, User) { // Update user name in header $rootScope.$on('facebook:login', function() { $scope.name = User.getName().split(' ')[0]; $scope.image = 'http://agencedianeriel.com/photo/Ostiguy-Jeanne-nouv09.jpg'; }); // Update navigation in header $scope.$on('$viewContentLoaded', function() { $scope.view = $state.current.title; }); }); ## Instruction: Load user info for header by default ## Code After: angular.module('pager') .controller('HeaderCtrl', function($rootScope, $scope, $state, User) { function updateUser() { $scope.name = User.getName().split(' ')[0]; $scope.image = 'http://agencedianeriel.com/photo/Ostiguy-Jeanne-nouv09.jpg'; } // Update user name in header $rootScope.$on('facebook:login', function() { updateUser(); }); // Update navigation in header $scope.$on('$viewContentLoaded', function() { $scope.view = $state.current.title; }); // By default, update user updateUser(); });
angular.module('pager') .controller('HeaderCtrl', function($rootScope, $scope, $state, User) { + function updateUser() { + $scope.name = User.getName().split(' ')[0]; + $scope.image = 'http://agencedianeriel.com/photo/Ostiguy-Jeanne-nouv09.jpg'; + } + // Update user name in header $rootScope.$on('facebook:login', function() { + updateUser(); - $scope.name = User.getName().split(' ')[0]; - $scope.image = 'http://agencedianeriel.com/photo/Ostiguy-Jeanne-nouv09.jpg'; }); // Update navigation in header $scope.$on('$viewContentLoaded', function() { $scope.view = $state.current.title; }); + + // By default, update user + updateUser(); });
11
0.785714
9
2
4de94cba28a9acea0117f9166d6e6c0b858d9b07
app/uploaders/esr_file_uploader.rb
app/uploaders/esr_file_uploader.rb
class EsrFileUploader < CarrierWave::Uploader::Base # Choose what kind of storage to use for this uploader: storage :file # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "system/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end
class EsrFileUploader < CarrierWave::Uploader::Base # Choose what kind of storage to use for this uploader: storage :file # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir root.join(model.class.to_s.underscore, mounted_as.to_s, model.id.to_s) end end
Use configured root instead of hardcoded "system/uploads" for esr file uploader.
Use configured root instead of hardcoded "system/uploads" for esr file uploader.
Ruby
mit
raskhadafi/vesr,raskhadafi/vesr
ruby
## Code Before: class EsrFileUploader < CarrierWave::Uploader::Base # Choose what kind of storage to use for this uploader: storage :file # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "system/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end ## Instruction: Use configured root instead of hardcoded "system/uploads" for esr file uploader. ## Code After: class EsrFileUploader < CarrierWave::Uploader::Base # Choose what kind of storage to use for this uploader: storage :file # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir root.join(model.class.to_s.underscore, mounted_as.to_s, model.id.to_s) end end
class EsrFileUploader < CarrierWave::Uploader::Base # Choose what kind of storage to use for this uploader: storage :file # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir - "system/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" + root.join(model.class.to_s.underscore, mounted_as.to_s, model.id.to_s) end end
2
0.181818
1
1
2224408047eb24769cda64ccb2fb6a71776fbfa5
app/policies/renalware/hd/closed_session_policy.rb
app/policies/renalware/hd/closed_session_policy.rb
module Renalware module HD class ClosedSessionPolicy < BasePolicy def destroy? edit? end def edit? return false unless record.persisted? user_is_super_admin? || !record.immutable? end end end end
module Renalware module HD class ClosedSessionPolicy < BasePolicy def destroy? edit? end def edit? return false unless record.persisted? user_is_admin? || user_is_super_admin? || !record.immutable? end end end end
Allow an admin to delete an HD Session
Allow an admin to delete an HD Session
Ruby
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
ruby
## Code Before: module Renalware module HD class ClosedSessionPolicy < BasePolicy def destroy? edit? end def edit? return false unless record.persisted? user_is_super_admin? || !record.immutable? end end end end ## Instruction: Allow an admin to delete an HD Session ## Code After: module Renalware module HD class ClosedSessionPolicy < BasePolicy def destroy? edit? end def edit? return false unless record.persisted? user_is_admin? || user_is_super_admin? || !record.immutable? end end end end
module Renalware module HD class ClosedSessionPolicy < BasePolicy def destroy? edit? end def edit? return false unless record.persisted? - user_is_super_admin? || !record.immutable? + user_is_admin? || user_is_super_admin? || !record.immutable? ? ++++++++++++++++++ end end end end
2
0.125
1
1
75083787c06a95d1b8c234d43d762442e9010e1f
.travis.yml
.travis.yml
sudo: false language: erlang otp_release: - 19.1 - 18.3 - 17.5 - R16B03-1 before_script: - wget https://s3-us-west-2.amazonaws.com/rebar3-canary/canary/rebar3 - chmod u+x rebar3 script: "make travis"
sudo: false language: erlang otp_release: - 19.1 - 18.3 - 17.5 - R16B03-1 before_script: - wget https://s3.amazonaws.com/rebar3-nightly/rebar3 - chmod u+x rebar3 script: "make travis"
Use rebar3 nightly when running tests
Use rebar3 nightly when running tests
YAML
apache-2.0
lrascao/rebar3_appup_plugin
yaml
## Code Before: sudo: false language: erlang otp_release: - 19.1 - 18.3 - 17.5 - R16B03-1 before_script: - wget https://s3-us-west-2.amazonaws.com/rebar3-canary/canary/rebar3 - chmod u+x rebar3 script: "make travis" ## Instruction: Use rebar3 nightly when running tests ## Code After: sudo: false language: erlang otp_release: - 19.1 - 18.3 - 17.5 - R16B03-1 before_script: - wget https://s3.amazonaws.com/rebar3-nightly/rebar3 - chmod u+x rebar3 script: "make travis"
sudo: false language: erlang otp_release: - 19.1 - 18.3 - 17.5 - R16B03-1 before_script: - - wget https://s3-us-west-2.amazonaws.com/rebar3-canary/canary/rebar3 ? ---------- -- ^^^^^^^^^ + - wget https://s3.amazonaws.com/rebar3-nightly/rebar3 ? ^^^^^ - chmod u+x rebar3 script: "make travis"
2
0.181818
1
1
26b70a03ddd967e974f782594871026f718d1dc0
assets/sass/components/_widgets.scss
assets/sass/components/_widgets.scss
.widget_calendar { thead, tbody { th, td { padding: 3px; text-align: center; } } } .content-info { .widget { ul { list-style: none; padding: 0; } } }
.widget_calendar { thead, tbody { th, td { padding: 3px; text-align: center; } } } .widget_fik_social_widget { .fik-share-item { padding: 0 7px; } } // footer widgets .content-info { .widget { ul { list-style: none; padding: 0; } } }
Fix padding in widget fik_share
Fix padding in widget fik_share
SCSS
mit
fikinitiative/fodd,fikinitiative/fodd
scss
## Code Before: .widget_calendar { thead, tbody { th, td { padding: 3px; text-align: center; } } } .content-info { .widget { ul { list-style: none; padding: 0; } } } ## Instruction: Fix padding in widget fik_share ## Code After: .widget_calendar { thead, tbody { th, td { padding: 3px; text-align: center; } } } .widget_fik_social_widget { .fik-share-item { padding: 0 7px; } } // footer widgets .content-info { .widget { ul { list-style: none; padding: 0; } } }
.widget_calendar { thead, tbody { th, td { padding: 3px; text-align: center; } } } + .widget_fik_social_widget + { + .fik-share-item + { + padding: 0 7px; + } + } + + // footer widgets .content-info { .widget { ul { list-style: none; padding: 0; } } }
9
0.36
9
0
2474764f605060d0bea2874cb6448dc52d311114
src/index.ts
src/index.ts
import {Store, StoreOptions} from './store'; import { AdapterInitializer } from "./adapter"; export * from './store'; export * from "./adapter"; export * from "./bucket"; export async function store(name: string, settings?: StoreOptions): Promise<Store>; export async function store(settings: StoreOptions): Promise<Store>; export async function store(initializer: AdapterInitializer): Promise<Store>; export async function store(name: string | StoreOptions | AdapterInitializer, settings?: StoreOptions): Promise<Store> { const store = new Store(name, settings); await store.ready(); return store; }
import { Store, StoreOptions } from "./store"; import { AdapterInitializer } from "./adapter"; export * from "./store"; export * from "./adapter"; export * from "./bucket"; export function store(name: string, settings?: StoreOptions): Store; export function store(settings: StoreOptions): Store; export function store(initializer: AdapterInitializer): Store; export function store(name: string | StoreOptions | AdapterInitializer, settings?: StoreOptions): Store { return new Store(name, settings); }
Fix store function to return Store instance directly
Fix store function to return Store instance directly
TypeScript
mit
taoyuan/kvs,taoyuan/kvs
typescript
## Code Before: import {Store, StoreOptions} from './store'; import { AdapterInitializer } from "./adapter"; export * from './store'; export * from "./adapter"; export * from "./bucket"; export async function store(name: string, settings?: StoreOptions): Promise<Store>; export async function store(settings: StoreOptions): Promise<Store>; export async function store(initializer: AdapterInitializer): Promise<Store>; export async function store(name: string | StoreOptions | AdapterInitializer, settings?: StoreOptions): Promise<Store> { const store = new Store(name, settings); await store.ready(); return store; } ## Instruction: Fix store function to return Store instance directly ## Code After: import { Store, StoreOptions } from "./store"; import { AdapterInitializer } from "./adapter"; export * from "./store"; export * from "./adapter"; export * from "./bucket"; export function store(name: string, settings?: StoreOptions): Store; export function store(settings: StoreOptions): Store; export function store(initializer: AdapterInitializer): Store; export function store(name: string | StoreOptions | AdapterInitializer, settings?: StoreOptions): Store { return new Store(name, settings); }
- import {Store, StoreOptions} from './store'; ? ^ ^ + import { Store, StoreOptions } from "./store"; ? + + ^ ^ import { AdapterInitializer } from "./adapter"; - export * from './store'; ? ^ ^ + export * from "./store"; ? ^ ^ export * from "./adapter"; export * from "./bucket"; - export async function store(name: string, settings?: StoreOptions): Promise<Store>; ? ------ -------- - + export function store(name: string, settings?: StoreOptions): Store; - export async function store(settings: StoreOptions): Promise<Store>; ? ------ -------- - + export function store(settings: StoreOptions): Store; - export async function store(initializer: AdapterInitializer): Promise<Store>; ? ------ -------- - + export function store(initializer: AdapterInitializer): Store; - export async function store(name: string | StoreOptions | AdapterInitializer, settings?: StoreOptions): Promise<Store> { ? ------ -------- - + export function store(name: string | StoreOptions | AdapterInitializer, settings?: StoreOptions): Store { - const store = new Store(name, settings); ? --------- ^^ + return new Store(name, settings); ? ^^^^ - await store.ready(); - return store; }
16
1.066667
7
9
c2a49f886c6977c2cc6a665538ef59869dbb9300
Win32/README-precompiled-dll.txt
Win32/README-precompiled-dll.txt
Notes on Using the Pre-compiled libsndfile DLL. =============================================== In order to use this pre-compiled DLL with Visual Studio, you will need to generate a .LIB file from the DLL. This can be achieved as follows: 1) In a CMD window, change to the directory containing this file and run the command: lib /machine:i386 /def:libsndfile-1.def You now have two files: libsndfile-1.dll libsndfile-1.lib to be used with VisualStudio. If for some reason these instructions don't work for you or you are still not able to use the libsndfile DLL with you project, please do not contact the main author of libsndfile. Instead, join the libsndfile-users mailing list : http://www.mega-nerd.com/libsndfile/lists.html and ask a question there.
Notes on Using the Pre-compiled libsndfile DLL. =============================================== In order to use this pre-compiled DLL with Visual Studio, you will need to generate a .LIB file from the DLL. This can be achieved as follows: 1) In a CMD window, change to the directory containing this file and run the command: lib /machine:i386 /def:libsndfile-1.def You now have two files: libsndfile-1.dll libsndfile-1.lib to be used with VisualStudio. If the lib command fails with a command saying "'lib' is not recognized as an internal or external command, operable program or batch file", you need to find the location of "lib.exe" and add that directory to your PATH environment variable. If for some reason these instructions don't work for you or you are still not able to use the libsndfile DLL with you project, please do not contact the main author of libsndfile. Instead, join the libsndfile-users mailing list : http://www.mega-nerd.com/libsndfile/lists.html and ask a question there.
Update instructions for using precompiled DLL.
Update instructions for using precompiled DLL.
Text
lgpl-2.1
syb0rg/libsndfile,RonNovy/libsndfile,libsndfile/libsndfile,erikd/libsndfile,libsndfile/libsndfile,syb0rg/libsndfile,greearb/libsndfile-ct,Distrotech/libsndfile,RonNovy/libsndfile,Distrotech/libsndfile,greearb/libsndfile-ct,RonNovy/libsndfile,audiokit/libsndfile,erikd/libsndfile,evpobr/libsndfile,evpobr/libsndfile,evpobr/libsndfile,evpobr/libsndfile,libsndfile/libsndfile,Distrotech/libsndfile,RonNovy/libsndfile,greearb/libsndfile-ct,greearb/libsndfile-ct,greearb/libsndfile-ct,audiokit/libsndfile,audiokit/libsndfile,erikd/libsndfile,Distrotech/libsndfile,Distrotech/libsndfile,libsndfile/libsndfile,Icenowy/libsndfile,libsndfile/libsndfile,audiokit/libsndfile,Icenowy/libsndfile,erikd/libsndfile,syb0rg/libsndfile,erikd/libsndfile,Icenowy/libsndfile,syb0rg/libsndfile,Icenowy/libsndfile,Icenowy/libsndfile,evpobr/libsndfile
text
## Code Before: Notes on Using the Pre-compiled libsndfile DLL. =============================================== In order to use this pre-compiled DLL with Visual Studio, you will need to generate a .LIB file from the DLL. This can be achieved as follows: 1) In a CMD window, change to the directory containing this file and run the command: lib /machine:i386 /def:libsndfile-1.def You now have two files: libsndfile-1.dll libsndfile-1.lib to be used with VisualStudio. If for some reason these instructions don't work for you or you are still not able to use the libsndfile DLL with you project, please do not contact the main author of libsndfile. Instead, join the libsndfile-users mailing list : http://www.mega-nerd.com/libsndfile/lists.html and ask a question there. ## Instruction: Update instructions for using precompiled DLL. ## Code After: Notes on Using the Pre-compiled libsndfile DLL. =============================================== In order to use this pre-compiled DLL with Visual Studio, you will need to generate a .LIB file from the DLL. This can be achieved as follows: 1) In a CMD window, change to the directory containing this file and run the command: lib /machine:i386 /def:libsndfile-1.def You now have two files: libsndfile-1.dll libsndfile-1.lib to be used with VisualStudio. If the lib command fails with a command saying "'lib' is not recognized as an internal or external command, operable program or batch file", you need to find the location of "lib.exe" and add that directory to your PATH environment variable. If for some reason these instructions don't work for you or you are still not able to use the libsndfile DLL with you project, please do not contact the main author of libsndfile. Instead, join the libsndfile-users mailing list : http://www.mega-nerd.com/libsndfile/lists.html and ask a question there.
Notes on Using the Pre-compiled libsndfile DLL. =============================================== In order to use this pre-compiled DLL with Visual Studio, you will need to generate a .LIB file from the DLL. This can be achieved as follows: 1) In a CMD window, change to the directory containing this file and run the command: lib /machine:i386 /def:libsndfile-1.def You now have two files: libsndfile-1.dll libsndfile-1.lib to be used with VisualStudio. + If the lib command fails with a command saying "'lib' is not recognized as + an internal or external command, operable program or batch file", you need + to find the location of "lib.exe" and add that directory to your PATH + environment variable. + If for some reason these instructions don't work for you or you are still not able to use the libsndfile DLL with you project, please do not contact the main author of libsndfile. Instead, join the libsndfile-users mailing list : http://www.mega-nerd.com/libsndfile/lists.html and ask a question there.
5
0.178571
5
0
388467cccbf8fefacd168632c5eab294dde7d1f6
lib/rubycouch.rb
lib/rubycouch.rb
require 'net/http' require 'net/https' require 'uri' require 'json' require 'rubycouch/client' require 'rubycouch/definitions' require 'rubycouch/document' require 'rubycouch/database' require 'rubycouch/instance' class RubyCouch def self.demo client = RubyClient.new(URI.parse('http://localhost:5984')) client.make_request(InstanceInfo.new) end end
require 'net/http' require 'net/https' require 'uri' require 'json' require 'rubycouch/client' require 'rubycouch/definitions' require 'rubycouch/document' require 'rubycouch/view' require 'rubycouch/database' require 'rubycouch/instance' class RubyCouch def self.demo client = CouchClient.new(URI.parse('http://localhost:5984')) print "====== InstanceInfo ======\n" print client.make_request(InstanceInfo.new) print "\n\n====== AllDbs ======\n" print client.make_request(AllDbs.new) database = client.database('animaldb') print "\n\n====== animaldb -- DatabaseInfo ======\n" print database.make_request(DatabaseInfo.new) print "\n\n====== animaldb -- AllDocs ======\n" print database.make_request(AllDocs.new) print "\n\n====== animaldb -- GetDocument(elephant) ======\n" print database.make_request(GetDocument.new('elephant')) print "\n\n====== animaldb -- GetView(view101) ======\n" print database.make_request(GetView.new('views101', 'latin_name')) print "\n\n====== animaldb -- GetView Reduced(view101) ======\n" get_view = GetView.new('views101', 'latin_name_count') get_view.merge_query_items({:reduce => true}) print database.make_request(get_view) print "\n\ndone.\n" end end
Update the demo listing to show more functionality
Update the demo listing to show more functionality
Ruby
apache-2.0
mikerhodes/ruby-couch
ruby
## Code Before: require 'net/http' require 'net/https' require 'uri' require 'json' require 'rubycouch/client' require 'rubycouch/definitions' require 'rubycouch/document' require 'rubycouch/database' require 'rubycouch/instance' class RubyCouch def self.demo client = RubyClient.new(URI.parse('http://localhost:5984')) client.make_request(InstanceInfo.new) end end ## Instruction: Update the demo listing to show more functionality ## Code After: require 'net/http' require 'net/https' require 'uri' require 'json' require 'rubycouch/client' require 'rubycouch/definitions' require 'rubycouch/document' require 'rubycouch/view' require 'rubycouch/database' require 'rubycouch/instance' class RubyCouch def self.demo client = CouchClient.new(URI.parse('http://localhost:5984')) print "====== InstanceInfo ======\n" print client.make_request(InstanceInfo.new) print "\n\n====== AllDbs ======\n" print client.make_request(AllDbs.new) database = client.database('animaldb') print "\n\n====== animaldb -- DatabaseInfo ======\n" print database.make_request(DatabaseInfo.new) print "\n\n====== animaldb -- AllDocs ======\n" print database.make_request(AllDocs.new) print "\n\n====== animaldb -- GetDocument(elephant) ======\n" print database.make_request(GetDocument.new('elephant')) print "\n\n====== animaldb -- GetView(view101) ======\n" print database.make_request(GetView.new('views101', 'latin_name')) print "\n\n====== animaldb -- GetView Reduced(view101) ======\n" get_view = GetView.new('views101', 'latin_name_count') get_view.merge_query_items({:reduce => true}) print database.make_request(get_view) print "\n\ndone.\n" end end
require 'net/http' require 'net/https' require 'uri' require 'json' require 'rubycouch/client' require 'rubycouch/definitions' require 'rubycouch/document' + require 'rubycouch/view' require 'rubycouch/database' require 'rubycouch/instance' class RubyCouch def self.demo - client = RubyClient.new(URI.parse('http://localhost:5984')) ? ^ ^^ + client = CouchClient.new(URI.parse('http://localhost:5984')) ? ^^ ^^ + + print "====== InstanceInfo ======\n" - client.make_request(InstanceInfo.new) + print client.make_request(InstanceInfo.new) ? ++++++ + + print "\n\n====== AllDbs ======\n" + print client.make_request(AllDbs.new) + + database = client.database('animaldb') + + print "\n\n====== animaldb -- DatabaseInfo ======\n" + print database.make_request(DatabaseInfo.new) + + print "\n\n====== animaldb -- AllDocs ======\n" + print database.make_request(AllDocs.new) + + print "\n\n====== animaldb -- GetDocument(elephant) ======\n" + print database.make_request(GetDocument.new('elephant')) + + print "\n\n====== animaldb -- GetView(view101) ======\n" + print database.make_request(GetView.new('views101', 'latin_name')) + + print "\n\n====== animaldb -- GetView Reduced(view101) ======\n" + get_view = GetView.new('views101', 'latin_name_count') + get_view.merge_query_items({:reduce => true}) + print database.make_request(get_view) + + print "\n\ndone.\n" end end
31
1.631579
29
2
acc3d39ecaf9b94da34a99bcca3334c98d003ff4
src/Oro/Bundle/ChartBundle/Model/ChartView.php
src/Oro/Bundle/ChartBundle/Model/ChartView.php
<?php namespace Oro\Bundle\ChartBundle\Model; use Oro\Bundle\ChartBundle\Model\Data\DataInterface; class ChartView { /** * @var \Twig_Environment */ protected $twig; /** * Chart template * * @var string */ protected $template; /** * Chart view variables * * @var array */ protected $vars; /** * @param \Twig_Environment $twig * @param DataInterface $data * @param string $template * @param array $vars Chart view vars */ public function __construct(\Twig_Environment $twig, $template, DataInterface $data, array $vars) { $this->twig = $twig; $this->template = $template; $this->data = $data; $this->vars = $vars; } /** * Render chart * * @return string */ public function render() { $context = $this->vars; $context['data'] = $this->data->toArray(); return $this->twig->render($this->template, $context); } }
<?php namespace Oro\Bundle\ChartBundle\Model; use Oro\Bundle\ChartBundle\Model\Data\DataInterface; class ChartView { /** * @var \Twig_Environment */ protected $twig; /** * Chart template * * @var string */ protected $template; /** * Chart view data * * @var DataInterface */ protected $data; /** * Chart view variables * * @var array */ protected $vars; /** * @param \Twig_Environment $twig * @param DataInterface $data * @param string $template * @param array $vars Chart view vars */ public function __construct(\Twig_Environment $twig, $template, DataInterface $data, array $vars) { $this->twig = $twig; $this->template = $template; $this->data = $data; $this->vars = $vars; } /** * Render chart * * @return string */ public function render() { $context = $this->vars; $context['data'] = $this->data->toArray(); return $this->twig->render($this->template, $context); } }
Create chart view layer - CR changes
BAP-3243: Create chart view layer - CR changes
PHP
mit
Djamy/platform,ramunasd/platform,trustify/oroplatform,ramunasd/platform,hugeval/platform,2ndkauboy/platform,2ndkauboy/platform,trustify/oroplatform,Djamy/platform,morontt/platform,trustify/oroplatform,geoffroycochard/platform,morontt/platform,2ndkauboy/platform,mszajner/platform,orocrm/platform,mszajner/platform,mszajner/platform,orocrm/platform,geoffroycochard/platform,geoffroycochard/platform,hugeval/platform,northdakota/platform,morontt/platform,northdakota/platform,hugeval/platform,ramunasd/platform,orocrm/platform,northdakota/platform,Djamy/platform
php
## Code Before: <?php namespace Oro\Bundle\ChartBundle\Model; use Oro\Bundle\ChartBundle\Model\Data\DataInterface; class ChartView { /** * @var \Twig_Environment */ protected $twig; /** * Chart template * * @var string */ protected $template; /** * Chart view variables * * @var array */ protected $vars; /** * @param \Twig_Environment $twig * @param DataInterface $data * @param string $template * @param array $vars Chart view vars */ public function __construct(\Twig_Environment $twig, $template, DataInterface $data, array $vars) { $this->twig = $twig; $this->template = $template; $this->data = $data; $this->vars = $vars; } /** * Render chart * * @return string */ public function render() { $context = $this->vars; $context['data'] = $this->data->toArray(); return $this->twig->render($this->template, $context); } } ## Instruction: BAP-3243: Create chart view layer - CR changes ## Code After: <?php namespace Oro\Bundle\ChartBundle\Model; use Oro\Bundle\ChartBundle\Model\Data\DataInterface; class ChartView { /** * @var \Twig_Environment */ protected $twig; /** * Chart template * * @var string */ protected $template; /** * Chart view data * * @var DataInterface */ protected $data; /** * Chart view variables * * @var array */ protected $vars; /** * @param \Twig_Environment $twig * @param DataInterface $data * @param string $template * @param array $vars Chart view vars */ public function __construct(\Twig_Environment $twig, $template, DataInterface $data, array $vars) { $this->twig = $twig; $this->template = $template; $this->data = $data; $this->vars = $vars; } /** * Render chart * * @return string */ public function render() { $context = $this->vars; $context['data'] = $this->data->toArray(); return $this->twig->render($this->template, $context); } }
<?php namespace Oro\Bundle\ChartBundle\Model; use Oro\Bundle\ChartBundle\Model\Data\DataInterface; class ChartView { /** * @var \Twig_Environment */ protected $twig; /** * Chart template * * @var string */ protected $template; + + /** + * Chart view data + * + * @var DataInterface + */ + protected $data; /** * Chart view variables * * @var array */ protected $vars; /** * @param \Twig_Environment $twig * @param DataInterface $data * @param string $template * @param array $vars Chart view vars */ public function __construct(\Twig_Environment $twig, $template, DataInterface $data, array $vars) { $this->twig = $twig; $this->template = $template; $this->data = $data; $this->vars = $vars; } /** * Render chart * * @return string */ public function render() { $context = $this->vars; $context['data'] = $this->data->toArray(); return $this->twig->render($this->template, $context); } }
7
0.12963
7
0
0ba54bd21ddf609fd924780281ac7e9660b35a11
src/Storage/Schema/Table/AccountMeta.php
src/Storage/Schema/Table/AccountMeta.php
<?php namespace Bolt\Extension\Bolt\Members\Storage\Schema\Table; use Bolt\Storage\Database\Schema\Table\BaseTable; /** * Account meta table. * * @author Gawain Lynch <gawain.lynch@gmail.com> */ class AccountMeta extends BaseTable { /** * @inheritDoc */ protected function addColumns() { $this->table->addColumn('id', 'integer', ['autoincrement' => true]); $this->table->addColumn('guid', 'guid', []); $this->table->addColumn('meta', 'string', ['length' => 64]); $this->table->addColumn('value', 'text'); } /** * @inheritDoc */ protected function addIndexes() { $this->table->addIndex(['guid']); $this->table->addIndex(['meta']); $this->table->addUniqueIndex(['guid', 'meta']); // Temporary until done upstream $this->addForeignKeyConstraint(); } /** * @inheritDoc */ protected function setPrimaryKey() { $this->table->setPrimaryKey(['id']); } /** * @inheritDoc */ protected function addForeignKeyConstraint() { $this->table->addForeignKeyConstraint('bolt_members_account', ['guid'], ['guid'], [], 'guid'); } }
<?php namespace Bolt\Extension\Bolt\Members\Storage\Schema\Table; use Bolt\Storage\Database\Schema\Table\BaseTable; /** * Account meta table. * * @author Gawain Lynch <gawain.lynch@gmail.com> */ class AccountMeta extends BaseTable { /** * @inheritDoc */ protected function addColumns() { $this->table->addColumn('id', 'integer', ['autoincrement' => true]); $this->table->addColumn('guid', 'guid', []); $this->table->addColumn('meta', 'string', ['length' => 64]); $this->table->addColumn('value', 'text', ['notnull' => false, 'default' => null]); } /** * @inheritDoc */ protected function addIndexes() { $this->table->addIndex(['guid']); $this->table->addIndex(['meta']); $this->table->addUniqueIndex(['guid', 'meta']); // Temporary until done upstream $this->addForeignKeyConstraint(); } /** * @inheritDoc */ protected function setPrimaryKey() { $this->table->setPrimaryKey(['id']); } /** * @inheritDoc */ protected function addForeignKeyConstraint() { $this->table->addForeignKeyConstraint('bolt_members_account', ['guid'], ['guid'], [], 'guid'); } }
Allow meta value to be NULL
Allow meta value to be NULL
PHP
mit
jadwigo/Auth,jadwigo/Auth,BoltAuth/Auth,jadwigo/Auth,BoltAuth/Auth,BoltAuth/Auth
php
## Code Before: <?php namespace Bolt\Extension\Bolt\Members\Storage\Schema\Table; use Bolt\Storage\Database\Schema\Table\BaseTable; /** * Account meta table. * * @author Gawain Lynch <gawain.lynch@gmail.com> */ class AccountMeta extends BaseTable { /** * @inheritDoc */ protected function addColumns() { $this->table->addColumn('id', 'integer', ['autoincrement' => true]); $this->table->addColumn('guid', 'guid', []); $this->table->addColumn('meta', 'string', ['length' => 64]); $this->table->addColumn('value', 'text'); } /** * @inheritDoc */ protected function addIndexes() { $this->table->addIndex(['guid']); $this->table->addIndex(['meta']); $this->table->addUniqueIndex(['guid', 'meta']); // Temporary until done upstream $this->addForeignKeyConstraint(); } /** * @inheritDoc */ protected function setPrimaryKey() { $this->table->setPrimaryKey(['id']); } /** * @inheritDoc */ protected function addForeignKeyConstraint() { $this->table->addForeignKeyConstraint('bolt_members_account', ['guid'], ['guid'], [], 'guid'); } } ## Instruction: Allow meta value to be NULL ## Code After: <?php namespace Bolt\Extension\Bolt\Members\Storage\Schema\Table; use Bolt\Storage\Database\Schema\Table\BaseTable; /** * Account meta table. * * @author Gawain Lynch <gawain.lynch@gmail.com> */ class AccountMeta extends BaseTable { /** * @inheritDoc */ protected function addColumns() { $this->table->addColumn('id', 'integer', ['autoincrement' => true]); $this->table->addColumn('guid', 'guid', []); $this->table->addColumn('meta', 'string', ['length' => 64]); $this->table->addColumn('value', 'text', ['notnull' => false, 'default' => null]); } /** * @inheritDoc */ protected function addIndexes() { $this->table->addIndex(['guid']); $this->table->addIndex(['meta']); $this->table->addUniqueIndex(['guid', 'meta']); // Temporary until done upstream $this->addForeignKeyConstraint(); } /** * @inheritDoc */ protected function setPrimaryKey() { $this->table->setPrimaryKey(['id']); } /** * @inheritDoc */ protected function addForeignKeyConstraint() { $this->table->addForeignKeyConstraint('bolt_members_account', ['guid'], ['guid'], [], 'guid'); } }
<?php namespace Bolt\Extension\Bolt\Members\Storage\Schema\Table; use Bolt\Storage\Database\Schema\Table\BaseTable; /** * Account meta table. * * @author Gawain Lynch <gawain.lynch@gmail.com> */ class AccountMeta extends BaseTable { /** * @inheritDoc */ protected function addColumns() { $this->table->addColumn('id', 'integer', ['autoincrement' => true]); $this->table->addColumn('guid', 'guid', []); $this->table->addColumn('meta', 'string', ['length' => 64]); - $this->table->addColumn('value', 'text'); + $this->table->addColumn('value', 'text', ['notnull' => false, 'default' => null]); } /** * @inheritDoc */ protected function addIndexes() { $this->table->addIndex(['guid']); $this->table->addIndex(['meta']); $this->table->addUniqueIndex(['guid', 'meta']); // Temporary until done upstream $this->addForeignKeyConstraint(); } /** * @inheritDoc */ protected function setPrimaryKey() { $this->table->setPrimaryKey(['id']); } /** * @inheritDoc */ protected function addForeignKeyConstraint() { $this->table->addForeignKeyConstraint('bolt_members_account', ['guid'], ['guid'], [], 'guid'); } }
2
0.037037
1
1
668a9460376e82277b946961a45dca5eb38c4240
README.md
README.md
KEthereum ========= This is a Kotlin library for [Ethereum](https://ethereum.org). Currently it is not a full featured Ethereum implementation - but a library to share common Ethereum code between different apps to prevent WET code and make things more DRY. Mainly in the context of the [WALLETH Project](http://walleth.org). Later I could imagine that this extends to a full implementation of Ethereum in Kotlin. But as this would be a huge endeavour and I want to continue with my projects don't expect this in the near future - but I accept PRs ;-) Links ===== * [Ethereum](https://ethereum.org/) * [White paper](https://github.com/ethereum/wiki/wiki/White-Paper) * [Yellow paper](https://github.com/ethereum/yellowpaper) * [WALLETH](http://walleth.org) * [Why a Kotlin library and not use web3j](https://github.com/web3j/web3j/issues/124#issuecomment-313088274) Get it ====== KEthereum is available via jitpack: [![](https://jitpack.io/v/walleth/kethereum.svg)](https://jitpack.io/#walleth/kethereum) License ======= MIT
KEthereum ========= This is a Kotlin library for [Ethereum](https://ethereum.org). Currently it is not a full featured Ethereum implementation - but a library to share common Ethereum code between different apps to prevent WET code and make things more DRY. Mainly in the context of the [WALLETH Project](http://walleth.org). Later I could imagine that this extends to a full implementation of Ethereum in Kotlin. But as this would be a huge endeavour and I want to continue with my projects don't expect this in the near future - but I accept PRs ;-) Projects that use kethereum =========================== * [WALLETH](http://walleth.org) * [walleth-push](http://github.com/walleth/walleth-push) * [issuETH](https://github.com/issuETH/issuETH) * [heimdall-android](https://github.com/gnosis/heimdall-android) * Please let me know if you know more Links ===== * [Ethereum](https://ethereum.org/) * [White paper](https://github.com/ethereum/wiki/wiki/White-Paper) * [Yellow paper](https://github.com/ethereum/yellowpaper) * [WALLETH](http://walleth.org) * [Why a Kotlin library and not use web3j](https://github.com/web3j/web3j/issues/124#issuecomment-313088274) Get it ====== KEthereum is available via jitpack: [![](https://jitpack.io/v/walleth/kethereum.svg)](https://jitpack.io/#walleth/kethereum) License ======= MIT
Add info where kethereum is used
Add info where kethereum is used
Markdown
mit
walleth/kethereum
markdown
## Code Before: KEthereum ========= This is a Kotlin library for [Ethereum](https://ethereum.org). Currently it is not a full featured Ethereum implementation - but a library to share common Ethereum code between different apps to prevent WET code and make things more DRY. Mainly in the context of the [WALLETH Project](http://walleth.org). Later I could imagine that this extends to a full implementation of Ethereum in Kotlin. But as this would be a huge endeavour and I want to continue with my projects don't expect this in the near future - but I accept PRs ;-) Links ===== * [Ethereum](https://ethereum.org/) * [White paper](https://github.com/ethereum/wiki/wiki/White-Paper) * [Yellow paper](https://github.com/ethereum/yellowpaper) * [WALLETH](http://walleth.org) * [Why a Kotlin library and not use web3j](https://github.com/web3j/web3j/issues/124#issuecomment-313088274) Get it ====== KEthereum is available via jitpack: [![](https://jitpack.io/v/walleth/kethereum.svg)](https://jitpack.io/#walleth/kethereum) License ======= MIT ## Instruction: Add info where kethereum is used ## Code After: KEthereum ========= This is a Kotlin library for [Ethereum](https://ethereum.org). Currently it is not a full featured Ethereum implementation - but a library to share common Ethereum code between different apps to prevent WET code and make things more DRY. Mainly in the context of the [WALLETH Project](http://walleth.org). Later I could imagine that this extends to a full implementation of Ethereum in Kotlin. But as this would be a huge endeavour and I want to continue with my projects don't expect this in the near future - but I accept PRs ;-) Projects that use kethereum =========================== * [WALLETH](http://walleth.org) * [walleth-push](http://github.com/walleth/walleth-push) * [issuETH](https://github.com/issuETH/issuETH) * [heimdall-android](https://github.com/gnosis/heimdall-android) * Please let me know if you know more Links ===== * [Ethereum](https://ethereum.org/) * [White paper](https://github.com/ethereum/wiki/wiki/White-Paper) * [Yellow paper](https://github.com/ethereum/yellowpaper) * [WALLETH](http://walleth.org) * [Why a Kotlin library and not use web3j](https://github.com/web3j/web3j/issues/124#issuecomment-313088274) Get it ====== KEthereum is available via jitpack: [![](https://jitpack.io/v/walleth/kethereum.svg)](https://jitpack.io/#walleth/kethereum) License ======= MIT
KEthereum ========= This is a Kotlin library for [Ethereum](https://ethereum.org). Currently it is not a full featured Ethereum implementation - but a library to share common Ethereum code between different apps to prevent WET code and make things more DRY. Mainly in the context of the [WALLETH Project](http://walleth.org). Later I could imagine that this extends to a full implementation of Ethereum in Kotlin. But as this would be a huge endeavour and I want to continue with my projects don't expect this in the near future - but I accept PRs ;-) + + Projects that use kethereum + =========================== + + + * [WALLETH](http://walleth.org) + * [walleth-push](http://github.com/walleth/walleth-push) + * [issuETH](https://github.com/issuETH/issuETH) + * [heimdall-android](https://github.com/gnosis/heimdall-android) + * Please let me know if you know more Links ===== * [Ethereum](https://ethereum.org/) * [White paper](https://github.com/ethereum/wiki/wiki/White-Paper) * [Yellow paper](https://github.com/ethereum/yellowpaper) * [WALLETH](http://walleth.org) * [Why a Kotlin library and not use web3j](https://github.com/web3j/web3j/issues/124#issuecomment-313088274) Get it ====== KEthereum is available via jitpack: [![](https://jitpack.io/v/walleth/kethereum.svg)](https://jitpack.io/#walleth/kethereum) License ======= MIT
10
0.384615
10
0
e1fab7f21bf7b096d497db4f93ff3bec1eed6904
lib/json_model/associations.rb
lib/json_model/associations.rb
require 'active_support/inflector' module JsonModel module Associations def initialize(attrs = {}) super(attrs) attrs = symbolize_keys(attrs) self.class.associations.each do |a, info| send("#{a}=", []) next if !attrs.include?(a) if info[:class].nil? klass = eval(ActiveSupport::Inflector.classify(a)) #klass = ActiveSupport::Inflector.constantize(klass) else klass = info[:class] end attrs[a].each do |assoc| if assoc.is_a?(Array) assoc = assoc[1] end attrib = send(a) attrib.push(klass.new(assoc)) end end end # Converts the current object to a hash with attribute names as keys # and the values of the attributes as values # def as_json attrs = super self.class.associations.each do |name, info| attrs[name] = [] arr = send(name) next if arr.nil? arr.each do |object| attrs[name].push(object.as_json) unless object.nil? end end attrs end module ClassMethods def associations @associations ||= {} end def has_many(association, params = {}) associations.store(association, params) self.send(:attr_accessor, association) end end end end
require 'active_support/inflector' module JsonModel module Associations def initialize(attrs = {}) super(attrs) attrs = symbolize_keys(attrs) self.class.associations.each do |a, info| send("#{a}=", []) next if !attrs.include?(a) if info[:class].nil? klass = ActiveSupport::Inflector.classify(a) klass = ActiveSupport::Inflector.constantize(klass) else klass = info[:class] end attrs[a].each do |assoc| if assoc.is_a?(Array) assoc = assoc[1] end attrib = send(a) attrib.push(klass.new(assoc)) end end end # Converts the current object to a hash with attribute names as keys # and the values of the attributes as values # def as_json attrs = super self.class.associations.each do |name, info| attrs[name] = [] arr = send(name) next if arr.nil? arr.each do |object| attrs[name].push(object.as_json) unless object.nil? end end attrs end module ClassMethods def associations @associations ||= {} end def has_many(association, params = {}) associations.store(association, params) self.send(:attr_accessor, association) end end end end
Revert "Replace classify with eval"
Revert "Replace classify with eval" This reverts commit 5351a2604f8b2e36b48c697dc311dff6f9b71ba8.
Ruby
mit
pch/json_model
ruby
## Code Before: require 'active_support/inflector' module JsonModel module Associations def initialize(attrs = {}) super(attrs) attrs = symbolize_keys(attrs) self.class.associations.each do |a, info| send("#{a}=", []) next if !attrs.include?(a) if info[:class].nil? klass = eval(ActiveSupport::Inflector.classify(a)) #klass = ActiveSupport::Inflector.constantize(klass) else klass = info[:class] end attrs[a].each do |assoc| if assoc.is_a?(Array) assoc = assoc[1] end attrib = send(a) attrib.push(klass.new(assoc)) end end end # Converts the current object to a hash with attribute names as keys # and the values of the attributes as values # def as_json attrs = super self.class.associations.each do |name, info| attrs[name] = [] arr = send(name) next if arr.nil? arr.each do |object| attrs[name].push(object.as_json) unless object.nil? end end attrs end module ClassMethods def associations @associations ||= {} end def has_many(association, params = {}) associations.store(association, params) self.send(:attr_accessor, association) end end end end ## Instruction: Revert "Replace classify with eval" This reverts commit 5351a2604f8b2e36b48c697dc311dff6f9b71ba8. ## Code After: require 'active_support/inflector' module JsonModel module Associations def initialize(attrs = {}) super(attrs) attrs = symbolize_keys(attrs) self.class.associations.each do |a, info| send("#{a}=", []) next if !attrs.include?(a) if info[:class].nil? klass = ActiveSupport::Inflector.classify(a) klass = ActiveSupport::Inflector.constantize(klass) else klass = info[:class] end attrs[a].each do |assoc| if assoc.is_a?(Array) assoc = assoc[1] end attrib = send(a) attrib.push(klass.new(assoc)) end end end # Converts the current object to a hash with attribute names as keys # and the values of the attributes as values # def as_json attrs = super self.class.associations.each do |name, info| attrs[name] = [] arr = send(name) next if arr.nil? arr.each do |object| attrs[name].push(object.as_json) unless object.nil? end end attrs end module ClassMethods def associations @associations ||= {} end def has_many(association, params = {}) associations.store(association, params) self.send(:attr_accessor, association) end end end end
require 'active_support/inflector' module JsonModel module Associations def initialize(attrs = {}) super(attrs) - + attrs = symbolize_keys(attrs) - + self.class.associations.each do |a, info| send("#{a}=", []) next if !attrs.include?(a) - + if info[:class].nil? - klass = eval(ActiveSupport::Inflector.classify(a)) ? ----- - + klass = ActiveSupport::Inflector.classify(a) - #klass = ActiveSupport::Inflector.constantize(klass) ? - + klass = ActiveSupport::Inflector.constantize(klass) else klass = info[:class] end - + attrs[a].each do |assoc| if assoc.is_a?(Array) assoc = assoc[1] end - + attrib = send(a) attrib.push(klass.new(assoc)) end end end - + # Converts the current object to a hash with attribute names as keys # and the values of the attributes as values # def as_json attrs = super self.class.associations.each do |name, info| attrs[name] = [] - + arr = send(name) next if arr.nil? - + arr.each do |object| attrs[name].push(object.as_json) unless object.nil? end end attrs end - + module ClassMethods def associations @associations ||= {} end - + def has_many(association, params = {}) associations.store(association, params) self.send(:attr_accessor, association) end end end end
24
0.393443
12
12
f13a3ae558b8034948f7ee6f61a3b153f0f8aec1
data/transition-sites/dfe_teacherstv.yml
data/transition-sites/dfe_teacherstv.yml
--- site: dfe_teacherstv whitehall_slug: department-for-education title: Department for Education redirection_date: 1st May 2014 homepage: https://www.gov.uk/government/organisations/department-for-education tna_timestamp: 20150101010101 host: www.teachers.tv furl: www.gov.uk/dfe global: =301 https://www.gov.uk/government/organisations/department-for-education
--- site: dfe_teacherstv whitehall_slug: department-for-education title: Department for Education redirection_date: 1st May 2014 homepage: https://www.gov.uk/government/organisations/department-for-education tna_timestamp: 20150101010101 host: www.teachers.tv furl: www.gov.uk/dfe global: =301 https://www.gov.uk/government/organisations/department-for-education aliases: - teachers.tv
Configure tld as alias to www.teachers.tv
Configure tld as alias to www.teachers.tv
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: dfe_teacherstv whitehall_slug: department-for-education title: Department for Education redirection_date: 1st May 2014 homepage: https://www.gov.uk/government/organisations/department-for-education tna_timestamp: 20150101010101 host: www.teachers.tv furl: www.gov.uk/dfe global: =301 https://www.gov.uk/government/organisations/department-for-education ## Instruction: Configure tld as alias to www.teachers.tv ## Code After: --- site: dfe_teacherstv whitehall_slug: department-for-education title: Department for Education redirection_date: 1st May 2014 homepage: https://www.gov.uk/government/organisations/department-for-education tna_timestamp: 20150101010101 host: www.teachers.tv furl: www.gov.uk/dfe global: =301 https://www.gov.uk/government/organisations/department-for-education aliases: - teachers.tv
--- site: dfe_teacherstv whitehall_slug: department-for-education title: Department for Education redirection_date: 1st May 2014 homepage: https://www.gov.uk/government/organisations/department-for-education tna_timestamp: 20150101010101 host: www.teachers.tv furl: www.gov.uk/dfe global: =301 https://www.gov.uk/government/organisations/department-for-education + aliases: + - teachers.tv
2
0.2
2
0
a3f650473ee323fece222576e4bd8f6d4bdefc55
src/main/java/co/phoenixlab/discord/api/entities/ReadyMessage.java
src/main/java/co/phoenixlab/discord/api/entities/ReadyMessage.java
package co.phoenixlab.discord.api.entities; import com.google.gson.annotations.SerializedName; public class ReadyMessage { @SerializedName("v") private int version; private User user; private String sessionId; @SerializedName("read_state") private ReadState[] readState; @SerializedName("private_channels") private PrivateChannel[] privateChannels; @SerializedName("heartbeat_interval") private long heartbeatInterval; @SerializedName("guilds") private Server[] servers; public ReadyMessage() { } public int getVersion() { return version; } public User getUser() { return user; } public String getSessionId() { return sessionId; } public ReadState[] getReadState() { return readState; } public PrivateChannel[] getPrivateChannels() { return privateChannels; } public long getHeartbeatInterval() { return heartbeatInterval; } public Server[] getServers() { return servers; } class ReadState { @SerializedName("mention_count") private int mentionCount; @SerializedName("last_message_id") private String lastMessageId; private String id; public int getMentionCount() { return mentionCount; } public String getLastMessageId() { return lastMessageId; } public String getId() { return id; } } }
package co.phoenixlab.discord.api.entities; import com.google.gson.annotations.SerializedName; public class ReadyMessage { @SerializedName("v") private int version; private User user; @SerializedName("session_id") private String sessionId; @SerializedName("read_state") private ReadState[] readState; @SerializedName("private_channels") private PrivateChannel[] privateChannels; @SerializedName("heartbeat_interval") private long heartbeatInterval; @SerializedName("guilds") private Server[] servers; public ReadyMessage() { } public int getVersion() { return version; } public User getUser() { return user; } public String getSessionId() { return sessionId; } public ReadState[] getReadState() { return readState; } public PrivateChannel[] getPrivateChannels() { return privateChannels; } public long getHeartbeatInterval() { return heartbeatInterval; } public Server[] getServers() { return servers; } class ReadState { @SerializedName("mention_count") private int mentionCount; @SerializedName("last_message_id") private String lastMessageId; private String id; public int getMentionCount() { return mentionCount; } public String getLastMessageId() { return lastMessageId; } public String getId() { return id; } } }
Fix missing serialized name annotation
Fix missing serialized name annotation
Java
mit
vincentzhang96/VahrhedralBot
java
## Code Before: package co.phoenixlab.discord.api.entities; import com.google.gson.annotations.SerializedName; public class ReadyMessage { @SerializedName("v") private int version; private User user; private String sessionId; @SerializedName("read_state") private ReadState[] readState; @SerializedName("private_channels") private PrivateChannel[] privateChannels; @SerializedName("heartbeat_interval") private long heartbeatInterval; @SerializedName("guilds") private Server[] servers; public ReadyMessage() { } public int getVersion() { return version; } public User getUser() { return user; } public String getSessionId() { return sessionId; } public ReadState[] getReadState() { return readState; } public PrivateChannel[] getPrivateChannels() { return privateChannels; } public long getHeartbeatInterval() { return heartbeatInterval; } public Server[] getServers() { return servers; } class ReadState { @SerializedName("mention_count") private int mentionCount; @SerializedName("last_message_id") private String lastMessageId; private String id; public int getMentionCount() { return mentionCount; } public String getLastMessageId() { return lastMessageId; } public String getId() { return id; } } } ## Instruction: Fix missing serialized name annotation ## Code After: package co.phoenixlab.discord.api.entities; import com.google.gson.annotations.SerializedName; public class ReadyMessage { @SerializedName("v") private int version; private User user; @SerializedName("session_id") private String sessionId; @SerializedName("read_state") private ReadState[] readState; @SerializedName("private_channels") private PrivateChannel[] privateChannels; @SerializedName("heartbeat_interval") private long heartbeatInterval; @SerializedName("guilds") private Server[] servers; public ReadyMessage() { } public int getVersion() { return version; } public User getUser() { return user; } public String getSessionId() { return sessionId; } public ReadState[] getReadState() { return readState; } public PrivateChannel[] getPrivateChannels() { return privateChannels; } public long getHeartbeatInterval() { return heartbeatInterval; } public Server[] getServers() { return servers; } class ReadState { @SerializedName("mention_count") private int mentionCount; @SerializedName("last_message_id") private String lastMessageId; private String id; public int getMentionCount() { return mentionCount; } public String getLastMessageId() { return lastMessageId; } public String getId() { return id; } } }
package co.phoenixlab.discord.api.entities; import com.google.gson.annotations.SerializedName; public class ReadyMessage { @SerializedName("v") private int version; private User user; + @SerializedName("session_id") private String sessionId; @SerializedName("read_state") private ReadState[] readState; @SerializedName("private_channels") private PrivateChannel[] privateChannels; @SerializedName("heartbeat_interval") private long heartbeatInterval; @SerializedName("guilds") private Server[] servers; public ReadyMessage() { } public int getVersion() { return version; } public User getUser() { return user; } public String getSessionId() { return sessionId; } public ReadState[] getReadState() { return readState; } public PrivateChannel[] getPrivateChannels() { return privateChannels; } public long getHeartbeatInterval() { return heartbeatInterval; } public Server[] getServers() { return servers; } class ReadState { @SerializedName("mention_count") private int mentionCount; @SerializedName("last_message_id") private String lastMessageId; private String id; public int getMentionCount() { return mentionCount; } public String getLastMessageId() { return lastMessageId; } public String getId() { return id; } } }
1
0.013889
1
0
91e7819ff6768b0143f57f62ca0067600965f66c
node_modules/http-duplex.js
node_modules/http-duplex.js
module.exports = HTTPDuplex var util = require('util') , http = require('http') , https = require('https') , stream = require('stream') util.inherits(HTTPDuplex, stream.Duplex) function HTTPDuplex (protocol) { stream.Duplex.call(this) this._req = null this._res = null this._client = null if (protocol === 'https:') { this._client = https } else if (protocol === 'http:') { this._client = http } } HTTPDuplex.prototype.start = function (options) { var self = this self._req = self._client.request(options) self._req.on('response', function (res) { self._res = res self.emit('response', res) res.on('data', function (chunk) { if (!self.push(chunk)) { self._res.pause() } }) res.on('end', function () { self.push(null) }) }) } HTTPDuplex.prototype._read = function (n) { if (this._res) { this._res.resume() } } HTTPDuplex.prototype._write = function (chunk, encoding, cb) { return this._req.write(chunk, encoding, cb) } HTTPDuplex.prototype.end = function (chunk, encoding, cb) { return this._req.end(chunk, encoding, cb) }
module.exports = HTTPDuplex var util = require('util') , http = require('http') , https = require('https') , stream = require('stream') util.inherits(HTTPDuplex, stream.Duplex) function HTTPDuplex (protocol) { stream.Duplex.call(this) this._req = null this._res = null this._client = null if (protocol === 'https:') { this._client = https } else if (protocol === 'http:') { this._client = http } } HTTPDuplex.prototype.start = function (options) { var self = this self._req = self._client.request(options) self._req.on('response', function (res) { self._res = res self.emit('response', res) self._res.on('data', function (chunk) { if (!self.push(chunk)) { self._res.pause() } }) self._res.on('end', function () { self.push(null) }) }) } HTTPDuplex.prototype._read = function (n) { if (this._res) { this._res.resume() } } HTTPDuplex.prototype._write = function (chunk, encoding, cb) { return this._req.write(chunk, encoding, cb) } HTTPDuplex.prototype.end = function (chunk, encoding, cb) { return this._req.end(chunk, encoding, cb) }
Allow piping in the response event
Allow piping in the response event
JavaScript
apache-2.0
request/core
javascript
## Code Before: module.exports = HTTPDuplex var util = require('util') , http = require('http') , https = require('https') , stream = require('stream') util.inherits(HTTPDuplex, stream.Duplex) function HTTPDuplex (protocol) { stream.Duplex.call(this) this._req = null this._res = null this._client = null if (protocol === 'https:') { this._client = https } else if (protocol === 'http:') { this._client = http } } HTTPDuplex.prototype.start = function (options) { var self = this self._req = self._client.request(options) self._req.on('response', function (res) { self._res = res self.emit('response', res) res.on('data', function (chunk) { if (!self.push(chunk)) { self._res.pause() } }) res.on('end', function () { self.push(null) }) }) } HTTPDuplex.prototype._read = function (n) { if (this._res) { this._res.resume() } } HTTPDuplex.prototype._write = function (chunk, encoding, cb) { return this._req.write(chunk, encoding, cb) } HTTPDuplex.prototype.end = function (chunk, encoding, cb) { return this._req.end(chunk, encoding, cb) } ## Instruction: Allow piping in the response event ## Code After: module.exports = HTTPDuplex var util = require('util') , http = require('http') , https = require('https') , stream = require('stream') util.inherits(HTTPDuplex, stream.Duplex) function HTTPDuplex (protocol) { stream.Duplex.call(this) this._req = null this._res = null this._client = null if (protocol === 'https:') { this._client = https } else if (protocol === 'http:') { this._client = http } } HTTPDuplex.prototype.start = function (options) { var self = this self._req = self._client.request(options) self._req.on('response', function (res) { self._res = res self.emit('response', res) self._res.on('data', function (chunk) { if (!self.push(chunk)) { self._res.pause() } }) self._res.on('end', function () { self.push(null) }) }) } HTTPDuplex.prototype._read = function (n) { if (this._res) { this._res.resume() } } HTTPDuplex.prototype._write = function (chunk, encoding, cb) { return this._req.write(chunk, encoding, cb) } HTTPDuplex.prototype.end = function (chunk, encoding, cb) { return this._req.end(chunk, encoding, cb) }
module.exports = HTTPDuplex var util = require('util') , http = require('http') , https = require('https') , stream = require('stream') util.inherits(HTTPDuplex, stream.Duplex) function HTTPDuplex (protocol) { stream.Duplex.call(this) this._req = null this._res = null this._client = null if (protocol === 'https:') { this._client = https } else if (protocol === 'http:') { this._client = http } } HTTPDuplex.prototype.start = function (options) { var self = this self._req = self._client.request(options) self._req.on('response', function (res) { self._res = res self.emit('response', res) - res.on('data', function (chunk) { + self._res.on('data', function (chunk) { ? ++++++ if (!self.push(chunk)) { self._res.pause() } }) - res.on('end', function () { + self._res.on('end', function () { ? ++++++ self.push(null) }) }) } HTTPDuplex.prototype._read = function (n) { if (this._res) { this._res.resume() } } HTTPDuplex.prototype._write = function (chunk, encoding, cb) { return this._req.write(chunk, encoding, cb) } HTTPDuplex.prototype.end = function (chunk, encoding, cb) { return this._req.end(chunk, encoding, cb) }
4
0.065574
2
2