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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6ba4188dbe01e68b6b4978a530eb2d8c951cf5a | test/maliciousness_test.rb | test/maliciousness_test.rb | require "test_helper"
class MathToItex::BasicTest < Test::Unit::TestCase
def test_it_does_not_error_on_nested_commands
result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string }
assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$'
end
def test_it_does_nothing_on_non_itex_strings
result = MathToItex('Well, hello there.').convert { |string| string.upcase }
assert_equal result, "Well, hello there."
end
end
| require "test_helper"
class MathToItex::BasicTest < Test::Unit::TestCase
def test_it_does_not_error_on_nested_commands
result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string }
assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$'
end
def test_it_does_nothing_on_non_itex_strings
result = MathToItex('Well, hello there.').convert { |string| string.upcase }
assert_equal result, "Well, hello there."
end
def test_it_does_nothing_on_strings_with_some_dollars
result = MathToItex('I bought a sandwich for $5 but it was only worth $3.').convert { |string| string.upcase }
assert_equal result, "I bought a sandwich for $5 but it was only worth $3."
end
def test_it_does_nothing_on_strings_with_some_double_dollars
result = MathToItex('I went to that restaurant that was marked as $$ but it turned out to actually be $$$ so now I\'m a little strapped.').convert { |string| string.upcase }
assert_equal result, "I went to that restaurant that was marked as $$ but it turned out to actually be $$$ so now I'm a little strapped."
end
end
| Update the tests to match the dollar challenge | Update the tests to match the dollar challenge
| Ruby | mit | gjtorikian/math-to-itex | ruby | ## Code Before:
require "test_helper"
class MathToItex::BasicTest < Test::Unit::TestCase
def test_it_does_not_error_on_nested_commands
result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string }
assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$'
end
def test_it_does_nothing_on_non_itex_strings
result = MathToItex('Well, hello there.').convert { |string| string.upcase }
assert_equal result, "Well, hello there."
end
end
## Instruction:
Update the tests to match the dollar challenge
## Code After:
require "test_helper"
class MathToItex::BasicTest < Test::Unit::TestCase
def test_it_does_not_error_on_nested_commands
result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string }
assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$'
end
def test_it_does_nothing_on_non_itex_strings
result = MathToItex('Well, hello there.').convert { |string| string.upcase }
assert_equal result, "Well, hello there."
end
def test_it_does_nothing_on_strings_with_some_dollars
result = MathToItex('I bought a sandwich for $5 but it was only worth $3.').convert { |string| string.upcase }
assert_equal result, "I bought a sandwich for $5 but it was only worth $3."
end
def test_it_does_nothing_on_strings_with_some_double_dollars
result = MathToItex('I went to that restaurant that was marked as $$ but it turned out to actually be $$$ so now I\'m a little strapped.').convert { |string| string.upcase }
assert_equal result, "I went to that restaurant that was marked as $$ but it turned out to actually be $$$ so now I'm a little strapped."
end
end
| require "test_helper"
class MathToItex::BasicTest < Test::Unit::TestCase
def test_it_does_not_error_on_nested_commands
result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string }
assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$'
end
def test_it_does_nothing_on_non_itex_strings
result = MathToItex('Well, hello there.').convert { |string| string.upcase }
assert_equal result, "Well, hello there."
end
+
+ def test_it_does_nothing_on_strings_with_some_dollars
+ result = MathToItex('I bought a sandwich for $5 but it was only worth $3.').convert { |string| string.upcase }
+
+ assert_equal result, "I bought a sandwich for $5 but it was only worth $3."
+ end
+
+ def test_it_does_nothing_on_strings_with_some_double_dollars
+ result = MathToItex('I went to that restaurant that was marked as $$ but it turned out to actually be $$$ so now I\'m a little strapped.').convert { |string| string.upcase }
+
+ assert_equal result, "I went to that restaurant that was marked as $$ but it turned out to actually be $$$ so now I'm a little strapped."
+ end
end | 12 | 0.8 | 12 | 0 |
63fc7c0f1c1b0b250b546c61f79f9e921200e7e0 | core/db/migrate/20130328130308_update_shipment_state_for_canceled_orders.rb | core/db/migrate/20130328130308_update_shipment_state_for_canceled_orders.rb | class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
def up
Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'")
end
def down
end
end | class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
def up
Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
end
def down
end
end
| Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders" | Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders"
This reverts commit 0c04aade284df9eb06adee5fb6fb3b9db5d4f43a.
rake test_app was getting SQLite3::SQLException: near ".": syntax error
| Ruby | bsd-3-clause | Machpowersystems/spree_mach,orenf/spree,APohio/spree,Senjai/solidus,rajeevriitm/spree,alejandromangione/spree,firman/spree,archSeer/spree,keatonrow/spree,sfcgeorge/spree,project-eutopia/spree,vulk/spree,mindvolt/spree,urimikhli/spree,odk211/spree,rbngzlv/spree,ckk-scratch/solidus,athal7/solidus,yiqing95/spree,dotandbo/spree,grzlus/spree,Engeltj/spree,delphsoft/spree-store-ballchair,Mayvenn/spree,vinsol/spree,imella/spree,DarkoP/spree,mindvolt/spree,alvinjean/spree,gregoryrikson/spree-sample,Machpowersystems/spree_mach,yomishra/pce,vinsol/spree,fahidnasir/spree,agient/agientstorefront,adaddeo/spree,vinayvinsol/spree,Hates/spree,groundctrl/spree,azclick/spree,StemboltHQ/spree,sliaquat/spree,camelmasa/spree,Machpowersystems/spree_mach,watg/spree,priyank-gupta/spree,ramkumar-kr/spree,ckk-scratch/solidus,reinaris/spree,priyank-gupta/spree,jparr/spree,CJMrozek/spree,PhoenixTeam/spree_phoenix,athal7/solidus,azranel/spree,shaywood2/spree,SadTreeFriends/spree,tomash/spree,tesserakt/clean_spree,gautamsawhney/spree,mleglise/spree,dafontaine/spree,welitonfreitas/spree,vinayvinsol/spree,firman/spree,agient/agientstorefront,kewaunited/spree,reinaris/spree,DarkoP/spree,caiqinghua/spree,gautamsawhney/spree,keatonrow/spree,Mayvenn/spree,devilcoders/solidus,richardnuno/solidus,vulk/spree,JDutil/spree,progsri/spree,azclick/spree,jasonfb/spree,Migweld/spree,Hates/spree,archSeer/spree,piousbox/spree,project-eutopia/spree,watg/spree,reidblomquist/spree,degica/spree,SadTreeFriends/spree,net2b/spree,jordan-brough/spree,jasonfb/spree,Arpsara/solidus,miyazawatomoka/spree,jasonfb/spree,delphsoft/spree-store-ballchair,patdec/spree,athal7/solidus,Nevensoft/spree,rbngzlv/spree,nooysters/spree,hoanghiep90/spree,surfdome/spree,jimblesm/spree,shekibobo/spree,jsurdilla/solidus,madetech/spree,njerrywerry/spree,alepore/spree,omarsar/spree,gautamsawhney/spree,softr8/spree,orenf/spree,shekibobo/spree,welitonfreitas/spree,vulk/spree,ckk-scratch/solidus,patdec/spree,APohio/spree,athal7/solidus,yiqing95/spree,raow/spree,brchristian/spree,lyzxsc/spree,Boomkat/spree,CJMrozek/spree,miyazawatomoka/spree,project-eutopia/spree,scottcrawford03/solidus,bjornlinder/Spree,bricesanchez/spree,omarsar/spree,beni55/spree,jimblesm/spree,quentinuys/spree,joanblake/spree,priyank-gupta/spree,joanblake/spree,azclick/spree,joanblake/spree,reidblomquist/spree,calvinl/spree,rajeevriitm/spree,Hawaiideveloper/shoppingcart,woboinc/spree,zamiang/spree,assembledbrands/spree,dandanwei/spree,trigrass2/spree,jspizziri/spree,FadliKun/spree,rajeevriitm/spree,tailic/spree,AgilTec/spree,DarkoP/spree,AgilTec/spree,camelmasa/spree,biagidp/spree,thogg4/spree,bonobos/solidus,trigrass2/spree,rakibulislam/spree,TrialGuides/spree,beni55/spree,APohio/spree,brchristian/spree,yomishra/pce,jeffboulet/spree,jspizziri/spree,orenf/spree,jordan-brough/solidus,berkes/spree,abhishekjain16/spree,DynamoMTL/spree,sfcgeorge/spree,miyazawatomoka/spree,Senjai/solidus,biagidp/spree,archSeer/spree,Arpsara/solidus,Lostmyname/spree,urimikhli/spree,Engeltj/spree,raow/spree,grzlus/spree,carlesjove/spree,alvinjean/spree,vmatekole/spree,gautamsawhney/spree,kitwalker12/spree,builtbybuffalo/spree,TrialGuides/spree,jeffboulet/spree,madetech/spree,pjmj777/spree,locomotivapro/spree,Hates/spree,knuepwebdev/FloatTubeRodHolders,StemboltHQ/spree,gregoryrikson/spree-sample,lyzxsc/spree,piousbox/spree,alejandromangione/spree,TimurTarasenko/spree,lyzxsc/spree,alvinjean/spree,vmatekole/spree,forkata/solidus,siddharth28/spree,caiqinghua/spree,TimurTarasenko/spree,karlitxo/spree,JDutil/spree,maybii/spree,kitwalker12/spree,jaspreet21anand/spree,sideci-sample/sideci-sample-spree,zaeznet/spree,adaddeo/spree,lsirivong/solidus,RatioClothing/spree,ramkumar-kr/spree,LBRapid/spree,vinayvinsol/spree,scottcrawford03/solidus,woboinc/spree,wolfieorama/spree,locomotivapro/spree,shioyama/spree,abhishekjain16/spree,sliaquat/spree,JuandGirald/spree,Boomkat/spree,radarseesradar/spree,rakibulislam/spree,agient/agientstorefront,tailic/spree,ramkumar-kr/spree,vcavallo/spree,thogg4/spree,tancnle/spree,TrialGuides/spree,trigrass2/spree,shekibobo/spree,dafontaine/spree,tesserakt/clean_spree,edgward/spree,reinaris/spree,bricesanchez/spree,volpejoaquin/spree,jparr/spree,orenf/spree,Senjai/solidus,sliaquat/spree,richardnuno/solidus,CiscoCloud/spree,lyzxsc/spree,sunny2601/spree,HealthWave/spree,surfdome/spree,Antdesk/karpal-spree,beni55/spree,firman/spree,thogg4/spree,freerunningtech/spree,bonobos/solidus,fahidnasir/spree,hifly/spree,builtbybuffalo/spree,Ropeney/spree,dandanwei/spree,Kagetsuki/spree,grzlus/solidus,Hawaiideveloper/shoppingcart,zamiang/spree,gregoryrikson/spree-sample,useiichi/spree,moneyspyder/spree,keatonrow/spree,zaeznet/spree,dafontaine/spree,alepore/spree,project-eutopia/spree,Mayvenn/spree,NerdsvilleCEO/spree,jsurdilla/solidus,yushine/spree,ujai/spree,lsirivong/solidus,jhawthorn/spree,DarkoP/spree,odk211/spree,Lostmyname/spree,JDutil/spree,archSeer/spree,freerunningtech/spree,hoanghiep90/spree,progsri/spree,zamiang/spree,pervino/solidus,codesavvy/sandbox,quentinuys/spree,softr8/spree,imella/spree,firman/spree,adaddeo/spree,net2b/spree,dotandbo/spree,Arpsara/solidus,karlitxo/spree,tesserakt/clean_spree,ayb/spree,radarseesradar/spree,shaywood2/spree,Ropeney/spree,codesavvy/sandbox,edgward/spree,wolfieorama/spree,jaspreet21anand/spree,JDutil/spree,mleglise/spree,knuepwebdev/FloatTubeRodHolders,berkes/spree,patdec/spree,siddharth28/spree,nooysters/spree,HealthWave/spree,madetech/spree,siddharth28/spree,Migweld/spree,jspizziri/spree,omarsar/spree,sunny2601/spree,yiqing95/spree,kewaunited/spree,cutefrank/spree,fahidnasir/spree,codesavvy/sandbox,omarsar/spree,hifly/spree,pervino/spree,jspizziri/spree,hoanghiep90/spree,PhoenixTeam/spree_phoenix,pulkit21/spree,radarseesradar/spree,ahmetabdi/spree,PhoenixTeam/spree_phoenix,welitonfreitas/spree,dafontaine/spree,tomash/spree,nooysters/spree,freerunningtech/spree,vinsol/spree,maybii/spree,vcavallo/spree,AgilTec/spree,devilcoders/solidus,reinaris/spree,vinayvinsol/spree,camelmasa/spree,useiichi/spree,mleglise/spree,quentinuys/spree,raow/spree,TrialGuides/spree,rajeevriitm/spree,progsri/spree,pervino/solidus,tancnle/spree,lsirivong/spree,carlesjove/spree,bjornlinder/Spree,priyank-gupta/spree,LBRapid/spree,ujai/spree,jeffboulet/spree,robodisco/spree,Hates/spree,kewaunited/spree,volpejoaquin/spree,azclick/spree,assembledbrands/spree,rakibulislam/spree,NerdsvilleCEO/spree,dotandbo/spree,locomotivapro/spree,net2b/spree,jordan-brough/solidus,grzlus/solidus,azranel/spree,alvinjean/spree,surfdome/spree,siddharth28/spree,TimurTarasenko/spree,APohio/spree,Lostmyname/spree,mindvolt/spree,grzlus/solidus,tailic/spree,AgilTec/spree,DynamoMTL/spree,Kagetsuki/spree,LBRapid/spree,moneyspyder/spree,shaywood2/spree,azranel/spree,useiichi/spree,derekluo/spree,wolfieorama/spree,Nevensoft/spree,yushine/spree,rbngzlv/spree,cutefrank/spree,Senjai/solidus,azranel/spree,Arpsara/solidus,degica/spree,volpejoaquin/spree,miyazawatomoka/spree,Migweld/spree,fahidnasir/spree,dandanwei/spree,tomash/spree,rakibulislam/spree,piousbox/spree,pervino/spree,xuewenfei/solidus,vulk/spree,Kagetsuki/spree,kewaunited/spree,thogg4/spree,tesserakt/clean_spree,KMikhaylovCTG/spree,moneyspyder/spree,jimblesm/spree,SadTreeFriends/spree,beni55/spree,edgward/spree,patdec/spree,xuewenfei/solidus,TimurTarasenko/spree,jordan-brough/spree,codesavvy/sandbox,tomash/spree,FadliKun/spree,net2b/spree,vcavallo/spree,delphsoft/spree-store-ballchair,trigrass2/spree,robodisco/spree,assembledbrands/spree,dotandbo/spree,richardnuno/solidus,bricesanchez/spree,brchristian/spree,CiscoCloud/spree,jaspreet21anand/spree,locomotivapro/spree,agient/agientstorefront,yushine/spree,alejandromangione/spree,yiqing95/spree,edgward/spree,FadliKun/spree,jsurdilla/solidus,pulkit21/spree,Hawaiideveloper/shoppingcart,derekluo/spree,raow/spree,lsirivong/solidus,jhawthorn/spree,Engeltj/spree,vmatekole/spree,groundctrl/spree,shioyama/spree,Senjai/spree,pervino/solidus,Nevensoft/spree,bonobos/solidus,ujai/spree,JuandGirald/spree,karlitxo/spree,RatioClothing/spree,alejandromangione/spree,scottcrawford03/solidus,degica/spree,maybii/spree,jhawthorn/spree,caiqinghua/spree,vcavallo/spree,sideci-sample/sideci-sample-spree,grzlus/spree,zaeznet/spree,adaddeo/spree,calvinl/spree,piousbox/spree,yushine/spree,sfcgeorge/spree,reidblomquist/spree,joanblake/spree,hoanghiep90/spree,lsirivong/solidus,jparr/spree,pulkit21/spree,Kagetsuki/spree,progsri/spree,hifly/spree,mleglise/spree,jeffboulet/spree,DynamoMTL/spree,delphsoft/spree-store-ballchair,sideci-sample/sideci-sample-spree,KMikhaylovCTG/spree,Nevensoft/spree,woboinc/spree,ahmetabdi/spree,jsurdilla/solidus,Antdesk/karpal-spree,pervino/spree,CJMrozek/spree,sfcgeorge/spree,devilcoders/solidus,xuewenfei/solidus,jimblesm/spree,sunny2601/spree,KMikhaylovCTG/spree,Lostmyname/spree,volpejoaquin/spree,groundctrl/spree,useiichi/spree,camelmasa/spree,softr8/spree,dandanwei/spree,alepore/spree,shioyama/spree,devilcoders/solidus,njerrywerry/spree,imella/spree,xuewenfei/solidus,forkata/solidus,cutefrank/spree,builtbybuffalo/spree,NerdsvilleCEO/spree,pjmj777/spree,ayb/spree,abhishekjain16/spree,ckk-scratch/solidus,builtbybuffalo/spree,bonobos/solidus,HealthWave/spree,lsirivong/spree,richardnuno/solidus,berkes/spree,ramkumar-kr/spree,Senjai/spree,jaspreet21anand/spree,wolfieorama/spree,derekluo/spree,kitwalker12/spree,Boomkat/spree,KMikhaylovCTG/spree,knuepwebdev/FloatTubeRodHolders,groundctrl/spree,moneyspyder/spree,gregoryrikson/spree-sample,Migweld/spree,berkes/spree,pervino/spree,FadliKun/spree,calvinl/spree,jordan-brough/solidus,RatioClothing/spree,SadTreeFriends/spree,mindvolt/spree,ayb/spree,StemboltHQ/spree,Engeltj/spree,zamiang/spree,njerrywerry/spree,pulkit21/spree,Boomkat/spree,abhishekjain16/spree,zaeznet/spree,Mayvenn/spree,keatonrow/spree,JuandGirald/spree,scottcrawford03/solidus,Hawaiideveloper/shoppingcart,Ropeney/spree,forkata/solidus,sunny2601/spree,nooysters/spree,ahmetabdi/spree,softr8/spree,calvinl/spree,carlesjove/spree,vinsol/spree,forkata/solidus,carlesjove/spree,Ropeney/spree,welitonfreitas/spree,robodisco/spree,JuandGirald/spree,njerrywerry/spree,PhoenixTeam/spree_phoenix,urimikhli/spree,pervino/solidus,cutefrank/spree,pjmj777/spree,biagidp/spree,hifly/spree,jasonfb/spree,Senjai/spree,jordan-brough/spree,rbngzlv/spree,grzlus/spree,CiscoCloud/spree,derekluo/spree,tancnle/spree,jordan-brough/solidus,NerdsvilleCEO/spree,lsirivong/spree,yomishra/pce,DynamoMTL/spree,reidblomquist/spree,lsirivong/spree,shaywood2/spree,vmatekole/spree,shekibobo/spree,caiqinghua/spree,quentinuys/spree,ahmetabdi/spree,sliaquat/spree,surfdome/spree,madetech/spree,grzlus/solidus,watg/spree,CJMrozek/spree,odk211/spree,robodisco/spree,karlitxo/spree,radarseesradar/spree,odk211/spree,tancnle/spree,CiscoCloud/spree,bjornlinder/Spree,Antdesk/karpal-spree,brchristian/spree,jparr/spree,ayb/spree,maybii/spree | ruby | ## Code Before:
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
def up
Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'")
end
def down
end
end
## Instruction:
Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders"
This reverts commit 0c04aade284df9eb06adee5fb6fb3b9db5d4f43a.
rake test_app was getting SQLite3::SQLException: near ".": syntax error
## Code After:
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
def up
Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
end
def down
end
end
| class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
def up
- Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'")
? ----------------- ^^ -
+ Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
? ^
end
def down
end
end | 2 | 0.25 | 1 | 1 |
132881b197f160363517c98bfba64458b9083968 | frontend/codegen.yml | frontend/codegen.yml | schema: _schema.json
documents:
- ./src/**/*.{ts,tsx}
- ./node_modules/gatsby-*/**/*.js
generates:
src/generated/graphql.ts:
plugins:
- add: |
/* eslint-disable */
import { GatsbyImageProps } from 'gatsby-image'
- "typescript"
- "typescript-operations"
config:
scalars:
ImageSharp: GatsbyImageProps
ImageSharpFilterInput: GatsbyImageProps
namingConvention:
enumValues: keep
maybeValue: T | null
avoidOptionals: true
| schema: _schema.json
documents:
- ./src/**/*.{ts,tsx}
- ./node_modules/gatsby-image/**/*.js
- ./node_modules/gatsby-transformer-sharp/**/*.js
generates:
src/generated/graphql.ts:
plugins:
- add: |
/* eslint-disable */
import { GatsbyImageProps } from 'gatsby-image'
- "typescript"
- "typescript-operations"
config:
scalars:
ImageSharp: GatsbyImageProps
ImageSharpFilterInput: GatsbyImageProps
namingConvention:
enumValues: keep
maybeValue: T | null
avoidOptionals: true
| Fix max files issue on github actions | Fix max files issue on github actions
| YAML | mit | patrick91/pycon,patrick91/pycon | yaml | ## Code Before:
schema: _schema.json
documents:
- ./src/**/*.{ts,tsx}
- ./node_modules/gatsby-*/**/*.js
generates:
src/generated/graphql.ts:
plugins:
- add: |
/* eslint-disable */
import { GatsbyImageProps } from 'gatsby-image'
- "typescript"
- "typescript-operations"
config:
scalars:
ImageSharp: GatsbyImageProps
ImageSharpFilterInput: GatsbyImageProps
namingConvention:
enumValues: keep
maybeValue: T | null
avoidOptionals: true
## Instruction:
Fix max files issue on github actions
## Code After:
schema: _schema.json
documents:
- ./src/**/*.{ts,tsx}
- ./node_modules/gatsby-image/**/*.js
- ./node_modules/gatsby-transformer-sharp/**/*.js
generates:
src/generated/graphql.ts:
plugins:
- add: |
/* eslint-disable */
import { GatsbyImageProps } from 'gatsby-image'
- "typescript"
- "typescript-operations"
config:
scalars:
ImageSharp: GatsbyImageProps
ImageSharpFilterInput: GatsbyImageProps
namingConvention:
enumValues: keep
maybeValue: T | null
avoidOptionals: true
| schema: _schema.json
documents:
- ./src/**/*.{ts,tsx}
- - ./node_modules/gatsby-*/**/*.js
? ^
+ - ./node_modules/gatsby-image/**/*.js
? ^^^^^
+ - ./node_modules/gatsby-transformer-sharp/**/*.js
generates:
src/generated/graphql.ts:
plugins:
- add: |
/* eslint-disable */
import { GatsbyImageProps } from 'gatsby-image'
- "typescript"
- "typescript-operations"
config:
scalars:
ImageSharp: GatsbyImageProps
ImageSharpFilterInput: GatsbyImageProps
namingConvention:
enumValues: keep
maybeValue: T | null
avoidOptionals: true | 3 | 0.130435 | 2 | 1 |
0f0f533da69021fb24b91beffebbbaadab2454c4 | test/enhancer.spec.js | test/enhancer.spec.js | import enhancer from '../src/enhancer'
import createMockStorage from './utils/testStorage'
describe('enhancer', () => {
it('returns enhanced store with initial storage state', () => {
const enhancedCreateStore = enhancer()
expect(enhancedCreateStore).toBeInstanceOf(Function)
})
})
| import enhancer from '../src/enhancer'
import createMockStorage from './utils/testStorage'
describe('enhancer', () => {
it('returns enhanced store with initial storage state', () => {
const enhancedCreateStore = enhancer()
expect(enhancedCreateStore).toBeInstanceOf(Function)
})
it('sets up store with initial storage state', () => {
const mock = jest.fn()
const dummyData = {
authenticated: {
authenticator: 'dummy',
token: 'abcde'
}
}
const storage = createMockStorage(dummyData)
const createStore = jest.fn()
const enhancedCreateStore = enhancer({ storage })(createStore)(
mock,
null,
mock
)
expect(createStore).toHaveBeenCalledWith(
mock,
{
session: {
authenticator: 'dummy',
data: { token: 'abcde' },
isAuthenticated: false
}
},
mock
)
})
})
| Write test to verify enhancer | Write test to verify enhancer
| JavaScript | mit | jerelmiller/redux-simple-auth | javascript | ## Code Before:
import enhancer from '../src/enhancer'
import createMockStorage from './utils/testStorage'
describe('enhancer', () => {
it('returns enhanced store with initial storage state', () => {
const enhancedCreateStore = enhancer()
expect(enhancedCreateStore).toBeInstanceOf(Function)
})
})
## Instruction:
Write test to verify enhancer
## Code After:
import enhancer from '../src/enhancer'
import createMockStorage from './utils/testStorage'
describe('enhancer', () => {
it('returns enhanced store with initial storage state', () => {
const enhancedCreateStore = enhancer()
expect(enhancedCreateStore).toBeInstanceOf(Function)
})
it('sets up store with initial storage state', () => {
const mock = jest.fn()
const dummyData = {
authenticated: {
authenticator: 'dummy',
token: 'abcde'
}
}
const storage = createMockStorage(dummyData)
const createStore = jest.fn()
const enhancedCreateStore = enhancer({ storage })(createStore)(
mock,
null,
mock
)
expect(createStore).toHaveBeenCalledWith(
mock,
{
session: {
authenticator: 'dummy',
data: { token: 'abcde' },
isAuthenticated: false
}
},
mock
)
})
})
| import enhancer from '../src/enhancer'
import createMockStorage from './utils/testStorage'
describe('enhancer', () => {
it('returns enhanced store with initial storage state', () => {
const enhancedCreateStore = enhancer()
expect(enhancedCreateStore).toBeInstanceOf(Function)
})
+
+ it('sets up store with initial storage state', () => {
+ const mock = jest.fn()
+ const dummyData = {
+ authenticated: {
+ authenticator: 'dummy',
+ token: 'abcde'
+ }
+ }
+ const storage = createMockStorage(dummyData)
+ const createStore = jest.fn()
+
+ const enhancedCreateStore = enhancer({ storage })(createStore)(
+ mock,
+ null,
+ mock
+ )
+
+ expect(createStore).toHaveBeenCalledWith(
+ mock,
+ {
+ session: {
+ authenticator: 'dummy',
+ data: { token: 'abcde' },
+ isAuthenticated: false
+ }
+ },
+ mock
+ )
+ })
}) | 30 | 3 | 30 | 0 |
dbad2985590ac78364d5933f23c0a41f8ab9069b | roles/security/tasks/main.yml | roles/security/tasks/main.yml | ---
- include: firewalld.yml
sudo: true
when: secure_firewalld
- include: sshd.yml
sudo: true
when: secure_ssh
- include: fail2ban.yml
sudo: true
when: secure_fail2ban
# ipv6? Check it if you have it.
- include: ipv6.yml
sudo: true
when: ansible_default_ipv6 != {} and secure_ipv6
- name: Add SSH keys from github
authorized_key: user=ryansb key=https://github.com/ryansb.keys
when: ansible_user_id == "ryansb"
- name: Add root SSH keys
authorized_key: user=root key=https://github.com/ryansb.keys
sudo: true
| ---
- include: firewalld.yml
sudo: true
when: secure_firewalld
- include: sshd.yml
sudo: true
when: secure_ssh
- include: fail2ban.yml
sudo: true
when: secure_fail2ban
# ipv6? Check it if you have it.
- include: ipv6.yml
sudo: true
when: ansible_default_ipv6 != {} and secure_ipv6
- name: Add SSH keys from github
authorized_key: user=ryansb key=https://github.com/ryansb.keys
when: ansible_user_id == "ryansb"
- name: Add root SSH keys
authorized_key: user=root key=https://github.com/ryansb.keys
sudo: true
- name: Trust internal CA
copy:
content: "{{ lookup('file', 'ryansb.com.pem') }}"
dest: /etc/pki/ca-trust/source/anchors/ryansb.com.pem
owner: root
group: root
mode: "0644"
sudo: true
- name: load cert into trust store
shell: update-ca-trust
become: true
| Add internal CA trust to trust anchors list | Add internal CA trust to trust anchors list
| YAML | mit | ryansb/workstation,ryansb/workstation,ryansb/workstation | yaml | ## Code Before:
---
- include: firewalld.yml
sudo: true
when: secure_firewalld
- include: sshd.yml
sudo: true
when: secure_ssh
- include: fail2ban.yml
sudo: true
when: secure_fail2ban
# ipv6? Check it if you have it.
- include: ipv6.yml
sudo: true
when: ansible_default_ipv6 != {} and secure_ipv6
- name: Add SSH keys from github
authorized_key: user=ryansb key=https://github.com/ryansb.keys
when: ansible_user_id == "ryansb"
- name: Add root SSH keys
authorized_key: user=root key=https://github.com/ryansb.keys
sudo: true
## Instruction:
Add internal CA trust to trust anchors list
## Code After:
---
- include: firewalld.yml
sudo: true
when: secure_firewalld
- include: sshd.yml
sudo: true
when: secure_ssh
- include: fail2ban.yml
sudo: true
when: secure_fail2ban
# ipv6? Check it if you have it.
- include: ipv6.yml
sudo: true
when: ansible_default_ipv6 != {} and secure_ipv6
- name: Add SSH keys from github
authorized_key: user=ryansb key=https://github.com/ryansb.keys
when: ansible_user_id == "ryansb"
- name: Add root SSH keys
authorized_key: user=root key=https://github.com/ryansb.keys
sudo: true
- name: Trust internal CA
copy:
content: "{{ lookup('file', 'ryansb.com.pem') }}"
dest: /etc/pki/ca-trust/source/anchors/ryansb.com.pem
owner: root
group: root
mode: "0644"
sudo: true
- name: load cert into trust store
shell: update-ca-trust
become: true
| ---
- include: firewalld.yml
sudo: true
when: secure_firewalld
- include: sshd.yml
sudo: true
when: secure_ssh
- include: fail2ban.yml
sudo: true
when: secure_fail2ban
# ipv6? Check it if you have it.
- include: ipv6.yml
sudo: true
when: ansible_default_ipv6 != {} and secure_ipv6
- name: Add SSH keys from github
authorized_key: user=ryansb key=https://github.com/ryansb.keys
when: ansible_user_id == "ryansb"
- name: Add root SSH keys
authorized_key: user=root key=https://github.com/ryansb.keys
sudo: true
+
+ - name: Trust internal CA
+ copy:
+ content: "{{ lookup('file', 'ryansb.com.pem') }}"
+ dest: /etc/pki/ca-trust/source/anchors/ryansb.com.pem
+ owner: root
+ group: root
+ mode: "0644"
+ sudo: true
+ - name: load cert into trust store
+ shell: update-ca-trust
+ become: true | 12 | 0.521739 | 12 | 0 |
77b5f81b67df21dcd96d2aac235b6b11aca0d26c | app/assets/javascripts/chapters.js | app/assets/javascripts/chapters.js | function create_section_listing() {
$('div#sidebar h3').click(function(e) {
window.scrollTo(0, 0);
});
$('.section_title').each(function (i, e) {
$("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + (e.innerText || e.innerContent) + "</a>");
just_added = $("div#sidebar #section_listing").children().last();
if (e.tagName == "H2") {
just_added.addClass("major");
}
else {
just_added.addClass("minor");
}
});
$('#sidebar a').click(function(e) {
section_id = $(this).attr("id").replace("_link", "");
window.scrollTo(0, $("#" + section_id)[0].offsetTop);
})
} | function create_section_listing() {
$('div#sidebar h3').click(function(e) {
window.scrollTo(0, 0);
});
$('.section_title').each(function (i, e) {
var content = e.innerText || e.textContent
$("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + content + "</a>");
just_added = $("div#sidebar #section_listing").children().last();
if (e.tagName == "H2") {
just_added.addClass("major");
}
else {
just_added.addClass("minor");
}
});
$('#sidebar a').click(function(e) {
section_id = $(this).attr("id").replace("_link", "");
window.scrollTo(0, $("#" + section_id)[0].offsetTop);
})
} | Improve JavaScript for generating section listing | Improve JavaScript for generating section listing
| JavaScript | mit | yannvery/twist,radar/twist,radar/twist,doug-c/mttwist,RealSilo/twist,doug-c/mttwist,yannvery/twist,doug-c/mttwist,radar/twist,yannvery/twist,RealSilo/twist,RealSilo/twist | javascript | ## Code Before:
function create_section_listing() {
$('div#sidebar h3').click(function(e) {
window.scrollTo(0, 0);
});
$('.section_title').each(function (i, e) {
$("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + (e.innerText || e.innerContent) + "</a>");
just_added = $("div#sidebar #section_listing").children().last();
if (e.tagName == "H2") {
just_added.addClass("major");
}
else {
just_added.addClass("minor");
}
});
$('#sidebar a').click(function(e) {
section_id = $(this).attr("id").replace("_link", "");
window.scrollTo(0, $("#" + section_id)[0].offsetTop);
})
}
## Instruction:
Improve JavaScript for generating section listing
## Code After:
function create_section_listing() {
$('div#sidebar h3').click(function(e) {
window.scrollTo(0, 0);
});
$('.section_title').each(function (i, e) {
var content = e.innerText || e.textContent
$("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + content + "</a>");
just_added = $("div#sidebar #section_listing").children().last();
if (e.tagName == "H2") {
just_added.addClass("major");
}
else {
just_added.addClass("minor");
}
});
$('#sidebar a').click(function(e) {
section_id = $(this).attr("id").replace("_link", "");
window.scrollTo(0, $("#" + section_id)[0].offsetTop);
})
} | function create_section_listing() {
$('div#sidebar h3').click(function(e) {
window.scrollTo(0, 0);
});
$('.section_title').each(function (i, e) {
+ var content = e.innerText || e.textContent
- $("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + (e.innerText || e.innerContent) + "</a>");
? ^^^^^^^^^^^^^^^^^^^^^^^^ -
+ $("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + content + "</a>");
? ^
just_added = $("div#sidebar #section_listing").children().last();
if (e.tagName == "H2") {
just_added.addClass("major");
}
else {
just_added.addClass("minor");
}
});
$('#sidebar a').click(function(e) {
section_id = $(this).attr("id").replace("_link", "");
window.scrollTo(0, $("#" + section_id)[0].offsetTop);
})
} | 3 | 0.142857 | 2 | 1 |
469198f9950e1f89a6f0f8d58385c960a3697c66 | test/CodeGen/X86/2008-04-02-unnamedEH.ll | test/CodeGen/X86/2008-04-02-unnamedEH.ll | ; RUN: llc < %s -disable-cfi | FileCheck %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin8"
define void @_Z3bazv() {
call void @0( ) ; <i32>:1 [#uses=0]
ret void
}
define internal void @""() {
call i32 @_Z3barv( ) ; <i32>:4 [#uses=1]
ret void
}
; CHECK: unnamed_1.eh
declare i32 @_Z3barv()
| ; RUN: llc < %s | FileCheck %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin8"
define void @_Z3bazv() {
call void @0( ) ; <i32>:1 [#uses=0]
ret void
}
define internal void @""() {
call i32 @_Z3barv( ) ; <i32>:4 [#uses=1]
ret void
}
; CHECK: ___unnamed_1:
; CHECK-NEXT: .cfi_startproc
declare i32 @_Z3barv()
| Convert test to using cfi. | Convert test to using cfi.
An unnamed global in llvm still produces a regular symbol.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@204488 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | bsd-2-clause | chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm | llvm | ## Code Before:
; RUN: llc < %s -disable-cfi | FileCheck %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin8"
define void @_Z3bazv() {
call void @0( ) ; <i32>:1 [#uses=0]
ret void
}
define internal void @""() {
call i32 @_Z3barv( ) ; <i32>:4 [#uses=1]
ret void
}
; CHECK: unnamed_1.eh
declare i32 @_Z3barv()
## Instruction:
Convert test to using cfi.
An unnamed global in llvm still produces a regular symbol.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@204488 91177308-0d34-0410-b5e6-96231b3b80d8
## Code After:
; RUN: llc < %s | FileCheck %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin8"
define void @_Z3bazv() {
call void @0( ) ; <i32>:1 [#uses=0]
ret void
}
define internal void @""() {
call i32 @_Z3barv( ) ; <i32>:4 [#uses=1]
ret void
}
; CHECK: ___unnamed_1:
; CHECK-NEXT: .cfi_startproc
declare i32 @_Z3barv()
| - ; RUN: llc < %s -disable-cfi | FileCheck %s
? -------------
+ ; RUN: llc < %s | FileCheck %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin8"
define void @_Z3bazv() {
call void @0( ) ; <i32>:1 [#uses=0]
ret void
}
define internal void @""() {
call i32 @_Z3barv( ) ; <i32>:4 [#uses=1]
ret void
}
+
- ; CHECK: unnamed_1.eh
? ^^^
+ ; CHECK: ___unnamed_1:
? ++++++++ ^
+ ; CHECK-NEXT: .cfi_startproc
declare i32 @_Z3barv() | 6 | 0.375 | 4 | 2 |
3192792ee3a823b23db40e69751cc65df7e9b862 | app/src/lib/dispatcher/error-handlers.ts | app/src/lib/dispatcher/error-handlers.ts | import { Dispatcher } from './index'
import { GitError } from '../git/core'
import { GitError as GitErrorType } from 'git-kitchen-sink'
import { PopupType as popupType } from '../app-state'
/** Handle errors by presenting them. */
export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
await dispatcher.presentError(error)
return null
}
//** Handle errors by giving user actions to complete. */
export async function performGitActionErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
if (error instanceof GitError) {
switch (error.result.gitError) {
case GitErrorType.HTTPSAuthenticationFailed: {
await dispatcher.showPopup({ type: popupType.Signin })
break
}
}
return null
}
return error
}
| import { Dispatcher } from './index'
import { GitError } from '../git/core'
import { GitError as GitErrorType } from 'git-kitchen-sink'
import { PopupType as popupType } from '../app-state'
/** Handle errors by presenting them. */
export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
await dispatcher.presentError(error)
return null
}
//** Handle errors by giving user actions to complete. */
export async function performGitActionErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
if (error instanceof GitError) {
switch (error.result.gitError) {
case GitErrorType.HTTPSAuthenticationFailed: {
await dispatcher.showPopup({ type: popupType.Preferences })
break
}
}
return null
}
return error
}
| Update popup type for error handler | Update popup type for error handler
| TypeScript | mit | artivilla/desktop,shiftkey/desktop,artivilla/desktop,hjobrien/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,shiftkey/desktop,gengjiawen/desktop,j-f1/forked-desktop,gengjiawen/desktop,gengjiawen/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,hjobrien/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,j-f1/forked-desktop | typescript | ## Code Before:
import { Dispatcher } from './index'
import { GitError } from '../git/core'
import { GitError as GitErrorType } from 'git-kitchen-sink'
import { PopupType as popupType } from '../app-state'
/** Handle errors by presenting them. */
export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
await dispatcher.presentError(error)
return null
}
//** Handle errors by giving user actions to complete. */
export async function performGitActionErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
if (error instanceof GitError) {
switch (error.result.gitError) {
case GitErrorType.HTTPSAuthenticationFailed: {
await dispatcher.showPopup({ type: popupType.Signin })
break
}
}
return null
}
return error
}
## Instruction:
Update popup type for error handler
## Code After:
import { Dispatcher } from './index'
import { GitError } from '../git/core'
import { GitError as GitErrorType } from 'git-kitchen-sink'
import { PopupType as popupType } from '../app-state'
/** Handle errors by presenting them. */
export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
await dispatcher.presentError(error)
return null
}
//** Handle errors by giving user actions to complete. */
export async function performGitActionErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
if (error instanceof GitError) {
switch (error.result.gitError) {
case GitErrorType.HTTPSAuthenticationFailed: {
await dispatcher.showPopup({ type: popupType.Preferences })
break
}
}
return null
}
return error
}
| import { Dispatcher } from './index'
import { GitError } from '../git/core'
import { GitError as GitErrorType } from 'git-kitchen-sink'
import { PopupType as popupType } from '../app-state'
/** Handle errors by presenting them. */
export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
await dispatcher.presentError(error)
return null
}
//** Handle errors by giving user actions to complete. */
export async function performGitActionErrorHandler(error: Error, dispatcher: Dispatcher): Promise<Error | null> {
if (error instanceof GitError) {
switch (error.result.gitError) {
case GitErrorType.HTTPSAuthenticationFailed: {
- await dispatcher.showPopup({ type: popupType.Signin })
? ^^^ ^^
+ await dispatcher.showPopup({ type: popupType.Preferences })
? ^^^^^^^ ^^^
break
}
}
return null
}
return error
} | 2 | 0.074074 | 1 | 1 |
a421a1f9313b4c1809cff77bf8be3e93394eab1d | spec/features/example_feature_spec.rb | spec/features/example_feature_spec.rb | require "spec_helper"
RSpec.feature "Example Feature Spec" do
scenario "When using Rack Test, it works" do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
scenario "When using Chrome, it works", js: true do
visit "/users"
expect(page).to have_text("foobar")
end
end
| require "spec_helper"
RSpec.feature "Example Feature Spec" do
scenario "When using Rack Test, it works" do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
scenario "When using Chrome, it works", js: true do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
end
| Correct expectation in feature spec | Correct expectation in feature spec
| Ruby | mit | concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse | ruby | ## Code Before:
require "spec_helper"
RSpec.feature "Example Feature Spec" do
scenario "When using Rack Test, it works" do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
scenario "When using Chrome, it works", js: true do
visit "/users"
expect(page).to have_text("foobar")
end
end
## Instruction:
Correct expectation in feature spec
## Code After:
require "spec_helper"
RSpec.feature "Example Feature Spec" do
scenario "When using Rack Test, it works" do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
scenario "When using Chrome, it works", js: true do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
end
| require "spec_helper"
RSpec.feature "Example Feature Spec" do
scenario "When using Rack Test, it works" do
visit "/users"
expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
scenario "When using Chrome, it works", js: true do
visit "/users"
- expect(page).to have_text("foobar")
+ expect(page).to have_text("Log in with your Rails Portal (development) account.")
end
end | 2 | 0.153846 | 1 | 1 |
2bc9a00ef4dafae696c6b04465020b73db01e096 | features/ci.feature | features/ci.feature | Feature: CI
Background:
Given the temp directory is clean
And I am in the temp directory
Scenario: Installing Lobot on a rails3 project
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I run bundle install
And I run the Lobot generator
Then rake reports ci tasks as being available
@aws
Scenario: Install Jenkins CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "Jenkins"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then CI is green
@aws
Scenario: Install TeamCity CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "TeamCity"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then TeamCity is installed
| Feature: CI
Background:
Given the temp directory is clean
And I am in the temp directory
Scenario: Installing Lobot on a rails3 project
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I run bundle install
And I run the Lobot generator for "Jenkins"
Then rake reports ci tasks as being available
@aws
Scenario: Install Jenkins CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "Jenkins"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then CI is green
@aws
Scenario: Install TeamCity CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "TeamCity"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then TeamCity is installed
| Update feature to match new generator param | Update feature to match new generator param | Cucumber | mit | pivotal/lobot,pivotal/lobot,pivotal/ciborg,pivotal/ciborg,pivotal/ciborg | cucumber | ## Code Before:
Feature: CI
Background:
Given the temp directory is clean
And I am in the temp directory
Scenario: Installing Lobot on a rails3 project
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I run bundle install
And I run the Lobot generator
Then rake reports ci tasks as being available
@aws
Scenario: Install Jenkins CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "Jenkins"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then CI is green
@aws
Scenario: Install TeamCity CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "TeamCity"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then TeamCity is installed
## Instruction:
Update feature to match new generator param
## Code After:
Feature: CI
Background:
Given the temp directory is clean
And I am in the temp directory
Scenario: Installing Lobot on a rails3 project
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I run bundle install
And I run the Lobot generator for "Jenkins"
Then rake reports ci tasks as being available
@aws
Scenario: Install Jenkins CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "Jenkins"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then CI is green
@aws
Scenario: Install TeamCity CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "TeamCity"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then TeamCity is installed
| Feature: CI
Background:
Given the temp directory is clean
And I am in the temp directory
Scenario: Installing Lobot on a rails3 project
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I run bundle install
- And I run the Lobot generator
+ And I run the Lobot generator for "Jenkins"
? ++++++++++++++
Then rake reports ci tasks as being available
@aws
Scenario: Install Jenkins CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "Jenkins"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then CI is green
@aws
Scenario: Install TeamCity CI on Amazon AWS using new Rails template
When I create a new Rails project
And I vendor Lobot
And I put Lobot in the Gemfile
And I add a gem with an https://github.com source
And I run bundle install
And I run the Lobot generator for "TeamCity"
And I enter my info into the ci.yml file
And I make changes to be committed
And I push to git
And I start the server
And I bootstrap
And I deploy
Then TeamCity is installed | 2 | 0.044444 | 1 | 1 |
0e8072191b3460ef770c55e306ac59d7433aa715 | README.md | README.md |
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not to mention an enjoyable way to pass the time.
> - Justin J. Lehmiller, Ph.D. (2014), *The Psychology of Human Sexuality.* Harvard University: John Wiley & Sons.
# [Wiki](https://github.com/alpha-social-club/alpha-social-development/wiki)
For documentation and functional requirements description, [go to our wiki](https://github.com/alpha-social-club/alpha-social-development/wiki).
Join and contribute. We appreciate it, and never will forget it. |
*More information is available at [alphasocial.club](http://alphasocial.club) blog. Login: `admin / Alpha.Omega`*
## What is it?
Alpha Social Club is a social environment for members to explore their sexuality in non-pornographic context. Sex is one of the most fundamental social activities.
## Key Values and Principles
1. **Sexuality is healthy.**
2. **Sexuality is private.**
3. **Privacy is absolute.**
4. **Club membership is by invitation only.**
5. **Pornographic visual media are not permitted.**
6. **Community governed.**
7. **Membership is free.**
8. **Revenue voluntary donations only.**
9. **Openness and transparency.**
10. **The club is all inclusive.**
## The Use Cases
* **UC1 – Invite Someone**
* **UC2 – Register**
* **UC3 – Browse Listing**
* **UC4 – Log In/Out**
* **UC5 – Edit Profile**
* **UC6 – Search**
* **UC7 – Comment in Blog**
* **UC8 – Participate in Forum**
* **UC9 – Private Group Chat**
## Roadmap
## How to contribute
## License | Update the outline for newly revised documentation. | Update the outline for newly revised documentation.
| Markdown | mit | Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS | markdown | ## Code Before:
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not to mention an enjoyable way to pass the time.
> - Justin J. Lehmiller, Ph.D. (2014), *The Psychology of Human Sexuality.* Harvard University: John Wiley & Sons.
# [Wiki](https://github.com/alpha-social-club/alpha-social-development/wiki)
For documentation and functional requirements description, [go to our wiki](https://github.com/alpha-social-club/alpha-social-development/wiki).
Join and contribute. We appreciate it, and never will forget it.
## Instruction:
Update the outline for newly revised documentation.
## Code After:
*More information is available at [alphasocial.club](http://alphasocial.club) blog. Login: `admin / Alpha.Omega`*
## What is it?
Alpha Social Club is a social environment for members to explore their sexuality in non-pornographic context. Sex is one of the most fundamental social activities.
## Key Values and Principles
1. **Sexuality is healthy.**
2. **Sexuality is private.**
3. **Privacy is absolute.**
4. **Club membership is by invitation only.**
5. **Pornographic visual media are not permitted.**
6. **Community governed.**
7. **Membership is free.**
8. **Revenue voluntary donations only.**
9. **Openness and transparency.**
10. **The club is all inclusive.**
## The Use Cases
* **UC1 – Invite Someone**
* **UC2 – Register**
* **UC3 – Browse Listing**
* **UC4 – Log In/Out**
* **UC5 – Edit Profile**
* **UC6 – Search**
* **UC7 – Comment in Blog**
* **UC8 – Participate in Forum**
* **UC9 – Private Group Chat**
## Roadmap
## How to contribute
## License |
+ *More information is available at [alphasocial.club](http://alphasocial.club) blog. Login: `admin / Alpha.Omega`*
- > Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not to mention an enjoyable way to pass the time.
- > - Justin J. Lehmiller, Ph.D. (2014), *The Psychology of Human Sexuality.* Harvard University: John Wiley & Sons.
- # [Wiki](https://github.com/alpha-social-club/alpha-social-development/wiki)
+ ## What is it?
+ Alpha Social Club is a social environment for members to explore their sexuality in non-pornographic context. Sex is one of the most fundamental social activities.
- For documentation and functional requirements description, [go to our wiki](https://github.com/alpha-social-club/alpha-social-development/wiki).
+ ## Key Values and Principles
+ 1. **Sexuality is healthy.**
- Join and contribute. We appreciate it, and never will forget it.
+
+ 2. **Sexuality is private.**
+
+
+ 3. **Privacy is absolute.**
+
+
+ 4. **Club membership is by invitation only.**
+
+
+ 5. **Pornographic visual media are not permitted.**
+
+
+ 6. **Community governed.**
+
+
+ 7. **Membership is free.**
+
+
+ 8. **Revenue voluntary donations only.**
+
+
+ 9. **Openness and transparency.**
+
+
+ 10. **The club is all inclusive.**
+
+ ## The Use Cases
+ * **UC1 – Invite Someone**
+
+ * **UC2 – Register**
+
+ * **UC3 – Browse Listing**
+
+ * **UC4 – Log In/Out**
+
+ * **UC5 – Edit Profile**
+
+ * **UC6 – Search**
+
+ * **UC7 – Comment in Blog**
+
+ * **UC8 – Participate in Forum**
+
+ * **UC9 – Private Group Chat**
+
+ ## Roadmap
+
+ ## How to contribute
+
+ ## License | 61 | 6.777778 | 56 | 5 |
26e3b85423f5c36aac46c963e8c2ea3ad5d21888 | README.md | README.md | PHP Client for Adobe Connect's API (tested with v9)
==================================================
At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)),
instead, we just implement those that we usually use in our system.
## Installation using [Composer](http://getcomposer.org/)
```bash
$ composer require platforg/adobe-connect
```
## Usage
```php
<?php
require __DIR__ . '/vendor/autoload.php';
$config = new AdobeConnect\Config(
"your-account.adobeconnect.com",
"username@gmail.com",
"password"
);
$client = new AdobeConnect\ApiClient($config);
// Call endpoints
$info = $client->commonInfo();
var_dump($info);
// ...
$scos = $client->scoSearch('term...');
var_dump($scos);
// ...
```
The methods names in the ApiClient class maintain a one-to-one relationship with the AdobeConnect's endpoints (in camelCase instead of hyphen).
Please, see the AdobeConnect\ApiClient for a complete list of endpoints implemented.
Also, you can use/see AdobeConnect\ExtraApiClient for some custom methods.
Frameworks integrations (third-party):
-------------------------------------
- [Laravel](https://github.com/asimov-express/laravel-adobe-connect)
Todo:
-----
- Add unit test.
- Implement more methods.
- Add Documentation.
- - -
*Note: We don't have any relation with Adobe.*
| PHP Client for Adobe Connect's API (tested with v9)
==================================================
At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)),
instead, we just implement those that we usually use in our system.
## Installation using [Composer](http://getcomposer.org/)
```bash
$ composer require platforg/adobe-connect
```
## Usage
```php
<?php
require __DIR__ . '/vendor/autoload.php';
$config = new AdobeConnect\Config(
"your-account.adobeconnect.com",
"username@gmail.com",
"password"
);
$client = new AdobeConnect\ApiClient($config);
// Call endpoints
$info = $client->commonInfo();
var_dump($info);
// ...
$scos = $client->scoSearch('term...');
var_dump($scos);
// ...
```
The methods names in the ApiClient class maintain a one-to-one relationship with the [AdobeConnect's endpoints](https://helpx.adobe.com/adobe-connect/webservices/topics/action-reference.html) (in camelCase instead of hyphen).
Please, see the AdobeConnect\ApiClient for a complete list of endpoints implemented.
Also, you can use/see AdobeConnect\ExtraApiClient for some custom methods.
Frameworks integrations (third-party):
-------------------------------------
- [Laravel](https://github.com/asimov-express/laravel-adobe-connect)
Todo:
-----
- Add unit test.
- Implement more methods.
- Add Documentation.
- - -
*Note: We don't have any relation with Adobe.*
| Add link to AC API reference | Add link to AC API reference
| Markdown | apache-2.0 | platforg/adobe-connect | markdown | ## Code Before:
PHP Client for Adobe Connect's API (tested with v9)
==================================================
At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)),
instead, we just implement those that we usually use in our system.
## Installation using [Composer](http://getcomposer.org/)
```bash
$ composer require platforg/adobe-connect
```
## Usage
```php
<?php
require __DIR__ . '/vendor/autoload.php';
$config = new AdobeConnect\Config(
"your-account.adobeconnect.com",
"username@gmail.com",
"password"
);
$client = new AdobeConnect\ApiClient($config);
// Call endpoints
$info = $client->commonInfo();
var_dump($info);
// ...
$scos = $client->scoSearch('term...');
var_dump($scos);
// ...
```
The methods names in the ApiClient class maintain a one-to-one relationship with the AdobeConnect's endpoints (in camelCase instead of hyphen).
Please, see the AdobeConnect\ApiClient for a complete list of endpoints implemented.
Also, you can use/see AdobeConnect\ExtraApiClient for some custom methods.
Frameworks integrations (third-party):
-------------------------------------
- [Laravel](https://github.com/asimov-express/laravel-adobe-connect)
Todo:
-----
- Add unit test.
- Implement more methods.
- Add Documentation.
- - -
*Note: We don't have any relation with Adobe.*
## Instruction:
Add link to AC API reference
## Code After:
PHP Client for Adobe Connect's API (tested with v9)
==================================================
At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)),
instead, we just implement those that we usually use in our system.
## Installation using [Composer](http://getcomposer.org/)
```bash
$ composer require platforg/adobe-connect
```
## Usage
```php
<?php
require __DIR__ . '/vendor/autoload.php';
$config = new AdobeConnect\Config(
"your-account.adobeconnect.com",
"username@gmail.com",
"password"
);
$client = new AdobeConnect\ApiClient($config);
// Call endpoints
$info = $client->commonInfo();
var_dump($info);
// ...
$scos = $client->scoSearch('term...');
var_dump($scos);
// ...
```
The methods names in the ApiClient class maintain a one-to-one relationship with the [AdobeConnect's endpoints](https://helpx.adobe.com/adobe-connect/webservices/topics/action-reference.html) (in camelCase instead of hyphen).
Please, see the AdobeConnect\ApiClient for a complete list of endpoints implemented.
Also, you can use/see AdobeConnect\ExtraApiClient for some custom methods.
Frameworks integrations (third-party):
-------------------------------------
- [Laravel](https://github.com/asimov-express/laravel-adobe-connect)
Todo:
-----
- Add unit test.
- Implement more methods.
- Add Documentation.
- - -
*Note: We don't have any relation with Adobe.*
| PHP Client for Adobe Connect's API (tested with v9)
==================================================
At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)),
instead, we just implement those that we usually use in our system.
## Installation using [Composer](http://getcomposer.org/)
```bash
$ composer require platforg/adobe-connect
```
## Usage
```php
<?php
require __DIR__ . '/vendor/autoload.php';
$config = new AdobeConnect\Config(
"your-account.adobeconnect.com",
"username@gmail.com",
"password"
);
$client = new AdobeConnect\ApiClient($config);
// Call endpoints
$info = $client->commonInfo();
var_dump($info);
// ...
$scos = $client->scoSearch('term...');
var_dump($scos);
// ...
```
- The methods names in the ApiClient class maintain a one-to-one relationship with the AdobeConnect's endpoints (in camelCase instead of hyphen).
? ^
+ The methods names in the ApiClient class maintain a one-to-one relationship with the [AdobeConnect's endpoints](https://helpx.adobe.com/adobe-connect/webservices/topics/action-reference.html) (in camelCase instead of hyphen).
? + ^ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please, see the AdobeConnect\ApiClient for a complete list of endpoints implemented.
Also, you can use/see AdobeConnect\ExtraApiClient for some custom methods.
Frameworks integrations (third-party):
-------------------------------------
- [Laravel](https://github.com/asimov-express/laravel-adobe-connect)
Todo:
-----
- Add unit test.
- Implement more methods.
- Add Documentation.
- - -
*Note: We don't have any relation with Adobe.* | 2 | 0.037037 | 1 | 1 |
c91ca5fd09f36ba446af376f4634dd23015f46d0 | spec/support/json_request_helper.rb | spec/support/json_request_helper.rb | module JSONRequestHelper
def put_json(path, attrs, headers = {})
put path, attrs.to_json, {"Content-Type" => "application/json"}.merge(headers)
end
end
RSpec.configuration.include JSONRequestHelper, :type => :request
| module JSONRequestHelper
def put_json(path, attrs, headers = {})
put path, attrs.to_json, {"CONTENT_TYPE" => "application/json"}.merge(headers)
end
end
RSpec.configuration.include JSONRequestHelper, :type => :request
| Fix put_json test helper to work with Rails 3. | Fix put_json test helper to work with Rails 3.
Rails 3 integration stuff has some special handling for content-type,
but this is done before the case etc. is normalised, so if this doesn't
match the case that Rails uses internally, oddness ensues.
| Ruby | mit | alphagov/router-api,alphagov/router-api | ruby | ## Code Before:
module JSONRequestHelper
def put_json(path, attrs, headers = {})
put path, attrs.to_json, {"Content-Type" => "application/json"}.merge(headers)
end
end
RSpec.configuration.include JSONRequestHelper, :type => :request
## Instruction:
Fix put_json test helper to work with Rails 3.
Rails 3 integration stuff has some special handling for content-type,
but this is done before the case etc. is normalised, so if this doesn't
match the case that Rails uses internally, oddness ensues.
## Code After:
module JSONRequestHelper
def put_json(path, attrs, headers = {})
put path, attrs.to_json, {"CONTENT_TYPE" => "application/json"}.merge(headers)
end
end
RSpec.configuration.include JSONRequestHelper, :type => :request
| module JSONRequestHelper
def put_json(path, attrs, headers = {})
- put path, attrs.to_json, {"Content-Type" => "application/json"}.merge(headers)
? ^^^^^^^ ^^^
+ put path, attrs.to_json, {"CONTENT_TYPE" => "application/json"}.merge(headers)
? ^^ ^^^^^^^^
end
end
RSpec.configuration.include JSONRequestHelper, :type => :request | 2 | 0.285714 | 1 | 1 |
49a1f21a090abf4e2214d431766e11769a0abec5 | website/source/docs/providers/aws/r/db_subnet_group.html.markdown | website/source/docs/providers/aws/r/db_subnet_group.html.markdown | ---
layout: "aws"
page_title: "AWS: aws_db_subnet_group"
sidebar_current: "docs-aws-resource-db-subnet-group"
description: |-
Provides an RDS DB subnet group resource.
---
# aws\_db\_subnet\_group
Provides an RDS DB subnet group resource.
## Example Usage
```
resource "aws_db_subnet_group" "default" {
name = "main"
description = "Our main group of subnets"
subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the DB security group.
* `description` - (Required) The description of the DB security group.
* `subnet_ids` - (Required) A list of ingress rules.
## Attributes Reference
The following attributes are exported:
* `id` - The db subnet group name.
| ---
layout: "aws"
page_title: "AWS: aws_db_subnet_group"
sidebar_current: "docs-aws-resource-db-subnet-group"
description: |-
Provides an RDS DB subnet group resource.
---
# aws\_db\_subnet\_group
Provides an RDS DB subnet group resource.
## Example Usage
```
resource "aws_db_subnet_group" "default" {
name = "main"
description = "Our main group of subnets"
subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the DB subnet group.
* `description` - (Required) The description of the DB subnet group.
* `subnet_ids` - (Required) A list of VPC subnet IDs.
## Attributes Reference
The following attributes are exported:
* `id` - The db subnet group name.
| Use correct terms in DB Subnet Group docs | Use correct terms in DB Subnet Group docs
| Markdown | mpl-2.0 | apparentlymart/terraform,grubernaut/terraform,JDiPierro/terraform,fromonesrc/terraform,cwood/terraform,sorenmat/terraform,psytale/terraform,ryon/terraform,huydinhle/terraform,rnaveiras/terraform,crunchywelch/terraform,10thmagnitude/terraform,ephemeralsnow/terraform,hrach/hashicorp-terraform,TStraub-rms/terraform,monkeylittleinc/terraform,gechr/terraform,miketheman/terraform,svanharmelen/terraform,jkinred/terraform,ross/terraform,ashishth09/terraform,GannettDigital/terraform,aybabtme/terraform,zero-below/terraform,Felivel/terraform,mixacha/terraform,godmodelabs/terraform,squarescale/terraform,ewypych/terraform,dagnello/terraform,PeteGoo/terraform,caiofilipini/terraform,dharrisio/terraform,dharrisio/terraform,ordinaryexperts/terraform,GannettDigital/terraform,mattray/terraform,ColinHebert/terraform,mafrosis/terraform,pradeepchhetri/terraform,lusis/terraform,thegedge/terraform,Shopify/terraform,paulbouwer/terraform,djworth/terraform,clearcare/terraform,Felivel/terraform,maxenglander/terraform,10thmagnitude/terraform,jammycakes/terraform,dn1s/terraform,xetorthio/terraform,glenjamin/terraform,murillodigital/terraform,getyourguide/terraform,carinadigital/terraform,fluxrad/terraform,paultyng/terraform,schans/terraform,f440/terraform,shanielh/terraform,HotelsDotCom/terraform,ross/terraform,DJRH/terraform,mkuzmin/terraform,mathematician/terraform,pearkes/terraform,watters/terraform,jcaugust/terraform,ephemeralsnow/terraform,codeinthehole/terraform,Ninir/terraform,dabdine-r7/terraform,partamonov/terraform,ericwestfall/terraform,turkenh/terraform,cstamm13/terraform,mbrukman/terraform,jrperritt/terraform,sorenmat/terraform,mkuzmin/terraform,jamtur01/terraform,matt-deboer/terraform,Test-Betta-Inc/literate-winner,zxjinn/terraform,vrenjith/terraform,henrikhodne/terraform,tmshn/terraform,heimweh/terraform,ericwestfall/terraform,jkinred/terraform,xied75/terraform,opsidian/terraform,donaldguy/terraform,partamonov/terraform,AlexanderEkdahl/terraform,drebes/terraform,mhlias/terraform,KensoDev/terraform,ve-interactive/terraform,glenjamin/terraform,golvteppe/terraform,miketheman/terraform,fromonesrc/terraform,travertischio/terraform,mnylen/terraform,gh-mlfowler/terraform,grasshoppergroup/terraform,BobVanB/terraform,DualSpark/terraform,jeroendekorte/terraform,ReleaseQueue/terraform,magnumopus/terraform,ve-interactive/terraform,kristinn/terraform,ryansroberts/terraform,gh-mlfowler/terraform,calvinfo/terraform,vincer/terraform,10thmagnitude/terraform,mathematician/terraform,ddegoede/terraform,JDiPierro/terraform,niclic/terraform,ddegoede/terraform,rrudduck/terraform,tmshn/terraform,semarj/terraform,Ensighten/terraform,rjeczalik/terraform,ValFadeev/terraform,johnewart/terraform,virajs/terraform,golvteppe/terraform,mafrosis/terraform,PeteGoo/terraform,cwood/terraform,sobrinho/terraform,schans/terraform,pmoust/terraform,chrislovecnm/terraform,mwarkentin/terraform,jtopjian/terraform,lusis/terraform,dlsniper/terraform,glerchundi/terraform,vincer/terraform,ericwestfall/terraform,hartzell/terraform,larsla/terraform,Boran/terraform,murillodigital/terraform,kjmkznr/terraform,samdunne/terraform,antonbabenko/terraform,dougneal/terraform,ryon/terraform,Ninir/terraform,tombuildsstuff/terraform,pradeepbhadani/terraform,hpcloud/terraform,justnom/terraform,optimisticanshul/terraform,huydinhle/terraform,brunomcustodio/terraform,hrach/hashicorp-terraform,jrnt30/terraform,mathieuherbert/terraform,srikalyan/terraform,cristicalin/terraform,virajs/terraform,tehnorm/terraform,richardc/terraform,dougneal/terraform,Felivel/terraform,maxenglander/terraform,mattray/terraform,lstolyarov/terraform,clstokes/terraform,TStraub-rms/terraform,HotelsDotCom/terraform,yamamoto-febc/terraform,JrCs/terraform,scalp42/terraform,zero-below/terraform,gazoakley/terraform,savaki/terraform,savaki/terraform,ordinaryexperts/terraform,cakoose/terraform,hpcloud/terraform,koding/terraform,optimisticanshul/terraform,ewbankkit/terraform,stack72/terraform,antonbabenko/terraform,kl4w/terraform,magnumopus/terraform,ewypych/terraform,bitglue/terraform,vancluever/terraform,djworth/terraform,ReleaseQueue/terraform,odise/terraform,koding/terraform,kjmkznr/terraform,scalp42/terraform,nathanielks/terraform,glerchundi/terraform,ZZelle/terraform,simar7/terraform,yanndegat/terraform,bitglue/terraform,foragerr/terraform,samdunne/terraform,cmorent/terraform,fatmcgav/terraform,Wambosa/terraform,johnewart/terraform,VladRassokhin/terraform,jianyuan/terraform,PavelVanecek/terraform,ve-interactive/terraform,kristinn/terraform,nathanielks/terraform,stack72/terraform,grange74/terraform,Wambosa/terraform,randomvariable/terraform,JDiPierro/terraform,matt-deboer/terraform,dpetzold/terraform,codeinthehole/terraform,ZZelle/terraform,dpaq/terraform,BobVanB/terraform,ChloeTigre/terraform,squarescale/terraform,lukaszkorecki/terraform,dharrisio/terraform,mikesplain/terraform,aznashwan/terraform,luis-silva/terraform,mrsn/terraform,bensojona/terraform,DevoKun/terraform,ack/terraform,aybabtme/terraform,wowgroup/terraform,ralph-tice/terraform,ewdurbin/terraform,saulshanabrook/terraform,lifesum/terraform,zero-below/terraform,clstokes/terraform,dougneal/terraform,DJRH/terraform,pryorda/terraform,stayup-io/terraform,dgolja/terraform,dpaq/terraform,goudvisje/terraform,ve-interactive/terraform,taliesins/terraform,samdunne/terraform,keen99/terraform,carinadigital/terraform,rhyas/terraform,cloudnautique/terraform,mbfrahry/terraform,appbricks/ab-terraform-build,TheWeatherCompany/terraform,lukaszkorecki/terraform,aybabtme/terraform,aybabtme/terraform,xsellier/terraform,MerlinDMC/terraform,rjeczalik/terraform,PeoplePerHour/terraform,lukaszkorecki/terraform,ack/terraform,jamtur01/terraform,sobrinho/terraform,ajvb/terraform,pearkes/terraform,bitglue/terraform,f440/terraform,ZZelle/terraform,alphagov/terraform,tmshn/terraform,miketheman/terraform,mevansam/terraform,peterbeams/terraform,StephenWeatherford/terraform,sparkprime/terraform,ColinHebert/terraform,travertischio/terraform,watters/terraform,10thmagnitude/terraform,displague/terraform,svanharmelen/terraform,btobolaski/terraform,paulbouwer/terraform,Ticketmaster/terraform,jedineeper/terraform,hngkr/terraform,rjeczalik/terraform,zachgersh/terraform,pgray/terraform,turkenh/terraform,finanzcheck/terraform,appbricks/ab-terraform-build,kristinn/terraform,odise/terraform,grasshoppergroup/terraform,crunchywelch/terraform,pradeepbhadani/terraform,nathanielks/terraform,lwander/terraform,donaldguy/terraform,stack72/terraform,mhlias/terraform,rrudduck/terraform,evalphobia/saas-ci-performance-compare-terraform,carinadigital/terraform,chrislovecnm/terraform,DualSpark/terraform,ericwestfall/terraform,afreyman/terraform,lifesum/terraform,evandbrown/terraform,markpeek/terraform,heimweh/terraform,dwradcliffe/terraform,tamsky/terraform,pradeepchhetri/terraform,mattupstate/terraform,whiskeyjay/terraform,acm1/terraform,heimweh/terraform,Wambosa/terraform,vrenjith/terraform,cloudnautique/terraform,jammycakes/terraform,Ticketmaster/terraform,pdube/terraform,sarguru/terraform,sl1pm4t/terraform,matsuzj/terraform,dabdine-r7/terraform,nathanielks/terraform,alphagov/terraform,ColinHebert/terraform,brandontosch/terraform,zachgersh/terraform,nlamirault/terraform,zpatrick/terraform,ctavan/terraform,glerchundi/terraform,catsby/terraform,gettyimages/terraform,KensoDev/terraform,pdecat/terraform,clstokes/terraform,odise/terraform,superseb/terraform,printedheart/terraform,getyourguide/terraform,ralph-tice/terraform,jeroendekorte/terraform,dtan4/terraform,monkeylittleinc/terraform,joelmoss/terraform,ashishth09/terraform,watters/terraform,ewdurbin/terraform,tmshn/terraform,tehnorm/terraform,rakutentech/terraform,mtougeron/terraform,kyhavlov/terraform,cristicalin/terraform,brandontosch/terraform,sorenmat/terraform,drebes/terraform,clstokes/terraform,BedeGaming/terraform,xied75/terraform,cakoose/terraform,apparentlymart/terraform,thegedge/terraform,ross/terraform,BobVanB/terraform,atlassian/terraform,kyhavlov/terraform,whiskeyjay/terraform,mrsn/terraform,JrCs/terraform,dkalleg/terraform,larsla/terraform,dabdine-r7/terraform,rakutentech/terraform,sl1pm4t/terraform,iljaskevic/terraform,DevoKun/terraform,mevansam/terraform,mevansam/terraform,mbrukman/terraform,fromonesrc/terraform,goudvisje/terraform,ColinHebert/terraform,rnaveiras/terraform,mathieuherbert/terraform,clearcare/terraform,zxjinn/terraform,uber/terraform,tmtk75/terraform,jamtur01/terraform,yamamoto-febc/terraform,jianyuan/terraform,DualSpark/terraform,travertischio/terraform,brunomcustodio/terraform,gh-mlfowler/terraform,tpoindessous/terraform,pdecat/terraform,yamamoto-febc/terraform,fatmcgav/terraform,atlassian/terraform,mikesplain/terraform,bensojona/terraform,cmorent/terraform,superseb/terraform,Boran/terraform,chrisjharding/terraform,odise/terraform,hooklift/terraform,virajs/terraform,Sixgill/terraform,samdunne/terraform,TheWeatherCompany/terraform,tamsky/terraform,grubernaut/terraform,sparkprime/terraform,uber/terraform,superseb/terraform,rkhozinov/terraform,maxenglander/terraform,trumant/terraform,hngkr/terraform,matsuzj/terraform,mwarkentin/terraform,whiskeyjay/terraform,Ensighten/terraform,xsellier/terraform,pradeepchhetri/terraform,evandbrown/terraform,ryansroberts/terraform,foragerr/terraform,sarguru/terraform,kwilczynski/terraform,acm1/terraform,catsby/terraform,nlamirault/terraform,djworth/terraform,TimeIncOSS/terraform,grange74/terraform,harijayms/terraform,virajs/terraform,jtopper/terraform,lifesum/terraform,carinadigital/terraform,GrayCoder/terraform,jfchevrette/terraform,ricardclau/terraform,gettyimages/terraform,zpatrick/terraform,AlexanderEkdahl/terraform,mixacha/terraform,sukritpol/terraform,ddegoede/terraform,KensoDev/terraform,Sixgill/terraform,HotelsDotCom/terraform,mbrukman/terraform,pryorda/terraform,tommynsong/terraform,cmorent/terraform,fatih/terraform,KensoDev/terraform,jtopper/terraform,kyhavlov/terraform,dharrisio/terraform,ewypych/terraform,zpatrick/terraform,josephholsten/terraform,Shopify/terraform,displague/terraform,jrperritt/terraform,cakoose/terraform,joelmoss/terraform,saulshanabrook/terraform,rhyas/terraform,StephenWeatherford/terraform,dagnello/terraform,jhedev/terraform,lstolyarov/terraform,zachgersh/terraform,semarj/terraform,sukritpol/terraform,MerlinDMC/terraform,PaulAtkins/terraform,printedheart/terraform,fluxrad/terraform,dtan4/terraform,squarescale/terraform,Boran/terraform,Zordrak/terraform,scalp42/terraform,superseb/terraform,DualSpark/terraform,glenjamin/terraform,stack72/terraform,tombuildsstuff/terraform,mevansam/terraform,Zordrak/terraform,ricardclau/terraform,ashishth09/terraform,HotelsDotCom/terraform,mbfrahry/terraform,henrikhodne/terraform,dpaq/terraform,mafrosis/terraform,atlassian/terraform,randomvariable/terraform,jtopper/terraform,Test-Betta-Inc/literate-winner,sparkprime/terraform,josephholsten/terraform,cnicolov/terraform,trumant/terraform,TimeIncOSS/terraform,ralph-tice/terraform,heimweh/terraform,gettyimages/terraform,rrudduck/terraform,mnylen/terraform,rakutentech/terraform,gechr/terraform,hartzell/terraform,glenjamin/terraform,spuder/terraform,iansheridan/terraform,jeroendekorte/terraform,kwilczynski/terraform,ChloeTigre/terraform,zero-below/terraform,borisroman/terraform,brianantonelli/terraform,hrach/hashicorp-terraform,tpoindessous/terraform,donaldguy/terraform,jianyuan/terraform,dkalleg/terraform,mkuzmin/terraform,cmorent/terraform,bensojona/terraform,Ensighten/terraform,chrislovecnm/terraform,fatih/terraform,rjeczalik/terraform,xetorthio/terraform,joelmoss/terraform,tpounds/terraform,PavelVanecek/terraform,luis-silva/terraform,matt-deboer/terraform,thegedge/terraform,daveadams/terraform,GannettDigital/terraform,niclic/terraform,f440/terraform,GrayCoder/terraform,samdunne/terraform,BedeGaming/terraform,dwradcliffe/terraform,GannettDigital/terraform,markpeek/terraform,vancluever/terraform,jhedev/terraform,justnom/terraform,hooklift/terraform,Shopify/terraform,youhong316/terraform,zxjinn/terraform,jrb/terraform,cmorent/terraform,btobolaski/terraform,jcaugust/terraform,mnylen/terraform,mixacha/terraform,cwood/terraform,henrikhodne/terraform,vrenjith/terraform,hngkr/terraform,grange74/terraform,kevinc0825/terraform,BedeGaming/terraform,dkalleg/terraform,gechr/terraform,markpeek/terraform,ralph-tice/terraform,paybyphone/terraform,lifesum/terraform,lwander/terraform,tpoindessous/terraform,tpoindessous/terraform,fatih/terraform,PeoplePerHour/terraform,miketheman/terraform,gh-mlfowler/terraform,pearkes/terraform,simar7/terraform,Zordrak/terraform,xsellier/terraform,grange74/terraform,PaulAtkins/terraform,ctavan/terraform,psytale/terraform,fluxrad/terraform,whiskeyjay/terraform,yamamoto-febc/terraform,odise/terraform,billyschmidt/terraform,codeinthehole/terraform,cnicolov/terraform,mwarkentin/terraform,carinadigital/terraform,xetorthio/terraform,Ninir/terraform,tehnorm/terraform,dlsniper/terraform,xsellier/terraform,clearcare/terraform,huydinhle/terraform,acm1/terraform,kjmkznr/terraform,josephholsten/terraform,tpounds/terraform,chrislovecnm/terraform,asedge/terraform,ewbankkit/terraform,PeteGoo/terraform,finanzcheck/terraform,btobolaski/terraform,hashicorp/terraform,jtopjian/terraform,henrikhodne/terraform,afreyman/terraform,ordinaryexperts/terraform,Ensighten/terraform,clearcare/terraform,dn1s/terraform,mattray/terraform,markpeek/terraform,mbfrahry/terraform,mikesplain/terraform,vancluever/terraform,sparkprime/terraform,glenjamin/terraform,vincer/terraform,GrayCoder/terraform,asedge/terraform,turkenh/terraform,afreyman/terraform,vancluever/terraform,keen99/terraform,trumant/terraform,psytale/terraform,vincer/terraform,sobrinho/terraform,shanielh/terraform,ReleaseQueue/terraform,aznashwan/terraform,clstokes/terraform,BedeGaming/terraform,grubernaut/terraform,fromonesrc/terraform,MerlinDMC/terraform,chrisjharding/terraform,rnaveiras/terraform,taliesins/terraform,appbricks/ab-terraform-build,PeteGoo/terraform,dagnello/terraform,billyschmidt/terraform,brunomcustodio/terraform,stack72/terraform,mattupstate/terraform,Shopify/terraform,murillodigital/terraform,virajs/terraform,koding/terraform,taliesins/terraform,jtopper/terraform,grubernaut/terraform,iansheridan/terraform,codeinthehole/terraform,youhong316/terraform,mbfrahry/terraform,kjmkznr/terraform,StephenWeatherford/terraform,JrCs/terraform,mrsn/terraform,grubernaut/terraform,yanndegat/terraform,julia-stripe/terraform,Ticketmaster/terraform,sl1pm4t/terraform,chrisjharding/terraform,schans/terraform,nathanielks/terraform,brianantonelli/terraform,gazoakley/terraform,dlsniper/terraform,pmoust/terraform,trumant/terraform,bradfeehan/terraform,jcaugust/terraform,crunchywelch/terraform,keshavdv/terraform,luis-silva/terraform,pmoust/terraform,julia-stripe/terraform,nlamirault/terraform,peterbeams/terraform,ctavan/terraform,dwradcliffe/terraform,xied75/terraform,mtougeron/terraform,cloudnautique/terraform,ephemeralsnow/terraform,pradeepbhadani/terraform,pdecat/terraform,golvteppe/terraform,BobVanB/terraform,daveadams/terraform,appbricks/ab-terraform-build,cstamm13/terraform,dlsniper/terraform,hartzell/terraform,ReleaseQueue/terraform,Ensighten/terraform,dwradcliffe/terraform,kevinc0825/terraform,keshavdv/terraform,keen99/terraform,paultyng/terraform,dougneal/terraform,glerchundi/terraform,ValFadeev/terraform,jedineeper/terraform,peterbeams/terraform,chrisjharding/terraform,ajvb/terraform,ricardclau/terraform,hashicorp/terraform,antonbabenko/terraform,dpaq/terraform,godmodelabs/terraform,mkuzmin/terraform,lusis/terraform,partamonov/terraform,ZZelle/terraform,dgolja/terraform,fluxrad/terraform,mnylen/terraform,jrperritt/terraform,rhyas/terraform,mtougeron/terraform,sukritpol/terraform,partamonov/terraform,rkhozinov/terraform,dpetzold/terraform,partamonov/terraform,pearkes/terraform,zachgersh/terraform,keshavdv/terraform,jamtur01/terraform,savaki/terraform,ordinaryexperts/terraform,jrnt30/terraform,aznashwan/terraform,bitglue/terraform,stayup-io/terraform,BobVanB/terraform,jfchevrette/terraform,evandbrown/terraform,ephemeralsnow/terraform,Sixgill/terraform,PaulAtkins/terraform,mathieuherbert/terraform,dtan4/terraform,cwood/terraform,f440/terraform,keen99/terraform,ValFadeev/terraform,TheWeatherCompany/terraform,golvteppe/terraform,ajvb/terraform,jtopjian/terraform,iljaskevic/terraform,hngkr/terraform,optimisticanshul/terraform,hpcloud/terraform,sarguru/terraform,fromonesrc/terraform,bradfeehan/terraform,codeinthehole/terraform,tmtk75/terraform,foragerr/terraform,ddegoede/terraform,harijayms/terraform,DevoKun/terraform,glerchundi/terraform,zxjinn/terraform,iJoinSolutions/terraform,tehnorm/terraform,wowgroup/terraform,mhlias/terraform,mattupstate/terraform,pradeepchhetri/terraform,caiofilipini/terraform,turkenh/terraform,ericwestfall/terraform,ewdurbin/terraform,borisroman/terraform,harijayms/terraform,billyschmidt/terraform,ricardclau/terraform,matsuzj/terraform,MerlinDMC/terraform,matt-deboer/terraform,spuder/terraform,sobrinho/terraform,Fodoj/terraform,bradfeehan/terraform,mathematician/terraform,fatmcgav/terraform,caiofilipini/terraform,brandontosch/terraform,PaulAtkins/terraform,cloudnautique/terraform,godmodelabs/terraform,ajvb/terraform,pdube/terraform,ValFadeev/terraform,ashishth09/terraform,pdube/terraform,ewypych/terraform,jhedev/terraform,caiofilipini/terraform,iansheridan/terraform,Wambosa/terraform,Zordrak/terraform,niclic/terraform,TimeIncOSS/terraform,btobolaski/terraform,mtougeron/terraform,jrnt30/terraform,ralph-tice/terraform,DJRH/terraform,dgolja/terraform,travertischio/terraform,printedheart/terraform,djworth/terraform,TStraub-rms/terraform,tmtk75/terraform,scalp42/terraform,HotelsDotCom/terraform,keshavdv/terraform,dpetzold/terraform,dn1s/terraform,TStraub-rms/terraform,Sixgill/terraform,TheWeatherCompany/terraform,spuder/terraform,Pryz/terraform,mrwacky42/terraform-1,jcaugust/terraform,VladRassokhin/terraform,superseb/terraform,semarj/terraform,gazoakley/terraform,jkinred/terraform,ryon/terraform,jrb/terraform,paultyng/terraform,billyschmidt/terraform,zpatrick/terraform,hartzell/terraform,mtougeron/terraform,dpetzold/terraform,jrnt30/terraform,Test-Betta-Inc/literate-winner,dwradcliffe/terraform,pmoust/terraform,brianantonelli/terraform,apparentlymart/terraform,srikalyan/terraform,drebes/terraform,niclic/terraform,AlexanderEkdahl/terraform,jedineeper/terraform,cristicalin/terraform,mathematician/terraform,wowgroup/terraform,GrayCoder/terraform,lstolyarov/terraform,calvinfo/terraform,iJoinSolutions/terraform,mikesplain/terraform,jeroendekorte/terraform,VladRassokhin/terraform,magnumopus/terraform,savaki/terraform,displague/terraform,mafrosis/terraform,svanharmelen/terraform,randomvariable/terraform,rkhozinov/terraform,justnom/terraform,mwarkentin/terraform,Test-Betta-Inc/literate-winner,AlexanderEkdahl/terraform,jammycakes/terraform,10thmagnitude/terraform,sparkprime/terraform,apparentlymart/terraform,evalphobia/saas-ci-performance-compare-terraform,dabdine-r7/terraform,yanndegat/terraform,hngkr/terraform,zero-below/terraform,paybyphone/terraform,pgray/terraform,pryorda/terraform,josephholsten/terraform,squarescale/terraform,rjeczalik/terraform,tmtk75/terraform,catsby/terraform,spuder/terraform,xetorthio/terraform,Pryz/terraform,mrwacky42/terraform-1,lusis/terraform,atlassian/terraform,schans/terraform,Fodoj/terraform,bashtoni/terraform,xied75/terraform,PeoplePerHour/terraform,crunchywelch/terraform,gh-mlfowler/terraform,rkhozinov/terraform,mbrukman/terraform,pgray/terraform,DJRH/terraform,kristinn/terraform,golvteppe/terraform,MerlinDMC/terraform,f440/terraform,kl4w/terraform,hrach/hashicorp-terraform,josephholsten/terraform,godmodelabs/terraform,apparentlymart/terraform,jamtur01/terraform,ashishth09/terraform,harijayms/terraform,Shopify/terraform,bashtoni/terraform,iljaskevic/terraform,mattray/terraform,larsla/terraform,elblivion/terraform,evalphobia/saas-ci-performance-compare-terraform,tamsky/terraform,heimweh/terraform,clearcare/terraform,fatmcgav/terraform,TimeIncOSS/terraform,calvinfo/terraform,uber/terraform,matsuzj/terraform,joelmoss/terraform,Felivel/terraform,saulshanabrook/terraform,antonbabenko/terraform,kevinc0825/terraform,calvinfo/terraform,Pryz/terraform,ryon/terraform,richardc/terraform,jeroendekorte/terraform,PavelVanecek/terraform,srikalyan/terraform,hpcloud/terraform,aznashwan/terraform,taliesins/terraform,gettyimages/terraform,uber/terraform,peterbeams/terraform,jtopjian/terraform,chrislovecnm/terraform,borisroman/terraform,mixacha/terraform,ChloeTigre/terraform,youhong316/terraform,matt-deboer/terraform,saulshanabrook/terraform,borisroman/terraform,mattupstate/terraform,alphagov/terraform,johnewart/terraform,printedheart/terraform,mbfrahry/terraform,ChloeTigre/terraform,lukaszkorecki/terraform,jedineeper/terraform,KensoDev/terraform,ack/terraform,julia-stripe/terraform,mathieuherbert/terraform,alphagov/terraform,grasshoppergroup/terraform,xsellier/terraform,ricardclau/terraform,lwander/terraform,JrCs/terraform,atlassian/terraform,ve-interactive/terraform,elblivion/terraform,cristicalin/terraform,harijayms/terraform,elblivion/terraform,grange74/terraform,ordinaryexperts/terraform,mrwacky42/terraform-1,spuder/terraform,goudvisje/terraform,TimeIncOSS/terraform,antonbabenko/terraform,ack/terraform,jkinred/terraform,Felivel/terraform,brandontosch/terraform,uber/terraform,jhedev/terraform,Fodoj/terraform,aybabtme/terraform,sukritpol/terraform,ChloeTigre/terraform,semarj/terraform,randomvariable/terraform,elblivion/terraform,PavelVanecek/terraform,Sixgill/terraform,psytale/terraform,ValFadeev/terraform,huydinhle/terraform,BedeGaming/terraform,dpaq/terraform,evandbrown/terraform,tmshn/terraform,getyourguide/terraform,ZZelle/terraform,dtan4/terraform,ewbankkit/terraform,ross/terraform,bashtoni/terraform,gettyimages/terraform,kl4w/terraform,ewdurbin/terraform,sukritpol/terraform,aznashwan/terraform,bensojona/terraform,stayup-io/terraform,Pryz/terraform,btobolaski/terraform,daveadams/terraform,monkeylittleinc/terraform,paulbouwer/terraform,brianantonelli/terraform,mkuzmin/terraform,jfchevrette/terraform,tpounds/terraform,maxenglander/terraform,ryansroberts/terraform,asedge/terraform,brianantonelli/terraform,miketheman/terraform,iJoinSolutions/terraform,cloudnautique/terraform,zxjinn/terraform,monkeylittleinc/terraform,Ninir/terraform,foragerr/terraform,grasshoppergroup/terraform,jtopper/terraform,dkalleg/terraform,acm1/terraform,jhedev/terraform,shanielh/terraform,Ticketmaster/terraform,bitglue/terraform,wowgroup/terraform,fatih/terraform,johnewart/terraform,PavelVanecek/terraform,rrudduck/terraform,kristinn/terraform,vincer/terraform,mhlias/terraform,DevoKun/terraform,godmodelabs/terraform,paulbouwer/terraform,shanielh/terraform,tommynsong/terraform,displague/terraform,jrperritt/terraform,catsby/terraform,chrisjharding/terraform,vrenjith/terraform,cstamm13/terraform,sl1pm4t/terraform,larsla/terraform,djworth/terraform,opsidian/terraform,sorenmat/terraform,tombuildsstuff/terraform,afreyman/terraform,acm1/terraform,asedge/terraform,cwood/terraform,cnicolov/terraform,jianyuan/terraform,yanndegat/terraform,iljaskevic/terraform,ryon/terraform,hrach/hashicorp-terraform,julia-stripe/terraform,johnewart/terraform,watters/terraform,svanharmelen/terraform,StephenWeatherford/terraform,murillodigital/terraform,zachgersh/terraform,daveadams/terraform,bensojona/terraform,DJRH/terraform,alphagov/terraform,Boran/terraform,lukaszkorecki/terraform,richardc/terraform,tamsky/terraform,DevoKun/terraform,xetorthio/terraform,ctavan/terraform,JrCs/terraform,pradeepchhetri/terraform,optimisticanshul/terraform,evandbrown/terraform,bashtoni/terraform,daveadams/terraform,cristicalin/terraform,luis-silva/terraform,stayup-io/terraform,cakoose/terraform,mathematician/terraform,AlexanderEkdahl/terraform,sobrinho/terraform,paultyng/terraform,ctavan/terraform,pgray/terraform,jcaugust/terraform,billyschmidt/terraform,dkalleg/terraform,ddegoede/terraform,tehnorm/terraform,finanzcheck/terraform,mwarkentin/terraform,paulbouwer/terraform,cnicolov/terraform,dagnello/terraform,brunomcustodio/terraform,cnicolov/terraform,pgray/terraform,justnom/terraform,mrwacky42/terraform-1,getyourguide/terraform,jfchevrette/terraform,mrsn/terraform,Fodoj/terraform,GannettDigital/terraform,jrperritt/terraform,lwander/terraform,donaldguy/terraform,pdube/terraform,travertischio/terraform,drebes/terraform,bashtoni/terraform,jrb/terraform,cakoose/terraform,magnumopus/terraform,paybyphone/terraform,thegedge/terraform,DualSpark/terraform,ephemeralsnow/terraform,bradfeehan/terraform,kyhavlov/terraform,GrayCoder/terraform,TheWeatherCompany/terraform,julia-stripe/terraform,appbricks/ab-terraform-build,simar7/terraform,shanielh/terraform,JDiPierro/terraform,jrb/terraform,iJoinSolutions/terraform,getyourguide/terraform,sarguru/terraform,cstamm13/terraform,monkeylittleinc/terraform,borisroman/terraform,rhyas/terraform,paybyphone/terraform,evalphobia/saas-ci-performance-compare-terraform,evalphobia/saas-ci-performance-compare-terraform,mathieuherbert/terraform,kevinc0825/terraform,jammycakes/terraform,dharrisio/terraform,Pryz/terraform,simar7/terraform,hpcloud/terraform,TStraub-rms/terraform,keshavdv/terraform,Wambosa/terraform,watters/terraform,jfchevrette/terraform,kwilczynski/terraform,turkenh/terraform,Fodoj/terraform,kyhavlov/terraform,zpatrick/terraform,lwander/terraform,rakutentech/terraform,hashicorp/terraform,pdecat/terraform,dgolja/terraform,jrnt30/terraform,dougneal/terraform,brandontosch/terraform,ReleaseQueue/terraform,Ninir/terraform,ryansroberts/terraform,psytale/terraform,randomvariable/terraform,srikalyan/terraform,koding/terraform,thegedge/terraform,afreyman/terraform,optimisticanshul/terraform,tpoindessous/terraform,tommynsong/terraform,PeteGoo/terraform,dabdine-r7/terraform,Zordrak/terraform,mrsn/terraform,squarescale/terraform,kl4w/terraform,dpetzold/terraform,sarguru/terraform,semarj/terraform,goudvisje/terraform,keen99/terraform,mbrukman/terraform,lifesum/terraform,iJoinSolutions/terraform,scalp42/terraform,dtan4/terraform,tmtk75/terraform,tamsky/terraform,Test-Betta-Inc/literate-winner,kwilczynski/terraform,henrikhodne/terraform,ewdurbin/terraform,ryansroberts/terraform,richardc/terraform,ewbankkit/terraform,mnylen/terraform,kevinc0825/terraform,lstolyarov/terraform,murillodigital/terraform,simar7/terraform,printedheart/terraform,ack/terraform,vrenjith/terraform,youhong316/terraform,hooklift/terraform,magnumopus/terraform,jtopjian/terraform,savaki/terraform,mrwacky42/terraform-1,rhyas/terraform,wowgroup/terraform,PeoplePerHour/terraform,iansheridan/terraform,hooklift/terraform,bradfeehan/terraform,finanzcheck/terraform,VladRassokhin/terraform,maxenglander/terraform,ewypych/terraform,tombuildsstuff/terraform,pearkes/terraform,calvinfo/terraform,goudvisje/terraform,elblivion/terraform,opsidian/terraform,fluxrad/terraform,saulshanabrook/terraform,koding/terraform,sorenmat/terraform,larsla/terraform,opsidian/terraform,gazoakley/terraform,pdube/terraform,niclic/terraform,mhlias/terraform,jammycakes/terraform,peterbeams/terraform,srikalyan/terraform,pmoust/terraform,finanzcheck/terraform,tpounds/terraform,ajvb/terraform,caiofilipini/terraform,jrb/terraform,JDiPierro/terraform,PeoplePerHour/terraform,crunchywelch/terraform,Boran/terraform,richardc/terraform,displague/terraform,jkinred/terraform,yamamoto-febc/terraform,cstamm13/terraform,joelmoss/terraform,opsidian/terraform,rakutentech/terraform,jianyuan/terraform,trumant/terraform,mattupstate/terraform,StephenWeatherford/terraform,matsuzj/terraform,xied75/terraform,dagnello/terraform,gazoakley/terraform,fatih/terraform,dlsniper/terraform,lstolyarov/terraform,mixacha/terraform,jedineeper/terraform,dn1s/terraform,stayup-io/terraform,foragerr/terraform,mikesplain/terraform | markdown | ## Code Before:
---
layout: "aws"
page_title: "AWS: aws_db_subnet_group"
sidebar_current: "docs-aws-resource-db-subnet-group"
description: |-
Provides an RDS DB subnet group resource.
---
# aws\_db\_subnet\_group
Provides an RDS DB subnet group resource.
## Example Usage
```
resource "aws_db_subnet_group" "default" {
name = "main"
description = "Our main group of subnets"
subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the DB security group.
* `description` - (Required) The description of the DB security group.
* `subnet_ids` - (Required) A list of ingress rules.
## Attributes Reference
The following attributes are exported:
* `id` - The db subnet group name.
## Instruction:
Use correct terms in DB Subnet Group docs
## Code After:
---
layout: "aws"
page_title: "AWS: aws_db_subnet_group"
sidebar_current: "docs-aws-resource-db-subnet-group"
description: |-
Provides an RDS DB subnet group resource.
---
# aws\_db\_subnet\_group
Provides an RDS DB subnet group resource.
## Example Usage
```
resource "aws_db_subnet_group" "default" {
name = "main"
description = "Our main group of subnets"
subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the DB subnet group.
* `description` - (Required) The description of the DB subnet group.
* `subnet_ids` - (Required) A list of VPC subnet IDs.
## Attributes Reference
The following attributes are exported:
* `id` - The db subnet group name.
| ---
layout: "aws"
page_title: "AWS: aws_db_subnet_group"
sidebar_current: "docs-aws-resource-db-subnet-group"
description: |-
Provides an RDS DB subnet group resource.
---
# aws\_db\_subnet\_group
Provides an RDS DB subnet group resource.
## Example Usage
```
resource "aws_db_subnet_group" "default" {
name = "main"
description = "Our main group of subnets"
subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
}
```
## Argument Reference
The following arguments are supported:
- * `name` - (Required) The name of the DB security group.
? ---- -
+ * `name` - (Required) The name of the DB subnet group.
? +++
- * `description` - (Required) The description of the DB security group.
? ---- -
+ * `description` - (Required) The description of the DB subnet group.
? +++
- * `subnet_ids` - (Required) A list of ingress rules.
? ^ -- ^^ ^^^^
+ * `subnet_ids` - (Required) A list of VPC subnet IDs.
? ^^^^^^^ ^ ^^
## Attributes Reference
The following attributes are exported:
* `id` - The db subnet group name.
| 6 | 0.166667 | 3 | 3 |
c83d2fcfc0edd95b2771d8d265694b4c644b5a04 | src/app/index.js | src/app/index.js | import React from 'react';
import styles from './styles';
import DevTools from './containers/DevTools';
import createRemoteStore from './store/createRemoteStore';
import ButtonBar from './components/ButtonBar';
export default ({ socketOptions }) => (
<div style={styles.container}>
<DevTools store={createRemoteStore(socketOptions)} />
<ButtonBar/>
</div>
);
| import React, { Component, PropTypes } from 'react';
import styles from './styles';
import DevTools from './containers/DevTools';
import createRemoteStore from './store/createRemoteStore';
import ButtonBar from './components/ButtonBar';
export default class extends Component {
static propTypes = {
socketOptions: PropTypes.shape({
hostname: PropTypes.string,
port: PropTypes.number,
autoReconnect: PropTypes.bool
})
};
componentWillMount() {
this.store = createRemoteStore(this.props.socketOptions);
}
render() {
return (
<div style={styles.container}>
<DevTools store={this.store} />
<ButtonBar/>
</div>
);
}
}
| Use React Component for the main container | Use React Component for the main container
| JavaScript | mit | zalmoxisus/remotedev-app,zalmoxisus/remotedev-app | javascript | ## Code Before:
import React from 'react';
import styles from './styles';
import DevTools from './containers/DevTools';
import createRemoteStore from './store/createRemoteStore';
import ButtonBar from './components/ButtonBar';
export default ({ socketOptions }) => (
<div style={styles.container}>
<DevTools store={createRemoteStore(socketOptions)} />
<ButtonBar/>
</div>
);
## Instruction:
Use React Component for the main container
## Code After:
import React, { Component, PropTypes } from 'react';
import styles from './styles';
import DevTools from './containers/DevTools';
import createRemoteStore from './store/createRemoteStore';
import ButtonBar from './components/ButtonBar';
export default class extends Component {
static propTypes = {
socketOptions: PropTypes.shape({
hostname: PropTypes.string,
port: PropTypes.number,
autoReconnect: PropTypes.bool
})
};
componentWillMount() {
this.store = createRemoteStore(this.props.socketOptions);
}
render() {
return (
<div style={styles.container}>
<DevTools store={this.store} />
<ButtonBar/>
</div>
);
}
}
| - import React from 'react';
+ import React, { Component, PropTypes } from 'react';
import styles from './styles';
import DevTools from './containers/DevTools';
import createRemoteStore from './store/createRemoteStore';
import ButtonBar from './components/ButtonBar';
- export default ({ socketOptions }) => (
+ export default class extends Component {
+ static propTypes = {
+ socketOptions: PropTypes.shape({
+ hostname: PropTypes.string,
+ port: PropTypes.number,
+ autoReconnect: PropTypes.bool
+ })
+ };
+
+ componentWillMount() {
+ this.store = createRemoteStore(this.props.socketOptions);
+ }
+
+ render() {
+ return (
- <div style={styles.container}>
+ <div style={styles.container}>
? ++++
- <DevTools store={createRemoteStore(socketOptions)} />
+ <DevTools store={this.store} />
- <ButtonBar/>
+ <ButtonBar/>
? ++++
- </div>
+ </div>
? ++++
- );
+ );
+ }
+ } | 30 | 2.5 | 23 | 7 |
04cdcf3448dfabc840bb14dee0b866e5e1b8affa | README.md | README.md |
...
|
...
## Checklist
### Matchers
- length (done)
- type
- contain
- positive
- true
- false
- null
- empty
- equal
- above
- least
- below
- most
- within
- property
- match
- string
- keys
- values
- throw
- respond
- satisfy
- close
- members
| Add a checklist to help me. | Add a checklist to help me.
| Markdown | mit | bound1ess/essence | markdown | ## Code Before:
...
## Instruction:
Add a checklist to help me.
## Code After:
...
## Checklist
### Matchers
- length (done)
- type
- contain
- positive
- true
- false
- null
- empty
- equal
- above
- least
- below
- most
- within
- property
- match
- string
- keys
- values
- throw
- respond
- satisfy
- close
- members
|
...
+
+ ## Checklist
+
+ ### Matchers
+
+ - length (done)
+ - type
+ - contain
+ - positive
+ - true
+ - false
+ - null
+ - empty
+ - equal
+ - above
+ - least
+ - below
+ - most
+ - within
+ - property
+ - match
+ - string
+ - keys
+ - values
+ - throw
+ - respond
+ - satisfy
+ - close
+ - members
+ | 30 | 15 | 30 | 0 |
e85da4fdc0d03654df99de201e674daf831927c1 | .travis.yml | .travis.yml | language: python
##-- which python version(s)
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install -r test_requirements.txt --use-mirrors"
##-- run tests
script: py.test
##-- choose git branches
branches:
only:
- master
notifications:
email:
on_success: never
on_failure: always
| language: python
##-- which python version(s)
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install -r test_requirements.txt --use-mirrors"
##-- run tests
script: py.test
##-- choose git branches
branches:
only:
- master
| Revert to default Travis notification settings | Revert to default Travis notification settings
| YAML | bsd-3-clause | musicpax/funcy,ma-ric/funcy,Suor/funcy | yaml | ## Code Before:
language: python
##-- which python version(s)
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install -r test_requirements.txt --use-mirrors"
##-- run tests
script: py.test
##-- choose git branches
branches:
only:
- master
notifications:
email:
on_success: never
on_failure: always
## Instruction:
Revert to default Travis notification settings
## Code After:
language: python
##-- which python version(s)
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install -r test_requirements.txt --use-mirrors"
##-- run tests
script: py.test
##-- choose git branches
branches:
only:
- master
| language: python
##-- which python version(s)
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install -r test_requirements.txt --use-mirrors"
##-- run tests
script: py.test
##-- choose git branches
branches:
only:
- master
-
- notifications:
- email:
- on_success: never
- on_failure: always | 5 | 0.2 | 0 | 5 |
a66d7398ea2154416830064bd8d3813466ef8fa3 | README.md | README.md |
[](https://travis-ci.org/wiktor-k/infrastructure-tests)
This repository contains tests of the *metacode.biz* infrastructure.
These tests always ask external services to asses the state of the infrastructure
## Running tests
Running locally: `npm start`
Building and running through Docker:
docker build -t metacode/infr . && docker run --rm -i metacode/infr
Or the same via npm alias: `npm run start-in-docker`
Putting the following script in `.git/hooks/pre-push` ensures that tests
pass locally before pushing them into the repository:
#!/bin/bash
npm run start-in-docker
Tests are executed on each commit to GitHub and additionally on schedule.
Testing the tests: `npm test`
## Test types
Currently tests cover:
* HTTP/2 with [ALPN][ALPN],
* IPv6 support,
* [TLS configuration][SSLLABS].
See [`infr.ts`](infr.ts) for a complete list of supported tests.
[ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation
[SSLLABS]: https://www.ssllabs.com/ssltest/
|
[](https://travis-ci.org/wiktor-k/infrastructure-tests) [](https://dependencyci.com/github/wiktor-k/infrastructure-tests)
This repository contains tests of the *metacode.biz* infrastructure.
These tests always ask external services to assess the state of the infrastructure.
## Running tests
Running locally: `npm start`
Building and running through Docker:
docker build -t metacode/infr . && docker run --rm -i metacode/infr
Or the same via npm alias: `npm run start-in-docker`
Putting the following script in `.git/hooks/pre-push` ensures that tests
pass locally before pushing them into the repository:
#!/bin/bash
npm run start-in-docker
Tests are executed on each commit to GitHub and additionally on schedule.
Testing the tests: `npm test`
## Test types
Currently tests cover:
* HTTP/2 with [ALPN][ALPN],
* IPv6 support,
* [TLS configuration][SSLLABS].
See [`infr.ts`](infr.ts) for a complete list of supported tests.
[ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation
[SSLLABS]: https://www.ssllabs.com/ssltest/
| Add Dependency CI build status | Add Dependency CI build status
| Markdown | apache-2.0 | wiktor-k/infrastructure-tests | markdown | ## Code Before:
[](https://travis-ci.org/wiktor-k/infrastructure-tests)
This repository contains tests of the *metacode.biz* infrastructure.
These tests always ask external services to asses the state of the infrastructure
## Running tests
Running locally: `npm start`
Building and running through Docker:
docker build -t metacode/infr . && docker run --rm -i metacode/infr
Or the same via npm alias: `npm run start-in-docker`
Putting the following script in `.git/hooks/pre-push` ensures that tests
pass locally before pushing them into the repository:
#!/bin/bash
npm run start-in-docker
Tests are executed on each commit to GitHub and additionally on schedule.
Testing the tests: `npm test`
## Test types
Currently tests cover:
* HTTP/2 with [ALPN][ALPN],
* IPv6 support,
* [TLS configuration][SSLLABS].
See [`infr.ts`](infr.ts) for a complete list of supported tests.
[ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation
[SSLLABS]: https://www.ssllabs.com/ssltest/
## Instruction:
Add Dependency CI build status
## Code After:
[](https://travis-ci.org/wiktor-k/infrastructure-tests) [](https://dependencyci.com/github/wiktor-k/infrastructure-tests)
This repository contains tests of the *metacode.biz* infrastructure.
These tests always ask external services to assess the state of the infrastructure.
## Running tests
Running locally: `npm start`
Building and running through Docker:
docker build -t metacode/infr . && docker run --rm -i metacode/infr
Or the same via npm alias: `npm run start-in-docker`
Putting the following script in `.git/hooks/pre-push` ensures that tests
pass locally before pushing them into the repository:
#!/bin/bash
npm run start-in-docker
Tests are executed on each commit to GitHub and additionally on schedule.
Testing the tests: `npm test`
## Test types
Currently tests cover:
* HTTP/2 with [ALPN][ALPN],
* IPv6 support,
* [TLS configuration][SSLLABS].
See [`infr.ts`](infr.ts) for a complete list of supported tests.
[ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation
[SSLLABS]: https://www.ssllabs.com/ssltest/
|
- [](https://travis-ci.org/wiktor-k/infrastructure-tests)
+ [](https://travis-ci.org/wiktor-k/infrastructure-tests) [](https://dependencyci.com/github/wiktor-k/infrastructure-tests)
This repository contains tests of the *metacode.biz* infrastructure.
- These tests always ask external services to asses the state of the infrastructure
+ These tests always ask external services to assess the state of the infrastructure.
? + +
## Running tests
Running locally: `npm start`
Building and running through Docker:
docker build -t metacode/infr . && docker run --rm -i metacode/infr
Or the same via npm alias: `npm run start-in-docker`
Putting the following script in `.git/hooks/pre-push` ensures that tests
pass locally before pushing them into the repository:
#!/bin/bash
npm run start-in-docker
Tests are executed on each commit to GitHub and additionally on schedule.
Testing the tests: `npm test`
## Test types
Currently tests cover:
* HTTP/2 with [ALPN][ALPN],
* IPv6 support,
* [TLS configuration][SSLLABS].
See [`infr.ts`](infr.ts) for a complete list of supported tests.
[ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation
[SSLLABS]: https://www.ssllabs.com/ssltest/ | 4 | 0.102564 | 2 | 2 |
42b24435bc5407e4cad219fca12b5003c37c4eb8 | src/Algorithms/BubbleSort/README.md | src/Algorithms/BubbleSort/README.md | Bubble sort
==============
-----
| int Array[N] | Runtime |
|----------------|---------------|
| 1000 | 30 ms |
| 5000 | 398 ms |
| 10000 | 1 sec. 624 ms |
| 20000 | 6 sec. 219 ms |
| 50000 | 39 sec. 609 ms |
| 100000 | 2 min. 47 sec. |
 | Bubble sort
==============
-----
| int Array[N] | Runtime |
|----------------|---------------|
| 1000 | 30 ms |
| 5000 | 398 ms |
| 10000 | 1 sec. 624 ms |
| 20000 | 6 sec. 219 ms |
| 50000 | 39 sec. 609 ms |
| 100000 | 2 min. 47 sec. |

| PC specs: | |
|:---|:---|
|CPU | AMD A6-6310 APU with AMD Radeon R4 Graphics (4 CPUs), ~1.8GHz|
|GPU| AMD Radeon(TM) R7 M260|
|RAM| 4GB|
|OS| Windows 8.1 Pro x64| | Add specs for one page (test) | Add specs for one page (test)
| Markdown | apache-2.0 | ogycode/Algorithms | markdown | ## Code Before:
Bubble sort
==============
-----
| int Array[N] | Runtime |
|----------------|---------------|
| 1000 | 30 ms |
| 5000 | 398 ms |
| 10000 | 1 sec. 624 ms |
| 20000 | 6 sec. 219 ms |
| 50000 | 39 sec. 609 ms |
| 100000 | 2 min. 47 sec. |

## Instruction:
Add specs for one page (test)
## Code After:
Bubble sort
==============
-----
| int Array[N] | Runtime |
|----------------|---------------|
| 1000 | 30 ms |
| 5000 | 398 ms |
| 10000 | 1 sec. 624 ms |
| 20000 | 6 sec. 219 ms |
| 50000 | 39 sec. 609 ms |
| 100000 | 2 min. 47 sec. |

| PC specs: | |
|:---|:---|
|CPU | AMD A6-6310 APU with AMD Radeon R4 Graphics (4 CPUs), ~1.8GHz|
|GPU| AMD Radeon(TM) R7 M260|
|RAM| 4GB|
|OS| Windows 8.1 Pro x64| | Bubble sort
==============
-----
| int Array[N] | Runtime |
|----------------|---------------|
| 1000 | 30 ms |
| 5000 | 398 ms |
| 10000 | 1 sec. 624 ms |
| 20000 | 6 sec. 219 ms |
| 50000 | 39 sec. 609 ms |
| 100000 | 2 min. 47 sec. |

+
+ | PC specs: | |
+ |:---|:---|
+ |CPU | AMD A6-6310 APU with AMD Radeon R4 Graphics (4 CPUs), ~1.8GHz|
+ |GPU| AMD Radeon(TM) R7 M260|
+ |RAM| 4GB|
+ |OS| Windows 8.1 Pro x64| | 7 | 0.538462 | 7 | 0 |
ddf099ff2f61d0a9e089de0e68efe9eb5f6391ce | src/templates/common/elements/how_to_cite.html | src/templates/common/elements/how_to_cite.html | <p>
{{ author_str }},
{{ year_str }} “{{ title }}”,
{{ journal_str|safe }} {{ issue_str }}.
{{ pages_str|safe }}
{{ doi_str|safe }}
</p>
| <p>
{{ author_str }},
{{ year_str }} “{{ title }}”,
{{ journal_str|safe }} {{ issue_str }}{% if pages_str %},{% else %}.{% endif %}
{{ pages_str|safe }}
{{ doi_str|safe }}
</p>
| Fix citation separator for pages | Fix citation separator for pages
| HTML | agpl-3.0 | BirkbeckCTP/janeway,BirkbeckCTP/janeway,BirkbeckCTP/janeway,BirkbeckCTP/janeway | html | ## Code Before:
<p>
{{ author_str }},
{{ year_str }} “{{ title }}”,
{{ journal_str|safe }} {{ issue_str }}.
{{ pages_str|safe }}
{{ doi_str|safe }}
</p>
## Instruction:
Fix citation separator for pages
## Code After:
<p>
{{ author_str }},
{{ year_str }} “{{ title }}”,
{{ journal_str|safe }} {{ issue_str }}{% if pages_str %},{% else %}.{% endif %}
{{ pages_str|safe }}
{{ doi_str|safe }}
</p>
| <p>
{{ author_str }},
{{ year_str }} “{{ title }}”,
- {{ journal_str|safe }} {{ issue_str }}.
+ {{ journal_str|safe }} {{ issue_str }}{% if pages_str %},{% else %}.{% endif %}
{{ pages_str|safe }}
{{ doi_str|safe }}
</p> | 2 | 0.285714 | 1 | 1 |
6a096827f7024d6ace41117d15d78baf444fb137 | ansible/roles/xsnippet/defaults/main.yml | ansible/roles/xsnippet/defaults/main.yml | xsnippet_api_image: xsnippet/xsnippet-api:latest
xsnippet_db_image: docker.io/library/postgres:13
xsnippet_web_image: docker.io/library/nginx:stable
xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/v1.1.5/xsnippet-web-v1.1.5.tar.gz
# xsnippet-db configuration
xsnippet_db_name: xsnippet
xsnippet_db_user: xsnippet
xsnippet_db_password: xsnippet
xsnippet_db_port: 5432
xsnippet_db_external_volume: ""
# application configuration
xsnippet_syntaxes: "{{ lookup('file', 'syntaxes.txt').split('\n') }}"
xsnippet_database_url: "postgresql://{{ xsnippet_db_user }}:{{ xsnippet_db_password }}@127.0.0.1:{{ xsnippet_db_port}}/{{ xsnippet_db_name }}"
# reverse-proxy configuration
xsnippet_api_server_name: ""
xsnippet_spa_server_name: ""
# SSL/TLS configuration
xsnippet_api_https_redirect: true
xsnippet_api_https_enabled: true
xsnippet_spa_https_redirect: true
xsnippet_spa_https_enabled: true
# Digitalocean token that can be used by certbot to generate SSL.
xsnippet_digitalocean_token: ""
| xsnippet_api_image: xsnippet/xsnippet-api:latest
xsnippet_db_image: docker.io/library/postgres:13
xsnippet_web_image: docker.io/library/nginx:stable
xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/nightly/xsnippet-web.tar.gz
# xsnippet-db configuration
xsnippet_db_name: xsnippet
xsnippet_db_user: xsnippet
xsnippet_db_password: xsnippet
xsnippet_db_port: 5432
xsnippet_db_external_volume: ""
# application configuration
xsnippet_syntaxes: "{{ lookup('file', 'syntaxes.txt').split('\n') }}"
xsnippet_database_url: "postgresql://{{ xsnippet_db_user }}:{{ xsnippet_db_password }}@127.0.0.1:{{ xsnippet_db_port}}/{{ xsnippet_db_name }}"
# reverse-proxy configuration
xsnippet_api_server_name: ""
xsnippet_spa_server_name: ""
# SSL/TLS configuration
xsnippet_api_https_redirect: true
xsnippet_api_https_enabled: true
xsnippet_spa_https_redirect: true
xsnippet_spa_https_enabled: true
# Digitalocean token that can be used by certbot to generate SSL.
xsnippet_digitalocean_token: ""
| Use 'nightly' tag of xsnippet-web for deployment | Use 'nightly' tag of xsnippet-web for deployment
Since we aren't doing active development now, it's easier for us to
always deploy the latest commit. Especially taking into account that our
master branch must always be green.
| YAML | bsd-3-clause | xsnippet/xsnippet-infra | yaml | ## Code Before:
xsnippet_api_image: xsnippet/xsnippet-api:latest
xsnippet_db_image: docker.io/library/postgres:13
xsnippet_web_image: docker.io/library/nginx:stable
xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/v1.1.5/xsnippet-web-v1.1.5.tar.gz
# xsnippet-db configuration
xsnippet_db_name: xsnippet
xsnippet_db_user: xsnippet
xsnippet_db_password: xsnippet
xsnippet_db_port: 5432
xsnippet_db_external_volume: ""
# application configuration
xsnippet_syntaxes: "{{ lookup('file', 'syntaxes.txt').split('\n') }}"
xsnippet_database_url: "postgresql://{{ xsnippet_db_user }}:{{ xsnippet_db_password }}@127.0.0.1:{{ xsnippet_db_port}}/{{ xsnippet_db_name }}"
# reverse-proxy configuration
xsnippet_api_server_name: ""
xsnippet_spa_server_name: ""
# SSL/TLS configuration
xsnippet_api_https_redirect: true
xsnippet_api_https_enabled: true
xsnippet_spa_https_redirect: true
xsnippet_spa_https_enabled: true
# Digitalocean token that can be used by certbot to generate SSL.
xsnippet_digitalocean_token: ""
## Instruction:
Use 'nightly' tag of xsnippet-web for deployment
Since we aren't doing active development now, it's easier for us to
always deploy the latest commit. Especially taking into account that our
master branch must always be green.
## Code After:
xsnippet_api_image: xsnippet/xsnippet-api:latest
xsnippet_db_image: docker.io/library/postgres:13
xsnippet_web_image: docker.io/library/nginx:stable
xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/nightly/xsnippet-web.tar.gz
# xsnippet-db configuration
xsnippet_db_name: xsnippet
xsnippet_db_user: xsnippet
xsnippet_db_password: xsnippet
xsnippet_db_port: 5432
xsnippet_db_external_volume: ""
# application configuration
xsnippet_syntaxes: "{{ lookup('file', 'syntaxes.txt').split('\n') }}"
xsnippet_database_url: "postgresql://{{ xsnippet_db_user }}:{{ xsnippet_db_password }}@127.0.0.1:{{ xsnippet_db_port}}/{{ xsnippet_db_name }}"
# reverse-proxy configuration
xsnippet_api_server_name: ""
xsnippet_spa_server_name: ""
# SSL/TLS configuration
xsnippet_api_https_redirect: true
xsnippet_api_https_enabled: true
xsnippet_spa_https_redirect: true
xsnippet_spa_https_enabled: true
# Digitalocean token that can be used by certbot to generate SSL.
xsnippet_digitalocean_token: ""
| xsnippet_api_image: xsnippet/xsnippet-api:latest
xsnippet_db_image: docker.io/library/postgres:13
xsnippet_web_image: docker.io/library/nginx:stable
- xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/v1.1.5/xsnippet-web-v1.1.5.tar.gz
? ^^^^^^ -------
+ xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/nightly/xsnippet-web.tar.gz
? ^^^^^^^
# xsnippet-db configuration
xsnippet_db_name: xsnippet
xsnippet_db_user: xsnippet
xsnippet_db_password: xsnippet
xsnippet_db_port: 5432
xsnippet_db_external_volume: ""
# application configuration
xsnippet_syntaxes: "{{ lookup('file', 'syntaxes.txt').split('\n') }}"
xsnippet_database_url: "postgresql://{{ xsnippet_db_user }}:{{ xsnippet_db_password }}@127.0.0.1:{{ xsnippet_db_port}}/{{ xsnippet_db_name }}"
# reverse-proxy configuration
xsnippet_api_server_name: ""
xsnippet_spa_server_name: ""
# SSL/TLS configuration
xsnippet_api_https_redirect: true
xsnippet_api_https_enabled: true
xsnippet_spa_https_redirect: true
xsnippet_spa_https_enabled: true
# Digitalocean token that can be used by certbot to generate SSL.
xsnippet_digitalocean_token: "" | 2 | 0.071429 | 1 | 1 |
7955bc4c8d95aaf4b0e18b6007ea0c695acf40b3 | documentation/src/docs/asciidoc/release-notes/release-notes-5.8.0-M1.adoc | documentation/src/docs/asciidoc/release-notes/release-notes-5.8.0-M1.adoc | [[release-notes-5.8.0-M1]]
== 5.8.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.8.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* `StringUtils.nullSafeToString()` now returns `"null"` if the invocation of `toString()`
on the supplied object returns `null`. Although this is an internal utility, the effect
of this change may be witnessed by end users and test engine or extension authors.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
| [[release-notes-5.8.0-M1]]
== 5.8.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.8.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* `StringUtils.nullSafeToString()` now returns `"null"` if the invocation of `toString()`
on the supplied object returns `null`. Although this is an internal utility, the effect
of this change may be witnessed by end users and test engine or extension authors.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* If the `toString()` implementation of an argument passed to a `@ParameterizedTest`
method returns `null`, the display name formatter for the parameterized test now treats
the name of the corresponding argument as `"null"` instead of throwing an exception.
This fixes a regression introduced in JUnit Jupiter 5.7.0.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
| Document regression fix in release notes | Document regression fix in release notes
See #2408
| AsciiDoc | epl-1.0 | junit-team/junit-lambda | asciidoc | ## Code Before:
[[release-notes-5.8.0-M1]]
== 5.8.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.8.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* `StringUtils.nullSafeToString()` now returns `"null"` if the invocation of `toString()`
on the supplied object returns `null`. Although this is an internal utility, the effect
of this change may be witnessed by end users and test engine or extension authors.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
## Instruction:
Document regression fix in release notes
See #2408
## Code After:
[[release-notes-5.8.0-M1]]
== 5.8.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.8.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* `StringUtils.nullSafeToString()` now returns `"null"` if the invocation of `toString()`
on the supplied object returns `null`. Although this is an internal utility, the effect
of this change may be witnessed by end users and test engine or extension authors.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* If the `toString()` implementation of an argument passed to a `@ParameterizedTest`
method returns `null`, the display name formatter for the parameterized test now treats
the name of the corresponding argument as `"null"` instead of throwing an exception.
This fixes a regression introduced in JUnit Jupiter 5.7.0.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
| [[release-notes-5.8.0-M1]]
== 5.8.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.8.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* `StringUtils.nullSafeToString()` now returns `"null"` if the invocation of `toString()`
on the supplied object returns `null`. Although this is an internal utility, the effect
of this change may be witnessed by end users and test engine or extension authors.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
- * ❓
+ * If the `toString()` implementation of an argument passed to a `@ParameterizedTest`
+ method returns `null`, the display name formatter for the parameterized test now treats
+ the name of the corresponding argument as `"null"` instead of throwing an exception.
+ This fixes a regression introduced in JUnit Jupiter 5.7.0.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.8.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓ | 5 | 0.083333 | 4 | 1 |
db25105664381c5fcb24dd81e028418b87c59854 | app/code/community/Billmate/PartPayment/Block/Adminhtml/System/Config/Form/Updateplans.php | app/code/community/Billmate/PartPayment/Block/Adminhtml/System/Config/Form/Updateplans.php | <?php
/**
* Created by PhpStorm.
* User: jesper
* Date: 2015-01-27
* Time: 15:52
*/
class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('billmate/system/config/updateplans.phtml');
}
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
return $this->_toHtml();
}
public function getAjaxCheckUrl()
{
return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_billmatepartpayment/updateplans');
}
public function getButtonHtml()
{
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
'id' => 'partpayment_update',
'label' => $this->helper('adminhtml')->__('Update'),
'onclick' => 'javascript:updateplans(); return false'
));
return $button->toHtml();
}
} | <?php
/**
* Created by PhpStorm.
* User: jesper
* Date: 2015-01-27
* Time: 15:52
*/
class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('billmate/system/config/updateplans.phtml');
}
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
return $this->_toHtml();
}
public function getAjaxCheckUrl()
{
return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_billmatepartpayment/updateplans',array('_secure' => true));
}
public function getButtonHtml()
{
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
'id' => 'partpayment_update',
'label' => $this->helper('adminhtml')->__('Update'),
'onclick' => 'javascript:updateplans(); return false'
));
return $button->toHtml();
}
} | Fix for https ajax request update payment plans | Fix for https ajax request update payment plans
| PHP | bsd-2-clause | Billmate/magento,Billmate/magento,Billmate/magento | php | ## Code Before:
<?php
/**
* Created by PhpStorm.
* User: jesper
* Date: 2015-01-27
* Time: 15:52
*/
class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('billmate/system/config/updateplans.phtml');
}
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
return $this->_toHtml();
}
public function getAjaxCheckUrl()
{
return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_billmatepartpayment/updateplans');
}
public function getButtonHtml()
{
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
'id' => 'partpayment_update',
'label' => $this->helper('adminhtml')->__('Update'),
'onclick' => 'javascript:updateplans(); return false'
));
return $button->toHtml();
}
}
## Instruction:
Fix for https ajax request update payment plans
## Code After:
<?php
/**
* Created by PhpStorm.
* User: jesper
* Date: 2015-01-27
* Time: 15:52
*/
class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('billmate/system/config/updateplans.phtml');
}
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
return $this->_toHtml();
}
public function getAjaxCheckUrl()
{
return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_billmatepartpayment/updateplans',array('_secure' => true));
}
public function getButtonHtml()
{
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
'id' => 'partpayment_update',
'label' => $this->helper('adminhtml')->__('Update'),
'onclick' => 'javascript:updateplans(); return false'
));
return $button->toHtml();
}
} | <?php
/**
* Created by PhpStorm.
* User: jesper
* Date: 2015-01-27
* Time: 15:52
*/
class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('billmate/system/config/updateplans.phtml');
}
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
return $this->_toHtml();
}
public function getAjaxCheckUrl()
{
- return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_billmatepartpayment/updateplans');
+ return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_billmatepartpayment/updateplans',array('_secure' => true));
? +++++++++++++++++++++++++
}
public function getButtonHtml()
{
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
'id' => 'partpayment_update',
'label' => $this->helper('adminhtml')->__('Update'),
'onclick' => 'javascript:updateplans(); return false'
));
return $button->toHtml();
}
} | 2 | 0.051282 | 1 | 1 |
918cf9509487cc466368969bef074842ba6ad75d | src/main/java/edu/harvard/iq/dataverse/EMailValidator.java | src/main/java/edu/harvard/iq/dataverse/EMailValidator.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.harvard.iq.dataverse;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.validator.routines.EmailValidator;
/**
*
* @author skraffmi
*/
public class EMailValidator implements ConstraintValidator<ValidateEmail, String> {
@Override
public void initialize(ValidateEmail constraintAnnotation) {
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
return isEmailValid(value, context);
}
public static boolean isEmailValid(String value, ConstraintValidatorContext context){
boolean isValid= EmailValidator.getInstance().isValid(value.trim());
if (!isValid) {
context.buildConstraintViolationWithTemplate( value + " is not a valid email address.").addConstraintViolation();
return false;
}
return true;
}
}
| /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.harvard.iq.dataverse;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.validator.routines.EmailValidator;
/**
*
* @author skraffmi
*/
public class EMailValidator implements ConstraintValidator<ValidateEmail, String> {
@Override
public void initialize(ValidateEmail constraintAnnotation) {
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
return isEmailValid(value, context);
}
public static boolean isEmailValid(String value, ConstraintValidatorContext context) {
if (value == null) {
//we'll let someone else decide if it's required
return true;
}
boolean isValid = EmailValidator.getInstance().isValid(value.trim());
if (!isValid) {
context.buildConstraintViolationWithTemplate(value + " is not a valid email address.").addConstraintViolation();
return false;
}
return true;
}
}
| Allow null email to pass EmailValidator | Allow null email to pass EmailValidator
Somewhere else will decide if it’s required
| Java | apache-2.0 | ekoi/DANS-DVN-4.6.1,jacksonokuhn/dataverse,bmckinney/dataverse-canonical,majorseitan/dataverse,majorseitan/dataverse,leeper/dataverse-1,majorseitan/dataverse,quarian/dataverse,quarian/dataverse,JayanthyChengan/dataverse,jacksonokuhn/dataverse,bmckinney/dataverse-canonical,leeper/dataverse-1,JayanthyChengan/dataverse,jacksonokuhn/dataverse,leeper/dataverse-1,majorseitan/dataverse,quarian/dataverse,majorseitan/dataverse,quarian/dataverse,quarian/dataverse,ekoi/DANS-DVN-4.6.1,ekoi/DANS-DVN-4.6.1,leeper/dataverse-1,JayanthyChengan/dataverse,majorseitan/dataverse,leeper/dataverse-1,leeper/dataverse-1,JayanthyChengan/dataverse,majorseitan/dataverse,majorseitan/dataverse,leeper/dataverse-1,jacksonokuhn/dataverse,quarian/dataverse,bmckinney/dataverse-canonical,bmckinney/dataverse-canonical,JayanthyChengan/dataverse,jacksonokuhn/dataverse,ekoi/DANS-DVN-4.6.1,JayanthyChengan/dataverse,ekoi/DANS-DVN-4.6.1,bmckinney/dataverse-canonical,ekoi/DANS-DVN-4.6.1,bmckinney/dataverse-canonical,quarian/dataverse,bmckinney/dataverse-canonical,jacksonokuhn/dataverse,bmckinney/dataverse-canonical,ekoi/DANS-DVN-4.6.1,leeper/dataverse-1,JayanthyChengan/dataverse,ekoi/DANS-DVN-4.6.1,jacksonokuhn/dataverse,quarian/dataverse,JayanthyChengan/dataverse,jacksonokuhn/dataverse | java | ## Code Before:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.harvard.iq.dataverse;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.validator.routines.EmailValidator;
/**
*
* @author skraffmi
*/
public class EMailValidator implements ConstraintValidator<ValidateEmail, String> {
@Override
public void initialize(ValidateEmail constraintAnnotation) {
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
return isEmailValid(value, context);
}
public static boolean isEmailValid(String value, ConstraintValidatorContext context){
boolean isValid= EmailValidator.getInstance().isValid(value.trim());
if (!isValid) {
context.buildConstraintViolationWithTemplate( value + " is not a valid email address.").addConstraintViolation();
return false;
}
return true;
}
}
## Instruction:
Allow null email to pass EmailValidator
Somewhere else will decide if it’s required
## Code After:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.harvard.iq.dataverse;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.validator.routines.EmailValidator;
/**
*
* @author skraffmi
*/
public class EMailValidator implements ConstraintValidator<ValidateEmail, String> {
@Override
public void initialize(ValidateEmail constraintAnnotation) {
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
return isEmailValid(value, context);
}
public static boolean isEmailValid(String value, ConstraintValidatorContext context) {
if (value == null) {
//we'll let someone else decide if it's required
return true;
}
boolean isValid = EmailValidator.getInstance().isValid(value.trim());
if (!isValid) {
context.buildConstraintViolationWithTemplate(value + " is not a valid email address.").addConstraintViolation();
return false;
}
return true;
}
}
| /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.harvard.iq.dataverse;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.validator.routines.EmailValidator;
/**
*
* @author skraffmi
*/
public class EMailValidator implements ConstraintValidator<ValidateEmail, String> {
@Override
public void initialize(ValidateEmail constraintAnnotation) {
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
return isEmailValid(value, context);
}
- public static boolean isEmailValid(String value, ConstraintValidatorContext context){
+ public static boolean isEmailValid(String value, ConstraintValidatorContext context) {
? +
+ if (value == null) {
+ //we'll let someone else decide if it's required
+ return true;
+ }
- boolean isValid= EmailValidator.getInstance().isValid(value.trim());
? ---- --------
+ boolean isValid = EmailValidator.getInstance().isValid(value.trim());
? +
- if (!isValid) {
? ----
+ if (!isValid) {
- context.buildConstraintViolationWithTemplate( value + " is not a valid email address.").addConstraintViolation();
? ---- -
+ context.buildConstraintViolationWithTemplate(value + " is not a valid email address.").addConstraintViolation();
- return false;
? ----
+ return false;
- }
-
+ }
? +
-
return true;
-
}
} | 19 | 0.452381 | 10 | 9 |
566ae40b7f546e3773933217506f917845c8b468 | virtool/subtractions/db.py | virtool/subtractions/db.py | import virtool.utils
PROJECTION = [
"_id",
"file",
"ready",
"job"
]
async def get_linked_samples(db, subtraction_id):
cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"])
return [virtool.utils.base_processor(d) async for d in cursor]
| import virtool.utils
PROJECTION = [
"_id",
"count",
"file",
"ready",
"job",
"nickname",
"user"
]
async def get_linked_samples(db, subtraction_id):
cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"])
return [virtool.utils.base_processor(d) async for d in cursor]
| Return more fields in subtraction find API response | Return more fields in subtraction find API response
| Python | mit | igboyes/virtool,virtool/virtool,igboyes/virtool,virtool/virtool | python | ## Code Before:
import virtool.utils
PROJECTION = [
"_id",
"file",
"ready",
"job"
]
async def get_linked_samples(db, subtraction_id):
cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"])
return [virtool.utils.base_processor(d) async for d in cursor]
## Instruction:
Return more fields in subtraction find API response
## Code After:
import virtool.utils
PROJECTION = [
"_id",
"count",
"file",
"ready",
"job",
"nickname",
"user"
]
async def get_linked_samples(db, subtraction_id):
cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"])
return [virtool.utils.base_processor(d) async for d in cursor]
| import virtool.utils
PROJECTION = [
"_id",
+ "count",
"file",
"ready",
- "job"
+ "job",
? +
+ "nickname",
+ "user"
]
async def get_linked_samples(db, subtraction_id):
cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"])
return [virtool.utils.base_processor(d) async for d in cursor] | 5 | 0.384615 | 4 | 1 |
63033511d0f62de5993c5c609db0a981ed907603 | README.md | README.md | Ghost Realms Internal Library
| Ghost Realms Internal Library
Please note: this library is not going to be documented, nor supported at any time. We are simply
releasing it as a **convenience** to other developers and servers.
```
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
``` | Add license and some info to the readme file | Add license and some info to the readme file
| Markdown | mit | GhostRealms/RealmsLib | markdown | ## Code Before:
Ghost Realms Internal Library
## Instruction:
Add license and some info to the readme file
## Code After:
Ghost Realms Internal Library
Please note: this library is not going to be documented, nor supported at any time. We are simply
releasing it as a **convenience** to other developers and servers.
```
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
``` | Ghost Realms Internal Library
+
+ Please note: this library is not going to be documented, nor supported at any time. We are simply
+ releasing it as a **convenience** to other developers and servers.
+
+ ```
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ``` | 13 | 13 | 13 | 0 |
d098c16225903e6f4270702b993cdc6cfdd327f5 | requirements.txt | requirements.txt | pytz==2015.7
requests==2.9.1
xmltodict==0.10.1
numpy==1.10.4
matplotlib==1.5.1
scipy==0.17.0
nsapi==2.7.4
togeojsontiles==0.1.2
geojsoncontour==0.1.1
| pytz==2015.7
requests==2.9.1
xmltodict==0.10.1
numpy==1.10.4
matplotlib==1.5.1
scipy==0.17.0
nsapi==2.7.4
#togeojsontiles==0.1.2
geojsoncontour==0.1.1
git+https://github.com/bartromgens/togeojsontiles.git
| Switch to dev version of togeojsontiles | Switch to dev version of togeojsontiles
| Text | mit | bartromgens/nsmaps,bartromgens/nsmaps,bartromgens/nsmaps | text | ## Code Before:
pytz==2015.7
requests==2.9.1
xmltodict==0.10.1
numpy==1.10.4
matplotlib==1.5.1
scipy==0.17.0
nsapi==2.7.4
togeojsontiles==0.1.2
geojsoncontour==0.1.1
## Instruction:
Switch to dev version of togeojsontiles
## Code After:
pytz==2015.7
requests==2.9.1
xmltodict==0.10.1
numpy==1.10.4
matplotlib==1.5.1
scipy==0.17.0
nsapi==2.7.4
#togeojsontiles==0.1.2
geojsoncontour==0.1.1
git+https://github.com/bartromgens/togeojsontiles.git
| pytz==2015.7
requests==2.9.1
xmltodict==0.10.1
numpy==1.10.4
matplotlib==1.5.1
scipy==0.17.0
nsapi==2.7.4
- togeojsontiles==0.1.2
+ #togeojsontiles==0.1.2
? +
geojsoncontour==0.1.1
+ git+https://github.com/bartromgens/togeojsontiles.git | 3 | 0.333333 | 2 | 1 |
921df8b8309b40e7a69c2fa0434a51c1cce82c28 | examples/rpc_pipeline.py | examples/rpc_pipeline.py | import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next(iter(listener.transport.bindings()))
notifier = yield from aiozmq.rpc.connect_pipeline(
connect=listener_addr)
yield from notifier.notify.handle_some_event(1, 2)
listener.close()
notifier.close()
def main():
asyncio.get_event_loop().run_until_complete(go())
print("DONE")
if __name__ == '__main__':
main()
| import asyncio
import aiozmq.rpc
from itertools import count
class Handler(aiozmq.rpc.AttrHandler):
def __init__(self):
self.connected = False
@aiozmq.rpc.method
def remote_func(self, step, a: int, b: int):
self.connected = True
print("HANDLER", step, a, b)
@asyncio.coroutine
def go():
handler = Handler()
listener = yield from aiozmq.rpc.serve_pipeline(
handler, bind='tcp://*:*')
listener_addr = next(iter(listener.transport.bindings()))
notifier = yield from aiozmq.rpc.connect_pipeline(
connect=listener_addr)
for step in count(0):
yield from notifier.notify.remote_func(step, 1, 2)
if handler.connected:
break
else:
yield from asyncio.sleep(0.01)
listener.close()
yield from listener.wait_closed()
notifier.close()
yield from notifier.wait_closed()
def main():
asyncio.get_event_loop().run_until_complete(go())
print("DONE")
if __name__ == '__main__':
main()
| Make rpc pipeine example stable | Make rpc pipeine example stable
| Python | bsd-2-clause | claws/aiozmq,MetaMemoryT/aiozmq,asteven/aiozmq,aio-libs/aiozmq | python | ## Code Before:
import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next(iter(listener.transport.bindings()))
notifier = yield from aiozmq.rpc.connect_pipeline(
connect=listener_addr)
yield from notifier.notify.handle_some_event(1, 2)
listener.close()
notifier.close()
def main():
asyncio.get_event_loop().run_until_complete(go())
print("DONE")
if __name__ == '__main__':
main()
## Instruction:
Make rpc pipeine example stable
## Code After:
import asyncio
import aiozmq.rpc
from itertools import count
class Handler(aiozmq.rpc.AttrHandler):
def __init__(self):
self.connected = False
@aiozmq.rpc.method
def remote_func(self, step, a: int, b: int):
self.connected = True
print("HANDLER", step, a, b)
@asyncio.coroutine
def go():
handler = Handler()
listener = yield from aiozmq.rpc.serve_pipeline(
handler, bind='tcp://*:*')
listener_addr = next(iter(listener.transport.bindings()))
notifier = yield from aiozmq.rpc.connect_pipeline(
connect=listener_addr)
for step in count(0):
yield from notifier.notify.remote_func(step, 1, 2)
if handler.connected:
break
else:
yield from asyncio.sleep(0.01)
listener.close()
yield from listener.wait_closed()
notifier.close()
yield from notifier.wait_closed()
def main():
asyncio.get_event_loop().run_until_complete(go())
print("DONE")
if __name__ == '__main__':
main()
| import asyncio
import aiozmq.rpc
+ from itertools import count
class Handler(aiozmq.rpc.AttrHandler):
+ def __init__(self):
+ self.connected = False
+
@aiozmq.rpc.method
- def handle_some_event(self, a: int, b: int):
- pass
+ def remote_func(self, step, a: int, b: int):
+ self.connected = True
+ print("HANDLER", step, a, b)
@asyncio.coroutine
def go():
+ handler = Handler()
listener = yield from aiozmq.rpc.serve_pipeline(
- Handler(), bind='tcp://*:*')
? ^ --
+ handler, bind='tcp://*:*')
? ^
listener_addr = next(iter(listener.transport.bindings()))
notifier = yield from aiozmq.rpc.connect_pipeline(
connect=listener_addr)
- yield from notifier.notify.handle_some_event(1, 2)
+ for step in count(0):
+ yield from notifier.notify.remote_func(step, 1, 2)
+ if handler.connected:
+ break
+ else:
+ yield from asyncio.sleep(0.01)
listener.close()
+ yield from listener.wait_closed()
notifier.close()
+ yield from notifier.wait_closed()
def main():
asyncio.get_event_loop().run_until_complete(go())
print("DONE")
if __name__ == '__main__':
main() | 21 | 0.636364 | 17 | 4 |
23a67389ad5e0a4e506b095977e00c5cb7144088 | .gitlab-ci.yml | .gitlab-ci.yml | build:
script:
- cargo build -j2 --verbose
- cargo test -j2 --verbose
| build:
script:
- cargo --version
- rustc --version
- cargo build -j2 --verbose
- cargo test -j2 --verbose
| Check cargo/rustc version in CI | Check cargo/rustc version in CI
Signed-off-by: Alberto Corona <0c11d463c749db5838e2c0e489bf869d531e5403@albertocorona.com>
| YAML | bsd-3-clause | 0X1A/yabs,0X1A/yabs,0X1A/yabs,0X1A/yabs | yaml | ## Code Before:
build:
script:
- cargo build -j2 --verbose
- cargo test -j2 --verbose
## Instruction:
Check cargo/rustc version in CI
Signed-off-by: Alberto Corona <0c11d463c749db5838e2c0e489bf869d531e5403@albertocorona.com>
## Code After:
build:
script:
- cargo --version
- rustc --version
- cargo build -j2 --verbose
- cargo test -j2 --verbose
| build:
script:
+ - cargo --version
+ - rustc --version
- cargo build -j2 --verbose
- cargo test -j2 --verbose | 2 | 0.5 | 2 | 0 |
782922f91ad8e44be0bad06460d03d1967aa475a | offlineimap/madcore.yaml | offlineimap/madcore.yaml | - id: offlineimap
type: plugin
image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png
description: Copy emails from IMAP server to local folder
bullets:
- OfflineIMAP
text_active: Active
text_buy: "$2.99"
text_inactive: Inactive
text_prerequesite: Prerequisite missing
frame_color: gold
parameters:
- name: app_name
value: offlineimap
description: Plugin app name
type: string
- name: account
value: mysecret
description: IMAP account
type: string
jobs:
- name: deploy
parameters:
- name: S3BUCKETNAME
value: "{{ MADCORE_S3_BUCKET }}"
description: S3 Bucket Name for backup
type: string
prompt: false | - id: offlineimap
type: plugin
image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png
description: Copy emails from IMAP server to local folder
bullets:
- OfflineIMAP
text_active: Active
text_buy: "$2.99"
text_inactive: Inactive
text_prerequesite: Prerequisite missing
frame_color: gold
parameters:
- name: app_name
value: offlineimap
description: Plugin app name
type: string
jobs:
- name: deploy
parameters:
- name: account
value: mysecret
description: IMAP account
type: string
| Move parameter from global to job, and remove unnecessary | Move parameter from global to job, and remove unnecessary
| YAML | mit | madcore-ai/plugins | yaml | ## Code Before:
- id: offlineimap
type: plugin
image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png
description: Copy emails from IMAP server to local folder
bullets:
- OfflineIMAP
text_active: Active
text_buy: "$2.99"
text_inactive: Inactive
text_prerequesite: Prerequisite missing
frame_color: gold
parameters:
- name: app_name
value: offlineimap
description: Plugin app name
type: string
- name: account
value: mysecret
description: IMAP account
type: string
jobs:
- name: deploy
parameters:
- name: S3BUCKETNAME
value: "{{ MADCORE_S3_BUCKET }}"
description: S3 Bucket Name for backup
type: string
prompt: false
## Instruction:
Move parameter from global to job, and remove unnecessary
## Code After:
- id: offlineimap
type: plugin
image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png
description: Copy emails from IMAP server to local folder
bullets:
- OfflineIMAP
text_active: Active
text_buy: "$2.99"
text_inactive: Inactive
text_prerequesite: Prerequisite missing
frame_color: gold
parameters:
- name: app_name
value: offlineimap
description: Plugin app name
type: string
jobs:
- name: deploy
parameters:
- name: account
value: mysecret
description: IMAP account
type: string
| - id: offlineimap
type: plugin
image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png
description: Copy emails from IMAP server to local folder
bullets:
- OfflineIMAP
text_active: Active
text_buy: "$2.99"
text_inactive: Inactive
text_prerequesite: Prerequisite missing
frame_color: gold
parameters:
- name: app_name
value: offlineimap
description: Plugin app name
type: string
- - name: account
- value: mysecret
- description: IMAP account
- type: string
jobs:
- name: deploy
parameters:
- - name: S3BUCKETNAME
- value: "{{ MADCORE_S3_BUCKET }}"
- description: S3 Bucket Name for backup
+ - name: account
+ value: mysecret
+ description: IMAP account
type: string
- prompt: false | 11 | 0.392857 | 3 | 8 |
c5acee359196643ed7e72bf467ee4fde57387a74 | app/assets/json/manifest.json.erb | app/assets/json/manifest.json.erb | {
"name": "Package Tracker",
"shortname": "Tracker",
"start_url": "/",
"display": "standalone",
"theme_color": "#f7b551",
"background_color": "#ffffff",
"icons": [
{
"src": "<%= asset_path 'launcher-icon-2x.png' %>",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-3x.png' %>",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-4x.png' %>",
"sizes": "192x192",
"type": "image/png"
}
]
}
| {
"name": "Package Tracker",
"shortname": "Tracker",
"start_url": "/",
"display": "browser",
"theme_color": "#f7b551",
"background_color": "#ffffff",
"icons": [
{
"src": "<%= asset_path 'launcher-icon-2x.png' %>",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-3x.png' %>",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-4x.png' %>",
"sizes": "192x192",
"type": "image/png"
}
]
}
| Change manifest display to browser | Change manifest display to browser
| HTML+ERB | mit | coreyja/package-tracker,coreyja/package-tracker,coreyja/package-tracker | html+erb | ## Code Before:
{
"name": "Package Tracker",
"shortname": "Tracker",
"start_url": "/",
"display": "standalone",
"theme_color": "#f7b551",
"background_color": "#ffffff",
"icons": [
{
"src": "<%= asset_path 'launcher-icon-2x.png' %>",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-3x.png' %>",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-4x.png' %>",
"sizes": "192x192",
"type": "image/png"
}
]
}
## Instruction:
Change manifest display to browser
## Code After:
{
"name": "Package Tracker",
"shortname": "Tracker",
"start_url": "/",
"display": "browser",
"theme_color": "#f7b551",
"background_color": "#ffffff",
"icons": [
{
"src": "<%= asset_path 'launcher-icon-2x.png' %>",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-3x.png' %>",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-4x.png' %>",
"sizes": "192x192",
"type": "image/png"
}
]
}
| {
"name": "Package Tracker",
"shortname": "Tracker",
"start_url": "/",
- "display": "standalone",
+ "display": "browser",
"theme_color": "#f7b551",
"background_color": "#ffffff",
"icons": [
{
"src": "<%= asset_path 'launcher-icon-2x.png' %>",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-3x.png' %>",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "<%= asset_path 'launcher-icon-4x.png' %>",
"sizes": "192x192",
"type": "image/png"
}
]
} | 2 | 0.08 | 1 | 1 |
8774517714c8c8a7f7a2be9316a23497adfa9f59 | pi_gpio/urls.py | pi_gpio/urls.py | from pi_gpio import app, socketio
from flask.ext import restful
from flask import render_template
from handlers import PinList, PinDetail
api = restful.Api(app)
api.add_resource(PinList, '/api/v1/pin')
api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>')
import RPi.GPIO as GPIO
def event_callback(pin):
socketio.emit('pin:event', {"message":"woohoo!"})
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def index(path):
GPIO.add_event_detect(23, GPIO.RISING, callback=event_callback)
return render_template('index.html')
| from pi_gpio import app, socketio
from flask.ext import restful
from flask import render_template
from handlers import PinList, PinDetail
from events import PinEventManager
api = restful.Api(app)
api.add_resource(PinList, '/api/v1/pin')
api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>')
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def index(path):
PinEventManager()
return render_template('index.html')
| Call event manager in index route | Call event manager in index route
| Python | mit | projectweekend/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server | python | ## Code Before:
from pi_gpio import app, socketio
from flask.ext import restful
from flask import render_template
from handlers import PinList, PinDetail
api = restful.Api(app)
api.add_resource(PinList, '/api/v1/pin')
api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>')
import RPi.GPIO as GPIO
def event_callback(pin):
socketio.emit('pin:event', {"message":"woohoo!"})
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def index(path):
GPIO.add_event_detect(23, GPIO.RISING, callback=event_callback)
return render_template('index.html')
## Instruction:
Call event manager in index route
## Code After:
from pi_gpio import app, socketio
from flask.ext import restful
from flask import render_template
from handlers import PinList, PinDetail
from events import PinEventManager
api = restful.Api(app)
api.add_resource(PinList, '/api/v1/pin')
api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>')
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def index(path):
PinEventManager()
return render_template('index.html')
| from pi_gpio import app, socketio
from flask.ext import restful
from flask import render_template
from handlers import PinList, PinDetail
+ from events import PinEventManager
api = restful.Api(app)
api.add_resource(PinList, '/api/v1/pin')
api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>')
- import RPi.GPIO as GPIO
-
-
- def event_callback(pin):
- socketio.emit('pin:event', {"message":"woohoo!"})
-
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def index(path):
- GPIO.add_event_detect(23, GPIO.RISING, callback=event_callback)
+ PinEventManager()
return render_template('index.html') | 9 | 0.409091 | 2 | 7 |
64bdf4da9cdc9aab9a39042c556bc753e86fe4f5 | README.md | README.md | Gradle webapp version plugin
============================
This plugin builds a static `version.json` file containing project build & version information and includes it in the
.war distributable.
Supported CI systems
--------------------
* TeamCity
* Thoughtworks GO
How to use
----------
[Apply the plugin](https://plugins.gradle.org/plugin/uk.co.littlemike.webapp-version-plugin)
A `version.json` file with the following format will be included in the root of your .war file. Note that the `"version"`
is taken from the `project.version` property at the moment the `war` task is called.
```
{
"version": "0.6",
"build": "12",
"built": "2015-04-19T21:18:03Z",
"revision": "0a4f58f9dd476d8a28737e51a46d3eab0ce9e288"
}
```
The build information follows the format from the [gradle-build-version plugin](https://github.com/LittleMikeDev/gradle-build-version) | Gradle webapp version plugin
============================
[](https://travis-ci.org/LittleMikeDev/gradle-webapp-version)
[](http://codecov.io/github/LittleMikeDev/gradle-webapp-version?branch=master)
This plugin builds a static `version.json` file containing project build & version information and includes it in the
.war distributable.
Supported CI systems
--------------------
* TeamCity
* Thoughtworks GO
How to use
----------
[Apply the plugin](https://plugins.gradle.org/plugin/uk.co.littlemike.webapp-version-plugin)
A `version.json` file with the following format will be included in the root of your .war file. Note that the `"version"`
is taken from the `project.version` property at the moment the `war` task is called.
```
{
"version": "0.6",
"build": "12",
"built": "2015-04-19T21:18:03Z",
"revision": "0a4f58f9dd476d8a28737e51a46d3eab0ce9e288"
}
```
The build information follows the format from the [gradle-build-version plugin](https://github.com/LittleMikeDev/gradle-build-version) | Add build & coverage badges | Add build & coverage badges
| Markdown | bsd-2-clause | LittleMikeDev/gradle-webapp-version,LittleMikeDev/gradle-webapp-version | markdown | ## Code Before:
Gradle webapp version plugin
============================
This plugin builds a static `version.json` file containing project build & version information and includes it in the
.war distributable.
Supported CI systems
--------------------
* TeamCity
* Thoughtworks GO
How to use
----------
[Apply the plugin](https://plugins.gradle.org/plugin/uk.co.littlemike.webapp-version-plugin)
A `version.json` file with the following format will be included in the root of your .war file. Note that the `"version"`
is taken from the `project.version` property at the moment the `war` task is called.
```
{
"version": "0.6",
"build": "12",
"built": "2015-04-19T21:18:03Z",
"revision": "0a4f58f9dd476d8a28737e51a46d3eab0ce9e288"
}
```
The build information follows the format from the [gradle-build-version plugin](https://github.com/LittleMikeDev/gradle-build-version)
## Instruction:
Add build & coverage badges
## Code After:
Gradle webapp version plugin
============================
[](https://travis-ci.org/LittleMikeDev/gradle-webapp-version)
[](http://codecov.io/github/LittleMikeDev/gradle-webapp-version?branch=master)
This plugin builds a static `version.json` file containing project build & version information and includes it in the
.war distributable.
Supported CI systems
--------------------
* TeamCity
* Thoughtworks GO
How to use
----------
[Apply the plugin](https://plugins.gradle.org/plugin/uk.co.littlemike.webapp-version-plugin)
A `version.json` file with the following format will be included in the root of your .war file. Note that the `"version"`
is taken from the `project.version` property at the moment the `war` task is called.
```
{
"version": "0.6",
"build": "12",
"built": "2015-04-19T21:18:03Z",
"revision": "0a4f58f9dd476d8a28737e51a46d3eab0ce9e288"
}
```
The build information follows the format from the [gradle-build-version plugin](https://github.com/LittleMikeDev/gradle-build-version) | Gradle webapp version plugin
============================
+
+ [](https://travis-ci.org/LittleMikeDev/gradle-webapp-version)
+ [](http://codecov.io/github/LittleMikeDev/gradle-webapp-version?branch=master)
This plugin builds a static `version.json` file containing project build & version information and includes it in the
.war distributable.
Supported CI systems
--------------------
* TeamCity
* Thoughtworks GO
How to use
----------
[Apply the plugin](https://plugins.gradle.org/plugin/uk.co.littlemike.webapp-version-plugin)
A `version.json` file with the following format will be included in the root of your .war file. Note that the `"version"`
is taken from the `project.version` property at the moment the `war` task is called.
```
{
"version": "0.6",
"build": "12",
"built": "2015-04-19T21:18:03Z",
"revision": "0a4f58f9dd476d8a28737e51a46d3eab0ce9e288"
}
```
The build information follows the format from the [gradle-build-version plugin](https://github.com/LittleMikeDev/gradle-build-version) | 3 | 0.1 | 3 | 0 |
57b26b26504e5578134ffedd9a99346f306ef14c | .github/workflows/deploy-latest.yml | .github/workflows/deploy-latest.yml | name: Deploy Containers
on:
push:
branches:
- master
jobs:
deploy-latest-containers:
name: Github Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Github Registry
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{github.repository}}/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
| name: Deploy Containers
on:
push:
branches:
- master
jobs:
deploy-latest-containers:
name: Github Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Github Registry
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{github.repository}}/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
deploy-latest-containers:
name: Docker Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Docker Registry
uses: docker/build-push-action@v1
with:
username: zorgbort
password: ${{ secrets.ZORGBORT_DOCKER_TOKEN }}
repository: ilios/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
| Deploy containers to docker hub | Deploy containers to docker hub
Until Github figures out some issues with their package registry we need
to send our containers to docker.
| YAML | mit | thecoolestguy/ilios,ilios/ilios,dartajax/ilios,dartajax/ilios,Trott/ilios,thecoolestguy/ilios,Trott/ilios,stopfstedt/ilios,stopfstedt/ilios,ilios/ilios | yaml | ## Code Before:
name: Deploy Containers
on:
push:
branches:
- master
jobs:
deploy-latest-containers:
name: Github Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Github Registry
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{github.repository}}/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
## Instruction:
Deploy containers to docker hub
Until Github figures out some issues with their package registry we need
to send our containers to docker.
## Code After:
name: Deploy Containers
on:
push:
branches:
- master
jobs:
deploy-latest-containers:
name: Github Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Github Registry
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{github.repository}}/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
deploy-latest-containers:
name: Docker Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Docker Registry
uses: docker/build-push-action@v1
with:
username: zorgbort
password: ${{ secrets.ZORGBORT_DOCKER_TOKEN }}
repository: ilios/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
| name: Deploy Containers
on:
push:
branches:
- master
jobs:
deploy-latest-containers:
name: Github Registry as latest
runs-on: ubuntu-latest
strategy:
matrix:
image:
- php-apache
- nginx
- fpm
- fpm-dev
- admin
- migrate-database
- update-frontend
- consume-messages
- ilios-mysql
- ilios-mysql-demo
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.image }} to Github Registry
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{github.repository}}/${{ matrix.image }}
tags: latest
target: ${{ matrix.image }}
+ deploy-latest-containers:
+ name: Docker Registry as latest
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ image:
+ - php-apache
+ - nginx
+ - fpm
+ - fpm-dev
+ - admin
+ - migrate-database
+ - update-frontend
+ - consume-messages
+ - ilios-mysql
+ - ilios-mysql-demo
+ steps:
+ - uses: actions/checkout@v2
+ - name: ${{ matrix.image }} to Docker Registry
+ uses: docker/build-push-action@v1
+ with:
+ username: zorgbort
+ password: ${{ secrets.ZORGBORT_DOCKER_TOKEN }}
+ repository: ilios/${{ matrix.image }}
+ tags: latest
+ target: ${{ matrix.image }} | 26 | 0.764706 | 26 | 0 |
0d5fd85136754689f40de6bc06ffea2e0543d897 | src/Furniture/UserBundle/Killer/Subscriber/CollectSessionSubscriber.php | src/Furniture/UserBundle/Killer/Subscriber/CollectSessionSubscriber.php | <?php
namespace Furniture\UserBundle\Killer\Subscriber;
use Furniture\UserBundle\Killer\Killer;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class CollectSessionSubscriber implements EventSubscriberInterface
{
/**
* @var Killer
*/
private $killer;
/**
* Construct
*
* @param Killer $killer
*/
public function __construct(Killer $killer)
{
$this->killer = $killer;
}
/**
* Kill user if necessary
*
* @param GetResponseEvent $event
*/
public function collectSession(GetResponseEvent $event)
{
if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {
return;
}
$request = $event->getRequest();
$session = $request->getSession();
$id = $session->getId();
$this->killer->collectionSessionId($id);
}
/**
* {@inheritDoc}
*/
public static function getSubscribedEvents()
{
return [
KernelEvents::REQUEST => [
['collectSession', 0],
],
];
}
}
| <?php
namespace Furniture\UserBundle\Killer\Subscriber;
use Furniture\UserBundle\Killer\Killer;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class CollectSessionSubscriber implements EventSubscriberInterface
{
/**
* @var Killer
*/
private $killer;
/**
* Construct
*
* @param Killer $killer
*/
public function __construct(Killer $killer)
{
$this->killer = $killer;
}
/**
* User add session to collection.
*
* @param GetResponseEvent $event
*/
public function collectSession(GetResponseEvent $event)
{
if (!$event->isMasterRequest()) {
return;
}
$request = $event->getRequest();
$session = $request->getSession();
$id = $session->getId();
$this->killer->collectionSessionId($id);
}
/**
* {@inheritDoc}
*/
public static function getSubscribedEvents()
{
return [
KernelEvents::REQUEST => [
['collectSession', 0],
],
];
}
}
| Change if statement to method call instead compare | Change if statement to method call instead compare
| PHP | mit | Viktor-s/f,Viktor-s/f,Viktor-s/f,Viktor-s/f,Viktor-s/f | php | ## Code Before:
<?php
namespace Furniture\UserBundle\Killer\Subscriber;
use Furniture\UserBundle\Killer\Killer;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class CollectSessionSubscriber implements EventSubscriberInterface
{
/**
* @var Killer
*/
private $killer;
/**
* Construct
*
* @param Killer $killer
*/
public function __construct(Killer $killer)
{
$this->killer = $killer;
}
/**
* Kill user if necessary
*
* @param GetResponseEvent $event
*/
public function collectSession(GetResponseEvent $event)
{
if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {
return;
}
$request = $event->getRequest();
$session = $request->getSession();
$id = $session->getId();
$this->killer->collectionSessionId($id);
}
/**
* {@inheritDoc}
*/
public static function getSubscribedEvents()
{
return [
KernelEvents::REQUEST => [
['collectSession', 0],
],
];
}
}
## Instruction:
Change if statement to method call instead compare
## Code After:
<?php
namespace Furniture\UserBundle\Killer\Subscriber;
use Furniture\UserBundle\Killer\Killer;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class CollectSessionSubscriber implements EventSubscriberInterface
{
/**
* @var Killer
*/
private $killer;
/**
* Construct
*
* @param Killer $killer
*/
public function __construct(Killer $killer)
{
$this->killer = $killer;
}
/**
* User add session to collection.
*
* @param GetResponseEvent $event
*/
public function collectSession(GetResponseEvent $event)
{
if (!$event->isMasterRequest()) {
return;
}
$request = $event->getRequest();
$session = $request->getSession();
$id = $session->getId();
$this->killer->collectionSessionId($id);
}
/**
* {@inheritDoc}
*/
public static function getSubscribedEvents()
{
return [
KernelEvents::REQUEST => [
['collectSession', 0],
],
];
}
}
| <?php
namespace Furniture\UserBundle\Killer\Subscriber;
use Furniture\UserBundle\Killer\Killer;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class CollectSessionSubscriber implements EventSubscriberInterface
{
/**
* @var Killer
*/
private $killer;
/**
* Construct
*
* @param Killer $killer
*/
public function __construct(Killer $killer)
{
$this->killer = $killer;
}
/**
- * Kill user if necessary
+ * User add session to collection.
*
* @param GetResponseEvent $event
*/
public function collectSession(GetResponseEvent $event)
{
- if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {
+ if (!$event->isMasterRequest()) {
return;
}
$request = $event->getRequest();
$session = $request->getSession();
$id = $session->getId();
$this->killer->collectionSessionId($id);
}
/**
* {@inheritDoc}
*/
public static function getSubscribedEvents()
{
return [
KernelEvents::REQUEST => [
['collectSession', 0],
],
];
}
} | 4 | 0.067797 | 2 | 2 |
d11f1983a82c416973f1b58cbeb8b8dd1f1f6033 | index.js | index.js | var Button = require('./dist/components/Button.js').default;
var Title = require('./dist/components/Title.js').default;
var Divider = require('./dist/components/Divider.js').default;
var NumberField = require('./dist/components/NumberField.js').default;
var TextField = require('./dist/components/TextField.js').default;
var TextArea = require('./dist/components/TextArea.js').default;
var Expand = require('./dist/components/Expand.js').default;
module.exports = {
Button,
Title,
Divider,
NumberField,
TextField,
TextArea,
Expand
}; | var Button = require('./dist/components/Button.js').default;
var Divider = require('./dist/components/Divider.js').default;
var Expand = require('./dist/components/Expand.js').default;
var Icon = require('./dist/components/Icon.js').default;
var Menu = require('./dist/components/Menu.js').default;
var MenuItem = require('./dist/components/MenuItem.js').default;
var MenuText = require('./dist/components/MenuText.js').default;
var NumberField = require('./dist/components/NumberField.js').default;
var Row = require('./dist/components/Row.js').default;
var TextArea = require('./dist/components/TextArea.js').default;
var TextField = require('./dist/components/TextField.js').default;
var Title = require('./dist/components/Title.js').default;
module.exports = {
Button,
Divider,
Expand,
Icon,
Menu,
MenuItem,
MenuText,
NumberField,
Row,
TextArea,
TextField,
Title
}; | Add components to export and alphebetize | Add components to export and alphebetize
| JavaScript | mit | ryanwade/react-foundation-components,ryanwade/react-foundation-components | javascript | ## Code Before:
var Button = require('./dist/components/Button.js').default;
var Title = require('./dist/components/Title.js').default;
var Divider = require('./dist/components/Divider.js').default;
var NumberField = require('./dist/components/NumberField.js').default;
var TextField = require('./dist/components/TextField.js').default;
var TextArea = require('./dist/components/TextArea.js').default;
var Expand = require('./dist/components/Expand.js').default;
module.exports = {
Button,
Title,
Divider,
NumberField,
TextField,
TextArea,
Expand
};
## Instruction:
Add components to export and alphebetize
## Code After:
var Button = require('./dist/components/Button.js').default;
var Divider = require('./dist/components/Divider.js').default;
var Expand = require('./dist/components/Expand.js').default;
var Icon = require('./dist/components/Icon.js').default;
var Menu = require('./dist/components/Menu.js').default;
var MenuItem = require('./dist/components/MenuItem.js').default;
var MenuText = require('./dist/components/MenuText.js').default;
var NumberField = require('./dist/components/NumberField.js').default;
var Row = require('./dist/components/Row.js').default;
var TextArea = require('./dist/components/TextArea.js').default;
var TextField = require('./dist/components/TextField.js').default;
var Title = require('./dist/components/Title.js').default;
module.exports = {
Button,
Divider,
Expand,
Icon,
Menu,
MenuItem,
MenuText,
NumberField,
Row,
TextArea,
TextField,
Title
}; | var Button = require('./dist/components/Button.js').default;
+ var Divider = require('./dist/components/Divider.js').default;
+ var Expand = require('./dist/components/Expand.js').default;
+ var Icon = require('./dist/components/Icon.js').default;
+ var Menu = require('./dist/components/Menu.js').default;
+ var MenuItem = require('./dist/components/MenuItem.js').default;
+ var MenuText = require('./dist/components/MenuText.js').default;
+ var NumberField = require('./dist/components/NumberField.js').default;
+ var Row = require('./dist/components/Row.js').default;
+ var TextArea = require('./dist/components/TextArea.js').default;
+ var TextField = require('./dist/components/TextField.js').default;
var Title = require('./dist/components/Title.js').default;
- var Divider = require('./dist/components/Divider.js').default;
- var NumberField = require('./dist/components/NumberField.js').default;
- var TextField = require('./dist/components/TextField.js').default;
- var TextArea = require('./dist/components/TextArea.js').default;
- var Expand = require('./dist/components/Expand.js').default;
module.exports = {
Button,
- Title,
Divider,
+ Expand,
+ Icon,
+ Menu,
+ MenuItem,
+ MenuText,
NumberField,
+ Row,
+ TextArea,
TextField,
+ Title
- TextArea,
- Expand
}; | 26 | 1.529412 | 18 | 8 |
3d06be213f7dc2c98cf77ddd497a603af2671e53 | nbt/__init__.py | nbt/__init__.py | __all__ = ["chunk", "region", "world", "nbt"]
from . import *
VERSION = (1, 3)
def _get_version():
return ".".join(VERSION)
| __all__ = ["nbt", "world", "region", "chunk"]
from . import *
VERSION = (1, 3)
def _get_version():
"""Return the NBT version as string."""
return ".".join([str(v) for v in VERSION])
| Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes | Fix nbt._get_version()
Function did not work (it tried to join integers as a string)
Also re-order __all__ for documentation purposes
| Python | mit | twoolie/NBT,cburschka/NBT,macfreek/NBT,devmario/NBT,fwaggle/NBT | python | ## Code Before:
__all__ = ["chunk", "region", "world", "nbt"]
from . import *
VERSION = (1, 3)
def _get_version():
return ".".join(VERSION)
## Instruction:
Fix nbt._get_version()
Function did not work (it tried to join integers as a string)
Also re-order __all__ for documentation purposes
## Code After:
__all__ = ["nbt", "world", "region", "chunk"]
from . import *
VERSION = (1, 3)
def _get_version():
"""Return the NBT version as string."""
return ".".join([str(v) for v in VERSION])
| - __all__ = ["chunk", "region", "world", "nbt"]
+ __all__ = ["nbt", "world", "region", "chunk"]
from . import *
VERSION = (1, 3)
def _get_version():
- return ".".join(VERSION)
+ """Return the NBT version as string."""
+ return ".".join([str(v) for v in VERSION]) | 5 | 0.714286 | 3 | 2 |
d213c1ec81036667da92cc7b30ce1764c15c5492 | roles/base/tasks/main.yml | roles/base/tasks/main.yml | ---
- include: create_swap_file.yml
when: create_swap_file
tags: swap
- name: Ensure bash, OpenSSl, and libssl are the latest versions
apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
with_items:
- bash
- openssl
- libssl-dev
- libssl-doc
tags: packages
- name: Install base packages
apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
with_items:
- build-essential
- ntp
- htop
- git
- libpq-dev
- python-dev
- python-pip
- python-pycurl
- python-psycopg2
- supervisor
- binutils
- libproj-dev
- gdal-bin
- python-gdal
- libpng-dev
- libfreetype6-dev
- pkg-config
- libjpeg62
- libjpeg62-dev
tags: packages
- name: Install virtualenv
pip: name=virtualenv
tags: packages
- name: Install virtualenv
pip: name=virtualenvwrapper
tags: packages
- name: copy esri extras
copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644
| ---
- include: create_swap_file.yml
when: create_swap_file
tags: swap
- name: Ensure bash, OpenSSl, and libssl are the latest versions
apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
with_items:
- bash
- openssl
- libssl-dev
- libssl-doc
tags: packages
- name: Install base packages
apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
with_items:
- build-essential
- ntp
- htop
- git
- libpq-dev
- python-dev
- python-pip
- python-pycurl
- python-psycopg2
- supervisor
- binutils
- libproj-dev
- gdal-bin
- python-gdal
- libpng-dev
- libfreetype6-dev
- pkg-config
- libjpeg62
- libjpeg62-dev
- libblas-dev
- liblapack-dev
- libatlas-base-dev
- gfortran
tags: packages
- name: Install virtualenv
pip: name=virtualenv
tags: packages
- name: Install virtualenv
pip: name=virtualenvwrapper
tags: packages
- name: copy esri extras
copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644
| Add packages required for Scipy. | Add packages required for Scipy.
| YAML | mit | meilinger/firecares-ansible,ROGUE-JCTD/vida-ansible,FireCARES/firecares-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ProminentEdge/flintlock-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,FireCARES/firecares-ansible,FireCARES/firecares-ansible,meilinger/firecares-ansible,ProminentEdge/flintlock-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible | yaml | ## Code Before:
---
- include: create_swap_file.yml
when: create_swap_file
tags: swap
- name: Ensure bash, OpenSSl, and libssl are the latest versions
apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
with_items:
- bash
- openssl
- libssl-dev
- libssl-doc
tags: packages
- name: Install base packages
apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
with_items:
- build-essential
- ntp
- htop
- git
- libpq-dev
- python-dev
- python-pip
- python-pycurl
- python-psycopg2
- supervisor
- binutils
- libproj-dev
- gdal-bin
- python-gdal
- libpng-dev
- libfreetype6-dev
- pkg-config
- libjpeg62
- libjpeg62-dev
tags: packages
- name: Install virtualenv
pip: name=virtualenv
tags: packages
- name: Install virtualenv
pip: name=virtualenvwrapper
tags: packages
- name: copy esri extras
copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644
## Instruction:
Add packages required for Scipy.
## Code After:
---
- include: create_swap_file.yml
when: create_swap_file
tags: swap
- name: Ensure bash, OpenSSl, and libssl are the latest versions
apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
with_items:
- bash
- openssl
- libssl-dev
- libssl-doc
tags: packages
- name: Install base packages
apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
with_items:
- build-essential
- ntp
- htop
- git
- libpq-dev
- python-dev
- python-pip
- python-pycurl
- python-psycopg2
- supervisor
- binutils
- libproj-dev
- gdal-bin
- python-gdal
- libpng-dev
- libfreetype6-dev
- pkg-config
- libjpeg62
- libjpeg62-dev
- libblas-dev
- liblapack-dev
- libatlas-base-dev
- gfortran
tags: packages
- name: Install virtualenv
pip: name=virtualenv
tags: packages
- name: Install virtualenv
pip: name=virtualenvwrapper
tags: packages
- name: copy esri extras
copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644
| ---
- include: create_swap_file.yml
when: create_swap_file
tags: swap
- name: Ensure bash, OpenSSl, and libssl are the latest versions
apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
with_items:
- bash
- openssl
- libssl-dev
- libssl-doc
tags: packages
- name: Install base packages
apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
with_items:
- build-essential
- ntp
- htop
- git
- libpq-dev
- python-dev
- python-pip
- python-pycurl
- python-psycopg2
- supervisor
- binutils
- libproj-dev
- gdal-bin
- python-gdal
- libpng-dev
- libfreetype6-dev
- pkg-config
- libjpeg62
- libjpeg62-dev
+ - libblas-dev
+ - liblapack-dev
+ - libatlas-base-dev
+ - gfortran
tags: packages
- name: Install virtualenv
pip: name=virtualenv
tags: packages
- name: Install virtualenv
pip: name=virtualenvwrapper
tags: packages
- name: copy esri extras
copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644 | 4 | 0.081633 | 4 | 0 |
859843bd3a90a97a0dd0049088903aed6b6e50ce | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- mysql -e 'CREATE DATABASE concrete5_tests;'
- cd web/concrete
- composer install
- cd ../../tests
script: phpunit
notifications:
email: false
matrix:
allow_failures:
- php: hhvm
| language: php
sudo: false
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- mysql -e 'CREATE DATABASE concrete5_tests;'
- cd web/concrete
- composer install
- cd ../../tests
script: phpunit
notifications:
email: false
matrix:
allow_failures:
- php: hhvm
| Use container-based infrastructure on Travis CI | Use container-based infrastructure on Travis CI
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
Former-commit-id: bf38821ce2dcb37e8248d7a273eb1b23c4e5911e | YAML | mit | jaromirdalecky/concrete5,deek87/concrete5,acliss19xx/concrete5,olsgreen/concrete5,MrKarlDilkington/concrete5,biplobice/concrete5,deek87/concrete5,KorvinSzanto/concrete5,triplei/concrete5-8,a3020/concrete5,jaromirdalecky/concrete5,haeflimi/concrete5,deek87/concrete5,mainio/concrete5,hissy/concrete5,biplobice/concrete5,haeflimi/concrete5,biplobice/concrete5,jaromirdalecky/concrete5,mlocati/concrete5,deek87/concrete5,mlocati/concrete5,rikzuiderlicht/concrete5,jaromirdalecky/concrete5,acliss19xx/concrete5,mlocati/concrete5,olsgreen/concrete5,mainio/concrete5,rikzuiderlicht/concrete5,concrete5/concrete5,mainio/concrete5,mlocati/concrete5,hissy/concrete5,MrKarlDilkington/concrete5,olsgreen/concrete5,hissy/concrete5,biplobice/concrete5,acliss19xx/concrete5,haeflimi/concrete5,rikzuiderlicht/concrete5,concrete5/concrete5,a3020/concrete5,KorvinSzanto/concrete5,concrete5/concrete5,triplei/concrete5-8,KorvinSzanto/concrete5,haeflimi/concrete5,concrete5/concrete5,hissy/concrete5,MrKarlDilkington/concrete5,triplei/concrete5-8 | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- mysql -e 'CREATE DATABASE concrete5_tests;'
- cd web/concrete
- composer install
- cd ../../tests
script: phpunit
notifications:
email: false
matrix:
allow_failures:
- php: hhvm
## Instruction:
Use container-based infrastructure on Travis CI
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
Former-commit-id: bf38821ce2dcb37e8248d7a273eb1b23c4e5911e
## Code After:
language: php
sudo: false
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- mysql -e 'CREATE DATABASE concrete5_tests;'
- cd web/concrete
- composer install
- cd ../../tests
script: phpunit
notifications:
email: false
matrix:
allow_failures:
- php: hhvm
| language: php
+ sudo: false
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- mysql -e 'CREATE DATABASE concrete5_tests;'
- cd web/concrete
- composer install
- cd ../../tests
script: phpunit
notifications:
email: false
matrix:
allow_failures:
- php: hhvm | 1 | 0.041667 | 1 | 0 |
917a0d89e7e4dcfe2d13d2305c18ab88a48548c7 | tests/tasks/pre.yml | tests/tasks/pre.yml | ---
- name: install dependencies
apt:
name:
- openssh-client
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
- name: add ssh directory
file:
path: "{{ autossh_tunnel_client_ssh_directory }}"
state: directory
owner: root
group: root
mode: 0700
- name: generate key pair
command: >
ssh-keygen -t rsa -b 2048 -C '' -P '' -f {{ autossh_tunnel_client_private_key_file }} -q
args:
creates: "{{ autossh_tunnel_client_private_key_file }}"
- name: add public key
shell: >
cat {{ autossh_tunnel_client_public_key_file }} > {{ autossh_tunnel_client_authorized_keys_file }}
args:
creates: "{{ autossh_tunnel_client_authorized_keys_file }}"
- name: install test service
apt:
name:
- openssh-server
- memcached
state: "{{ apt_install_state | default('latest') }}"
| ---
- name: install dependencies
apt:
name:
- openssh-client
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
- name: add ssh directory
file:
path: "{{ autossh_tunnel_client_ssh_directory }}"
state: directory
owner: root
group: root
mode: 0700
- name: generate key pair
command: >
ssh-keygen -t rsa -b 2048 -C '' -P '' -f {{ autossh_tunnel_client_private_key_file }} -q
args:
creates: "{{ autossh_tunnel_client_private_key_file }}"
- name: remove authorized_keys file (if empty)
shell: >
[ -s {{ autossh_tunnel_client_authorized_keys_file }} ] || rm -fv {{ autossh_tunnel_client_authorized_keys_file }}
register: _rm_fv
changed_when: _rm_fv.stdout_lines | length > 0
- name: add public key
shell: >
cat {{ autossh_tunnel_client_public_key_file }} > {{ autossh_tunnel_client_authorized_keys_file }}
args:
creates: "{{ autossh_tunnel_client_authorized_keys_file }}"
- name: install test service
apt:
name:
- openssh-server
- memcached
state: "{{ apt_install_state | default('latest') }}"
| Fix failing tests on 20.04 | Fix failing tests on 20.04
| YAML | mit | Oefenweb/ansible-autossh-tunnel-client | yaml | ## Code Before:
---
- name: install dependencies
apt:
name:
- openssh-client
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
- name: add ssh directory
file:
path: "{{ autossh_tunnel_client_ssh_directory }}"
state: directory
owner: root
group: root
mode: 0700
- name: generate key pair
command: >
ssh-keygen -t rsa -b 2048 -C '' -P '' -f {{ autossh_tunnel_client_private_key_file }} -q
args:
creates: "{{ autossh_tunnel_client_private_key_file }}"
- name: add public key
shell: >
cat {{ autossh_tunnel_client_public_key_file }} > {{ autossh_tunnel_client_authorized_keys_file }}
args:
creates: "{{ autossh_tunnel_client_authorized_keys_file }}"
- name: install test service
apt:
name:
- openssh-server
- memcached
state: "{{ apt_install_state | default('latest') }}"
## Instruction:
Fix failing tests on 20.04
## Code After:
---
- name: install dependencies
apt:
name:
- openssh-client
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
- name: add ssh directory
file:
path: "{{ autossh_tunnel_client_ssh_directory }}"
state: directory
owner: root
group: root
mode: 0700
- name: generate key pair
command: >
ssh-keygen -t rsa -b 2048 -C '' -P '' -f {{ autossh_tunnel_client_private_key_file }} -q
args:
creates: "{{ autossh_tunnel_client_private_key_file }}"
- name: remove authorized_keys file (if empty)
shell: >
[ -s {{ autossh_tunnel_client_authorized_keys_file }} ] || rm -fv {{ autossh_tunnel_client_authorized_keys_file }}
register: _rm_fv
changed_when: _rm_fv.stdout_lines | length > 0
- name: add public key
shell: >
cat {{ autossh_tunnel_client_public_key_file }} > {{ autossh_tunnel_client_authorized_keys_file }}
args:
creates: "{{ autossh_tunnel_client_authorized_keys_file }}"
- name: install test service
apt:
name:
- openssh-server
- memcached
state: "{{ apt_install_state | default('latest') }}"
| ---
- name: install dependencies
apt:
name:
- openssh-client
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
- name: add ssh directory
file:
path: "{{ autossh_tunnel_client_ssh_directory }}"
state: directory
owner: root
group: root
mode: 0700
- name: generate key pair
command: >
ssh-keygen -t rsa -b 2048 -C '' -P '' -f {{ autossh_tunnel_client_private_key_file }} -q
args:
creates: "{{ autossh_tunnel_client_private_key_file }}"
+ - name: remove authorized_keys file (if empty)
+ shell: >
+ [ -s {{ autossh_tunnel_client_authorized_keys_file }} ] || rm -fv {{ autossh_tunnel_client_authorized_keys_file }}
+ register: _rm_fv
+ changed_when: _rm_fv.stdout_lines | length > 0
+
- name: add public key
shell: >
cat {{ autossh_tunnel_client_public_key_file }} > {{ autossh_tunnel_client_authorized_keys_file }}
args:
creates: "{{ autossh_tunnel_client_authorized_keys_file }}"
- name: install test service
apt:
name:
- openssh-server
- memcached
state: "{{ apt_install_state | default('latest') }}" | 6 | 0.171429 | 6 | 0 |
56545753e1a8c520a0fe099e3155c68e8956fd6e | .travis.yml | .travis.yml | language: R
sudo: required
bioc_required: true
warnings_are_errors: true
| language: R
sudo: required
bioc_required: true
bioc_packages:
- BiocCheck
warnings_are_errors: true
after_script:
- ls -lah
- FILE=$(ls -1t *.tar.gz | head -n 1)
- Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")" | Test out adding BiocCheck to Travis CI | Test out adding BiocCheck to Travis CI
| YAML | bsd-2-clause | oneillkza/ContiBAIT,oneillkza/ContiBAIT,rareaquaticbadger/ContiBAIT,rareaquaticbadger/ContiBAIT | yaml | ## Code Before:
language: R
sudo: required
bioc_required: true
warnings_are_errors: true
## Instruction:
Test out adding BiocCheck to Travis CI
## Code After:
language: R
sudo: required
bioc_required: true
bioc_packages:
- BiocCheck
warnings_are_errors: true
after_script:
- ls -lah
- FILE=$(ls -1t *.tar.gz | head -n 1)
- Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")" | language: R
sudo: required
bioc_required: true
+ bioc_packages:
+ - BiocCheck
warnings_are_errors: true
+
+ after_script:
+ - ls -lah
+ - FILE=$(ls -1t *.tar.gz | head -n 1)
+ - Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")" | 7 | 1.75 | 7 | 0 |
f85f74b99f602d72a87f91885f4c66538b74834f | .travis.yml | .travis.yml | ---
language: python
python: "2.7"
sudo: required
dist: trusty
services:
- docker
env:
matrix:
- IMAGE_NAME="ubuntu-upstart:14.04"
- IMAGE_NAME="ubuntu:16.04-builded"
- IMAGE_NAME="debian:8-builded"
- IMAGE_NAME="debian:9-builded"
- IMAGE_NAME="centos:7-builded"
- IMAGE_NAME="centos:6-builded"
- IMAGE_NAME="fedora:27-builded"
install:
- pip install ansible=="2.4.4.0" docker-py
- ln -s ${PWD} tests/docker/ANXS.postgresql
script:
# Syntax check
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check
# Play test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml
# Idempotence test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml > idempotence_out
- ./tests/idempotence_check.sh idempotence_out
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
| ---
language: python
python: "2.7"
sudo: required
dist: trusty
services:
- docker
env:
matrix:
- IMAGE_NAME="ubuntu-upstart:14.04"
- IMAGE_NAME="ubuntu:16.04-builded"
- IMAGE_NAME="debian:8-builded"
- IMAGE_NAME="debian:9-builded"
- IMAGE_NAME="centos:7-builded"
- IMAGE_NAME="centos:6-builded"
# Missing PostgreSQL v9.3 # - IMAGE_NAME="fedora:27-builded"
install:
- pip install ansible=="2.4.4.0" docker-py
- ln -s ${PWD} tests/docker/ANXS.postgresql
script:
# Syntax check
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check
# Play test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml
# Idempotence test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml > idempotence_out
- ./tests/idempotence_check.sh idempotence_out
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
| Disable Fedora testing, as PostgreSQL v9.3 doesn't exist | Disable Fedora testing, as PostgreSQL v9.3 doesn't exist
| YAML | mit | silverlogic/postgresql,numerigraphe/postgresql,ANXS/postgresql | yaml | ## Code Before:
---
language: python
python: "2.7"
sudo: required
dist: trusty
services:
- docker
env:
matrix:
- IMAGE_NAME="ubuntu-upstart:14.04"
- IMAGE_NAME="ubuntu:16.04-builded"
- IMAGE_NAME="debian:8-builded"
- IMAGE_NAME="debian:9-builded"
- IMAGE_NAME="centos:7-builded"
- IMAGE_NAME="centos:6-builded"
- IMAGE_NAME="fedora:27-builded"
install:
- pip install ansible=="2.4.4.0" docker-py
- ln -s ${PWD} tests/docker/ANXS.postgresql
script:
# Syntax check
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check
# Play test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml
# Idempotence test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml > idempotence_out
- ./tests/idempotence_check.sh idempotence_out
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
## Instruction:
Disable Fedora testing, as PostgreSQL v9.3 doesn't exist
## Code After:
---
language: python
python: "2.7"
sudo: required
dist: trusty
services:
- docker
env:
matrix:
- IMAGE_NAME="ubuntu-upstart:14.04"
- IMAGE_NAME="ubuntu:16.04-builded"
- IMAGE_NAME="debian:8-builded"
- IMAGE_NAME="debian:9-builded"
- IMAGE_NAME="centos:7-builded"
- IMAGE_NAME="centos:6-builded"
# Missing PostgreSQL v9.3 # - IMAGE_NAME="fedora:27-builded"
install:
- pip install ansible=="2.4.4.0" docker-py
- ln -s ${PWD} tests/docker/ANXS.postgresql
script:
# Syntax check
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check
# Play test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml
# Idempotence test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml > idempotence_out
- ./tests/idempotence_check.sh idempotence_out
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
| ---
language: python
python: "2.7"
sudo: required
dist: trusty
services:
- docker
env:
matrix:
- IMAGE_NAME="ubuntu-upstart:14.04"
- IMAGE_NAME="ubuntu:16.04-builded"
- IMAGE_NAME="debian:8-builded"
- IMAGE_NAME="debian:9-builded"
- IMAGE_NAME="centos:7-builded"
- IMAGE_NAME="centos:6-builded"
- - IMAGE_NAME="fedora:27-builded"
+ # Missing PostgreSQL v9.3 # - IMAGE_NAME="fedora:27-builded"
install:
- pip install ansible=="2.4.4.0" docker-py
- ln -s ${PWD} tests/docker/ANXS.postgresql
script:
# Syntax check
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check
# Play test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml
# Idempotence test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml > idempotence_out
- ./tests/idempotence_check.sh idempotence_out
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/ | 2 | 0.057143 | 1 | 1 |
a51197194f934b1741a2ca9c0913cbc4cd63b39e | tests/language/constructor/missing_initializer_test.dart | tests/language/constructor/missing_initializer_test.dart | // Copyright (c) 2020, 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.
// Test that it is an error for a class with no generative constructors to
// have a final instance variable without an initializing expression, except
// if it is `abstract` or `external`. The latter also holds in a class with
// generative constructors.
// Has factory, hence no default, hence no generative constructors.
abstract class A {
final dynamic n;
// ^
// [analyzer] COMPILE_TIME_ERROR.FINAL_NOT_INITIALIZED
// [cfe] unspecified
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
factory A() = B;
}
class B implements A {
dynamic get n => 1;
int get x1 => 1;
int? get x2 => null;
String get x3 => "";
String? get x4 => null;
}
class C = Object with A;
// Has a generative constructor: default.
abstract class D {
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
}
void main() {
A();
C();
var _ = D;
}
| // Copyright (c) 2020, 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.
// Test that it is an error for a class with no generative constructors to
// have a final instance variable without an initializing expression, except
// if it is `abstract` or `external`. The latter also holds in a class with
// generative constructors.
// Has factory, hence no default, hence no generative constructors.
abstract class A {
final dynamic n;
// ^
// [analyzer] COMPILE_TIME_ERROR.FINAL_NOT_INITIALIZED
// [cfe] unspecified
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
factory A() = B;
}
class B implements A {
dynamic get n => 1;
int get x1 => 1;
int? get x2 => null;
String get x3 => "";
String? get x4 => null;
}
class C = Object with A;
// ^
// [analyzer] COMPILE_TIME_ERROR.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER
// Has a generative constructor: default.
abstract class D {
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
}
void main() {
A();
C();
var _ = D;
}
| Fix test for abstract field, not impelemnetd by the mixin application. | Fix test for abstract field, not impelemnetd by the mixin application.
Change-Id: I1d12a70a82a859d57516948672ed6a931904ae7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161626
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>
Reviewed-by: Leaf Petersen <9bef692239b5f624cec8e2cd5249ab1939a377aa@google.com>
Commit-Queue: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk | dart | ## Code Before:
// Copyright (c) 2020, 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.
// Test that it is an error for a class with no generative constructors to
// have a final instance variable without an initializing expression, except
// if it is `abstract` or `external`. The latter also holds in a class with
// generative constructors.
// Has factory, hence no default, hence no generative constructors.
abstract class A {
final dynamic n;
// ^
// [analyzer] COMPILE_TIME_ERROR.FINAL_NOT_INITIALIZED
// [cfe] unspecified
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
factory A() = B;
}
class B implements A {
dynamic get n => 1;
int get x1 => 1;
int? get x2 => null;
String get x3 => "";
String? get x4 => null;
}
class C = Object with A;
// Has a generative constructor: default.
abstract class D {
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
}
void main() {
A();
C();
var _ = D;
}
## Instruction:
Fix test for abstract field, not impelemnetd by the mixin application.
Change-Id: I1d12a70a82a859d57516948672ed6a931904ae7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161626
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>
Reviewed-by: Leaf Petersen <9bef692239b5f624cec8e2cd5249ab1939a377aa@google.com>
Commit-Queue: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
## Code After:
// Copyright (c) 2020, 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.
// Test that it is an error for a class with no generative constructors to
// have a final instance variable without an initializing expression, except
// if it is `abstract` or `external`. The latter also holds in a class with
// generative constructors.
// Has factory, hence no default, hence no generative constructors.
abstract class A {
final dynamic n;
// ^
// [analyzer] COMPILE_TIME_ERROR.FINAL_NOT_INITIALIZED
// [cfe] unspecified
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
factory A() = B;
}
class B implements A {
dynamic get n => 1;
int get x1 => 1;
int? get x2 => null;
String get x3 => "";
String? get x4 => null;
}
class C = Object with A;
// ^
// [analyzer] COMPILE_TIME_ERROR.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER
// Has a generative constructor: default.
abstract class D {
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
}
void main() {
A();
C();
var _ = D;
}
| // Copyright (c) 2020, 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.
// Test that it is an error for a class with no generative constructors to
// have a final instance variable without an initializing expression, except
// if it is `abstract` or `external`. The latter also holds in a class with
// generative constructors.
// Has factory, hence no default, hence no generative constructors.
abstract class A {
final dynamic n;
// ^
// [analyzer] COMPILE_TIME_ERROR.FINAL_NOT_INITIALIZED
// [cfe] unspecified
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
factory A() = B;
}
class B implements A {
dynamic get n => 1;
int get x1 => 1;
int? get x2 => null;
String get x3 => "";
String? get x4 => null;
}
class C = Object with A;
+ // ^
+ // [analyzer] COMPILE_TIME_ERROR.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER
// Has a generative constructor: default.
abstract class D {
// Uninitialized, but no errors.
abstract final int x1;
abstract final int? x2;
external final String x3;
external final String? x4;
}
void main() {
A();
C();
var _ = D;
} | 2 | 0.040816 | 2 | 0 |
ea2026170ea03ae197b0053ca84d34fd58ba3ff9 | .travis.yml | .travis.yml | language: objective-c
branches:
only:
- master
git:
submodules: false
before_install:
- git submodule update --init --recursive
- bundle install
podfile: ./Podfile
xcode_workspace: ./Devbeers.xcworkspace
xcode_scheme: Devbeers
script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devbeers build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
osx_image: xcode7.2 | language: objective-c
branches:
only:
- master
git:
submodules: false
before_install:
- git submodule update --init --recursive
podfile: ./Podfile
xcode_workspace: ./Devbeers.xcworkspace
xcode_scheme: Devbeers
script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devbeers build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
osx_image: xcode7.2
| Remove duplicated bundle install instruction | Remove duplicated bundle install instruction
| YAML | apache-2.0 | devbeers/devbeers-ios,devbeers/devbeers-ios | yaml | ## Code Before:
language: objective-c
branches:
only:
- master
git:
submodules: false
before_install:
- git submodule update --init --recursive
- bundle install
podfile: ./Podfile
xcode_workspace: ./Devbeers.xcworkspace
xcode_scheme: Devbeers
script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devbeers build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
osx_image: xcode7.2
## Instruction:
Remove duplicated bundle install instruction
## Code After:
language: objective-c
branches:
only:
- master
git:
submodules: false
before_install:
- git submodule update --init --recursive
podfile: ./Podfile
xcode_workspace: ./Devbeers.xcworkspace
xcode_scheme: Devbeers
script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devbeers build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
osx_image: xcode7.2
| language: objective-c
branches:
only:
- master
git:
submodules: false
before_install:
- git submodule update --init --recursive
- - bundle install
podfile: ./Podfile
xcode_workspace: ./Devbeers.xcworkspace
xcode_scheme: Devbeers
script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devbeers build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
osx_image: xcode7.2 | 1 | 0.071429 | 0 | 1 |
466868e63919d6fabb8d75caca930fd348c1908f | src/pane-container-model.coffee | src/pane-container-model.coffee | {Model} = require 'theorist'
Serializable = require 'serializable'
{find} = require 'underscore-plus'
FocusContext = require './focus-context'
module.exports =
class PaneContainerModel extends Model
atom.deserializers.add(this)
Serializable.includeInto(this)
@properties
root: null
focusContext: -> new FocusContext
constructor: ->
super
@subscribe @$root.filterDefined(), (root) =>
root.parent = this
root.focusContext = @focusContext
deserializeParams: (params) ->
params.root = atom.deserializers.deserialize(params.root)
params
serializeParams: (params) ->
root: @root?.serialize()
replaceChild: (oldChild, newChild) ->
throw new Error("Replacing non-existent child") if oldChild isnt @root
@root = newChild
getPanes: ->
@root?.getPanes() ? []
getFocusedPane: ->
find @getPanes(), (pane) -> pane.focused
focusNextPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
nextIndex = (currentIndex + 1) % panes.length
panes[nextIndex].focus()
true
else
false
focusPreviousPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
previousIndex = currentIndex - 1
previousIndex = panes.length - 1 if previousIndex < 0
panes[previousIndex].focus()
true
else
false
| {Model} = require 'theorist'
Serializable = require 'serializable'
{find} = require 'underscore-plus'
FocusContext = require './focus-context'
module.exports =
class PaneContainerModel extends Model
atom.deserializers.add(this)
Serializable.includeInto(this)
@properties
root: null
focusContext: -> new FocusContext
constructor: ->
super
@subscribe @$root, (root) =>
if root?
root.parent = this
root.focusContext = @focusContext
deserializeParams: (params) ->
params.root = atom.deserializers.deserialize(params.root)
params
serializeParams: (params) ->
root: @root?.serialize()
replaceChild: (oldChild, newChild) ->
throw new Error("Replacing non-existent child") if oldChild isnt @root
@root = newChild
getPanes: ->
@root?.getPanes() ? []
getFocusedPane: ->
find @getPanes(), (pane) -> pane.focused
focusNextPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
nextIndex = (currentIndex + 1) % panes.length
panes[nextIndex].focus()
true
else
false
focusPreviousPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
previousIndex = currentIndex - 1
previousIndex = panes.length - 1 if previousIndex < 0
panes[previousIndex].focus()
true
else
false
| Fix access to undefined root property | Fix access to undefined root property
The ::filterDefined transform unfortunately doesn't prevent an undefined
initial value when applied to behaviors.
| CoffeeScript | mit | YunchengLiao/atom,G-Baby/atom,yangchenghu/atom,tony612/atom,florianb/atom,ironbox360/atom,Neron-X5/atom,daxlab/atom,ralphtheninja/atom,andrewleverette/atom,einarmagnus/atom,gisenberg/atom,yamhon/atom,atom/atom,gabrielPeart/atom,cyzn/atom,kandros/atom,kc8wxm/atom,FIT-CSE2410-A-Bombs/atom,nvoron23/atom,omarhuanca/atom,vjeux/atom,ardeshirj/atom,Rodjana/atom,RobinTec/atom,liuderchi/atom,amine7536/atom,synaptek/atom,Rychard/atom,hagb4rd/atom,ezeoleaf/atom,deoxilix/atom,basarat/atom,Jdesk/atom,bryonwinger/atom,PKRoma/atom,gisenberg/atom,sekcheong/atom,transcranial/atom,isghe/atom,woss/atom,vinodpanicker/atom,rxkit/atom,Austen-G/BlockBuilder,RobinTec/atom,yalexx/atom,kjav/atom,ReddTea/atom,hpham04/atom,Abdillah/atom,qiujuer/atom,Jandersolutions/atom,FIT-CSE2410-A-Bombs/atom,omarhuanca/atom,MjAbuz/atom,dannyflax/atom,florianb/atom,matthewclendening/atom,constanzaurzua/atom,targeter21/atom,MjAbuz/atom,splodingsocks/atom,amine7536/atom,kc8wxm/atom,me6iaton/atom,isghe/atom,sxgao3001/atom,0x73/atom,hpham04/atom,Galactix/atom,mdumrauf/atom,Hasimir/atom,PKRoma/atom,vjeux/atom,Mokolea/atom,FoldingText/atom,me6iaton/atom,transcranial/atom,t9md/atom,omarhuanca/atom,splodingsocks/atom,tmunro/atom,hagb4rd/atom,florianb/atom,bsmr-x-script/atom,fredericksilva/atom,AlisaKiatkongkumthon/atom,jlord/atom,SlimeQ/atom,BogusCurry/atom,qskycolor/atom,FoldingText/atom,Huaraz2/atom,ObviouslyGreen/atom,brettle/atom,yamhon/atom,rjattrill/atom,Shekharrajak/atom,Jdesk/atom,CraZySacX/atom,liuxiong332/atom,davideg/atom,sxgao3001/atom,toqz/atom,dkfiresky/atom,kaicataldo/atom,seedtigo/atom,FoldingText/atom,yomybaby/atom,GHackAnonymous/atom,omarhuanca/atom,sotayamashita/atom,nvoron23/atom,phord/atom,bcoe/atom,sekcheong/atom,bryonwinger/atom,deepfox/atom,fedorov/atom,liuxiong332/atom,Andrey-Pavlov/atom,nrodriguez13/atom,nvoron23/atom,Jandersolutions/atom,phord/atom,kevinrenaers/atom,sillvan/atom,NunoEdgarGub1/atom,sotayamashita/atom,liuxiong332/atom,oggy/atom,deepfox/atom,hakatashi/atom,mnquintana/atom,qskycolor/atom,SlimeQ/atom,Ingramz/atom,john-kelly/atom,tanin47/atom,stinsonga/atom,dsandstrom/atom,codex8/atom,yalexx/atom,Shekharrajak/atom,amine7536/atom,ezeoleaf/atom,Shekharrajak/atom,ivoadf/atom,niklabh/atom,hharchani/atom,qiujuer/atom,lovesnow/atom,kittens/atom,lisonma/atom,fang-yufeng/atom,tmunro/atom,xream/atom,tisu2tisu/atom,dkfiresky/atom,folpindo/atom,g2p/atom,john-kelly/atom,ivoadf/atom,bcoe/atom,bryonwinger/atom,bradgearon/atom,burodepeper/atom,dijs/atom,svanharmelen/atom,acontreras89/atom,vjeux/atom,jlord/atom,vinodpanicker/atom,rsvip/aTom,qskycolor/atom,BogusCurry/atom,bolinfest/atom,yangchenghu/atom,jtrose2/atom,yomybaby/atom,wiggzz/atom,kdheepak89/atom,tanin47/atom,basarat/atom,florianb/atom,lisonma/atom,G-Baby/atom,jlord/atom,chengky/atom,boomwaiza/atom,efatsi/atom,jjz/atom,scippio/atom,john-kelly/atom,qskycolor/atom,jeremyramin/atom,Abdillah/atom,Shekharrajak/atom,devmario/atom,rsvip/aTom,deoxilix/atom,kc8wxm/atom,codex8/atom,me-benni/atom,pombredanne/atom,FoldingText/atom,efatsi/atom,jjz/atom,0x73/atom,einarmagnus/atom,kdheepak89/atom,pkdevbox/atom,transcranial/atom,lovesnow/atom,liuderchi/atom,brumm/atom,Galactix/atom,ashneo76/atom,dijs/atom,ykeisuke/atom,jtrose2/atom,oggy/atom,vcarrera/atom,bj7/atom,rmartin/atom,crazyquark/atom,jeremyramin/atom,chengky/atom,rlugojr/atom,decaffeinate-examples/atom,liuderchi/atom,dkfiresky/atom,mnquintana/atom,Locke23rus/atom,jjz/atom,johnrizzo1/atom,kittens/atom,mostafaeweda/atom,prembasumatary/atom,harshdattani/atom,brettle/atom,beni55/atom,Abdillah/atom,johnhaley81/atom,Hasimir/atom,kc8wxm/atom,isghe/atom,AdrianVovk/substance-ide,kittens/atom,crazyquark/atom,scv119/atom,devmario/atom,Arcanemagus/atom,rsvip/aTom,AlexxNica/atom,florianb/atom,devmario/atom,001szymon/atom,qiujuer/atom,scv119/atom,DiogoXRP/atom,sotayamashita/atom,ezeoleaf/atom,liuxiong332/atom,decaffeinate-examples/atom,sillvan/atom,fredericksilva/atom,scv119/atom,Rodjana/atom,lpommers/atom,johnrizzo1/atom,Ju2ender/atom,tanin47/atom,Jdesk/atom,boomwaiza/atom,charleswhchan/atom,GHackAnonymous/atom,YunchengLiao/atom,lisonma/atom,svanharmelen/atom,bsmr-x-script/atom,rookie125/atom,abcP9110/atom,t9md/atom,ppamorim/atom,charleswhchan/atom,johnhaley81/atom,Austen-G/BlockBuilder,AlbertoBarrago/atom,n-riesco/atom,AlisaKiatkongkumthon/atom,acontreras89/atom,hagb4rd/atom,RobinTec/atom,chengky/atom,helber/atom,Klozz/atom,batjko/atom,qiujuer/atom,daxlab/atom,Klozz/atom,scippio/atom,DiogoXRP/atom,BogusCurry/atom,Huaraz2/atom,darwin/atom,lisonma/atom,kjav/atom,Jandersolutions/atom,ilovezy/atom,medovob/atom,palita01/atom,sillvan/atom,acontreras89/atom,Jandersolutions/atom,yamhon/atom,lisonma/atom,Ju2ender/atom,einarmagnus/atom,abe33/atom,tony612/atom,woss/atom,burodepeper/atom,nucked/atom,Dennis1978/atom,pengshp/atom,beni55/atom,gisenberg/atom,kjav/atom,wiggzz/atom,RuiDGoncalves/atom,sebmck/atom,basarat/atom,hpham04/atom,codex8/atom,panuchart/atom,codex8/atom,nucked/atom,scippio/atom,hpham04/atom,tony612/atom,YunchengLiao/atom,tmunro/atom,andrewleverette/atom,ppamorim/atom,mnquintana/atom,kjav/atom,dkfiresky/atom,lpommers/atom,erikhakansson/atom,sebmck/atom,ralphtheninja/atom,pombredanne/atom,davideg/atom,alfredxing/atom,ivoadf/atom,kdheepak89/atom,stuartquin/atom,basarat/atom,jlord/atom,ironbox360/atom,anuwat121/atom,constanzaurzua/atom,bj7/atom,acontreras89/atom,vhutheesing/atom,mostafaeweda/atom,helber/atom,originye/atom,kevinrenaers/atom,kevinrenaers/atom,devoncarew/atom,sebmck/atom,prembasumatary/atom,batjko/atom,jacekkopecky/atom,ykeisuke/atom,Galactix/atom,andrewleverette/atom,darwin/atom,qiujuer/atom,Neron-X5/atom,RuiDGoncalves/atom,bencolon/atom,g2p/atom,pengshp/atom,ilovezy/atom,yomybaby/atom,Austen-G/BlockBuilder,me-benni/atom,qskycolor/atom,Abdillah/atom,ilovezy/atom,rjattrill/atom,erikhakansson/atom,Jandersolutions/atom,RobinTec/atom,abcP9110/atom,Huaraz2/atom,n-riesco/atom,jordanbtucker/atom,fedorov/atom,NunoEdgarGub1/atom,me6iaton/atom,fedorov/atom,nucked/atom,anuwat121/atom,fedorov/atom,stinsonga/atom,champagnez/atom,n-riesco/atom,alexandergmann/atom,Mokolea/atom,bryonwinger/atom,tony612/atom,chfritz/atom,Rodjana/atom,gabrielPeart/atom,Austen-G/BlockBuilder,gabrielPeart/atom,Jonekee/atom,yalexx/atom,hharchani/atom,ObviouslyGreen/atom,sebmck/atom,SlimeQ/atom,sebmck/atom,mrodalgaard/atom,ReddTea/atom,mertkahyaoglu/atom,constanzaurzua/atom,bcoe/atom,brumm/atom,fscherwi/atom,ezeoleaf/atom,dannyflax/atom,dannyflax/atom,t9md/atom,rookie125/atom,execjosh/atom,dsandstrom/atom,gzzhanghao/atom,rjattrill/atom,einarmagnus/atom,anuwat121/atom,rookie125/atom,hellendag/atom,helber/atom,davideg/atom,palita01/atom,ObviouslyGreen/atom,chengky/atom,jtrose2/atom,Ju2ender/atom,KENJU/atom,ashneo76/atom,DiogoXRP/atom,mnquintana/atom,CraZySacX/atom,johnrizzo1/atom,atom/atom,kjav/atom,NunoEdgarGub1/atom,harshdattani/atom,rjattrill/atom,Galactix/atom,einarmagnus/atom,devoncarew/atom,FoldingText/atom,fredericksilva/atom,AlbertoBarrago/atom,sxgao3001/atom,SlimeQ/atom,acontreras89/atom,Shekharrajak/atom,Rychard/atom,Neron-X5/atom,oggy/atom,h0dgep0dge/atom,CraZySacX/atom,mdumrauf/atom,sekcheong/atom,pombredanne/atom,omarhuanca/atom,Jonekee/atom,davideg/atom,Jandersoft/atom,FoldingText/atom,vinodpanicker/atom,Ju2ender/atom,alfredxing/atom,AdrianVovk/substance-ide,palita01/atom,vinodpanicker/atom,stuartquin/atom,paulcbetts/atom,matthewclendening/atom,nrodriguez13/atom,folpindo/atom,batjko/atom,rsvip/aTom,jjz/atom,AlisaKiatkongkumthon/atom,vcarrera/atom,kc8wxm/atom,woss/atom,FIT-CSE2410-A-Bombs/atom,execjosh/atom,execjosh/atom,GHackAnonymous/atom,tisu2tisu/atom,fang-yufeng/atom,russlescai/atom,champagnez/atom,Ingramz/atom,fang-yufeng/atom,targeter21/atom,yomybaby/atom,niklabh/atom,alfredxing/atom,seedtigo/atom,hakatashi/atom,constanzaurzua/atom,mrodalgaard/atom,yalexx/atom,gontadu/atom,matthewclendening/atom,rmartin/atom,hharchani/atom,jlord/atom,Neron-X5/atom,Jandersoft/atom,paulcbetts/atom,isghe/atom,Dennis1978/atom,h0dgep0dge/atom,liuxiong332/atom,gontadu/atom,chfritz/atom,ppamorim/atom,SlimeQ/atom,sekcheong/atom,githubteacher/atom,charleswhchan/atom,elkingtonmcb/atom,PKRoma/atom,tjkr/atom,pombredanne/atom,niklabh/atom,YunchengLiao/atom,Andrey-Pavlov/atom,stinsonga/atom,KENJU/atom,ali/atom,scv119/atom,Sangaroonaom/atom,alexandergmann/atom,rmartin/atom,Jonekee/atom,toqz/atom,ardeshirj/atom,ReddTea/atom,targeter21/atom,fscherwi/atom,phord/atom,hakatashi/atom,abcP9110/atom,crazyquark/atom,vcarrera/atom,kaicataldo/atom,Jandersoft/atom,jacekkopecky/atom,erikhakansson/atom,Andrey-Pavlov/atom,harshdattani/atom,rxkit/atom,dannyflax/atom,mostafaeweda/atom,pkdevbox/atom,hellendag/atom,basarat/atom,devoncarew/atom,GHackAnonymous/atom,ali/atom,NunoEdgarGub1/atom,abe33/atom,jordanbtucker/atom,Locke23rus/atom,hharchani/atom,amine7536/atom,hagb4rd/atom,johnhaley81/atom,vinodpanicker/atom,gisenberg/atom,h0dgep0dge/atom,crazyquark/atom,Neron-X5/atom,ppamorim/atom,rmartin/atom,kdheepak89/atom,avdg/atom,russlescai/atom,fscherwi/atom,efatsi/atom,jeremyramin/atom,001szymon/atom,Austen-G/BlockBuilder,ReddTea/atom,synaptek/atom,mertkahyaoglu/atom,fang-yufeng/atom,matthewclendening/atom,brettle/atom,kdheepak89/atom,jacekkopecky/atom,YunchengLiao/atom,Hasimir/atom,hellendag/atom,GHackAnonymous/atom,dannyflax/atom,lovesnow/atom,Austen-G/BlockBuilder,bsmr-x-script/atom,medovob/atom,abe33/atom,Mokolea/atom,medovob/atom,Locke23rus/atom,sekcheong/atom,darwin/atom,pombredanne/atom,synaptek/atom,targeter21/atom,vcarrera/atom,yangchenghu/atom,ppamorim/atom,prembasumatary/atom,elkingtonmcb/atom,ashneo76/atom,jordanbtucker/atom,isghe/atom,john-kelly/atom,kaicataldo/atom,Rychard/atom,Jdesk/atom,MjAbuz/atom,tisu2tisu/atom,jacekkopecky/atom,brumm/atom,mostafaeweda/atom,chengky/atom,tjkr/atom,cyzn/atom,KENJU/atom,gzzhanghao/atom,champagnez/atom,gontadu/atom,beni55/atom,nvoron23/atom,mertkahyaoglu/atom,toqz/atom,hharchani/atom,Klozz/atom,Andrey-Pavlov/atom,liuderchi/atom,hpham04/atom,tjkr/atom,elkingtonmcb/atom,bcoe/atom,ykeisuke/atom,hagb4rd/atom,AlbertoBarrago/atom,bolinfest/atom,vhutheesing/atom,deepfox/atom,basarat/atom,nrodriguez13/atom,paulcbetts/atom,batjko/atom,jtrose2/atom,Arcanemagus/atom,Arcanemagus/atom,mertkahyaoglu/atom,alexandergmann/atom,lovesnow/atom,stinsonga/atom,NunoEdgarGub1/atom,russlescai/atom,G-Baby/atom,dsandstrom/atom,charleswhchan/atom,gzzhanghao/atom,gisenberg/atom,stuartquin/atom,decaffeinate-examples/atom,avdg/atom,mdumrauf/atom,woss/atom,sillvan/atom,deoxilix/atom,mostafaeweda/atom,avdg/atom,jacekkopecky/atom,ReddTea/atom,burodepeper/atom,synaptek/atom,kandros/atom,githubteacher/atom,ali/atom,jjz/atom,AlexxNica/atom,panuchart/atom,bencolon/atom,kittens/atom,nvoron23/atom,AdrianVovk/substance-ide,h0dgep0dge/atom,toqz/atom,sillvan/atom,kandros/atom,folpindo/atom,amine7536/atom,matthewclendening/atom,bencolon/atom,mrodalgaard/atom,yalexx/atom,mnquintana/atom,kittens/atom,KENJU/atom,AlexxNica/atom,me6iaton/atom,ali/atom,Jandersoft/atom,vjeux/atom,Hasimir/atom,githubteacher/atom,constanzaurzua/atom,me-benni/atom,fang-yufeng/atom,xream/atom,oggy/atom,rsvip/aTom,RuiDGoncalves/atom,n-riesco/atom,crazyquark/atom,fredericksilva/atom,ralphtheninja/atom,paulcbetts/atom,fedorov/atom,Jandersoft/atom,codex8/atom,dijs/atom,devoncarew/atom,vjeux/atom,Ju2ender/atom,devoncarew/atom,dsandstrom/atom,batjko/atom,atom/atom,charleswhchan/atom,bradgearon/atom,Andrey-Pavlov/atom,devmario/atom,synaptek/atom,sxgao3001/atom,Ingramz/atom,originye/atom,g2p/atom,abcP9110/atom,Sangaroonaom/atom,xream/atom,hakatashi/atom,rlugojr/atom,0x73/atom,svanharmelen/atom,woss/atom,decaffeinate-examples/atom,dkfiresky/atom,rlugojr/atom,cyzn/atom,splodingsocks/atom,MjAbuz/atom,Sangaroonaom/atom,vcarrera/atom,boomwaiza/atom,originye/atom,devmario/atom,john-kelly/atom,yomybaby/atom,davideg/atom,me6iaton/atom,pkdevbox/atom,dannyflax/atom,0x73/atom,n-riesco/atom,seedtigo/atom,ali/atom,lpommers/atom,oggy/atom,jacekkopecky/atom,prembasumatary/atom,MjAbuz/atom,RobinTec/atom,sxgao3001/atom,rmartin/atom,001szymon/atom,vhutheesing/atom,deepfox/atom,Abdillah/atom,splodingsocks/atom,bolinfest/atom,ardeshirj/atom,bradgearon/atom,fredericksilva/atom,Dennis1978/atom,ilovezy/atom,Galactix/atom,chfritz/atom,daxlab/atom,prembasumatary/atom,toqz/atom,jtrose2/atom,bcoe/atom,bj7/atom,pengshp/atom,russlescai/atom,ironbox360/atom,russlescai/atom,abcP9110/atom,dsandstrom/atom,mertkahyaoglu/atom,lovesnow/atom,ilovezy/atom,panuchart/atom,deepfox/atom,targeter21/atom,rxkit/atom,wiggzz/atom,tony612/atom,Hasimir/atom,Jdesk/atom,KENJU/atom | coffeescript | ## Code Before:
{Model} = require 'theorist'
Serializable = require 'serializable'
{find} = require 'underscore-plus'
FocusContext = require './focus-context'
module.exports =
class PaneContainerModel extends Model
atom.deserializers.add(this)
Serializable.includeInto(this)
@properties
root: null
focusContext: -> new FocusContext
constructor: ->
super
@subscribe @$root.filterDefined(), (root) =>
root.parent = this
root.focusContext = @focusContext
deserializeParams: (params) ->
params.root = atom.deserializers.deserialize(params.root)
params
serializeParams: (params) ->
root: @root?.serialize()
replaceChild: (oldChild, newChild) ->
throw new Error("Replacing non-existent child") if oldChild isnt @root
@root = newChild
getPanes: ->
@root?.getPanes() ? []
getFocusedPane: ->
find @getPanes(), (pane) -> pane.focused
focusNextPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
nextIndex = (currentIndex + 1) % panes.length
panes[nextIndex].focus()
true
else
false
focusPreviousPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
previousIndex = currentIndex - 1
previousIndex = panes.length - 1 if previousIndex < 0
panes[previousIndex].focus()
true
else
false
## Instruction:
Fix access to undefined root property
The ::filterDefined transform unfortunately doesn't prevent an undefined
initial value when applied to behaviors.
## Code After:
{Model} = require 'theorist'
Serializable = require 'serializable'
{find} = require 'underscore-plus'
FocusContext = require './focus-context'
module.exports =
class PaneContainerModel extends Model
atom.deserializers.add(this)
Serializable.includeInto(this)
@properties
root: null
focusContext: -> new FocusContext
constructor: ->
super
@subscribe @$root, (root) =>
if root?
root.parent = this
root.focusContext = @focusContext
deserializeParams: (params) ->
params.root = atom.deserializers.deserialize(params.root)
params
serializeParams: (params) ->
root: @root?.serialize()
replaceChild: (oldChild, newChild) ->
throw new Error("Replacing non-existent child") if oldChild isnt @root
@root = newChild
getPanes: ->
@root?.getPanes() ? []
getFocusedPane: ->
find @getPanes(), (pane) -> pane.focused
focusNextPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
nextIndex = (currentIndex + 1) % panes.length
panes[nextIndex].focus()
true
else
false
focusPreviousPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
previousIndex = currentIndex - 1
previousIndex = panes.length - 1 if previousIndex < 0
panes[previousIndex].focus()
true
else
false
| {Model} = require 'theorist'
Serializable = require 'serializable'
{find} = require 'underscore-plus'
FocusContext = require './focus-context'
module.exports =
class PaneContainerModel extends Model
atom.deserializers.add(this)
Serializable.includeInto(this)
@properties
root: null
focusContext: -> new FocusContext
constructor: ->
super
- @subscribe @$root.filterDefined(), (root) =>
? ----------------
+ @subscribe @$root, (root) =>
+ if root?
- root.parent = this
+ root.parent = this
? ++
- root.focusContext = @focusContext
+ root.focusContext = @focusContext
? ++
deserializeParams: (params) ->
params.root = atom.deserializers.deserialize(params.root)
params
serializeParams: (params) ->
root: @root?.serialize()
replaceChild: (oldChild, newChild) ->
throw new Error("Replacing non-existent child") if oldChild isnt @root
@root = newChild
getPanes: ->
@root?.getPanes() ? []
getFocusedPane: ->
find @getPanes(), (pane) -> pane.focused
focusNextPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
nextIndex = (currentIndex + 1) % panes.length
panes[nextIndex].focus()
true
else
false
focusPreviousPane: ->
panes = @getPanes()
if panes.length > 1
currentIndex = panes.indexOf(@getFocusedPane())
previousIndex = currentIndex - 1
previousIndex = panes.length - 1 if previousIndex < 0
panes[previousIndex].focus()
true
else
false | 7 | 0.122807 | 4 | 3 |
132c4a3220b0863f331b6be30e8735b196035cae | bench/Bencher.elm | bench/Bencher.elm | module Main exposing (main)
import Html
import Html.App
import Bench.Native as Benchmark
import Bench.Dict
import Bench.Array
main : Program Never
main =
Html.App.beginnerProgram
{ model = ()
, update = \_ _ -> ()
, view = \() -> Html.text "Done!"
}
|> Benchmark.run
[ {- Bench.Dict.tiny
, Bench.Dict.small
,
-}
Bench.Dict.medium
{- ,
Bench.Dict.large
, Bench.Array.tiny
, Bench.Array.small
, Bench.Array.medium
, Bench.Array.large
-}
]
| module Main exposing (main)
import Html
import Html.App
import Bench.Native as Benchmark
import Bench.Dict
import Bench.Array
main : Program Never
main =
Html.App.beginnerProgram
{ model = ()
, update = \_ _ -> ()
, view = \() -> Html.text "Done!"
}
|> Benchmark.run
[ Bench.Dict.tiny
, Bench.Dict.small
, Bench.Dict.medium
, Bench.Dict.large
, Bench.Array.tiny
, Bench.Array.small
, Bench.Array.medium
, Bench.Array.large
]
| Revert "Lets focus on dict for a while" | Revert "Lets focus on dict for a while"
This reverts commit 1848fbc5872f2ffb2d817e6d9c5a9bc6454833b4.
| Elm | bsd-3-clause | Skinney/hamt-collections | elm | ## Code Before:
module Main exposing (main)
import Html
import Html.App
import Bench.Native as Benchmark
import Bench.Dict
import Bench.Array
main : Program Never
main =
Html.App.beginnerProgram
{ model = ()
, update = \_ _ -> ()
, view = \() -> Html.text "Done!"
}
|> Benchmark.run
[ {- Bench.Dict.tiny
, Bench.Dict.small
,
-}
Bench.Dict.medium
{- ,
Bench.Dict.large
, Bench.Array.tiny
, Bench.Array.small
, Bench.Array.medium
, Bench.Array.large
-}
]
## Instruction:
Revert "Lets focus on dict for a while"
This reverts commit 1848fbc5872f2ffb2d817e6d9c5a9bc6454833b4.
## Code After:
module Main exposing (main)
import Html
import Html.App
import Bench.Native as Benchmark
import Bench.Dict
import Bench.Array
main : Program Never
main =
Html.App.beginnerProgram
{ model = ()
, update = \_ _ -> ()
, view = \() -> Html.text "Done!"
}
|> Benchmark.run
[ Bench.Dict.tiny
, Bench.Dict.small
, Bench.Dict.medium
, Bench.Dict.large
, Bench.Array.tiny
, Bench.Array.small
, Bench.Array.medium
, Bench.Array.large
]
| module Main exposing (main)
import Html
import Html.App
import Bench.Native as Benchmark
import Bench.Dict
import Bench.Array
main : Program Never
main =
Html.App.beginnerProgram
{ model = ()
, update = \_ _ -> ()
, view = \() -> Html.text "Done!"
}
|> Benchmark.run
- [ {- Bench.Dict.tiny
? ---
+ [ Bench.Dict.tiny
- , Bench.Dict.small
? -----
+ , Bench.Dict.small
- ,
- -}
- Bench.Dict.medium
? ^
+ , Bench.Dict.medium
? ^
- {- ,
- Bench.Dict.large
? ^^^^
+ , Bench.Dict.large
? ^
- , Bench.Array.tiny
? ------
+ , Bench.Array.tiny
- , Bench.Array.small
? --------
+ , Bench.Array.small
- , Bench.Array.medium
? --------
+ , Bench.Array.medium
- , Bench.Array.large
? --------
+ , Bench.Array.large
- -}
] | 20 | 0.666667 | 8 | 12 |
94629ecba6d11de7a2e1c46448d5f5f122aa7640 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
# - "3.6"
install:
- python setup.py -q install
script:
- python setup.py test
- python -m test.perf_igor
| language: python
python:
- "2.7"
# - "3.6"
install:
- pip install future
- python setup.py -q install
script:
- python setup.py test
- python -m test.perf_igor
| Install future separately, because setup.py may need it | Install future separately, because setup.py may need it
| YAML | mit | cwi-dis/igor,cwi-dis/igor,cwi-dis/igor | yaml | ## Code Before:
language: python
python:
- "2.7"
# - "3.6"
install:
- python setup.py -q install
script:
- python setup.py test
- python -m test.perf_igor
## Instruction:
Install future separately, because setup.py may need it
## Code After:
language: python
python:
- "2.7"
# - "3.6"
install:
- pip install future
- python setup.py -q install
script:
- python setup.py test
- python -m test.perf_igor
| language: python
python:
- "2.7"
# - "3.6"
install:
+ - pip install future
- python setup.py -q install
script:
- python setup.py test
- python -m test.perf_igor
| 1 | 0.090909 | 1 | 0 |
e422a6327ec552e409717f994110b4d132235ae4 | test/dummy/app/assets/javascripts/application.js | test/dummy/app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require bitcharts/application
//= require_tree .
| // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require bitcharts/full
//= require_tree .
| Fix JS-Include in dummy app | Fix JS-Include in dummy app
| JavaScript | mit | Lichtbit/bitcharts,Lichtbit/bitcharts,Lichtbit/bitcharts | javascript | ## Code Before:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require bitcharts/application
//= require_tree .
## Instruction:
Fix JS-Include in dummy app
## Code After:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require bitcharts/full
//= require_tree .
| // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
- //= require bitcharts/application
? ^^^ ^^^^^^^
+ //= require bitcharts/full
? ^^ ^
//= require_tree . | 2 | 0.142857 | 1 | 1 |
82b3f8023289175cf756187ab35318066715f430 | src/modules/conf_theme/e_int_config_theme.h | src/modules/conf_theme/e_int_config_theme.h | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void e_int_config_theme_update(E_Config_Dialog *dia, char *file);
#endif
#endif
| /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void e_int_config_theme_update(E_Config_Dialog *dia, char *file);
EAPI void e_int_config_theme_web_done(E_Config_Dialog *dia);
#endif
#endif
| Declare public function in header. | Declare public function in header.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@35475 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 | c | ## Code Before:
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void e_int_config_theme_update(E_Config_Dialog *dia, char *file);
#endif
#endif
## Instruction:
Declare public function in header.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@35475 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
## Code After:
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void e_int_config_theme_update(E_Config_Dialog *dia, char *file);
EAPI void e_int_config_theme_web_done(E_Config_Dialog *dia);
#endif
#endif
| /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void e_int_config_theme_update(E_Config_Dialog *dia, char *file);
+ EAPI void e_int_config_theme_web_done(E_Config_Dialog *dia);
#endif
#endif | 1 | 0.066667 | 1 | 0 |
391d1ba44c421b0774771395b2fa803292df6297 | src/Firebase.php | src/Firebase.php | <?php
use Firebase\Exception\InvalidArgumentException;
use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;
/**
* Convenience class to comfortably create new Firebase instances.
*/
final class Firebase
{
/**
* Creates a new Firebase V3 instance.
*
* @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
* @param string|UriInterface|null $databaseUri Database URI
*
* @throws InvalidArgumentException
*
* @return V3\Firebase
*/
public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
{
return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
}
/**
* Creates a new Firebase V2 instance.
*
* @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
* @param string $secret
*
* @throws InvalidArgumentException
*
* @return V2\Firebase
*/
public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
{
return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
}
}
| <?php
use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;
/**
* Convenience class to comfortably create new Firebase instances.
*/
final class Firebase
{
/**
* Creates a new Firebase V3 instance.
*
* @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
* @param string|UriInterface|null $databaseUri Database URI
*
* @throws \Firebase\Exception\InvalidArgumentException
*
* @return V3\Firebase
*/
public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
{
return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
}
/**
* Creates a new Firebase V2 instance.
*
* @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
* @param string $secret
*
* @throws \Firebase\Exception\InvalidArgumentException
*
* @return V2\Firebase
*/
public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
{
return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
}
}
| Use FQN for @throws tag | Use FQN for @throws tag
This avoids possible clashes between \InvalidArgumentException and the imported InvalidArgumentException
| PHP | mit | kreait/firebase-php | php | ## Code Before:
<?php
use Firebase\Exception\InvalidArgumentException;
use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;
/**
* Convenience class to comfortably create new Firebase instances.
*/
final class Firebase
{
/**
* Creates a new Firebase V3 instance.
*
* @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
* @param string|UriInterface|null $databaseUri Database URI
*
* @throws InvalidArgumentException
*
* @return V3\Firebase
*/
public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
{
return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
}
/**
* Creates a new Firebase V2 instance.
*
* @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
* @param string $secret
*
* @throws InvalidArgumentException
*
* @return V2\Firebase
*/
public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
{
return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
}
}
## Instruction:
Use FQN for @throws tag
This avoids possible clashes between \InvalidArgumentException and the imported InvalidArgumentException
## Code After:
<?php
use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;
/**
* Convenience class to comfortably create new Firebase instances.
*/
final class Firebase
{
/**
* Creates a new Firebase V3 instance.
*
* @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
* @param string|UriInterface|null $databaseUri Database URI
*
* @throws \Firebase\Exception\InvalidArgumentException
*
* @return V3\Firebase
*/
public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
{
return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
}
/**
* Creates a new Firebase V2 instance.
*
* @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
* @param string $secret
*
* @throws \Firebase\Exception\InvalidArgumentException
*
* @return V2\Firebase
*/
public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
{
return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
}
}
| <?php
- use Firebase\Exception\InvalidArgumentException;
use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;
/**
* Convenience class to comfortably create new Firebase instances.
*/
final class Firebase
{
/**
* Creates a new Firebase V3 instance.
*
* @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
* @param string|UriInterface|null $databaseUri Database URI
*
- * @throws InvalidArgumentException
+ * @throws \Firebase\Exception\InvalidArgumentException
? ++++++++++++++++++++
*
* @return V3\Firebase
*/
public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
{
return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
}
/**
* Creates a new Firebase V2 instance.
*
* @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
* @param string $secret
*
- * @throws InvalidArgumentException
+ * @throws \Firebase\Exception\InvalidArgumentException
? ++++++++++++++++++++
*
* @return V2\Firebase
*/
public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
{
return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
}
} | 5 | 0.116279 | 2 | 3 |
6be0661e9715b39a308cb5c89fd7cf074610fa35 | lib/updateComment.js | lib/updateComment.js | const updateComment = (body, commentArr = []) => {
body = body.map((obj, index, array) => {
if (obj.type === 'Line' || obj.type === 'Block') {
commentArr.push(obj)
if (array[index + 1] === undefined) {
array[index - commentArr.length].trailingComments = commentArr
return undefined
}
if (!(array[index + 1].type === 'Line' || array[index + 1].type === 'Block')) {
array[index + 1].leadingComments = commentArr
commentArr = []
}
return undefined
}
return obj
}).filter(stmt => stmt !== undefined)
return body
}
/* Module Exports updateComment */
module.exports = updateComment
| const updateComment = (body, ast, commentArr = []) => {
body = body.map((obj, index, array) => {
if (obj.type === 'Line' || obj.type === 'Block') {
commentArr.push(obj)
if (array[index + 1] === undefined) {
if (index - commentArr.length === -1) ast.leadingComments = commentArr
else array[index - commentArr.length].trailingComments = commentArr
return undefined
}
if (!(array[index + 1].type === 'Line' || array[index + 1].type === 'Block')) {
array[index + 1].leadingComments = commentArr
commentArr = []
}
return undefined
}
return obj
}).filter(stmt => stmt !== undefined)
return body
}
/* Module Exports updateComment */
module.exports = updateComment
| Add check if the file contains only comments | Add check if the file contains only comments
| JavaScript | mit | cleanlang/clean,cleanlang/clean,cleanlang/clean | javascript | ## Code Before:
const updateComment = (body, commentArr = []) => {
body = body.map((obj, index, array) => {
if (obj.type === 'Line' || obj.type === 'Block') {
commentArr.push(obj)
if (array[index + 1] === undefined) {
array[index - commentArr.length].trailingComments = commentArr
return undefined
}
if (!(array[index + 1].type === 'Line' || array[index + 1].type === 'Block')) {
array[index + 1].leadingComments = commentArr
commentArr = []
}
return undefined
}
return obj
}).filter(stmt => stmt !== undefined)
return body
}
/* Module Exports updateComment */
module.exports = updateComment
## Instruction:
Add check if the file contains only comments
## Code After:
const updateComment = (body, ast, commentArr = []) => {
body = body.map((obj, index, array) => {
if (obj.type === 'Line' || obj.type === 'Block') {
commentArr.push(obj)
if (array[index + 1] === undefined) {
if (index - commentArr.length === -1) ast.leadingComments = commentArr
else array[index - commentArr.length].trailingComments = commentArr
return undefined
}
if (!(array[index + 1].type === 'Line' || array[index + 1].type === 'Block')) {
array[index + 1].leadingComments = commentArr
commentArr = []
}
return undefined
}
return obj
}).filter(stmt => stmt !== undefined)
return body
}
/* Module Exports updateComment */
module.exports = updateComment
| - const updateComment = (body, commentArr = []) => {
+ const updateComment = (body, ast, commentArr = []) => {
? +++++
body = body.map((obj, index, array) => {
if (obj.type === 'Line' || obj.type === 'Block') {
commentArr.push(obj)
if (array[index + 1] === undefined) {
+ if (index - commentArr.length === -1) ast.leadingComments = commentArr
- array[index - commentArr.length].trailingComments = commentArr
+ else array[index - commentArr.length].trailingComments = commentArr
? +++++
return undefined
}
if (!(array[index + 1].type === 'Line' || array[index + 1].type === 'Block')) {
array[index + 1].leadingComments = commentArr
commentArr = []
}
return undefined
}
return obj
}).filter(stmt => stmt !== undefined)
return body
}
/* Module Exports updateComment */
module.exports = updateComment | 5 | 0.238095 | 3 | 2 |
ce13a25b9925cd105d409dc06ecf56edf6a2d4b2 | Manifold/Expression+List.swift | Manifold/Expression+List.swift | // Copyright © 2015 Rob Rix. All rights reserved.
extension Expression where Recur: TermType {
public static var list: Module<Recur> {
return Module([
Declaration.Data("List", .Type, {
[
"nil": .End,
"cons": .Argument($0, const(.Recursive(.End)))
]
})
])
}
}
import Prelude
| // Copyright © 2015 Rob Rix. All rights reserved.
extension Expression where Recur: TermType {
public static var list: Module<Recur> {
return Module([
Declaration.Datatype("List", .Argument(.Type, {
.End([
"nil": .End,
"cons": .Argument($0, const(.Recursive(.End)))
])
}))
])
}
}
import Prelude
| Build a type constructor directly. | Build a type constructor directly.
| Swift | mit | antitypical/Manifold,antitypical/Manifold | swift | ## Code Before:
// Copyright © 2015 Rob Rix. All rights reserved.
extension Expression where Recur: TermType {
public static var list: Module<Recur> {
return Module([
Declaration.Data("List", .Type, {
[
"nil": .End,
"cons": .Argument($0, const(.Recursive(.End)))
]
})
])
}
}
import Prelude
## Instruction:
Build a type constructor directly.
## Code After:
// Copyright © 2015 Rob Rix. All rights reserved.
extension Expression where Recur: TermType {
public static var list: Module<Recur> {
return Module([
Declaration.Datatype("List", .Argument(.Type, {
.End([
"nil": .End,
"cons": .Argument($0, const(.Recursive(.End)))
])
}))
])
}
}
import Prelude
| // Copyright © 2015 Rob Rix. All rights reserved.
extension Expression where Recur: TermType {
public static var list: Module<Recur> {
return Module([
- Declaration.Data("List", .Type, {
+ Declaration.Datatype("List", .Argument(.Type, {
? ++++ ++++++++++
- [
+ .End([
"nil": .End,
"cons": .Argument($0, const(.Recursive(.End)))
- ]
+ ])
? +
- })
+ }))
? +
])
}
}
import Prelude | 8 | 0.470588 | 4 | 4 |
b29d2970d4779222f1983ed9e93fc9cbdeabe0ca | test/lint/README.md | test/lint/README.md | This folder contains lint scripts.
check-doc.py
============
Check for missing documentation of command line options.
commit-script-check.sh
======================
Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs).
git-subtree-check.sh
====================
Run this script from the root of the repository to verify that a subtree matches the contents of
the commit it claims to have been updated to.
To use, make sure that you have fetched the upstream repository branch in which the subtree is
maintained:
* for `src/secp256k1`: https://github.com/bitcoin-core/secp256k1.git (branch master)
* for `src/leveldb`: https://github.com/bitcoin-core/leveldb.git (branch bitcoin-fork)
* for `src/univalue`: https://github.com/bitcoin-core/univalue.git (branch master)
* for `src/crypto/ctaes`: https://github.com/bitcoin-core/ctaes.git (branch master)
Usage: `git-subtree-check.sh DIR (COMMIT)`
`COMMIT` may be omitted, in which case `HEAD` is used.
lint-all.sh
===========
Calls other scripts with the `lint-` prefix.
| This folder contains lint scripts.
check-doc.py
============
Check for missing documentation of command line options.
commit-script-check.sh
======================
Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs).
Scripted diffs are only assumed to run on the latest LTS release of Ubuntu. Running them on other operating systems
might require installing GNU tools, such as GNU sed.
git-subtree-check.sh
====================
Run this script from the root of the repository to verify that a subtree matches the contents of
the commit it claims to have been updated to.
To use, make sure that you have fetched the upstream repository branch in which the subtree is
maintained:
* for `src/secp256k1`: https://github.com/bitcoin-core/secp256k1.git (branch master)
* for `src/leveldb`: https://github.com/bitcoin-core/leveldb.git (branch bitcoin-fork)
* for `src/univalue`: https://github.com/bitcoin-core/univalue.git (branch master)
* for `src/crypto/ctaes`: https://github.com/bitcoin-core/ctaes.git (branch master)
Usage: `git-subtree-check.sh DIR (COMMIT)`
`COMMIT` may be omitted, in which case `HEAD` is used.
lint-all.sh
===========
Calls other scripts with the `lint-` prefix.
| Document that GNU tools are required for linters | doc: Document that GNU tools are required for linters
| Markdown | mit | DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,peercoin/peercoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin | markdown | ## Code Before:
This folder contains lint scripts.
check-doc.py
============
Check for missing documentation of command line options.
commit-script-check.sh
======================
Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs).
git-subtree-check.sh
====================
Run this script from the root of the repository to verify that a subtree matches the contents of
the commit it claims to have been updated to.
To use, make sure that you have fetched the upstream repository branch in which the subtree is
maintained:
* for `src/secp256k1`: https://github.com/bitcoin-core/secp256k1.git (branch master)
* for `src/leveldb`: https://github.com/bitcoin-core/leveldb.git (branch bitcoin-fork)
* for `src/univalue`: https://github.com/bitcoin-core/univalue.git (branch master)
* for `src/crypto/ctaes`: https://github.com/bitcoin-core/ctaes.git (branch master)
Usage: `git-subtree-check.sh DIR (COMMIT)`
`COMMIT` may be omitted, in which case `HEAD` is used.
lint-all.sh
===========
Calls other scripts with the `lint-` prefix.
## Instruction:
doc: Document that GNU tools are required for linters
## Code After:
This folder contains lint scripts.
check-doc.py
============
Check for missing documentation of command line options.
commit-script-check.sh
======================
Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs).
Scripted diffs are only assumed to run on the latest LTS release of Ubuntu. Running them on other operating systems
might require installing GNU tools, such as GNU sed.
git-subtree-check.sh
====================
Run this script from the root of the repository to verify that a subtree matches the contents of
the commit it claims to have been updated to.
To use, make sure that you have fetched the upstream repository branch in which the subtree is
maintained:
* for `src/secp256k1`: https://github.com/bitcoin-core/secp256k1.git (branch master)
* for `src/leveldb`: https://github.com/bitcoin-core/leveldb.git (branch bitcoin-fork)
* for `src/univalue`: https://github.com/bitcoin-core/univalue.git (branch master)
* for `src/crypto/ctaes`: https://github.com/bitcoin-core/ctaes.git (branch master)
Usage: `git-subtree-check.sh DIR (COMMIT)`
`COMMIT` may be omitted, in which case `HEAD` is used.
lint-all.sh
===========
Calls other scripts with the `lint-` prefix.
| This folder contains lint scripts.
check-doc.py
============
Check for missing documentation of command line options.
commit-script-check.sh
======================
Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs).
+ Scripted diffs are only assumed to run on the latest LTS release of Ubuntu. Running them on other operating systems
+ might require installing GNU tools, such as GNU sed.
git-subtree-check.sh
====================
Run this script from the root of the repository to verify that a subtree matches the contents of
the commit it claims to have been updated to.
To use, make sure that you have fetched the upstream repository branch in which the subtree is
maintained:
* for `src/secp256k1`: https://github.com/bitcoin-core/secp256k1.git (branch master)
* for `src/leveldb`: https://github.com/bitcoin-core/leveldb.git (branch bitcoin-fork)
* for `src/univalue`: https://github.com/bitcoin-core/univalue.git (branch master)
* for `src/crypto/ctaes`: https://github.com/bitcoin-core/ctaes.git (branch master)
Usage: `git-subtree-check.sh DIR (COMMIT)`
`COMMIT` may be omitted, in which case `HEAD` is used.
lint-all.sh
===========
Calls other scripts with the `lint-` prefix. | 2 | 0.068966 | 2 | 0 |
af43a16c912ded54c593ab02cec8a3eec19b063f | spring-cloud-launcher/spring-cloud-launcher-configserver/src/main/resources/launcher/application.yml | spring-cloud-launcher/spring-cloud-launcher-configserver/src/main/resources/launcher/application.yml | info:
description: Spring Cloud Launcher
eureka:
client:
instance-info-replication-interval-seconds: 5
initial-instance-info-replication-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:8761/eureka/
endpoints:
restart:
enabled: true
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
h2.datasource.url: jdbc:h2:tcp://localhost:9096/~/launcher
#spring:
# datasource:
# url: ${h2.datasource.url}
logging:
level:
kafka: WARN
org.apache.zookeeper: WARN
org.apache.zookeeper.ClientCnxn: ERROR
org.apache.kafka: WARN
org.I0Itec: WARN
| info:
description: Spring Cloud Launcher
eureka:
client:
instance-info-replication-interval-seconds: 5
initial-instance-info-replication-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:8761/eureka/
endpoints:
restart:
enabled: true
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
h2.datasource.url: jdbc:h2:tcp://localhost:9096/./target/test
#spring:
# datasource:
# url: ${h2.datasource.url}
logging:
level:
kafka: WARN
org.apache.zookeeper: WARN
org.apache.zookeeper.ClientCnxn: ERROR
org.apache.kafka: WARN
org.I0Itec: WARN
| Align default h2 URL with other launcher projects | Align default h2 URL with other launcher projects
| YAML | apache-2.0 | spring-cloud/spring-cloud-cli,spring-cloud/spring-cloud-cli | yaml | ## Code Before:
info:
description: Spring Cloud Launcher
eureka:
client:
instance-info-replication-interval-seconds: 5
initial-instance-info-replication-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:8761/eureka/
endpoints:
restart:
enabled: true
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
h2.datasource.url: jdbc:h2:tcp://localhost:9096/~/launcher
#spring:
# datasource:
# url: ${h2.datasource.url}
logging:
level:
kafka: WARN
org.apache.zookeeper: WARN
org.apache.zookeeper.ClientCnxn: ERROR
org.apache.kafka: WARN
org.I0Itec: WARN
## Instruction:
Align default h2 URL with other launcher projects
## Code After:
info:
description: Spring Cloud Launcher
eureka:
client:
instance-info-replication-interval-seconds: 5
initial-instance-info-replication-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:8761/eureka/
endpoints:
restart:
enabled: true
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
h2.datasource.url: jdbc:h2:tcp://localhost:9096/./target/test
#spring:
# datasource:
# url: ${h2.datasource.url}
logging:
level:
kafka: WARN
org.apache.zookeeper: WARN
org.apache.zookeeper.ClientCnxn: ERROR
org.apache.kafka: WARN
org.I0Itec: WARN
| info:
description: Spring Cloud Launcher
eureka:
client:
instance-info-replication-interval-seconds: 5
initial-instance-info-replication-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:8761/eureka/
endpoints:
restart:
enabled: true
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
- h2.datasource.url: jdbc:h2:tcp://localhost:9096/~/launcher
? ^ ^ ^^^^ ^
+ h2.datasource.url: jdbc:h2:tcp://localhost:9096/./target/test
? ^ ^ ^^ ^^^^^^
#spring:
# datasource:
# url: ${h2.datasource.url}
logging:
level:
kafka: WARN
org.apache.zookeeper: WARN
org.apache.zookeeper.ClientCnxn: ERROR
org.apache.kafka: WARN
org.I0Itec: WARN | 2 | 0.066667 | 1 | 1 |
e4d1020bf9f6f13d44f5ba7fcd28512302f122f8 | Menu/ItemGroup.php | Menu/ItemGroup.php | <?php
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2015, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Darvin\AdminBundle\Menu;
/**
* Menu item group
*/
class ItemGroup extends Item
{
/**
* {@inheritdoc}
*/
public function __construct($name)
{
parent::__construct($name);
$this->indexTitle = sprintf('menu.group.%s.title', $name);
$this->indexUrl = '#';
$this->description = sprintf('menu.group.%s.description', $name);
}
}
| <?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2015, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Darvin\AdminBundle\Menu;
/**
* Menu item group
*/
class ItemGroup extends Item
{
/**
* {@inheritdoc}
*/
public function __construct(string $name)
{
parent::__construct($name);
$this->indexTitle = sprintf('menu.group.%s.title', $name);
$this->indexUrl = '#';
$this->description = sprintf('menu.group.%s.description', $name);
}
}
| Enable strict types in menu item group class. | Enable strict types in menu item group class.
| PHP | mit | DarvinStudio/DarvinAdminBundle,DarvinStudio/DarvinAdminBundle,DarvinStudio/DarvinAdminBundle | php | ## Code Before:
<?php
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2015, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Darvin\AdminBundle\Menu;
/**
* Menu item group
*/
class ItemGroup extends Item
{
/**
* {@inheritdoc}
*/
public function __construct($name)
{
parent::__construct($name);
$this->indexTitle = sprintf('menu.group.%s.title', $name);
$this->indexUrl = '#';
$this->description = sprintf('menu.group.%s.description', $name);
}
}
## Instruction:
Enable strict types in menu item group class.
## Code After:
<?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2015, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Darvin\AdminBundle\Menu;
/**
* Menu item group
*/
class ItemGroup extends Item
{
/**
* {@inheritdoc}
*/
public function __construct(string $name)
{
parent::__construct($name);
$this->indexTitle = sprintf('menu.group.%s.title', $name);
$this->indexUrl = '#';
$this->description = sprintf('menu.group.%s.description', $name);
}
}
| - <?php
+ <?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2015, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Darvin\AdminBundle\Menu;
/**
* Menu item group
*/
class ItemGroup extends Item
{
/**
* {@inheritdoc}
*/
- public function __construct($name)
+ public function __construct(string $name)
? +++++++
{
parent::__construct($name);
$this->indexTitle = sprintf('menu.group.%s.title', $name);
$this->indexUrl = '#';
$this->description = sprintf('menu.group.%s.description', $name);
}
} | 4 | 0.137931 | 2 | 2 |
829afded99ccae5dfbafc214b66223bf4cc06a46 | wp-style-tag.php | wp-style-tag.php | <?php
/*
Plugin Name: WP Style Tag shortcode
Plugin URI: https://github.com/A7M2/wp-style-tag
Description: Add inline CSS to a post
Version: 1.0
Author: Nathaniel Williams
Author URI: http://coios.net/
License: MIT
*/
class WP_Style_Tag {
public function __construct() {
add_shortcode( 'styletag', array( $this, 'shortcode' ) );
}
public function shortcode( $attributes, $content = null ) {
if( !is_null($content) && $content !== '' ) {
return '<style>' . str_replace( '>', '>', strip_tags( $content ) ) . '</style>';
} else {
return '';
}
}
}
new WP_Style_Tag();
| <?php
/*
Plugin Name: WP Style Tag shortcode
Plugin URI: https://github.com/A7M2/wp-style-tag
Description: Add inline CSS to a post
Version: 1.0
Author: Nathaniel Williams
Author URI: http://coios.net/
License: MIT
*/
class WP_Style_Tag {
public function __construct() {
add_shortcode( 'styletag', array( $this, 'shortcode' ) );
}
public function shortcode( $attributes, $content = null ) {
if( !is_null($content) && $content !== '' ) {
$content = str_replace( ' ', ' ', strip_tags( $content ) );
return '<style>' . str_replace( '>', '>', strip_tags( $content ) ) . '</style>';
} else {
return '';
}
}
}
new WP_Style_Tag();
| Replace non-breaking space html entity with regular space | Replace non-breaking space html entity with regular space
| PHP | mit | kokone/wp-style-tag | php | ## Code Before:
<?php
/*
Plugin Name: WP Style Tag shortcode
Plugin URI: https://github.com/A7M2/wp-style-tag
Description: Add inline CSS to a post
Version: 1.0
Author: Nathaniel Williams
Author URI: http://coios.net/
License: MIT
*/
class WP_Style_Tag {
public function __construct() {
add_shortcode( 'styletag', array( $this, 'shortcode' ) );
}
public function shortcode( $attributes, $content = null ) {
if( !is_null($content) && $content !== '' ) {
return '<style>' . str_replace( '>', '>', strip_tags( $content ) ) . '</style>';
} else {
return '';
}
}
}
new WP_Style_Tag();
## Instruction:
Replace non-breaking space html entity with regular space
## Code After:
<?php
/*
Plugin Name: WP Style Tag shortcode
Plugin URI: https://github.com/A7M2/wp-style-tag
Description: Add inline CSS to a post
Version: 1.0
Author: Nathaniel Williams
Author URI: http://coios.net/
License: MIT
*/
class WP_Style_Tag {
public function __construct() {
add_shortcode( 'styletag', array( $this, 'shortcode' ) );
}
public function shortcode( $attributes, $content = null ) {
if( !is_null($content) && $content !== '' ) {
$content = str_replace( ' ', ' ', strip_tags( $content ) );
return '<style>' . str_replace( '>', '>', strip_tags( $content ) ) . '</style>';
} else {
return '';
}
}
}
new WP_Style_Tag();
| <?php
/*
Plugin Name: WP Style Tag shortcode
Plugin URI: https://github.com/A7M2/wp-style-tag
Description: Add inline CSS to a post
Version: 1.0
Author: Nathaniel Williams
Author URI: http://coios.net/
License: MIT
*/
class WP_Style_Tag {
public function __construct() {
add_shortcode( 'styletag', array( $this, 'shortcode' ) );
}
public function shortcode( $attributes, $content = null ) {
if( !is_null($content) && $content !== '' ) {
+ $content = str_replace( ' ', ' ', strip_tags( $content ) );
return '<style>' . str_replace( '>', '>', strip_tags( $content ) ) . '</style>';
} else {
return '';
}
}
}
new WP_Style_Tag(); | 1 | 0.037037 | 1 | 0 |
b4b7fd4f7353c92587b55afc7ad593787575fe09 | app/routes/login.js | app/routes/login.js | import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function(transition) {
var win = window.open('/github_login', 'Authorization',
'width=1000,height=450,' +
'toolbar=0,scrollbars=1,status=1,resizable=1,' +
'location=1,menuBar=0');
if (!win) { return; }
// For the life of me I cannot figure out how to do this other than
// polling
var self = this;
var oauthInterval = window.setInterval(function(){
if (!win.closed) { return; }
window.clearInterval(oauthInterval);
var response = JSON.parse(localStorage.github_response);
if (!response.ok) {
self.controllerFor('application').set('flashError',
'Failed to log in');
return;
}
var data = response.data;
if (data.errors) {
var error = "Failed to log in: " + data.errors[0];
self.controllerFor('application').set('flashError', error);
return;
}
var user = self.store.push('user', data.user);
var transition = self.session.get('savedTransition');
self.session.loginUser(user);
if (transition) {
transition.retry();
}
}, 200);
transition.abort();
}
});
| import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function(transition) {
var win = window.open('/github_login', 'Authorization',
'width=1000,height=450,' +
'toolbar=0,scrollbars=1,status=1,resizable=1,' +
'location=1,menuBar=0');
if (!win) { return; }
// For the life of me I cannot figure out how to do this other than
// polling
var self = this;
var oauthInterval = window.setInterval(function(){
if (!win.closed) { return; }
window.clearInterval(oauthInterval);
var response = JSON.parse(localStorage.github_response);
if (!response.ok) {
self.controllerFor('application').set('flashError',
'Failed to log in');
return;
}
var data = response.data;
if (data.errors) {
var error = "Failed to log in: " + data.errors[0];
self.controllerFor('application').set('flashError', error);
return;
}
var user = self.store.push('user', data.user);
user.set('api_token', data.api_token);
var transition = self.session.get('savedTransition');
self.session.loginUser(user);
if (transition) {
transition.retry();
}
}, 200);
transition.abort();
}
});
| Set the api token from a successful authorization | Set the api token from a successful authorization
| JavaScript | apache-2.0 | withoutboats/crates.io,Gankro/crates.io,steveklabnik/crates.io,chenxizhang/crates.io,mbrubeck/crates.io,Gankro/crates.io,steveklabnik/crates.io,BlakeWilliams/crates.io,rust-lang/crates.io,achanda/crates.io,chenxizhang/crates.io,withoutboats/crates.io,achanda/crates.io,sfackler/crates.io,BlakeWilliams/crates.io,Gankro/crates.io,achanda/crates.io,Susurrus/crates.io,chenxizhang/crates.io,withoutboats/crates.io,rust-lang/crates.io,mbrubeck/crates.io,rust-lang/crates.io,sfackler/crates.io,BlakeWilliams/crates.io,Gankro/crates.io,chenxizhang/crates.io,BlakeWilliams/crates.io,Susurrus/crates.io,sfackler/crates.io,steveklabnik/crates.io,mbrubeck/crates.io,Susurrus/crates.io,rust-lang/crates.io,achanda/crates.io,withoutboats/crates.io,Susurrus/crates.io,mbrubeck/crates.io,steveklabnik/crates.io | javascript | ## Code Before:
import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function(transition) {
var win = window.open('/github_login', 'Authorization',
'width=1000,height=450,' +
'toolbar=0,scrollbars=1,status=1,resizable=1,' +
'location=1,menuBar=0');
if (!win) { return; }
// For the life of me I cannot figure out how to do this other than
// polling
var self = this;
var oauthInterval = window.setInterval(function(){
if (!win.closed) { return; }
window.clearInterval(oauthInterval);
var response = JSON.parse(localStorage.github_response);
if (!response.ok) {
self.controllerFor('application').set('flashError',
'Failed to log in');
return;
}
var data = response.data;
if (data.errors) {
var error = "Failed to log in: " + data.errors[0];
self.controllerFor('application').set('flashError', error);
return;
}
var user = self.store.push('user', data.user);
var transition = self.session.get('savedTransition');
self.session.loginUser(user);
if (transition) {
transition.retry();
}
}, 200);
transition.abort();
}
});
## Instruction:
Set the api token from a successful authorization
## Code After:
import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function(transition) {
var win = window.open('/github_login', 'Authorization',
'width=1000,height=450,' +
'toolbar=0,scrollbars=1,status=1,resizable=1,' +
'location=1,menuBar=0');
if (!win) { return; }
// For the life of me I cannot figure out how to do this other than
// polling
var self = this;
var oauthInterval = window.setInterval(function(){
if (!win.closed) { return; }
window.clearInterval(oauthInterval);
var response = JSON.parse(localStorage.github_response);
if (!response.ok) {
self.controllerFor('application').set('flashError',
'Failed to log in');
return;
}
var data = response.data;
if (data.errors) {
var error = "Failed to log in: " + data.errors[0];
self.controllerFor('application').set('flashError', error);
return;
}
var user = self.store.push('user', data.user);
user.set('api_token', data.api_token);
var transition = self.session.get('savedTransition');
self.session.loginUser(user);
if (transition) {
transition.retry();
}
}, 200);
transition.abort();
}
});
| import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function(transition) {
var win = window.open('/github_login', 'Authorization',
'width=1000,height=450,' +
'toolbar=0,scrollbars=1,status=1,resizable=1,' +
'location=1,menuBar=0');
if (!win) { return; }
// For the life of me I cannot figure out how to do this other than
// polling
var self = this;
var oauthInterval = window.setInterval(function(){
if (!win.closed) { return; }
window.clearInterval(oauthInterval);
var response = JSON.parse(localStorage.github_response);
if (!response.ok) {
self.controllerFor('application').set('flashError',
'Failed to log in');
return;
}
var data = response.data;
if (data.errors) {
var error = "Failed to log in: " + data.errors[0];
self.controllerFor('application').set('flashError', error);
return;
}
var user = self.store.push('user', data.user);
+ user.set('api_token', data.api_token);
var transition = self.session.get('savedTransition');
self.session.loginUser(user);
if (transition) {
transition.retry();
}
}, 200);
transition.abort();
}
});
| 1 | 0.02439 | 1 | 0 |
df42287dfbc9171ec937718ea2db24f09549c0a3 | lib/fanfeedr/leagues.rb | lib/fanfeedr/leagues.rb | require 'fanfeedr/utils'
module Fanfeedr
class Leagues
include Fanfeedr::Utils
attr_reader :api_key, :list
def initialize(api_key)
@api_key = api_key
@list = seed
@records = nil
end
def seed
@records ||= fetch url
@records.inject([]) do |list, league|
list << Fanfeedr::League.new(league["name"], league["id"], @api_key)
end
end
def find(name)
@list.select { |l| l.name == name }.first
end
private
def url
"#{Fanfeedr::API_ENDPOINT}/leagues?api_key=#{@api_key}"
end
end
end
| require 'fanfeedr/utils'
module Fanfeedr
class Leagues
include Fanfeedr::Utils
def initialize(api_key)
@api_key = api_key
@list = seed
end
def find(name)
@list.select { |league| league.name == name }.first
end
def api_key
@api_key
end
def list
@list
end
private
def seed
records = fetch url
records.inject([]) do |list, league|
list << Fanfeedr::League.new(league["name"], league["id"], @api_key)
end
end
def url
"#{Fanfeedr::API_ENDPOINT}/leagues?api_key=#{@api_key}"
end
end
end
| Refactor Leagues per pelusa output | Refactor Leagues per pelusa output
| Ruby | mit | chip/fanfeedr | ruby | ## Code Before:
require 'fanfeedr/utils'
module Fanfeedr
class Leagues
include Fanfeedr::Utils
attr_reader :api_key, :list
def initialize(api_key)
@api_key = api_key
@list = seed
@records = nil
end
def seed
@records ||= fetch url
@records.inject([]) do |list, league|
list << Fanfeedr::League.new(league["name"], league["id"], @api_key)
end
end
def find(name)
@list.select { |l| l.name == name }.first
end
private
def url
"#{Fanfeedr::API_ENDPOINT}/leagues?api_key=#{@api_key}"
end
end
end
## Instruction:
Refactor Leagues per pelusa output
## Code After:
require 'fanfeedr/utils'
module Fanfeedr
class Leagues
include Fanfeedr::Utils
def initialize(api_key)
@api_key = api_key
@list = seed
end
def find(name)
@list.select { |league| league.name == name }.first
end
def api_key
@api_key
end
def list
@list
end
private
def seed
records = fetch url
records.inject([]) do |list, league|
list << Fanfeedr::League.new(league["name"], league["id"], @api_key)
end
end
def url
"#{Fanfeedr::API_ENDPOINT}/leagues?api_key=#{@api_key}"
end
end
end
| require 'fanfeedr/utils'
module Fanfeedr
class Leagues
include Fanfeedr::Utils
- attr_reader :api_key, :list
-
def initialize(api_key)
@api_key = api_key
@list = seed
- @records = nil
end
+ def find(name)
+ @list.select { |league| league.name == name }.first
+ end
+
+ def api_key
+ @api_key
+ end
+
+ def list
+ @list
+ end
+
+ private
+
def seed
- @records ||= fetch url
? - --
+ records = fetch url
- @records.inject([]) do |list, league|
? -
+ records.inject([]) do |list, league|
list << Fanfeedr::League.new(league["name"], league["id"], @api_key)
end
end
-
- def find(name)
- @list.select { |l| l.name == name }.first
- end
-
-
- private
def url
"#{Fanfeedr::API_ENDPOINT}/leagues?api_key=#{@api_key}"
end
end
end | 28 | 0.8 | 16 | 12 |
5eb43d1372a5745e4896e96a4292516d52c647ec | scripts/travis/before-script.sh | scripts/travis/before-script.sh | set -e
if test x"`uname`" = xDarwin ; then
sudo systemsetup -settimezone GMT
brew update
# brew install cmake
elif test x"`uname`" = xLinux ; then
git clone --depth=1 https://github.com/dinhviethoa/libetpan
cd libetpan
./autogen.sh
make >/dev/null
sudo make install >/dev/null
cd ..
sudo apt-get install libctemplate-dev
sudo apt-get install libicu-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libtidy-dev
sudo apt-get install uuid-dev
sudo apt-get install libxml2-dev
sudo apt-get install libuchardet-dev
fi
| set -e
if test x"`uname`" = xDarwin ; then
sudo systemsetup -settimezone America/Los_Angeles
brew update
# brew install cmake
elif test x"`uname`" = xLinux ; then
git clone --depth=1 https://github.com/dinhviethoa/libetpan
cd libetpan
./autogen.sh
make >/dev/null
sudo make install >/dev/null
cd ..
sudo apt-get install libctemplate-dev
sudo apt-get install libicu-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libtidy-dev
sudo apt-get install uuid-dev
sudo apt-get install libxml2-dev
sudo apt-get install libuchardet-dev
fi
| Set timezone to Pacific time | Set timezone to Pacific time
| Shell | bsd-3-clause | iosdevzone/mailcore2,yuklai/mailcore2,serjepatoff/mailcore2,serjepatoff/mailcore2,lottadot/mailcore2,CodaFi/mailcore2,DeskConnect/mailcore2,FAU-Inf2/mailcore2,serjepatoff/mailcore2,yuklai/mailcore2,FAU-Inf2/mailcore2,jjz/mailcore2,antmd/mailcore2,lucasderraugh/mailcore2,DeskConnect/mailcore2,disaykin/mailcore2,cirruspath/mailcore2,CodaFi/mailcore2,yuklai/mailcore2,iosdevzone/mailcore2,cirruspath/mailcore2,chris-wood/mailcore2,disaykin/mailcore2,savichris/mailcore2,serjepatoff/mailcore2,finian/mailcore2,wookiee/mailcore2,wookiee/mailcore2,iosdevzone/mailcore2,disaykin/mailcore2,dvanwinkle/mailcore2,dvanwinkle/mailcore2,CodaFi/mailcore2,disaykin/mailcore2,jjz/mailcore2,finian/mailcore2,lucasderraugh/mailcore2,jjz/mailcore2,antmd/mailcore2,lottadot/mailcore2,CodaFi/mailcore2,DeskConnect/mailcore2,CodaFi/mailcore2,savichris/mailcore2,dvanwinkle/mailcore2,chris-wood/mailcore2,chris-wood/mailcore2,DeskConnect/mailcore2,DeskConnect/mailcore2,FAU-Inf2/mailcore2,FAU-Inf2/mailcore2,lottadot/mailcore2,disaykin/mailcore2,cirruspath/mailcore2,chris-wood/mailcore2,yuklai/mailcore2,serjepatoff/mailcore2,wookiee/mailcore2,FAU-Inf2/mailcore2,iosdevzone/mailcore2,savichris/mailcore2,cirruspath/mailcore2,lottadot/mailcore2,wookiee/mailcore2,antmd/mailcore2,antmd/mailcore2,dvanwinkle/mailcore2,savichris/mailcore2,yuklai/mailcore2,iosdevzone/mailcore2,lottadot/mailcore2,lucasderraugh/mailcore2,dvanwinkle/mailcore2,savichris/mailcore2,lucasderraugh/mailcore2,cirruspath/mailcore2,chris-wood/mailcore2,jjz/mailcore2,cirruspath/mailcore2,finian/mailcore2,antmd/mailcore2,lucasderraugh/mailcore2,finian/mailcore2,finian/mailcore2,jjz/mailcore2,wookiee/mailcore2 | shell | ## Code Before:
set -e
if test x"`uname`" = xDarwin ; then
sudo systemsetup -settimezone GMT
brew update
# brew install cmake
elif test x"`uname`" = xLinux ; then
git clone --depth=1 https://github.com/dinhviethoa/libetpan
cd libetpan
./autogen.sh
make >/dev/null
sudo make install >/dev/null
cd ..
sudo apt-get install libctemplate-dev
sudo apt-get install libicu-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libtidy-dev
sudo apt-get install uuid-dev
sudo apt-get install libxml2-dev
sudo apt-get install libuchardet-dev
fi
## Instruction:
Set timezone to Pacific time
## Code After:
set -e
if test x"`uname`" = xDarwin ; then
sudo systemsetup -settimezone America/Los_Angeles
brew update
# brew install cmake
elif test x"`uname`" = xLinux ; then
git clone --depth=1 https://github.com/dinhviethoa/libetpan
cd libetpan
./autogen.sh
make >/dev/null
sudo make install >/dev/null
cd ..
sudo apt-get install libctemplate-dev
sudo apt-get install libicu-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libtidy-dev
sudo apt-get install uuid-dev
sudo apt-get install libxml2-dev
sudo apt-get install libuchardet-dev
fi
| set -e
if test x"`uname`" = xDarwin ; then
- sudo systemsetup -settimezone GMT
+ sudo systemsetup -settimezone America/Los_Angeles
brew update
# brew install cmake
elif test x"`uname`" = xLinux ; then
git clone --depth=1 https://github.com/dinhviethoa/libetpan
cd libetpan
./autogen.sh
make >/dev/null
sudo make install >/dev/null
cd ..
sudo apt-get install libctemplate-dev
sudo apt-get install libicu-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libtidy-dev
sudo apt-get install uuid-dev
sudo apt-get install libxml2-dev
sudo apt-get install libuchardet-dev
fi
| 2 | 0.086957 | 1 | 1 |
4de69c9f892b1add60948d84df5346516b8eb8a8 | tools/tsan_suppressions.txt | tools/tsan_suppressions.txt | race:OPENSSL_cleanse
race:cleanse_ctr
# these are legitimate races in OpenSSL, and it appears those folks are looking at it
# https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html
race:ssleay_rand_add
race:ssleay_rand_bytes
race:__sleep_for
| race:OPENSSL_cleanse
race:cleanse_ctr
# these are legitimate races in OpenSSL, and it appears those folks are looking at it
# https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html
race:ssleay_rand_add
race:ssleay_rand_bytes
race:__sleep_for
# protobuf has an idempotent write race in ByteSize
# https://github.com/google/protobuf/issues/2169
race:ByteSize
| Add a suppression for a datarace in proto on an idempotent write | Add a suppression for a datarace in proto on an idempotent write
| Text | apache-2.0 | a11r/grpc,yongni/grpc,murgatroid99/grpc,thinkerou/grpc,ipylypiv/grpc,thinkerou/grpc,grani/grpc,chrisdunelm/grpc,yang-g/grpc,dklempner/grpc,kumaralokgithub/grpc,yugui/grpc,MakMukhi/grpc,jcanizales/grpc,sreecha/grpc,kriswuollett/grpc,pszemus/grpc,adelez/grpc,mehrdada/grpc,yongni/grpc,simonkuang/grpc,grpc/grpc,quizlet/grpc,ipylypiv/grpc,mehrdada/grpc,thunderboltsid/grpc,perumaalgoog/grpc,kpayson64/grpc,rjshade/grpc,firebase/grpc,chrisdunelm/grpc,ctiller/grpc,rjshade/grpc,greasypizza/grpc,royalharsh/grpc,vsco/grpc,adelez/grpc,royalharsh/grpc,jcanizales/grpc,soltanmm-google/grpc,infinit/grpc,pmarks-net/grpc,baylabs/grpc,jboeuf/grpc,kriswuollett/grpc,quizlet/grpc,fuchsia-mirror/third_party-grpc,infinit/grpc,Crevil/grpc,rjshade/grpc,baylabs/grpc,makdharma/grpc,kskalski/grpc,7anner/grpc,ejona86/grpc,stanley-cheung/grpc,y-zeng/grpc,daniel-j-born/grpc,makdharma/grpc,stanley-cheung/grpc,andrewpollock/grpc,MakMukhi/grpc,thunderboltsid/grpc,ctiller/grpc,carl-mastrangelo/grpc,baylabs/grpc,ipylypiv/grpc,wcevans/grpc,mehrdada/grpc,msmania/grpc,dklempner/grpc,7anner/grpc,y-zeng/grpc,mehrdada/grpc,kumaralokgithub/grpc,ctiller/grpc,firebase/grpc,nicolasnoble/grpc,dgquintas/grpc,Vizerai/grpc,vsco/grpc,perumaalgoog/grpc,grpc/grpc,dgquintas/grpc,yugui/grpc,ejona86/grpc,simonkuang/grpc,jtattermusch/grpc,MakMukhi/grpc,kpayson64/grpc,vjpai/grpc,yugui/grpc,dklempner/grpc,thunderboltsid/grpc,nicolasnoble/grpc,jboeuf/grpc,a11r/grpc,geffzhang/grpc,jcanizales/grpc,pszemus/grpc,donnadionne/grpc,infinit/grpc,andrewpollock/grpc,nicolasnoble/grpc,ncteisen/grpc,makdharma/grpc,jboeuf/grpc,geffzhang/grpc,kpayson64/grpc,a11r/grpc,quizlet/grpc,thinkerou/grpc,ejona86/grpc,murgatroid99/grpc,soltanmm-google/grpc,pmarks-net/grpc,thinkerou/grpc,firebase/grpc,Vizerai/grpc,royalharsh/grpc,rjshade/grpc,fuchsia-mirror/third_party-grpc,andrewpollock/grpc,fuchsia-mirror/third_party-grpc,matt-kwong/grpc,yang-g/grpc,yongni/grpc,muxi/grpc,nicolasnoble/grpc,infinit/grpc,donnadionne/grpc,stanley-cheung/grpc,kskalski/grpc,ctiller/grpc,dgquintas/grpc,vsco/grpc,Crevil/grpc,kpayson64/grpc,soltanmm-google/grpc,sreecha/grpc,kpayson64/grpc,hstefan/grpc,dklempner/grpc,makdharma/grpc,donnadionne/grpc,7anner/grpc,ejona86/grpc,vsco/grpc,firebase/grpc,yugui/grpc,greasypizza/grpc,grpc/grpc,deepaklukose/grpc,makdharma/grpc,ncteisen/grpc,kriswuollett/grpc,jtattermusch/grpc,PeterFaiman/ruby-grpc-minimal,jcanizales/grpc,makdharma/grpc,greasypizza/grpc,grani/grpc,ncteisen/grpc,daniel-j-born/grpc,a11r/grpc,ejona86/grpc,7anner/grpc,fuchsia-mirror/third_party-grpc,grpc/grpc,MakMukhi/grpc,andrewpollock/grpc,soltanmm-google/grpc,baylabs/grpc,jboeuf/grpc,matt-kwong/grpc,yang-g/grpc,soltanmm-google/grpc,ncteisen/grpc,zhimingxie/grpc,greasypizza/grpc,carl-mastrangelo/grpc,dklempner/grpc,carl-mastrangelo/grpc,deepaklukose/grpc,grpc/grpc,ctiller/grpc,ppietrasa/grpc,pszemus/grpc,wcevans/grpc,grani/grpc,perumaalgoog/grpc,yugui/grpc,a11r/grpc,makdharma/grpc,fuchsia-mirror/third_party-grpc,zhimingxie/grpc,yang-g/grpc,daniel-j-born/grpc,greasypizza/grpc,baylabs/grpc,kpayson64/grpc,kumaralokgithub/grpc,PeterFaiman/ruby-grpc-minimal,pszemus/grpc,grani/grpc,pmarks-net/grpc,muxi/grpc,kskalski/grpc,ncteisen/grpc,ctiller/grpc,yang-g/grpc,infinit/grpc,vsco/grpc,murgatroid99/grpc,PeterFaiman/ruby-grpc-minimal,daniel-j-born/grpc,deepaklukose/grpc,fuchsia-mirror/third_party-grpc,geffzhang/grpc,muxi/grpc,royalharsh/grpc,grpc/grpc,sreecha/grpc,sreecha/grpc,perumaalgoog/grpc,matt-kwong/grpc,y-zeng/grpc,nicolasnoble/grpc,apolcyn/grpc,philcleveland/grpc,baylabs/grpc,msmania/grpc,Vizerai/grpc,nicolasnoble/grpc,7anner/grpc,yugui/grpc,adelez/grpc,adelez/grpc,kumaralokgithub/grpc,PeterFaiman/ruby-grpc-minimal,kumaralokgithub/grpc,jtattermusch/grpc,msmania/grpc,kskalski/grpc,matt-kwong/grpc,greasypizza/grpc,Vizerai/grpc,ncteisen/grpc,grpc/grpc,andrewpollock/grpc,LuminateWireless/grpc,jboeuf/grpc,kriswuollett/grpc,jtattermusch/grpc,ejona86/grpc,vjpai/grpc,ctiller/grpc,ejona86/grpc,fuchsia-mirror/third_party-grpc,jboeuf/grpc,jtattermusch/grpc,Crevil/grpc,grpc/grpc,ctiller/grpc,thinkerou/grpc,geffzhang/grpc,muxi/grpc,y-zeng/grpc,MakMukhi/grpc,simonkuang/grpc,apolcyn/grpc,pszemus/grpc,perumaalgoog/grpc,dklempner/grpc,LuminateWireless/grpc,carl-mastrangelo/grpc,yang-g/grpc,ncteisen/grpc,firebase/grpc,yugui/grpc,y-zeng/grpc,chrisdunelm/grpc,murgatroid99/grpc,pmarks-net/grpc,grpc/grpc,yongni/grpc,wcevans/grpc,adelez/grpc,wcevans/grpc,Vizerai/grpc,ncteisen/grpc,dgquintas/grpc,jboeuf/grpc,ppietrasa/grpc,muxi/grpc,makdharma/grpc,sreecha/grpc,a11r/grpc,Vizerai/grpc,kriswuollett/grpc,grpc/grpc,kriswuollett/grpc,jcanizales/grpc,geffzhang/grpc,vjpai/grpc,ctiller/grpc,thinkerou/grpc,murgatroid99/grpc,ppietrasa/grpc,matt-kwong/grpc,Vizerai/grpc,simonkuang/grpc,7anner/grpc,msmania/grpc,apolcyn/grpc,mehrdada/grpc,wcevans/grpc,carl-mastrangelo/grpc,simonkuang/grpc,dgquintas/grpc,baylabs/grpc,sreecha/grpc,pmarks-net/grpc,chrisdunelm/grpc,quizlet/grpc,kskalski/grpc,mehrdada/grpc,philcleveland/grpc,pmarks-net/grpc,thunderboltsid/grpc,ipylypiv/grpc,grani/grpc,dklempner/grpc,stanley-cheung/grpc,nicolasnoble/grpc,firebase/grpc,nicolasnoble/grpc,zhimingxie/grpc,LuminateWireless/grpc,mehrdada/grpc,philcleveland/grpc,pszemus/grpc,kskalski/grpc,Crevil/grpc,carl-mastrangelo/grpc,ctiller/grpc,sreecha/grpc,dklempner/grpc,infinit/grpc,philcleveland/grpc,y-zeng/grpc,LuminateWireless/grpc,LuminateWireless/grpc,jboeuf/grpc,hstefan/grpc,murgatroid99/grpc,daniel-j-born/grpc,rjshade/grpc,thunderboltsid/grpc,Vizerai/grpc,thinkerou/grpc,sreecha/grpc,andrewpollock/grpc,stanley-cheung/grpc,jboeuf/grpc,kriswuollett/grpc,kskalski/grpc,daniel-j-born/grpc,ipylypiv/grpc,muxi/grpc,Crevil/grpc,chrisdunelm/grpc,deepaklukose/grpc,MakMukhi/grpc,quizlet/grpc,jboeuf/grpc,7anner/grpc,matt-kwong/grpc,stanley-cheung/grpc,PeterFaiman/ruby-grpc-minimal,apolcyn/grpc,a11r/grpc,quizlet/grpc,hstefan/grpc,philcleveland/grpc,yongni/grpc,thinkerou/grpc,murgatroid99/grpc,geffzhang/grpc,ipylypiv/grpc,sreecha/grpc,MakMukhi/grpc,ncteisen/grpc,ppietrasa/grpc,dgquintas/grpc,kpayson64/grpc,donnadionne/grpc,dgquintas/grpc,adelez/grpc,nicolasnoble/grpc,quizlet/grpc,geffzhang/grpc,greasypizza/grpc,pszemus/grpc,stanley-cheung/grpc,wcevans/grpc,matt-kwong/grpc,ppietrasa/grpc,pszemus/grpc,fuchsia-mirror/third_party-grpc,apolcyn/grpc,donnadionne/grpc,baylabs/grpc,jtattermusch/grpc,yang-g/grpc,zhimingxie/grpc,nicolasnoble/grpc,daniel-j-born/grpc,baylabs/grpc,deepaklukose/grpc,Crevil/grpc,royalharsh/grpc,muxi/grpc,wcevans/grpc,philcleveland/grpc,thunderboltsid/grpc,jcanizales/grpc,royalharsh/grpc,kpayson64/grpc,vjpai/grpc,firebase/grpc,mehrdada/grpc,donnadionne/grpc,msmania/grpc,kskalski/grpc,muxi/grpc,firebase/grpc,PeterFaiman/ruby-grpc-minimal,zhimingxie/grpc,Crevil/grpc,thinkerou/grpc,mehrdada/grpc,infinit/grpc,infinit/grpc,hstefan/grpc,msmania/grpc,PeterFaiman/ruby-grpc-minimal,firebase/grpc,rjshade/grpc,sreecha/grpc,adelez/grpc,PeterFaiman/ruby-grpc-minimal,royalharsh/grpc,donnadionne/grpc,thunderboltsid/grpc,rjshade/grpc,ppietrasa/grpc,jtattermusch/grpc,muxi/grpc,jtattermusch/grpc,dgquintas/grpc,ejona86/grpc,grpc/grpc,ncteisen/grpc,LuminateWireless/grpc,nicolasnoble/grpc,ppietrasa/grpc,wcevans/grpc,yugui/grpc,thinkerou/grpc,murgatroid99/grpc,vjpai/grpc,stanley-cheung/grpc,msmania/grpc,carl-mastrangelo/grpc,kpayson64/grpc,jcanizales/grpc,kriswuollett/grpc,kskalski/grpc,carl-mastrangelo/grpc,thinkerou/grpc,kpayson64/grpc,vjpai/grpc,zhimingxie/grpc,vjpai/grpc,y-zeng/grpc,kumaralokgithub/grpc,apolcyn/grpc,philcleveland/grpc,muxi/grpc,pszemus/grpc,daniel-j-born/grpc,kpayson64/grpc,carl-mastrangelo/grpc,hstefan/grpc,wcevans/grpc,dklempner/grpc,deepaklukose/grpc,yang-g/grpc,royalharsh/grpc,MakMukhi/grpc,Vizerai/grpc,ejona86/grpc,hstefan/grpc,geffzhang/grpc,geffzhang/grpc,jtattermusch/grpc,pmarks-net/grpc,Vizerai/grpc,yugui/grpc,jtattermusch/grpc,vjpai/grpc,ejona86/grpc,murgatroid99/grpc,andrewpollock/grpc,dgquintas/grpc,matt-kwong/grpc,soltanmm-google/grpc,hstefan/grpc,soltanmm-google/grpc,greasypizza/grpc,apolcyn/grpc,7anner/grpc,grani/grpc,sreecha/grpc,vjpai/grpc,rjshade/grpc,LuminateWireless/grpc,firebase/grpc,zhimingxie/grpc,yongni/grpc,mehrdada/grpc,stanley-cheung/grpc,donnadionne/grpc,ipylypiv/grpc,deepaklukose/grpc,donnadionne/grpc,vsco/grpc,pmarks-net/grpc,muxi/grpc,rjshade/grpc,Crevil/grpc,hstefan/grpc,vjpai/grpc,vsco/grpc,quizlet/grpc,royalharsh/grpc,pszemus/grpc,PeterFaiman/ruby-grpc-minimal,jtattermusch/grpc,daniel-j-born/grpc,ipylypiv/grpc,fuchsia-mirror/third_party-grpc,muxi/grpc,chrisdunelm/grpc,jboeuf/grpc,yongni/grpc,thunderboltsid/grpc,ppietrasa/grpc,yongni/grpc,kriswuollett/grpc,vsco/grpc,adelez/grpc,kumaralokgithub/grpc,jtattermusch/grpc,soltanmm-google/grpc,ctiller/grpc,carl-mastrangelo/grpc,zhimingxie/grpc,ncteisen/grpc,LuminateWireless/grpc,nicolasnoble/grpc,perumaalgoog/grpc,yang-g/grpc,carl-mastrangelo/grpc,matt-kwong/grpc,PeterFaiman/ruby-grpc-minimal,ppietrasa/grpc,adelez/grpc,firebase/grpc,jboeuf/grpc,a11r/grpc,greasypizza/grpc,grani/grpc,grani/grpc,philcleveland/grpc,ncteisen/grpc,chrisdunelm/grpc,a11r/grpc,deepaklukose/grpc,chrisdunelm/grpc,vjpai/grpc,stanley-cheung/grpc,pszemus/grpc,donnadionne/grpc,firebase/grpc,dgquintas/grpc,andrewpollock/grpc,sreecha/grpc,vsco/grpc,msmania/grpc,chrisdunelm/grpc,jcanizales/grpc,vjpai/grpc,Crevil/grpc,grani/grpc,perumaalgoog/grpc,thinkerou/grpc,andrewpollock/grpc,grpc/grpc,Vizerai/grpc,donnadionne/grpc,mehrdada/grpc,LuminateWireless/grpc,MakMukhi/grpc,soltanmm-google/grpc,7anner/grpc,simonkuang/grpc,apolcyn/grpc,kumaralokgithub/grpc,simonkuang/grpc,simonkuang/grpc,deepaklukose/grpc,y-zeng/grpc,y-zeng/grpc,zhimingxie/grpc,carl-mastrangelo/grpc,infinit/grpc,jcanizales/grpc,simonkuang/grpc,kumaralokgithub/grpc,perumaalgoog/grpc,donnadionne/grpc,dgquintas/grpc,makdharma/grpc,ctiller/grpc,yongni/grpc,philcleveland/grpc,pszemus/grpc,chrisdunelm/grpc,msmania/grpc,apolcyn/grpc,ipylypiv/grpc,perumaalgoog/grpc,fuchsia-mirror/third_party-grpc,murgatroid99/grpc,chrisdunelm/grpc,ejona86/grpc,pmarks-net/grpc,stanley-cheung/grpc,ejona86/grpc,stanley-cheung/grpc,mehrdada/grpc,thunderboltsid/grpc,hstefan/grpc,quizlet/grpc | text | ## Code Before:
race:OPENSSL_cleanse
race:cleanse_ctr
# these are legitimate races in OpenSSL, and it appears those folks are looking at it
# https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html
race:ssleay_rand_add
race:ssleay_rand_bytes
race:__sleep_for
## Instruction:
Add a suppression for a datarace in proto on an idempotent write
## Code After:
race:OPENSSL_cleanse
race:cleanse_ctr
# these are legitimate races in OpenSSL, and it appears those folks are looking at it
# https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html
race:ssleay_rand_add
race:ssleay_rand_bytes
race:__sleep_for
# protobuf has an idempotent write race in ByteSize
# https://github.com/google/protobuf/issues/2169
race:ByteSize
| race:OPENSSL_cleanse
race:cleanse_ctr
# these are legitimate races in OpenSSL, and it appears those folks are looking at it
# https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html
race:ssleay_rand_add
race:ssleay_rand_bytes
race:__sleep_for
+ # protobuf has an idempotent write race in ByteSize
+ # https://github.com/google/protobuf/issues/2169
+ race:ByteSize | 3 | 0.428571 | 3 | 0 |
bb71227a64ed0b093e31e0bddab4fa4d4462a0b6 | include/lld/ReaderWriter/YamlContext.h | include/lld/ReaderWriter/YamlContext.h | //===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_YAML_CONTEXT_H
#define LLD_READER_WRITER_YAML_CONTEXT_H
#include "lld/Core/LLVM.h"
#include <functional>
#include <memory>
#include <vector>
namespace lld {
class File;
class LinkingContext;
namespace mach_o {
namespace normalized {
struct NormalizedFile;
}
}
using lld::mach_o::normalized::NormalizedFile;
/// When YAML I/O is used in lld, the yaml context always holds a YamlContext
/// object. We need to support hetergenous yaml documents which each require
/// different context info. This struct supports all clients.
struct YamlContext {
YamlContext()
: _ctx(nullptr), _registry(nullptr), _file(nullptr),
_normalizeMachOFile(nullptr) {}
const LinkingContext *_ctx;
const Registry *_registry;
File *_file;
NormalizedFile *_normalizeMachOFile;
StringRef _path;
};
} // end namespace lld
#endif // LLD_READER_WRITER_YAML_CONTEXT_H
| //===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_YAML_CONTEXT_H
#define LLD_READER_WRITER_YAML_CONTEXT_H
#include "lld/Core/LLVM.h"
#include <functional>
#include <memory>
#include <vector>
namespace lld {
class File;
class LinkingContext;
namespace mach_o {
namespace normalized {
struct NormalizedFile;
}
}
using lld::mach_o::normalized::NormalizedFile;
/// When YAML I/O is used in lld, the yaml context always holds a YamlContext
/// object. We need to support hetergenous yaml documents which each require
/// different context info. This struct supports all clients.
struct YamlContext {
const LinkingContext *_ctx = nullptr;
const Registry *_registry = nullptr;
File *_file = nullptr;
NormalizedFile *_normalizeMachOFile = nullptr;
StringRef _path;
};
} // end namespace lld
#endif // LLD_READER_WRITER_YAML_CONTEXT_H
| Use C++11 non-static member initialization. | Use C++11 non-static member initialization.
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@234648 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld | c | ## Code Before:
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_YAML_CONTEXT_H
#define LLD_READER_WRITER_YAML_CONTEXT_H
#include "lld/Core/LLVM.h"
#include <functional>
#include <memory>
#include <vector>
namespace lld {
class File;
class LinkingContext;
namespace mach_o {
namespace normalized {
struct NormalizedFile;
}
}
using lld::mach_o::normalized::NormalizedFile;
/// When YAML I/O is used in lld, the yaml context always holds a YamlContext
/// object. We need to support hetergenous yaml documents which each require
/// different context info. This struct supports all clients.
struct YamlContext {
YamlContext()
: _ctx(nullptr), _registry(nullptr), _file(nullptr),
_normalizeMachOFile(nullptr) {}
const LinkingContext *_ctx;
const Registry *_registry;
File *_file;
NormalizedFile *_normalizeMachOFile;
StringRef _path;
};
} // end namespace lld
#endif // LLD_READER_WRITER_YAML_CONTEXT_H
## Instruction:
Use C++11 non-static member initialization.
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@234648 91177308-0d34-0410-b5e6-96231b3b80d8
## Code After:
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_YAML_CONTEXT_H
#define LLD_READER_WRITER_YAML_CONTEXT_H
#include "lld/Core/LLVM.h"
#include <functional>
#include <memory>
#include <vector>
namespace lld {
class File;
class LinkingContext;
namespace mach_o {
namespace normalized {
struct NormalizedFile;
}
}
using lld::mach_o::normalized::NormalizedFile;
/// When YAML I/O is used in lld, the yaml context always holds a YamlContext
/// object. We need to support hetergenous yaml documents which each require
/// different context info. This struct supports all clients.
struct YamlContext {
const LinkingContext *_ctx = nullptr;
const Registry *_registry = nullptr;
File *_file = nullptr;
NormalizedFile *_normalizeMachOFile = nullptr;
StringRef _path;
};
} // end namespace lld
#endif // LLD_READER_WRITER_YAML_CONTEXT_H
| //===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_YAML_CONTEXT_H
#define LLD_READER_WRITER_YAML_CONTEXT_H
#include "lld/Core/LLVM.h"
#include <functional>
#include <memory>
#include <vector>
namespace lld {
class File;
class LinkingContext;
namespace mach_o {
namespace normalized {
struct NormalizedFile;
}
}
using lld::mach_o::normalized::NormalizedFile;
/// When YAML I/O is used in lld, the yaml context always holds a YamlContext
/// object. We need to support hetergenous yaml documents which each require
/// different context info. This struct supports all clients.
struct YamlContext {
- YamlContext()
- : _ctx(nullptr), _registry(nullptr), _file(nullptr),
- _normalizeMachOFile(nullptr) {}
-
- const LinkingContext *_ctx;
+ const LinkingContext *_ctx = nullptr;
? ++++++++++
- const Registry *_registry;
+ const Registry *_registry = nullptr;
? ++++++++++
- File *_file;
+ File *_file = nullptr;
- NormalizedFile *_normalizeMachOFile;
+ NormalizedFile *_normalizeMachOFile = nullptr;
? ++++++++++
StringRef _path;
};
} // end namespace lld
#endif // LLD_READER_WRITER_YAML_CONTEXT_H | 12 | 0.26087 | 4 | 8 |
80a9019cb24ea581a9cef0344caaf4cec4a95a94 | testproject/chtest/consumers.py | testproject/chtest/consumers.py | from channels.sessions import enforce_ordering
#@enforce_ordering(slight=True)
def ws_connect(message):
pass
#@enforce_ordering(slight=True)
def ws_message(message):
"Echoes messages back to the client"
message.reply_channel.send(message.content)
| from channels.sessions import enforce_ordering
#@enforce_ordering(slight=True)
def ws_connect(message):
pass
#@enforce_ordering(slight=True)
def ws_message(message):
"Echoes messages back to the client"
message.reply_channel.send({
"text": message['text'],
})
| Fix echo endpoint in testproject | Fix echo endpoint in testproject
| Python | bsd-3-clause | Krukov/channels,Coread/channels,django/channels,andrewgodwin/channels,linuxlewis/channels,Krukov/channels,raphael-boucher/channels,andrewgodwin/django-channels,raiderrobert/channels,Coread/channels | python | ## Code Before:
from channels.sessions import enforce_ordering
#@enforce_ordering(slight=True)
def ws_connect(message):
pass
#@enforce_ordering(slight=True)
def ws_message(message):
"Echoes messages back to the client"
message.reply_channel.send(message.content)
## Instruction:
Fix echo endpoint in testproject
## Code After:
from channels.sessions import enforce_ordering
#@enforce_ordering(slight=True)
def ws_connect(message):
pass
#@enforce_ordering(slight=True)
def ws_message(message):
"Echoes messages back to the client"
message.reply_channel.send({
"text": message['text'],
})
| from channels.sessions import enforce_ordering
#@enforce_ordering(slight=True)
def ws_connect(message):
pass
#@enforce_ordering(slight=True)
def ws_message(message):
"Echoes messages back to the client"
- message.reply_channel.send(message.content)
? ^^^^^^^^^^^^^^^^
+ message.reply_channel.send({
? ^
+ "text": message['text'],
+ }) | 4 | 0.333333 | 3 | 1 |
4d73893cafa40c6e3e79698965cf130414648075 | application/config/development/application.php | application/config/development/application.php | <?php
return array(
'key' => "6d022a8b71d4f6a0d3b89f587257eb70",
); | <?php
return array(
'key' => "6d022a8b71d4f6a0d3b89f587257eb70",
'profiler' => true,
); | Include the profiler toolbar on the development environment. | Include the profiler toolbar on the development environment.
| PHP | mit | memborsky/irexinc.org,memborsky/irexinc.org,memborsky/irexinc.org | php | ## Code Before:
<?php
return array(
'key' => "6d022a8b71d4f6a0d3b89f587257eb70",
);
## Instruction:
Include the profiler toolbar on the development environment.
## Code After:
<?php
return array(
'key' => "6d022a8b71d4f6a0d3b89f587257eb70",
'profiler' => true,
); | <?php
return array(
'key' => "6d022a8b71d4f6a0d3b89f587257eb70",
+ 'profiler' => true,
); | 1 | 0.2 | 1 | 0 |
70e250c45f22d821d4d0b2c8e94d4bdc7b9c343d | tests/unit/errors/silent-test.js | tests/unit/errors/silent-test.js | 'use strict';
var SilentError = require('silent-error');
var SilentErrorLib = require('../../../lib/errors/silent');
var expect = require('chai').expect;
describe('SilentError', function() {
it('return silent-error and print a deprecation', function() {
expect(SilentErrorLib, 'returns silent-error').to.equal(SilentError);
});
});
| 'use strict';
var SilentError = require('silent-error');
var expect = require('chai').expect;
describe('SilentError', function() {
it('return silent-error and print a deprecation', function() {
var SilentErrorLib = require('../../../lib/errors/silent');
expect(SilentErrorLib, 'returns silent-error').to.equal(SilentError);
});
});
| Move deprecated require() call into test | tests/errors/silent: Move deprecated require() call into test
| JavaScript | mit | cibernox/ember-cli,calderas/ember-cli,scalus/ember-cli,romulomachado/ember-cli,BrianSipple/ember-cli,pixelhandler/ember-cli,ember-cli/ember-cli,raycohen/ember-cli,buschtoens/ember-cli,jgwhite/ember-cli,seawatts/ember-cli,seawatts/ember-cli,scalus/ember-cli,HeroicEric/ember-cli,johanneswuerbach/ember-cli,jasonmit/ember-cli,trabus/ember-cli,mohlek/ember-cli,runspired/ember-cli,kriswill/ember-cli,williamsbdev/ember-cli,BrianSipple/ember-cli,akatov/ember-cli,ember-cli/ember-cli,josemarluedke/ember-cli,calderas/ember-cli,pixelhandler/ember-cli,asakusuma/ember-cli,sivakumar-kailasam/ember-cli,mike-north/ember-cli,patocallaghan/ember-cli,mohlek/ember-cli,BrianSipple/ember-cli,mike-north/ember-cli,kanongil/ember-cli,givanse/ember-cli,trentmwillis/ember-cli,kellyselden/ember-cli,cibernox/ember-cli,josemarluedke/ember-cli,johanneswuerbach/ember-cli,buschtoens/ember-cli,givanse/ember-cli,kategengler/ember-cli,kategengler/ember-cli,fpauser/ember-cli,nathanhammond/ember-cli,jasonmit/ember-cli,mohlek/ember-cli,twokul/ember-cli,pixelhandler/ember-cli,nathanhammond/ember-cli,kanongil/ember-cli,HeroicEric/ember-cli,ef4/ember-cli,pzuraq/ember-cli,twokul/ember-cli,ef4/ember-cli,nathanhammond/ember-cli,rtablada/ember-cli,johanneswuerbach/ember-cli,trabus/ember-cli,Turbo87/ember-cli,akatov/ember-cli,trabus/ember-cli,ember-cli/ember-cli,runspired/ember-cli,sivakumar-kailasam/ember-cli,elwayman02/ember-cli,jgwhite/ember-cli,cibernox/ember-cli,rtablada/ember-cli,thoov/ember-cli,johanneswuerbach/ember-cli,romulomachado/ember-cli,thoov/ember-cli,raycohen/ember-cli,romulomachado/ember-cli,Turbo87/ember-cli,pixelhandler/ember-cli,scalus/ember-cli,cibernox/ember-cli,rtablada/ember-cli,jrjohnson/ember-cli,kellyselden/ember-cli,fpauser/ember-cli,trentmwillis/ember-cli,twokul/ember-cli,gfvcastro/ember-cli,jgwhite/ember-cli,gfvcastro/ember-cli,akatov/ember-cli,patocallaghan/ember-cli,kriswill/ember-cli,sivakumar-kailasam/ember-cli,twokul/ember-cli,pzuraq/ember-cli,runspired/ember-cli,xtian/ember-cli,xtian/ember-cli,HeroicEric/ember-cli,thoov/ember-cli,HeroicEric/ember-cli,williamsbdev/ember-cli,pzuraq/ember-cli,nathanhammond/ember-cli,gfvcastro/ember-cli,williamsbdev/ember-cli,gfvcastro/ember-cli,seawatts/ember-cli,romulomachado/ember-cli,BrianSipple/ember-cli,williamsbdev/ember-cli,runspired/ember-cli,kriswill/ember-cli,asakusuma/ember-cli,calderas/ember-cli,xtian/ember-cli,Turbo87/ember-cli,josemarluedke/ember-cli,xtian/ember-cli,balinterdi/ember-cli,jasonmit/ember-cli,trentmwillis/ember-cli,fpauser/ember-cli,trentmwillis/ember-cli,pzuraq/ember-cli,elwayman02/ember-cli,patocallaghan/ember-cli,patocallaghan/ember-cli,givanse/ember-cli,mike-north/ember-cli,balinterdi/ember-cli,calderas/ember-cli,ef4/ember-cli,akatov/ember-cli,mike-north/ember-cli,jgwhite/ember-cli,Turbo87/ember-cli,kellyselden/ember-cli,kanongil/ember-cli,jrjohnson/ember-cli,givanse/ember-cli,scalus/ember-cli,rtablada/ember-cli,jasonmit/ember-cli,mohlek/ember-cli,ef4/ember-cli,josemarluedke/ember-cli,kellyselden/ember-cli,sivakumar-kailasam/ember-cli,fpauser/ember-cli,thoov/ember-cli,trabus/ember-cli,kanongil/ember-cli,kriswill/ember-cli,seawatts/ember-cli | javascript | ## Code Before:
'use strict';
var SilentError = require('silent-error');
var SilentErrorLib = require('../../../lib/errors/silent');
var expect = require('chai').expect;
describe('SilentError', function() {
it('return silent-error and print a deprecation', function() {
expect(SilentErrorLib, 'returns silent-error').to.equal(SilentError);
});
});
## Instruction:
tests/errors/silent: Move deprecated require() call into test
## Code After:
'use strict';
var SilentError = require('silent-error');
var expect = require('chai').expect;
describe('SilentError', function() {
it('return silent-error and print a deprecation', function() {
var SilentErrorLib = require('../../../lib/errors/silent');
expect(SilentErrorLib, 'returns silent-error').to.equal(SilentError);
});
});
| 'use strict';
var SilentError = require('silent-error');
- var SilentErrorLib = require('../../../lib/errors/silent');
var expect = require('chai').expect;
describe('SilentError', function() {
it('return silent-error and print a deprecation', function() {
+ var SilentErrorLib = require('../../../lib/errors/silent');
expect(SilentErrorLib, 'returns silent-error').to.equal(SilentError);
});
}); | 2 | 0.181818 | 1 | 1 |
6cd2344a487baca79dfea1bb918705f0e069fdd3 | source/features/monospace-textareas.css | source/features/monospace-textareas.css | /* Limit width of commit title to 72 characters */
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input {
width: calc(72ch + 18px);
}
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input,
.rgh-monospace-textareas textarea {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}
.rgh-monospace-textareas textarea {
font-size: 13px;
}
| /* Limit width of commit title to 72 characters */
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input {
width: calc(72ch + 18px);
max-width: 100%;
}
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input,
.rgh-monospace-textareas textarea {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}
.rgh-monospace-textareas textarea {
font-size: 13px;
}
| Fix bleeding field on the "Ddit file" commit form | Fix bleeding field on the "Ddit file" commit form
https://user-images.githubusercontent.com/1402241/77678157-0ac75c80-6f91-11ea-88be-c7278be3222e.png | CSS | mit | sindresorhus/refined-github,sindresorhus/refined-github | css | ## Code Before:
/* Limit width of commit title to 72 characters */
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input {
width: calc(72ch + 18px);
}
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input,
.rgh-monospace-textareas textarea {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}
.rgh-monospace-textareas textarea {
font-size: 13px;
}
## Instruction:
Fix bleeding field on the "Ddit file" commit form
https://user-images.githubusercontent.com/1402241/77678157-0ac75c80-6f91-11ea-88be-c7278be3222e.png
## Code After:
/* Limit width of commit title to 72 characters */
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input {
width: calc(72ch + 18px);
max-width: 100%;
}
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input,
.rgh-monospace-textareas textarea {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}
.rgh-monospace-textareas textarea {
font-size: 13px;
}
| /* Limit width of commit title to 72 characters */
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input {
width: calc(72ch + 18px);
+ max-width: 100%;
}
.rgh-monospace-textareas #merge_title_field,
.rgh-monospace-textareas #commit-summary-input,
.rgh-monospace-textareas textarea {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}
.rgh-monospace-textareas textarea {
font-size: 13px;
} | 1 | 0.066667 | 1 | 0 |
025f004f3c3159efe6bf7e07a1ec8736601b3f51 | components/avatar/AvatarStack.js | components/avatar/AvatarStack.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class AvatarStack extends PureComponent {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
direction: PropTypes.oneOf(['horizontal', 'vertical']),
displayMax: PropTypes.number,
inverse: PropTypes.bool,
onOverflowClick: PropTypes.func,
size: PropTypes.oneOf(['tiny', 'small', 'medium']),
};
static defaultProps = {
direction: 'horizontal',
displayMax: 0,
inverse: false,
size: 'medium',
};
render() {
const { children, className, direction, displayMax, inverse, onOverflowClick, size, ...others } = this.props;
const classNames = cx(
theme['stack'],
theme[direction],
theme[size],
inverse ? [theme['light']] : [theme['dark']],
className,
);
const childrenToDisplay = displayMax > 0 ? children.slice(0, displayMax) : children;
const overflowAmount = children.length - displayMax;
return (
<Box data-teamleader-ui="avatar-stack" className={classNames} {...others}>
{overflowAmount !== children.length && (
<div className={theme['overflow']} onClick={onOverflowClick}>{`+${overflowAmount}`}</div>
)}
{childrenToDisplay}
</Box>
);
}
}
export default AvatarStack;
| import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class AvatarStack extends PureComponent {
render() {
const { children, className, direction, displayMax, inverse, onOverflowClick, size, ...others } = this.props;
const classNames = cx(
theme['stack'],
theme[direction],
theme[size],
inverse ? [theme['light']] : [theme['dark']],
className,
);
const childrenToDisplay = displayMax > 0 ? children.slice(0, displayMax) : children;
const overflowAmount = children.length - displayMax;
return (
<Box data-teamleader-ui="avatar-stack" className={classNames} {...others}>
{overflowAmount !== children.length && (
<div className={theme['overflow']} onClick={onOverflowClick}>{`+${overflowAmount}`}</div>
)}
{childrenToDisplay}
</Box>
);
}
}
AvatarStack.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
direction: PropTypes.oneOf(['horizontal', 'vertical']),
displayMax: PropTypes.number,
inverse: PropTypes.bool,
onOverflowClick: PropTypes.func,
size: PropTypes.oneOf(['tiny', 'small', 'medium']),
};
AvatarStack.defaultProps = {
direction: 'horizontal',
displayMax: 0,
inverse: false,
size: 'medium',
};
export default AvatarStack;
| Move propTypes & defaultProps outside of the component class | Move propTypes & defaultProps outside of the component class
| JavaScript | mit | teamleadercrm/teamleader-ui | javascript | ## Code Before:
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class AvatarStack extends PureComponent {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
direction: PropTypes.oneOf(['horizontal', 'vertical']),
displayMax: PropTypes.number,
inverse: PropTypes.bool,
onOverflowClick: PropTypes.func,
size: PropTypes.oneOf(['tiny', 'small', 'medium']),
};
static defaultProps = {
direction: 'horizontal',
displayMax: 0,
inverse: false,
size: 'medium',
};
render() {
const { children, className, direction, displayMax, inverse, onOverflowClick, size, ...others } = this.props;
const classNames = cx(
theme['stack'],
theme[direction],
theme[size],
inverse ? [theme['light']] : [theme['dark']],
className,
);
const childrenToDisplay = displayMax > 0 ? children.slice(0, displayMax) : children;
const overflowAmount = children.length - displayMax;
return (
<Box data-teamleader-ui="avatar-stack" className={classNames} {...others}>
{overflowAmount !== children.length && (
<div className={theme['overflow']} onClick={onOverflowClick}>{`+${overflowAmount}`}</div>
)}
{childrenToDisplay}
</Box>
);
}
}
export default AvatarStack;
## Instruction:
Move propTypes & defaultProps outside of the component class
## Code After:
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class AvatarStack extends PureComponent {
render() {
const { children, className, direction, displayMax, inverse, onOverflowClick, size, ...others } = this.props;
const classNames = cx(
theme['stack'],
theme[direction],
theme[size],
inverse ? [theme['light']] : [theme['dark']],
className,
);
const childrenToDisplay = displayMax > 0 ? children.slice(0, displayMax) : children;
const overflowAmount = children.length - displayMax;
return (
<Box data-teamleader-ui="avatar-stack" className={classNames} {...others}>
{overflowAmount !== children.length && (
<div className={theme['overflow']} onClick={onOverflowClick}>{`+${overflowAmount}`}</div>
)}
{childrenToDisplay}
</Box>
);
}
}
AvatarStack.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
direction: PropTypes.oneOf(['horizontal', 'vertical']),
displayMax: PropTypes.number,
inverse: PropTypes.bool,
onOverflowClick: PropTypes.func,
size: PropTypes.oneOf(['tiny', 'small', 'medium']),
};
AvatarStack.defaultProps = {
direction: 'horizontal',
displayMax: 0,
inverse: false,
size: 'medium',
};
export default AvatarStack;
| import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class AvatarStack extends PureComponent {
- static propTypes = {
- children: PropTypes.node,
- className: PropTypes.string,
- direction: PropTypes.oneOf(['horizontal', 'vertical']),
- displayMax: PropTypes.number,
- inverse: PropTypes.bool,
- onOverflowClick: PropTypes.func,
- size: PropTypes.oneOf(['tiny', 'small', 'medium']),
- };
-
- static defaultProps = {
- direction: 'horizontal',
- displayMax: 0,
- inverse: false,
- size: 'medium',
- };
-
render() {
const { children, className, direction, displayMax, inverse, onOverflowClick, size, ...others } = this.props;
const classNames = cx(
theme['stack'],
theme[direction],
theme[size],
inverse ? [theme['light']] : [theme['dark']],
className,
);
const childrenToDisplay = displayMax > 0 ? children.slice(0, displayMax) : children;
const overflowAmount = children.length - displayMax;
return (
<Box data-teamleader-ui="avatar-stack" className={classNames} {...others}>
{overflowAmount !== children.length && (
<div className={theme['overflow']} onClick={onOverflowClick}>{`+${overflowAmount}`}</div>
)}
{childrenToDisplay}
</Box>
);
}
}
+ AvatarStack.propTypes = {
+ children: PropTypes.node,
+ className: PropTypes.string,
+ direction: PropTypes.oneOf(['horizontal', 'vertical']),
+ displayMax: PropTypes.number,
+ inverse: PropTypes.bool,
+ onOverflowClick: PropTypes.func,
+ size: PropTypes.oneOf(['tiny', 'small', 'medium']),
+ };
+
+ AvatarStack.defaultProps = {
+ direction: 'horizontal',
+ displayMax: 0,
+ inverse: false,
+ size: 'medium',
+ };
+
export default AvatarStack; | 34 | 0.68 | 17 | 17 |
cb3eface4e02f6bb2c4514f8ae6cb45192cb577f | release.nix | release.nix | { src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
, supportedPlatforms ? [ "x86_64-linux" ]
, supportedCompilers ? [ "ghc7103" ]
}:
with (import <nixpkgs> {}).lib;
let
hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{
owner = "expipiplus1";
repo = "hnix";
rev = "295e26b2081552d3a70e5a249dc61481e7482477";
sha256 = "01h2vnkwc1izp7nw4j59nl07jnd3s6nrwlmr4ilkkngkxnrcl5vk";
};
in
genAttrs supportedCompilers (ghcVer:
genAttrs supportedPlatforms (system:
let
pkgs = import <nixpkgs> { inherit system; };
baseHaskellPackages = getAttrFromPath ["haskell" "packages" ghcVer] pkgs;
haskellPackages = baseHaskellPackages.override {
overrides = self: super: {
hnix = self.callPackage hnixSrc {compiler = ghcVer; };
};
};
in
haskellPackages.callPackage src {}
)
)
| { src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
, supportedPlatforms ? [ "x86_64-linux" "x86_64-darwin" ]
, supportedCompilers ? [ "ghc7103" ]
}:
with (import <nixpkgs> {}).lib;
let
hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{
owner = "expipiplus1";
repo = "hnix";
rev = "295e26b2081552d3a70e5a249dc61481e7482477";
sha256 = "01h2vnkwc1izp7nw4j59nl07jnd3s6nrwlmr4ilkkngkxnrcl5vk";
};
in
genAttrs supportedCompilers (ghcVer:
genAttrs supportedPlatforms (system:
let
pkgs = import <nixpkgs> { inherit system; };
baseHaskellPackages = getAttrFromPath ["haskell" "packages" ghcVer] pkgs;
haskellPackages = baseHaskellPackages.override {
overrides = self: super: {
hnix = self.callPackage hnixSrc {compiler = ghcVer; };
};
};
in
haskellPackages.callPackage src {}
)
)
| Add x86_64-darwin" as a supported platform | Add x86_64-darwin" as a supported platform
| Nix | bsd-3-clause | DavidEGrayson/update-nix-fetchgit | nix | ## Code Before:
{ src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
, supportedPlatforms ? [ "x86_64-linux" ]
, supportedCompilers ? [ "ghc7103" ]
}:
with (import <nixpkgs> {}).lib;
let
hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{
owner = "expipiplus1";
repo = "hnix";
rev = "295e26b2081552d3a70e5a249dc61481e7482477";
sha256 = "01h2vnkwc1izp7nw4j59nl07jnd3s6nrwlmr4ilkkngkxnrcl5vk";
};
in
genAttrs supportedCompilers (ghcVer:
genAttrs supportedPlatforms (system:
let
pkgs = import <nixpkgs> { inherit system; };
baseHaskellPackages = getAttrFromPath ["haskell" "packages" ghcVer] pkgs;
haskellPackages = baseHaskellPackages.override {
overrides = self: super: {
hnix = self.callPackage hnixSrc {compiler = ghcVer; };
};
};
in
haskellPackages.callPackage src {}
)
)
## Instruction:
Add x86_64-darwin" as a supported platform
## Code After:
{ src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
, supportedPlatforms ? [ "x86_64-linux" "x86_64-darwin" ]
, supportedCompilers ? [ "ghc7103" ]
}:
with (import <nixpkgs> {}).lib;
let
hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{
owner = "expipiplus1";
repo = "hnix";
rev = "295e26b2081552d3a70e5a249dc61481e7482477";
sha256 = "01h2vnkwc1izp7nw4j59nl07jnd3s6nrwlmr4ilkkngkxnrcl5vk";
};
in
genAttrs supportedCompilers (ghcVer:
genAttrs supportedPlatforms (system:
let
pkgs = import <nixpkgs> { inherit system; };
baseHaskellPackages = getAttrFromPath ["haskell" "packages" ghcVer] pkgs;
haskellPackages = baseHaskellPackages.override {
overrides = self: super: {
hnix = self.callPackage hnixSrc {compiler = ghcVer; };
};
};
in
haskellPackages.callPackage src {}
)
)
| { src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
- , supportedPlatforms ? [ "x86_64-linux" ]
+ , supportedPlatforms ? [ "x86_64-linux" "x86_64-darwin" ]
? ++++++++++++++++
, supportedCompilers ? [ "ghc7103" ]
}:
with (import <nixpkgs> {}).lib;
let
hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{
owner = "expipiplus1";
repo = "hnix";
rev = "295e26b2081552d3a70e5a249dc61481e7482477";
sha256 = "01h2vnkwc1izp7nw4j59nl07jnd3s6nrwlmr4ilkkngkxnrcl5vk";
};
in
genAttrs supportedCompilers (ghcVer:
genAttrs supportedPlatforms (system:
let
pkgs = import <nixpkgs> { inherit system; };
baseHaskellPackages = getAttrFromPath ["haskell" "packages" ghcVer] pkgs;
haskellPackages = baseHaskellPackages.override {
overrides = self: super: {
hnix = self.callPackage hnixSrc {compiler = ghcVer; };
};
};
in
haskellPackages.callPackage src {}
)
) | 2 | 0.060606 | 1 | 1 |
612c12a57b5f8e47e9d55e68a4b341a85c6c2c33 | init/60_nix_ssh-keygen.sh | init/60_nix_ssh-keygen.sh | key_directory="${HOME}/.ssh/keys/"
key_titles=( id_rsa udel gclab github bitbucket llnl )
e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)"
mkdir -p ${key_directory}
for key_title in ${key_titles[@]}; do
key_file="${key_directory}/${key_title}"
if [ ! -f ${key_file} ]; then
ssh-keygen -t rsa -b 4096 -f ${key_file} -N "" -q
fi
done
| key_directory="${HOME}/.ssh/keys/"
key_titles=( id_rsa udel gclab github bitbucket llnl )
e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)"
mkdir -p ${key_directory}
for key_title in ${key_titles[@]}; do
key_file="${key_directory}/${key_title}"
if [ ! -f ${key_file} ]; then
echo "Creating ${key_file}"
ssh-keygen -t rsa -b 4096 -f ${key_file} -N "" -q
else
echo "Skipping ${key_file}, already exists"
fi
done
| Add printing for ssh-keygen init script | Add printing for ssh-keygen init script
| Shell | mit | SteVwonder/dotfiles,SteVwonder/dotfiles,SteVwonder/dotfiles,SteVwonder/dotfiles | shell | ## Code Before:
key_directory="${HOME}/.ssh/keys/"
key_titles=( id_rsa udel gclab github bitbucket llnl )
e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)"
mkdir -p ${key_directory}
for key_title in ${key_titles[@]}; do
key_file="${key_directory}/${key_title}"
if [ ! -f ${key_file} ]; then
ssh-keygen -t rsa -b 4096 -f ${key_file} -N "" -q
fi
done
## Instruction:
Add printing for ssh-keygen init script
## Code After:
key_directory="${HOME}/.ssh/keys/"
key_titles=( id_rsa udel gclab github bitbucket llnl )
e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)"
mkdir -p ${key_directory}
for key_title in ${key_titles[@]}; do
key_file="${key_directory}/${key_title}"
if [ ! -f ${key_file} ]; then
echo "Creating ${key_file}"
ssh-keygen -t rsa -b 4096 -f ${key_file} -N "" -q
else
echo "Skipping ${key_file}, already exists"
fi
done
| key_directory="${HOME}/.ssh/keys/"
key_titles=( id_rsa udel gclab github bitbucket llnl )
e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)"
mkdir -p ${key_directory}
for key_title in ${key_titles[@]}; do
key_file="${key_directory}/${key_title}"
if [ ! -f ${key_file} ]; then
+ echo "Creating ${key_file}"
ssh-keygen -t rsa -b 4096 -f ${key_file} -N "" -q
+ else
+ echo "Skipping ${key_file}, already exists"
fi
done | 3 | 0.272727 | 3 | 0 |
34fbb6d2d7dab4b9e35fdbb65c9493cc505a782a | tests/cli.bat | tests/cli.bat | @echo off
echo ^> Running CLI tests...
set MR="%~dp0\..\target\release\multirust-rs.exe"
echo ^> Testing --help
%MR% --help || (echo FAILED && exit /b 1)
echo ^> Testing install
%MR% install -a || (echo FAILED && exit /b 1)
echo ^> Updating PATH
set PATH=%USERPROFILE%\.multirust\bin;%PATH%
echo ^> Testing default
multirust default nightly || (echo FAILED && exit /b 1)
echo ^> Testing rustc
rustc --multirust || (echo FAILED && exit /b 1)
echo ^> Testing cargo
cargo --multirust || (echo FAILED && exit /b 1)
echo ^> Testing override
multirust override i686-msvc-stable || (echo FAILED && exit /b 1)
echo ^> Testing update
multirust update || (echo FAILED && exit /b 1)
echo ^> Testing uninstall
multirust uninstall -y || (echo FAILED && exit /b 1)
echo ^> Finished
| @echo off
echo ^> Running CLI tests...
set MR="%~dp0\..\target\release\multirust-rs.exe"
echo ^> Testing --help
%MR% --help || (echo FAILED && exit /b 1)
echo ^> Testing install
%MR% install -a || (echo FAILED && exit /b 1)
echo ^> Updating PATH
set PATH=%USERPROFILE%\.multirust\bin;%PATH%
echo ^> Testing default
multirust default nightly || (echo FAILED && exit /b 1)
echo ^> Testing rustc
call rustc --multirust || (echo FAILED && exit /b 1)
echo ^> Testing cargo
call cargo --multirust || (echo FAILED && exit /b 1)
echo ^> Testing override
multirust override i686-msvc-stable || (echo FAILED && exit /b 1)
echo ^> Testing update
multirust update || (echo FAILED && exit /b 1)
echo ^> Testing uninstall
multirust uninstall -y || (echo FAILED && exit /b 1)
echo ^> Finished
| Use call for invoking batch files | Use call for invoking batch files
| Batchfile | apache-2.0 | rust-lang/rustup,rust-lang/rustup,rust-lang/rustup,polonez/rustup.rs,inejge/rustup.rs,Boddlnagg/rustup.rs,Boddlnagg/rustup.rs,theindigamer/rustup.rs,rust-lang/rustup,theindigamer/rustup.rs,polonez/rustup.rs,nodakai/rustup.rs,polonez/rustup.rs,nodakai/rustup.rs,nodakai/rustup.rs,Boddlnagg/rustup.rs,inejge/rustup.rs,inejge/rustup.rs,nodakai/rustup.rs,inejge/rustup.rs,theindigamer/rustup.rs,rust-lang/rustup,nodakai/rustup.rs,Boddlnagg/rustup.rs,polonez/rustup.rs,theindigamer/rustup.rs,Boddlnagg/rustup.rs,polonez/rustup.rs,theindigamer/rustup.rs,inejge/rustup.rs | batchfile | ## Code Before:
@echo off
echo ^> Running CLI tests...
set MR="%~dp0\..\target\release\multirust-rs.exe"
echo ^> Testing --help
%MR% --help || (echo FAILED && exit /b 1)
echo ^> Testing install
%MR% install -a || (echo FAILED && exit /b 1)
echo ^> Updating PATH
set PATH=%USERPROFILE%\.multirust\bin;%PATH%
echo ^> Testing default
multirust default nightly || (echo FAILED && exit /b 1)
echo ^> Testing rustc
rustc --multirust || (echo FAILED && exit /b 1)
echo ^> Testing cargo
cargo --multirust || (echo FAILED && exit /b 1)
echo ^> Testing override
multirust override i686-msvc-stable || (echo FAILED && exit /b 1)
echo ^> Testing update
multirust update || (echo FAILED && exit /b 1)
echo ^> Testing uninstall
multirust uninstall -y || (echo FAILED && exit /b 1)
echo ^> Finished
## Instruction:
Use call for invoking batch files
## Code After:
@echo off
echo ^> Running CLI tests...
set MR="%~dp0\..\target\release\multirust-rs.exe"
echo ^> Testing --help
%MR% --help || (echo FAILED && exit /b 1)
echo ^> Testing install
%MR% install -a || (echo FAILED && exit /b 1)
echo ^> Updating PATH
set PATH=%USERPROFILE%\.multirust\bin;%PATH%
echo ^> Testing default
multirust default nightly || (echo FAILED && exit /b 1)
echo ^> Testing rustc
call rustc --multirust || (echo FAILED && exit /b 1)
echo ^> Testing cargo
call cargo --multirust || (echo FAILED && exit /b 1)
echo ^> Testing override
multirust override i686-msvc-stable || (echo FAILED && exit /b 1)
echo ^> Testing update
multirust update || (echo FAILED && exit /b 1)
echo ^> Testing uninstall
multirust uninstall -y || (echo FAILED && exit /b 1)
echo ^> Finished
| @echo off
echo ^> Running CLI tests...
set MR="%~dp0\..\target\release\multirust-rs.exe"
echo ^> Testing --help
%MR% --help || (echo FAILED && exit /b 1)
echo ^> Testing install
%MR% install -a || (echo FAILED && exit /b 1)
echo ^> Updating PATH
set PATH=%USERPROFILE%\.multirust\bin;%PATH%
echo ^> Testing default
multirust default nightly || (echo FAILED && exit /b 1)
echo ^> Testing rustc
- rustc --multirust || (echo FAILED && exit /b 1)
+ call rustc --multirust || (echo FAILED && exit /b 1)
? +++++
echo ^> Testing cargo
- cargo --multirust || (echo FAILED && exit /b 1)
+ call cargo --multirust || (echo FAILED && exit /b 1)
? +++++
echo ^> Testing override
multirust override i686-msvc-stable || (echo FAILED && exit /b 1)
echo ^> Testing update
multirust update || (echo FAILED && exit /b 1)
echo ^> Testing uninstall
multirust uninstall -y || (echo FAILED && exit /b 1)
echo ^> Finished | 4 | 0.117647 | 2 | 2 |
aa6fd6c097255dff2dfac7475d6152177fa50573 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
before_install:
- sudo apt-get install liblapack-dev gfortran
- pip install -r requirements.txt
- pip install pytest
install:
- python setup.py install
script:
- (cd tests && py.test test*.py)
| language: python
python:
- "2.7"
before_install:
- sudo apt-get update
- sudo apt-get install python-numpy python-scipy cython libatlas-dev liblapack-dev gfortran
- pip install -r requirements.txt
- pip install pytest
install:
- python setup.py install
script:
- (cd tests && py.test test*.py)
| Move to apt-get install sci/numpy | Move to apt-get install sci/numpy
| YAML | isc | r9y9/librosa,Cortexelus/librosa,r9y9/librosa,yunque/librosa,carlthome/librosa,imsparsh/librosa,decebel/librosa,ruohoruotsi/librosa,craffel/librosa,stefan-balke/librosa,imsparsh/librosa,ruohoruotsi/librosa,craffel/librosa,yunque/librosa,Cortexelus/librosa,carlthome/librosa,r9y9/librosa,ruohoruotsi/librosa,decebel/librosa,carlthome/librosa,Cortexelus/librosa,stefan-balke/librosa,craffel/librosa,stefan-balke/librosa | yaml | ## Code Before:
language: python
python:
- "2.7"
before_install:
- sudo apt-get install liblapack-dev gfortran
- pip install -r requirements.txt
- pip install pytest
install:
- python setup.py install
script:
- (cd tests && py.test test*.py)
## Instruction:
Move to apt-get install sci/numpy
## Code After:
language: python
python:
- "2.7"
before_install:
- sudo apt-get update
- sudo apt-get install python-numpy python-scipy cython libatlas-dev liblapack-dev gfortran
- pip install -r requirements.txt
- pip install pytest
install:
- python setup.py install
script:
- (cd tests && py.test test*.py)
| language: python
python:
- "2.7"
before_install:
- - sudo apt-get install liblapack-dev gfortran
+ - sudo apt-get update
+ - sudo apt-get install python-numpy python-scipy cython libatlas-dev liblapack-dev gfortran
- pip install -r requirements.txt
- pip install pytest
install:
- python setup.py install
script:
- (cd tests && py.test test*.py) | 3 | 0.2 | 2 | 1 |
fa82fae095ae1729ec7f38b096316c50ac548004 | app/assets/stylesheets/petitions/_forms.scss | app/assets/stylesheets/petitions/_forms.scss | // Adds to ../govuk_elements/_forms.scss
select.form-control {
-webkit-appearance: menulist;
}
.form-control.small {
width: 8.5em;
}
.form-group.error {
@extend %outdent-to-full-width;
}
// Replication .form-label-bold without the font
.error .form-label {
@extend .form-label-bold;
}
.form-control {
padding: 0.5em;
}
| // Adds to ../govuk_elements/_forms.scss
select.form-control {
-webkit-appearance: menulist;
}
.form-control.small {
width: 8.5em;
}
.form-group.error {
@extend %outdent-to-full-width;
}
// Replication .form-label-bold without the font
.error .form-label {
@extend .form-label-bold;
}
.form-control {
padding: 0.5em;
}
.error,
.error-summary {
@include media(tablet) {
padding-left: $gutter - 5px;
padding-right: $gutter;
}
}
| Fix the bottom paragraph 'jumping' word into any form field with errors on a signature form page | Fix the bottom paragraph 'jumping' word into any form field with errors on a signature form page
| SCSS | mit | unboxed/e-petitions,ansonK/e-petitions,StatesOfJersey/e-petitions,alphagov/e-petitions,oskarpearson/e-petitions,ansonK/e-petitions,telekomatrix/e-petitions,joelanman/e-petitions,StatesOfJersey/e-petitions,oskarpearson/e-petitions,StatesOfJersey/e-petitions,telekomatrix/e-petitions,oskarpearson/e-petitions,alphagov/e-petitions,joelanman/e-petitions,unboxed/e-petitions,alphagov/e-petitions,alphagov/e-petitions,telekomatrix/e-petitions,unboxed/e-petitions,joelanman/e-petitions,StatesOfJersey/e-petitions,ansonK/e-petitions,unboxed/e-petitions | scss | ## Code Before:
// Adds to ../govuk_elements/_forms.scss
select.form-control {
-webkit-appearance: menulist;
}
.form-control.small {
width: 8.5em;
}
.form-group.error {
@extend %outdent-to-full-width;
}
// Replication .form-label-bold without the font
.error .form-label {
@extend .form-label-bold;
}
.form-control {
padding: 0.5em;
}
## Instruction:
Fix the bottom paragraph 'jumping' word into any form field with errors on a signature form page
## Code After:
// Adds to ../govuk_elements/_forms.scss
select.form-control {
-webkit-appearance: menulist;
}
.form-control.small {
width: 8.5em;
}
.form-group.error {
@extend %outdent-to-full-width;
}
// Replication .form-label-bold without the font
.error .form-label {
@extend .form-label-bold;
}
.form-control {
padding: 0.5em;
}
.error,
.error-summary {
@include media(tablet) {
padding-left: $gutter - 5px;
padding-right: $gutter;
}
}
| // Adds to ../govuk_elements/_forms.scss
select.form-control {
-webkit-appearance: menulist;
}
.form-control.small {
width: 8.5em;
}
.form-group.error {
@extend %outdent-to-full-width;
}
// Replication .form-label-bold without the font
.error .form-label {
@extend .form-label-bold;
}
.form-control {
padding: 0.5em;
}
+
+ .error,
+ .error-summary {
+ @include media(tablet) {
+ padding-left: $gutter - 5px;
+ padding-right: $gutter;
+ }
+ } | 8 | 0.363636 | 8 | 0 |
ed6e0608f7ca66bb6127626103f83e60b87a1141 | setup.py | setup.py |
from setuptools import setup
version = "0.3"
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cmd",
download_url="https://github.com/nigma/dj-cmd/zipball/master",
long_description=open("README.rst").read(),
packages=["dj_cmd"],
package_dir={"dj_cmd": "src"},
include_package_data=True,
classifiers=(
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules"
),
tests_require=["django>=1.3"],
entry_points={
"console_scripts": [
"dj = dj_cmd.dj:main",
]
},
)
|
from setuptools import setup
version = "0.4"
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cmd",
download_url="https://github.com/nigma/dj-cmd/zipball/master",
long_description=open("README.rst").read(),
packages=["dj_cmd"],
package_dir={"dj_cmd": "src"},
include_package_data=True,
classifiers=(
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules"
),
tests_require=["django>=1.3"],
entry_points={
"console_scripts": [
"dj = dj_cmd.dj:main",
]
},
)
| Increase package version to 0.4 and update meta | Increase package version to 0.4 and update meta
| Python | bsd-3-clause | nigma/dj-cmd | python | ## Code Before:
from setuptools import setup
version = "0.3"
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cmd",
download_url="https://github.com/nigma/dj-cmd/zipball/master",
long_description=open("README.rst").read(),
packages=["dj_cmd"],
package_dir={"dj_cmd": "src"},
include_package_data=True,
classifiers=(
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules"
),
tests_require=["django>=1.3"],
entry_points={
"console_scripts": [
"dj = dj_cmd.dj:main",
]
},
)
## Instruction:
Increase package version to 0.4 and update meta
## Code After:
from setuptools import setup
version = "0.4"
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cmd",
download_url="https://github.com/nigma/dj-cmd/zipball/master",
long_description=open("README.rst").read(),
packages=["dj_cmd"],
package_dir={"dj_cmd": "src"},
include_package_data=True,
classifiers=(
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules"
),
tests_require=["django>=1.3"],
entry_points={
"console_scripts": [
"dj = dj_cmd.dj:main",
]
},
)
|
from setuptools import setup
-
- version = "0.3"
? ^
+ version = "0.4"
? ^
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cmd",
download_url="https://github.com/nigma/dj-cmd/zipball/master",
long_description=open("README.rst").read(),
packages=["dj_cmd"],
package_dir={"dj_cmd": "src"},
include_package_data=True,
classifiers=(
- "Development Status :: 4 - Beta",
? ^ ^^
+ "Development Status :: 5 - Production/Stable",
? ^ ^^^^^^^^^^^^ +++
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules"
),
tests_require=["django>=1.3"],
entry_points={
"console_scripts": [
"dj = dj_cmd.dj:main",
]
},
) | 6 | 0.130435 | 2 | 4 |
0d8530289ea7dc0d0f700b242ef069a78704cb76 | README.md | README.md | brackets-duplicate-extension
============================
# File & Folder Duplicating Extension for Brackets
An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New Projector Creator Extension](https://github.com/JeffryBooher/brackets-newproject-extension).
### How to Install
1. Select **File > Extension Manager...**
2. Search for this extension.
3. Click on the **Install** button.
### How to Use Extension
Right click on a file or folder in the project view and select "Duplicate" from the context menu.
### License
MIT-licensed.
### Compatibility
Tested on Brackets Sprint 34 Mac OSX (Yosemite).
| brackets-duplicate-extension
============================
# File & Folder Duplicating Extension for Brackets
An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New Projector Creator Extension](https://github.com/JeffryBooher/brackets-newproject-extension).
### How to Install
1. Select **File > Extension Manager...**
2. Search for this extension.
3. Click on the **Install** button.
### How to Use Extension
Duplicate - Right click on a file or folder in the project view and select "Duplicate" from the context menu.
Copy or Move - Right click on a file or folder and select "Mark" to mark the file/folder to be copied or moved. Then right click on a file or folder at your desired destination and then select "Move to Here" or "Copy to Here".
### License
MIT-licensed.
### Compatibility
Tested on Brackets Sprint 34 Mac OSX (Yosemite).
### Change Log
v1.1.0 - Added Copy and Move functionality.
v1.0.0 - Initial release with Duplicate functionality.
| Add Copy and Move functionality. | Add Copy and Move functionality. | Markdown | mit | TorinPascal/brackets-duplicate-extension | markdown | ## Code Before:
brackets-duplicate-extension
============================
# File & Folder Duplicating Extension for Brackets
An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New Projector Creator Extension](https://github.com/JeffryBooher/brackets-newproject-extension).
### How to Install
1. Select **File > Extension Manager...**
2. Search for this extension.
3. Click on the **Install** button.
### How to Use Extension
Right click on a file or folder in the project view and select "Duplicate" from the context menu.
### License
MIT-licensed.
### Compatibility
Tested on Brackets Sprint 34 Mac OSX (Yosemite).
## Instruction:
Add Copy and Move functionality.
## Code After:
brackets-duplicate-extension
============================
# File & Folder Duplicating Extension for Brackets
An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New Projector Creator Extension](https://github.com/JeffryBooher/brackets-newproject-extension).
### How to Install
1. Select **File > Extension Manager...**
2. Search for this extension.
3. Click on the **Install** button.
### How to Use Extension
Duplicate - Right click on a file or folder in the project view and select "Duplicate" from the context menu.
Copy or Move - Right click on a file or folder and select "Mark" to mark the file/folder to be copied or moved. Then right click on a file or folder at your desired destination and then select "Move to Here" or "Copy to Here".
### License
MIT-licensed.
### Compatibility
Tested on Brackets Sprint 34 Mac OSX (Yosemite).
### Change Log
v1.1.0 - Added Copy and Move functionality.
v1.0.0 - Initial release with Duplicate functionality.
| brackets-duplicate-extension
============================
# File & Folder Duplicating Extension for Brackets
An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New Projector Creator Extension](https://github.com/JeffryBooher/brackets-newproject-extension).
### How to Install
1. Select **File > Extension Manager...**
2. Search for this extension.
3. Click on the **Install** button.
### How to Use Extension
- Right click on a file or folder in the project view and select "Duplicate" from the context menu.
+ Duplicate - Right click on a file or folder in the project view and select "Duplicate" from the context menu.
? ++++++++++++
+
+ Copy or Move - Right click on a file or folder and select "Mark" to mark the file/folder to be copied or moved. Then right click on a file or folder at your desired destination and then select "Move to Here" or "Copy to Here".
### License
MIT-licensed.
### Compatibility
Tested on Brackets Sprint 34 Mac OSX (Yosemite).
+
+ ### Change Log
+ v1.1.0 - Added Copy and Move functionality.
+
+ v1.0.0 - Initial release with Duplicate functionality. | 9 | 0.473684 | 8 | 1 |
4e745820554f6c51201aa25f720ef446941fb3e0 | components/Tabs.jsx | components/Tabs.jsx | var React = require('react/addons');
var Component = require('../component');
module.exports = Component({
name: 'Tabs',
getDefaultProps() {
return {
type: 'text'
};
},
render() {
var { children, type, ...props } = this.props;
if (type)
this.addStyles(this.styles[type]);
return (
<ul {...props} {...this.componentProps()}>
{React.Children.map(children, (child, i) => {
return React.addons.cloneWithProps(child, {
key: i,
type: type
});
})}
</ul>
);
}
}); | var React = require('react/addons');
var Component = require('../component');
var clone = require('../lib/niceClone');
module.exports = Component({
name: 'Tabs',
getDefaultProps() {
return {
type: 'text'
};
},
render() {
var { children, type, ...props } = this.props;
if (type)
this.addStyles(this.styles[type]);
return (
<ul {...props} {...this.componentProps()}>
{clone(children, (child, i) => ({ key: i, type }))}
</ul>
);
}
}); | Move tabs to use niceClone | Move tabs to use niceClone
| JSX | mit | zenlambda/reapp-ui,Lupino/reapp-ui,zackp30/reapp-ui,srounce/reapp-ui,reapp/reapp-ui,jhopper28/reapp-ui,oToUC/reapp-ui | jsx | ## Code Before:
var React = require('react/addons');
var Component = require('../component');
module.exports = Component({
name: 'Tabs',
getDefaultProps() {
return {
type: 'text'
};
},
render() {
var { children, type, ...props } = this.props;
if (type)
this.addStyles(this.styles[type]);
return (
<ul {...props} {...this.componentProps()}>
{React.Children.map(children, (child, i) => {
return React.addons.cloneWithProps(child, {
key: i,
type: type
});
})}
</ul>
);
}
});
## Instruction:
Move tabs to use niceClone
## Code After:
var React = require('react/addons');
var Component = require('../component');
var clone = require('../lib/niceClone');
module.exports = Component({
name: 'Tabs',
getDefaultProps() {
return {
type: 'text'
};
},
render() {
var { children, type, ...props } = this.props;
if (type)
this.addStyles(this.styles[type]);
return (
<ul {...props} {...this.componentProps()}>
{clone(children, (child, i) => ({ key: i, type }))}
</ul>
);
}
}); | var React = require('react/addons');
var Component = require('../component');
+ var clone = require('../lib/niceClone');
module.exports = Component({
name: 'Tabs',
getDefaultProps() {
return {
type: 'text'
};
},
render() {
var { children, type, ...props } = this.props;
if (type)
this.addStyles(this.styles[type]);
return (
<ul {...props} {...this.componentProps()}>
+ {clone(children, (child, i) => ({ key: i, type }))}
- {React.Children.map(children, (child, i) => {
- return React.addons.cloneWithProps(child, {
- key: i,
- type: type
- });
- })}
</ul>
);
}
}); | 8 | 0.266667 | 2 | 6 |
ee0ccba17589bbfb39dc9a142cc540edbb8dcb5b | packer/scripts/centos/ganeti.sh | packer/scripts/centos/ganeti.sh | yum -y install cloud-init cloud-utils-growpart
chkconfig cloud-init on
# Install denyhosts from our local repo
yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm
chkconfig denyhosts on
sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf
# No timeout for grub menu
sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub
# No fancy boot screen
grep -q rhgb /etc/default/grub && sed -e 's/rhgb //' /etc/default/grub
# Write out the config
grub2-mkconfig -o /boot/grub2/grub.cfg
| yum -y install cloud-init cloud-utils-growpart
chkconfig cloud-init on
if -n "$(grep \'CentOS Linux release 6\' /etc/redhat-release)" ; then
yum -y install denyhosts
else
# Install denyhosts from our local repo
yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm
fi
chkconfig denyhosts on
sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf
# No timeout for grub menu
sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub
# No fancy boot screen
grep -q rhgb /etc/default/grub && sed -e 's/rhgb //' /etc/default/grub
# Write out the config
grub2-mkconfig -o /boot/grub2/grub.cfg
| Add logic for CentOS 6 vs. 7 | Add logic for CentOS 6 vs. 7
| Shell | apache-2.0 | osuosl/bento,osuosl/bento | shell | ## Code Before:
yum -y install cloud-init cloud-utils-growpart
chkconfig cloud-init on
# Install denyhosts from our local repo
yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm
chkconfig denyhosts on
sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf
# No timeout for grub menu
sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub
# No fancy boot screen
grep -q rhgb /etc/default/grub && sed -e 's/rhgb //' /etc/default/grub
# Write out the config
grub2-mkconfig -o /boot/grub2/grub.cfg
## Instruction:
Add logic for CentOS 6 vs. 7
## Code After:
yum -y install cloud-init cloud-utils-growpart
chkconfig cloud-init on
if -n "$(grep \'CentOS Linux release 6\' /etc/redhat-release)" ; then
yum -y install denyhosts
else
# Install denyhosts from our local repo
yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm
fi
chkconfig denyhosts on
sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf
# No timeout for grub menu
sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub
# No fancy boot screen
grep -q rhgb /etc/default/grub && sed -e 's/rhgb //' /etc/default/grub
# Write out the config
grub2-mkconfig -o /boot/grub2/grub.cfg
| yum -y install cloud-init cloud-utils-growpart
chkconfig cloud-init on
+ if -n "$(grep \'CentOS Linux release 6\' /etc/redhat-release)" ; then
+ yum -y install denyhosts
+ else
- # Install denyhosts from our local repo
+ # Install denyhosts from our local repo
? ++
- yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm
+ yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm
? ++
+ fi
chkconfig denyhosts on
sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf
# No timeout for grub menu
sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub
# No fancy boot screen
grep -q rhgb /etc/default/grub && sed -e 's/rhgb //' /etc/default/grub
# Write out the config
grub2-mkconfig -o /boot/grub2/grub.cfg | 8 | 0.571429 | 6 | 2 |
37efc30f1f432011305af1c1e9ac9b2c81f4560e | lib/ruboty/dmm/agent.rb | lib/ruboty/dmm/agent.rb | module Ruboty
module DMM
class Agent
attr_accessor :agent
def initialize
@agent = ::Mechanize.new
@agent.ignore_bad_chunking = true
@agent.request_headers = { 'Accept-Encoding' => '' }
@agent.ignore_bad_chunking = true
end
end
end
end
| module Ruboty
module DMM
class Agent
attr_accessor :agent
def initialize
@agent = ::Mechanize.new
@agent.request_headers = { 'Accept-Encoding' => '' }
@agent.ignore_bad_chunking = true
end
end
end
end
| Remove a duplication of Agent klass | Remove a duplication of Agent klass
| Ruby | mit | sachin21/ruboty-dmm | ruby | ## Code Before:
module Ruboty
module DMM
class Agent
attr_accessor :agent
def initialize
@agent = ::Mechanize.new
@agent.ignore_bad_chunking = true
@agent.request_headers = { 'Accept-Encoding' => '' }
@agent.ignore_bad_chunking = true
end
end
end
end
## Instruction:
Remove a duplication of Agent klass
## Code After:
module Ruboty
module DMM
class Agent
attr_accessor :agent
def initialize
@agent = ::Mechanize.new
@agent.request_headers = { 'Accept-Encoding' => '' }
@agent.ignore_bad_chunking = true
end
end
end
end
| module Ruboty
module DMM
class Agent
attr_accessor :agent
def initialize
@agent = ::Mechanize.new
- @agent.ignore_bad_chunking = true
@agent.request_headers = { 'Accept-Encoding' => '' }
@agent.ignore_bad_chunking = true
end
end
end
end | 1 | 0.071429 | 0 | 1 |
6e5be4f6d7f404afa3b4e5ed8166d75da379a968 | lib/ditty/policies/identity_policy.rb | lib/ditty/policies/identity_policy.rb |
require 'ditty/policies/application_policy'
module Ditty
class IdentityPolicy < ApplicationPolicy
def register?
!['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED']
end
def permitted_attributes
%i[username password password_confirmation]
end
class Scope < ApplicationPolicy::Scope
def resolve
if user.super_admin?
scope.all
else
[]
end
end
end
end
end
|
require 'ditty/policies/application_policy'
module Ditty
class IdentityPolicy < ApplicationPolicy
def register?
!['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED']
end
def permitted_attributes
%i[username password password_confirmation]
end
class Scope < ApplicationPolicy::Scope
def resolve
if user.super_admin?
scope.all
else
scope.where(id: -1)
end
end
end
end
end
| Return empty dataset instead of array | fix: Return empty dataset instead of array
| Ruby | mit | EagerELK/ditty,EagerELK/ditty,EagerELK/ditty | ruby | ## Code Before:
require 'ditty/policies/application_policy'
module Ditty
class IdentityPolicy < ApplicationPolicy
def register?
!['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED']
end
def permitted_attributes
%i[username password password_confirmation]
end
class Scope < ApplicationPolicy::Scope
def resolve
if user.super_admin?
scope.all
else
[]
end
end
end
end
end
## Instruction:
fix: Return empty dataset instead of array
## Code After:
require 'ditty/policies/application_policy'
module Ditty
class IdentityPolicy < ApplicationPolicy
def register?
!['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED']
end
def permitted_attributes
%i[username password password_confirmation]
end
class Scope < ApplicationPolicy::Scope
def resolve
if user.super_admin?
scope.all
else
scope.where(id: -1)
end
end
end
end
end
|
require 'ditty/policies/application_policy'
module Ditty
class IdentityPolicy < ApplicationPolicy
def register?
!['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED']
end
def permitted_attributes
%i[username password password_confirmation]
end
class Scope < ApplicationPolicy::Scope
def resolve
if user.super_admin?
scope.all
else
- []
+ scope.where(id: -1)
end
end
end
end
end | 2 | 0.083333 | 1 | 1 |
4c35c01f7275163b191401f414f7adf9bc662784 | app/views/partials/etablissements-modal.html | app/views/partials/etablissements-modal.html | <div class="benefit-etablissements-modal">
<div>
<button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">×</span></button>
</div>
<div class="text-center">
<h3>{{ title }}</h3>
<p class="text-muted">
Des points d'accueil près de chez vous, où poser toutes vos questions.
</p>
</div>
<hr />
<div ng-repeat="etablissement in etablissements">
<h4>{{ etablissement.nom }}</h4>
<div class="container-fluid">
<etablissement etablissement="etablissement"></etablissement>
</div>
</div>
<hr />
<div class="text-center">
<a href="#" ng-click="closeModal()">Fermer</h3>
</div>
</div>
| <div class="benefit-etablissements-modal">
<div>
<button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">×</span></button>
</div>
<div class="text-center">
<h3><i class="fa fa-home"></i> {{ title }}</h3>
<p class="text-muted">
Des lieux près de chez vous où vous pouvez être accompagné·e pour faire votre demande et poser toutes vos questions
</p>
</div>
<hr />
<div ng-repeat="etablissement in etablissements">
<h4>{{ etablissement.nom }}</h4>
<div class="container-fluid">
<etablissement etablissement="etablissement"></etablissement>
</div>
</div>
<hr />
<div class="text-center">
<a href="#" ng-click="closeModal()">Fermer</h3>
</div>
</div>
| Change le texte, ajoute une icône. | Change le texte, ajoute une icône.
| HTML | agpl-3.0 | sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui | html | ## Code Before:
<div class="benefit-etablissements-modal">
<div>
<button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">×</span></button>
</div>
<div class="text-center">
<h3>{{ title }}</h3>
<p class="text-muted">
Des points d'accueil près de chez vous, où poser toutes vos questions.
</p>
</div>
<hr />
<div ng-repeat="etablissement in etablissements">
<h4>{{ etablissement.nom }}</h4>
<div class="container-fluid">
<etablissement etablissement="etablissement"></etablissement>
</div>
</div>
<hr />
<div class="text-center">
<a href="#" ng-click="closeModal()">Fermer</h3>
</div>
</div>
## Instruction:
Change le texte, ajoute une icône.
## Code After:
<div class="benefit-etablissements-modal">
<div>
<button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">×</span></button>
</div>
<div class="text-center">
<h3><i class="fa fa-home"></i> {{ title }}</h3>
<p class="text-muted">
Des lieux près de chez vous où vous pouvez être accompagné·e pour faire votre demande et poser toutes vos questions
</p>
</div>
<hr />
<div ng-repeat="etablissement in etablissements">
<h4>{{ etablissement.nom }}</h4>
<div class="container-fluid">
<etablissement etablissement="etablissement"></etablissement>
</div>
</div>
<hr />
<div class="text-center">
<a href="#" ng-click="closeModal()">Fermer</h3>
</div>
</div>
| <div class="benefit-etablissements-modal">
<div>
<button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">×</span></button>
</div>
<div class="text-center">
- <h3>{{ title }}</h3>
+ <h3><i class="fa fa-home"></i> {{ title }}</h3>
<p class="text-muted">
- Des points d'accueil près de chez vous, où poser toutes vos questions.
+ Des lieux près de chez vous où vous pouvez être accompagné·e pour faire votre demande et poser toutes vos questions
</p>
</div>
<hr />
<div ng-repeat="etablissement in etablissements">
<h4>{{ etablissement.nom }}</h4>
<div class="container-fluid">
<etablissement etablissement="etablissement"></etablissement>
</div>
</div>
<hr />
<div class="text-center">
<a href="#" ng-click="closeModal()">Fermer</h3>
</div>
</div> | 4 | 0.181818 | 2 | 2 |
5bc4ddb20d9018627f4259414938cb9265c11ffc | example/main/templates/index.html | example/main/templates/index.html | {% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>Django Stick Uploads Example</title>
</head>
<body>
{% if messages %}
{% for message in messages %}
<div class="message {{ messsage.tags }}">{{ message }}</div>
{% endfor %}
{% endif %}
<form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ form }}
<button type="submit">Submit</button>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#id_upload').djangoUploader({
"url": "{% url 'sticky-upload-default' %}"
});
});
</script>
</body>
</html> | {% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>Django Stick Uploads Example</title>
</head>
<body>
{% if messages %}
{% for message in messages %}
<div class="message {{ messsage.tags }}">{{ message }}</div>
{% endfor %}
{% endif %}
<form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ form }}
<button type="submit">Submit</button>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
</body>
</html> | Update example code which no longer needs to do the binding. | Update example code which no longer needs to do the binding.
| HTML | bsd-3-clause | vstoykov/django-sticky-uploads,vstoykov/django-sticky-uploads,caktus/django-sticky-uploads,caktus/django-sticky-uploads,vstoykov/django-sticky-uploads,caktus/django-sticky-uploads | html | ## Code Before:
{% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>Django Stick Uploads Example</title>
</head>
<body>
{% if messages %}
{% for message in messages %}
<div class="message {{ messsage.tags }}">{{ message }}</div>
{% endfor %}
{% endif %}
<form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ form }}
<button type="submit">Submit</button>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#id_upload').djangoUploader({
"url": "{% url 'sticky-upload-default' %}"
});
});
</script>
</body>
</html>
## Instruction:
Update example code which no longer needs to do the binding.
## Code After:
{% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>Django Stick Uploads Example</title>
</head>
<body>
{% if messages %}
{% for message in messages %}
<div class="message {{ messsage.tags }}">{{ message }}</div>
{% endfor %}
{% endif %}
<form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ form }}
<button type="submit">Submit</button>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
</body>
</html> | {% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>Django Stick Uploads Example</title>
</head>
<body>
{% if messages %}
{% for message in messages %}
<div class="message {{ messsage.tags }}">{{ message }}</div>
{% endfor %}
{% endif %}
<form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ form }}
<button type="submit">Submit</button>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- $('#id_upload').djangoUploader({
- "url": "{% url 'sticky-upload-default' %}"
- });
- });
- </script>
</body>
</html> | 7 | 0.25 | 0 | 7 |
7418079606a6e24cb0dccfa148b47c3f736e985f | zou/app/blueprints/persons/resources.py | zou/app/blueprints/persons/resources.py | from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissions()
data = self.get_arguments()
person = persons_service.create_person(
data["email"],
auth.encrypt_password("default"),
data["first_name"],
data["last_name"],
data["phone"]
)
return person, 201
def get_arguments(self):
parser = reqparse.RequestParser()
parser.add_argument(
"email",
help="The email is required.",
required=True
)
parser.add_argument(
"first_name",
help="The first name is required.",
required=True
)
parser.add_argument(
"last_name",
help="The last name is required.",
required=True
)
parser.add_argument("phone", default="")
args = parser.parse_args()
return args
| from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissions()
data = self.get_arguments()
person = persons_service.create_person(
data["email"],
auth.encrypt_password("default"),
data["first_name"],
data["last_name"],
data["phone"],
role=data["role"]
)
return person, 201
def get_arguments(self):
parser = reqparse.RequestParser()
parser.add_argument(
"email",
help="The email is required.",
required=True
)
parser.add_argument(
"first_name",
help="The first name is required.",
required=True
)
parser.add_argument(
"last_name",
help="The last name is required.",
required=True
)
parser.add_argument("phone", default="")
parser.add_argument("role", default="user")
args = parser.parse_args()
return args
| Allow to set role while creating a person | Allow to set role while creating a person
| Python | agpl-3.0 | cgwire/zou | python | ## Code Before:
from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissions()
data = self.get_arguments()
person = persons_service.create_person(
data["email"],
auth.encrypt_password("default"),
data["first_name"],
data["last_name"],
data["phone"]
)
return person, 201
def get_arguments(self):
parser = reqparse.RequestParser()
parser.add_argument(
"email",
help="The email is required.",
required=True
)
parser.add_argument(
"first_name",
help="The first name is required.",
required=True
)
parser.add_argument(
"last_name",
help="The last name is required.",
required=True
)
parser.add_argument("phone", default="")
args = parser.parse_args()
return args
## Instruction:
Allow to set role while creating a person
## Code After:
from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissions()
data = self.get_arguments()
person = persons_service.create_person(
data["email"],
auth.encrypt_password("default"),
data["first_name"],
data["last_name"],
data["phone"],
role=data["role"]
)
return person, 201
def get_arguments(self):
parser = reqparse.RequestParser()
parser.add_argument(
"email",
help="The email is required.",
required=True
)
parser.add_argument(
"first_name",
help="The first name is required.",
required=True
)
parser.add_argument(
"last_name",
help="The last name is required.",
required=True
)
parser.add_argument("phone", default="")
parser.add_argument("role", default="user")
args = parser.parse_args()
return args
| from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissions()
data = self.get_arguments()
person = persons_service.create_person(
data["email"],
auth.encrypt_password("default"),
data["first_name"],
data["last_name"],
- data["phone"]
+ data["phone"],
? +
+ role=data["role"]
)
return person, 201
def get_arguments(self):
parser = reqparse.RequestParser()
parser.add_argument(
"email",
help="The email is required.",
required=True
)
parser.add_argument(
"first_name",
help="The first name is required.",
required=True
)
parser.add_argument(
"last_name",
help="The last name is required.",
required=True
)
parser.add_argument("phone", default="")
+ parser.add_argument("role", default="user")
args = parser.parse_args()
return args | 4 | 0.093023 | 3 | 1 |
503418718f669fcc674719fd862b355605d7b41f | lib/core/settle.js | lib/core/settle.js | 'use strict';
var createError = require('./createError');
/**
* Resolve or reject a Promise based on response status.
*
* @param {Function} resolve A function that resolves the promise.
* @param {Function} reject A function that rejects the promise.
* @param {object} response The response.
*/
module.exports = function settle(resolve, reject, response) {
var validateStatus = response.config.validateStatus;
// Note: status is not exposed by XDomainRequest
if (!response.status || !validateStatus || validateStatus(response.status)) {
resolve(response);
} else {
reject(createError(
'Request failed with status code ' + response.status,
response.config,
null,
response.request,
response
));
}
};
| 'use strict';
var createError = require('./createError');
/**
* Resolve or reject a Promise based on response status.
*
* @param {Function} resolve A function that resolves the promise.
* @param {Function} reject A function that rejects the promise.
* @param {object} response The response.
*/
module.exports = function settle(resolve, reject, response) {
var validateStatus = response.config.validateStatus;
if (!validateStatus || validateStatus(response.status)) {
resolve(response);
} else {
reject(createError(
'Request failed with status code ' + response.status,
response.config,
null,
response.request,
response
));
}
};
| Remove XDomainRequest special status handling | Remove XDomainRequest special status handling
| JavaScript | mit | axios/axios,mzabriskie/axios,axios/axios,mzabriskie/axios,mzabriskie/axios,axios/axios | javascript | ## Code Before:
'use strict';
var createError = require('./createError');
/**
* Resolve or reject a Promise based on response status.
*
* @param {Function} resolve A function that resolves the promise.
* @param {Function} reject A function that rejects the promise.
* @param {object} response The response.
*/
module.exports = function settle(resolve, reject, response) {
var validateStatus = response.config.validateStatus;
// Note: status is not exposed by XDomainRequest
if (!response.status || !validateStatus || validateStatus(response.status)) {
resolve(response);
} else {
reject(createError(
'Request failed with status code ' + response.status,
response.config,
null,
response.request,
response
));
}
};
## Instruction:
Remove XDomainRequest special status handling
## Code After:
'use strict';
var createError = require('./createError');
/**
* Resolve or reject a Promise based on response status.
*
* @param {Function} resolve A function that resolves the promise.
* @param {Function} reject A function that rejects the promise.
* @param {object} response The response.
*/
module.exports = function settle(resolve, reject, response) {
var validateStatus = response.config.validateStatus;
if (!validateStatus || validateStatus(response.status)) {
resolve(response);
} else {
reject(createError(
'Request failed with status code ' + response.status,
response.config,
null,
response.request,
response
));
}
};
| 'use strict';
var createError = require('./createError');
/**
* Resolve or reject a Promise based on response status.
*
* @param {Function} resolve A function that resolves the promise.
* @param {Function} reject A function that rejects the promise.
* @param {object} response The response.
*/
module.exports = function settle(resolve, reject, response) {
var validateStatus = response.config.validateStatus;
- // Note: status is not exposed by XDomainRequest
- if (!response.status || !validateStatus || validateStatus(response.status)) {
? --------------------
+ if (!validateStatus || validateStatus(response.status)) {
resolve(response);
} else {
reject(createError(
'Request failed with status code ' + response.status,
response.config,
null,
response.request,
response
));
}
}; | 3 | 0.115385 | 1 | 2 |
fd4f6298614517a8fb752158685a27cddb6581bf | index.js | index.js | const {app, BrowserWindow, ipcMain} = require('electron');
const aperture = require('../aperture').main;
let win;
function createWindow() {
win = new BrowserWindow({width: 800, height: 600});
win.loadURL(`file://${__dirname}/index.html`);
win.webContents.openDevTools();
win.on('closed', () => {
win = null;
});
ipcMain.on('renderer-ready', (event, arg) => {
console.log(arg);
event.sender.send('start-capturing', Date.now());
});
aperture.init(app, win);
}
app.on('ready', createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
});
| const {app, BrowserWindow, ipcMain} = require('electron');
const aperture = require('../aperture').main;
let win;
function createWindow() {
win = new BrowserWindow({width: 800, height: 600});
win.loadURL(`file://${__dirname}/index.html`);
win.webContents.openDevTools();
win.on('closed', () => {
win = null;
});
ipcMain.on('renderer-ready', (event, arg) => {
console.log(arg);
event.sender.send('start-capturing', Date.now());
});
}
app.on('ready', () => {
aperture.init();
createWindow();
});
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
});
| Call `aperture.main.init()` before the window is created | Call `aperture.main.init()` before the window is created
| JavaScript | mit | wulkano/kap,albinekb/kap,albinekb/kap,albinekb/kap | javascript | ## Code Before:
const {app, BrowserWindow, ipcMain} = require('electron');
const aperture = require('../aperture').main;
let win;
function createWindow() {
win = new BrowserWindow({width: 800, height: 600});
win.loadURL(`file://${__dirname}/index.html`);
win.webContents.openDevTools();
win.on('closed', () => {
win = null;
});
ipcMain.on('renderer-ready', (event, arg) => {
console.log(arg);
event.sender.send('start-capturing', Date.now());
});
aperture.init(app, win);
}
app.on('ready', createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
});
## Instruction:
Call `aperture.main.init()` before the window is created
## Code After:
const {app, BrowserWindow, ipcMain} = require('electron');
const aperture = require('../aperture').main;
let win;
function createWindow() {
win = new BrowserWindow({width: 800, height: 600});
win.loadURL(`file://${__dirname}/index.html`);
win.webContents.openDevTools();
win.on('closed', () => {
win = null;
});
ipcMain.on('renderer-ready', (event, arg) => {
console.log(arg);
event.sender.send('start-capturing', Date.now());
});
}
app.on('ready', () => {
aperture.init();
createWindow();
});
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
});
| const {app, BrowserWindow, ipcMain} = require('electron');
const aperture = require('../aperture').main;
let win;
function createWindow() {
win = new BrowserWindow({width: 800, height: 600});
win.loadURL(`file://${__dirname}/index.html`);
win.webContents.openDevTools();
win.on('closed', () => {
win = null;
});
ipcMain.on('renderer-ready', (event, arg) => {
console.log(arg);
event.sender.send('start-capturing', Date.now());
});
-
- aperture.init(app, win);
}
- app.on('ready', createWindow);
+ app.on('ready', () => {
+ aperture.init();
+ createWindow();
+ });
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
}); | 7 | 0.189189 | 4 | 3 |
a4aba2d42890ed30e62cd856ed99a04bb776b677 | client/src/js/account/components/API/Permissions.js | client/src/js/account/components/API/Permissions.js | import React from "react";
import PropTypes from "prop-types";
import { map, sortBy } from "lodash-es";
import { ListGroup, Panel } from "react-bootstrap";
import { Icon, ListGroupItem } from "../../../base/index";
export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) {
const permissions = map(keyPermissions, (value, key) => ({name: key, allowed: value}));
const rowComponents = map(sortBy(permissions, "name"), permission => {
const disabled = !userPermissions[permission.name];
return (
<ListGroupItem
key={permission.name}
onClick={disabled ? null : () => onChange(permission.name, !permission.allowed)}
disabled={disabled}
>
<code>{permission.name}</code>
<Icon name={`checkbox-${permission.allowed ? "checked" : "unchecked"}`} pullRight />
</ListGroupItem>
);
});
return (
<Panel style={style}>
<Panel.Body>
<ListGroup>
{rowComponents}
</ListGroup>
</Panel.Body>
</Panel>
);
}
APIPermissions.propTypes = {
userPermissions: PropTypes.object.isRequired,
keyPermissions: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
style: PropTypes.object
};
| import React from "react";
import PropTypes from "prop-types";
import { map, sortBy } from "lodash-es";
import { ListGroup, Panel } from "react-bootstrap";
import { ListGroupItem, Checkbox } from "../../../base/index";
export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) {
const permissions = map(keyPermissions, (value, key) => ({name: key, allowed: value}));
const rowComponents = map(sortBy(permissions, "name"), permission => {
const disabled = !userPermissions[permission.name];
return (
<ListGroupItem
key={permission.name}
onClick={disabled ? null : () => onChange(permission.name, !permission.allowed)}
disabled={disabled}
>
<code>{permission.name}</code>
<Checkbox
checked={permission.allowed}
pullRight
/>
</ListGroupItem>
);
});
return (
<Panel style={style}>
<Panel.Body>
<ListGroup>
{rowComponents}
</ListGroup>
</Panel.Body>
</Panel>
);
}
APIPermissions.propTypes = {
userPermissions: PropTypes.object.isRequired,
keyPermissions: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
style: PropTypes.object
};
| Add checkbox to API permissions | Add checkbox to API permissions
| JavaScript | mit | igboyes/virtool,igboyes/virtool,virtool/virtool,virtool/virtool | javascript | ## Code Before:
import React from "react";
import PropTypes from "prop-types";
import { map, sortBy } from "lodash-es";
import { ListGroup, Panel } from "react-bootstrap";
import { Icon, ListGroupItem } from "../../../base/index";
export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) {
const permissions = map(keyPermissions, (value, key) => ({name: key, allowed: value}));
const rowComponents = map(sortBy(permissions, "name"), permission => {
const disabled = !userPermissions[permission.name];
return (
<ListGroupItem
key={permission.name}
onClick={disabled ? null : () => onChange(permission.name, !permission.allowed)}
disabled={disabled}
>
<code>{permission.name}</code>
<Icon name={`checkbox-${permission.allowed ? "checked" : "unchecked"}`} pullRight />
</ListGroupItem>
);
});
return (
<Panel style={style}>
<Panel.Body>
<ListGroup>
{rowComponents}
</ListGroup>
</Panel.Body>
</Panel>
);
}
APIPermissions.propTypes = {
userPermissions: PropTypes.object.isRequired,
keyPermissions: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
style: PropTypes.object
};
## Instruction:
Add checkbox to API permissions
## Code After:
import React from "react";
import PropTypes from "prop-types";
import { map, sortBy } from "lodash-es";
import { ListGroup, Panel } from "react-bootstrap";
import { ListGroupItem, Checkbox } from "../../../base/index";
export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) {
const permissions = map(keyPermissions, (value, key) => ({name: key, allowed: value}));
const rowComponents = map(sortBy(permissions, "name"), permission => {
const disabled = !userPermissions[permission.name];
return (
<ListGroupItem
key={permission.name}
onClick={disabled ? null : () => onChange(permission.name, !permission.allowed)}
disabled={disabled}
>
<code>{permission.name}</code>
<Checkbox
checked={permission.allowed}
pullRight
/>
</ListGroupItem>
);
});
return (
<Panel style={style}>
<Panel.Body>
<ListGroup>
{rowComponents}
</ListGroup>
</Panel.Body>
</Panel>
);
}
APIPermissions.propTypes = {
userPermissions: PropTypes.object.isRequired,
keyPermissions: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
style: PropTypes.object
};
| import React from "react";
import PropTypes from "prop-types";
import { map, sortBy } from "lodash-es";
import { ListGroup, Panel } from "react-bootstrap";
- import { Icon, ListGroupItem } from "../../../base/index";
? ------
+ import { ListGroupItem, Checkbox } from "../../../base/index";
? ++++++++++
export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) {
const permissions = map(keyPermissions, (value, key) => ({name: key, allowed: value}));
const rowComponents = map(sortBy(permissions, "name"), permission => {
const disabled = !userPermissions[permission.name];
return (
<ListGroupItem
key={permission.name}
onClick={disabled ? null : () => onChange(permission.name, !permission.allowed)}
disabled={disabled}
>
<code>{permission.name}</code>
- <Icon name={`checkbox-${permission.allowed ? "checked" : "unchecked"}`} pullRight />
+ <Checkbox
+ checked={permission.allowed}
+ pullRight
+ />
</ListGroupItem>
);
});
return (
<Panel style={style}>
<Panel.Body>
<ListGroup>
{rowComponents}
</ListGroup>
</Panel.Body>
</Panel>
);
}
APIPermissions.propTypes = {
userPermissions: PropTypes.object.isRequired,
keyPermissions: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
style: PropTypes.object
}; | 7 | 0.162791 | 5 | 2 |
f02ce3a2e94bc40cde87a39ba5b133599d729f9c | mpltools/widgets/__init__.py | mpltools/widgets/__init__.py | import matplotlib.widgets as mwidgets
if not hasattr(mwidgets, 'AxesWidget'):
branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
raise ImportError(msg)
from .rectangle_selector import RectangleSelector
from .slider import Slider
__all__ = ['RectangleSelector', 'Slider']
| import matplotlib.widgets as mwidgets
if not hasattr(mwidgets, 'AxesWidget'):
version = "(github master; after March 16, 2012)"
msg = "mpltools.widgets requires recent version of Matplotlib %s" % version
raise ImportError(msg)
from .rectangle_selector import RectangleSelector
from .slider import Slider
__all__ = ['RectangleSelector', 'Slider']
| Update MPL version requirement for `widgets`. | Update MPL version requirement for `widgets`.
| Python | bsd-3-clause | tonysyu/mpltools,matteoicardi/mpltools | python | ## Code Before:
import matplotlib.widgets as mwidgets
if not hasattr(mwidgets, 'AxesWidget'):
branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
raise ImportError(msg)
from .rectangle_selector import RectangleSelector
from .slider import Slider
__all__ = ['RectangleSelector', 'Slider']
## Instruction:
Update MPL version requirement for `widgets`.
## Code After:
import matplotlib.widgets as mwidgets
if not hasattr(mwidgets, 'AxesWidget'):
version = "(github master; after March 16, 2012)"
msg = "mpltools.widgets requires recent version of Matplotlib %s" % version
raise ImportError(msg)
from .rectangle_selector import RectangleSelector
from .slider import Slider
__all__ = ['RectangleSelector', 'Slider']
| import matplotlib.widgets as mwidgets
if not hasattr(mwidgets, 'AxesWidget'):
- branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
+ version = "(github master; after March 16, 2012)"
- msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
? ^ ^ ^ -- - ^ ^ --
+ msg = "mpltools.widgets requires recent version of Matplotlib %s" % version
? ^^^^^^ ^^ ^^^ ^^ ^^^
raise ImportError(msg)
from .rectangle_selector import RectangleSelector
from .slider import Slider
__all__ = ['RectangleSelector', 'Slider']
| 4 | 0.285714 | 2 | 2 |
e75ba8901cb97d23014b2b00ff76f863c75628dd | src/AppBundle/Resources/views/Homepage/index.html.twig | src/AppBundle/Resources/views/Homepage/index.html.twig | {% extends 'AppBundle::base.html.twig' %}
{% block body %}
{% include 'AppBundle::menu.html.twig' %}
<div class="container">
<div class="jumbotron">
<h2>Hello world!</h2>
</div>
{{ dump(app.user) }}
</div>
{% endblock %}
| {% extends 'AppBundle::base.html.twig' %}
{% block body %}
{% include 'AppBundle::menu.html.twig' %}
<div class="container">
<div class="jumbotron">
<h2>Hello world!</h2>
</div>
Bonjoure {{ app.user.firstName }} {{ app.user.lastName }}
</div>
{% endblock %}
| Remove dump in prod en | Remove dump in prod en
| Twig | mit | sghribi/garopi,sghribi/garopi,sghribi/garopi,sghribi/garopi | twig | ## Code Before:
{% extends 'AppBundle::base.html.twig' %}
{% block body %}
{% include 'AppBundle::menu.html.twig' %}
<div class="container">
<div class="jumbotron">
<h2>Hello world!</h2>
</div>
{{ dump(app.user) }}
</div>
{% endblock %}
## Instruction:
Remove dump in prod en
## Code After:
{% extends 'AppBundle::base.html.twig' %}
{% block body %}
{% include 'AppBundle::menu.html.twig' %}
<div class="container">
<div class="jumbotron">
<h2>Hello world!</h2>
</div>
Bonjoure {{ app.user.firstName }} {{ app.user.lastName }}
</div>
{% endblock %}
| {% extends 'AppBundle::base.html.twig' %}
{% block body %}
{% include 'AppBundle::menu.html.twig' %}
<div class="container">
<div class="jumbotron">
<h2>Hello world!</h2>
</div>
- {{ dump(app.user) }}
+ Bonjoure {{ app.user.firstName }} {{ app.user.lastName }}
</div>
{% endblock %} | 2 | 0.133333 | 1 | 1 |
d4517e235a4bc439f6e024f8a9a95b4103627cf4 | js/models/circuit-element.js | js/models/circuit-element.js | (function(app) {
'use strict';
var circuit = require('circuit');
var Wrapper = function(self) {
this.unwrap = Wrapper.unwrap.bind(self);
};
Wrapper.unwrap = function(key) {
if (key === Wrapper.KEY)
return this;
};
Wrapper.KEY = {};
var CircuitElementMember = function(props) {
this.label = props.label;
this.name = props.name;
this.type = props.type;
this.callee = circuit[props.type](props.arg);
this.sources = [];
this.targets = [];
this.wrapper = new Wrapper(this);
};
var CircuitElement = function(members) {
var memberTable = {};
var names = [];
members.slice().reverse().forEach(function(props) {
var name = props.name;
if (name in memberTable)
return;
memberTable[name] = new CircuitElementMember(props);
names.unshift(name);
});
this.memberTable = memberTable;
this.names = names;
};
CircuitElement.prototype.get = function(name) {
var member = this.memberTable[name];
if (!member)
return null;
return member.wrapper;
};
if (typeof module !== 'undefined' && module.exports)
module.exports = CircuitElement;
else
app.CircuitElement = CircuitElement;
})(this.app || (this.app = {}));
| (function(app) {
'use strict';
var circuit = require('circuit');
var Wrapper = function(self) {
this.unwrap = Wrapper.unwrap.bind(self);
};
Wrapper.unwrap = function(key) {
if (key === Wrapper.KEY)
return this;
};
Wrapper.KEY = {};
var CircuitElementMember = function(props) {
this.label = props.label;
this.name = props.name;
this.type = props.type;
this.callee = circuit[props.type](props.arg);
this.sources = [];
this.targets = [];
this.wrapper = new Wrapper(this);
};
var CircuitElement = function(members) {
var memberTable = {};
var names = [];
members.slice().reverse().forEach(function(props) {
var name = props.name;
if (name in memberTable)
return;
memberTable[name] = new CircuitElementMember(props);
names.unshift(name);
});
this.memberTable = memberTable;
this.names = names;
};
CircuitElement.prototype.get = function(name) {
var member = this.memberTable[name];
if (!member)
return null;
return member.wrapper;
};
CircuitElement.empty = function() {
return new CircuitElement([]);
};
if (typeof module !== 'undefined' && module.exports)
module.exports = CircuitElement;
else
app.CircuitElement = CircuitElement;
})(this.app || (this.app = {}));
| Make method to create an empty 'circuit element' | Make method to create an empty 'circuit element'
| JavaScript | mit | ionstage/modular,ionstage/modular | javascript | ## Code Before:
(function(app) {
'use strict';
var circuit = require('circuit');
var Wrapper = function(self) {
this.unwrap = Wrapper.unwrap.bind(self);
};
Wrapper.unwrap = function(key) {
if (key === Wrapper.KEY)
return this;
};
Wrapper.KEY = {};
var CircuitElementMember = function(props) {
this.label = props.label;
this.name = props.name;
this.type = props.type;
this.callee = circuit[props.type](props.arg);
this.sources = [];
this.targets = [];
this.wrapper = new Wrapper(this);
};
var CircuitElement = function(members) {
var memberTable = {};
var names = [];
members.slice().reverse().forEach(function(props) {
var name = props.name;
if (name in memberTable)
return;
memberTable[name] = new CircuitElementMember(props);
names.unshift(name);
});
this.memberTable = memberTable;
this.names = names;
};
CircuitElement.prototype.get = function(name) {
var member = this.memberTable[name];
if (!member)
return null;
return member.wrapper;
};
if (typeof module !== 'undefined' && module.exports)
module.exports = CircuitElement;
else
app.CircuitElement = CircuitElement;
})(this.app || (this.app = {}));
## Instruction:
Make method to create an empty 'circuit element'
## Code After:
(function(app) {
'use strict';
var circuit = require('circuit');
var Wrapper = function(self) {
this.unwrap = Wrapper.unwrap.bind(self);
};
Wrapper.unwrap = function(key) {
if (key === Wrapper.KEY)
return this;
};
Wrapper.KEY = {};
var CircuitElementMember = function(props) {
this.label = props.label;
this.name = props.name;
this.type = props.type;
this.callee = circuit[props.type](props.arg);
this.sources = [];
this.targets = [];
this.wrapper = new Wrapper(this);
};
var CircuitElement = function(members) {
var memberTable = {};
var names = [];
members.slice().reverse().forEach(function(props) {
var name = props.name;
if (name in memberTable)
return;
memberTable[name] = new CircuitElementMember(props);
names.unshift(name);
});
this.memberTable = memberTable;
this.names = names;
};
CircuitElement.prototype.get = function(name) {
var member = this.memberTable[name];
if (!member)
return null;
return member.wrapper;
};
CircuitElement.empty = function() {
return new CircuitElement([]);
};
if (typeof module !== 'undefined' && module.exports)
module.exports = CircuitElement;
else
app.CircuitElement = CircuitElement;
})(this.app || (this.app = {}));
| (function(app) {
'use strict';
var circuit = require('circuit');
var Wrapper = function(self) {
this.unwrap = Wrapper.unwrap.bind(self);
};
Wrapper.unwrap = function(key) {
if (key === Wrapper.KEY)
return this;
};
Wrapper.KEY = {};
var CircuitElementMember = function(props) {
this.label = props.label;
this.name = props.name;
this.type = props.type;
this.callee = circuit[props.type](props.arg);
this.sources = [];
this.targets = [];
this.wrapper = new Wrapper(this);
};
var CircuitElement = function(members) {
var memberTable = {};
var names = [];
members.slice().reverse().forEach(function(props) {
var name = props.name;
if (name in memberTable)
return;
memberTable[name] = new CircuitElementMember(props);
names.unshift(name);
});
this.memberTable = memberTable;
this.names = names;
};
CircuitElement.prototype.get = function(name) {
var member = this.memberTable[name];
if (!member)
return null;
return member.wrapper;
};
+ CircuitElement.empty = function() {
+ return new CircuitElement([]);
+ };
+
if (typeof module !== 'undefined' && module.exports)
module.exports = CircuitElement;
else
app.CircuitElement = CircuitElement;
})(this.app || (this.app = {})); | 4 | 0.068966 | 4 | 0 |
1f5e24eb6fbe5868439b78dfdd5418ecb09ca402 | .gitlab-ci.yml | .gitlab-ci.yml | image: node:4.2.6
all_tests:
script:
- npm install
- grunt test
| test:
image: node:4.2.6
before_script:
- npm install
- npm install -g grunt-cli
script:
- grunt test
cache:
paths:
- node_modules
| Fix GitLab CI when using Docker executor | project: Fix GitLab CI when using Docker executor
| YAML | mit | fetzerch/grafana-sunandmoon-datasource,fetzerch/grafana-sunandmoon-datasource | yaml | ## Code Before:
image: node:4.2.6
all_tests:
script:
- npm install
- grunt test
## Instruction:
project: Fix GitLab CI when using Docker executor
## Code After:
test:
image: node:4.2.6
before_script:
- npm install
- npm install -g grunt-cli
script:
- grunt test
cache:
paths:
- node_modules
| + test:
- image: node:4.2.6
+ image: node:4.2.6
? ++
-
- all_tests:
+ before_script:
+ - npm install
+ - npm install -g grunt-cli
script:
- - npm install
- grunt test
+ cache:
+ paths:
+ - node_modules | 12 | 2 | 8 | 4 |
942616d86e596a9ca42d70297c1f7819f043f1c7 | metadata/com.workingagenda.devinettes.txt | metadata/com.workingagenda.devinettes.txt | AntiFeatures:NonFreeAssets
Categories:Games
License:GPL-3.0
Web Site:http://devinettes.workingagenda.com
Source Code:https://github.com/polypmer/devinettes-android
Issue Tracker:https://github.com/polypmer/devinettes-android/issues
Auto Name:Devinettes
Summary:A collection of riddles in verse
Description:
A collection of original English riddles in verse. Be warned: There are no hints
and no keys under the mat The riddles are licensed under CC-BY-NC-ND.
.
Repo Type:git
Repo:https://github.com/polypmer/devinettes-android
Build:1.0,1
commit=e4ad029adad8a2cd9a056f5beefd2410d73e438e
subdir=app
gradle=yes
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.1
Current Version Code:2
| AntiFeatures:NonFreeAssets
Categories:Games
License:GPL-3.0
Web Site:http://devinettes.workingagenda.com
Source Code:https://github.com/polypmer/devinettes-android
Issue Tracker:https://github.com/polypmer/devinettes-android/issues
Auto Name:Devinettes
Summary:A collection of riddles in verse
Description:
A collection of original English riddles in verse. Be warned: There are no hints
and no keys under the mat The riddles are licensed under CC-BY-NC-ND.
.
Repo Type:git
Repo:https://github.com/polypmer/devinettes-android
Build:1.0,1
commit=e4ad029adad8a2cd9a056f5beefd2410d73e438e
subdir=app
gradle=yes
Build:1.1,2
commit=b22f53c5b63a617876496649c8b85cfbcf911576
subdir=app
gradle=yes
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.1
Current Version Code:2
| Update Devinettes to 1.1 (2) | Update Devinettes to 1.1 (2)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
AntiFeatures:NonFreeAssets
Categories:Games
License:GPL-3.0
Web Site:http://devinettes.workingagenda.com
Source Code:https://github.com/polypmer/devinettes-android
Issue Tracker:https://github.com/polypmer/devinettes-android/issues
Auto Name:Devinettes
Summary:A collection of riddles in verse
Description:
A collection of original English riddles in verse. Be warned: There are no hints
and no keys under the mat The riddles are licensed under CC-BY-NC-ND.
.
Repo Type:git
Repo:https://github.com/polypmer/devinettes-android
Build:1.0,1
commit=e4ad029adad8a2cd9a056f5beefd2410d73e438e
subdir=app
gradle=yes
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.1
Current Version Code:2
## Instruction:
Update Devinettes to 1.1 (2)
## Code After:
AntiFeatures:NonFreeAssets
Categories:Games
License:GPL-3.0
Web Site:http://devinettes.workingagenda.com
Source Code:https://github.com/polypmer/devinettes-android
Issue Tracker:https://github.com/polypmer/devinettes-android/issues
Auto Name:Devinettes
Summary:A collection of riddles in verse
Description:
A collection of original English riddles in verse. Be warned: There are no hints
and no keys under the mat The riddles are licensed under CC-BY-NC-ND.
.
Repo Type:git
Repo:https://github.com/polypmer/devinettes-android
Build:1.0,1
commit=e4ad029adad8a2cd9a056f5beefd2410d73e438e
subdir=app
gradle=yes
Build:1.1,2
commit=b22f53c5b63a617876496649c8b85cfbcf911576
subdir=app
gradle=yes
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.1
Current Version Code:2
| AntiFeatures:NonFreeAssets
Categories:Games
License:GPL-3.0
Web Site:http://devinettes.workingagenda.com
Source Code:https://github.com/polypmer/devinettes-android
Issue Tracker:https://github.com/polypmer/devinettes-android/issues
Auto Name:Devinettes
Summary:A collection of riddles in verse
Description:
A collection of original English riddles in verse. Be warned: There are no hints
and no keys under the mat The riddles are licensed under CC-BY-NC-ND.
.
Repo Type:git
Repo:https://github.com/polypmer/devinettes-android
Build:1.0,1
commit=e4ad029adad8a2cd9a056f5beefd2410d73e438e
subdir=app
gradle=yes
+ Build:1.1,2
+ commit=b22f53c5b63a617876496649c8b85cfbcf911576
+ subdir=app
+ gradle=yes
+
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.1
Current Version Code:2 | 5 | 0.192308 | 5 | 0 |
e7644c79f6a9d03845d77e7c883b0887a52bc46c | app/models/friendship.rb | app/models/friendship.rb | class Friendship < ApplicationRecord
belongs_to :person
belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id'
belongs_to :site
scope_by_site_id
validates :person, presence: true
validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) }
attr_accessor :skip_mirror
before_create :mirror_friendship
def mirror_friendship
unless skip_mirror
mirror = Friendship.new(person_id: friend_id)
mirror.friend_id = person_id
mirror.skip_mirror = true
mirror.save!
end
end
def destroy
Friendship.delete_all ['(friend_id = ? and person_id = ?) or (friend_id = ? and person_id = ?)', person.id, friend.id, friend.id, person.id]
end
end
| class Friendship < ApplicationRecord
belongs_to :person
belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id'
belongs_to :site
scope_by_site_id
validates :person, presence: true
validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) }
attr_accessor :skip_mirror
before_create :mirror_friendship
def mirror_friendship
unless skip_mirror
mirror = Friendship.new(person_id: friend_id)
mirror.friend_id = person_id
mirror.skip_mirror = true
mirror.save!
end
end
def destroy
Friendship.where(
'(friend_id = ? and person_id = ?) or (friend_id = ? and person_id = ?)',
person.id,
friend.id,
friend.id,
person.id
).delete_all
end
end
| Update delete_all usage to fix deprecation | Update delete_all usage to fix deprecation
| Ruby | agpl-3.0 | mattraykowski/onebody,hschin/onebody,fadiwissa/onebody,mattraykowski/onebody,fadiwissa/onebody,fadiwissa/onebody,mattraykowski/onebody,fadiwissa/onebody,hschin/onebody,hschin/onebody,mattraykowski/onebody,hschin/onebody | ruby | ## Code Before:
class Friendship < ApplicationRecord
belongs_to :person
belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id'
belongs_to :site
scope_by_site_id
validates :person, presence: true
validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) }
attr_accessor :skip_mirror
before_create :mirror_friendship
def mirror_friendship
unless skip_mirror
mirror = Friendship.new(person_id: friend_id)
mirror.friend_id = person_id
mirror.skip_mirror = true
mirror.save!
end
end
def destroy
Friendship.delete_all ['(friend_id = ? and person_id = ?) or (friend_id = ? and person_id = ?)', person.id, friend.id, friend.id, person.id]
end
end
## Instruction:
Update delete_all usage to fix deprecation
## Code After:
class Friendship < ApplicationRecord
belongs_to :person
belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id'
belongs_to :site
scope_by_site_id
validates :person, presence: true
validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) }
attr_accessor :skip_mirror
before_create :mirror_friendship
def mirror_friendship
unless skip_mirror
mirror = Friendship.new(person_id: friend_id)
mirror.friend_id = person_id
mirror.skip_mirror = true
mirror.save!
end
end
def destroy
Friendship.where(
'(friend_id = ? and person_id = ?) or (friend_id = ? and person_id = ?)',
person.id,
friend.id,
friend.id,
person.id
).delete_all
end
end
| class Friendship < ApplicationRecord
belongs_to :person
belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id'
belongs_to :site
scope_by_site_id
validates :person, presence: true
validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) }
attr_accessor :skip_mirror
before_create :mirror_friendship
def mirror_friendship
unless skip_mirror
mirror = Friendship.new(person_id: friend_id)
mirror.friend_id = person_id
mirror.skip_mirror = true
mirror.save!
end
end
def destroy
- Friendship.delete_all ['(friend_id = ? and person_id = ?) or (friend_id = ? and person_id = ?)', person.id, friend.id, friend.id, person.id]
+ Friendship.where(
+ '(friend_id = ? and person_id = ?) or (friend_id = ? and person_id = ?)',
+ person.id,
+ friend.id,
+ friend.id,
+ person.id
+ ).delete_all
end
end | 8 | 0.307692 | 7 | 1 |
7991b9480f2c975420f9786db509d32bc1e54110 | nuxt.config.js | nuxt.config.js | module.exports = {
/*
** Headers of the page
*/
head: {
title: 'CSS Frameworks',
titleTemplate: '%s - CSS Frameworks',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Compare CSS frameworks.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Lato' }
]
},
css: [{
src: '~assets/css/main.scss',
lang: 'scss'
}],
/*
** Customize the progress-bar color
*/
loading: { color: '#685143' },
/*
** Build configurationwebpack
*/
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
},
vendor: [
'~/assets/js/shared.js'
]
}
}
| const path = require('path')
const dataPath = path.join(__dirname, process.env.repoDataPath || 'data.json')
const frameworks = require(dataPath)
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'CSS Frameworks',
titleTemplate: '%s - CSS Frameworks',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Compare CSS frameworks.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Lato' }
]
},
css: [{
src: '~assets/css/main.scss',
lang: 'scss'
}],
/*
** Customize the progress-bar color
*/
loading: { color: '#685143' },
/*
** Build configurationwebpack
*/
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
env: {
frameworks
}
}
| Change the way to load json | Change the way to load json
| JavaScript | mit | sunya9/css-frameworks,sunya9/css-frameworks | javascript | ## Code Before:
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'CSS Frameworks',
titleTemplate: '%s - CSS Frameworks',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Compare CSS frameworks.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Lato' }
]
},
css: [{
src: '~assets/css/main.scss',
lang: 'scss'
}],
/*
** Customize the progress-bar color
*/
loading: { color: '#685143' },
/*
** Build configurationwebpack
*/
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
},
vendor: [
'~/assets/js/shared.js'
]
}
}
## Instruction:
Change the way to load json
## Code After:
const path = require('path')
const dataPath = path.join(__dirname, process.env.repoDataPath || 'data.json')
const frameworks = require(dataPath)
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'CSS Frameworks',
titleTemplate: '%s - CSS Frameworks',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Compare CSS frameworks.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Lato' }
]
},
css: [{
src: '~assets/css/main.scss',
lang: 'scss'
}],
/*
** Customize the progress-bar color
*/
loading: { color: '#685143' },
/*
** Build configurationwebpack
*/
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
env: {
frameworks
}
}
| + const path = require('path')
+
+ const dataPath = path.join(__dirname, process.env.repoDataPath || 'data.json')
+ const frameworks = require(dataPath)
+
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'CSS Frameworks',
titleTemplate: '%s - CSS Frameworks',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Compare CSS frameworks.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Lato' }
]
},
css: [{
src: '~assets/css/main.scss',
lang: 'scss'
}],
/*
** Customize the progress-bar color
*/
loading: { color: '#685143' },
/*
** Build configurationwebpack
*/
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
- },
? -
+ }
- vendor: [
- '~/assets/js/shared.js'
- ]
+ },
+ env: {
+ frameworks
}
} | 13 | 0.276596 | 9 | 4 |
f8714c7acf0ea10576bfb408a01ac0fddd9c2ff9 | specs/smoke.spec.coffee | specs/smoke.spec.coffee | require('./spec_helper')
spy = require('through2-spy')
describe 'smoke test', ->
createFS = require('../index')
coffee = require('gulp-coffee')
it 'should mock gulp', (done) ->
fs = createFS
src:
coffee:
'sample.coffee': """
console.log 'Hello world'
"""
'another.coffee': """
fib = (n) ->
switch n
when 0, 1
1
else
fib(n) + fib(n-1)
"""
fs.createReadStream 'src/coffee'
.pipe coffee
bare: true
.pipe fs.createWriteStream('dest/js', true)
.onFinished done, (folder) ->
console.log fs.directory # Display whole tree of files
folder.should.equal fs.openFolder('dest/js')
folder['sample.js'].should.not.be.null
folder['another.js'].should.not.be.null
| require('./spec_helper')
spy = require('through2-spy')
describe 'smoke test', ->
createFS = require('../index')
coffee = require('gulp-coffee')
it 'should mock gulp', (done) ->
fs = createFS
src:
coffee:
'sample.coffee': """
console.log 'Hello world'
"""
'another.coffee': """
fib = (n) ->
switch n
when 0, 1
1
else
fib(n) + fib(n-1)
"""
fs.src 'src/coffee/*.coffee'
.pipe coffee
bare: true
.pipe fs.dest 'dest/js'
.onFinished done, (folder) ->
# console.log fs.directory # Display whole tree of files
folder.should.equal fs.openFolder('dest/js')
folder['sample.js'].should.not.be.null
folder['another.js'].should.not.be.null
| Update smoke test with latest API | Update smoke test with latest API
| CoffeeScript | mit | gonzoRay/vinyl-fs-mock,timnew/vinyl-fs-mock | coffeescript | ## Code Before:
require('./spec_helper')
spy = require('through2-spy')
describe 'smoke test', ->
createFS = require('../index')
coffee = require('gulp-coffee')
it 'should mock gulp', (done) ->
fs = createFS
src:
coffee:
'sample.coffee': """
console.log 'Hello world'
"""
'another.coffee': """
fib = (n) ->
switch n
when 0, 1
1
else
fib(n) + fib(n-1)
"""
fs.createReadStream 'src/coffee'
.pipe coffee
bare: true
.pipe fs.createWriteStream('dest/js', true)
.onFinished done, (folder) ->
console.log fs.directory # Display whole tree of files
folder.should.equal fs.openFolder('dest/js')
folder['sample.js'].should.not.be.null
folder['another.js'].should.not.be.null
## Instruction:
Update smoke test with latest API
## Code After:
require('./spec_helper')
spy = require('through2-spy')
describe 'smoke test', ->
createFS = require('../index')
coffee = require('gulp-coffee')
it 'should mock gulp', (done) ->
fs = createFS
src:
coffee:
'sample.coffee': """
console.log 'Hello world'
"""
'another.coffee': """
fib = (n) ->
switch n
when 0, 1
1
else
fib(n) + fib(n-1)
"""
fs.src 'src/coffee/*.coffee'
.pipe coffee
bare: true
.pipe fs.dest 'dest/js'
.onFinished done, (folder) ->
# console.log fs.directory # Display whole tree of files
folder.should.equal fs.openFolder('dest/js')
folder['sample.js'].should.not.be.null
folder['another.js'].should.not.be.null
| require('./spec_helper')
spy = require('through2-spy')
describe 'smoke test', ->
createFS = require('../index')
coffee = require('gulp-coffee')
it 'should mock gulp', (done) ->
fs = createFS
src:
coffee:
'sample.coffee': """
console.log 'Hello world'
"""
'another.coffee': """
fib = (n) ->
switch n
when 0, 1
1
else
fib(n) + fib(n-1)
"""
- fs.createReadStream 'src/coffee'
+ fs.src 'src/coffee/*.coffee'
.pipe coffee
bare: true
- .pipe fs.createWriteStream('dest/js', true)
+ .pipe fs.dest 'dest/js'
.onFinished done, (folder) ->
- console.log fs.directory # Display whole tree of files
+ # console.log fs.directory # Display whole tree of files
? ++
folder.should.equal fs.openFolder('dest/js')
folder['sample.js'].should.not.be.null
folder['another.js'].should.not.be.null
| 6 | 0.181818 | 3 | 3 |
7093f257d5a6fdf553925f22311294738bff17e7 | lib/string_foundation/case.rb | lib/string_foundation/case.rb | class String
# Convert to lowerCamelCase.
def to_lcamel
end
# Convert to UpperCamelCase.
def to_ucamel
end
# Convert to lower_snake_case.
def to_lsnake
end
# Convert to Upper_Snake_Case.
def to_usnake
end
# Convert to lower-kebab-case.
def to_lkebab
end
# Convert to Upper-Kebab-Case.
def to_ukebab
end
# Convert to lower space case.
def to_lspace
end
# Convert to Upper Space Case.
def to_uspace
end
# Convert to lower.dot.case.
def to_ldot
end
# Convert to Upper.Dot.Case.
def to_udot
end
end
| class String
# Convert to lowerCamelCase.
def to_lcamel
ucamel = self.to_ucamel
ucamel[0].downcase + ucamel[1..-1]
end
# Convert to UpperCamelCase.
def to_ucamel
if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ')
str = self
str.split('_').map do |uw|
uw.split('-').map do |hw|
hw.split('.').map do |dw|
dw.split(' ').map do |sw|
sw.capitalize
end.join
end.join
end.join
end.join
else
self[0].upcase + self[1..-1]
end
end
# Convert to lower_snake_case.
def to_lsnake
end
# Convert to Upper_Snake_Case.
def to_usnake
if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ')
str = self
str.split('_').map do |uw|
uw.split('-').map do |hw|
hw.split('.').map do |dw|
dw.split(' ').map do |sw|
sw.capitalize
end.join('_')
end.join('_')
end.join('_')
end.join('_')
else
self[0].upcase + self[1..-1]
end
end
# Convert to lower-kebab-case.
def to_lkebab
end
# Convert to Upper-Kebab-Case.
def to_ukebab
end
# Convert to lower space case.
def to_lspace
end
# Convert to Upper Space Case.
def to_uspace
end
# Convert to lower.dot.case.
def to_ldot
end
# Convert to Upper.Dot.Case.
def to_udot
end
end
| Implement “to_lcamel” and “to_ucamel” methods | [Add] Implement “to_lcamel” and “to_ucamel” methods
Implement methos which convert string to camel case.
| Ruby | mit | brushdown/string_foundation.rb,brushdown/string_foundation | ruby | ## Code Before:
class String
# Convert to lowerCamelCase.
def to_lcamel
end
# Convert to UpperCamelCase.
def to_ucamel
end
# Convert to lower_snake_case.
def to_lsnake
end
# Convert to Upper_Snake_Case.
def to_usnake
end
# Convert to lower-kebab-case.
def to_lkebab
end
# Convert to Upper-Kebab-Case.
def to_ukebab
end
# Convert to lower space case.
def to_lspace
end
# Convert to Upper Space Case.
def to_uspace
end
# Convert to lower.dot.case.
def to_ldot
end
# Convert to Upper.Dot.Case.
def to_udot
end
end
## Instruction:
[Add] Implement “to_lcamel” and “to_ucamel” methods
Implement methos which convert string to camel case.
## Code After:
class String
# Convert to lowerCamelCase.
def to_lcamel
ucamel = self.to_ucamel
ucamel[0].downcase + ucamel[1..-1]
end
# Convert to UpperCamelCase.
def to_ucamel
if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ')
str = self
str.split('_').map do |uw|
uw.split('-').map do |hw|
hw.split('.').map do |dw|
dw.split(' ').map do |sw|
sw.capitalize
end.join
end.join
end.join
end.join
else
self[0].upcase + self[1..-1]
end
end
# Convert to lower_snake_case.
def to_lsnake
end
# Convert to Upper_Snake_Case.
def to_usnake
if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ')
str = self
str.split('_').map do |uw|
uw.split('-').map do |hw|
hw.split('.').map do |dw|
dw.split(' ').map do |sw|
sw.capitalize
end.join('_')
end.join('_')
end.join('_')
end.join('_')
else
self[0].upcase + self[1..-1]
end
end
# Convert to lower-kebab-case.
def to_lkebab
end
# Convert to Upper-Kebab-Case.
def to_ukebab
end
# Convert to lower space case.
def to_lspace
end
# Convert to Upper Space Case.
def to_uspace
end
# Convert to lower.dot.case.
def to_ldot
end
# Convert to Upper.Dot.Case.
def to_udot
end
end
| class String
# Convert to lowerCamelCase.
def to_lcamel
+ ucamel = self.to_ucamel
+ ucamel[0].downcase + ucamel[1..-1]
end
# Convert to UpperCamelCase.
def to_ucamel
+ if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ')
+ str = self
+ str.split('_').map do |uw|
+ uw.split('-').map do |hw|
+ hw.split('.').map do |dw|
+ dw.split(' ').map do |sw|
+ sw.capitalize
+ end.join
+ end.join
+ end.join
+ end.join
+ else
+ self[0].upcase + self[1..-1]
+ end
end
# Convert to lower_snake_case.
def to_lsnake
end
# Convert to Upper_Snake_Case.
def to_usnake
+ if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ')
+ str = self
+ str.split('_').map do |uw|
+ uw.split('-').map do |hw|
+ hw.split('.').map do |dw|
+ dw.split(' ').map do |sw|
+ sw.capitalize
+ end.join('_')
+ end.join('_')
+ end.join('_')
+ end.join('_')
+ else
+ self[0].upcase + self[1..-1]
+ end
end
# Convert to lower-kebab-case.
def to_lkebab
end
# Convert to Upper-Kebab-Case.
def to_ukebab
end
# Convert to lower space case.
def to_lspace
end
# Convert to Upper Space Case.
def to_uspace
end
# Convert to lower.dot.case.
def to_ldot
end
# Convert to Upper.Dot.Case.
def to_udot
end
end | 30 | 0.697674 | 30 | 0 |
92f3bf2c99fb46bdf8059a91f10dc032bcd0b2da | lib/model/post_permalink.js | lib/model/post_permalink.js | exports.id = function(post){
return post.id || post._id;
};
exports.title = function(post){
return post.slug;
};
exports.year = function(post){
return post.date.format('YYYY');
};
exports.month = function(post){
return post.date.format('MM');
};
exports.day = function(post){
return post.date.format('DD');
};
exports.category = function(post){
var categories = post.categories;
if (categories.length){
var category = categories[categories.length - 1],
Category = hexo.model('Category'),
slug = Category.get(category).slug;
return slug;
} else {
return hexo.config.default_category;
}
}; | exports.id = function(post){
return post.id || post._id;
};
exports.title = function(post){
return post.slug;
};
exports.year = function(post){
return post.date.format('YYYY');
};
exports.month = function(post){
return post.date.format('MM');
};
exports.day = function(post){
return post.date.format('DD');
};
exports.i_month = function(post){
return post.date.format('M');
};
exports.i_day = function(post){
return post.date.format('D');
};
exports.category = function(post){
var categories = post.categories;
if (categories.length){
var category = categories[categories.length - 1],
Category = hexo.model('Category'),
slug = Category.get(category).slug;
return slug;
} else {
return hexo.config.default_category;
}
}; | Add 2 permalink parameters: i_month and i_day | Add 2 permalink parameters: i_month and i_day
| JavaScript | mit | luodengxiong/hexo,imjerrybao/hexo,HcySunYang/hexo,crystalwm/hexo,cjwind/hexx,DevinLow/DevinLow.github.io,wyfyyy818818/hexo,lookii/looki,lukw00/hexo,Jeremy017/hexo,G-g-beringei/hexo,Gtskk/hexo,amobiz/hexo,memezilla/hexo,littledogboy/hexo,kywk/hexi,HiWong/hexo,leelynd/tapohuck,zoubin/hexo,viethang/hexo,zhoulingjun/hexo,zhipengyan/hexo,hackjustu/hexo,SampleLiao/hexo,zhangg/hexo,hexojs/hexo,fuchao2012/hexo,ppker/hexo,luinnx/hexo,wangjordy/wangjordy.github.io,magicdawn/hexo,biezhihua/hexo,wenzhucjy/hexo,znanl/znanl,GGuang/hexo,kennethlyn/hexo,ppker/hexo,registercosmo/hexo,xcatliu/hexo,xiaoliuzi/hexo,oomusou/hexo,BruceChao/hexo,logonmy/hexo,chenbojian/hexo,jonesgithub/hexo,SaiNadh001/hexo,k2byew/hexo,sundyxfan/hexo,wangjordy/wangjordy.github.io,noname007/hexo-1,DevinLow/DevinLow.github.io,wwff/hexo,noikiy/hexo,zhi1ong/hexo,Richardphp/hexo,beni55/hexo,will-zhangweilin/myhexo,r4-keisuke/hexo,jollylulu/hexo,elegantwww/hexo,zongkelong/hexo,aulphar/hexo,haoyuchen1992/hexo,Regis25489/hexo,XGHeaven/hexo,meaverick/hexo,dreamren/hexo,maominghui/hexo,JasonMPE/hexo,liukaijv/hexo,runlevelsix/hexo,liuhongjiang/hexo,iamprasad88/hexo,glabcn/hexo,initiumlab/hexo,jp1017/hexo,nextexit/hexo,dieface/hexo,wflmax/hexo,karenpeng/hexo,Bob1993/hexo,hexojs/hexo,xushuwei202/hexo,keeleys/hexo,Carbs0126/hexo,DanielHit/hexo,gaojinhua/hexo,ChaofengZhou/hexo,sailtoy/hexo,lknny/hexo,zhipengyan/hexo,tibic/hexo,kywk/hexi,leikegeek/hexo,hanhailong/hexo,hugoxia/hexo,chenzaichun/hexo,delkyd/hexo,allengaller/hexo,tzq668766/hexo | javascript | ## Code Before:
exports.id = function(post){
return post.id || post._id;
};
exports.title = function(post){
return post.slug;
};
exports.year = function(post){
return post.date.format('YYYY');
};
exports.month = function(post){
return post.date.format('MM');
};
exports.day = function(post){
return post.date.format('DD');
};
exports.category = function(post){
var categories = post.categories;
if (categories.length){
var category = categories[categories.length - 1],
Category = hexo.model('Category'),
slug = Category.get(category).slug;
return slug;
} else {
return hexo.config.default_category;
}
};
## Instruction:
Add 2 permalink parameters: i_month and i_day
## Code After:
exports.id = function(post){
return post.id || post._id;
};
exports.title = function(post){
return post.slug;
};
exports.year = function(post){
return post.date.format('YYYY');
};
exports.month = function(post){
return post.date.format('MM');
};
exports.day = function(post){
return post.date.format('DD');
};
exports.i_month = function(post){
return post.date.format('M');
};
exports.i_day = function(post){
return post.date.format('D');
};
exports.category = function(post){
var categories = post.categories;
if (categories.length){
var category = categories[categories.length - 1],
Category = hexo.model('Category'),
slug = Category.get(category).slug;
return slug;
} else {
return hexo.config.default_category;
}
}; | exports.id = function(post){
return post.id || post._id;
};
exports.title = function(post){
return post.slug;
};
exports.year = function(post){
return post.date.format('YYYY');
};
exports.month = function(post){
return post.date.format('MM');
};
exports.day = function(post){
return post.date.format('DD');
};
+ exports.i_month = function(post){
+ return post.date.format('M');
+ };
+
+ exports.i_day = function(post){
+ return post.date.format('D');
+ };
+
exports.category = function(post){
var categories = post.categories;
if (categories.length){
var category = categories[categories.length - 1],
Category = hexo.model('Category'),
slug = Category.get(category).slug;
return slug;
} else {
return hexo.config.default_category;
}
}; | 8 | 0.242424 | 8 | 0 |
a25945640ec1df32ecf30e868b727010b1699f62 | docker-entrypoint.sh | docker-entrypoint.sh | set -e
set -o errexit
set -o nounset
set -o xtrace
set -o verbose
export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')"
function clean_up {
docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true
}
trap clean_up EXIT
"$@"
| set -e
set -o errexit
set -o nounset
set -o xtrace
set -o verbose
docker version
docker-compose version
export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')"
function clean_up {
docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true
}
trap clean_up EXIT
"$@"
| Add printing of version numbers | Add printing of version numbers
| Shell | mit | saulshanabrook/docker-compose-image | shell | ## Code Before:
set -e
set -o errexit
set -o nounset
set -o xtrace
set -o verbose
export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')"
function clean_up {
docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true
}
trap clean_up EXIT
"$@"
## Instruction:
Add printing of version numbers
## Code After:
set -e
set -o errexit
set -o nounset
set -o xtrace
set -o verbose
docker version
docker-compose version
export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')"
function clean_up {
docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true
}
trap clean_up EXIT
"$@"
| set -e
set -o errexit
set -o nounset
set -o xtrace
set -o verbose
+
+ docker version
+ docker-compose version
export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')"
function clean_up {
docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true
}
trap clean_up EXIT
"$@" | 3 | 0.2 | 3 | 0 |
c2198336221707f86dc65204a239a34a80ea32b6 | app/uk/gov/hmrc/hmrcemailrenderer/templates/transactionengine/pp/maint/transactionEngineHMRCPPMAINTFailure.scala.html | app/uk/gov/hmrc/hmrcemailrenderer/templates/transactionengine/pp/maint/transactionEngineHMRCPPMAINTFailure.scala.html | @(params: Map[String, Any])
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "") {
<p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, although the form was received on @params("receivedDate"), it could not be accepted as it failed HMRC data checks.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Please:</p>
<p style="margin: 0 0 30px; font-size: 19px;">use the Help provided with the software or online forms service you used to complete and send this Form to find out how to retrieve and view details of the reason(s) the Form failed;</p>
<p style="margin: 0 0 30px; font-size: 19px;">and correct the Form and send it again.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Online Services Helpdesk Telephone 0300 200 3600, Textphone 0300 200 3603 or email helpdesk@@ir-efile.gov.uk</p>
} | @(params: Map[String, Any])
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Unsuccessful submission of the Amend Scheme Details Form.") {
<p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, although the form was received on @params("receivedDate"), it could not be accepted as it failed HMRC data checks.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Please:</p>
<p style="margin: 0 0 30px; font-size: 19px;">use the Help provided with the software or online forms service you used to complete and send this Form to find out how to retrieve and view details of the reason(s) the Form failed;</p>
<p style="margin: 0 0 30px; font-size: 19px;">and correct the Form and send it again.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Online Services Helpdesk Telephone 0300 200 3600, Textphone 0300 200 3603 or email helpdesk@@ir-efile.gov.uk</p>
} | Add title to HMRC PP Maint Scheme Failure template | Add title to HMRC PP Maint Scheme Failure template
| HTML | apache-2.0 | saurabharora80/hmrc-email-renderer | html | ## Code Before:
@(params: Map[String, Any])
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "") {
<p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, although the form was received on @params("receivedDate"), it could not be accepted as it failed HMRC data checks.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Please:</p>
<p style="margin: 0 0 30px; font-size: 19px;">use the Help provided with the software or online forms service you used to complete and send this Form to find out how to retrieve and view details of the reason(s) the Form failed;</p>
<p style="margin: 0 0 30px; font-size: 19px;">and correct the Form and send it again.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Online Services Helpdesk Telephone 0300 200 3600, Textphone 0300 200 3603 or email helpdesk@@ir-efile.gov.uk</p>
}
## Instruction:
Add title to HMRC PP Maint Scheme Failure template
## Code After:
@(params: Map[String, Any])
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Unsuccessful submission of the Amend Scheme Details Form.") {
<p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, although the form was received on @params("receivedDate"), it could not be accepted as it failed HMRC data checks.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Please:</p>
<p style="margin: 0 0 30px; font-size: 19px;">use the Help provided with the software or online forms service you used to complete and send this Form to find out how to retrieve and view details of the reason(s) the Form failed;</p>
<p style="margin: 0 0 30px; font-size: 19px;">and correct the Form and send it again.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Online Services Helpdesk Telephone 0300 200 3600, Textphone 0300 200 3603 or email helpdesk@@ir-efile.gov.uk</p>
} | @(params: Map[String, Any])
- @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "") {
+ @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Unsuccessful submission of the Amend Scheme Details Form.") {
<p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, although the form was received on @params("receivedDate"), it could not be accepted as it failed HMRC data checks.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Please:</p>
<p style="margin: 0 0 30px; font-size: 19px;">use the Help provided with the software or online forms service you used to complete and send this Form to find out how to retrieve and view details of the reason(s) the Form failed;</p>
<p style="margin: 0 0 30px; font-size: 19px;">and correct the Form and send it again.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Online Services Helpdesk Telephone 0300 200 3600, Textphone 0300 200 3603 or email helpdesk@@ir-efile.gov.uk</p>
} | 2 | 0.222222 | 1 | 1 |
d686ed17aa158fdf487eed0e3b6b70a05d756825 | views/quotes_pagination.tpl | views/quotes_pagination.tpl | % last_page = nof_pages - 1
% prev_page = page - 1 if page > 0 else None
% next_page = page + 1 if page < last_page else None
<div class="row">
<nav class="small-11 small-centered columns pagination-centered">
<ul class="pagination">
% if prev_page is not None:
<li><a href="/quotes/0"><i class="fa fa-angle-double-left"></i></a></li>
<li><a href="/quotes/{{prev_page}}"><i class="fa fa-angle-left"></i></a></li>
% end
% for page_no in range(max(0, page - 2), min(nof_pages, page + 3)):
<li{{!" class=\"current\"" if page is page_no else ""}}>
<a href="/quotes/{{page_no}}">{{page_no}}</a>
</li>
% end
% if next_page is not None:
<li><a href="/quotes/{{next_page}}"><i class="fa fa-angle-right"></i></a></li>
<li><a href="/quotes/{{last_page}}"><i class="fa fa-angle-double-right"></i></a></li>
% end
</ul>
</nav>
</div>
| % last_page = nof_pages - 1
% prev_page = page - 1 if page > 0 else None
% next_page = page + 1 if page < last_page else None
<div class="row">
<nav class="small-12 columns pagination-centered">
<ul class="pagination">
% if prev_page is not None:
<li><a href="/quotes/0"><i class="fa fa-angle-double-left"></i></a></li>
<li><a href="/quotes/{{prev_page}}"><i class="fa fa-angle-left"></i></a></li>
% end
% for page_no in range(max(0, page - 2), min(nof_pages, page + 3)):
<li{{!" class=\"current\"" if page is page_no else ""}}>
<a href="/quotes/{{page_no}}">{{page_no}}</a>
</li>
% end
% if next_page is not None:
<li><a href="/quotes/{{next_page}}"><i class="fa fa-angle-right"></i></a></li>
<li><a href="/quotes/{{last_page}}"><i class="fa fa-angle-double-right"></i></a></li>
% end
</ul>
</nav>
</div>
| Extend pagination to full width | Extend pagination to full width
| Smarty | mit | pyrige/pump19.eu,pyrige/pump19.eu | smarty | ## Code Before:
% last_page = nof_pages - 1
% prev_page = page - 1 if page > 0 else None
% next_page = page + 1 if page < last_page else None
<div class="row">
<nav class="small-11 small-centered columns pagination-centered">
<ul class="pagination">
% if prev_page is not None:
<li><a href="/quotes/0"><i class="fa fa-angle-double-left"></i></a></li>
<li><a href="/quotes/{{prev_page}}"><i class="fa fa-angle-left"></i></a></li>
% end
% for page_no in range(max(0, page - 2), min(nof_pages, page + 3)):
<li{{!" class=\"current\"" if page is page_no else ""}}>
<a href="/quotes/{{page_no}}">{{page_no}}</a>
</li>
% end
% if next_page is not None:
<li><a href="/quotes/{{next_page}}"><i class="fa fa-angle-right"></i></a></li>
<li><a href="/quotes/{{last_page}}"><i class="fa fa-angle-double-right"></i></a></li>
% end
</ul>
</nav>
</div>
## Instruction:
Extend pagination to full width
## Code After:
% last_page = nof_pages - 1
% prev_page = page - 1 if page > 0 else None
% next_page = page + 1 if page < last_page else None
<div class="row">
<nav class="small-12 columns pagination-centered">
<ul class="pagination">
% if prev_page is not None:
<li><a href="/quotes/0"><i class="fa fa-angle-double-left"></i></a></li>
<li><a href="/quotes/{{prev_page}}"><i class="fa fa-angle-left"></i></a></li>
% end
% for page_no in range(max(0, page - 2), min(nof_pages, page + 3)):
<li{{!" class=\"current\"" if page is page_no else ""}}>
<a href="/quotes/{{page_no}}">{{page_no}}</a>
</li>
% end
% if next_page is not None:
<li><a href="/quotes/{{next_page}}"><i class="fa fa-angle-right"></i></a></li>
<li><a href="/quotes/{{last_page}}"><i class="fa fa-angle-double-right"></i></a></li>
% end
</ul>
</nav>
</div>
| % last_page = nof_pages - 1
% prev_page = page - 1 if page > 0 else None
% next_page = page + 1 if page < last_page else None
<div class="row">
- <nav class="small-11 small-centered columns pagination-centered">
? ^^^^^^^^^^^^^^^^
+ <nav class="small-12 columns pagination-centered">
? ^
<ul class="pagination">
% if prev_page is not None:
<li><a href="/quotes/0"><i class="fa fa-angle-double-left"></i></a></li>
<li><a href="/quotes/{{prev_page}}"><i class="fa fa-angle-left"></i></a></li>
% end
% for page_no in range(max(0, page - 2), min(nof_pages, page + 3)):
<li{{!" class=\"current\"" if page is page_no else ""}}>
<a href="/quotes/{{page_no}}">{{page_no}}</a>
</li>
% end
% if next_page is not None:
<li><a href="/quotes/{{next_page}}"><i class="fa fa-angle-right"></i></a></li>
<li><a href="/quotes/{{last_page}}"><i class="fa fa-angle-double-right"></i></a></li>
% end
</ul>
</nav>
</div> | 2 | 0.090909 | 1 | 1 |
0a5e4194fe06b20b4eaacaa9452403f70076ccd3 | base_solver.py | base_solver.py |
from datetime import datetime
class BaseSolver(object):
task = None
best_solution = None
best_distance = float('inf')
search_time = None
cycles = 0
def __init__(self, task):
self.task = task
def run(self):
start_time = datetime.now()
self.best_solution, self.best_distance, self.cycles = self.run_search()
finish_time = datetime.now()
self.search_time = finish_time - start_time
def run_search(self):
# dummy - this is where one should implement the algorithm
pass
def get_summary(self):
if self.best_solution is None:
return u'Run the solver first'
txt = (
'========== {solver_name} ==========\n'
'run {cycles} cycles for: {search_time}\n'
'best found solution: {best_solution}\n'
'distance: {distance}\n'
)
return txt.format(
solver_name=str(self.__class__),
cycles=self.cycles,
search_time=self.search_time,
best_solution=self.best_solution,
distance=self.best_distance
)
|
from datetime import datetime
class RunSolverFirst(Exception):
pass
class BaseSolver(object):
task = None
best_solution = None
best_distance = float('inf')
search_time = None
cycles = 0
def __init__(self, task):
self.task = task
def run(self):
start_time = datetime.now()
self.best_solution, self.best_distance, self.cycles = self.run_search()
finish_time = datetime.now()
self.search_time = finish_time - start_time
def run_search(self):
# dummy - this is where one should implement the algorithm
pass
def get_summary(self):
if self.best_solution is None:
raise RunSolverFirst(u'Run the solver first')
txt = (
'========== {solver_name} ==========\n'
'run {cycles} cycles for: {search_time}\n'
'best found solution: {best_solution}\n'
'distance: {distance}\n'
)
return txt.format(
solver_name=str(self.__class__),
cycles=self.cycles,
search_time=self.search_time,
best_solution=self.best_solution,
distance=self.best_distance
)
| Add run solver first exception type | Add run solver first exception type
| Python | mit | Cosiek/KombiVojager | python | ## Code Before:
from datetime import datetime
class BaseSolver(object):
task = None
best_solution = None
best_distance = float('inf')
search_time = None
cycles = 0
def __init__(self, task):
self.task = task
def run(self):
start_time = datetime.now()
self.best_solution, self.best_distance, self.cycles = self.run_search()
finish_time = datetime.now()
self.search_time = finish_time - start_time
def run_search(self):
# dummy - this is where one should implement the algorithm
pass
def get_summary(self):
if self.best_solution is None:
return u'Run the solver first'
txt = (
'========== {solver_name} ==========\n'
'run {cycles} cycles for: {search_time}\n'
'best found solution: {best_solution}\n'
'distance: {distance}\n'
)
return txt.format(
solver_name=str(self.__class__),
cycles=self.cycles,
search_time=self.search_time,
best_solution=self.best_solution,
distance=self.best_distance
)
## Instruction:
Add run solver first exception type
## Code After:
from datetime import datetime
class RunSolverFirst(Exception):
pass
class BaseSolver(object):
task = None
best_solution = None
best_distance = float('inf')
search_time = None
cycles = 0
def __init__(self, task):
self.task = task
def run(self):
start_time = datetime.now()
self.best_solution, self.best_distance, self.cycles = self.run_search()
finish_time = datetime.now()
self.search_time = finish_time - start_time
def run_search(self):
# dummy - this is where one should implement the algorithm
pass
def get_summary(self):
if self.best_solution is None:
raise RunSolverFirst(u'Run the solver first')
txt = (
'========== {solver_name} ==========\n'
'run {cycles} cycles for: {search_time}\n'
'best found solution: {best_solution}\n'
'distance: {distance}\n'
)
return txt.format(
solver_name=str(self.__class__),
cycles=self.cycles,
search_time=self.search_time,
best_solution=self.best_solution,
distance=self.best_distance
)
|
from datetime import datetime
+
+ class RunSolverFirst(Exception):
+ pass
+
class BaseSolver(object):
task = None
best_solution = None
best_distance = float('inf')
search_time = None
cycles = 0
def __init__(self, task):
self.task = task
def run(self):
start_time = datetime.now()
self.best_solution, self.best_distance, self.cycles = self.run_search()
finish_time = datetime.now()
self.search_time = finish_time - start_time
def run_search(self):
# dummy - this is where one should implement the algorithm
pass
def get_summary(self):
if self.best_solution is None:
- return u'Run the solver first'
? ^^^^
+ raise RunSolverFirst(u'Run the solver first')
? +++ ++++++++++++++ ^ +
txt = (
'========== {solver_name} ==========\n'
'run {cycles} cycles for: {search_time}\n'
'best found solution: {best_solution}\n'
'distance: {distance}\n'
)
return txt.format(
solver_name=str(self.__class__),
cycles=self.cycles,
search_time=self.search_time,
best_solution=self.best_solution,
distance=self.best_distance
) | 6 | 0.139535 | 5 | 1 |
25cd8afdfede8a522f8d0f08ee4678a2e9c46a4b | curious/commands/__init__.py | curious/commands/__init__.py | import functools
from curious.commands.command import Command
def command(*args, **kwargs):
"""
A decorator to mark a function as a command.
This will put a `factory` attribute on the function, which can later be called to create the Command instance.
All arguments are passed to the Command class.
"""
def __inner(func):
factory = functools.partial(Command, func, *args, **kwargs)
func.factory = factory
return func
return __inner
def event(func):
"""
Marks a function as an event.
:param func: Either the function, or the name to give to the event.
"""
if isinstance(func, str):
def __innr(f):
f.event = func
return f
return __innr
else:
func.event = func.__name__[3:]
return func
| import functools
from curious.commands.command import Command
def command(*args, klass: type=Command, **kwargs):
"""
A decorator to mark a function as a command.
This will put a `factory` attribute on the function, which can later be called to create the Command instance.
All arguments are passed to the Command class.
:param klass: The command class type to wrap the object in.
"""
def __inner(func):
factory = functools.partial(klass, func, *args, **kwargs)
func.factory = factory
return func
return __inner
def event(func):
"""
Marks a function as an event.
:param func: Either the function, or the name to give to the event.
"""
if isinstance(func, str):
def __innr(f):
f.event = func
return f
return __innr
else:
func.event = func.__name__[3:]
return func
| Allow changing what object is returned from Command instances. | Allow changing what object is returned from Command instances.
| Python | mit | SunDwarf/curious | python | ## Code Before:
import functools
from curious.commands.command import Command
def command(*args, **kwargs):
"""
A decorator to mark a function as a command.
This will put a `factory` attribute on the function, which can later be called to create the Command instance.
All arguments are passed to the Command class.
"""
def __inner(func):
factory = functools.partial(Command, func, *args, **kwargs)
func.factory = factory
return func
return __inner
def event(func):
"""
Marks a function as an event.
:param func: Either the function, or the name to give to the event.
"""
if isinstance(func, str):
def __innr(f):
f.event = func
return f
return __innr
else:
func.event = func.__name__[3:]
return func
## Instruction:
Allow changing what object is returned from Command instances.
## Code After:
import functools
from curious.commands.command import Command
def command(*args, klass: type=Command, **kwargs):
"""
A decorator to mark a function as a command.
This will put a `factory` attribute on the function, which can later be called to create the Command instance.
All arguments are passed to the Command class.
:param klass: The command class type to wrap the object in.
"""
def __inner(func):
factory = functools.partial(klass, func, *args, **kwargs)
func.factory = factory
return func
return __inner
def event(func):
"""
Marks a function as an event.
:param func: Either the function, or the name to give to the event.
"""
if isinstance(func, str):
def __innr(f):
f.event = func
return f
return __innr
else:
func.event = func.__name__[3:]
return func
| import functools
from curious.commands.command import Command
- def command(*args, **kwargs):
+ def command(*args, klass: type=Command, **kwargs):
"""
A decorator to mark a function as a command.
This will put a `factory` attribute on the function, which can later be called to create the Command instance.
All arguments are passed to the Command class.
+
+ :param klass: The command class type to wrap the object in.
"""
def __inner(func):
- factory = functools.partial(Command, func, *args, **kwargs)
? ^^^^ ^^
+ factory = functools.partial(klass, func, *args, **kwargs)
? ^^ ^^
func.factory = factory
return func
return __inner
def event(func):
"""
Marks a function as an event.
:param func: Either the function, or the name to give to the event.
"""
if isinstance(func, str):
def __innr(f):
f.event = func
return f
return __innr
else:
func.event = func.__name__[3:]
return func | 6 | 0.166667 | 4 | 2 |
8a07b4ba433f108fbcc5b3f8732c67a50d527278 | device/device.go | device/device.go | package device
import (
"sync"
"github.com/tarm/serial"
)
type Manager struct {
devices map[string]serial.Config
mu sync.RWMutex
}
func (m *Manager) AddDevice(name string) error {
cfg := serial.Config{Name: name}
m.mu.Lock()
m.devices[name] = cfg
m.mu.Unlock()
return nil
}
func (m *Manager) RemoveDevice(name string) error {
m.mu.RLock()
delete(m.devices, name)
m.mu.RUnlock()
return nil
}
type Conn struct {
device serial.Config
port *serial.Port
isOpen bool
}
func (c *Conn) Open() error {
p, err := serial.OpenPort(&c.device)
if err != nil {
return nil
}
c.port = p
c.isOpen = true
return nil
}
// Close closes the port helt by *Conn.
func (c *Conn) Close() error {
if c.isOpen {
return c.port.Close()
}
return nil
}
| package device
import (
"sync"
"github.com/tarm/serial"
)
type Manager struct {
devices map[string]serial.Config
conn []*Conn
mu sync.RWMutex
}
func (m *Manager) AddDevice(name string) error {
cfg := serial.Config{Name: name}
m.mu.Lock()
m.devices[name] = cfg
m.mu.Unlock()
return nil
}
func (m *Manager) RemoveDevice(name string) error {
m.mu.RLock()
delete(m.devices, name)
m.mu.RUnlock()
return nil
}
type Conn struct {
device serial.Config
port *serial.Port
isOpen bool
}
func (c *Conn) Open() error {
p, err := serial.OpenPort(&c.device)
if err != nil {
return nil
}
c.port = p
c.isOpen = true
return nil
}
// Close closes the port helt by *Conn.
func (c *Conn) Close() error {
if c.isOpen {
return c.port.Close()
}
return nil
}
| Use slice of *Conn instead of a map | Use slice of *Conn instead of a map
These is very very devices at had. SO no need for a map
| Go | mit | FarmRadioHangar/fessboxconfig,FarmRadioHangar/fessboxconfig | go | ## Code Before:
package device
import (
"sync"
"github.com/tarm/serial"
)
type Manager struct {
devices map[string]serial.Config
mu sync.RWMutex
}
func (m *Manager) AddDevice(name string) error {
cfg := serial.Config{Name: name}
m.mu.Lock()
m.devices[name] = cfg
m.mu.Unlock()
return nil
}
func (m *Manager) RemoveDevice(name string) error {
m.mu.RLock()
delete(m.devices, name)
m.mu.RUnlock()
return nil
}
type Conn struct {
device serial.Config
port *serial.Port
isOpen bool
}
func (c *Conn) Open() error {
p, err := serial.OpenPort(&c.device)
if err != nil {
return nil
}
c.port = p
c.isOpen = true
return nil
}
// Close closes the port helt by *Conn.
func (c *Conn) Close() error {
if c.isOpen {
return c.port.Close()
}
return nil
}
## Instruction:
Use slice of *Conn instead of a map
These is very very devices at had. SO no need for a map
## Code After:
package device
import (
"sync"
"github.com/tarm/serial"
)
type Manager struct {
devices map[string]serial.Config
conn []*Conn
mu sync.RWMutex
}
func (m *Manager) AddDevice(name string) error {
cfg := serial.Config{Name: name}
m.mu.Lock()
m.devices[name] = cfg
m.mu.Unlock()
return nil
}
func (m *Manager) RemoveDevice(name string) error {
m.mu.RLock()
delete(m.devices, name)
m.mu.RUnlock()
return nil
}
type Conn struct {
device serial.Config
port *serial.Port
isOpen bool
}
func (c *Conn) Open() error {
p, err := serial.OpenPort(&c.device)
if err != nil {
return nil
}
c.port = p
c.isOpen = true
return nil
}
// Close closes the port helt by *Conn.
func (c *Conn) Close() error {
if c.isOpen {
return c.port.Close()
}
return nil
}
| package device
import (
"sync"
"github.com/tarm/serial"
)
type Manager struct {
devices map[string]serial.Config
+ conn []*Conn
mu sync.RWMutex
}
func (m *Manager) AddDevice(name string) error {
cfg := serial.Config{Name: name}
m.mu.Lock()
m.devices[name] = cfg
m.mu.Unlock()
return nil
}
func (m *Manager) RemoveDevice(name string) error {
m.mu.RLock()
delete(m.devices, name)
m.mu.RUnlock()
return nil
}
type Conn struct {
device serial.Config
port *serial.Port
isOpen bool
}
func (c *Conn) Open() error {
p, err := serial.OpenPort(&c.device)
if err != nil {
return nil
}
c.port = p
c.isOpen = true
return nil
}
// Close closes the port helt by *Conn.
func (c *Conn) Close() error {
if c.isOpen {
return c.port.Close()
}
return nil
} | 1 | 0.019608 | 1 | 0 |
9c85f88362b0d4fb1d02199580263440dfc19fa2 | ajax/libs/jquery.ba-bbq/package.json | ajax/libs/jquery.ba-bbq/package.json | {
"name": "jquery.ba-bbq",
"filename": "jquery.ba-bbq.min.js",
"version": "1.2.1",
"description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods",
"homepage": "http://benalman.com/projects/jquery-bbq-plugin/",
"keywords": [
"jquery",
"history"
],
"maintainers": [
{
"name": "Ben Alman",
"web": "http://benalman.com/"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/cowboy/jquery-bbq"
}
]
}
| {
"name": "jquery.ba-bbq",
"filename": "jquery.ba-bbq.min.js",
"version": "1.2.1",
"description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods",
"homepage": "http://benalman.com/projects/jquery-bbq-plugin/",
"keywords": [
"jquery",
"history"
],
"maintainers": [
{
"name": "Ben Alman",
"web": "http://benalman.com/"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/cowboy/jquery-bbq"
}
],
"dependencies": {
"jquery": "1.2.6"
}
}
| Add missing dependency on ≥jquery-1.2.6. | jquery.ba-bbq: Add missing dependency on ≥jquery-1.2.6.
| JSON | mit | wangsai/cdnjs,jimmybyrum/cdnjs,me4502/cdnjs,senekis/cdnjs,2betop/cdnjs,sullivanmatt/cdnjs,WickyNilliams/cdnjs,rwjblue/cdnjs,binki/cdnjs,matteofigus/cdnjs,hperrin/cdnjs,migerh/cdnjs,mayur404/cdnjs,KoryNunn/cdnjs,legomushroom/cdnjs,xrmx/cdnjs,mircobabini/cdnjs,apneadiving/cdnjs,ericmittelhammer/cdnjs,mihneasim/cdnjs,gogoleva/cdnjs,michielbdejong/cdnjs,WireShout/cdnjs,DSpeichert/cdnjs,errordeveloper/cdnjs,victor-istomin/cdnjs,joaojeronimo/cdnjs,lukeapage/cdnjs,fk/cdnjs,jtrussell/cdnjs,uglyog/cdnjs,maxklenk/cdnjs,sullivanmatt/cdnjs,jdanyow/cdnjs,joaojeronimo/cdnjs,senekis/cdnjs,amitabhaghosh197/cdnjs,haferje/cdnjs,kodypeterson/cdnjs,idleberg/cdnjs,jslegers/cdnjs,jonjaques/cdnjs,lol768/cdnjs,manishas/cdnjs,sjlu/cdnjs,ljharb/cdnjs,brunoksato/cdnjs,abenjamin765/cdnjs,kenwheeler/cdnjs,sitic/cdnjs,JacquesMarais/cdnjs,RizkyAdiSaputra/cdnjs,LostCrew/cdnjs,amsul/cdnjs,knpwrs/cdnjs,uglyog/cdnjs,evanbleiweiss/cdnjs,Ryuno-Ki/cdnjs,vfonic/cdnjs,zhaozhiming/cdnjs,idleberg/cdnjs,gogoleva/cdnjs,FaiblUG/cdnjs,LSleutsky/cdnjs,migerh/cdnjs,gionkunz/cdnjs,jimmybyrum/cdnjs,kuriyama/cdnjs,secobarbital/cdnjs,andrepiske/cdnjs,pvoznenko/cdnjs,lol768/cdnjs,jieter/cdnjs,Ryuno-Ki/cdnjs,gasolin/cdnjs,kuldipem/cdnjs,Kaakati/cdnjs,fk/cdnjs,hanssens/cdnjs,mfregoe/cdnjs,szimek/cdnjs,ekeneijeoma/cdnjs,cluo/cdnjs,jakubfiala/cdnjs,aendrew/cdnjs,ericelliott/cdnjs,urish/cdnjs,Rbeuque74/cdnjs,rwjblue/cdnjs,inlineblock/cdnjs,carlsednaoui/cdnjs,teropa/cdnjs,gagan-bansal/cdnjs,pvoznenko/cdnjs,spicyj/cdnjs,FrozenCow/cdnjs,billybonz1/cdnjs,hnakamur/cdnjs,andersem/cdnjs,runk/cdnjs,dhenson02/cdnjs,piranha/cdnjs,underyx/cdnjs,ripple0328/cdnjs,freak3dot/cdnjs,genintho/cdnjs,toddmotto/cdnjs,dhowe/cdnjs,infosiftr/cdnjs,LostCrew/cdnjs,svvitale/cdnjs,visualjeff/cdnjs,thetable/cdnjs,mzdani/cdnjs,siddii/cdnjs,2betop/cdnjs,Stavrakakis/cdnjs,SyntaxColoring/cdnjs,mojavelinux/cdnjs,manishas/cdnjs,SyntaxColoring/cdnjs,kpdecker/cdnjs,gokuale/cdnjs,djavaui/cdnjs,ldiqual/cdnjs,icambron/cdnjs,willdady/cdnjs,icco/cdnjs,Sneezry/cdnjs,michielbdejong/cdnjs,steakknife/cdnjs,jslegers/cdnjs,OnsenUI/cdnjs,robfletcher/cdnjs,johngerome/cdnjs,sevab/cdnjs,khasinski/cdnjs,kitcambridge/cdnjs,adobe-webplatform/cdnjs,CosmicWebServices/cdnjs,adobe-webplatform/cdnjs,ghidinelli/cdnjs,atlassian/cdnjs,zfben/cdnjs,JKirchartz/cdnjs,dok/cdnjs,SyntaxColoring/cdnjs,freak3dot/cdnjs,silviopaganini/cdnjs,dfernandez79/cdnjs,Rich-Harris/cdnjs,ldiqual/cdnjs,apneadiving/cdnjs,gereon/cdnjs,runk/cdnjs,hanssens/cdnjs,icco/cdnjs,piranha/cdnjs,danmasera/cdnjs,pid/cdnjs,akiran/cdnjs,chrisharrington/cdnjs,nolanlawson/cdnjs,jackdoyle/cdnjs,briznad/cdnjs,reezer/cdnjs,bevacqua/cdnjs,vdurmont/cdnjs,andyinabox/cdnjs,mzdani/cdnjs,tcorral/cdnjs,yasyf/cdnjs,noraesae/cdnjs,stefanpenner/cdnjs,colourgarden/cdnjs,emmansun/cdnjs,tengyifei/cdnjs,dryabov/cdnjs,kevinsimper/cdnjs,pvoznenko/cdnjs,simevidas/cdnjs,bevacqua/cdnjs,a8m/cdnjs,mikelambert/cdnjs,gabceb/cdnjs,baig/cdnjs,mikelambert/cdnjs,willdady/cdnjs,robfletcher/cdnjs,Rbeuque74/cdnjs,LSleutsky/cdnjs,gagan-bansal/cdnjs,enricodeleo/cdnjs,fleeting/cdnjs,JacquesMarais/cdnjs,vitalets/cdnjs,DeuxHuitHuit/cdnjs,bsquochoaidownloadfolders/cdnjs,fatso83/cdnjs,scottdavis99/cdnjs,Xotic750/cdnjs,sjaveed/cdnjs,jimmytuc/cdnjs,solojavier/cdnjs,chrisharrington/cdnjs,rm-hull/cdnjs,Marsup/cdnjs,gokuale/cdnjs,briznad/cdnjs,hagabaka/cdnjs,melvinchien/cdnjs,xissy/cdnjs,xubowenjx/cdnjs,jonjaques/cdnjs,victor-istomin/cdnjs,genintho/cdnjs,AlexisArce/cdnjs,masimakopoulos/cdnjs,benjaminma/cdnjs,jamzgoodguy/cdnjs,pkozlowski-opensource/cdnjs,lenniboy/cdnjs,ankitjamuar/cdnjs,agraebe/cdnjs,ldiqual/cdnjs,bjjb/cdnjs,gabel/cdnjs,hhbyyh/cdnjs,matteofigus/cdnjs,walterdavis/cdnjs,scottdavis99/cdnjs,nwhitehead/cdnjs,StoneCypher/cdnjs,nesk/cdnjs,lol768/cdnjs,tcorral/cdnjs,JohnKim/cdnjs,jonathan-fielding/cdnjs,r3x/cdnjs,abbychau/cdnjs,dereckson/cdnjs,mgax/cdnjs,jmesnil/cdnjs,juliusrickert/cdnjs,kangax/cdnjs,mikelambert/cdnjs,mahemoff/cdnjs,tomsoir/cdnjs,rthor/cdnjs,carlsednaoui/cdnjs,teropa/cdnjs,lxyu/cdnjs,gabceb/cdnjs,evanbleiweiss/cdnjs,jslegers/cdnjs,hpneo/cdnjs,masimakopoulos/cdnjs,camelotceo/cdnjs,wenliang-developer/cdnjs,thejsj/cdnjs,eldarion/cdnjs,apneadiving/cdnjs,pastudan/cdnjs,WireShout/cdnjs,Nivl/cdnjs,franckbrunet/cdnjs,gereon/cdnjs,deanmalmgren/cdnjs,angular-ui/cdnjs,bdukes/cdnjs,Rich-Harris/cdnjs,calvinf/cdnjs,amitabhaghosh197/cdnjs,masimakopoulos/cdnjs,thetrickster/cdnjs,mfinelli/cdnjs,yasyf/cdnjs,gabel/cdnjs,juliusrickert/cdnjs,sadhat/cdnjs,stomita/cdnjs,raimohanska/cdnjs,pimterry/cdnjs,lenniboy/cdnjs,2betop/cdnjs,contentfree/cdnjs,wenliang-developer/cdnjs,jesstelford/cdnjs,hibrahimsafak/cdnjs,jmusicc/cdnjs,icco/cdnjs,deanius/cdnjs,maletor/cdnjs,thyb/cdnjs,yukinying/cdnjs,xrmx/cdnjs,kood1/cdnjs,legomushroom/cdnjs,hristozov/cdnjs,KoryNunn/cdnjs,stomita/cdnjs,andidev/cdnjs,fastest963/cdnjs,NUKnightLab/cdnjs,gogoleva/cdnjs,ghidinelli/cdnjs,kirbyfan64/cdnjs,kodypeterson/cdnjs,khasinski/cdnjs,HealthIndicators/cdnjs,KevinSheedy/cdnjs,WireShout/cdnjs,neveldo/cdnjs,yang/cdnjs,iskitz/cdnjs,CrossEye/cdnjs,CodeAnimal/cdnjs,kangax/cdnjs,Ryuno-Ki/cdnjs,opengeogroep/cdnjs,dbeckwith/cdnjs,aFarkas/cdnjs,GaryChamberlain/cdnjs,DSpeichert/cdnjs,ldiqual/cdnjs,julian-maughan/cdnjs,tambien/cdnjs,zhaozhiming/cdnjs,underyx/cdnjs,silviopaganini/cdnjs,sevab/cdnjs,SanaNasar/cdnjs,enricodeleo/cdnjs,akiran/cdnjs,stomita/cdnjs,matt-h/cdnjs,mfregoe/cdnjs,underyx/cdnjs,StoneCypher/cdnjs,stephenmathieson/cdnjs,szepeviktor/cdnjs,bollwyvl/cdnjs,alexanderdickson/cdnjs,wolfflow/cdnjs,sitic/cdnjs,EtienneLem/cdnjs,bdukes/cdnjs,clkao/cdnjs,sarmadsangi/cdnjs,artch/cdnjs,CosmicWebServices/cdnjs,hibrahimsafak/cdnjs,ruiaraujo/cdnjs,visualjeff/cdnjs,NamPNQ/cdnjs,rm-hull/cdnjs,DSpeichert/cdnjs,joscha/cdnjs,aFarkas/cdnjs,alexanderdickson/cdnjs,starius/cdnjs,jasny/cdnjs,mayur404/cdnjs,MEXXIO/cdnjs,nagyist/OpenF2-cdnjs,mfinelli/cdnjs,lhorie/cdnjs,sarmadsangi/cdnjs,gereon/cdnjs,mzdani/cdnjs,XVicarious/cdnjs,bettiolo/cdnjs,alexanderdickson/cdnjs,reezer/cdnjs,wmono/cdnjs,brycedorn/cdnjs,sjaveed/cdnjs,danmasera/cdnjs,matteofigus/cdnjs,luigimannoni/cdnjs,iros/cdnjs,contentfree/cdnjs,MMore/cdnjs,arasmussen/cdnjs,maralla/cdnjs,fredericksilva/cdnjs,ericelliott/cdnjs,tellnes/cdnjs,bryantrobbins/cdnjs,sjlu/cdnjs,juliusrickert/cdnjs,AlicanC/cdnjs,wmono/cdnjs,qiansen1386/cdnjs,gwezerek/cdnjs,kood1/cdnjs,hcxiong/cdnjs,relrod/cdnjs,chrisharrington/cdnjs,KevinSheedy/cdnjs,nwhitehead/cdnjs,RizkyAdiSaputra/cdnjs,Pranay92/cdnjs,nwhitehead/cdnjs,nesk/cdnjs,joseluisq/cdnjs,JacquesMarais/cdnjs,franckbrunet/cdnjs,wolfflow/cdnjs,AlicanC/cdnjs,andidev/cdnjs,askehansen/cdnjs,visualjeff/cdnjs,steakknife/cdnjs,CodeAnimal/cdnjs,kirbyfan64/cdnjs,errordeveloper/cdnjs,spalger/cdnjs,haferje/cdnjs,dhenson02/cdnjs,begriffs/cdnjs,kostasx/cdnjs,jako512/cdnjs,abenjamin765/cdnjs,sevab/cdnjs,opal/cdnjs,homerjam/cdnjs,lmccart/cdnjs,infosiftr/cdnjs,mfinelli/cdnjs,robrich/cdnjs,kuldipem/cdnjs,maralla/cdnjs,NUKnightLab/cdnjs,FaiblUG/cdnjs,thesandlord/cdnjs,johan-gorter/cdnjs,hhbyyh/cdnjs,reezer/cdnjs,bjjb/cdnjs,simevidas/cdnjs,XVicarious/cdnjs,tharakauka/cdnjs,icco/cdnjs,Kaakati/cdnjs,raszi/cdnjs,jaslernl/cdnjs,francescoagati/cdnjs,dergachev/cdnjs,potomak/cdnjs,geta6/cdnjs,tomalec/cdnjs,kostasx/cdnjs,hcxiong/cdnjs,ramda/cdnjs,julian-maughan/cdnjs,pazguille/cdnjs,askehansen/cdnjs,StoneCypher/cdnjs,StoneCypher/cdnjs,starius/cdnjs,juliusrickert/cdnjs,JGallardo/cdnjs,gswalden/cdnjs,LSleutsky/cdnjs,kevinburke/cdnjs,mfregoe/cdnjs,agraebe/cdnjs,mikelambert/cdnjs,mojavelinux/cdnjs,senekis/cdnjs,ruffle1986/cdnjs,fivetanley/cdnjs,ramda/cdnjs,homerjam/cdnjs,hpneo/cdnjs,migerh/cdnjs,tmorin/cdnjs,mkoryak/cdnjs,kevinsimper/cdnjs,kevinburke/cdnjs,mgax/cdnjs,ankitjamuar/cdnjs,tybenz/cdnjs,jacoborus/cdnjs,stuartpb/cdnjs,jackdoyle/cdnjs,ripple0328/cdnjs,geta6/cdnjs,SyntaxColoring/cdnjs,stephenmathieson/cdnjs,r3x/cdnjs,thykka/cdnjs,Xotic750/cdnjs,franckbrunet/cdnjs,askehansen/cdnjs,sujonvidia/cdnjs,thetable/cdnjs,bachue/cdnjs,yahyaKacem/cdnjs,KevinSheedy/cdnjs,KZeni/cdnjs,abenjamin765/cdnjs,enricodeleo/cdnjs,LaurensRietveld/cdnjs,tkirda/cdnjs,steve-ng/cdnjs,thyb/cdnjs,sadhat/cdnjs,maletor/cdnjs,SanaNasar/cdnjs,advancedpartnerships/cdnjs,dangerbell/cdnjs,solojavier/cdnjs,johan-gorter/cdnjs,svenanders/cdnjs,gionkunz/cdnjs,nesk/cdnjs,saitheexplorer/cdnjs,xymostech/cdnjs,kuriyama/cdnjs,kenwheeler/cdnjs,dok/cdnjs,matt-h/cdnjs,luigimannoni/cdnjs,francescoagati/cdnjs,calvinf/cdnjs,fatso83/cdnjs,wenzhixin/cdnjs,wprl/cdnjs,anshulverma/cdnjs,ComputerWolf/cdnjs,gasolin/cdnjs,spalger/cdnjs,briznad/cdnjs,sjlu/cdnjs,mircobabini/cdnjs,pwnall/cdnjs,alexanderdickson/cdnjs,Stavrakakis/cdnjs,fleeting/cdnjs,kuldipem/cdnjs,ruo91/cdnjs,lxsli/cdnjs,peterwilli/cdnjs,hnakamur/cdnjs,bragma/cdnjs,wenzhixin/cdnjs,zaygraveyard/cdnjs,Kaakati/cdnjs,andersem/cdnjs,atlassian/cdnjs,xissy/cdnjs,JGallardo/cdnjs,mayur404/cdnjs,bachue/cdnjs,binki/cdnjs,svenanders/cdnjs,ejb/cdnjs,balupton/cdnjs,amsul/cdnjs,cluo/cdnjs,ramda/cdnjs,inlineblock/cdnjs,kostasx/cdnjs,genintho/cdnjs,ZaValera/cdnjs,SimeonC/cdnjs,opengeogroep/cdnjs,Eruant/cdnjs,msurguy/cdnjs,hhbyyh/cdnjs,adamschwartz/cdnjs,chrisdavies/cdnjs,fk/cdnjs,nesk/cdnjs,hanssens/cdnjs,ankitjamuar/cdnjs,mkoryak/cdnjs,ripple0328/cdnjs,adobe-webplatform/cdnjs,vfonic/cdnjs,bachue/cdnjs,wenliang-developer/cdnjs,pram22/cdnjs,RizkyAdiSaputra/cdnjs,ErikSchierboom/cdnjs,eldarion/cdnjs,hikaMaeng/cdnjs,dominicrico/cdnjs,aendrew/cdnjs,altmind/cdnjs,stefanocudini/cdnjs,bollwyvl/cdnjs,svvitale/cdnjs,ekeneijeoma/cdnjs,nolanlawson/cdnjs,snorpey/cdnjs,nostalgiaz/cdnjs,RizkyAdiSaputra/cdnjs,yahyaKacem/cdnjs,gswalden/cdnjs,ksaitor/cdnjs,kangax/cdnjs,hperrin/cdnjs,lhorie/cdnjs,mikelambert/cdnjs,bettiolo/cdnjs,andersem/cdnjs,karlfreeman/cdnjs,andidev/cdnjs,flosse/cdnjs,mojavelinux/cdnjs,jieter/cdnjs,zhengyongbo/cdnjs,knpwrs/cdnjs,tengyifei/cdnjs,joscha/cdnjs,fastest963/cdnjs,rm-hull/cdnjs,sdslabs/cdnjs,ComputerWolf/cdnjs,camelotceo/cdnjs,mgax/cdnjs,gagan-bansal/cdnjs,joscha/cdnjs,kentucky-roberts/cdnjs,aeharding/cdnjs,deanmalmgren/cdnjs,alejandroiglesias/cdnjs,thetable/cdnjs,msurguy/cdnjs,svvitale/cdnjs,arasmussen/cdnjs,hhbyyh/cdnjs,tianon/cdnjs,kevinsimper/cdnjs,viskin/cdnjs,barkinet/cdnjs,ooxi/cdnjs,thykka/cdnjs,jasny/cdnjs,ejb/cdnjs,gf3/cdnjs,robertmesserle/cdnjs,redapple/cdnjs,mathiasrw/cdnjs,rthor/cdnjs,gabel/cdnjs,robertmesserle/cdnjs,andrepiske/cdnjs,pastudan/cdnjs,stephenmathieson/cdnjs,zfben/cdnjs,mahemoff/cdnjs,rivanvx/cdnjs,aeharding/cdnjs,ahw/cdnjs,melvinchien/cdnjs,benjaminma/cdnjs,sullivanmatt/cdnjs,secobarbital/cdnjs,kodypeterson/cdnjs,urish/cdnjs,Pranay92/cdnjs,kitcambridge/cdnjs,andrepiske/cdnjs,matt-h/cdnjs,walterdavis/cdnjs,raimohanska/cdnjs,yahyaKacem/cdnjs,infosiftr/cdnjs,evanbleiweiss/cdnjs,rm-hull/cdnjs,atlassian/cdnjs,joaojeronimo/cdnjs,tomsoir/cdnjs,pkozlowski-opensource/cdnjs,lukeapage/cdnjs,iros/cdnjs,mfinelli/cdnjs,mihneasim/cdnjs,secobarbital/cdnjs,nevostruev/cdnjs,NamPNQ/cdnjs,Eunoia/cdnjs,dominic/cdnjs,jacoborus/cdnjs,amsul/cdnjs,siddii/cdnjs,underyx/cdnjs,DaAwesomeP/cdnjs,AlicanC/cdnjs,shallaa/cdnjs,kodypeterson/cdnjs,Kaakati/cdnjs,mikaelbr/cdnjs,pwnall/cdnjs,julian-maughan/cdnjs,abbychau/cdnjs,viskin/cdnjs,yukinying/cdnjs,spicyj/cdnjs,liftyourgame/cdnjs,hagabaka/cdnjs,jtrussell/cdnjs,johngerome/cdnjs,vdurmont/cdnjs,pram22/cdnjs,hhbyyh/cdnjs,KZeni/cdnjs,jasny/cdnjs,redapple/cdnjs,qooxdoo/cdnjs,angular-ui/cdnjs,jakubfiala/cdnjs,senekis/cdnjs,zaygraveyard/cdnjs,lxsli/cdnjs,pimterry/cdnjs,dbeckwith/cdnjs,hcxiong/cdnjs,aminghaderi/cdnjs,uglyog/cdnjs,LaurensRietveld/cdnjs,bettiolo/cdnjs,rwjblue/cdnjs,mikaelbr/cdnjs,apneadiving/cdnjs,JohnKim/cdnjs,simevidas/cdnjs,zhangbg/cdnjs,aheinze/cdnjs,thejsj/cdnjs,siddii/cdnjs,robertmesserle/cdnjs,pram22/cdnjs,akiran/cdnjs,errordeveloper/cdnjs,hristozov/cdnjs,jdanyow/cdnjs,RobLoach/cdnjs,flosse/cdnjs,relrod/cdnjs,benjaminma/cdnjs,tcorral/cdnjs,ripple0328/cdnjs,RubaXa/cdnjs,peteygao/cdnjs,SimeonC/cdnjs,fastest963/cdnjs,lxyu/cdnjs,hibrahimsafak/cdnjs,jako512/cdnjs,pazguille/cdnjs,ksaitor/cdnjs,xubowenjx/cdnjs,angular-ui/cdnjs,ZaValera/cdnjs,WireShout/cdnjs,Nadeermalangadan/cdnjs,altmind/cdnjs,bjjb/cdnjs,jtrussell/cdnjs,Nivl/cdnjs,michielbdejong/cdnjs,Pranay92/cdnjs,pvoznenko/cdnjs,xymostech/cdnjs,remy/cdnjs,CrossEye/cdnjs,steve-ng/cdnjs,migerh/cdnjs,jamzgoodguy/cdnjs,jonjaques/cdnjs,jdanyow/cdnjs,robrich/cdnjs,luislobo/cdnjs,mircobabini/cdnjs,gwezerek/cdnjs,homerjam/cdnjs,linagee/cdnjs,ErikSchierboom/cdnjs,mirthy/cdnjs,fatso83/cdnjs,lukeapage/cdnjs,ruiaraujo/cdnjs,willdady/cdnjs,tellnes/cdnjs,LSleutsky/cdnjs,zhaozhiming/cdnjs,Rich-Harris/cdnjs,algolia/cdnjs,ruo91/cdnjs,argyleink/cdnjs,mgoldsborough/cdnjs,gf3/cdnjs,xirzec/cdnjs,toddmotto/cdnjs,RobLoach/cdnjs,jmesnil/cdnjs,colourgarden/cdnjs,melvinchien/cdnjs,dominic/cdnjs,neveldo/cdnjs,mgoldsborough/cdnjs,thejsj/cdnjs,francescoagati/cdnjs,jessepollak/cdnjs,stuartpb/cdnjs,bryantrobbins/cdnjs,CosmicWebServices/cdnjs,megawac/cdnjs,fbender/cdnjs,rteasdale/cdnjs,mbjordan/cdnjs,bollwyvl/cdnjs,jamesarosen/cdnjs,stefanocudini/cdnjs,rthor/cdnjs,dhowe/cdnjs,idleberg/cdnjs,dangerbell/cdnjs,ruo91/cdnjs,codfish/cdnjs,warpech/cdnjs,starius/cdnjs,wolfflow/cdnjs,jonjaques/cdnjs,thejsj/cdnjs,me4502/cdnjs,luhad/cdnjs,Eruant/cdnjs,pkozlowski-opensource/cdnjs,fivetanley/cdnjs,saitheexplorer/cdnjs,fleeting/cdnjs,xirzec/cdnjs,runk/cdnjs,ZaValera/cdnjs,OnsenUI/cdnjs,andersem/cdnjs,ifandelse/cdnjs,djavaui/cdnjs,argyleink/cdnjs,snorpey/cdnjs,idleberg/cdnjs,stefanocudini/cdnjs,runk/cdnjs,chrillep/cdnjs,hibrahimsafak/cdnjs,amitabhaghosh197/cdnjs,xymostech/cdnjs,hperrin/cdnjs,dergachev/cdnjs,jamzgoodguy/cdnjs,tkirda/cdnjs,peterwilli/cdnjs,bettiolo/cdnjs,eduardo-costa/cdnjs,mkoryak/cdnjs,ruo91/cdnjs,manishas/cdnjs,jesstelford/cdnjs,spicyj/cdnjs,philipwalton/cdnjs,vitalets/cdnjs,ramda/cdnjs,RubaXa/cdnjs,hnakamur/cdnjs,LorenzoBoccaccia/cdnjs,mulderp/cdnjs,qooxdoo/cdnjs,RizkyAdiSaputra/cdnjs,hikaMaeng/cdnjs,linagee/cdnjs,robinskumar73/cdnjs,DeuxHuitHuit/cdnjs,hikaMaeng/cdnjs,JohnKim/cdnjs,binki/cdnjs,thetrickster/cdnjs,adobe-webplatform/cdnjs,me4502/cdnjs,zpao/cdnjs,bragma/cdnjs,kwokhou/cdnjs,cluo/cdnjs,Kaakati/cdnjs,mbjordan/cdnjs,fbender/cdnjs,Enelar/cdnjs,Eunoia/cdnjs,billpull/cdnjs,MEXXIO/cdnjs,nareshs435/cdnjs,LSleutsky/cdnjs,jimmytuc/cdnjs,maletor/cdnjs,Eunoia/cdnjs,tharakauka/cdnjs,shallaa/cdnjs,KZeni/cdnjs,bdukes/cdnjs,CrossEye/cdnjs,ksaitor/cdnjs,Sneezry/cdnjs,xubowenjx/cdnjs,fk/cdnjs,koggdal/cdnjs,aashish24/cdnjs,rwjblue/cdnjs,toddmotto/cdnjs,kwokhou/cdnjs,inlineblock/cdnjs,johngerome/cdnjs,scottdavis99/cdnjs,xeodou/cdnjs,joeylakay/cdnjs,billybonz1/cdnjs,brunoksato/cdnjs,tharakauka/cdnjs,ejb/cdnjs,sdslabs/cdnjs,mikaelbr/cdnjs,jimmybyrum/cdnjs,advancedpartnerships/cdnjs,enricodeleo/cdnjs,rivanvx/cdnjs,Flo-Schield-Bobby/cdnjs,camelotceo/cdnjs,ThibWeb/cdnjs,jozefizso/cdnjs,ruffle1986/cdnjs,askehansen/cdnjs,gabceb/cdnjs,mrehayden1/cdnjs,qiansen1386/cdnjs,danmasera/cdnjs,FrozenCow/cdnjs,carlsednaoui/cdnjs,jakubfiala/cdnjs,joeylakay/cdnjs,linagee/cdnjs,balupton/cdnjs,brycedorn/cdnjs,philipwalton/cdnjs,infosiftr/cdnjs,uglyog/cdnjs,mulderp/cdnjs,wenliang-developer/cdnjs,kirbyfan64/cdnjs,baig/cdnjs,stephenmathieson/cdnjs,contentfree/cdnjs,billpull/cdnjs,xubowenjx/cdnjs,aminghaderi/cdnjs,robrich/cdnjs,begriffs/cdnjs,hikaMaeng/cdnjs,scottdavis99/cdnjs,ahw/cdnjs,CrossEye/cdnjs,tmorin/cdnjs,andrepiske/cdnjs,jesstelford/cdnjs,vitalets/cdnjs,potomak/cdnjs,dangerbell/cdnjs,kood1/cdnjs,XVicarious/cdnjs,JGallardo/cdnjs,xeodou/cdnjs,yasyf/cdnjs,billpull/cdnjs,stefanpenner/cdnjs,steve-ng/cdnjs,angular-ui/cdnjs,rthor/cdnjs,remy/cdnjs,lhorie/cdnjs,nevostruev/cdnjs,viskin/cdnjs,kentucky-roberts/cdnjs,Nivl/cdnjs,peteygao/cdnjs,mathiasrw/cdnjs,hnakamur/cdnjs,iskitz/cdnjs,relrod/cdnjs,CodeAnimal/cdnjs,advancedpartnerships/cdnjs,askehansen/cdnjs,zhangbg/cdnjs,SanaNasar/cdnjs,codfish/cdnjs,deanius/cdnjs,LorenzoBoccaccia/cdnjs,zpao/cdnjs,DSpeichert/cdnjs,binaek89/cdnjs,remy/cdnjs,sadhat/cdnjs,sjaveed/cdnjs,mkoryak/cdnjs,fatso83/cdnjs,snorpey/cdnjs,aeharding/cdnjs,kwokhou/cdnjs,mirthy/cdnjs,thetrickster/cdnjs,silviopaganini/cdnjs,Xotic750/cdnjs,pcarrier/cdnjs,JacquesMarais/cdnjs,stefanpenner/cdnjs,vdurmont/cdnjs,MEXXIO/cdnjs,benjaminma/cdnjs,FaiblUG/cdnjs,fleeting/cdnjs,tengyifei/cdnjs,ruffle1986/cdnjs,nostalgiaz/cdnjs,aminghaderi/cdnjs,artch/cdnjs,jessepollak/cdnjs,dominicrico/cdnjs,akiran/cdnjs,kuldipem/cdnjs,walterdavis/cdnjs,Nadeermalangadan/cdnjs,evanbleiweiss/cdnjs,ksaitor/cdnjs,SimeonC/cdnjs,agraebe/cdnjs,warpech/cdnjs,EtienneLem/cdnjs,CosmicWebServices/cdnjs,yang/cdnjs,ZDroid/cdnjs,Stavrakakis/cdnjs,ErikSchierboom/cdnjs,zaygraveyard/cdnjs,tianon/cdnjs,flosse/cdnjs,bsquochoaidownloadfolders/cdnjs,ematsusaka/cdnjs,nostalgiaz/cdnjs,KZeni/cdnjs,matteofigus/cdnjs,ZaValera/cdnjs,walterdavis/cdnjs,binki/cdnjs,ooxi/cdnjs,bragma/cdnjs,philipwalton/cdnjs,peterwilli/cdnjs,yang/cdnjs,idleberg/cdnjs,hristozov/cdnjs,mbjordan/cdnjs,kpdecker/cdnjs,mojavelinux/cdnjs,jmusicc/cdnjs,mircobabini/cdnjs,kevinsimper/cdnjs,ljharb/cdnjs,sjaveed/cdnjs,mfinelli/cdnjs,jozefizso/cdnjs,pimterry/cdnjs,Eunoia/cdnjs,gagan-bansal/cdnjs,zaygraveyard/cdnjs,snorpey/cdnjs,anshulverma/cdnjs,argyleink/cdnjs,gasolin/cdnjs,geta6/cdnjs,brunoksato/cdnjs,ZDroid/cdnjs,noraesae/cdnjs,dhenson02/cdnjs,spicyj/cdnjs,tellnes/cdnjs,peteygao/cdnjs,bragma/cdnjs,balupton/cdnjs,anshulverma/cdnjs,jamesarosen/cdnjs,stefanpenner/cdnjs,msurguy/cdnjs,jonathan-fielding/cdnjs,anshulverma/cdnjs,zhengyongbo/cdnjs,WickyNilliams/cdnjs,schoren/cdnjs,advancedpartnerships/cdnjs,pzp1997/cdnjs,tybenz/cdnjs,jacoborus/cdnjs,chrillep/cdnjs,Rbeuque74/cdnjs,luislobo/cdnjs,jmesnil/cdnjs,karlfreeman/cdnjs,ekeneijeoma/cdnjs,paleozogt/cdnjs,F2X/cdnjs,icambron/cdnjs,silviopaganini/cdnjs,pzp1997/cdnjs,JGallardo/cdnjs,robinskumar73/cdnjs,karlfreeman/cdnjs,Rbeuque74/cdnjs,sarmadsangi/cdnjs,gwezerek/cdnjs,dryabov/cdnjs,fredericksilva/cdnjs,dok/cdnjs,mplacona/cdnjs,lxsli/cdnjs,aendrew/cdnjs,gaearon/cdnjs,RubaXa/cdnjs,mbjordan/cdnjs,yasyf/cdnjs,flosse/cdnjs,CosmicWebServices/cdnjs,lxyu/cdnjs,tianon/cdnjs,JKirchartz/cdnjs,MMore/cdnjs,JohnKim/cdnjs,matteofigus/cdnjs,Stavrakakis/cdnjs,mgax/cdnjs,ooxi/cdnjs,bjjb/cdnjs,SimeonC/cdnjs,pid/cdnjs,aendrew/cdnjs,kwokhou/cdnjs,jimmytuc/cdnjs,eduardo-costa/cdnjs,tambien/cdnjs,dfernandez79/cdnjs,wprl/cdnjs,redapple/cdnjs,GaryChamberlain/cdnjs,megawac/cdnjs,robinskumar73/cdnjs,ericmittelhammer/cdnjs,wprl/cdnjs,tomsoir/cdnjs,Marsup/cdnjs,tybenz/cdnjs,luigimannoni/cdnjs,schoren/cdnjs,hagabaka/cdnjs,Flo-Schield-Bobby/cdnjs,mplacona/cdnjs,urish/cdnjs,danmasera/cdnjs,aFarkas/cdnjs,LostCrew/cdnjs,lxsli/cdnjs,dfernandez79/cdnjs,sadhat/cdnjs,robertmesserle/cdnjs,pastudan/cdnjs,thyb/cdnjs,nwhitehead/cdnjs,Ryuno-Ki/cdnjs,masimakopoulos/cdnjs,inlineblock/cdnjs,aashish24/cdnjs,a8m/cdnjs,sdslabs/cdnjs,emmansun/cdnjs,kuriyama/cdnjs,deanius/cdnjs,luhad/cdnjs,jmesnil/cdnjs,bryantrobbins/cdnjs,gf3/cdnjs,andidev/cdnjs,iskitz/cdnjs,secobarbital/cdnjs,balupton/cdnjs,brycedorn/cdnjs,eldarion/cdnjs,sevab/cdnjs,ThibWeb/cdnjs,nagyist/OpenF2-cdnjs,qiansen1386/cdnjs,tybenz/cdnjs,sjlu/cdnjs,sullivanmatt/cdnjs,urish/cdnjs,wangsai/cdnjs,jieter/cdnjs,vitalets/cdnjs,tomalec/cdnjs,aeharding/cdnjs,dennismartensson/cdnjs,mihneasim/cdnjs,tharakauka/cdnjs,lmccart/cdnjs,me4502/cdnjs,billpull/cdnjs,jako512/cdnjs,gionkunz/cdnjs,simevidas/cdnjs,deanius/cdnjs,reustle/cdnjs,knpwrs/cdnjs,ruo91/cdnjs,bdukes/cdnjs,EtienneLem/cdnjs,sujonvidia/cdnjs,haferje/cdnjs,lmccart/cdnjs,ematsusaka/cdnjs,mrehayden1/cdnjs,aeharding/cdnjs,xissy/cdnjs,adamschwartz/cdnjs,zpao/cdnjs,maralla/cdnjs,Stavrakakis/cdnjs,zpao/cdnjs,bevacqua/cdnjs,hperrin/cdnjs,ramda/cdnjs,francescoagati/cdnjs,tianon/cdnjs,maralla/cdnjs,yogeshsaroya/cdnjs,Flo-Schield-Bobby/cdnjs,victor-istomin/cdnjs,rigdern/cdnjs,mirthy/cdnjs,jesstelford/cdnjs,ruiaraujo/cdnjs,Marsup/cdnjs,opengeogroep/cdnjs,jaslernl/cdnjs,koggdal/cdnjs,aheinze/cdnjs,teropa/cdnjs,gasolin/cdnjs,mplacona/cdnjs,KoryNunn/cdnjs,pimterry/cdnjs,DeuxHuitHuit/cdnjs,atlassian/cdnjs,jemmy655/cdnjs,jieter/cdnjs,andyinabox/cdnjs,lhorie/cdnjs,icambron/cdnjs,hibrahimsafak/cdnjs,mzdani/cdnjs,svenanders/cdnjs,FrozenCow/cdnjs,legomushroom/cdnjs,joseluisq/cdnjs,jozefizso/cdnjs,kitcambridge/cdnjs,fivetanley/cdnjs,melvinchien/cdnjs,kostasx/cdnjs,jamzgoodguy/cdnjs,fivetanley/cdnjs,DaAwesomeP/cdnjs,mihneasim/cdnjs,ooxi/cdnjs,starius/cdnjs,adamschwartz/cdnjs,saitheexplorer/cdnjs,liftyourgame/cdnjs,mikaelbr/cdnjs,megawac/cdnjs,johnvoloski/cdnjs,ThibWeb/cdnjs,knpwrs/cdnjs,djavaui/cdnjs,gereon/cdnjs,kenwheeler/cdnjs,Nivl/cdnjs,jaslernl/cdnjs,spalger/cdnjs,CrossEye/cdnjs,xymostech/cdnjs,hristozov/cdnjs,coupang/cdnjs,ekeneijeoma/cdnjs,JacquesMarais/cdnjs,wprl/cdnjs,Rich-Harris/cdnjs,altmind/cdnjs,potomak/cdnjs,asilvas/cdnjs,joseluisq/cdnjs,HealthIndicators/cdnjs,xrmx/cdnjs,thykka/cdnjs,reustle/cdnjs,Ryuno-Ki/cdnjs,tomsoir/cdnjs,teropa/cdnjs,iskitz/cdnjs,vdurmont/cdnjs,lol768/cdnjs,stomita/cdnjs,gereon/cdnjs,svenanders/cdnjs,mgonto/cdnjs,raszi/cdnjs,johnvoloski/cdnjs,iskitz/cdnjs,ejb/cdnjs,bryantrobbins/cdnjs,asilvas/cdnjs,altmind/cdnjs,dereckson/cdnjs,JGallardo/cdnjs,reustle/cdnjs,spalger/cdnjs,szimek/cdnjs,potomak/cdnjs,relrod/cdnjs,nareshs435/cdnjs,pwnall/cdnjs,hagabaka/cdnjs,algolia/cdnjs,johnvoloski/cdnjs,steakknife/cdnjs,ComputerWolf/cdnjs,luigimannoni/cdnjs,Rich-Harris/cdnjs,OnsenUI/cdnjs,XVicarious/cdnjs,bragma/cdnjs,opal/cdnjs,fatso83/cdnjs,mzdani/cdnjs,pwnall/cdnjs,jozefizso/cdnjs,Enelar/cdnjs,kevinburke/cdnjs,wangsai/cdnjs,aheinze/cdnjs,gogoleva/cdnjs,raimohanska/cdnjs,nolanlawson/cdnjs,homerjam/cdnjs,tomsoir/cdnjs,binki/cdnjs,jonathan-fielding/cdnjs,underyx/cdnjs,AlexisArce/cdnjs,mfidemraizer/cdnjs,wangsai/cdnjs,sarmadsangi/cdnjs,NUKnightLab/cdnjs,amitabhaghosh197/cdnjs,ifandelse/cdnjs,lxyu/cdnjs,deanmalmgren/cdnjs,kirbyfan64/cdnjs,nagyist/OpenF2-cdnjs,eldarion/cdnjs,msurguy/cdnjs,victor-istomin/cdnjs,mrehayden1/cdnjs,remy/cdnjs,AlicanC/cdnjs,mahemoff/cdnjs,maxklenk/cdnjs,gaearon/cdnjs,argyleink/cdnjs,FrozenCow/cdnjs,jozefizso/cdnjs,mahemoff/cdnjs,RubaXa/cdnjs,jimmybyrum/cdnjs,mulderp/cdnjs,aminghaderi/cdnjs,kevinburke/cdnjs,amsul/cdnjs,jakubfiala/cdnjs,icambron/cdnjs,mrehayden1/cdnjs,mplacona/cdnjs,dok/cdnjs,jamzgoodguy/cdnjs,xrmx/cdnjs,kentucky-roberts/cdnjs,jtrussell/cdnjs,begriffs/cdnjs,gabel/cdnjs,xeodou/cdnjs,ripple0328/cdnjs,LaurensRietveld/cdnjs,adamschwartz/cdnjs,icco/cdnjs,LorenzoBoccaccia/cdnjs,dangerbell/cdnjs,dhenson02/cdnjs,tomalec/cdnjs,thejsj/cdnjs,Enelar/cdnjs,johngerome/cdnjs,StoneCypher/cdnjs,thyb/cdnjs,jieter/cdnjs,nevostruev/cdnjs,Eruant/cdnjs,kpdecker/cdnjs,thesandlord/cdnjs,vdurmont/cdnjs,matt-h/cdnjs,xirzec/cdnjs,chrisharrington/cdnjs,Xotic750/cdnjs,tresni/cdnjs,paleozogt/cdnjs,szimek/cdnjs,kirbyfan64/cdnjs,willdady/cdnjs,camelotceo/cdnjs,kristoferjoseph/cdnjs,potomak/cdnjs,robrich/cdnjs,maletor/cdnjs,xissy/cdnjs,tresni/cdnjs,cluo/cdnjs,dfernandez79/cdnjs,jamesarosen/cdnjs,luislobo/cdnjs,manishas/cdnjs,liftyourgame/cdnjs,gswalden/cdnjs,NamPNQ/cdnjs,dereckson/cdnjs,AlicanC/cdnjs,brunoksato/cdnjs,peterwilli/cdnjs,ahw/cdnjs,steakknife/cdnjs,gionkunz/cdnjs,robfletcher/cdnjs,FaiblUG/cdnjs,jonathan-fielding/cdnjs,yogeshsaroya/cdnjs,ahw/cdnjs,jimmytuc/cdnjs,svenanders/cdnjs,opengeogroep/cdnjs,kristoferjoseph/cdnjs,kitcambridge/cdnjs,lenniboy/cdnjs,robfletcher/cdnjs,johnvoloski/cdnjs,michielbdejong/cdnjs,begriffs/cdnjs,lhorie/cdnjs,ruffle1986/cdnjs,jemmy655/cdnjs,pid/cdnjs,barkinet/cdnjs,dennismartensson/cdnjs,jmusicc/cdnjs,ZaValera/cdnjs,yahyaKacem/cdnjs,NUKnightLab/cdnjs,nagyist/OpenF2-cdnjs,warpech/cdnjs,kenwheeler/cdnjs,reezer/cdnjs,dryabov/cdnjs,rivanvx/cdnjs,brycedorn/cdnjs,rivanvx/cdnjs,jemmy655/cdnjs,linagee/cdnjs,francescoagati/cdnjs,sullivanmatt/cdnjs,johan-gorter/cdnjs,joaojeronimo/cdnjs,binaek89/cdnjs,cluo/cdnjs,camelotceo/cdnjs,hanssens/cdnjs,andersem/cdnjs,ruiaraujo/cdnjs,Eruant/cdnjs,a8m/cdnjs,luislobo/cdnjs,haferje/cdnjs,bollwyvl/cdnjs,yang/cdnjs,viskin/cdnjs,raimohanska/cdnjs,solojavier/cdnjs,jmusicc/cdnjs,rteasdale/cdnjs,tomalec/cdnjs,johan-gorter/cdnjs,pastudan/cdnjs,thykka/cdnjs,F2X/cdnjs,baig/cdnjs,viskin/cdnjs,nevostruev/cdnjs,zhaozhiming/cdnjs,sdslabs/cdnjs,coupang/cdnjs,ComputerWolf/cdnjs,pcarrier/cdnjs,rigdern/cdnjs,nagyist/OpenF2-cdnjs,LostCrew/cdnjs,gwezerek/cdnjs,robinskumar73/cdnjs,CodeAnimal/cdnjs,xymostech/cdnjs,nostalgiaz/cdnjs,chrisdavies/cdnjs,franckbrunet/cdnjs | json | ## Code Before:
{
"name": "jquery.ba-bbq",
"filename": "jquery.ba-bbq.min.js",
"version": "1.2.1",
"description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods",
"homepage": "http://benalman.com/projects/jquery-bbq-plugin/",
"keywords": [
"jquery",
"history"
],
"maintainers": [
{
"name": "Ben Alman",
"web": "http://benalman.com/"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/cowboy/jquery-bbq"
}
]
}
## Instruction:
jquery.ba-bbq: Add missing dependency on ≥jquery-1.2.6.
## Code After:
{
"name": "jquery.ba-bbq",
"filename": "jquery.ba-bbq.min.js",
"version": "1.2.1",
"description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods",
"homepage": "http://benalman.com/projects/jquery-bbq-plugin/",
"keywords": [
"jquery",
"history"
],
"maintainers": [
{
"name": "Ben Alman",
"web": "http://benalman.com/"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/cowboy/jquery-bbq"
}
],
"dependencies": {
"jquery": "1.2.6"
}
}
| {
"name": "jquery.ba-bbq",
"filename": "jquery.ba-bbq.min.js",
"version": "1.2.1",
"description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods",
"homepage": "http://benalman.com/projects/jquery-bbq-plugin/",
"keywords": [
"jquery",
"history"
],
"maintainers": [
{
"name": "Ben Alman",
"web": "http://benalman.com/"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/cowboy/jquery-bbq"
}
- ]
+ ],
? +
-
+ "dependencies": {
+ "jquery": "1.2.6"
+ }
}
| 6 | 0.24 | 4 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.