commit
stringlengths 40
40
| old_file
stringlengths 4
237
| new_file
stringlengths 4
237
| old_contents
stringlengths 1
4.24k
| new_contents
stringlengths 5
4.84k
| subject
stringlengths 15
778
| message
stringlengths 16
6.86k
| lang
stringlengths 1
30
| license
stringclasses 13
values | repos
stringlengths 5
116k
| config
stringlengths 1
30
| content
stringlengths 105
8.72k
|
---|---|---|---|---|---|---|---|---|---|---|---|
1979204ddddcb1b0d07f649ebc6614a4ec0d5fe4 | lib/carto/db/migration_helper.rb | lib/carto/db/migration_helper.rb | module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
transaction
up do
lock_safe_migration(&up_block)
end
down do
lock_safe_migration(&down_block)
end
end
end
private
def lock_safe_migration(&block)
run "SET lock_timeout TO #{LOCK_TIMEOUT_MS}"
# As the external transaction is controlled by Sequel, we cannot ROLLBACK and BEGIN a new one
# Instead, we use SAVEPOINTs (https://www.postgresql.org/docs/current/static/sql-savepoint.html)
# to start a "sub-transaction" that we can rollback without affecting Sequel
run 'SAVEPOINT before_migration'
(1..MAX_RETRIES).each do
begin
instance_eval &block
return
rescue Sequel::DatabaseError => e
if e.message.include?('lock timeout')
# In case of timeout, we retry by reexecuting the code since the SAVEPOINT
run 'ROLLBACK TO SAVEPOINT before_migration'
sleep WAIT_BETWEEN_RETRIES_S
else
raise e
end
end
end
# Raising an exception forces Sequel to rollback the entire transaction
raise 'Retries exceeded during database migration'
ensure
run "SET lock_timeout TO DEFAULT"
end
end
end
end
| module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
transaction
up do
lock_safe_migration(&up_block)
end
down do
lock_safe_migration(&down_block)
end
end
end
private
def lock_safe_migration(&block)
run "SET lock_timeout TO #{LOCK_TIMEOUT_MS}"
# As the external transaction is controlled by Sequel, we cannot ROLLBACK and BEGIN a new one
# Instead, we use SAVEPOINTs (https://www.postgresql.org/docs/current/static/sql-savepoint.html)
# to start a "sub-transaction" that we can rollback without affecting Sequel
run 'SAVEPOINT before_migration'
(1..MAX_RETRIES).each do
begin
instance_eval &block
return
rescue Sequel::DatabaseError => e
if e.message.include?('lock timeout')
# In case of timeout, we retry by reexecuting the code since the SAVEPOINT
run 'ROLLBACK TO SAVEPOINT before_migration'
sleep WAIT_BETWEEN_RETRIES_S
else
puts e.message
raise e
end
end
end
# Raising an exception forces Sequel to rollback the entire transaction
raise 'Retries exceeded during database migration'
ensure
run "SET lock_timeout TO DEFAULT"
end
end
end
end
| Add extra error information to migration helper | Add extra error information to migration helper
| Ruby | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,splashblot/dronedb | ruby | ## Code Before:
module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
transaction
up do
lock_safe_migration(&up_block)
end
down do
lock_safe_migration(&down_block)
end
end
end
private
def lock_safe_migration(&block)
run "SET lock_timeout TO #{LOCK_TIMEOUT_MS}"
# As the external transaction is controlled by Sequel, we cannot ROLLBACK and BEGIN a new one
# Instead, we use SAVEPOINTs (https://www.postgresql.org/docs/current/static/sql-savepoint.html)
# to start a "sub-transaction" that we can rollback without affecting Sequel
run 'SAVEPOINT before_migration'
(1..MAX_RETRIES).each do
begin
instance_eval &block
return
rescue Sequel::DatabaseError => e
if e.message.include?('lock timeout')
# In case of timeout, we retry by reexecuting the code since the SAVEPOINT
run 'ROLLBACK TO SAVEPOINT before_migration'
sleep WAIT_BETWEEN_RETRIES_S
else
raise e
end
end
end
# Raising an exception forces Sequel to rollback the entire transaction
raise 'Retries exceeded during database migration'
ensure
run "SET lock_timeout TO DEFAULT"
end
end
end
end
## Instruction:
Add extra error information to migration helper
## Code After:
module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
transaction
up do
lock_safe_migration(&up_block)
end
down do
lock_safe_migration(&down_block)
end
end
end
private
def lock_safe_migration(&block)
run "SET lock_timeout TO #{LOCK_TIMEOUT_MS}"
# As the external transaction is controlled by Sequel, we cannot ROLLBACK and BEGIN a new one
# Instead, we use SAVEPOINTs (https://www.postgresql.org/docs/current/static/sql-savepoint.html)
# to start a "sub-transaction" that we can rollback without affecting Sequel
run 'SAVEPOINT before_migration'
(1..MAX_RETRIES).each do
begin
instance_eval &block
return
rescue Sequel::DatabaseError => e
if e.message.include?('lock timeout')
# In case of timeout, we retry by reexecuting the code since the SAVEPOINT
run 'ROLLBACK TO SAVEPOINT before_migration'
sleep WAIT_BETWEEN_RETRIES_S
else
puts e.message
raise e
end
end
end
# Raising an exception forces Sequel to rollback the entire transaction
raise 'Retries exceeded during database migration'
ensure
run "SET lock_timeout TO DEFAULT"
end
end
end
end
|
f87eb1e65144f07dcd7127f283c2d0aded0528d3 | app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java | app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java | package fr.free.nrw.commons.auth;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d("SignupActivity", "Signup Activity started");
WebView webView = new WebView(this);
setContentView(webView);
//myWebView.loadUrl("https://commons.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page");
//Mobile page, looks better than the above
webView.loadUrl("https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes");
//After Create Account button is pressed within WebView, it brings user to https://commons.wikimedia.org/wiki/Main_Page. So can we just override that URL?
//Do we NEED to enable JS? Validation seems to work fine here
}
}
| package fr.free.nrw.commons.auth;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d("SignupActivity", "Signup Activity started");
WebView webView = new WebView(this);
setContentView(webView);
webView.setWebViewClient(new MyWebViewClient());
//myWebView.loadUrl("https://commons.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page");
//Mobile page, looks better than the above
webView.loadUrl("https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes");
//After Create Account button is pressed within WebView, it brings user to https://commons.m.wikimedia.org/w/index.php?title=Main_Page&welcome=yes. So can we just override that URL?
//Do we NEED to enable JS? Validation seems to work fine here
}
private class MyWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (Uri.parse(url).getHost().equals("www.example.com")) {
// This is my web site, so do not override; let my WebView load the page
return false;
}
// Otherwise, the link is not for a page on my site, so launch another Activity that handles URLs
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
return true;
}
}
}
| Change URLs and add MyWebViewClient | Change URLs and add MyWebViewClient
| Java | apache-2.0 | neslihanturan/apps-android-commons,domdomegg/apps-android-commons,sandarumk/apps-android-commons,akaita/apps-android-commons,neslihanturan/apps-android-commons,dbrant/apps-android-commons,whym/apps-android-commons,whym/apps-android-commons,misaochan/apps-android-commons,dbrant/apps-android-commons,psh/apps-android-commons,nicolas-raoul/apps-android-commons,maskaravivek/apps-android-commons,RSBat/apps-android-commons,psh/apps-android-commons,dbrant/apps-android-commons,misaochan/apps-android-commons,misaochan/apps-android-commons,whym/apps-android-commons,commons-app/apps-android-commons,neslihanturan/apps-android-commons,misaochan/apps-android-commons,tobias47n9e/apps-android-commons,domdomegg/apps-android-commons,wikimedia/apps-android-commons,commons-app/apps-android-commons,nicolas-raoul/apps-android-commons,domdomegg/apps-android-commons,maskaravivek/apps-android-commons,neslihanturan/apps-android-commons,maskaravivek/apps-android-commons,psh/apps-android-commons,domdomegg/apps-android-commons,psh/apps-android-commons,dbrant/apps-android-commons,commons-app/apps-android-commons,neslihanturan/apps-android-commons,sandarumk/apps-android-commons,tobias47n9e/apps-android-commons,nicolas-raoul/apps-android-commons,maskaravivek/apps-android-commons,nicolas-raoul/apps-android-commons,commons-app/apps-android-commons,psh/apps-android-commons,maskaravivek/apps-android-commons,misaochan/apps-android-commons,akaita/apps-android-commons,RSBat/apps-android-commons,akaita/apps-android-commons,wikimedia/apps-android-commons,wikimedia/apps-android-commons,sandarumk/apps-android-commons,whym/apps-android-commons,tobias47n9e/apps-android-commons,commons-app/apps-android-commons,domdomegg/apps-android-commons,RSBat/apps-android-commons,misaochan/apps-android-commons | java | ## Code Before:
package fr.free.nrw.commons.auth;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d("SignupActivity", "Signup Activity started");
WebView webView = new WebView(this);
setContentView(webView);
//myWebView.loadUrl("https://commons.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page");
//Mobile page, looks better than the above
webView.loadUrl("https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes");
//After Create Account button is pressed within WebView, it brings user to https://commons.wikimedia.org/wiki/Main_Page. So can we just override that URL?
//Do we NEED to enable JS? Validation seems to work fine here
}
}
## Instruction:
Change URLs and add MyWebViewClient
## Code After:
package fr.free.nrw.commons.auth;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d("SignupActivity", "Signup Activity started");
WebView webView = new WebView(this);
setContentView(webView);
webView.setWebViewClient(new MyWebViewClient());
//myWebView.loadUrl("https://commons.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page");
//Mobile page, looks better than the above
webView.loadUrl("https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes");
//After Create Account button is pressed within WebView, it brings user to https://commons.m.wikimedia.org/w/index.php?title=Main_Page&welcome=yes. So can we just override that URL?
//Do we NEED to enable JS? Validation seems to work fine here
}
private class MyWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (Uri.parse(url).getHost().equals("www.example.com")) {
// This is my web site, so do not override; let my WebView load the page
return false;
}
// Otherwise, the link is not for a page on my site, so launch another Activity that handles URLs
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
return true;
}
}
}
|
47593fae71deb378bd60a14d1b6f4a3a2bb98bf6 | pitz.py | pitz.py |
import sys
import subprocess
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
subprocess.call(["pitz-%s" % cmd] + new_args)
|
import sys
import subprocess
def _help():
subprocess.call(['pitz-help'])
sys.exit(1)
if len(sys.argv) < 2:
_help()
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
try:
subprocess.call(["pitz-%s" % cmd] + new_args)
except OSError as exc:
_help()
| Add at least a minimal exception handling (missing subcommand). | Add at least a minimal exception handling (missing subcommand).
| Python | bsd-3-clause | mw44118/pitz,mw44118/pitz,mw44118/pitz | python | ## Code Before:
import sys
import subprocess
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
subprocess.call(["pitz-%s" % cmd] + new_args)
## Instruction:
Add at least a minimal exception handling (missing subcommand).
## Code After:
import sys
import subprocess
def _help():
subprocess.call(['pitz-help'])
sys.exit(1)
if len(sys.argv) < 2:
_help()
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
try:
subprocess.call(["pitz-%s" % cmd] + new_args)
except OSError as exc:
_help()
|
5cd037da4ec58ddc1908cc82199688d62a7b10fb | README.md | README.md | Reservira
=========
[![Build Status](https://travis-ci.org/GanfOfFourOrFive/reservira.svg)](https://travis-ci.org/GanfOfFourOrFive/reservira)
[![Code Climate](https://codeclimate.com/github/GanfOfFourOrFive/reservira.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Code Coverage](https://codeclimate.com/github/GanfOfFourOrFive/reservira/coverage.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Dependency Status](https://gemnasium.com/GanfOfFourOrFive/reservira.svg)](https://gemnasium.com/GanfOfFourOrFive/reservira)
| Reservira
=========
[![Build Status](https://travis-ci.org/GanfOfFourOrFive/reservira.svg?branch=master)](https://travis-ci.org/GanfOfFourOrFive/reservira)
[![Code Climate](https://codeclimate.com/github/GanfOfFourOrFive/reservira.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Code Coverage](https://codeclimate.com/github/GanfOfFourOrFive/reservira/coverage.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Dependency Status](https://gemnasium.com/GanfOfFourOrFive/reservira.svg)](https://gemnasium.com/GanfOfFourOrFive/reservira)
| Fix the TravisCI Badge. Now show the only the status of master branch | Fix the TravisCI Badge. Now show the only the status of master branch
| Markdown | mit | GanfOfFourOrFive/reservira,GanfOfFourOrFive/reservira | markdown | ## Code Before:
Reservira
=========
[![Build Status](https://travis-ci.org/GanfOfFourOrFive/reservira.svg)](https://travis-ci.org/GanfOfFourOrFive/reservira)
[![Code Climate](https://codeclimate.com/github/GanfOfFourOrFive/reservira.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Code Coverage](https://codeclimate.com/github/GanfOfFourOrFive/reservira/coverage.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Dependency Status](https://gemnasium.com/GanfOfFourOrFive/reservira.svg)](https://gemnasium.com/GanfOfFourOrFive/reservira)
## Instruction:
Fix the TravisCI Badge. Now show the only the status of master branch
## Code After:
Reservira
=========
[![Build Status](https://travis-ci.org/GanfOfFourOrFive/reservira.svg?branch=master)](https://travis-ci.org/GanfOfFourOrFive/reservira)
[![Code Climate](https://codeclimate.com/github/GanfOfFourOrFive/reservira.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Code Coverage](https://codeclimate.com/github/GanfOfFourOrFive/reservira/coverage.png)](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[![Dependency Status](https://gemnasium.com/GanfOfFourOrFive/reservira.svg)](https://gemnasium.com/GanfOfFourOrFive/reservira)
|
a7aa7ff35f5e7a14022456ecc30a3870c8cbe3f3 | misc-system-utils/mass-puppet-fix.sh | misc-system-utils/mass-puppet-fix.sh | brokenmodules=$(puppet-lint ./modules | awk -F "-" '!/nagios/ {print $1}' | uniq)
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
| brokenmodules=$(puppet-lint ./modules | awk -F "-" '{print $1}' | uniq)
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
| Fix erroneous regex in cmd | Fix erroneous regex in cmd
| Shell | bsd-2-clause | RainbowHackerHorse/Stuffnthings,RainbowHackz/Stuffnthings | shell | ## Code Before:
brokenmodules=$(puppet-lint ./modules | awk -F "-" '!/nagios/ {print $1}' | uniq)
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
## Instruction:
Fix erroneous regex in cmd
## Code After:
brokenmodules=$(puppet-lint ./modules | awk -F "-" '{print $1}' | uniq)
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
|
e27beea0c10a1a3bf750d3c37ae16e1def68d822 | src/less/modules/panel-fullscreen.less | src/less/modules/panel-fullscreen.less | .panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
border-radius: 0;
}
.panel-body.student-list {
height: 20vh;
resize: vertical;
max-height: 40vh;
overflow: scroll;
border-bottom: 2px solid #428bca;
box-shadow: 1px 1px 3px;
}
.panel-body.project-show {
overflow-y: scroll;
-webkit-flex: 1;
flex: 1;
position: relative;
&.no-padding {
padding: 0px;
}
.panel, .panel-heading {
border-radius: 0;
}
.nothing-selected {
.large-notice-block;
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
font-size: 3em;
text-align: center;
font-weight: 300;
i, p {
display: block;
width: 100%;
margin-bottom: 0.75em;
}
}
}
}
*:not(.fullscreen) .panel-body {
height: auto !important; // Needs to be important to override resize
}
| .panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
border-radius: 0;
}
.panel-body.student-list {
height: 20vh;
resize: vertical;
max-height: 40vh;
overflow: scroll;
border-bottom: 2px solid #428bca;
box-shadow: 1px 1px 3px;
}
.panel-body.project-show {
overflow-y: scroll;
-webkit-flex: 1;
flex: 1;
position: relative;
&.no-padding {
padding: 0px;
}
.panel, .panel-heading {
border-radius: 0;
}
.nothing-selected {
.large-notice-block;
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
font-size: 3em;
text-align: center;
font-weight: 300;
i, p {
display: block;
width: 100%;
margin-bottom: 0.75em;
}
}
}
}
| Fix issue where PDF viewers were not showing PDF | FIX: Fix issue where PDF viewers were not showing PDF
| Less | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web,alexcu/doubtfire-web | less | ## Code Before:
.panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
border-radius: 0;
}
.panel-body.student-list {
height: 20vh;
resize: vertical;
max-height: 40vh;
overflow: scroll;
border-bottom: 2px solid #428bca;
box-shadow: 1px 1px 3px;
}
.panel-body.project-show {
overflow-y: scroll;
-webkit-flex: 1;
flex: 1;
position: relative;
&.no-padding {
padding: 0px;
}
.panel, .panel-heading {
border-radius: 0;
}
.nothing-selected {
.large-notice-block;
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
font-size: 3em;
text-align: center;
font-weight: 300;
i, p {
display: block;
width: 100%;
margin-bottom: 0.75em;
}
}
}
}
*:not(.fullscreen) .panel-body {
height: auto !important; // Needs to be important to override resize
}
## Instruction:
FIX: Fix issue where PDF viewers were not showing PDF
## Code After:
.panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
border-radius: 0;
}
.panel-body.student-list {
height: 20vh;
resize: vertical;
max-height: 40vh;
overflow: scroll;
border-bottom: 2px solid #428bca;
box-shadow: 1px 1px 3px;
}
.panel-body.project-show {
overflow-y: scroll;
-webkit-flex: 1;
flex: 1;
position: relative;
&.no-padding {
padding: 0px;
}
.panel, .panel-heading {
border-radius: 0;
}
.nothing-selected {
.large-notice-block;
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
font-size: 3em;
text-align: center;
font-weight: 300;
i, p {
display: block;
width: 100%;
margin-bottom: 0.75em;
}
}
}
}
|
7068622908262b6bd41fc77526468427bb7ab810 | Resources/config/services.yml | Resources/config/services.yml | services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
| services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
public: true
| Mark the paginator service as public since the intention is to use it from other bundles | Mark the paginator service as public since the intention is to use it from other bundles
| YAML | mit | efrag/EfragPaginatorBundle | yaml | ## Code Before:
services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
## Instruction:
Mark the paginator service as public since the intention is to use it from other bundles
## Code After:
services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
public: true
|
f72219a27927a3c944e71adf6c97016d8cd5dbea | Casks/lazarus.rb | Casks/lazarus.rb | class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
end
| class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
uninstall :pkgutil => 'org.freepascal.lazarus.www'
end
| Add uninstall stanza for Lazarus | Add uninstall stanza for Lazarus
| Ruby | bsd-2-clause | markthetech/homebrew-cask,rubenerd/homebrew-cask,brianshumate/homebrew-cask,danielgomezrico/homebrew-cask,asins/homebrew-cask,dlackty/homebrew-cask,malford/homebrew-cask,exherb/homebrew-cask,epardee/homebrew-cask,chrisRidgers/homebrew-cask,bchatard/homebrew-cask,gilesdring/homebrew-cask,JosephViolago/homebrew-cask,joaocc/homebrew-cask,gyndav/homebrew-cask,csmith-palantir/homebrew-cask,retrography/homebrew-cask,xcezx/homebrew-cask,schneidmaster/homebrew-cask,maxnordlund/homebrew-cask,daften/homebrew-cask,reelsense/homebrew-cask,djmonta/homebrew-cask,fazo96/homebrew-cask,sysbot/homebrew-cask,kievechua/homebrew-cask,howie/homebrew-cask,nightscape/homebrew-cask,dictcp/homebrew-cask,josa42/homebrew-cask,boecko/homebrew-cask,josa42/homebrew-cask,cprecioso/homebrew-cask,MicTech/homebrew-cask,stonehippo/homebrew-cask,lieuwex/homebrew-cask,j13k/homebrew-cask,mahori/homebrew-cask,hackhandslabs/homebrew-cask,Ngrd/homebrew-cask,ftiff/homebrew-cask,seanzxx/homebrew-cask,catap/homebrew-cask,stevenmaguire/homebrew-cask,tolbkni/homebrew-cask,wolflee/homebrew-cask,RogerThiede/homebrew-cask,antogg/homebrew-cask,winkelsdorf/homebrew-cask,samdoran/homebrew-cask,djakarta-trap/homebrew-myCask,qnm/homebrew-cask,dcondrey/homebrew-cask,rkJun/homebrew-cask,FinalDes/homebrew-cask,rajiv/homebrew-cask,ninjahoahong/homebrew-cask,flada-auxv/homebrew-cask,sirodoht/homebrew-cask,Ketouem/homebrew-cask,elseym/homebrew-cask,malob/homebrew-cask,theoriginalgri/homebrew-cask,kolomiichenko/homebrew-cask,nightscape/homebrew-cask,yutarody/homebrew-cask,LaurentFough/homebrew-cask,wayou/homebrew-cask,Dremora/homebrew-cask,dlackty/homebrew-cask,esebastian/homebrew-cask,jawshooah/homebrew-cask,inz/homebrew-cask,jayshao/homebrew-cask,kamilboratynski/homebrew-cask,iamso/homebrew-cask,jmeridth/homebrew-cask,hanxue/caskroom,mazehall/homebrew-cask,inta/homebrew-cask,garborg/homebrew-cask,mhubig/homebrew-cask,andyli/homebrew-cask,ebraminio/homebrew-cask,genewoo/homebrew-cask,wizonesolutions/homebrew-cask,xiongchiamiov/homebrew-cask,kevyau/homebrew-cask,tjnycum/homebrew-cask,Amorymeltzer/homebrew-cask,faun/homebrew-cask,atsuyim/homebrew-cask,miccal/homebrew-cask,shoichiaizawa/homebrew-cask,koenrh/homebrew-cask,ptb/homebrew-cask,lvicentesanchez/homebrew-cask,Cottser/homebrew-cask,perfide/homebrew-cask,tedski/homebrew-cask,kei-yamazaki/homebrew-cask,singingwolfboy/homebrew-cask,mazehall/homebrew-cask,mishari/homebrew-cask,AndreTheHunter/homebrew-cask,prime8/homebrew-cask,artdevjs/homebrew-cask,nathansgreen/homebrew-cask,sosedoff/homebrew-cask,samnung/homebrew-cask,huanzhang/homebrew-cask,markthetech/homebrew-cask,squid314/homebrew-cask,tedbundyjr/homebrew-cask,Ngrd/homebrew-cask,reitermarkus/homebrew-cask,nathanielvarona/homebrew-cask,valepert/homebrew-cask,kesara/homebrew-cask,vin047/homebrew-cask,kesara/homebrew-cask,shoichiaizawa/homebrew-cask,sebcode/homebrew-cask,jiashuw/homebrew-cask,wmorin/homebrew-cask,thomanq/homebrew-cask,rubenerd/homebrew-cask,Whoaa512/homebrew-cask,corbt/homebrew-cask,djmonta/homebrew-cask,adelinofaria/homebrew-cask,JacopKane/homebrew-cask,jen20/homebrew-cask,greg5green/homebrew-cask,m3nu/homebrew-cask,kkdd/homebrew-cask,ianyh/homebrew-cask,julionc/homebrew-cask,mathbunnyru/homebrew-cask,sysbot/homebrew-cask,xcezx/homebrew-cask,jhowtan/homebrew-cask,mokagio/homebrew-cask,gustavoavellar/homebrew-cask,skatsuta/homebrew-cask,cedwardsmedia/homebrew-cask,y00rb/homebrew-cask,timsutton/homebrew-cask,thii/homebrew-cask,thomanq/homebrew-cask,paulombcosta/homebrew-cask,rkJun/homebrew-cask,stephenwade/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,troyxmccall/homebrew-cask,anbotero/homebrew-cask,jeroenseegers/homebrew-cask,mjgardner/homebrew-cask,a-x-/homebrew-cask,kteru/homebrew-cask,mahori/homebrew-cask,sanchezm/homebrew-cask,andyli/homebrew-cask,joschi/homebrew-cask,sparrc/homebrew-cask,pablote/homebrew-cask,mwek/homebrew-cask,bdhess/homebrew-cask,cohei/homebrew-cask,jedahan/homebrew-cask,mauricerkelly/homebrew-cask,csmith-palantir/homebrew-cask,scribblemaniac/homebrew-cask,sachin21/homebrew-cask,mgryszko/homebrew-cask,nrlquaker/homebrew-cask,decrement/homebrew-cask,kamilboratynski/homebrew-cask,hyuna917/homebrew-cask,shanonvl/homebrew-cask,MichaelPei/homebrew-cask,afh/homebrew-cask,delphinus35/homebrew-cask,artdevjs/homebrew-cask,stevenmaguire/homebrew-cask,schneidmaster/homebrew-cask,ericbn/homebrew-cask,skatsuta/homebrew-cask,chuanxd/homebrew-cask,optikfluffel/homebrew-cask,doits/homebrew-cask,sebcode/homebrew-cask,miccal/homebrew-cask,zeusdeux/homebrew-cask,kolomiichenko/homebrew-cask,MatzFan/homebrew-cask,ayohrling/homebrew-cask,dunn/homebrew-cask,elyscape/homebrew-cask,vitorgalvao/homebrew-cask,mjdescy/homebrew-cask,shonjir/homebrew-cask,Philosoft/homebrew-cask,danielbayley/homebrew-cask,rhendric/homebrew-cask,ptb/homebrew-cask,stigkj/homebrew-caskroom-cask,AnastasiaSulyagina/homebrew-cask,MoOx/homebrew-cask,fkrone/homebrew-cask,iAmGhost/homebrew-cask,optikfluffel/homebrew-cask,mAAdhaTTah/homebrew-cask,fazo96/homebrew-cask,FranklinChen/homebrew-cask,My2ndAngelic/homebrew-cask,hristozov/homebrew-cask,devmynd/homebrew-cask,slnovak/homebrew-cask,dwkns/homebrew-cask,napaxton/homebrew-cask,mikem/homebrew-cask,wesen/homebrew-cask,stonehippo/homebrew-cask,mingzhi22/homebrew-cask,chrisfinazzo/homebrew-cask,opsdev-ws/homebrew-cask,jtriley/homebrew-cask,arronmabrey/homebrew-cask,gord1anknot/homebrew-cask,jgarber623/homebrew-cask,jaredsampson/homebrew-cask,qbmiller/homebrew-cask,tjnycum/homebrew-cask,nicolas-brousse/homebrew-cask,deiga/homebrew-cask,fly19890211/homebrew-cask,pinut/homebrew-cask,athrunsun/homebrew-cask,dvdoliveira/homebrew-cask,lifepillar/homebrew-cask,adrianchia/homebrew-cask,patresi/homebrew-cask,otaran/homebrew-cask,bosr/homebrew-cask,JosephViolago/homebrew-cask,otzy007/homebrew-cask,otaran/homebrew-cask,mjgardner/homebrew-cask,a-x-/homebrew-cask,tdsmith/homebrew-cask,m3nu/homebrew-cask,syscrusher/homebrew-cask,axodys/homebrew-cask,guylabs/homebrew-cask,wuman/homebrew-cask,lukeadams/homebrew-cask,rcuza/homebrew-cask,moimikey/homebrew-cask,santoshsahoo/homebrew-cask,zhuzihhhh/homebrew-cask,shishi/homebrew-cask,devmynd/homebrew-cask,ahvigil/homebrew-cask,BenjaminHCCarr/homebrew-cask,andyshinn/homebrew-cask,kiliankoe/homebrew-cask,anbotero/homebrew-cask,SamiHiltunen/homebrew-cask,cliffcotino/homebrew-cask,jconley/homebrew-cask,pkq/homebrew-cask,kkdd/homebrew-cask,mwilmer/homebrew-cask,dcondrey/homebrew-cask,yuhki50/homebrew-cask,claui/homebrew-cask,stonehippo/homebrew-cask,pgr0ss/homebrew-cask,jpodlech/homebrew-cask,kpearson/homebrew-cask,mathbunnyru/homebrew-cask,slnovak/homebrew-cask,guerrero/homebrew-cask,deanmorin/homebrew-cask,miku/homebrew-cask,6uclz1/homebrew-cask,uetchy/homebrew-cask,moogar0880/homebrew-cask,gerrymiller/homebrew-cask,wmorin/homebrew-cask,kiliankoe/homebrew-cask,kingthorin/homebrew-cask,albertico/homebrew-cask,AdamCmiel/homebrew-cask,nicholsn/homebrew-cask,hvisage/homebrew-cask,bendoerr/homebrew-cask,mhubig/homebrew-cask,cclauss/homebrew-cask,flada-auxv/homebrew-cask,huanzhang/homebrew-cask,ebraminio/homebrew-cask,cblecker/homebrew-cask,donbobka/homebrew-cask,riyad/homebrew-cask,julienlavergne/homebrew-cask,flaviocamilo/homebrew-cask,mwean/homebrew-cask,wolflee/homebrew-cask,ninjahoahong/homebrew-cask,thehunmonkgroup/homebrew-cask,franklouwers/homebrew-cask,remko/homebrew-cask,robertgzr/homebrew-cask,Nitecon/homebrew-cask,gibsjose/homebrew-cask,elnappo/homebrew-cask,feniix/homebrew-cask,rickychilcott/homebrew-cask,greg5green/homebrew-cask,christophermanning/homebrew-cask,ponychicken/homebrew-customcask,zchee/homebrew-cask,jgarber623/homebrew-cask,lantrix/homebrew-cask,adrianchia/homebrew-cask,rcuza/homebrew-cask,jpmat296/homebrew-cask,gerrypower/homebrew-cask,pablote/homebrew-cask,mfpierre/homebrew-cask,jrwesolo/homebrew-cask,gabrielizaias/homebrew-cask,esebastian/homebrew-cask,elyscape/homebrew-cask,timsutton/homebrew-cask,morganestes/homebrew-cask,carlmod/homebrew-cask,diogodamiani/homebrew-cask,Dremora/homebrew-cask,gguillotte/homebrew-cask,13k/homebrew-cask,cblecker/homebrew-cask,goxberry/homebrew-cask,ftiff/homebrew-cask,ddm/homebrew-cask,fkrone/homebrew-cask,sanyer/homebrew-cask,caskroom/homebrew-cask,puffdad/homebrew-cask,Nitecon/homebrew-cask,robbiethegeek/homebrew-cask,frapposelli/homebrew-cask,zerrot/homebrew-cask,nshemonsky/homebrew-cask,sanyer/homebrew-cask,williamboman/homebrew-cask,gyugyu/homebrew-cask,moonboots/homebrew-cask,wesen/homebrew-cask,Saklad5/homebrew-cask,nathanielvarona/homebrew-cask,mgryszko/homebrew-cask,bric3/homebrew-cask,guylabs/homebrew-cask,kuno/homebrew-cask,jrwesolo/homebrew-cask,lcasey001/homebrew-cask,optikfluffel/homebrew-cask,shorshe/homebrew-cask,larseggert/homebrew-cask,julionc/homebrew-cask,wastrachan/homebrew-cask,colindunn/homebrew-cask,kassi/homebrew-cask,tan9/homebrew-cask,jhowtan/homebrew-cask,sosedoff/homebrew-cask,johan/homebrew-cask,lifepillar/homebrew-cask,stigkj/homebrew-caskroom-cask,elseym/homebrew-cask,yurrriq/homebrew-cask,hackhandslabs/homebrew-cask,Gasol/homebrew-cask,alloy/homebrew-cask,valepert/homebrew-cask,jellyfishcoder/homebrew-cask,sscotth/homebrew-cask,gerrypower/homebrew-cask,scottsuch/homebrew-cask,supriyantomaftuh/homebrew-cask,bcomnes/homebrew-cask,paulbreslin/homebrew-cask,dustinblackman/homebrew-cask,3van/homebrew-cask,onlynone/homebrew-cask,dictcp/homebrew-cask,franklouwers/homebrew-cask,lucasmezencio/homebrew-cask,okket/homebrew-cask,malob/homebrew-cask,mattrobenolt/homebrew-cask,leonmachadowilcox/homebrew-cask,antogg/homebrew-cask,wKovacs64/homebrew-cask,jasmas/homebrew-cask,giannitm/homebrew-cask,koenrh/homebrew-cask,gwaldo/homebrew-cask,vitorgalvao/homebrew-cask,jamesmlees/homebrew-cask,Ephemera/homebrew-cask,zchee/homebrew-cask,bsiddiqui/homebrew-cask,katoquro/homebrew-cask,CameronGarrett/homebrew-cask,xight/homebrew-cask,underyx/homebrew-cask,epmatsw/homebrew-cask,morsdyce/homebrew-cask,codeurge/homebrew-cask,yutarody/homebrew-cask,bric3/homebrew-cask,jspahrsummers/homebrew-cask,napaxton/homebrew-cask,chadcatlett/caskroom-homebrew-cask,nathancahill/homebrew-cask,catap/homebrew-cask,spruceb/homebrew-cask,blogabe/homebrew-cask,kongslund/homebrew-cask,kievechua/homebrew-cask,dictcp/homebrew-cask,buo/homebrew-cask,JosephViolago/homebrew-cask,SentinelWarren/homebrew-cask,paour/homebrew-cask,kirikiriyamama/homebrew-cask,MisumiRize/homebrew-cask,jayshao/homebrew-cask,Bombenleger/homebrew-cask,wickles/homebrew-cask,williamboman/homebrew-cask,rogeriopradoj/homebrew-cask,qbmiller/homebrew-cask,tangestani/homebrew-cask,ashishb/homebrew-cask,mattrobenolt/homebrew-cask,scribblemaniac/homebrew-cask,0rax/homebrew-cask,dvdoliveira/homebrew-cask,doits/homebrew-cask,hovancik/homebrew-cask,BahtiyarB/homebrew-cask,samshadwell/homebrew-cask,illusionfield/homebrew-cask,bgandon/homebrew-cask,gmkey/homebrew-cask,Whoaa512/homebrew-cask,tonyseek/homebrew-cask,zmwangx/homebrew-cask,lalyos/homebrew-cask,forevergenin/homebrew-cask,ch3n2k/homebrew-cask,hristozov/homebrew-cask,AdamCmiel/homebrew-cask,freeslugs/homebrew-cask,mrmachine/homebrew-cask,RogerThiede/homebrew-cask,chino/homebrew-cask,johnjelinek/homebrew-cask,bsiddiqui/homebrew-cask,norio-nomura/homebrew-cask,CameronGarrett/homebrew-cask,andrewdisley/homebrew-cask,MircoT/homebrew-cask,daften/homebrew-cask,ldong/homebrew-cask,ajbw/homebrew-cask,jalaziz/homebrew-cask,nickpellant/homebrew-cask,samdoran/homebrew-cask,tarwich/homebrew-cask,faun/homebrew-cask,seanorama/homebrew-cask,josa42/homebrew-cask,LaurentFough/homebrew-cask,rhendric/homebrew-cask,deiga/homebrew-cask,psibre/homebrew-cask,julienlavergne/homebrew-cask,segiddins/homebrew-cask,yurikoles/homebrew-cask,adriweb/homebrew-cask,BenjaminHCCarr/homebrew-cask,JoelLarson/homebrew-cask,lcasey001/homebrew-cask,joaocc/homebrew-cask,zeusdeux/homebrew-cask,xakraz/homebrew-cask,jaredsampson/homebrew-cask,supriyantomaftuh/homebrew-cask,johntrandall/homebrew-cask,afh/homebrew-cask,Labutin/homebrew-cask,dezon/homebrew-cask,janlugt/homebrew-cask,imgarylai/homebrew-cask,ky0615/homebrew-cask-1,0xadada/homebrew-cask,scottsuch/homebrew-cask,cohei/homebrew-cask,klane/homebrew-cask,alebcay/homebrew-cask,chrisfinazzo/homebrew-cask,reitermarkus/homebrew-cask,Gasol/homebrew-cask,ctrevino/homebrew-cask,L2G/homebrew-cask,Fedalto/homebrew-cask,athrunsun/homebrew-cask,gerrymiller/homebrew-cask,ctrevino/homebrew-cask,nrlquaker/homebrew-cask,spruceb/homebrew-cask,Ephemera/homebrew-cask,m3nu/homebrew-cask,rajiv/homebrew-cask,englishm/homebrew-cask,neverfox/homebrew-cask,jpodlech/homebrew-cask,mAAdhaTTah/homebrew-cask,diogodamiani/homebrew-cask,amatos/homebrew-cask,inz/homebrew-cask,Keloran/homebrew-cask,zmwangx/homebrew-cask,gmkey/homebrew-cask,cobyism/homebrew-cask,nicolas-brousse/homebrew-cask,wizonesolutions/homebrew-cask,drostron/homebrew-cask,andrewdisley/homebrew-cask,tjt263/homebrew-cask,d/homebrew-cask,miguelfrde/homebrew-cask,qnm/homebrew-cask,toonetown/homebrew-cask,colindean/homebrew-cask,MichaelPei/homebrew-cask,Hywan/homebrew-cask,Keloran/homebrew-cask,tonyseek/homebrew-cask,buo/homebrew-cask,amatos/homebrew-cask,ksato9700/homebrew-cask,epardee/homebrew-cask,mattfelsen/homebrew-cask,githubutilities/homebrew-cask,seanorama/homebrew-cask,michelegera/homebrew-cask,ksylvan/homebrew-cask,tyage/homebrew-cask,brianshumate/homebrew-cask,sscotth/homebrew-cask,boecko/homebrew-cask,johndbritton/homebrew-cask,ianyh/homebrew-cask,rogeriopradoj/homebrew-cask,wastrachan/homebrew-cask,dieterdemeyer/homebrew-cask,petmoo/homebrew-cask,taherio/homebrew-cask,mattfelsen/homebrew-cask,barravi/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,chino/homebrew-cask,decrement/homebrew-cask,ywfwj2008/homebrew-cask,SentinelWarren/homebrew-cask,yurikoles/homebrew-cask,vigosan/homebrew-cask,claui/homebrew-cask,julionc/homebrew-cask,nathansgreen/homebrew-cask,alloy/homebrew-cask,boydj/homebrew-cask,puffdad/homebrew-cask,mchlrmrz/homebrew-cask,kryhear/homebrew-cask,singingwolfboy/homebrew-cask,diguage/homebrew-cask,kassi/homebrew-cask,jeroenj/homebrew-cask,jconley/homebrew-cask,gurghet/homebrew-cask,nysthee/homebrew-cask,enriclluelles/homebrew-cask,jacobdam/homebrew-cask,tangestani/homebrew-cask,bkono/homebrew-cask,haha1903/homebrew-cask,dwihn0r/homebrew-cask,squid314/homebrew-cask,renaudguerin/homebrew-cask,nelsonjchen/homebrew-cask,nanoxd/homebrew-cask,slack4u/homebrew-cask,Philosoft/homebrew-cask,SamiHiltunen/homebrew-cask,shishi/homebrew-cask,jen20/homebrew-cask,dezon/homebrew-cask,Hywan/homebrew-cask,MircoT/homebrew-cask,BenjaminHCCarr/homebrew-cask,victorpopkov/homebrew-cask,janlugt/homebrew-cask,haha1903/homebrew-cask,wickedsp1d3r/homebrew-cask,kevyau/homebrew-cask,zhuzihhhh/homebrew-cask,perfide/homebrew-cask,Amorymeltzer/homebrew-cask,shoichiaizawa/homebrew-cask,adriweb/homebrew-cask,lieuwex/homebrew-cask,crmne/homebrew-cask,mkozjak/homebrew-cask,gregkare/homebrew-cask,ahbeng/homebrew-cask,Saklad5/homebrew-cask,kirikiriyamama/homebrew-cask,yumitsu/homebrew-cask,FranklinChen/homebrew-cask,boydj/homebrew-cask,Ibuprofen/homebrew-cask,yurikoles/homebrew-cask,dspeckhard/homebrew-cask,gibsjose/homebrew-cask,johntrandall/homebrew-cask,fwiesel/homebrew-cask,ksylvan/homebrew-cask,tedbundyjr/homebrew-cask,hanxue/caskroom,dustinblackman/homebrew-cask,yurrriq/homebrew-cask,skyyuan/homebrew-cask,hovancik/homebrew-cask,hswong3i/homebrew-cask,riyad/homebrew-cask,paour/homebrew-cask,kingthorin/homebrew-cask,fanquake/homebrew-cask,colindunn/homebrew-cask,RickWong/homebrew-cask,sohtsuka/homebrew-cask,githubutilities/homebrew-cask,FinalDes/homebrew-cask,joshka/homebrew-cask,aki77/homebrew-cask,kostasdizas/homebrew-cask,pacav69/homebrew-cask,lvicentesanchez/homebrew-cask,arranubels/homebrew-cask,andrewschleifer/homebrew-cask,linc01n/homebrew-cask,kronicd/homebrew-cask,mwek/homebrew-cask,corbt/homebrew-cask,markhuber/homebrew-cask,jangalinski/homebrew-cask,stephenwade/homebrew-cask,tolbkni/homebrew-cask,mlocher/homebrew-cask,ky0615/homebrew-cask-1,fharbe/homebrew-cask,neil-ca-moore/homebrew-cask,yuhki50/homebrew-cask,ingorichter/homebrew-cask,AnastasiaSulyagina/homebrew-cask,neverfox/homebrew-cask,Labutin/homebrew-cask,JacopKane/homebrew-cask,unasuke/homebrew-cask,danielbayley/homebrew-cask,andersonba/homebrew-cask,farmerchris/homebrew-cask,mikem/homebrew-cask,troyxmccall/homebrew-cask,ahvigil/homebrew-cask,deiga/homebrew-cask,carlmod/homebrew-cask,andrewschleifer/homebrew-cask,ahbeng/homebrew-cask,gord1anknot/homebrew-cask,lukasbestle/homebrew-cask,howie/homebrew-cask,bcaceiro/homebrew-cask,seanzxx/homebrew-cask,xakraz/homebrew-cask,farmerchris/homebrew-cask,zorosteven/homebrew-cask,ahundt/homebrew-cask,RJHsiao/homebrew-cask,kesara/homebrew-cask,katoquro/homebrew-cask,mariusbutuc/homebrew-cask,paulombcosta/homebrew-cask,cfillion/homebrew-cask,sjackman/homebrew-cask,lukeadams/homebrew-cask,michelegera/homebrew-cask,psibre/homebrew-cask,MoOx/homebrew-cask,jiashuw/homebrew-cask,6uclz1/homebrew-cask,hakamadare/homebrew-cask,cclauss/homebrew-cask,codeurge/homebrew-cask,mkozjak/homebrew-cask,feigaochn/homebrew-cask,delphinus35/homebrew-cask,Cottser/homebrew-cask,pacav69/homebrew-cask,jawshooah/homebrew-cask,rickychilcott/homebrew-cask,jeanregisser/homebrew-cask,zorosteven/homebrew-cask,drostron/homebrew-cask,pinut/homebrew-cask,joshka/homebrew-cask,dlovitch/homebrew-cask,feigaochn/homebrew-cask,leonmachadowilcox/homebrew-cask,genewoo/homebrew-cask,dwihn0r/homebrew-cask,rednoah/homebrew-cask,joschi/homebrew-cask,mchlrmrz/homebrew-cask,andrewdisley/homebrew-cask,inta/homebrew-cask,imgarylai/homebrew-cask,markhuber/homebrew-cask,jangalinski/homebrew-cask,maxnordlund/homebrew-cask,pgr0ss/homebrew-cask,chrisfinazzo/homebrew-cask,L2G/homebrew-cask,garborg/homebrew-cask,asbachb/homebrew-cask,andyshinn/homebrew-cask,djakarta-trap/homebrew-myCask,miccal/homebrew-cask,mindriot101/homebrew-cask,gurghet/homebrew-cask,sgnh/homebrew-cask,gyndav/homebrew-cask,xalep/homebrew-cask,phpwutz/homebrew-cask,aguynamedryan/homebrew-cask,onlynone/homebrew-cask,mauricerkelly/homebrew-cask,mjdescy/homebrew-cask,chrisRidgers/homebrew-cask,blogabe/homebrew-cask,chuanxd/homebrew-cask,jmeridth/homebrew-cask,Ephemera/homebrew-cask,okket/homebrew-cask,0xadada/homebrew-cask,otzy007/homebrew-cask,chadcatlett/caskroom-homebrew-cask,guerrero/homebrew-cask,phpwutz/homebrew-cask,renard/homebrew-cask,nelsonjchen/homebrew-cask,astorije/homebrew-cask,ywfwj2008/homebrew-cask,bchatard/homebrew-cask,diguage/homebrew-cask,alebcay/homebrew-cask,jeroenj/homebrew-cask,mwean/homebrew-cask,donbobka/homebrew-cask,miku/homebrew-cask,lukasbestle/homebrew-cask,blainesch/homebrew-cask,yutarody/homebrew-cask,leipert/homebrew-cask,jedahan/homebrew-cask,johnste/homebrew-cask,caskroom/homebrew-cask,timsutton/homebrew-cask,nicholsn/homebrew-cask,a1russell/homebrew-cask,ayohrling/homebrew-cask,pkq/homebrew-cask,bkono/homebrew-cask,kei-yamazaki/homebrew-cask,mindriot101/homebrew-cask,elnappo/homebrew-cask,ohammersmith/homebrew-cask,ohammersmith/homebrew-cask,jppelteret/homebrew-cask,lumaxis/homebrew-cask,hellosky806/homebrew-cask,alexg0/homebrew-cask,englishm/homebrew-cask,linc01n/homebrew-cask,rogeriopradoj/homebrew-cask,xiongchiamiov/homebrew-cask,afdnlw/homebrew-cask,yumitsu/homebrew-cask,Bombenleger/homebrew-cask,samshadwell/homebrew-cask,ajbw/homebrew-cask,pkq/homebrew-cask,prime8/homebrew-cask,opsdev-ws/homebrew-cask,kryhear/homebrew-cask,mariusbutuc/homebrew-cask,ingorichter/homebrew-cask,bric3/homebrew-cask,stephenwade/homebrew-cask,neverfox/homebrew-cask,miguelfrde/homebrew-cask,asins/homebrew-cask,blainesch/homebrew-cask,mishari/homebrew-cask,xtian/homebrew-cask,feniix/homebrew-cask,jpmat296/homebrew-cask,deizel/homebrew-cask,JikkuJose/homebrew-cask,mchlrmrz/homebrew-cask,moimikey/homebrew-cask,coeligena/homebrew-customized,jacobdam/homebrew-cask,xight/homebrew-cask,atsuyim/homebrew-cask,KosherBacon/homebrew-cask,kpearson/homebrew-cask,patresi/homebrew-cask,shorshe/homebrew-cask,tjnycum/homebrew-cask,gregkare/homebrew-cask,fwiesel/homebrew-cask,bgandon/homebrew-cask,kTitan/homebrew-cask,mokagio/homebrew-cask,gabrielizaias/homebrew-cask,ahundt/homebrew-cask,sanyer/homebrew-cask,jbeagley52/homebrew-cask,antogg/homebrew-cask,barravi/homebrew-cask,0rax/homebrew-cask,lolgear/homebrew-cask,muan/homebrew-cask,skyyuan/homebrew-cask,ponychicken/homebrew-customcask,a1russell/homebrew-cask,hswong3i/homebrew-cask,gyugyu/homebrew-cask,mfpierre/homebrew-cask,dspeckhard/homebrew-cask,santoshsahoo/homebrew-cask,winkelsdorf/homebrew-cask,gwaldo/homebrew-cask,giannitm/homebrew-cask,aktau/homebrew-cask,rajiv/homebrew-cask,epmatsw/homebrew-cask,ericbn/homebrew-cask,remko/homebrew-cask,shanonvl/homebrew-cask,FredLackeyOfficial/homebrew-cask,FredLackeyOfficial/homebrew-cask,hakamadare/homebrew-cask,Ibuprofen/homebrew-cask,paour/homebrew-cask,thii/homebrew-cask,illusionfield/homebrew-cask,retrography/homebrew-cask,kTitan/homebrew-cask,kingthorin/homebrew-cask,jppelteret/homebrew-cask,tarwich/homebrew-cask,vuquoctuan/homebrew-cask,xyb/homebrew-cask,cobyism/homebrew-cask,wKovacs64/homebrew-cask,samnung/homebrew-cask,13k/homebrew-cask,sgnh/homebrew-cask,alexg0/homebrew-cask,kostasdizas/homebrew-cask,rednoah/homebrew-cask,ericbn/homebrew-cask,thehunmonkgroup/homebrew-cask,cliffcotino/homebrew-cask,arranubels/homebrew-cask,akiomik/homebrew-cask,RJHsiao/homebrew-cask,gustavoavellar/homebrew-cask,christophermanning/homebrew-cask,xight/homebrew-cask,sparrc/homebrew-cask,bosr/homebrew-cask,gilesdring/homebrew-cask,jeanregisser/homebrew-cask,usami-k/homebrew-cask,morsdyce/homebrew-cask,kuno/homebrew-cask,askl56/homebrew-cask,nrlquaker/homebrew-cask,tsparber/homebrew-cask,petmoo/homebrew-cask,n8henrie/homebrew-cask,wmorin/homebrew-cask,sanchezm/homebrew-cask,d/homebrew-cask,gguillotte/homebrew-cask,bcomnes/homebrew-cask,sohtsuka/homebrew-cask,ksato9700/homebrew-cask,christer155/homebrew-cask,xtian/homebrew-cask,coneman/homebrew-cask,tyage/homebrew-cask,syscrusher/homebrew-cask,tmoreira2020/homebrew,reelsense/homebrew-cask,cedwardsmedia/homebrew-cask,neil-ca-moore/homebrew-cask,lolgear/homebrew-cask,astorije/homebrew-cask,mingzhi22/homebrew-cask,jalaziz/homebrew-cask,norio-nomura/homebrew-cask,moogar0880/homebrew-cask,renard/homebrew-cask,coneman/homebrew-cask,casidiablo/homebrew-cask,af/homebrew-cask,aguynamedryan/homebrew-cask,tsparber/homebrew-cask,imgarylai/homebrew-cask,mahori/homebrew-cask,joshka/homebrew-cask,xalep/homebrew-cask,wayou/homebrew-cask,underyx/homebrew-cask,cfillion/homebrew-cask,johnste/homebrew-cask,sscotth/homebrew-cask,sirodoht/homebrew-cask,segiddins/homebrew-cask,enriclluelles/homebrew-cask,arronmabrey/homebrew-cask,ashishb/homebrew-cask,3van/homebrew-cask,wickedsp1d3r/homebrew-cask,lauantai/homebrew-cask,bendoerr/homebrew-cask,nshemonsky/homebrew-cask,adrianchia/homebrew-cask,dieterdemeyer/homebrew-cask,reitermarkus/homebrew-cask,vmrob/homebrew-cask,lumaxis/homebrew-cask,kronicd/homebrew-cask,RickWong/homebrew-cask,blogabe/homebrew-cask,morganestes/homebrew-cask,colindean/homebrew-cask,mlocher/homebrew-cask,lucasmezencio/homebrew-cask,exherb/homebrew-cask,tan9/homebrew-cask,jspahrsummers/homebrew-cask,jbeagley52/homebrew-cask,af/homebrew-cask,stevehedrick/homebrew-cask,nivanchikov/homebrew-cask,scw/homebrew-cask,toonetown/homebrew-cask,royalwang/homebrew-cask,alexg0/homebrew-cask,nysthee/homebrew-cask,shonjir/homebrew-cask,wuman/homebrew-cask,My2ndAngelic/homebrew-cask,tjt263/homebrew-cask,joschi/homebrew-cask,singingwolfboy/homebrew-cask,nathanielvarona/homebrew-cask,sjackman/homebrew-cask,dlovitch/homebrew-cask,axodys/homebrew-cask,mjgardner/homebrew-cask,coeligena/homebrew-customized,nivanchikov/homebrew-cask,aki77/homebrew-cask,esebastian/homebrew-cask,kteru/homebrew-cask,n0ts/homebrew-cask,crzrcn/homebrew-cask,albertico/homebrew-cask,johnjelinek/homebrew-cask,jacobbednarz/homebrew-cask,jasmas/homebrew-cask,ch3n2k/homebrew-cask,a1russell/homebrew-cask,crmne/homebrew-cask,helloIAmPau/homebrew-cask,y00rb/homebrew-cask,shonjir/homebrew-cask,Ketouem/homebrew-cask,aktau/homebrew-cask,robbiethegeek/homebrew-cask,mathbunnyru/homebrew-cask,joaoponceleao/homebrew-cask,mattrobenolt/homebrew-cask,johan/homebrew-cask,paulbreslin/homebrew-cask,joaoponceleao/homebrew-cask,uetchy/homebrew-cask,cprecioso/homebrew-cask,hyuna917/homebrew-cask,bcaceiro/homebrew-cask,forevergenin/homebrew-cask,vigosan/homebrew-cask,lauantai/homebrew-cask,MerelyAPseudonym/homebrew-cask,retbrown/homebrew-cask,jtriley/homebrew-cask,scottsuch/homebrew-cask,johndbritton/homebrew-cask,j13k/homebrew-cask,MicTech/homebrew-cask,afdnlw/homebrew-cask,flaviocamilo/homebrew-cask,nanoxd/homebrew-cask,royalwang/homebrew-cask,zerrot/homebrew-cask,crzrcn/homebrew-cask,jgarber623/homebrew-cask,vmrob/homebrew-cask,malford/homebrew-cask,Fedalto/homebrew-cask,jalaziz/homebrew-cask,wickles/homebrew-cask,n8henrie/homebrew-cask,danielgomezrico/homebrew-cask,tranc99/homebrew-cask,adelinofaria/homebrew-cask,casidiablo/homebrew-cask,JoelLarson/homebrew-cask,alebcay/homebrew-cask,retbrown/homebrew-cask,danielbayley/homebrew-cask,jeroenseegers/homebrew-cask,andersonba/homebrew-cask,tedski/homebrew-cask,MatzFan/homebrew-cask,coeligena/homebrew-customized,lalyos/homebrew-cask,tranc99/homebrew-cask,ddm/homebrew-cask,frapposelli/homebrew-cask,renaudguerin/homebrew-cask,jellyfishcoder/homebrew-cask,moonboots/homebrew-cask,slack4u/homebrew-cask,nathancahill/homebrew-cask,gyndav/homebrew-cask,uetchy/homebrew-cask,BahtiyarB/homebrew-cask,vin047/homebrew-cask,dwkns/homebrew-cask,hvisage/homebrew-cask,klane/homebrew-cask,theoriginalgri/homebrew-cask,tmoreira2020/homebrew,ldong/homebrew-cask,fanquake/homebrew-cask,robertgzr/homebrew-cask,vuquoctuan/homebrew-cask,bdhess/homebrew-cask,jacobbednarz/homebrew-cask,fharbe/homebrew-cask,hellosky806/homebrew-cask,mrmachine/homebrew-cask,iamso/homebrew-cask,tangestani/homebrew-cask,muan/homebrew-cask,scribblemaniac/homebrew-cask,fly19890211/homebrew-cask,christer155/homebrew-cask,KosherBacon/homebrew-cask,jonathanwiesel/homebrew-cask,lantrix/homebrew-cask,JacopKane/homebrew-cask,claui/homebrew-cask,deizel/homebrew-cask,scw/homebrew-cask,dunn/homebrew-cask,Amorymeltzer/homebrew-cask,freeslugs/homebrew-cask,goxberry/homebrew-cask,jonathanwiesel/homebrew-cask,JikkuJose/homebrew-cask,xyb/homebrew-cask,nickpellant/homebrew-cask,mwilmer/homebrew-cask,victorpopkov/homebrew-cask,malob/homebrew-cask,helloIAmPau/homebrew-cask,cblecker/homebrew-cask,xyb/homebrew-cask,tdsmith/homebrew-cask,winkelsdorf/homebrew-cask,moimikey/homebrew-cask,sachin21/homebrew-cask,unasuke/homebrew-cask,larseggert/homebrew-cask,taherio/homebrew-cask,n0ts/homebrew-cask,deanmorin/homebrew-cask,kongslund/homebrew-cask,AndreTheHunter/homebrew-cask,MerelyAPseudonym/homebrew-cask,askl56/homebrew-cask,cobyism/homebrew-cask,leipert/homebrew-cask,akiomik/homebrew-cask,asbachb/homebrew-cask,hanxue/caskroom,usami-k/homebrew-cask,iAmGhost/homebrew-cask,jamesmlees/homebrew-cask,MisumiRize/homebrew-cask,stevehedrick/homebrew-cask | ruby | ## Code Before:
class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
end
## Instruction:
Add uninstall stanza for Lazarus
## Code After:
class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
uninstall :pkgutil => 'org.freepascal.lazarus.www'
end
|
53637afcf2171e293d0c0fe5e423bb784ce9f871 | lib/aggregate_builder/field_builders/object_field_builder.rb | lib/aggregate_builder/field_builders/object_field_builder.rb | module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash, field, config)
object.send("#{field_name}=", nil)
elsif existing_object
field.options[:builder].new.update(existing_object, hash)
else
object.send("#{field.field_name}=", field.options[:builder].new.build(hash))
end
end
def cast(field_name, value)
if value.nil?
raise Errors::TypeCastingError, "#{field_name} can't be nil"
elsif !value.is_a?(Hash)
raise Errors::TypeCastingError, "Expected to be a hash, got #{value.inspect} for #{field_name}"
end
value
end
private
def delete?(hash, field, config)
deletable = field.options[:deletable]
deletable ||= true
if deletable
delete_key = field.options[:delete_key] || config.delete_key
if delete_key.is_a?(Symbol)
delete_key = ->(hash) { hash[delete_key] == true || hash[delete_key] == 'true' }
end
delete_key.call(hash)
end
end
end
end
end
| module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash, field, config)
object.send("#{field_name}=", nil)
elsif existing_object
get_builder(field, methods_context).update(existing_object, hash)
else
object.send(
"#{field.field_name}=",
get_builder(field, methods_context).build(hash)
)
end
end
def cast(field_name, value)
if value.nil?
raise Errors::TypeCastingError, "#{field_name} can't be nil"
elsif !value.is_a?(Hash)
raise Errors::TypeCastingError, "Expected to be a hash, got #{value.inspect} for #{field_name}"
end
value
end
private
def delete?(hash, field, config)
deletable = field.options[:deletable]
deletable ||= true
if deletable
delete_key = field.options[:delete_key] || config.delete_key
if delete_key.is_a?(Symbol)
delete_key = ->(hash) { hash[delete_key] == true || hash[delete_key] == 'true' }
end
delete_key.call(hash)
end
end
def get_builder(field, methods_context)
if field.options[:builder].is_a?(Symbol)
methods_context.send(field.options[:builder])
elsif field.options[:builder].is_a?(Class)
field.options[:builder].new
end
end
end
end
end
| Fix issue with object field type builder instantiation | Fix issue with object field type builder instantiation
| Ruby | mit | rous-gg/aggregate_builder | ruby | ## Code Before:
module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash, field, config)
object.send("#{field_name}=", nil)
elsif existing_object
field.options[:builder].new.update(existing_object, hash)
else
object.send("#{field.field_name}=", field.options[:builder].new.build(hash))
end
end
def cast(field_name, value)
if value.nil?
raise Errors::TypeCastingError, "#{field_name} can't be nil"
elsif !value.is_a?(Hash)
raise Errors::TypeCastingError, "Expected to be a hash, got #{value.inspect} for #{field_name}"
end
value
end
private
def delete?(hash, field, config)
deletable = field.options[:deletable]
deletable ||= true
if deletable
delete_key = field.options[:delete_key] || config.delete_key
if delete_key.is_a?(Symbol)
delete_key = ->(hash) { hash[delete_key] == true || hash[delete_key] == 'true' }
end
delete_key.call(hash)
end
end
end
end
end
## Instruction:
Fix issue with object field type builder instantiation
## Code After:
module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash, field, config)
object.send("#{field_name}=", nil)
elsif existing_object
get_builder(field, methods_context).update(existing_object, hash)
else
object.send(
"#{field.field_name}=",
get_builder(field, methods_context).build(hash)
)
end
end
def cast(field_name, value)
if value.nil?
raise Errors::TypeCastingError, "#{field_name} can't be nil"
elsif !value.is_a?(Hash)
raise Errors::TypeCastingError, "Expected to be a hash, got #{value.inspect} for #{field_name}"
end
value
end
private
def delete?(hash, field, config)
deletable = field.options[:deletable]
deletable ||= true
if deletable
delete_key = field.options[:delete_key] || config.delete_key
if delete_key.is_a?(Symbol)
delete_key = ->(hash) { hash[delete_key] == true || hash[delete_key] == 'true' }
end
delete_key.call(hash)
end
end
def get_builder(field, methods_context)
if field.options[:builder].is_a?(Symbol)
methods_context.send(field.options[:builder])
elsif field.options[:builder].is_a?(Class)
field.options[:builder].new
end
end
end
end
end
|
2f0b8942c52223b3afc17d720a192123d321c2ae | spec/spec_helper.rb | spec/spec_helper.rb | lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = File.join(File.dirname(__FILE__), 'fixtures')
Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f }
FrozenRecord.eager_load!
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.filter_run_excluding :exclude_minimal if minimal
config.order = 'random'
config.before { FrozenRecord::TestHelper.unload_fixtures }
end
| lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
require 'time'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = File.join(File.dirname(__FILE__), 'fixtures')
Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f }
FrozenRecord.eager_load!
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.filter_run_excluding :exclude_minimal if minimal
config.order = 'random'
config.before { FrozenRecord::TestHelper.unload_fixtures }
end
| Fix CI for "minimal" test suites | Fix CI for "minimal" test suites
| Ruby | mit | byroot/frozen_record | ruby | ## Code Before:
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = File.join(File.dirname(__FILE__), 'fixtures')
Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f }
FrozenRecord.eager_load!
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.filter_run_excluding :exclude_minimal if minimal
config.order = 'random'
config.before { FrozenRecord::TestHelper.unload_fixtures }
end
## Instruction:
Fix CI for "minimal" test suites
## Code After:
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
require 'time'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = File.join(File.dirname(__FILE__), 'fixtures')
Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f }
FrozenRecord.eager_load!
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.filter_run_excluding :exclude_minimal if minimal
config.order = 'random'
config.before { FrozenRecord::TestHelper.unload_fixtures }
end
|
a537f049bfb61488a056333d362d9983e8e9f88d | 2020/10/p1.py | 2020/10/p1.py |
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1 # this is bad lmao
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
last_joltage = last_joltage + 1
one_jolt += 1
elif last_joltage + 2 in puzzle:
last_joltage = last_joltage + 2
elif last_joltage + 3 in puzzle:
last_joltage = last_joltage + 3
three_jolts += 1
puzzle.remove(last_joltage)
print(one_jolt, three_jolts)
return one_jolt * three_jolts
if __name__ == '__main__':
import time
start = time.perf_counter()
print(main())
print(time.perf_counter() - start)
|
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
last_joltage = last_joltage + 1
one_jolt += 1
elif last_joltage + 2 in puzzle:
last_joltage = last_joltage + 2
elif last_joltage + 3 in puzzle:
last_joltage = last_joltage + 3
three_jolts += 1
puzzle.remove(last_joltage)
print(one_jolt, three_jolts)
return one_jolt * three_jolts
if __name__ == '__main__':
import time
start = time.perf_counter()
print(main())
print(time.perf_counter() - start)
| Fix minor issues in 2020.10.1 file | Fix minor issues in 2020.10.1 file
The comment about the 1 being bad was incorrect, in fact it was good. I
had forgotten about adding the extra three-jolt difference for the final
adapter in the device, and didn't make the connection between it and the
three-jolt count being one short lol.
| Python | mit | foxscotch/advent-of-code,foxscotch/advent-of-code | python | ## Code Before:
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1 # this is bad lmao
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
last_joltage = last_joltage + 1
one_jolt += 1
elif last_joltage + 2 in puzzle:
last_joltage = last_joltage + 2
elif last_joltage + 3 in puzzle:
last_joltage = last_joltage + 3
three_jolts += 1
puzzle.remove(last_joltage)
print(one_jolt, three_jolts)
return one_jolt * three_jolts
if __name__ == '__main__':
import time
start = time.perf_counter()
print(main())
print(time.perf_counter() - start)
## Instruction:
Fix minor issues in 2020.10.1 file
The comment about the 1 being bad was incorrect, in fact it was good. I
had forgotten about adding the extra three-jolt difference for the final
adapter in the device, and didn't make the connection between it and the
three-jolt count being one short lol.
## Code After:
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
last_joltage = last_joltage + 1
one_jolt += 1
elif last_joltage + 2 in puzzle:
last_joltage = last_joltage + 2
elif last_joltage + 3 in puzzle:
last_joltage = last_joltage + 3
three_jolts += 1
puzzle.remove(last_joltage)
print(one_jolt, three_jolts)
return one_jolt * three_jolts
if __name__ == '__main__':
import time
start = time.perf_counter()
print(main())
print(time.perf_counter() - start)
|
62ec9ccffe7edf5cb9f33a57c462fcf0a7de4747 | app/controllers/contact_form_controller.rb | app/controllers/contact_form_controller.rb | class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
unless @contact.valid?
return render :new
end
redirect_to root_url, notice: t('.message_sent')
end
end
| class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
return render :new unless @contact.valid?
@contact.deliver
redirect_to root_url, notice: t('.message_sent')
end
end
| Refactor code for contact_form create action | Refactor code for contact_form create action
| Ruby | mit | railsmx/community,railsmx/community | ruby | ## Code Before:
class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
unless @contact.valid?
return render :new
end
redirect_to root_url, notice: t('.message_sent')
end
end
## Instruction:
Refactor code for contact_form create action
## Code After:
class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
return render :new unless @contact.valid?
@contact.deliver
redirect_to root_url, notice: t('.message_sent')
end
end
|
6f158ca4a8a4f88d395763ff726d5a12533d808c | lib/qspec/helper.rb | lib/qspec/helper.rb | module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
@config = Config.new
puts "Start #{@config['workers']} sporks"
start_spork_workers(@config['workers'])
end
end
end
end
| module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
Qspec.create_tmp_directory_if_not_exist
@config = Config.new
puts "Start #{@config['workers']} sporks"
start_spork_workers(@config['workers'])
end
end
end
end
| Create temporary directory before start spork | Create temporary directory before start spork
| Ruby | mit | tomykaira/qspec | ruby | ## Code Before:
module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
@config = Config.new
puts "Start #{@config['workers']} sporks"
start_spork_workers(@config['workers'])
end
end
end
end
## Instruction:
Create temporary directory before start spork
## Code After:
module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
Qspec.create_tmp_directory_if_not_exist
@config = Config.new
puts "Start #{@config['workers']} sporks"
start_spork_workers(@config['workers'])
end
end
end
end
|
16bdf4d3951c7f88b96bd922b5d4273cd93c4d98 | test_asgi_redis.py | test_asgi_redis.py | from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
| import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase
# Default conformance tests
class RedisLayerTests(ConformanceTestCase):
channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
expiry_delay = 1.1
| Update to match new asgiref test style | Update to match new asgiref test style
| Python | bsd-3-clause | django/asgi_redis | python | ## Code Before:
from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
## Instruction:
Update to match new asgiref test style
## Code After:
import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase
# Default conformance tests
class RedisLayerTests(ConformanceTestCase):
channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
expiry_delay = 1.1
|
93b34517cdf6b71415fca2767e4083c83b96c112 | cypress/integration/artist.spec.js | cypress/integration/artist.spec.js | /* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name='description']")
.should("have.attr", "content")
.and(
"eq",
"Find the latest shows, biography, and artworks for sale by Pablo Picasso. Perhaps the most influential artist of the 20th century, Pablo Picasso may be best …"
)
})
it("renders page content", () => {
cy.get("h1").should("contain", "Pablo Picasso")
cy.get("h2").should("contain", "Spanish, 1881–1973")
cy.get("h2").should("contain", "Notable works")
})
})
//
| /* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name='description']")
.should("have.attr", "content")
.and(
"contain",
"Find the latest shows, biography, and artworks for sale by Pablo Picasso."
)
})
it("renders page content", () => {
cy.get("h1").should("contain", "Pablo Picasso")
cy.get("h2").should("contain", "Spanish, 1881–1973")
cy.get("h2").should("contain", "Notable works")
})
})
//
| Make artist page acceptance test more tolerant | Make artist page acceptance test more tolerant
| JavaScript | mit | artsy/force,artsy/force-public,artsy/force,artsy/force-public,artsy/force,artsy/force | javascript | ## Code Before:
/* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name='description']")
.should("have.attr", "content")
.and(
"eq",
"Find the latest shows, biography, and artworks for sale by Pablo Picasso. Perhaps the most influential artist of the 20th century, Pablo Picasso may be best …"
)
})
it("renders page content", () => {
cy.get("h1").should("contain", "Pablo Picasso")
cy.get("h2").should("contain", "Spanish, 1881–1973")
cy.get("h2").should("contain", "Notable works")
})
})
//
## Instruction:
Make artist page acceptance test more tolerant
## Code After:
/* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name='description']")
.should("have.attr", "content")
.and(
"contain",
"Find the latest shows, biography, and artworks for sale by Pablo Picasso."
)
})
it("renders page content", () => {
cy.get("h1").should("contain", "Pablo Picasso")
cy.get("h2").should("contain", "Spanish, 1881–1973")
cy.get("h2").should("contain", "Notable works")
})
})
//
|
66be1bb46d4863fcba09d9ef725384a5763bfe17 | .circleci/circleci.sh | .circleci/circleci.sh |
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
# Install nodejs for running tests
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# Run tests
npm ci
MajavashakkiMongoConnectionString="mongodb://majavashakki:majavashakki@localhost:27017/Majavashakki" \
npm test
apt-get update
apt-get install -y git gnupg python3-pip python3-venv
echo $DEPLOYER_PRIVATE_GPG_KEY_BASE64 | base64 --decode > private.key
gpg --import private.key
rm -f private.key
./deploy.sh
|
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
apt-get update
apt-get install -y git gnupg python3-pip python3-venv
# Install nodejs for running tests
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# Run tests
npm ci
MajavashakkiMongoConnectionString="mongodb://majavashakki:majavashakki@localhost:27017/Majavashakki" \
npm test
echo $DEPLOYER_PRIVATE_GPG_KEY_BASE64 | base64 --decode > private.key
gpg --import private.key
rm -f private.key
./deploy.sh
| Install system dependencies before nodejs | Install system dependencies before nodejs
| Shell | mit | Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki | shell | ## Code Before:
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
# Install nodejs for running tests
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# Run tests
npm ci
MajavashakkiMongoConnectionString="mongodb://majavashakki:majavashakki@localhost:27017/Majavashakki" \
npm test
apt-get update
apt-get install -y git gnupg python3-pip python3-venv
echo $DEPLOYER_PRIVATE_GPG_KEY_BASE64 | base64 --decode > private.key
gpg --import private.key
rm -f private.key
./deploy.sh
## Instruction:
Install system dependencies before nodejs
## Code After:
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
apt-get update
apt-get install -y git gnupg python3-pip python3-venv
# Install nodejs for running tests
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# Run tests
npm ci
MajavashakkiMongoConnectionString="mongodb://majavashakki:majavashakki@localhost:27017/Majavashakki" \
npm test
echo $DEPLOYER_PRIVATE_GPG_KEY_BASE64 | base64 --decode > private.key
gpg --import private.key
rm -f private.key
./deploy.sh
|
a612eaecb7ae60dc83335dca31f13b6de598ae66 | lib/smart_answer_flows/check-uk-visa/outcomes/outcome_marriage_nvn_ukot.erb | lib/smart_answer_flows/check-uk-visa/outcomes/outcome_marriage_nvn_ukot.erb | <% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must apply for a [family of a settled person visa](/join-family-in-uk) if your partner is any of the following:
- a British citizen
- settled in the UK
- someone with humanitarian protection, for example if they have refugee status
###If you want to convert a civil partnership into a marriage
You won’t need a visa. However, you should bring the [same documents](/government/publications/visitor-visa-guide-to-supporting-documents) you’d need to apply for a Standard Visitor visa, to show officers at the UK border.
<% end %>
| <% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must apply for a [family visa](/join-family-in-uk) if your partner:
+ is a British citizen
+ is settled in the UK (called having ‘indefinite leave to remain’)
+ has settled or pre-settled status under the EU Settlement Scheme
+ has a Turkish worker or businessperson visa
###If you want to convert a civil partnership into a marriage
You won’t need a visa. However, you should bring the [same documents](/government/publications/visitor-visa-guide-to-supporting-documents) you’d need to apply for a Standard Visitor visa, to show officers at the UK border.
<% end %>
| Update non visa national marriage outcome | Update non visa national marriage outcome
| HTML+ERB | mit | alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers | html+erb | ## Code Before:
<% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must apply for a [family of a settled person visa](/join-family-in-uk) if your partner is any of the following:
- a British citizen
- settled in the UK
- someone with humanitarian protection, for example if they have refugee status
###If you want to convert a civil partnership into a marriage
You won’t need a visa. However, you should bring the [same documents](/government/publications/visitor-visa-guide-to-supporting-documents) you’d need to apply for a Standard Visitor visa, to show officers at the UK border.
<% end %>
## Instruction:
Update non visa national marriage outcome
## Code After:
<% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must apply for a [family visa](/join-family-in-uk) if your partner:
+ is a British citizen
+ is settled in the UK (called having ‘indefinite leave to remain’)
+ has settled or pre-settled status under the EU Settlement Scheme
+ has a Turkish worker or businessperson visa
###If you want to convert a civil partnership into a marriage
You won’t need a visa. However, you should bring the [same documents](/government/publications/visitor-visa-guide-to-supporting-documents) you’d need to apply for a Standard Visitor visa, to show officers at the UK border.
<% end %>
|
245b602059c4cd0f61eedc1e2e6976374a431208 | tox.ini | tox.ini | [tox]
envlist =
py{27,32,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
commands = make test
whitelist_externals = make
| [tox]
envlist =
py{27,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
commands = make test
whitelist_externals = make
| Stop testing on Python 3.2. | Stop testing on Python 3.2.
It doesn't work anymore with the latest version of virtualenv, causing
tox to fail.
| INI | bsd-3-clause | aaugustin/django-resto | ini | ## Code Before:
[tox]
envlist =
py{27,32,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
commands = make test
whitelist_externals = make
## Instruction:
Stop testing on Python 3.2.
It doesn't work anymore with the latest version of virtualenv, causing
tox to fail.
## Code After:
[tox]
envlist =
py{27,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
commands = make test
whitelist_externals = make
|
06fe1a33ea6d66ab77b04ff75df79aef51119128 | www/app/controllers/HistoryController.scala | www/app/controllers/HistoryController.scala | package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryController @Inject() (val messagesApi: MessagesApi) extends Controller with I18nSupport {
implicit val context = scala.concurrent.ExecutionContext.Implicits.global
def index(
orgKey: Option[String],
appKey: Option[String],
from: Option[String],
to: Option[String],
`type`: Option[String],
page: Int = 0
) = Anonymous.async { implicit request =>
for {
changes <- request.api.changes.get(
orgKey = orgKey,
applicationKey = appKey,
from = from,
to = to,
`type` = `type`,
limit = Pagination.DefaultLimit+1,
offset = page * Pagination.DefaultLimit
)
} yield {
Ok(views.html.history.index(
request.mainTemplate().copy(title = Some("History")),
changes = PaginatedCollection(page, changes),
orgKey = orgKey,
appKey = appKey,
from = from,
to = to
))
}
}
}
| package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryController @Inject() (val messagesApi: MessagesApi) extends Controller with I18nSupport {
implicit val context = scala.concurrent.ExecutionContext.Implicits.global
def index(
orgKey: Option[String],
appKey: Option[String],
from: Option[String],
to: Option[String],
`type`: Option[String],
page: Int = 0
) = Anonymous.async { implicit request =>
for {
changes <- request.api.changes.get(
orgKey = orgKey,
applicationKey = appKey,
from = from,
to = to,
`type` = `type`,
limit = Pagination.DefaultLimit+1,
offset = page * Pagination.DefaultLimit
)
} yield {
Ok(views.html.history.index(
request.mainTemplate().copy(title = Some("History")),
changes = PaginatedCollection(page, changes),
orgKey = orgKey,
appKey = appKey,
from = from,
to = to,
typ = `type`
))
}
}
}
| Fix 'typ' filter across pages in history | Fix 'typ' filter across pages in history
| Scala | mit | apicollective/apibuilder,mbryzek/apidoc,gheine/apidoc,gheine/apidoc,mbryzek/apidoc,apicollective/apibuilder,gheine/apidoc,mbryzek/apidoc,apicollective/apibuilder | scala | ## Code Before:
package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryController @Inject() (val messagesApi: MessagesApi) extends Controller with I18nSupport {
implicit val context = scala.concurrent.ExecutionContext.Implicits.global
def index(
orgKey: Option[String],
appKey: Option[String],
from: Option[String],
to: Option[String],
`type`: Option[String],
page: Int = 0
) = Anonymous.async { implicit request =>
for {
changes <- request.api.changes.get(
orgKey = orgKey,
applicationKey = appKey,
from = from,
to = to,
`type` = `type`,
limit = Pagination.DefaultLimit+1,
offset = page * Pagination.DefaultLimit
)
} yield {
Ok(views.html.history.index(
request.mainTemplate().copy(title = Some("History")),
changes = PaginatedCollection(page, changes),
orgKey = orgKey,
appKey = appKey,
from = from,
to = to
))
}
}
}
## Instruction:
Fix 'typ' filter across pages in history
## Code After:
package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryController @Inject() (val messagesApi: MessagesApi) extends Controller with I18nSupport {
implicit val context = scala.concurrent.ExecutionContext.Implicits.global
def index(
orgKey: Option[String],
appKey: Option[String],
from: Option[String],
to: Option[String],
`type`: Option[String],
page: Int = 0
) = Anonymous.async { implicit request =>
for {
changes <- request.api.changes.get(
orgKey = orgKey,
applicationKey = appKey,
from = from,
to = to,
`type` = `type`,
limit = Pagination.DefaultLimit+1,
offset = page * Pagination.DefaultLimit
)
} yield {
Ok(views.html.history.index(
request.mainTemplate().copy(title = Some("History")),
changes = PaginatedCollection(page, changes),
orgKey = orgKey,
appKey = appKey,
from = from,
to = to,
typ = `type`
))
}
}
}
|
e4a4dba54e8d88109c0601b54e643fac7a08771b | web/modules/custom/sw_migrate/bin/sw-migrate.5.nodes.sh | web/modules/custom/sw_migrate/bin/sw-migrate.5.nodes.sh | drush mim upgrade_d6_node:page
drush mim upgrade_d6_node:blog_couldnt_make_it_up
drush mim upgrade_d6_node:blog_critical_reading --feedback=100
drush mim upgrade_d6_node:edition # Don't think we're migrating these (?)
drush mim upgrade_d6_node:image # Ugh, need to be converted to media entities
drush mim upgrade_d6_node:insert_box --feedback=100
drush mim upgrade_d6_node:person --feedback=100
# Needs all sorts of help:
# - Remapping from image nodes to image media entities
# - Convert DME tags
# - Set main image field
# - Populate address fields (from taxonomy, whoops)
# - Convert contributors from taxonomy to person nodes (?)
drush mim upgrade_d6_node:story --feedback=100
| drush mim upgrade_d6_node_page
drush mim upgrade_d6_node_blog_couldnt_make_it_up
drush mim upgrade_d6_node_blog_critical_reading
#drush mim upgrade_d6_node_edition # Don't think we're migrating these (?)
#drush mim upgrade_d6_node_image # Ugh, need to be converted to media entities
drush mim upgrade_d6_node_insert_box
drush mim upgrade_d6_node_person
# Needs all sorts of help:
# - Remapping from image nodes to image media entities
# - Convert DME tags
# - Set main image field
# - Populate address fields (from taxonomy, whoops)
# - Convert contributors from taxonomy to person nodes (?)
#drush mim upgrade_d6_node_story --feedback=100
| Fix node migration script to use correct migration names. | Fix node migration script to use correct migration names.
| Shell | mit | ISO-tech/sw-d8,ISO-tech/sw-d8,ISO-tech/sw-d8,ISO-tech/sw-d8 | shell | ## Code Before:
drush mim upgrade_d6_node:page
drush mim upgrade_d6_node:blog_couldnt_make_it_up
drush mim upgrade_d6_node:blog_critical_reading --feedback=100
drush mim upgrade_d6_node:edition # Don't think we're migrating these (?)
drush mim upgrade_d6_node:image # Ugh, need to be converted to media entities
drush mim upgrade_d6_node:insert_box --feedback=100
drush mim upgrade_d6_node:person --feedback=100
# Needs all sorts of help:
# - Remapping from image nodes to image media entities
# - Convert DME tags
# - Set main image field
# - Populate address fields (from taxonomy, whoops)
# - Convert contributors from taxonomy to person nodes (?)
drush mim upgrade_d6_node:story --feedback=100
## Instruction:
Fix node migration script to use correct migration names.
## Code After:
drush mim upgrade_d6_node_page
drush mim upgrade_d6_node_blog_couldnt_make_it_up
drush mim upgrade_d6_node_blog_critical_reading
#drush mim upgrade_d6_node_edition # Don't think we're migrating these (?)
#drush mim upgrade_d6_node_image # Ugh, need to be converted to media entities
drush mim upgrade_d6_node_insert_box
drush mim upgrade_d6_node_person
# Needs all sorts of help:
# - Remapping from image nodes to image media entities
# - Convert DME tags
# - Set main image field
# - Populate address fields (from taxonomy, whoops)
# - Convert contributors from taxonomy to person nodes (?)
#drush mim upgrade_d6_node_story --feedback=100
|
d2abba0980f996a29e82a041350fb2c99764a61a | core/Json/Static.elm | core/Json/Static.elm |
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromJSString = Native.recordFromJSString
fromString s = Native.recordFromJSString (JS.fromString s)
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSString sep r)
toJSString r = Native.recordToPrettyJSString "" r |
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromString s = Native.recordFromJSString (JS.fromString s)
fromJSString = Native.recordFromJSString
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSString sep r)
toJSString r = Native.recordToPrettyJSString "" r | Switch the order of two functions. | Switch the order of two functions.
| Elm | bsd-3-clause | mgold/Elm,deadfoxygrandpa/Elm,laszlopandy/elm-compiler,Axure/elm-compiler,pairyo/elm-compiler,5outh/Elm,JoeyEremondi/elm-pattern-effects | elm | ## Code Before:
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromJSString = Native.recordFromJSString
fromString s = Native.recordFromJSString (JS.fromString s)
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSString sep r)
toJSString r = Native.recordToPrettyJSString "" r
## Instruction:
Switch the order of two functions.
## Code After:
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromString s = Native.recordFromJSString (JS.fromString s)
fromJSString = Native.recordFromJSString
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSString sep r)
toJSString r = Native.recordToPrettyJSString "" r |
4d8e598a31cf39874413472c1c54520dc7c16b46 | src/SortCode.php | src/SortCode.php | <?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$this->parts = str_split($value, 2);
}
public function compareTo(SortCode $b)
{
if ($this == $b) {
return 0;
}
if ($this < $b) {
return -1;
}
return 1;
}
public function isBetween(SortCode $start, SortCode $end)
{
var_dump($this->compareTo($start));
var_dump($this->compareTo($end));
}
public function format($format)
{
return sprintf(
$format,
$this->parts[0],
$this->parts[1],
$this->parts[2]
);
}
}
| <?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$this->parts = str_split($value, 2);
}
public function compareTo(SortCode $b)
{
if ($this == $b) {
return 0;
}
if ($this < $b) {
return -1;
}
return 1;
}
public function isBetween(SortCode $start, SortCode $end)
{
return 0 <= $this->compareTo($start) && -1 === $this->compareTo($end);
}
public function format($format)
{
return sprintf(
$format,
$this->parts[0],
$this->parts[1],
$this->parts[2]
);
}
}
| Implement between method on sort code object | Implement between method on sort code object
| PHP | mit | cs278/bank-modulus,cs278/bank-modulus | php | ## Code Before:
<?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$this->parts = str_split($value, 2);
}
public function compareTo(SortCode $b)
{
if ($this == $b) {
return 0;
}
if ($this < $b) {
return -1;
}
return 1;
}
public function isBetween(SortCode $start, SortCode $end)
{
var_dump($this->compareTo($start));
var_dump($this->compareTo($end));
}
public function format($format)
{
return sprintf(
$format,
$this->parts[0],
$this->parts[1],
$this->parts[2]
);
}
}
## Instruction:
Implement between method on sort code object
## Code After:
<?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$this->parts = str_split($value, 2);
}
public function compareTo(SortCode $b)
{
if ($this == $b) {
return 0;
}
if ($this < $b) {
return -1;
}
return 1;
}
public function isBetween(SortCode $start, SortCode $end)
{
return 0 <= $this->compareTo($start) && -1 === $this->compareTo($end);
}
public function format($format)
{
return sprintf(
$format,
$this->parts[0],
$this->parts[1],
$this->parts[2]
);
}
}
|
a71cffa0a3a3efb64a8ea3b4ce110217f62b90fa | Solutions/03/view.stat.c | Solutions/03/view.stat.c |
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
}
|
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
return EXIT_SUCCESS;
}
| Fix trivial error: return void in main function. | Fix trivial error: return void in main function.
| C | mit | Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK | c | ## Code Before:
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
}
## Instruction:
Fix trivial error: return void in main function.
## Code After:
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
return EXIT_SUCCESS;
}
|
df385ac3c06018a2d151ead1e07293166ff92614 | erpnext/patches/v11_0/move_leave_approvers_from_employee.py | erpnext/patches/v11_0/move_leave_approvers_from_employee.py | import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department', 'leave_approver'):
rename_field('Department', "leave_approver", "leave_approvers")
if frappe.db.has_column('Department', 'expense_approver'):
rename_field('Department', "expense_approver", "expense_approvers")
approvers = frappe.db.sql("""select distinct app.leave_approver, emp.department from
`tabEmployee Leave Approver` app, `tabEmployee` emp
where app.parenttype = 'Employee'
and emp.name = app.parent
""", as_dict=True)
for record in approvers:
if record.department:
department = frappe.get_doc("Department", record.department)
if not department:
return
if not len(department.leave_approvers):
department.append("leave_approvers",{
"approver": record.leave_approver
}).db_insert() | import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department', 'leave_approver'):
rename_field('Department', "leave_approver", "leave_approvers")
if frappe.db.has_column('Department', 'expense_approver'):
rename_field('Department', "expense_approver", "expense_approvers")
if not frappe.db.table_exists("Employee Leave Approver"):
return
approvers = frappe.db.sql("""select distinct app.leave_approver, emp.department from
`tabEmployee Leave Approver` app, `tabEmployee` emp
where app.parenttype = 'Employee'
and emp.name = app.parent
""", as_dict=True)
for record in approvers:
if record.department:
department = frappe.get_doc("Department", record.department)
if not department:
return
if not len(department.leave_approvers):
department.append("leave_approvers",{
"approver": record.leave_approver
}).db_insert() | Check if table exists else return | Check if table exists else return
| Python | agpl-3.0 | gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext | python | ## Code Before:
import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department', 'leave_approver'):
rename_field('Department', "leave_approver", "leave_approvers")
if frappe.db.has_column('Department', 'expense_approver'):
rename_field('Department', "expense_approver", "expense_approvers")
approvers = frappe.db.sql("""select distinct app.leave_approver, emp.department from
`tabEmployee Leave Approver` app, `tabEmployee` emp
where app.parenttype = 'Employee'
and emp.name = app.parent
""", as_dict=True)
for record in approvers:
if record.department:
department = frappe.get_doc("Department", record.department)
if not department:
return
if not len(department.leave_approvers):
department.append("leave_approvers",{
"approver": record.leave_approver
}).db_insert()
## Instruction:
Check if table exists else return
## Code After:
import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department', 'leave_approver'):
rename_field('Department', "leave_approver", "leave_approvers")
if frappe.db.has_column('Department', 'expense_approver'):
rename_field('Department', "expense_approver", "expense_approvers")
if not frappe.db.table_exists("Employee Leave Approver"):
return
approvers = frappe.db.sql("""select distinct app.leave_approver, emp.department from
`tabEmployee Leave Approver` app, `tabEmployee` emp
where app.parenttype = 'Employee'
and emp.name = app.parent
""", as_dict=True)
for record in approvers:
if record.department:
department = frappe.get_doc("Department", record.department)
if not department:
return
if not len(department.leave_approvers):
department.append("leave_approvers",{
"approver": record.leave_approver
}).db_insert() |
b015d4231a65e95c1929dec5bc746c1723b953b1 | templates/generic/slack.erb | templates/generic/slack.erb | [slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>
| [slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=0
gpgkey=https://packagecloud.io/gpg.key
repo_gpgcheck=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>
| Update GPG settings for Slack repo | Update GPG settings for Slack repo
| HTML+ERB | apache-2.0 | lutak-srce/yum,lutak-srce/yum | html+erb | ## Code Before:
[slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>
## Instruction:
Update GPG settings for Slack repo
## Code After:
[slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=0
gpgkey=https://packagecloud.io/gpg.key
repo_gpgcheck=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>
|
ffcca5e47eafa16d271847ad0dc412265c7e279f | angular-crypto-js.js | angular-crypto-js.js | /**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('cryptoJs', [cryptoJs]);
function cryptoJs(){
return {
md5Hex : md5Hex,
sha1Hex : sha1Hex,
sha256Hex: sha256Hex,
sha224Hex: sha224Hex,
sha512Hex: sha512Hex,
sha384Hex: sha384Hex,
sha3Hex: sha3Hex,
}
function md5Hex(message){
return toHex(CryptoJS.MD5, message);
}
function sha1Hex(message){
return toHex(CryptoJS.SHA1, message);
}
function sha256Hex(message){
return toHex(CryptoJS.SHA256, message);
}
function sha224Hex(message){
return toHex(CryptoJS.SHA224, message);
}
function sha512Hex(message){
return toHex(CryptoJS.SHA512, message);
}
function sha384Hex(message){
return toHex(CryptoJS.SHA384, message);
}
function sha3Hex(message){
return toHex(CryptoJS.SHA3, message);
}
function toHex(hasher, message){
return hasher(message).toString(CryptoJS.enc.Hex);
}
}
})(window.angular, window.CryptoJS);
| /**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('ngCrypto', [ngCrypto]);
function ngCrypto(){
return {
md5Hex : md5Hex,
sha1Hex : sha1Hex,
sha256Hex: sha256Hex,
sha224Hex: sha224Hex,
sha512Hex: sha512Hex,
sha384Hex: sha384Hex,
sha3Hex: sha3Hex,
}
function md5Hex(message){
return toHex(CryptoJS.MD5, message);
}
function sha1Hex(message){
return toHex(CryptoJS.SHA1, message);
}
function sha256Hex(message){
return toHex(CryptoJS.SHA256, message);
}
function sha224Hex(message){
return toHex(CryptoJS.SHA224, message);
}
function sha512Hex(message){
return toHex(CryptoJS.SHA512, message);
}
function sha384Hex(message){
return toHex(CryptoJS.SHA384, message);
}
function sha3Hex(message){
return toHex(CryptoJS.SHA3, message);
}
function toHex(hasher, message){
return hasher(message).toString(CryptoJS.enc.Hex);
}
}
})(window.angular, window.CryptoJS);
| Update factory name to ngCrypto | Update factory name to ngCrypto | JavaScript | mit | janppires/angular-crypto-js | javascript | ## Code Before:
/**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('cryptoJs', [cryptoJs]);
function cryptoJs(){
return {
md5Hex : md5Hex,
sha1Hex : sha1Hex,
sha256Hex: sha256Hex,
sha224Hex: sha224Hex,
sha512Hex: sha512Hex,
sha384Hex: sha384Hex,
sha3Hex: sha3Hex,
}
function md5Hex(message){
return toHex(CryptoJS.MD5, message);
}
function sha1Hex(message){
return toHex(CryptoJS.SHA1, message);
}
function sha256Hex(message){
return toHex(CryptoJS.SHA256, message);
}
function sha224Hex(message){
return toHex(CryptoJS.SHA224, message);
}
function sha512Hex(message){
return toHex(CryptoJS.SHA512, message);
}
function sha384Hex(message){
return toHex(CryptoJS.SHA384, message);
}
function sha3Hex(message){
return toHex(CryptoJS.SHA3, message);
}
function toHex(hasher, message){
return hasher(message).toString(CryptoJS.enc.Hex);
}
}
})(window.angular, window.CryptoJS);
## Instruction:
Update factory name to ngCrypto
## Code After:
/**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('ngCrypto', [ngCrypto]);
function ngCrypto(){
return {
md5Hex : md5Hex,
sha1Hex : sha1Hex,
sha256Hex: sha256Hex,
sha224Hex: sha224Hex,
sha512Hex: sha512Hex,
sha384Hex: sha384Hex,
sha3Hex: sha3Hex,
}
function md5Hex(message){
return toHex(CryptoJS.MD5, message);
}
function sha1Hex(message){
return toHex(CryptoJS.SHA1, message);
}
function sha256Hex(message){
return toHex(CryptoJS.SHA256, message);
}
function sha224Hex(message){
return toHex(CryptoJS.SHA224, message);
}
function sha512Hex(message){
return toHex(CryptoJS.SHA512, message);
}
function sha384Hex(message){
return toHex(CryptoJS.SHA384, message);
}
function sha3Hex(message){
return toHex(CryptoJS.SHA3, message);
}
function toHex(hasher, message){
return hasher(message).toString(CryptoJS.enc.Hex);
}
}
})(window.angular, window.CryptoJS);
|
fa8ad644d8093958d437da4664a53ceb390987ae | README.md | README.md |
[![Build Status](https://secure.travis-ci.org/hyoshida/poteti.png)](http://travis-ci.org/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
|
[![Build Status](https://secure.travis-ci.org/hyoshida/poteti.png)](http://travis-ci.org/hyoshida/poteti)
[![Code Climate](https://codeclimate.com/github/hyoshida/poteti.png)](https://codeclimate.com/github/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
| Add badge for Code Climate | Add badge for Code Climate
| Markdown | mit | hyoshida/poteti,hyoshida/poteti | markdown | ## Code Before:
[![Build Status](https://secure.travis-ci.org/hyoshida/poteti.png)](http://travis-ci.org/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
## Instruction:
Add badge for Code Climate
## Code After:
[![Build Status](https://secure.travis-ci.org/hyoshida/poteti.png)](http://travis-ci.org/hyoshida/poteti)
[![Code Climate](https://codeclimate.com/github/hyoshida/poteti.png)](https://codeclimate.com/github/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
|
e91c37c7d2678d91dad8ab46b5c0b8a174458c5f | java-spring-mvc-gradle/buildspec.yml | java-spring-mvc-gradle/buildspec.yml | version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering build phase...
- echo Build started on `date`
- gradle explodedWar
post_build:
commands:
- echo Entering post_build phase...
- echo Build completed on `date`
- mv build/ROOT .
artifacts:
type: zip
files:
- 'ROOT/WEB-INF/classes/application.properties'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/{{package_base_name}}AppInitializer.class'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/configuration/ApplicationConfig.class'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/configuration/MvcConfig.class'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/controller/{{package_base_name}}Controller.class'
- 'ROOT/WEB-INF/lib/aopalliance-1.0.jar'
- 'ROOT/WEB-INF/lib/commons-fileupload-1.3.2.jar'
- 'ROOT/WEB-INF/lib/commons-io-2.2.jar'
- 'ROOT/WEB-INF/lib/commons-logging-1.2.jar'
- 'ROOT/WEB-INF/lib/servlet-api-2.5.jar'
- 'ROOT/WEB-INF/lib/spring-aop-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-beans-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-context-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-core-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-expression-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-web-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-webmvc-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/views/index.jsp'
- 'ROOT/resources/gradients.css'
- 'ROOT/resources/set-background.js'
- 'ROOT/resources/styles.css'
| version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering build phase...
- echo Build started on `date`
- gradle explodedWar
post_build:
commands:
- echo Entering post_build phase...
- echo Build completed on `date`
- mv build/ROOT .
artifacts:
type: zip
files:
- ROOT/**/*
| Use wildcard for zip artifact | Use wildcard for zip artifact
| YAML | mit | rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates | yaml | ## Code Before:
version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering build phase...
- echo Build started on `date`
- gradle explodedWar
post_build:
commands:
- echo Entering post_build phase...
- echo Build completed on `date`
- mv build/ROOT .
artifacts:
type: zip
files:
- 'ROOT/WEB-INF/classes/application.properties'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/{{package_base_name}}AppInitializer.class'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/configuration/ApplicationConfig.class'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/configuration/MvcConfig.class'
- 'ROOT/WEB-INF/classes/{{domain_file_path}}/controller/{{package_base_name}}Controller.class'
- 'ROOT/WEB-INF/lib/aopalliance-1.0.jar'
- 'ROOT/WEB-INF/lib/commons-fileupload-1.3.2.jar'
- 'ROOT/WEB-INF/lib/commons-io-2.2.jar'
- 'ROOT/WEB-INF/lib/commons-logging-1.2.jar'
- 'ROOT/WEB-INF/lib/servlet-api-2.5.jar'
- 'ROOT/WEB-INF/lib/spring-aop-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-beans-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-context-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-core-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-expression-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-web-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/lib/spring-webmvc-4.2.6.RELEASE.jar'
- 'ROOT/WEB-INF/views/index.jsp'
- 'ROOT/resources/gradients.css'
- 'ROOT/resources/set-background.js'
- 'ROOT/resources/styles.css'
## Instruction:
Use wildcard for zip artifact
## Code After:
version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering build phase...
- echo Build started on `date`
- gradle explodedWar
post_build:
commands:
- echo Entering post_build phase...
- echo Build completed on `date`
- mv build/ROOT .
artifacts:
type: zip
files:
- ROOT/**/*
|
3de486d2f044e8534e96f9dfa2a842bccff4bc7c | tests/CMakeLists.txt | tests/CMakeLists.txt |
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
functions.cpp
filter/MelFilter.cpp
filter/MelFilterBank.cpp
ml/Dtw.cpp
source/Frame.cpp
source/FramesCollection.cpp
source/PlainTextFile.cpp
source/RawPcmFile.cpp
source/SignalSource.cpp
source/WaveFile.cpp
source/generator/SineGenerator.cpp
source/generator/SquareGenerator.cpp
source/generator/TriangleGenerator.cpp
source/window/BarlettWindow.cpp
source/window/HammingWindow.cpp
source/window/RectangularWindow.cpp
transform/AquilaFft.cpp
transform/Dft.cpp
transform/Fft.h
transform/Fft.cpp
transform/OouraFft.cpp
transform/Dct.cpp
)
include_directories(${UNITTESTPP_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(aquila_test EXCLUDE_FROM_ALL ${Aquila_Test_SOURCES})
target_link_libraries(aquila_test Aquila UnitTest++)
add_test(Aquila_TEST_SUITE aquila_test)
|
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
functions.cpp
filter/MelFilter.cpp
filter/MelFilterBank.cpp
ml/Dtw.cpp
source/Frame.cpp
source/FramesCollection.cpp
source/PlainTextFile.cpp
source/RawPcmFile.cpp
source/SignalSource.cpp
source/WaveFile.cpp
source/generator/SineGenerator.cpp
source/generator/SquareGenerator.cpp
source/generator/TriangleGenerator.cpp
source/window/BarlettWindow.cpp
source/window/GaussianWindow.cpp
source/window/HammingWindow.cpp
source/window/RectangularWindow.cpp
transform/AquilaFft.cpp
transform/Dft.cpp
transform/Fft.h
transform/Fft.cpp
transform/OouraFft.cpp
transform/Dct.cpp
)
include_directories(${UNITTESTPP_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(aquila_test EXCLUDE_FROM_ALL ${Aquila_Test_SOURCES})
target_link_libraries(aquila_test Aquila UnitTest++)
add_test(Aquila_TEST_SUITE aquila_test)
| Add Gaussian window test to the suite. | Add Gaussian window test to the suite.
| Text | apache-2.0 | sav6622/aquila,synkarae/aquila,synkarae/Quasar,sav6622/aquila,synkarae/Quasar,zsiciarz/aquila,Aldor007/aquila,zsiciarz/aquila,zsiciarz/aquila,synkarae/aquila,tempbottle/aquila,synkarae/aquila,tempbottle/aquila,zsiciarz/aquila,sav6622/aquila,Aldor007/aquila,tempbottle/aquila,Aldor007/aquila,synkarae/Quasar | text | ## Code Before:
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
functions.cpp
filter/MelFilter.cpp
filter/MelFilterBank.cpp
ml/Dtw.cpp
source/Frame.cpp
source/FramesCollection.cpp
source/PlainTextFile.cpp
source/RawPcmFile.cpp
source/SignalSource.cpp
source/WaveFile.cpp
source/generator/SineGenerator.cpp
source/generator/SquareGenerator.cpp
source/generator/TriangleGenerator.cpp
source/window/BarlettWindow.cpp
source/window/HammingWindow.cpp
source/window/RectangularWindow.cpp
transform/AquilaFft.cpp
transform/Dft.cpp
transform/Fft.h
transform/Fft.cpp
transform/OouraFft.cpp
transform/Dct.cpp
)
include_directories(${UNITTESTPP_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(aquila_test EXCLUDE_FROM_ALL ${Aquila_Test_SOURCES})
target_link_libraries(aquila_test Aquila UnitTest++)
add_test(Aquila_TEST_SUITE aquila_test)
## Instruction:
Add Gaussian window test to the suite.
## Code After:
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
functions.cpp
filter/MelFilter.cpp
filter/MelFilterBank.cpp
ml/Dtw.cpp
source/Frame.cpp
source/FramesCollection.cpp
source/PlainTextFile.cpp
source/RawPcmFile.cpp
source/SignalSource.cpp
source/WaveFile.cpp
source/generator/SineGenerator.cpp
source/generator/SquareGenerator.cpp
source/generator/TriangleGenerator.cpp
source/window/BarlettWindow.cpp
source/window/GaussianWindow.cpp
source/window/HammingWindow.cpp
source/window/RectangularWindow.cpp
transform/AquilaFft.cpp
transform/Dft.cpp
transform/Fft.h
transform/Fft.cpp
transform/OouraFft.cpp
transform/Dct.cpp
)
include_directories(${UNITTESTPP_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(aquila_test EXCLUDE_FROM_ALL ${Aquila_Test_SOURCES})
target_link_libraries(aquila_test Aquila UnitTest++)
add_test(Aquila_TEST_SUITE aquila_test)
|
d3ee759af0f234894dc449e78d6bbb1207c025dc | spec/tags/19/ruby/core/time/new_tags.txt | spec/tags/19/ruby/core/time/new_tags.txt | fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
| fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
unstable(fails on 32-bit linux):Time.new accepts various year ranges
| Tag unstable shared Time spec | Tag unstable shared Time spec | Text | mpl-2.0 | Wirachmat/rubinius,kachick/rubinius,mlarraz/rubinius,jsyeo/rubinius,Wirachmat/rubinius,Wirachmat/rubinius,mlarraz/rubinius,kachick/rubinius,ruipserra/rubinius,Wirachmat/rubinius,heftig/rubinius,Wirachmat/rubinius,ruipserra/rubinius,Wirachmat/rubinius,jsyeo/rubinius,Azizou/rubinius,kachick/rubinius,Azizou/rubinius,pH14/rubinius,lgierth/rubinius,ngpestelos/rubinius,sferik/rubinius,mlarraz/rubinius,kachick/rubinius,pH14/rubinius,heftig/rubinius,kachick/rubinius,lgierth/rubinius,heftig/rubinius,kachick/rubinius,digitalextremist/rubinius,dblock/rubinius,lgierth/rubinius,ruipserra/rubinius,mlarraz/rubinius,digitalextremist/rubinius,mlarraz/rubinius,digitalextremist/rubinius,jemc/rubinius,benlovell/rubinius,digitalextremist/rubinius,pH14/rubinius,kachick/rubinius,jemc/rubinius,jemc/rubinius,Azizou/rubinius,digitalextremist/rubinius,heftig/rubinius,Azizou/rubinius,jsyeo/rubinius,dblock/rubinius,sferik/rubinius,dblock/rubinius,digitalextremist/rubinius,heftig/rubinius,pH14/rubinius,benlovell/rubinius,lgierth/rubinius,jemc/rubinius,pH14/rubinius,lgierth/rubinius,heftig/rubinius,ruipserra/rubinius,mlarraz/rubinius,benlovell/rubinius,ngpestelos/rubinius,ruipserra/rubinius,jemc/rubinius,ngpestelos/rubinius,jsyeo/rubinius,heftig/rubinius,pH14/rubinius,sferik/rubinius,dblock/rubinius,jsyeo/rubinius,Azizou/rubinius,sferik/rubinius,jsyeo/rubinius,dblock/rubinius,jemc/rubinius,benlovell/rubinius,lgierth/rubinius,mlarraz/rubinius,digitalextremist/rubinius,ngpestelos/rubinius,benlovell/rubinius,ngpestelos/rubinius,benlovell/rubinius,ngpestelos/rubinius,Azizou/rubinius,lgierth/rubinius,benlovell/rubinius,ruipserra/rubinius,Azizou/rubinius,sferik/rubinius,sferik/rubinius,pH14/rubinius,dblock/rubinius,jsyeo/rubinius,jemc/rubinius,kachick/rubinius,ruipserra/rubinius,ngpestelos/rubinius,dblock/rubinius,sferik/rubinius,Wirachmat/rubinius | text | ## Code Before:
fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
## Instruction:
Tag unstable shared Time spec
## Code After:
fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
unstable(fails on 32-bit linux):Time.new accepts various year ranges
|
ac1d68ae5980b8d483a6ae23da8a781ff6577812 | app/controllers/dashboard_controller.rb | app/controllers/dashboard_controller.rb | class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attributes.slice(*%w{distance description is_round_trip})
else
attrs = {}
end
Ride.new(attrs.merge(date: Date.today))
end
end
| class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attributes.slice(*copyable_ride_attrs)
else
attrs = {}
end
Ride.new(attrs.merge(date: Date.today))
end
def copyable_ride_attrs
%w{bike_distance bus_distance walk_distance description is_round_trip}
end
end
| Use last distance values for ride form | Use last distance values for ride form
| Ruby | mit | Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN,Ehryk/Ride-MN,ResourceDataInc/commuter_challenge | ruby | ## Code Before:
class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attributes.slice(*%w{distance description is_round_trip})
else
attrs = {}
end
Ride.new(attrs.merge(date: Date.today))
end
end
## Instruction:
Use last distance values for ride form
## Code After:
class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attributes.slice(*copyable_ride_attrs)
else
attrs = {}
end
Ride.new(attrs.merge(date: Date.today))
end
def copyable_ride_attrs
%w{bike_distance bus_distance walk_distance description is_round_trip}
end
end
|
8e2682a65afb081e67d8364a86b75d5a93563ecc | app/views/report_mailer/report_project_deleted.text.erb | app/views/report_mailer/report_project_deleted.text.erb | Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
This action was carried out by user <%= @user.id %> named <%= @user.name %>.
The project's JSON record at deletion was:
<%= JSON.pretty_generate(@project.as_json) %>
| Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
It was created at <%= @project.created_at %>, and was
<%= @project.badge_percentage %>% complete towards the passing level.
This action was carried out by user <%= @user.id %> named <%= @user.name %>.
The project's JSON record at deletion was:
<%= JSON.pretty_generate(@project.as_json) %>
| Emphasize important data on project deletion | Emphasize important data on project deletion
Emphasize important data on project deletion in the reporting email.
In particular, projects with low % and were created recently are less
concerning than project entries with high % and were created a while ago
(maybe their account was subverted).
Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
| HTML+ERB | mit | wanganyv/cii-best-practices-badge,wanganyv/cii-best-practices-badge,coreinfrastructure/best-practices-badge,jdossett/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,jdossett/cii-best-practices-badge,coreinfrastructure/best-practices-badge,taylorcoursey/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,jdossett/cii-best-practices-badge,jdossett/cii-best-practices-badge,coreinfrastructure/best-practices-badge,yannickmoy/cii-best-practices-badge,coreinfrastructure/best-practices-badge,linuxfoundation/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,wanganyv/cii-best-practices-badge,wanganyv/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge | html+erb | ## Code Before:
Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
This action was carried out by user <%= @user.id %> named <%= @user.name %>.
The project's JSON record at deletion was:
<%= JSON.pretty_generate(@project.as_json) %>
## Instruction:
Emphasize important data on project deletion
Emphasize important data on project deletion in the reporting email.
In particular, projects with low % and were created recently are less
concerning than project entries with high % and were created a while ago
(maybe their account was subverted).
Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
## Code After:
Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
It was created at <%= @project.created_at %>, and was
<%= @project.badge_percentage %>% complete towards the passing level.
This action was carried out by user <%= @user.id %> named <%= @user.name %>.
The project's JSON record at deletion was:
<%= JSON.pretty_generate(@project.as_json) %>
|
77fbe4ede6c7cf7f59dd337de617a82b9561dbdc | after/ftplugin/terraform.vim | after/ftplugin/terraform.vim | if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
Tabularize/=/l1
normal! 0
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endif
endfunction
endif
| if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
Tabularize/=/l1
normal! 0
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endif
endfunction
endif
function! TerraformFolds()
let thisline = getline(v:lnum)
if match(thisline, '^resource') >= 0
return ">1"
elseif match(thisline, '^provider') >= 0
return ">1"
elseif match(thisline, '^module') >= 0
return ">1"
elseif match(thisline, '^variable') >= 0
return ">1"
else
return "="
endif
endfunction
setlocal foldmethod=expr
setlocal foldexpr=TerraformFolds()
setlocal foldlevel=1
function! TerraformFoldText()
let foldsize = (v:foldend-v:foldstart)
return getline(v:foldstart).' ('.foldsize.' lines)'
endfunction
setlocal foldtext=TerraformFoldText()
"inoremap <space> <C-O>za
nnoremap <space> za
onoremap <space> <C-C>za
vnoremap <space> zf
| Add ability to fold sections | Add ability to fold sections
+ Added code to allow for folding sections of terraform configuration
Code copied directly from https://github.com/jgerry/terraform-vim-folding `foldlevel` altered from 0 to 1 | VimL | isc | hashivim/vim-terraform,hashivim/vim-terraform | viml | ## Code Before:
if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
Tabularize/=/l1
normal! 0
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endif
endfunction
endif
## Instruction:
Add ability to fold sections
+ Added code to allow for folding sections of terraform configuration
Code copied directly from https://github.com/jgerry/terraform-vim-folding `foldlevel` altered from 0 to 1
## Code After:
if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
Tabularize/=/l1
normal! 0
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endif
endfunction
endif
function! TerraformFolds()
let thisline = getline(v:lnum)
if match(thisline, '^resource') >= 0
return ">1"
elseif match(thisline, '^provider') >= 0
return ">1"
elseif match(thisline, '^module') >= 0
return ">1"
elseif match(thisline, '^variable') >= 0
return ">1"
else
return "="
endif
endfunction
setlocal foldmethod=expr
setlocal foldexpr=TerraformFolds()
setlocal foldlevel=1
function! TerraformFoldText()
let foldsize = (v:foldend-v:foldstart)
return getline(v:foldstart).' ('.foldsize.' lines)'
endfunction
setlocal foldtext=TerraformFoldText()
"inoremap <space> <C-O>za
nnoremap <space> za
onoremap <space> <C-C>za
vnoremap <space> zf
|
ad6738fbe0e235ad226071297f0cf7d9ca68ab75 | src/main/java/joshie/progression/criteria/filters/entity/FilterEntityDisplayName.java | src/main/java/joshie/progression/criteria/filters/entity/FilterEntityDisplayName.java | package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends FilterBaseEntity implements IInit {
private String checkName = "Girafi";
private boolean matchBoth;
private boolean matchFront;
private boolean matchBack;
public String entityName = "Girafi";
@Override
public void init(boolean isClient) {
if (entityName.startsWith("*")) matchFront = true;
else matchFront = false;
if (entityName.endsWith("*")) matchBack = true;
else matchBack = false;
matchBoth = matchFront && matchBack;
checkName = entityName.replaceAll("\\*", "");
}
@Override
protected boolean matches(EntityLivingBase entity) {
String name = entity.getDisplayName().toString();
if (matchBoth && name.toLowerCase().contains(checkName.toLowerCase())) return true;
else if (matchFront && !matchBack && name.toLowerCase().endsWith(checkName.toLowerCase())) return true;
else if (!matchFront && matchBack && name.toLowerCase().startsWith(checkName.toLowerCase())) return true;
else if (name.toLowerCase().equals(checkName.toLowerCase())) return true;
else return false;
}
}
| package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends FilterBaseEntity implements IInit {
private String checkName = "Girafi";
private boolean matchBoth;
private boolean matchFront;
private boolean matchBack;
public String entityName = "Girafi";
@Override
public void init(boolean isClient) {
if (entityName.startsWith("*")) matchFront = true;
else matchFront = false;
if (entityName.endsWith("*")) matchBack = true;
else matchBack = false;
matchBoth = matchFront && matchBack;
checkName = entityName.replaceAll("\\*", "");
}
@Override
protected boolean matches(EntityLivingBase entity) {
String name = entity.getName();
if (matchBoth && name.toLowerCase().contains(checkName.toLowerCase())) return true;
else if (matchFront && !matchBack && name.toLowerCase().endsWith(checkName.toLowerCase())) return true;
else if (!matchFront && matchBack && name.toLowerCase().startsWith(checkName.toLowerCase())) return true;
else if (name.toLowerCase().equals(checkName.toLowerCase())) return true;
else return false;
}
}
| Fix @GirafiStudios named sheep being able to be killed and triggering the entity display name filter | Fix @GirafiStudios named sheep being able to be killed and triggering the entity display name filter
| Java | mit | joshiejack/Progression | java | ## Code Before:
package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends FilterBaseEntity implements IInit {
private String checkName = "Girafi";
private boolean matchBoth;
private boolean matchFront;
private boolean matchBack;
public String entityName = "Girafi";
@Override
public void init(boolean isClient) {
if (entityName.startsWith("*")) matchFront = true;
else matchFront = false;
if (entityName.endsWith("*")) matchBack = true;
else matchBack = false;
matchBoth = matchFront && matchBack;
checkName = entityName.replaceAll("\\*", "");
}
@Override
protected boolean matches(EntityLivingBase entity) {
String name = entity.getDisplayName().toString();
if (matchBoth && name.toLowerCase().contains(checkName.toLowerCase())) return true;
else if (matchFront && !matchBack && name.toLowerCase().endsWith(checkName.toLowerCase())) return true;
else if (!matchFront && matchBack && name.toLowerCase().startsWith(checkName.toLowerCase())) return true;
else if (name.toLowerCase().equals(checkName.toLowerCase())) return true;
else return false;
}
}
## Instruction:
Fix @GirafiStudios named sheep being able to be killed and triggering the entity display name filter
## Code After:
package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends FilterBaseEntity implements IInit {
private String checkName = "Girafi";
private boolean matchBoth;
private boolean matchFront;
private boolean matchBack;
public String entityName = "Girafi";
@Override
public void init(boolean isClient) {
if (entityName.startsWith("*")) matchFront = true;
else matchFront = false;
if (entityName.endsWith("*")) matchBack = true;
else matchBack = false;
matchBoth = matchFront && matchBack;
checkName = entityName.replaceAll("\\*", "");
}
@Override
protected boolean matches(EntityLivingBase entity) {
String name = entity.getName();
if (matchBoth && name.toLowerCase().contains(checkName.toLowerCase())) return true;
else if (matchFront && !matchBack && name.toLowerCase().endsWith(checkName.toLowerCase())) return true;
else if (!matchFront && matchBack && name.toLowerCase().startsWith(checkName.toLowerCase())) return true;
else if (name.toLowerCase().equals(checkName.toLowerCase())) return true;
else return false;
}
}
|
d703bd7ff87efa91c071f975988de9796e339ebd | package.json | package.json | {
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : "~6.1.0",
"stylefmt" : "~3.2.0",
"htmlhint" : "~0.9.6",
"jshint" : "~2.9.1",
"jscs" : "~3.0.3",
"esprima-fb" : "*",
"markdownlint-cli" : "0.1.0",
"write-good" : "~0.9.1",
"hicat" : "*"
},
"scripts": {
"check-html" : "htmlproofer --check-html --only-4xx",
"lint-html" : "htmlhint",
"lint-css" : "stylelint",
"lint-scss" : "stylelint --syntax scss",
"lint-bash" : "shellcheck",
"lint-md" : "markdownlint",
"percy-snap" : "percy snapshot",
"percy-snap-multi": "percy snapshot --widths '320, 768, 1080' _site/"
},
"license": "MIT",
"private": true
}
| {
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : "~6.1.0",
"stylefmt" : "~3.2.0",
"htmlhint" : "~0.9.6",
"jshint" : "~2.9.1",
"jscs" : "~3.0.3",
"esprima-fb" : "*",
"markdownlint-cli" : "0.1.0",
"write-good" : "~0.9.1",
"hicat" : "*"
},
"scripts": {
"check-html" : "htmlproofer --check-html --only-4xx",
"lint-html" : "htmlhint",
"lint-css" : "stylelint",
"lint-scss" : "stylelint --syntax scss",
"lint-bash" : "shellcheck",
"lint-md" : "markdownlint"
},
"license": "MIT",
"private": true
}
| Remove percy references that were accidentally committed | Remove percy references that were accidentally committed
| JSON | mit | ndarville/style,ndarville/style | json | ## Code Before:
{
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : "~6.1.0",
"stylefmt" : "~3.2.0",
"htmlhint" : "~0.9.6",
"jshint" : "~2.9.1",
"jscs" : "~3.0.3",
"esprima-fb" : "*",
"markdownlint-cli" : "0.1.0",
"write-good" : "~0.9.1",
"hicat" : "*"
},
"scripts": {
"check-html" : "htmlproofer --check-html --only-4xx",
"lint-html" : "htmlhint",
"lint-css" : "stylelint",
"lint-scss" : "stylelint --syntax scss",
"lint-bash" : "shellcheck",
"lint-md" : "markdownlint",
"percy-snap" : "percy snapshot",
"percy-snap-multi": "percy snapshot --widths '320, 768, 1080' _site/"
},
"license": "MIT",
"private": true
}
## Instruction:
Remove percy references that were accidentally committed
## Code After:
{
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : "~6.1.0",
"stylefmt" : "~3.2.0",
"htmlhint" : "~0.9.6",
"jshint" : "~2.9.1",
"jscs" : "~3.0.3",
"esprima-fb" : "*",
"markdownlint-cli" : "0.1.0",
"write-good" : "~0.9.1",
"hicat" : "*"
},
"scripts": {
"check-html" : "htmlproofer --check-html --only-4xx",
"lint-html" : "htmlhint",
"lint-css" : "stylelint",
"lint-scss" : "stylelint --syntax scss",
"lint-bash" : "shellcheck",
"lint-md" : "markdownlint"
},
"license": "MIT",
"private": true
}
|
8a1c3fb12494bf435a2bcdd536f49b05f71a4585 | device.go | device.go | package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entriesCh)
go func() {
for entry := range entriesCh {
devices = append(
devices,
Device{
Name: entry.Name,
Addr: entry.Addr.String(),
Port: entry.Port,
},
)
}
}()
mdns.Lookup("_airplay._tcp", entriesCh)
return devices
}
| package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entriesCh)
go func() {
for entry := range entriesCh {
ip := entry.Addr
var addr string
if ip.To16() != nil {
addr = "[" + ip.String() + "]"
} else {
addr = ip.String()
}
devices = append(
devices,
Device{
Name: entry.Name,
Addr: addr,
Port: entry.Port,
},
)
}
}()
mdns.Lookup("_airplay._tcp", entriesCh)
return devices
}
| Support IPv6 address AirServer returns. | Support IPv6 address AirServer returns.
| Go | mit | gongo/go-airplay | go | ## Code Before:
package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entriesCh)
go func() {
for entry := range entriesCh {
devices = append(
devices,
Device{
Name: entry.Name,
Addr: entry.Addr.String(),
Port: entry.Port,
},
)
}
}()
mdns.Lookup("_airplay._tcp", entriesCh)
return devices
}
## Instruction:
Support IPv6 address AirServer returns.
## Code After:
package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entriesCh)
go func() {
for entry := range entriesCh {
ip := entry.Addr
var addr string
if ip.To16() != nil {
addr = "[" + ip.String() + "]"
} else {
addr = ip.String()
}
devices = append(
devices,
Device{
Name: entry.Name,
Addr: addr,
Port: entry.Port,
},
)
}
}()
mdns.Lookup("_airplay._tcp", entriesCh)
return devices
}
|
4b7b2727a35cfcb0117b0ba4571da9a0ea81824a | greenmine/base/routers.py | greenmine/base/routers.py |
from rest_framework import routers
# Special router for actions.
actions_router = routers.Route(url=r'^{prefix}/{methodname}{trailing_slash}$',
mapping={'{httpmethod}': '{methodname}'},
name='{basename}-{methodnamehyphen}',
initkwargs={})
class DefaultRouter(routers.DefaultRouter):
routes = [
routers.DefaultRouter.routes[0],
actions_router,
routers.DefaultRouter.routes[2],
routers.DefaultRouter.routes[1]
]
__all__ = ["DefaultRouter"]
|
from rest_framework import routers
class DefaultRouter(routers.DefaultRouter):
pass
__all__ = ["DefaultRouter"]
| Remove old reimplementation of routes. | Remove old reimplementation of routes.
| Python | agpl-3.0 | joshisa/taiga-back,joshisa/taiga-back,gam-phon/taiga-back,bdang2012/taiga-back-casting,jeffdwyatt/taiga-back,rajiteh/taiga-back,crr0004/taiga-back,crr0004/taiga-back,EvgeneOskin/taiga-back,dayatz/taiga-back,Rademade/taiga-back,joshisa/taiga-back,Rademade/taiga-back,astronaut1712/taiga-back,forging2012/taiga-back,coopsource/taiga-back,dycodedev/taiga-back,frt-arch/taiga-back,astagi/taiga-back,Rademade/taiga-back,astronaut1712/taiga-back,astagi/taiga-back,seanchen/taiga-back,Tigerwhit4/taiga-back,seanchen/taiga-back,dayatz/taiga-back,taigaio/taiga-back,Tigerwhit4/taiga-back,gauravjns/taiga-back,jeffdwyatt/taiga-back,EvgeneOskin/taiga-back,joshisa/taiga-back,forging2012/taiga-back,Zaneh-/bearded-tribble-back,obimod/taiga-back,forging2012/taiga-back,Tigerwhit4/taiga-back,gauravjns/taiga-back,gam-phon/taiga-back,taigaio/taiga-back,obimod/taiga-back,astronaut1712/taiga-back,rajiteh/taiga-back,gauravjns/taiga-back,gam-phon/taiga-back,coopsource/taiga-back,WALR/taiga-back,Zaneh-/bearded-tribble-back,Zaneh-/bearded-tribble-back,jeffdwyatt/taiga-back,jeffdwyatt/taiga-back,xdevelsistemas/taiga-back-community,gauravjns/taiga-back,astagi/taiga-back,CoolCloud/taiga-back,obimod/taiga-back,bdang2012/taiga-back-casting,CoolCloud/taiga-back,seanchen/taiga-back,Rademade/taiga-back,Tigerwhit4/taiga-back,coopsource/taiga-back,dycodedev/taiga-back,crr0004/taiga-back,rajiteh/taiga-back,CMLL/taiga-back,CMLL/taiga-back,xdevelsistemas/taiga-back-community,CoolCloud/taiga-back,CMLL/taiga-back,dycodedev/taiga-back,WALR/taiga-back,Rademade/taiga-back,bdang2012/taiga-back-casting,obimod/taiga-back,WALR/taiga-back,xdevelsistemas/taiga-back-community,rajiteh/taiga-back,dayatz/taiga-back,astronaut1712/taiga-back,WALR/taiga-back,seanchen/taiga-back,19kestier/taiga-back,frt-arch/taiga-back,CMLL/taiga-back,EvgeneOskin/taiga-back,19kestier/taiga-back,bdang2012/taiga-back-casting,forging2012/taiga-back,astagi/taiga-back,crr0004/taiga-back,coopsource/taiga-back,frt-arch/taiga-back,19kestier/taiga-back,EvgeneOskin/taiga-back,dycodedev/taiga-back,CoolCloud/taiga-back,taigaio/taiga-back,gam-phon/taiga-back | python | ## Code Before:
from rest_framework import routers
# Special router for actions.
actions_router = routers.Route(url=r'^{prefix}/{methodname}{trailing_slash}$',
mapping={'{httpmethod}': '{methodname}'},
name='{basename}-{methodnamehyphen}',
initkwargs={})
class DefaultRouter(routers.DefaultRouter):
routes = [
routers.DefaultRouter.routes[0],
actions_router,
routers.DefaultRouter.routes[2],
routers.DefaultRouter.routes[1]
]
__all__ = ["DefaultRouter"]
## Instruction:
Remove old reimplementation of routes.
## Code After:
from rest_framework import routers
class DefaultRouter(routers.DefaultRouter):
pass
__all__ = ["DefaultRouter"]
|
485be1aa2bcb52a397d71a27caa5dab410d2af4b | requirements-gevent.txt | requirements-gevent.txt | cython
https://github.com/SiteSupport/gevent/tarball/1.0rc2
| cython
https://github.com/surfly/gevent/archive/1.0rc2.tar.gz
| Update URL to gevent tarball | Update URL to gevent tarball
| Text | apache-2.0 | jodal/pykka,tamland/pykka,tempbottle/pykka | text | ## Code Before:
cython
https://github.com/SiteSupport/gevent/tarball/1.0rc2
## Instruction:
Update URL to gevent tarball
## Code After:
cython
https://github.com/surfly/gevent/archive/1.0rc2.tar.gz
|
f24a58ef3d4695f0305f3d0969852621b532163c | chef-expander/lib/chef/expander/version.rb | chef-expander/lib/chef/expander/version.rb |
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rev.empty? ? nil : " (#{rev})"
end
"#{VERSION}#@rev"
end
end
end
|
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rescue Errno::ENOENT
rev = ""
end
rev.empty? ? nil : " (#{rev})"
end
"#{VERSION}#@rev"
end
end
end
| Allow for git to be uninstalled. | CHEF-2462: Allow for git to be uninstalled.
| Ruby | apache-2.0 | kamaradclimber/chef,OpSitters/chef,circleback/chef,jagdeesh109/chef,3dinfluence/chef,ChaosCloud/chef,Ppjet6/chef,3dinfluence/chef,BackSlasher/chef,criteo-forks/chef,jagdeesh109/chef,erkolson/chef,ccope/chef,pburkholder/chef,ducthanh/chef,criteo-forks/chef,antonifs/chef,DeWaRs1206/chef,adamleff/chef,nvwls/chef,jkerry/chef,h4ck3rm1k3/chef,ckaushik/chef,Tensibai/chef,skmichaelson/chef,DeWaRs1206/chef,robmul/chef,baberthal/chef,SUSE-Cloud/chef,jkerry/chef,someara/chef,oclaussen/chef,martinisoft/chef,b002368/chef-repo,faspl/chef,mikefaille/chef,hfichter/chef,tbriggs-curse/chef,renanvicente/chef,faspl/chef,jmhardison/chef,paulmooring/chef,mattray/chef,adamleff/chef,GabKlein/chef-merged,3dinfluence/chef,docwhat/chef,ckaushik/chef,strangelittlemonkey/chef,martinb3/chef,tbunnyman/chef,erkolson/chef,cachamber/chef,martinisoft/chef,sideci-sample/sideci-sample-chef,mikedodge04/chef,nalingarg2/chef-1,skmichaelson/chef,GabKlein/chef-merged,sysbot/chef,ShadySQL/chef-merged,jagdeesh109/chef,b002368/chef-repo,MsysTechnologiesllc/chef,ccsplit/chef,pburkholder/chef,jordane/chef,paulmooring/chef,karthikrev/chef,karthikrev/chef,paulmooring/chef,tomdoherty/chef,kisoku/chef,cmluciano/chef,zshuo/chef,tas50/chef-1,MsysTechnologiesllc/chef,aaron-lane/chef,legal90/chef,zuazo-forks/chef,gene1wood/chef,webframp/chef,aspiers/chef,kaznishi/chef,mikefaille/chef,jk47/chef,mattray/chef,nellshamrell/chef,sideci-sample/sideci-sample-chef,pburkholder/chef,zshuo/chef,ccsplit/chef,nvwls/chef,onlyhavecans/chef,nalingarg2/chef-1,mwrock/chef,joyent/chef,cmluciano/chef,Ppjet6/chef,robmul/chef,EasonYi/chef,karthikrev/chef,MichaelPereira/chef,natewalck/chef,cachamber/chef,nathwill/chef,bahamas10/chef,permyakovsv/chef,mattray/chef,mal/chef,ktpan/chef-play,joyent/chef,cgvarela/chef,pburkholder/chef,antonifs/chef,BackSlasher/chef,patcon/chef,robmul/chef,AndyBoucher/Chef-Testing,bahamas10/chef,patcon/chef,zuazo-forks/chef,tbunnyman/chef,mattray/chef,youngjl1/chef,mikedodge04/chef,malisettirammurthy/chef,robmul/chef,lamont-granquist/chef,ekometti/chef,josb/chef,aaron-lane/chef,mio-g/chef,EasonYi/chef,tomdoherty/chef,sempervictus/chef,webframp/chef,Ppjet6/chef,skmichaelson/chef,smurawski/chef,opsengine/chef,antonifs/chef,nsdavidson/chef,ChaosCloud/chef,jkerry/chef,criteo-forks/chef,GabKlein/chef-merged,ducthanh/chef,nalingarg2/chef-1,DeWaRs1206/chef,bahamas10/chef,antonifs/chef,ccsplit/chef,tomdoherty/chef,Tensibai/chef,gsaslis/chef,kamaradclimber/chef,h4ck3rm1k3/chef,Kast0rTr0y/chef,Kast0rTr0y/chef,natewalck/chef,ducthanh/chef,higanworks/chef,martinb3/chef,OpSitters/chef,swalberg/chef,andrewpsp/chef,nellshamrell/chef,nguyen-tien-mulodo/chef,sanditiffin/chef,b002368/chef-repo,smurawski/chef,gene1wood/chef,karthikrev/chef,gsaslis/chef,swalberg/chef,legal90/chef,nathwill/chef,askl56/chef,sometimesfood/chef,ChaosCloud/chef,smurawski/chef,Igorshp/chef,gsaslis/chef,jimmymccrory/chef,sysbot/chef,ccope/chef,cmluciano/chef,3dinfluence/chef,swalberg/chef,youngjl1/chef,davestarling/chef,jmhardison/chef,zuazo-forks/chef,kamaradclimber/chef,mal/chef,juliandunn/chef,jblaine/chef,Igorshp/chef,nguyen-tien-mulodo/chef,joyent/chef,adamleff/chef,skmichaelson/chef,ChaosCloud/chef,mikedodge04/chef,jaymzh/chef,b002368/chef-repo,martinb3/chef,jk47/chef,nalingarg2/chef-1,oclaussen/chef,Ppjet6/chef,cachamber/chef,evan2645/chef,ShadySQL/chef-merged,aaron-lane/chef,bahamas10/chef,joemiller/chef,OpSitters/chef,smurawski/chef,jordane/chef,danielsdeleo/seth,malisettirammurthy/chef,sysbot/chef,zuazo-forks/chef,criteo-forks/chef,joemiller/chef,grubernaut/chef,evan2645/chef,paulmooring/chef,onlyhavecans/chef,custora/chef,zshuo/chef,ktpan/chef-play,ekometti/chef,baberthal/chef,youngjl1/chef,mikefaille/chef,tbunnyman/chef,clintoncwolfe/chef,danielsdeleo/seth,SUSE-Cloud/chef,sempervictus/chef,jonlives/chef,lamont-granquist/chef,jk47/chef,tbunnyman/chef,gsaslis/chef,skmichaelson/chef,zshuo/chef,jmhardison/chef,baberthal/chef,jmhardison/chef,criteo-forks/chef,sanditiffin/chef,jonlives/chef,andrewpsp/chef,renanvicente/chef,sanditiffin/chef,Tensibai/chef,lamont-granquist/chef,faspl/chef,juliandunn/chef,ktpan/chef-play,strangelittlemonkey/chef,coderanger/chef,strangelittlemonkey/chef,nvwls/chef,MichaelPereira/chef,grubernaut/chef,nvwls/chef,baberthal/chef,nsdavidson/chef,mio-g/chef,jimmymccrory/chef,opsengine/chef,strangelittlemonkey/chef,ranjib/chef,circleback/chef,sanditiffin/chef,EasonYi/chef,jkerry/chef,smurawski/chef,sysbot/chef,martinisoft/chef,sometimesfood/chef,mwrock/chef,OpSitters/chef,ccope/chef,jonlives/chef,legal90/chef,pburkholder/chef,erkolson/chef,swalberg/chef,cmluciano/chef,strangelittlemonkey/chef,chef/chef,mal/chef,nsdavidson/chef,brettcave/chef,tbriggs-curse/chef,clintoncwolfe/chef,brettcave/chef,lamont-granquist/chef,EasonYi/chef,legal90/chef,nsdavidson/chef,grubernaut/chef,ChaosCloud/chef,MichaelPereira/chef,Tensibai/chef,adamleff/chef,natewalck/chef,martinisoft/chef,pburkholder/chef,malisettirammurthy/chef,polamjag/chef,nicklv/chef,mio-g/chef,SUSE-Cloud/chef,gene1wood/chef,gsaslis/chef,nathwill/chef,sempervictus/chef,nathwill/chef,ChaosCloud/chef,legal90/chef,sekrett/chef,jagdeesh109/chef,ktpan/chef-play,mal/chef,mio-g/chef,jblaine/chef,mikefaille/chef,3dinfluence/chef,mikedodge04/chef,tas50/chef-1,malisettirammurthy/chef,ShadySQL/chef-merged,permyakovsv/chef,acaiafa/chef,custora/chef,kaznishi/chef,someara/chef,custora/chef,tomdoherty/chef,sempervictus/chef,permyakovsv/chef,sekrett/chef,acaiafa/chef,cgvarela/chef,permyakovsv/chef,aaron-lane/chef,cmluciano/chef,legal90/chef,youngjl1/chef,ducthanh/chef,ekometti/chef,webframp/chef,aaron-lane/chef,paulmooring/chef,renanvicente/chef,jaymzh/chef,josb/chef,adamleff/chef,MichaelPereira/chef,jimmymccrory/chef,sometimesfood/chef,hfichter/chef,onlyhavecans/chef,onlyhavecans/chef,davestarling/chef,ekometti/chef,jimmymccrory/chef,antonifs/chef,zuazo-forks/chef,martinb3/chef,ccope/chef,Kast0rTr0y/chef,mio-g/chef,MsysTechnologiesllc/chef,brettcave/chef,jordane/chef,tbriggs-curse/chef,nellshamrell/chef,cachamber/chef,custora/chef,mikedodge04/chef,SUSE-Cloud/chef,mal/chef,patcon/chef,nalingarg2/chef-1,jagdeesh109/chef,renanvicente/chef,aspiers/chef,askl56/chef,sekrett/chef,nellshamrell/chef,jmhardison/chef,andrewpsp/chef,skmichaelson/chef,antonifs/chef,webframp/chef,ranjib/chef,opsengine/chef,GabKlein/chef-merged,evan2645/chef,askl56/chef,custora/chef,juliandunn/chef,oclaussen/chef,tomdoherty/chef,ccsplit/chef,hfichter/chef,sideci-sample/sideci-sample-chef,nathwill/chef,nguyen-tien-mulodo/chef,karthikrev/chef,SUSE-Cloud/chef,circleback/chef,tbunnyman/chef,juliandunn/chef,Ppjet6/chef,nguyen-tien-mulodo/chef,acaiafa/chef,kaznishi/chef,ckaushik/chef,cgvarela/chef,tbunnyman/chef,coderanger/chef,grubernaut/chef,baberthal/chef,zuazo-forks/chef,acaiafa/chef,martinb3/chef,mio-g/chef,Tensibai/chef,sideci-sample/sideci-sample-chef,permyakovsv/chef,gene1wood/chef,Igorshp/chef,higanworks/chef,faspl/chef,smurawski/chef,nguyen-tien-mulodo/chef,natewalck/chef,opsengine/chef,mikefaille/chef,sometimesfood/chef,ktpan/chef-play,josb/chef,sempervictus/chef,andrewpsp/chef,Igorshp/chef,ckaushik/chef,AndyBoucher/Chef-Testing,webframp/chef,h4ck3rm1k3/chef,oclaussen/chef,bahamas10/chef,polamjag/chef,youngjl1/chef,robmul/chef,joyent/chef,ranjib/chef,polamjag/chef,paulmooring/chef,robmul/chef,adamleff/chef,malisettirammurthy/chef,jmhardison/chef,jaymzh/chef,youngjl1/chef,askl56/chef,nsdavidson/chef,ktpan/chef-play,jblaine/chef,natewalck/chef,joemiller/chef,BackSlasher/chef,aaron-lane/chef,ccsplit/chef,sometimesfood/chef,jordane/chef,baberthal/chef,ducthanh/chef,Igorshp/chef,kisoku/chef,b002368/chef-repo,kisoku/chef,nicklv/chef,higanworks/chef,Kast0rTr0y/chef,custora/chef,aspiers/chef,erkolson/chef,danielsdeleo/seth,someara/chef,nalingarg2/chef-1,ShadySQL/chef-merged,faspl/chef,DeWaRs1206/chef,jblaine/chef,hfichter/chef,webframp/chef,evan2645/chef,ckaushik/chef,cgvarela/chef,circleback/chef,mattray/chef,sempervictus/chef,higanworks/chef,BackSlasher/chef,tbriggs-curse/chef,danielsdeleo/seth,josb/chef,oclaussen/chef,clintoncwolfe/chef,sideci-sample/sideci-sample-chef,chef/chef,cgvarela/chef,sekrett/chef,docwhat/chef,askl56/chef,malisettirammurthy/chef,Ppjet6/chef,renanvicente/chef,OpSitters/chef,evan2645/chef,nicklv/chef,MichaelPereira/chef,chef/chef,circleback/chef,jimmymccrory/chef,patcon/chef,karthikrev/chef,sekrett/chef,BackSlasher/chef,chef/chef,lamont-granquist/chef,evan2645/chef,nathwill/chef,kaznishi/chef,grubernaut/chef,ccsplit/chef,ducthanh/chef,jkerry/chef,jonlives/chef,josb/chef,clintoncwolfe/chef,swalberg/chef,nicklv/chef,mwrock/chef,brettcave/chef,docwhat/chef,brettcave/chef,jblaine/chef,jk47/chef,onlyhavecans/chef,cachamber/chef,davestarling/chef,coderanger/chef,someara/chef,polamjag/chef,docwhat/chef,ShadySQL/chef-merged,patcon/chef,cgvarela/chef,joyent/chef,davestarling/chef,erkolson/chef,juliandunn/chef,mikedodge04/chef,mal/chef,nvwls/chef,polamjag/chef,permyakovsv/chef,bahamas10/chef,acaiafa/chef,askl56/chef,jordane/chef,ranjib/chef,jkerry/chef,davestarling/chef,gsaslis/chef,MsysTechnologiesllc/chef,jonlives/chef,Kast0rTr0y/chef,h4ck3rm1k3/chef,ekometti/chef,swalberg/chef,jonlives/chef,OpSitters/chef,ckaushik/chef,h4ck3rm1k3/chef,jk47/chef,sanditiffin/chef,martinisoft/chef,AndyBoucher/Chef-Testing,renanvicente/chef,EasonYi/chef,sanditiffin/chef,aspiers/chef,danielsdeleo/seth,polamjag/chef,kamaradclimber/chef,clintoncwolfe/chef,martinb3/chef,nicklv/chef,AndyBoucher/Chef-Testing,ranjib/chef,joemiller/chef,ekometti/chef,faspl/chef,coderanger/chef,kaznishi/chef,zshuo/chef,onlyhavecans/chef,someara/chef,jagdeesh109/chef,sekrett/chef,acaiafa/chef,strangelittlemonkey/chef,patcon/chef,natewalck/chef,tbriggs-curse/chef,kisoku/chef,kaznishi/chef,nvwls/chef,tbriggs-curse/chef,h4ck3rm1k3/chef,DeWaRs1206/chef,cachamber/chef,andrewpsp/chef,docwhat/chef,EasonYi/chef,tas50/chef-1,AndyBoucher/Chef-Testing,jk47/chef,BackSlasher/chef,3dinfluence/chef,criteo-forks/chef,oclaussen/chef,ccope/chef,kisoku/chef,Kast0rTr0y/chef,jimmymccrory/chef,AndyBoucher/Chef-Testing,b002368/chef-repo,mikefaille/chef,nsdavidson/chef,nellshamrell/chef,MichaelPereira/chef,nicklv/chef,sometimesfood/chef,circleback/chef,jaymzh/chef,mwrock/chef,SUSE-Cloud/chef,andrewpsp/chef,zshuo/chef,brettcave/chef,erkolson/chef,higanworks/chef,opsengine/chef,DeWaRs1206/chef,hfichter/chef,lamont-granquist/chef,docwhat/chef,nguyen-tien-mulodo/chef,joemiller/chef,sysbot/chef,clintoncwolfe/chef,tas50/chef-1,grubernaut/chef,joemiller/chef,someara/chef,josb/chef,Igorshp/chef,ranjib/chef,nellshamrell/chef,aspiers/chef,jblaine/chef | ruby | ## Code Before:
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rev.empty? ? nil : " (#{rev})"
end
"#{VERSION}#@rev"
end
end
end
## Instruction:
CHEF-2462: Allow for git to be uninstalled.
## Code After:
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rescue Errno::ENOENT
rev = ""
end
rev.empty? ? nil : " (#{rev})"
end
"#{VERSION}#@rev"
end
end
end
|
18afbc5becae4c65906d98e2b48ff511524b34aa | scripts/fetch-develop.deps.sh | scripts/fetch-develop.deps.sh |
curbranch=`git rev-parse --abbrev-ref HEAD`
mkdir -p node_modules
cd node_modules
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
npm install
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
popd
}
dodep matrix-org matrix-js-sdk
dodep matrix-org matrix-react-sdk
|
curbranch=`git rev-parse --abbrev-ref HEAD`
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
popd
}
dodep matrix-org matrix-js-sdk
dodep matrix-org matrix-react-sdk
mkdir -p node_modules
cd node_modules
ln -s ../matrix-js-sdk ./
pushd matrix-js-sdk
npm install
popd
ln -s ../matrix-react-sdk ./
pushd matrix-react-sdk
mkdir -p node_modules
cd node_modules
ln -s ../../matrix-js-sdk matrix-js-sdk
cd ..
npm install
popd
# Link the reskindex binary in place: if we used npm link,
# npm would do this for us, but we don't because we'd have
# to define the npm prefix somewhere so it could put the
# intermediate symlinks there. Instead, we do it ourselves.
mkdir -p .bin
ln -s ../matrix-react-sdk/scripts/reskindex.js .bin/reskindex
| Make dep install script work | Make dep install script work
| Shell | apache-2.0 | vector-im/vector-web,vector-im/riot-web,vector-im/riot-web,vector-im/riot-web,martindale/vector,vector-im/riot-web,vector-im/vector-web,vector-im/vector-web,vector-im/riot-web,vector-im/riot-web,vector-im/vector-web,vector-im/vector-web,martindale/vector | shell | ## Code Before:
curbranch=`git rev-parse --abbrev-ref HEAD`
mkdir -p node_modules
cd node_modules
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
npm install
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
popd
}
dodep matrix-org matrix-js-sdk
dodep matrix-org matrix-react-sdk
## Instruction:
Make dep install script work
## Code After:
curbranch=`git rev-parse --abbrev-ref HEAD`
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
popd
}
dodep matrix-org matrix-js-sdk
dodep matrix-org matrix-react-sdk
mkdir -p node_modules
cd node_modules
ln -s ../matrix-js-sdk ./
pushd matrix-js-sdk
npm install
popd
ln -s ../matrix-react-sdk ./
pushd matrix-react-sdk
mkdir -p node_modules
cd node_modules
ln -s ../../matrix-js-sdk matrix-js-sdk
cd ..
npm install
popd
# Link the reskindex binary in place: if we used npm link,
# npm would do this for us, but we don't because we'd have
# to define the npm prefix somewhere so it could put the
# intermediate symlinks there. Instead, we do it ourselves.
mkdir -p .bin
ln -s ../matrix-react-sdk/scripts/reskindex.js .bin/reskindex
|
505181dac07e48ff83fc97c665bea6d74c7665c0 | README.md | README.md | System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
docker run --name iou-db \
-p 5432:5432 \
-e POSTGRES_DB=iou \
-e POSTGRES_PASSWORD=mysecretpassword \
-d postgres
```
If this has already been run you can start and stop the DB as follows:
```
docker start iou-db
docker stop iou-db
```
To restart with a fresh DB remove and recreate the docker instance
```
docker rm iou-db
```
To connect to the running DB use:
```
docker run -it --rm --link iou-db:postgres postgres psql -h postgres -U postgres iou
```
# Deployment
Let travis deploy the application to a pre provisioned environment.
Exececute the following once to initialise travis and docker with required deployment settings
```
./scripts/provision-travis-k8s-environment.sh
```
| System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
docker run --name iou-db \
-p 5432:5432 \
-e POSTGRES_DB=iou \
-e POSTGRES_PASSWORD=mysecretpassword \
-d postgres
```
If this has already been run you can start and stop the DB as follows:
```
docker start iou-db
docker stop iou-db
```
To restart with a fresh DB remove and recreate the docker instance
```
docker rm iou-db
```
To connect to the running DB use:
```
docker run -it --rm --link iou-db:postgres postgres psql -h postgres -U postgres iou
```
# Build
# Deployment
Let travis deploy the application to a pre provisioned environment.
Exececute the following once to initialise travis and docker with required deployment settings
```
./scripts/provision-travis-k8s-environment.sh
```
| Test build with github ci | Test build with github ci
| Markdown | mit | nathancashmore/iou,nathancashmore/iou | markdown | ## Code Before:
System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
docker run --name iou-db \
-p 5432:5432 \
-e POSTGRES_DB=iou \
-e POSTGRES_PASSWORD=mysecretpassword \
-d postgres
```
If this has already been run you can start and stop the DB as follows:
```
docker start iou-db
docker stop iou-db
```
To restart with a fresh DB remove and recreate the docker instance
```
docker rm iou-db
```
To connect to the running DB use:
```
docker run -it --rm --link iou-db:postgres postgres psql -h postgres -U postgres iou
```
# Deployment
Let travis deploy the application to a pre provisioned environment.
Exececute the following once to initialise travis and docker with required deployment settings
```
./scripts/provision-travis-k8s-environment.sh
```
## Instruction:
Test build with github ci
## Code After:
System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
docker run --name iou-db \
-p 5432:5432 \
-e POSTGRES_DB=iou \
-e POSTGRES_PASSWORD=mysecretpassword \
-d postgres
```
If this has already been run you can start and stop the DB as follows:
```
docker start iou-db
docker stop iou-db
```
To restart with a fresh DB remove and recreate the docker instance
```
docker rm iou-db
```
To connect to the running DB use:
```
docker run -it --rm --link iou-db:postgres postgres psql -h postgres -U postgres iou
```
# Build
# Deployment
Let travis deploy the application to a pre provisioned environment.
Exececute the following once to initialise travis and docker with required deployment settings
```
./scripts/provision-travis-k8s-environment.sh
```
|
dc224d19e79146fece348b3314832e8080e89258 | stylus/modules/notice.styl | stylus/modules/notice.styl | .ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: notice.color;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
}
&.ion-alert {
background: notice.alert-bg;
}
&.ion-warning {
background: notice.warning-bg;
}
.material-icons {
cursor: pointer;
float: right;
line-height: 40px;
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
| .ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: #212121;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
color: notice.color;
}
&.ion-alert {
background: notice.alert-bg;
color: notice.color;
}
&.ion-warning {
background: notice.warning-bg;
color: notice.color;
}
.material-icons {
cursor: pointer;
float: right;
line-height: 40px;
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
| Fix default alert text being hard to read | Fix default alert text being hard to read
| Stylus | mit | Ionogy/kernel.css,Ionogy/kernel.css | stylus | ## Code Before:
.ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: notice.color;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
}
&.ion-alert {
background: notice.alert-bg;
}
&.ion-warning {
background: notice.warning-bg;
}
.material-icons {
cursor: pointer;
float: right;
line-height: 40px;
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
## Instruction:
Fix default alert text being hard to read
## Code After:
.ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: #212121;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
color: notice.color;
}
&.ion-alert {
background: notice.alert-bg;
color: notice.color;
}
&.ion-warning {
background: notice.warning-bg;
color: notice.color;
}
.material-icons {
cursor: pointer;
float: right;
line-height: 40px;
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
|
6d04f2a7e439747b3fabe2e38d71e1a200007ede | .travis.yml | .travis.yml | language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- app/console redis:restore-fixtures
- sudo apt-get update -y
- sudo apt-get install -y graphicsmagick
- npm install -g npm@2.2.0
- npm install
- bower install
- gulp build
script: app/kahlan
| language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- sudo apt-get install -y graphicsmagick redis-server
- app/console redis:restore-fixtures
- npm install -g npm@2.2.0
- npm install
- bower install
- gulp build
script: app/kahlan
| Install redis-server before trying fixtures restore | Install redis-server before trying fixtures restore
| YAML | mit | phpsw/phpsw,phpsw/phpsw,phpsw/phpsw,phpsw/phpsw,phpsw/phpsw | yaml | ## Code Before:
language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- app/console redis:restore-fixtures
- sudo apt-get update -y
- sudo apt-get install -y graphicsmagick
- npm install -g npm@2.2.0
- npm install
- bower install
- gulp build
script: app/kahlan
## Instruction:
Install redis-server before trying fixtures restore
## Code After:
language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- sudo apt-get install -y graphicsmagick redis-server
- app/console redis:restore-fixtures
- npm install -g npm@2.2.0
- npm install
- bower install
- gulp build
script: app/kahlan
|
de0e94cc6df400a721dda0811c641834f6d32e6e | zsh/.zsh/env.zsh | zsh/.zsh/env.zsh | umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse'
# paths
export GOPATH='~/.go'
path=(
/usr/local/sbin
$GOPATH/bin
$path
)
| umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse'
# zsh options
setopt nobanghist
# paths
export GOPATH='~/.go'
path=(
/usr/local/sbin
$GOPATH/bin
$path
)
| Make zsh accept bangs in quotes! | Make zsh accept bangs in quotes!
| Shell | bsd-3-clause | alpinebutterfly/dotfiles,alpinebutterfly/dotfiles,mpcsh/dotfiles | shell | ## Code Before:
umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse'
# paths
export GOPATH='~/.go'
path=(
/usr/local/sbin
$GOPATH/bin
$path
)
## Instruction:
Make zsh accept bangs in quotes!
## Code After:
umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse'
# zsh options
setopt nobanghist
# paths
export GOPATH='~/.go'
path=(
/usr/local/sbin
$GOPATH/bin
$path
)
|
88bd75c4b0e039c208a1471d84006cdfb4bbaf93 | starbowmodweb/site/templatetags/bbformat.py | starbowmodweb/site/templatetags/bbformat.py | from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' for name in options.keys()])
return ('<img src="{}" '+attrs+' />').format(value, *options.values())
bbcode_parser = bbcode.Parser()
bbcode_parser.add_formatter("img", bbcode_img, replace_links=False)
def bbformat(value):
return bbcode_parser.format(value)
register = template.Library()
register.filter('bbformat', bbformat)
| from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' for name in options.keys()])
return ('<img src="{}" '+attrs+' />').format(value, *options.values())
def bbcode_email(tag_name, value, options, parent, context):
return '<a href="mailto:{}">{}</a>'.format(value, value)
def bbcode_font(tag_name, value, options, parent, context):
return '<span style="font-family: {}">{}</span>'.format(options[tag_name], value)
bbcode_parser = bbcode.Parser()
bbcode_parser.add_formatter("img", bbcode_img, replace_links=False)
bbcode_parser.add_formatter("email", bbcode_email)
bbcode_parser.add_formatter("font", bbcode_font)
def bbformat(value):
return bbcode_parser.format(value)
register = template.Library()
register.filter('bbformat', bbformat)
| Add support for email and font bbcode tags. | Add support for email and font bbcode tags.
| Python | mit | Starbow/StarbowWebSite,Starbow/StarbowWebSite,Starbow/StarbowWebSite | python | ## Code Before:
from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' for name in options.keys()])
return ('<img src="{}" '+attrs+' />').format(value, *options.values())
bbcode_parser = bbcode.Parser()
bbcode_parser.add_formatter("img", bbcode_img, replace_links=False)
def bbformat(value):
return bbcode_parser.format(value)
register = template.Library()
register.filter('bbformat', bbformat)
## Instruction:
Add support for email and font bbcode tags.
## Code After:
from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' for name in options.keys()])
return ('<img src="{}" '+attrs+' />').format(value, *options.values())
def bbcode_email(tag_name, value, options, parent, context):
return '<a href="mailto:{}">{}</a>'.format(value, value)
def bbcode_font(tag_name, value, options, parent, context):
return '<span style="font-family: {}">{}</span>'.format(options[tag_name], value)
bbcode_parser = bbcode.Parser()
bbcode_parser.add_formatter("img", bbcode_img, replace_links=False)
bbcode_parser.add_formatter("email", bbcode_email)
bbcode_parser.add_formatter("font", bbcode_font)
def bbformat(value):
return bbcode_parser.format(value)
register = template.Library()
register.filter('bbformat', bbformat)
|
f140a2200f6f5453471a3760f16cfcdd9c9faeae | .travis.yml | .travis.yml | language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: MongoDB and RabbitMQ is needed for packs-resource-register check
- mongodb
- rabbitmq
addons:
apt:
packages:
- git # needed by git-changes scripts
- libsox-dev # needed by witai pack
cache:
directories:
- $HOME/.pip-cache/
install:
- pip install --upgrade pip
script:
- ./scripts/travis.sh
notifications:
email:
- eng@stackstorm.com
| language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: MongoDB and RabbitMQ is needed for packs-resource-register check
- mongodb
- rabbitmq
addons:
apt:
packages:
- git # needed by git-changes scripts
- libsox-dev # needed by witai pack
- freetds-dev # needed by mssql package
cache:
directories:
- $HOME/.pip-cache/
install:
- pip install --upgrade pip
script:
- ./scripts/travis.sh
notifications:
email:
- eng@stackstorm.com
| Add "freetds-dev" build dependency, it's needed by mssql pack. | Add "freetds-dev" build dependency, it's needed by mssql pack.
| YAML | apache-2.0 | pidah/st2contrib,pidah/st2contrib,tonybaloney/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,StackStorm/st2contrib,armab/st2contrib,armab/st2contrib,StackStorm/st2contrib,StackStorm/st2contrib,pearsontechnology/st2contrib,pearsontechnology/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,armab/st2contrib,pidah/st2contrib | yaml | ## Code Before:
language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: MongoDB and RabbitMQ is needed for packs-resource-register check
- mongodb
- rabbitmq
addons:
apt:
packages:
- git # needed by git-changes scripts
- libsox-dev # needed by witai pack
cache:
directories:
- $HOME/.pip-cache/
install:
- pip install --upgrade pip
script:
- ./scripts/travis.sh
notifications:
email:
- eng@stackstorm.com
## Instruction:
Add "freetds-dev" build dependency, it's needed by mssql pack.
## Code After:
language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: MongoDB and RabbitMQ is needed for packs-resource-register check
- mongodb
- rabbitmq
addons:
apt:
packages:
- git # needed by git-changes scripts
- libsox-dev # needed by witai pack
- freetds-dev # needed by mssql package
cache:
directories:
- $HOME/.pip-cache/
install:
- pip install --upgrade pip
script:
- ./scripts/travis.sh
notifications:
email:
- eng@stackstorm.com
|
edba525a236224b4e73dba6fc236db4f6fddbbd4 | tox.ini | tox.ini | [tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
| [tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
py{34}: pytest<3.3
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
| Fix tests with Python 3.4. Using pytest < 3.3 for pytest-timeout < 1.2.1 compatibility. | Fix tests with Python 3.4. Using pytest < 3.3 for pytest-timeout < 1.2.1 compatibility.
| INI | apache-2.0 | gorakhargosh/watchdog,gorakhargosh/watchdog | ini | ## Code Before:
[tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
## Instruction:
Fix tests with Python 3.4. Using pytest < 3.3 for pytest-timeout < 1.2.1 compatibility.
## Code After:
[tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
py{34}: pytest<3.3
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
|
7bca303a910b397ff23826dc0c57a8393c30d7c1 | lib/mspec/helpers/environment.rb | lib/mspec/helpers/environment.rb | require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def username
user = ""
if SpecGuard.windows?
user = `cmd.exe /C ECHO %USERNAME%`.strip
else
user = `whoami`.strip
end
user
end
end
| require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def windows_env_echo(var)
`cmd.exe /C ECHO %#{var}%`.strip
end
def username
user = ""
if SpecGuard.windows?
user = windows_env_echo('USERNAME')
else
user = `whoami`.strip
end
user
end
def home_directory
return ENV['HOME'] unless SpecGuard.windows?
windows_env_echo('HOMEDRIVE') + windows_env_echo('HOMEPATH')
end
end
| Add helper to find the user's home directory. | Add helper to find the user's home directory.
| Ruby | mit | eregon/mspec,shirosaki/mspec,iainbeeston/mspec,kachick/mspec,nobu/mspec,MagLev/mspec,elia/mspec,iainbeeston/mspec,ryoqun/mspec,opal/mspec,voxik/mspec,Zoxc/mspec,timfel/mspec,kachick/mspec,MagLev/mspec,rubinius/mspec,opal/mspec,ruby/mspec,rdp/mspec,ruby/mspec,Gibheer/mspec,ryoqun/mspec,shugo/mspec,mrkn/mspec,alex/mspec,mkb/mspec | ruby | ## Code Before:
require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def username
user = ""
if SpecGuard.windows?
user = `cmd.exe /C ECHO %USERNAME%`.strip
else
user = `whoami`.strip
end
user
end
end
## Instruction:
Add helper to find the user's home directory.
## Code After:
require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def windows_env_echo(var)
`cmd.exe /C ECHO %#{var}%`.strip
end
def username
user = ""
if SpecGuard.windows?
user = windows_env_echo('USERNAME')
else
user = `whoami`.strip
end
user
end
def home_directory
return ENV['HOME'] unless SpecGuard.windows?
windows_env_echo('HOMEDRIVE') + windows_env_echo('HOMEPATH')
end
end
|
58ae075463518e477185816094eb83f42ce5b77c | gcloud/bigquery/__init__.py | gcloud/bigquery/__init__.py |
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
|
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
from gcloud.bigquery.table import SchemaField
from gcloud.bigquery.table import Table
| Add public API entties from 'bigquery.table'. | Add public API entties from 'bigquery.table'.
| Python | apache-2.0 | CyrusBiotechnology/gcloud-python,tseaver/google-cloud-python,Fkawala/gcloud-python,waprin/gcloud-python,jonparrott/gcloud-python,EugenePig/gcloud-python,dhermes/google-cloud-python,tswast/google-cloud-python,thesandlord/gcloud-python,tswast/google-cloud-python,EugenePig/gcloud-python,jbuberel/gcloud-python,dhermes/google-cloud-python,calpeyser/google-cloud-python,tseaver/gcloud-python,dhermes/gcloud-python,dhermes/google-cloud-python,tseaver/google-cloud-python,jgeewax/gcloud-python,tswast/google-cloud-python,waprin/google-cloud-python,GoogleCloudPlatform/gcloud-python,jonparrott/google-cloud-python,tseaver/google-cloud-python,vj-ug/gcloud-python,quom/google-cloud-python,googleapis/google-cloud-python,tseaver/gcloud-python,tartavull/google-cloud-python,daspecster/google-cloud-python,quom/google-cloud-python,dhermes/gcloud-python,jonparrott/google-cloud-python,googleapis/google-cloud-python,Fkawala/gcloud-python,jbuberel/gcloud-python,elibixby/gcloud-python,VitalLabs/gcloud-python,waprin/gcloud-python,GoogleCloudPlatform/gcloud-python,CyrusBiotechnology/gcloud-python,jonparrott/gcloud-python,jgeewax/gcloud-python,vj-ug/gcloud-python,VitalLabs/gcloud-python,waprin/google-cloud-python,thesandlord/gcloud-python,daspecster/google-cloud-python,elibixby/gcloud-python,tartavull/google-cloud-python,calpeyser/google-cloud-python | python | ## Code Before:
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
## Instruction:
Add public API entties from 'bigquery.table'.
## Code After:
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
from gcloud.bigquery.table import SchemaField
from gcloud.bigquery.table import Table
|
7e32ec8532c1e899dd33f30521a9d75399d8efa1 | traffic_control/README.md | traffic_control/README.md |
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for that airline.
Your first goal is to define the API. You're smart enough to realize that writing the API and having it grow organically is going to make for some crappy code, so you're going to define the endpoints first before you do anything else.
## Requirements
* Build the set of routes necessary for the airline API. Assume that there will not be any useful documentation for this API, so it has to be comprehensible on its own.
* The output should be a text file that looks like the output from the `rake routes` command. Give example usage for anything even remotely complicated.
* At minimum, support the following functionality:
* Get a manifest of passengers for a given flight.
* Get details on a given flight
* See the trip an airplane will make regardless of individual itineraries.
* See when the airplane will have to refuel during that trip.
* Find flights matching some criteria
* Get details on an airport or destination (use the airport code for this)
* Get a list of itineraries with flights for a given passenger.
* For modifying data:
* Create new bookings
* Reroute airplanes through new itineraries
|
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for that airline.
Your first goal is to define the API. You're smart enough to realize that writing the API and having it grow organically is going to make for some crappy code, so you're going to define the endpoints first before you do anything else.
## Requirements
* Build the set of routes necessary for the airline API. Assume that there will not be any useful documentation for this API, so it has to be comprehensible on its own.
* The output should be a text file that looks like the output from the `rake routes` command. Give example usage for anything even remotely complicated.
* At minimum, support the following functionality:
* For a given flight, get a manifest of passengers, and details of the flight. Add or remove bookings from that flight (also I may change my mind on my food preferences or seating). I may need to re-route airplanes for various reasons, so let me do that as well.
* See the trip an airplane will make regardless of individual itineraries. See when the airplane will have to refuel during those trips. Also, when I maintenance an airplane, I need to update information on the vehicle. Who needs security anyway?
* Find flights matching some search criteria.
* Get details on an airport or destination (use the airport code for this).
* Get a list of itineraries with flights for a given passenger.
| Add more variety to traffic_control exercise. It's all GETs right now. | Add more variety to traffic_control exercise. It's all GETs right now.
| Markdown | mit | fengb/level_up_exercises,LKompare/level_up_exercises,Manbearpixel/level_up_exercises,oharace/level_up_exercises,jmmastey/level_up_exercises,sumsionp/level_up_exercises,pdhiman/level_up_exercises,DejaAugustine/level_up_exercises,pmacaluso3/level_up_exercises,sumsionp/level_up_exercises,pmacaluso3/level_up_exercises,cengelken/level_up_exercises,dietpop/level_up_exercises,jmmastey/level_up_exercises,Ladaniels/level_up_exercises,jnyman/level_up_exercises,dietpop/level_up_exercises,cnorm35/level_up_exercises,Manbearpixel/level_up_exercises,balajisubr/levelup,abake-enova/level_up_exercises,cengelken/level_up_exercises,jnyman/level_up_exercises,djkotowski/level_up_exercises,chichiwang/level_up_exercises,mccormjt/level_up_exercises,pdhiman/level_up_exercises,arpanp1986/ruby,Sonju/level_up_exercises,zsyed91/level_up_exercises,mostlybadfly/level_up_exercises,fengb/level_up_exercises,cengelken/level_up_exercises,Tornquist/level_up_exercises,mccormjt/level_up_exercises,aniruddhabarapatre/level_up_exercises,vconcepcion/level_up_exercises,djkotowski/level_up_exercises,Sonju/level_up_exercises,DejaAugustine/level_up_exercises,mcdaniel67/level_up_exercises,aniruddhabarapatre/level_up_exercises,cnorm35/level_up_exercises,sfoa6558/level_up_exercises,vconcepcion/level_up_exercises,enova/level_up_exercises,cnorm35/level_up_exercises,jmmastey/level_up_exercises,LKompare/level_up_exercises,sfoa6558/level_up_exercises,oharace/level_up_exercises,oharace/level_up_exercises,balajisubr/levelup,arpanp1986/ruby,Tornquist/level_up_exercises,aniruddhabarapatre/level_up_exercises,ac-adekunle/level_up_exercises,pdhiman/level_up_exercises,chichiwang/level_up_exercises,LKompare/level_up_exercises,ac-adekunle/level_up_exercises,mcdaniel67/level_up_exercises,chichiwang/level_up_exercises,mostlybadfly/level_up_exercises,dietpop/level_up_exercises,murraymel/level_up_exercises,abake-enova/level_up_exercises,Sonju/level_up_exercises,DejaAugustine/level_up_exercises,enova/level_up_exercises,mcdaniel67/level_up_exercises,mccormjt/level_up_exercises,fengb/level_up_exercises,enova/level_up_exercises,sfoa6558/level_up_exercises,arpanp1986/ruby,zsyed91/level_up_exercises,vconcepcion/level_up_exercises,murraymel/level_up_exercises,pmacaluso3/level_up_exercises,mostlybadfly/level_up_exercises,balajisubr/levelup,Tornquist/level_up_exercises,Manbearpixel/level_up_exercises,ac-adekunle/level_up_exercises,Ladaniels/level_up_exercises,djkotowski/level_up_exercises,abake-enova/level_up_exercises,jnyman/level_up_exercises,murraymel/level_up_exercises,zsyed91/level_up_exercises,Ladaniels/level_up_exercises,sumsionp/level_up_exercises | markdown | ## Code Before:
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for that airline.
Your first goal is to define the API. You're smart enough to realize that writing the API and having it grow organically is going to make for some crappy code, so you're going to define the endpoints first before you do anything else.
## Requirements
* Build the set of routes necessary for the airline API. Assume that there will not be any useful documentation for this API, so it has to be comprehensible on its own.
* The output should be a text file that looks like the output from the `rake routes` command. Give example usage for anything even remotely complicated.
* At minimum, support the following functionality:
* Get a manifest of passengers for a given flight.
* Get details on a given flight
* See the trip an airplane will make regardless of individual itineraries.
* See when the airplane will have to refuel during that trip.
* Find flights matching some criteria
* Get details on an airport or destination (use the airport code for this)
* Get a list of itineraries with flights for a given passenger.
* For modifying data:
* Create new bookings
* Reroute airplanes through new itineraries
## Instruction:
Add more variety to traffic_control exercise. It's all GETs right now.
## Code After:
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for that airline.
Your first goal is to define the API. You're smart enough to realize that writing the API and having it grow organically is going to make for some crappy code, so you're going to define the endpoints first before you do anything else.
## Requirements
* Build the set of routes necessary for the airline API. Assume that there will not be any useful documentation for this API, so it has to be comprehensible on its own.
* The output should be a text file that looks like the output from the `rake routes` command. Give example usage for anything even remotely complicated.
* At minimum, support the following functionality:
* For a given flight, get a manifest of passengers, and details of the flight. Add or remove bookings from that flight (also I may change my mind on my food preferences or seating). I may need to re-route airplanes for various reasons, so let me do that as well.
* See the trip an airplane will make regardless of individual itineraries. See when the airplane will have to refuel during those trips. Also, when I maintenance an airplane, I need to update information on the vehicle. Who needs security anyway?
* Find flights matching some search criteria.
* Get details on an airport or destination (use the airport code for this).
* Get a list of itineraries with flights for a given passenger.
|
74834709ba433fc840d9b48c92bf92f2f581ff65 | lib/tasks/npm.rake | lib/tasks/npm.rake | require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_file = "npm-dependencies.js"
output_file_path = output_path.join(output_file)
Npm::Rails::TaskHelpers.create_file(output_path, output_file) unless File.exist?(output_file_path)
Npm::Rails::PackageBundler.bundle(::Rails.root, package_file, ::Rails.env) do |packages, bundle_file_path|
sh "cd #{ ::Rails.root }"
sh "npm install --loglevel error #{ packages }"
browserify = Npm::Rails::TaskHelpers.find_browserify(::Rails.root.join("node_modules"))
browserify_command = "#{ browserify } #{ browserify_options } #{ bundle_file_path } > #{ output_file_path }"
if Rails.env.production?
browserify_command = "NODE_ENV=production #{ browserify_command }"
end
sh browserify_command
end
end
end
if ::Rails.configuration.npm.run_before_assets_precompile
task "assets:precompile" => ["npm:install"]
end
| require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_file = "npm-dependencies.js"
output_file_path = output_path.join(output_file)
Npm::Rails::TaskHelpers.create_file(output_path, output_file) unless File.exist?(output_file_path)
Npm::Rails::PackageBundler.bundle(::Rails.root, package_file, ::Rails.env) do |packages, bundle_file_path|
sh "npm install --prefix #{ ::Rails.root } --loglevel error #{ packages }"
browserify = Npm::Rails::TaskHelpers.find_browserify(::Rails.root.join("node_modules"))
browserify_command = "#{ browserify } #{ browserify_options } #{ bundle_file_path } > #{ output_file_path }"
if Rails.env.production?
browserify_command = "NODE_ENV=production #{ browserify_command }"
end
sh browserify_command
end
end
end
if ::Rails.configuration.npm.run_before_assets_precompile
task "assets:precompile" => ["npm:install"]
end
| Remove `cd` as it cause issues in Debian | Remove `cd` as it cause issues in Debian | Ruby | mit | endenwer/npm-rails | ruby | ## Code Before:
require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_file = "npm-dependencies.js"
output_file_path = output_path.join(output_file)
Npm::Rails::TaskHelpers.create_file(output_path, output_file) unless File.exist?(output_file_path)
Npm::Rails::PackageBundler.bundle(::Rails.root, package_file, ::Rails.env) do |packages, bundle_file_path|
sh "cd #{ ::Rails.root }"
sh "npm install --loglevel error #{ packages }"
browserify = Npm::Rails::TaskHelpers.find_browserify(::Rails.root.join("node_modules"))
browserify_command = "#{ browserify } #{ browserify_options } #{ bundle_file_path } > #{ output_file_path }"
if Rails.env.production?
browserify_command = "NODE_ENV=production #{ browserify_command }"
end
sh browserify_command
end
end
end
if ::Rails.configuration.npm.run_before_assets_precompile
task "assets:precompile" => ["npm:install"]
end
## Instruction:
Remove `cd` as it cause issues in Debian
## Code After:
require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_file = "npm-dependencies.js"
output_file_path = output_path.join(output_file)
Npm::Rails::TaskHelpers.create_file(output_path, output_file) unless File.exist?(output_file_path)
Npm::Rails::PackageBundler.bundle(::Rails.root, package_file, ::Rails.env) do |packages, bundle_file_path|
sh "npm install --prefix #{ ::Rails.root } --loglevel error #{ packages }"
browserify = Npm::Rails::TaskHelpers.find_browserify(::Rails.root.join("node_modules"))
browserify_command = "#{ browserify } #{ browserify_options } #{ bundle_file_path } > #{ output_file_path }"
if Rails.env.production?
browserify_command = "NODE_ENV=production #{ browserify_command }"
end
sh browserify_command
end
end
end
if ::Rails.configuration.npm.run_before_assets_precompile
task "assets:precompile" => ["npm:install"]
end
|
a4c9dd451062b83b907a350ea30f2d36badb6522 | parsers/__init__.py | parsers/__init__.py | import importlib
parsers = """
singtao.STParser
apple.AppleParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module), class_name)
for domain in parser.domains:
parser_dict[domain] = parser
def get_parser(url):
return parser_dict[url.split('/')[2]]
# Each feeder places URLs into the database to be checked periodically.
parsers = [parser for parser in parser_dict.values()]
__all__ = ['parsers', 'get_parser'] | import importlib
parsers = """
singtao.STParser
apple.AppleParser
tvb.TVBParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module), class_name)
for domain in parser.domains:
parser_dict[domain] = parser
def get_parser(url):
return parser_dict[url.split('/')[2]]
# Each feeder places URLs into the database to be checked periodically.
parsers = [parser for parser in parser_dict.values()]
__all__ = ['parsers', 'get_parser'] | Add tvb Parser to the init | Add tvb Parser to the init
| Python | mit | code4hk/hk-news-scrapper | python | ## Code Before:
import importlib
parsers = """
singtao.STParser
apple.AppleParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module), class_name)
for domain in parser.domains:
parser_dict[domain] = parser
def get_parser(url):
return parser_dict[url.split('/')[2]]
# Each feeder places URLs into the database to be checked periodically.
parsers = [parser for parser in parser_dict.values()]
__all__ = ['parsers', 'get_parser']
## Instruction:
Add tvb Parser to the init
## Code After:
import importlib
parsers = """
singtao.STParser
apple.AppleParser
tvb.TVBParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module), class_name)
for domain in parser.domains:
parser_dict[domain] = parser
def get_parser(url):
return parser_dict[url.split('/')[2]]
# Each feeder places URLs into the database to be checked periodically.
parsers = [parser for parser in parser_dict.values()]
__all__ = ['parsers', 'get_parser'] |
b1dae11860d61e3b574c7bd6b332053819675ddb | tests/test_block_cache.py | tests/test_block_cache.py | import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry) is b
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=False)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry) is not b
if __name__ == "__main__":
test_block_cache()
| import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry).vex is b.vex
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=False)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry).vex is not b.vex
if __name__ == "__main__":
test_block_cache()
| Fix the test case for block cache. | Fix the test case for block cache.
| Python | bsd-2-clause | f-prettyland/angr,f-prettyland/angr,axt/angr,chubbymaggie/angr,schieb/angr,schieb/angr,angr/angr,tyb0807/angr,tyb0807/angr,f-prettyland/angr,iamahuman/angr,iamahuman/angr,tyb0807/angr,angr/angr,schieb/angr,iamahuman/angr,chubbymaggie/angr,chubbymaggie/angr,axt/angr,axt/angr,angr/angr | python | ## Code Before:
import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry) is b
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=False)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry) is not b
if __name__ == "__main__":
test_block_cache()
## Instruction:
Fix the test case for block cache.
## Code After:
import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry).vex is b.vex
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=False)
b = p.factory.block(p.entry)
assert p.factory.block(p.entry).vex is not b.vex
if __name__ == "__main__":
test_block_cache()
|
26be6ad3b3242efd89e47b0306764fc9c64bcef3 | README.md | README.md | Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
# Example usage
The target:
```C#
public interface IConfiguration {
public string Value { get; }
}
```
Your config file:
```XML
<appSettings>
<add key="IConfiguration.Value" value="ReadThis" />
</appSettings>
```
Loading the configuration:
```C#
SettingsByConvention.ForInterface<IConfiguration>().Create()
```
# Inversion of Control-setup
Since the values never change after application starts, and reflection is involved in the load, I recommend that you register as a Singleton. | Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
[![Build Status](https://travis-ci.org/dignite/AppSettingsByConvention.svg?branch=master)](https://travis-ci.org/dignite/AppSettingsByConvention)
# Example usage
This shows how to use this library with an interface.
The use for having a plain old C# class with properties is similar.
The target:
```C#
public interface IConfiguration {
public string Value { get; }
}
```
Your config file:
```XML
<appSettings>
<add key="IConfiguration.Value" value="ReadThis" />
</appSettings>
```
Loading the configuration:
```C#
SettingsByConvention.ForInterface<IConfiguration>().Create()
```
# Inversion of Control-setup
Since the values never change after application starts, and reflection is involved in the load, I recommend that you register as a Singleton. | Add Travis CI badge to readme, and expand on example section. | Add Travis CI badge to readme, and expand on example section.
| Markdown | mit | dignite/AppSettingsByConvention | markdown | ## Code Before:
Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
# Example usage
The target:
```C#
public interface IConfiguration {
public string Value { get; }
}
```
Your config file:
```XML
<appSettings>
<add key="IConfiguration.Value" value="ReadThis" />
</appSettings>
```
Loading the configuration:
```C#
SettingsByConvention.ForInterface<IConfiguration>().Create()
```
# Inversion of Control-setup
Since the values never change after application starts, and reflection is involved in the load, I recommend that you register as a Singleton.
## Instruction:
Add Travis CI badge to readme, and expand on example section.
## Code After:
Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
[![Build Status](https://travis-ci.org/dignite/AppSettingsByConvention.svg?branch=master)](https://travis-ci.org/dignite/AppSettingsByConvention)
# Example usage
This shows how to use this library with an interface.
The use for having a plain old C# class with properties is similar.
The target:
```C#
public interface IConfiguration {
public string Value { get; }
}
```
Your config file:
```XML
<appSettings>
<add key="IConfiguration.Value" value="ReadThis" />
</appSettings>
```
Loading the configuration:
```C#
SettingsByConvention.ForInterface<IConfiguration>().Create()
```
# Inversion of Control-setup
Since the values never change after application starts, and reflection is involved in the load, I recommend that you register as a Singleton. |
9d1b630110108dbb5e43b1242abd4f1fb67868aa | app_generators/merb/templates/spec/spec_helper.rb | app_generators/merb/templates/spec/spec_helper.rb | require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
Spec::Runner.configure do |config|
config.include(Merb::Test::ViewHelper)
config.include(Merb::Test::RouteHelper)
config.include(Merb::Test::ControllerHelper)
end
| require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
# this loads all plugins required in your init file so don't add them
# here again, Merb will do it for you
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
Spec::Runner.configure do |config|
config.include(Merb::Test::ViewHelper)
config.include(Merb::Test::RouteHelper)
config.include(Merb::Test::ControllerHelper)
end
| Add a note on plugins loading to generated spec helper. | Add a note on plugins loading to generated spec helper.
| Ruby | mit | merb/merb-gen,merb/merb-gen | ruby | ## Code Before:
require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
Spec::Runner.configure do |config|
config.include(Merb::Test::ViewHelper)
config.include(Merb::Test::RouteHelper)
config.include(Merb::Test::ControllerHelper)
end
## Instruction:
Add a note on plugins loading to generated spec helper.
## Code After:
require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
# this loads all plugins required in your init file so don't add them
# here again, Merb will do it for you
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
Spec::Runner.configure do |config|
config.include(Merb::Test::ViewHelper)
config.include(Merb::Test::RouteHelper)
config.include(Merb::Test::ControllerHelper)
end
|
c84f90480da763d1481d127fed59b301144a2367 | packages/st/string-qq.yaml | packages/st/string-qq.yaml | homepage: ''
changelog-type: ''
hash: 7796f4ba2a1f69d6d06b720ba42d6b51f75726a73178964caf685b1b72358cba
test-bench-deps: {}
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and bytestrings.
changelog: ''
basic-deps:
base: ! '>3 && <6'
template-haskell: ! '>=2'
all-versions:
- 0.0.2
author: Audrey Tang
latest: 0.0.2
description-type: haddock
description: QuasiQuoter for non-interpolated strings, texts and bytestrings.
license-name: LicenseRef-PublicDomain
| homepage: ''
changelog-type: ''
hash: f9d9073fe20a0d322ca7783f5a8920ab179ee98a055f6dc3be1c31a3c83a4a80
test-bench-deps:
base: ! '>3 && <6'
text: ! '>=1.2 && <1.3'
string-qq: -any
HUnit: ! '>=1.6 && <1.7'
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and bytestrings.
changelog: ''
basic-deps:
base: ! '>3 && <6'
template-haskell: ! '>=2'
all-versions:
- 0.0.2
- 0.0.4
author: Audrey Tang
latest: 0.0.4
description-type: haddock
description: QuasiQuoter for non-interpolated strings, texts and bytestrings, useful
for writing multi-line IsString literals.
license-name: LicenseRef-PublicDomain
| Update from Hackage at 2019-09-24T03:52:34Z | Update from Hackage at 2019-09-24T03:52:34Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: 7796f4ba2a1f69d6d06b720ba42d6b51f75726a73178964caf685b1b72358cba
test-bench-deps: {}
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and bytestrings.
changelog: ''
basic-deps:
base: ! '>3 && <6'
template-haskell: ! '>=2'
all-versions:
- 0.0.2
author: Audrey Tang
latest: 0.0.2
description-type: haddock
description: QuasiQuoter for non-interpolated strings, texts and bytestrings.
license-name: LicenseRef-PublicDomain
## Instruction:
Update from Hackage at 2019-09-24T03:52:34Z
## Code After:
homepage: ''
changelog-type: ''
hash: f9d9073fe20a0d322ca7783f5a8920ab179ee98a055f6dc3be1c31a3c83a4a80
test-bench-deps:
base: ! '>3 && <6'
text: ! '>=1.2 && <1.3'
string-qq: -any
HUnit: ! '>=1.6 && <1.7'
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and bytestrings.
changelog: ''
basic-deps:
base: ! '>3 && <6'
template-haskell: ! '>=2'
all-versions:
- 0.0.2
- 0.0.4
author: Audrey Tang
latest: 0.0.4
description-type: haddock
description: QuasiQuoter for non-interpolated strings, texts and bytestrings, useful
for writing multi-line IsString literals.
license-name: LicenseRef-PublicDomain
|
1e930fed71c4335cd84f6e15679281ef953a59ab | index.html | index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 18px;
text-align: center;
color: #666666;
}
a:link,
a:visited,
a:hover,
a:active {
display: block;
padding: 10px;
width: 100%;
color: #f49464;
}
a:hover {
background-color: #fcfcfc;
color: #f27242;
}
</style>
</head>
<body>
<p>Hi, I'm Tomoki Morita.<p>
<a href="https://twitter.com/livejam_db">Twitter</a>
<a href="https://github.com/jamband">GitHub</a>
<a href="https://stackoverflow.com/users/678947/jamband">Stack Overflow</a>
<a href="https://qiita.com/livejam_db">Qiita</a>
<a href="https://jamband.hatenablog.com/archive">Blog</a>
<a href="https://plusarchive.com">PlusArchive</a>
</body>
</html>
| <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 18px;
text-align: center;
color: #666666;
}
a:link,
a:visited,
a:hover,
a:active {
display: block;
padding: 10px;
width: 100%;
color: #f49464;
}
a:hover {
background-color: #fcfcfc;
color: #f27242;
}
</style>
</head>
<body>
<p>Hi, I'm Tomoki Morita.<p>
<a href="https://twitter.com/livejam_db">Twitter</a>
<a href="https://github.com/jamband">GitHub</a>
<a href="https://stackoverflow.com/users/678947/jamband">Stack Overflow</a>
<a href="https://qiita.com/livejam_db">Qiita</a>
<a href="https://jamband.hatenablog.com/archive">Blog</a>
<a href="https://mutantez.netlify.app">Dev Blog</a>
<a href="https://plusarchive.com">PlusArchive</a>
</body>
</html>
| Add new dev blog link | Add new dev blog link
| HTML | mit | jamband/jamband.github.io | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 18px;
text-align: center;
color: #666666;
}
a:link,
a:visited,
a:hover,
a:active {
display: block;
padding: 10px;
width: 100%;
color: #f49464;
}
a:hover {
background-color: #fcfcfc;
color: #f27242;
}
</style>
</head>
<body>
<p>Hi, I'm Tomoki Morita.<p>
<a href="https://twitter.com/livejam_db">Twitter</a>
<a href="https://github.com/jamband">GitHub</a>
<a href="https://stackoverflow.com/users/678947/jamband">Stack Overflow</a>
<a href="https://qiita.com/livejam_db">Qiita</a>
<a href="https://jamband.hatenablog.com/archive">Blog</a>
<a href="https://plusarchive.com">PlusArchive</a>
</body>
</html>
## Instruction:
Add new dev blog link
## Code After:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 18px;
text-align: center;
color: #666666;
}
a:link,
a:visited,
a:hover,
a:active {
display: block;
padding: 10px;
width: 100%;
color: #f49464;
}
a:hover {
background-color: #fcfcfc;
color: #f27242;
}
</style>
</head>
<body>
<p>Hi, I'm Tomoki Morita.<p>
<a href="https://twitter.com/livejam_db">Twitter</a>
<a href="https://github.com/jamband">GitHub</a>
<a href="https://stackoverflow.com/users/678947/jamband">Stack Overflow</a>
<a href="https://qiita.com/livejam_db">Qiita</a>
<a href="https://jamband.hatenablog.com/archive">Blog</a>
<a href="https://mutantez.netlify.app">Dev Blog</a>
<a href="https://plusarchive.com">PlusArchive</a>
</body>
</html>
|
291e91e24b0494ce61c101b68271cfabefeb39a6 | app/components/Statements/SpeakerComments.jsx | app/components/Statements/SpeakerComments.jsx | import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, speaker, comments}) => {
return comments.size === 0 ? null : (
<div className="self-comments columns is-gapless">
<div className="column is-narrow">
<VerificationsOriginHeader iconName="user" label={t('speaker.one')} />
<SpeakerPreview speaker={speaker} withoutActions/>
</div>
<div className="column">
<CommentsList comments={comments}/>
</div>
</div>
)
})
| import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, speaker, comments}) => {
return comments.size === 0 ? null : (
<div className="self-comments columns is-gapless">
<div className="column is-narrow">
<VerificationsOriginHeader iconName="user" label={t('speaker.one')} />
{speaker && <SpeakerPreview speaker={speaker} withoutActions/>}
</div>
<div className="column">
<CommentsList comments={comments}/>
</div>
</div>
)
})
| Fix a crash that was occuring when deleting speaker with self-comments | Fix a crash that was occuring when deleting speaker with self-comments
| JSX | agpl-3.0 | CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend | jsx | ## Code Before:
import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, speaker, comments}) => {
return comments.size === 0 ? null : (
<div className="self-comments columns is-gapless">
<div className="column is-narrow">
<VerificationsOriginHeader iconName="user" label={t('speaker.one')} />
<SpeakerPreview speaker={speaker} withoutActions/>
</div>
<div className="column">
<CommentsList comments={comments}/>
</div>
</div>
)
})
## Instruction:
Fix a crash that was occuring when deleting speaker with self-comments
## Code After:
import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, speaker, comments}) => {
return comments.size === 0 ? null : (
<div className="self-comments columns is-gapless">
<div className="column is-narrow">
<VerificationsOriginHeader iconName="user" label={t('speaker.one')} />
{speaker && <SpeakerPreview speaker={speaker} withoutActions/>}
</div>
<div className="column">
<CommentsList comments={comments}/>
</div>
</div>
)
})
|
2e6745bcc99d6e3099669a9489c5997ae89d7037 | Secludedness-android/src/de/dbaelz/secludedness/MainActivity.java | Secludedness-android/src/de/dbaelz/secludedness/MainActivity.java | package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
cfg.useGL20 = true;
initialize(new MainGame(), cfg);
}
} | package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
cfg.useGL20 = true;
cfg.useWakelock = true;
cfg.useAccelerometer = true;
initialize(new MainGame(), cfg);
}
} | Add support for accelerometer and wakelock | Android: Add support for accelerometer and wakelock
| Java | apache-2.0 | dbaelz/Secludedness,dbaelz/Secludedness | java | ## Code Before:
package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
cfg.useGL20 = true;
initialize(new MainGame(), cfg);
}
}
## Instruction:
Android: Add support for accelerometer and wakelock
## Code After:
package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
cfg.useGL20 = true;
cfg.useWakelock = true;
cfg.useAccelerometer = true;
initialize(new MainGame(), cfg);
}
} |
df992f790d8b46c445ee83a637f7fdb5e647c93f | test/events/submitSpec.js | test/events/submitSpec.js | describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
});
it("closes completer", function () {
$.fire(this.subject.input.form, "submit");
expect(Awesomplete.prototype.close).toHaveBeenCalled();
});
});
| describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
// prevent full page reload in Firefox, which causes tests to stop running
$.on(this.subject.input.form, "submit", function(evt) {
evt.preventDefault();
});
});
it("closes completer", function () {
$.fire(this.subject.input.form, "submit");
expect(Awesomplete.prototype.close).toHaveBeenCalled();
});
});
| Fix tests run in Firefox | Fix tests run in Firefox
| JavaScript | mit | eggpi/awesomplete,vlazar/awesomplete,LeaVerou/awesomplete,bsvobodny/awesomplete,bchcheng/awesomplete,bsvobodny/awesomplete,eggpi/awesomplete,vlazar/awesomplete,bchcheng/awesomplete,LeaVerou/awesomplete | javascript | ## Code Before:
describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
});
it("closes completer", function () {
$.fire(this.subject.input.form, "submit");
expect(Awesomplete.prototype.close).toHaveBeenCalled();
});
});
## Instruction:
Fix tests run in Firefox
## Code After:
describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
// prevent full page reload in Firefox, which causes tests to stop running
$.on(this.subject.input.form, "submit", function(evt) {
evt.preventDefault();
});
});
it("closes completer", function () {
$.fire(this.subject.input.form, "submit");
expect(Awesomplete.prototype.close).toHaveBeenCalled();
});
});
|
f1cabc889dd93e26295501097ac9cbf90890a1cd | solvent/config.py | solvent/config.py | import yaml
import os
LOCAL_OSMOSIS = 'localhost:1010'
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if data is None:
raise Exception("Configuration file must not be empty")
globals().update(data)
if 'SOLVENT_CONFIG' in os.environ:
data = yaml.load(os.environ['SOLVENT_CONFIG'])
globals().update(data)
if 'SOLVENT_CLEAN' in os.environ:
global CLEAN
CLEAN = True
if WITH_OFFICIAL_OBJECT_STORE and OFFICIAL_OSMOSIS is None:
raise Exception("Configuration file must contain 'OFFICIAL_OSMOSIS' field")
def objectStoresOsmosisParameter():
if WITH_OFFICIAL_OBJECT_STORE:
return LOCAL_OSMOSIS + "+" + OFFICIAL_OSMOSIS
else:
return LOCAL_OSMOSIS
| import yaml
import os
LOCAL_OSMOSIS_IF_ROOT = 'localhost:1010'
LOCAL_OSMOSIS_IF_NOT_ROOT = 'localhost:1010'
LOCAL_OSMOSIS = None
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if data is None:
raise Exception("Configuration file must not be empty")
globals().update(data)
if 'SOLVENT_CONFIG' in os.environ:
data = yaml.load(os.environ['SOLVENT_CONFIG'])
globals().update(data)
if 'SOLVENT_CLEAN' in os.environ:
global CLEAN
CLEAN = True
if WITH_OFFICIAL_OBJECT_STORE and OFFICIAL_OSMOSIS is None:
raise Exception("Configuration file must contain 'OFFICIAL_OSMOSIS' field")
global LOCAL_OSMOSIS
if LOCAL_OSMOSIS is None:
if os.getuid() == 0:
LOCAL_OSMOSIS = LOCAL_OSMOSIS_IF_ROOT
else:
LOCAL_OSMOSIS = LOCAL_OSMOSIS_IF_NOT_ROOT
def objectStoresOsmosisParameter():
if WITH_OFFICIAL_OBJECT_STORE:
return LOCAL_OSMOSIS + "+" + OFFICIAL_OSMOSIS
else:
return LOCAL_OSMOSIS
| Select local osmosis depends if user is root, to avoid permission denied on /var/lib/osmosis | Bugfix: Select local osmosis depends if user is root, to avoid permission denied on /var/lib/osmosis
| Python | apache-2.0 | Stratoscale/solvent,Stratoscale/solvent | python | ## Code Before:
import yaml
import os
LOCAL_OSMOSIS = 'localhost:1010'
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if data is None:
raise Exception("Configuration file must not be empty")
globals().update(data)
if 'SOLVENT_CONFIG' in os.environ:
data = yaml.load(os.environ['SOLVENT_CONFIG'])
globals().update(data)
if 'SOLVENT_CLEAN' in os.environ:
global CLEAN
CLEAN = True
if WITH_OFFICIAL_OBJECT_STORE and OFFICIAL_OSMOSIS is None:
raise Exception("Configuration file must contain 'OFFICIAL_OSMOSIS' field")
def objectStoresOsmosisParameter():
if WITH_OFFICIAL_OBJECT_STORE:
return LOCAL_OSMOSIS + "+" + OFFICIAL_OSMOSIS
else:
return LOCAL_OSMOSIS
## Instruction:
Bugfix: Select local osmosis depends if user is root, to avoid permission denied on /var/lib/osmosis
## Code After:
import yaml
import os
LOCAL_OSMOSIS_IF_ROOT = 'localhost:1010'
LOCAL_OSMOSIS_IF_NOT_ROOT = 'localhost:1010'
LOCAL_OSMOSIS = None
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if data is None:
raise Exception("Configuration file must not be empty")
globals().update(data)
if 'SOLVENT_CONFIG' in os.environ:
data = yaml.load(os.environ['SOLVENT_CONFIG'])
globals().update(data)
if 'SOLVENT_CLEAN' in os.environ:
global CLEAN
CLEAN = True
if WITH_OFFICIAL_OBJECT_STORE and OFFICIAL_OSMOSIS is None:
raise Exception("Configuration file must contain 'OFFICIAL_OSMOSIS' field")
global LOCAL_OSMOSIS
if LOCAL_OSMOSIS is None:
if os.getuid() == 0:
LOCAL_OSMOSIS = LOCAL_OSMOSIS_IF_ROOT
else:
LOCAL_OSMOSIS = LOCAL_OSMOSIS_IF_NOT_ROOT
def objectStoresOsmosisParameter():
if WITH_OFFICIAL_OBJECT_STORE:
return LOCAL_OSMOSIS + "+" + OFFICIAL_OSMOSIS
else:
return LOCAL_OSMOSIS
|
617f84cb04bdddf130b89020e807d7d38fc294f4 | metadata.json | metadata.json | {
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://github.com/sbitio/puppet-monit",
"issues_url": "https://github.com/sbitio/puppet-monit/issues",
"tags": ["monitoring", "monit"],
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 4.14.0 < 6.0.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.2.1 < 6.0.0"}
],
"operatingsystem_support": [
{"operatingsystem": "FreeBSD"},
{"operatingsystem": "CentOS","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Debian","operatingsystemrelease":["7","8","9"]},
{"operatingsystem": "Redhat","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Ubuntu","operatingsystemrelease":["12.04","14.04","16.04"]}
],
"requirements": [
{"name": "puppet", "version_requirement": ">= 4.0.0 < 5.0.0"}
]
}
| {
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://github.com/sbitio/puppet-monit",
"issues_url": "https://github.com/sbitio/puppet-monit/issues",
"tags": ["monitoring", "monit"],
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 4.14.0 < 6.0.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.2.1 < 6.0.0"}
],
"operatingsystem_support": [
{"operatingsystem": "FreeBSD"},
{"operatingsystem": "CentOS","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Debian","operatingsystemrelease":["7","8","9","10"]},
{"operatingsystem": "Redhat","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Ubuntu","operatingsystemrelease":["12.04","14.04","16.04","18.04"]}
],
"requirements": [
{"name": "puppet", "version_requirement": ">= 4.0.0 < 5.0.0"}
]
}
| Document support for Debian 10 and Ubuntu 18.04. | Document support for Debian 10 and Ubuntu 18.04.
| JSON | mit | sbitio/puppet-monit,sbitio/puppet-monit | json | ## Code Before:
{
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://github.com/sbitio/puppet-monit",
"issues_url": "https://github.com/sbitio/puppet-monit/issues",
"tags": ["monitoring", "monit"],
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 4.14.0 < 6.0.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.2.1 < 6.0.0"}
],
"operatingsystem_support": [
{"operatingsystem": "FreeBSD"},
{"operatingsystem": "CentOS","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Debian","operatingsystemrelease":["7","8","9"]},
{"operatingsystem": "Redhat","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Ubuntu","operatingsystemrelease":["12.04","14.04","16.04"]}
],
"requirements": [
{"name": "puppet", "version_requirement": ">= 4.0.0 < 5.0.0"}
]
}
## Instruction:
Document support for Debian 10 and Ubuntu 18.04.
## Code After:
{
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://github.com/sbitio/puppet-monit",
"issues_url": "https://github.com/sbitio/puppet-monit/issues",
"tags": ["monitoring", "monit"],
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 4.14.0 < 6.0.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.2.1 < 6.0.0"}
],
"operatingsystem_support": [
{"operatingsystem": "FreeBSD"},
{"operatingsystem": "CentOS","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Debian","operatingsystemrelease":["7","8","9","10"]},
{"operatingsystem": "Redhat","operatingsystemrelease":["6","7"]},
{"operatingsystem": "Ubuntu","operatingsystemrelease":["12.04","14.04","16.04","18.04"]}
],
"requirements": [
{"name": "puppet", "version_requirement": ">= 4.0.0 < 5.0.0"}
]
}
|
15005154069d43927e474e78d6bb5960112b9052 | test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll | test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll | ; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ? (1) : (0)))'
; For PR1099
; XFAIL: *
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation ; Functions:
define bool @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
newFuncRoot:
br label %entry.ce
cond_next.exitStub: ; preds = %entry.ce
ret bool true
entry.return_crit_edge.exitStub: ; preds = %entry.ce
ret bool false
entry.ce: ; preds = %newFuncRoot
%tmp = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
%tmp = load i16* %tmp ; <i16> [#uses=1]
%tmp = icmp eq i16 %tmp, %b.0.0.val ; <bool> [#uses=1]
br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
}
| ; For PR1099
; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == ltmp_1_2)) ? (1) : (0)))'
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation ; Functions:
define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
newFuncRoot:
br label %entry.ce
cond_next.exitStub: ; preds = %entry.ce
ret i1 true
entry.return_crit_edge.exitStub: ; preds = %entry.ce
ret i1 false
entry.ce: ; preds = %newFuncRoot
%tmp1 = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
%tmp2 = load i16* %tmp1 ; <i16> [#uses=1]
%tmp3 = icmp eq i16 %tmp2, %b.0.0.val ; <i1> [#uses=1]
br i1 %tmp3, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
}
| Update this test to compile properly and check against the correct string generated by the CBE. This is no longer an XFAIL. | Update this test to compile properly and check against the correct
string generated by the CBE. This is no longer an XFAIL.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@34327 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm | llvm | ## Code Before:
; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ? (1) : (0)))'
; For PR1099
; XFAIL: *
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation ; Functions:
define bool @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
newFuncRoot:
br label %entry.ce
cond_next.exitStub: ; preds = %entry.ce
ret bool true
entry.return_crit_edge.exitStub: ; preds = %entry.ce
ret bool false
entry.ce: ; preds = %newFuncRoot
%tmp = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
%tmp = load i16* %tmp ; <i16> [#uses=1]
%tmp = icmp eq i16 %tmp, %b.0.0.val ; <bool> [#uses=1]
br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
}
## Instruction:
Update this test to compile properly and check against the correct
string generated by the CBE. This is no longer an XFAIL.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@34327 91177308-0d34-0410-b5e6-96231b3b80d8
## Code After:
; For PR1099
; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == ltmp_1_2)) ? (1) : (0)))'
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation ; Functions:
define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
newFuncRoot:
br label %entry.ce
cond_next.exitStub: ; preds = %entry.ce
ret i1 true
entry.return_crit_edge.exitStub: ; preds = %entry.ce
ret i1 false
entry.ce: ; preds = %newFuncRoot
%tmp1 = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
%tmp2 = load i16* %tmp1 ; <i16> [#uses=1]
%tmp3 = icmp eq i16 %tmp2, %b.0.0.val ; <i1> [#uses=1]
br i1 %tmp3, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
}
|
21a39061605062f0d7cc8a2c7c333832e3cdd997 | freeciv-img-extract/sync.sh | freeciv-img-extract/sync.sh | python img-extract.py && \
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png && \
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ && \
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/
cp tiles/*.png ../freeciv-web/src/main/webapp/tiles/
| python img-extract.py &&
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png &&
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ &&
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/ &&
mkdir -p ../freeciv-web/src/main/webapp/tiles &&
cp tiles/*.png ../freeciv-web/src/main/webapp/tiles/
| Create tiles directory if it's missing. | Create tiles directory if it's missing.
| Shell | agpl-3.0 | tltneon/freeciv-web,tltneon/freeciv-web,adaxi/freeciv-web,tltneon/freeciv-web,adaxi/freeciv-web,tltneon/freeciv-web,adaxi/freeciv-web,sylvain121/freeciv-web-server,andreasrosdal/freeciv-web,andreasrosdal/freeciv-web,sylvain121/freeciv-web-server,tltneon/freeciv-web,andreasrosdal/freeciv-web,adaxi/freeciv-web,andreasrosdal/freeciv-web,sylvain121/freeciv-web-server,adaxi/freeciv-web,andreasrosdal/freeciv-web,tltneon/freeciv-web | shell | ## Code Before:
python img-extract.py && \
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png && \
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ && \
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/
cp tiles/*.png ../freeciv-web/src/main/webapp/tiles/
## Instruction:
Create tiles directory if it's missing.
## Code After:
python img-extract.py &&
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png &&
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ &&
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/ &&
mkdir -p ../freeciv-web/src/main/webapp/tiles &&
cp tiles/*.png ../freeciv-web/src/main/webapp/tiles/
|
8a48ff46909f8c2155395b0167246537688f5b6b | scripts/travis-script.sh | scripts/travis-script.sh |
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
|
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
| Build shared libs on Travis | Build shared libs on Travis
Since this is the most common use-case, that's what should be tested.
| Shell | lgpl-2.1 | gadomski/fgt,gadomski/fgt,gadomski/fgt | shell | ## Code Before:
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
## Instruction:
Build shared libs on Travis
Since this is the most common use-case, that's what should be tested.
## Code After:
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
|
5d3e50710c50ba5d8358f01cfc4d6c7797c453e3 | README.md | README.md | A Java client for SeatGeek's Sixpack a/b testing framework https://github.com/seatgeek/sixpack
| [![Build Status](https://magnum.travis-ci.com/seatgeek/sixpack-java.svg?token=ycL4XWSrwx9ci6onAtBb&branch=master)](https://magnum.travis-ci.com/seatgeek/sixpack-java)[![Coverage Status](https://coveralls.io/repos/seatgeek/sixpack-java/badge.svg?branch=master)](https://coveralls.io/r/seatgeek/sixpack-java?branch=master)
# sixpack-java
A Java client for SeatGeek's Sixpack a/b testing framework https://github.com/seatgeek/sixpack
| Add travis build status and coveralls coverage report to readme. | Add travis build status and coveralls coverage report to readme.
| Markdown | bsd-2-clause | seatgeek/sixpack-java,MaTriXy/sixpack-java,MaTriXy/sixpack-java,seatgeek/sixpack-java | markdown | ## Code Before:
A Java client for SeatGeek's Sixpack a/b testing framework https://github.com/seatgeek/sixpack
## Instruction:
Add travis build status and coveralls coverage report to readme.
## Code After:
[![Build Status](https://magnum.travis-ci.com/seatgeek/sixpack-java.svg?token=ycL4XWSrwx9ci6onAtBb&branch=master)](https://magnum.travis-ci.com/seatgeek/sixpack-java)[![Coverage Status](https://coveralls.io/repos/seatgeek/sixpack-java/badge.svg?branch=master)](https://coveralls.io/r/seatgeek/sixpack-java?branch=master)
# sixpack-java
A Java client for SeatGeek's Sixpack a/b testing framework https://github.com/seatgeek/sixpack
|
bb430d22e726237f7ad7383f3cfa0aa669234b26 | trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioRunnerMojo.java | trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioRunnerMojo.java | package org.jbehave.mojo;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
* Mojo to run scenarios
*
* @author Mauro Talevi
* @goal run-scenarios
*/
public class ScenarioRunnerMojo extends AbstractJBehaveMojo {
/**
* Scenario class names
*
* @parameter
*/
private List<String> scenarioClassNames;
public void execute() throws MojoExecutionException, MojoFailureException {
List<String> scenarios = scenarioClassNames;
if ( scenarios == null || scenarios.isEmpty() ){
scenarios = findScenarioClassNames();
}
for (String scenario : scenarios) {
try {
getLog().info("Running scenario "+scenario);
createScenarioClassLoader().newScenario(scenario).runUsingSteps();
} catch (Throwable e) {
throw new MojoExecutionException("Failed to run scenario " + scenario, e);
}
}
}
}
| package org.jbehave.mojo;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
* Mojo to run scenarios
*
* @author Mauro Talevi
* @goal run-scenarios
*/
public class ScenarioRunnerMojo extends AbstractJBehaveMojo {
/**
* Scenario class names
*
* @parameter
*/
private List<String> scenarioClassNames;
public void execute() throws MojoExecutionException, MojoFailureException {
List<String> scenarios = scenarioClassNames;
if (scenarios == null || scenarios.isEmpty()) {
scenarios = findScenarioClassNames();
}
if (scenarios.isEmpty()) {
getLog().info("No scenarios to run.");
} else {
for (String scenario : scenarios) {
try {
getLog().info("Running scenario " + scenario);
createScenarioClassLoader().newScenario(scenario).runUsingSteps();
} catch (Throwable e) {
throw new MojoExecutionException("Failed to run scenario " + scenario, e);
}
}
}
}
}
| Add log message when no scenario are found. | Add log message when no scenario are found.
git-svn-id: 1c3b30599278237804f5418c838e2a3e6391d478@825 df8dfae0-ecdd-0310-b8d8-a050f7ac8317
| Java | bsd-3-clause | codehaus/jbehave-git,codehaus/jbehave-git,codehaus/jbehave-git | java | ## Code Before:
package org.jbehave.mojo;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
* Mojo to run scenarios
*
* @author Mauro Talevi
* @goal run-scenarios
*/
public class ScenarioRunnerMojo extends AbstractJBehaveMojo {
/**
* Scenario class names
*
* @parameter
*/
private List<String> scenarioClassNames;
public void execute() throws MojoExecutionException, MojoFailureException {
List<String> scenarios = scenarioClassNames;
if ( scenarios == null || scenarios.isEmpty() ){
scenarios = findScenarioClassNames();
}
for (String scenario : scenarios) {
try {
getLog().info("Running scenario "+scenario);
createScenarioClassLoader().newScenario(scenario).runUsingSteps();
} catch (Throwable e) {
throw new MojoExecutionException("Failed to run scenario " + scenario, e);
}
}
}
}
## Instruction:
Add log message when no scenario are found.
git-svn-id: 1c3b30599278237804f5418c838e2a3e6391d478@825 df8dfae0-ecdd-0310-b8d8-a050f7ac8317
## Code After:
package org.jbehave.mojo;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
* Mojo to run scenarios
*
* @author Mauro Talevi
* @goal run-scenarios
*/
public class ScenarioRunnerMojo extends AbstractJBehaveMojo {
/**
* Scenario class names
*
* @parameter
*/
private List<String> scenarioClassNames;
public void execute() throws MojoExecutionException, MojoFailureException {
List<String> scenarios = scenarioClassNames;
if (scenarios == null || scenarios.isEmpty()) {
scenarios = findScenarioClassNames();
}
if (scenarios.isEmpty()) {
getLog().info("No scenarios to run.");
} else {
for (String scenario : scenarios) {
try {
getLog().info("Running scenario " + scenario);
createScenarioClassLoader().newScenario(scenario).runUsingSteps();
} catch (Throwable e) {
throw new MojoExecutionException("Failed to run scenario " + scenario, e);
}
}
}
}
}
|
a7b882774d64655937d12b29eff5f556e67de053 | league/templates/league/match_enter_success.html | league/templates/league/match_enter_success.html | {% extends 'league/base_matches.html' %}
{% block content %}
<h1>Match results</h1>
<ul class="nav nav-tabs">
<li><a href="{% url 'league:index' %}">Recent results</a></li>
<li><a href="{% url 'league:matches' %}">Show all results</a></li>
<li class="active"><a href="#">Enter results</a></li>
</ul>
<h2>New match entered</h2>
<h3>{{ match }}</h3>
<p>The player statistics have changed as following:</p>
<ul>
{% for player in player_list %}
<li>{{ player.name }} ({% cycle 'Attacker' 'Defender' %})</li>
<ul>
<li>rank: {{ player.old_rank|floatformat }}
→ {{ player.rank|floatformat }}</li>
<li>µ: {{ player.old_mu|floatformat }}
→ {{ player.mu|floatformat }}</li>
<li>σ: {{ player.old_sigma|floatformat }}
→ {{ player.sigma|floatformat }}</li>
</ul>
{% endfor %}
</ul>
<ul class="nav nav-pills">
<li><a href="{% url 'league:matches_enter' %}">Enter another match</a></li>
<li><a href="{% url 'league:index' %}">Back to recent matches</a></li>
</ul>
{% endblock %}
| {% extends 'league/base_matches.html' %}
{% block content %}
<h1>Match results</h1>
<ul class="nav nav-tabs">
<li><a href="{% url 'league:index' %}">Recent results</a></li>
<li><a href="{% url 'league:matches' %}">Show all results</a></li>
<li class="active"><a href="#">Enter results</a></li>
</ul>
<h2>New match entered</h2>
<h3>{{ match }}</h3>
<p>The player statistics have changed as following:</p>
<ul>
{% for player in player_list %}
<li>{{ player.name }} ({% cycle 'Attacker' 'Defender' %})</li>
<ul>
<li>rank: {{ player.old_rank|floatformat:2 }}
→ {{ player.rank|floatformat:2 }}</li>
<li>µ: {{ player.old_mu|floatformat:2 }}
→ {{ player.mu|floatformat:2 }}</li>
<li>σ: {{ player.old_sigma|floatformat:2 }}
→ {{ player.sigma|floatformat:2 }}</li>
</ul>
{% endfor %}
</ul>
<ul class="nav nav-pills">
<li><a href="{% url 'league:matches_enter' %}">Enter another match</a></li>
<li><a href="{% url 'league:index' %}">Back to recent matches</a></li>
</ul>
{% endblock %}
| Change float format on enter page. | Change float format on enter page.
| HTML | apache-2.0 | mlewe/trueskill_kicker,caladrel/trueskill_kicker,caladrel/trueskill_kicker,mlewe/trueskill_kicker | html | ## Code Before:
{% extends 'league/base_matches.html' %}
{% block content %}
<h1>Match results</h1>
<ul class="nav nav-tabs">
<li><a href="{% url 'league:index' %}">Recent results</a></li>
<li><a href="{% url 'league:matches' %}">Show all results</a></li>
<li class="active"><a href="#">Enter results</a></li>
</ul>
<h2>New match entered</h2>
<h3>{{ match }}</h3>
<p>The player statistics have changed as following:</p>
<ul>
{% for player in player_list %}
<li>{{ player.name }} ({% cycle 'Attacker' 'Defender' %})</li>
<ul>
<li>rank: {{ player.old_rank|floatformat }}
→ {{ player.rank|floatformat }}</li>
<li>µ: {{ player.old_mu|floatformat }}
→ {{ player.mu|floatformat }}</li>
<li>σ: {{ player.old_sigma|floatformat }}
→ {{ player.sigma|floatformat }}</li>
</ul>
{% endfor %}
</ul>
<ul class="nav nav-pills">
<li><a href="{% url 'league:matches_enter' %}">Enter another match</a></li>
<li><a href="{% url 'league:index' %}">Back to recent matches</a></li>
</ul>
{% endblock %}
## Instruction:
Change float format on enter page.
## Code After:
{% extends 'league/base_matches.html' %}
{% block content %}
<h1>Match results</h1>
<ul class="nav nav-tabs">
<li><a href="{% url 'league:index' %}">Recent results</a></li>
<li><a href="{% url 'league:matches' %}">Show all results</a></li>
<li class="active"><a href="#">Enter results</a></li>
</ul>
<h2>New match entered</h2>
<h3>{{ match }}</h3>
<p>The player statistics have changed as following:</p>
<ul>
{% for player in player_list %}
<li>{{ player.name }} ({% cycle 'Attacker' 'Defender' %})</li>
<ul>
<li>rank: {{ player.old_rank|floatformat:2 }}
→ {{ player.rank|floatformat:2 }}</li>
<li>µ: {{ player.old_mu|floatformat:2 }}
→ {{ player.mu|floatformat:2 }}</li>
<li>σ: {{ player.old_sigma|floatformat:2 }}
→ {{ player.sigma|floatformat:2 }}</li>
</ul>
{% endfor %}
</ul>
<ul class="nav nav-pills">
<li><a href="{% url 'league:matches_enter' %}">Enter another match</a></li>
<li><a href="{% url 'league:index' %}">Back to recent matches</a></li>
</ul>
{% endblock %}
|
fc1b824c809114e91d7db3249b4b32e3e8821cbc | packages/li/libsodium.yaml | packages/li/libsodium.yaml | homepage: https://github.com/k0001/hs-libsodium
changelog-type: markdown
hash: 718a99126c2ffc292da602a3da570e6772c94d5240ff120f6a17fe623db3ca8e
test-bench-deps:
base: ==4.*
tasty-hedgehog: -any
hedgehog: -any
tasty-hunit: -any
tasty: -any
libsodium: -any
maintainer: renλren.zone
synopsis: Low-level bindings to the libsodium C library
changelog: |
# Version 1.0.18.1
* Improve support for opaque C structs (`Storable`, `Ptr`, allocation).
# Version 1.0.18.0
* Initial version.
basic-deps:
base: ==4.*
all-versions:
- 1.0.18.0
- 1.0.18.1
author: Renzo Carbonara
latest: 1.0.18.1
description-type: markdown
description: |+
# libsodium
Haskell bindings to
the C [libsodium](https://libsodium.gitbook.io) library.
license-name: ISC
| homepage: https://github.com/k0001/hs-libsodium
changelog-type: markdown
hash: f15b874e74e0cf33ab1343310f5392f1f33c406bec5252098d7dd6153e797fb1
test-bench-deps:
base: ==4.*
tasty-hedgehog: -any
hedgehog: -any
tasty-hunit: -any
tasty: -any
libsodium: -any
maintainer: renλren.zone
synopsis: Low-level bindings to the libsodium C library
changelog: |
# Version 1.0.18.2
* Add missing dependency on `c2hs`.
* Add missing function: `sodium_free`.
# Version 1.0.18.1
* Improve support for opaque C structs (`Storable`, `Ptr`, allocation).
# Version 1.0.18.0
* Initial version.
basic-deps:
base: ==4.*
all-versions:
- 1.0.18.0
- 1.0.18.1
- 1.0.18.2
author: Renzo Carbonara
latest: 1.0.18.2
description-type: markdown
description: |+
# libsodium
Haskell bindings to
the C [libsodium](https://libsodium.gitbook.io) library.
license-name: ISC
| Update from Hackage at 2021-07-28T09:15:36Z | Update from Hackage at 2021-07-28T09:15:36Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/k0001/hs-libsodium
changelog-type: markdown
hash: 718a99126c2ffc292da602a3da570e6772c94d5240ff120f6a17fe623db3ca8e
test-bench-deps:
base: ==4.*
tasty-hedgehog: -any
hedgehog: -any
tasty-hunit: -any
tasty: -any
libsodium: -any
maintainer: renλren.zone
synopsis: Low-level bindings to the libsodium C library
changelog: |
# Version 1.0.18.1
* Improve support for opaque C structs (`Storable`, `Ptr`, allocation).
# Version 1.0.18.0
* Initial version.
basic-deps:
base: ==4.*
all-versions:
- 1.0.18.0
- 1.0.18.1
author: Renzo Carbonara
latest: 1.0.18.1
description-type: markdown
description: |+
# libsodium
Haskell bindings to
the C [libsodium](https://libsodium.gitbook.io) library.
license-name: ISC
## Instruction:
Update from Hackage at 2021-07-28T09:15:36Z
## Code After:
homepage: https://github.com/k0001/hs-libsodium
changelog-type: markdown
hash: f15b874e74e0cf33ab1343310f5392f1f33c406bec5252098d7dd6153e797fb1
test-bench-deps:
base: ==4.*
tasty-hedgehog: -any
hedgehog: -any
tasty-hunit: -any
tasty: -any
libsodium: -any
maintainer: renλren.zone
synopsis: Low-level bindings to the libsodium C library
changelog: |
# Version 1.0.18.2
* Add missing dependency on `c2hs`.
* Add missing function: `sodium_free`.
# Version 1.0.18.1
* Improve support for opaque C structs (`Storable`, `Ptr`, allocation).
# Version 1.0.18.0
* Initial version.
basic-deps:
base: ==4.*
all-versions:
- 1.0.18.0
- 1.0.18.1
- 1.0.18.2
author: Renzo Carbonara
latest: 1.0.18.2
description-type: markdown
description: |+
# libsodium
Haskell bindings to
the C [libsodium](https://libsodium.gitbook.io) library.
license-name: ISC
|
f7625a375bce96f995d27460cbcca14f521263ea | topfunky-js.el | topfunky-js.el | ;; DESCRIPTION:
;; Useful patterns for using the ido menu with Javascript files.
;;
;; AUTHOR:
;; Geoffrey Grosenbach http://peepcode.com
;;
;; Matches things like:
;;
;; function bacon() {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post = function () {} // Instance method in a function
;;
;; USAGE:
;; (require 'topfunky-js)
(setq topfunky-js-imenu-generic-expression
'(("Named Function" "function\\s-+\\(\\w+\\)\\s-*(" 1)
("Hash Method" "^\\s-*\\(\\w+\\): function (" 1)
("Instance Method" "this\.\\(\\w+\\) = function (" 1)
))
(add-hook 'javascript-mode-hook
(lambda ()
(setq imenu-generic-expression topfunky-js-imenu-generic-expression)))
(provide 'topfunky-js)
| ;; DESCRIPTION:
;; Useful patterns for using the ido menu with Javascript files.
;;
;; AUTHOR:
;; Geoffrey Grosenbach http://peepcode.com
;;
;; Matches things like:
;;
;; function bacon() {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post = function () {} // Instance method in a function
;;
;; USAGE:
;; (require 'topfunky-js)
(setq topfunky-js-imenu-generic-expression
'(("Named Function" "function\\s-+\\(\\w+\\)\\s-*(" 1)
("Hash Method" "^\\s-*\\(\\w+\\):\\s-*function\\s-*(" 1)
("Instance Method" "this\.\\(\\w+\\)\\s-*=\\s-*function\\s-*(" 1)
))
(add-hook 'javascript-mode-hook
(lambda ()
(setq imenu-generic-expression topfunky-js-imenu-generic-expression)))
(provide 'topfunky-js)
| Make JS function pattern more lenient instead of expecting Crockford style. | Make JS function pattern more lenient instead of expecting Crockford style.
| Emacs Lisp | mit | lstoll/dotfiles,lstoll/dotfiles,lstoll/dotfiles,lstoll/repo,lstoll/repo,lstoll/repo | emacs-lisp | ## Code Before:
;; DESCRIPTION:
;; Useful patterns for using the ido menu with Javascript files.
;;
;; AUTHOR:
;; Geoffrey Grosenbach http://peepcode.com
;;
;; Matches things like:
;;
;; function bacon() {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post = function () {} // Instance method in a function
;;
;; USAGE:
;; (require 'topfunky-js)
(setq topfunky-js-imenu-generic-expression
'(("Named Function" "function\\s-+\\(\\w+\\)\\s-*(" 1)
("Hash Method" "^\\s-*\\(\\w+\\): function (" 1)
("Instance Method" "this\.\\(\\w+\\) = function (" 1)
))
(add-hook 'javascript-mode-hook
(lambda ()
(setq imenu-generic-expression topfunky-js-imenu-generic-expression)))
(provide 'topfunky-js)
## Instruction:
Make JS function pattern more lenient instead of expecting Crockford style.
## Code After:
;; DESCRIPTION:
;; Useful patterns for using the ido menu with Javascript files.
;;
;; AUTHOR:
;; Geoffrey Grosenbach http://peepcode.com
;;
;; Matches things like:
;;
;; function bacon() {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post = function () {} // Instance method in a function
;;
;; USAGE:
;; (require 'topfunky-js)
(setq topfunky-js-imenu-generic-expression
'(("Named Function" "function\\s-+\\(\\w+\\)\\s-*(" 1)
("Hash Method" "^\\s-*\\(\\w+\\):\\s-*function\\s-*(" 1)
("Instance Method" "this\.\\(\\w+\\)\\s-*=\\s-*function\\s-*(" 1)
))
(add-hook 'javascript-mode-hook
(lambda ()
(setq imenu-generic-expression topfunky-js-imenu-generic-expression)))
(provide 'topfunky-js)
|
99230277524a2b8531931eb3aaef5e56038d6f41 | package.json | package.json | {
"name": "lala",
"version": "1.1.1",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jmfirth/lala.git"
},
"keywords": [
"gitignore",
"hgignore",
"ignore",
"git",
"hg"
],
"author": "Justin Firth",
"license": "MIT",
"dependencies": {
"commander": "^2.8.1",
"needle": "^0.10.0",
"promise": "^7.0.4"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-babel": "^5.2.1",
"gulp-rename": "^1.2.2",
"minimist": "^1.2.0"
},
"bin": {
"lala": "lala.js"
},
"preferGlobal": true
}
| {
"name": "lala",
"version": "1.2.0",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jmfirth/lala.git"
},
"keywords": [
"gitignore",
"hgignore",
"ignore",
"git",
"hg"
],
"author": "Justin Firth",
"license": "MIT",
"dependencies": {
"commander": "^2.8.1",
"needle": "^0.10.0",
"node-persist": "0.0.6",
"promise": "^7.0.4",
"promptly": "^0.2.1"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-babel": "^5.2.1",
"gulp-rename": "^1.2.2",
"minimist": "^1.2.0"
},
"bin": {
"lala": "lala.js"
},
"preferGlobal": true
}
| Add node-persist and promprly; Increment to version 1.2.0 | Add node-persist and promprly; Increment to version 1.2.0
| JSON | mit | jmfirth/lala | json | ## Code Before:
{
"name": "lala",
"version": "1.1.1",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jmfirth/lala.git"
},
"keywords": [
"gitignore",
"hgignore",
"ignore",
"git",
"hg"
],
"author": "Justin Firth",
"license": "MIT",
"dependencies": {
"commander": "^2.8.1",
"needle": "^0.10.0",
"promise": "^7.0.4"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-babel": "^5.2.1",
"gulp-rename": "^1.2.2",
"minimist": "^1.2.0"
},
"bin": {
"lala": "lala.js"
},
"preferGlobal": true
}
## Instruction:
Add node-persist and promprly; Increment to version 1.2.0
## Code After:
{
"name": "lala",
"version": "1.2.0",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jmfirth/lala.git"
},
"keywords": [
"gitignore",
"hgignore",
"ignore",
"git",
"hg"
],
"author": "Justin Firth",
"license": "MIT",
"dependencies": {
"commander": "^2.8.1",
"needle": "^0.10.0",
"node-persist": "0.0.6",
"promise": "^7.0.4",
"promptly": "^0.2.1"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-babel": "^5.2.1",
"gulp-rename": "^1.2.2",
"minimist": "^1.2.0"
},
"bin": {
"lala": "lala.js"
},
"preferGlobal": true
}
|
9787ecf581f65dfa2706db925d47c6114348cbe9 | index.js | index.js | 'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
};
JoiSequelize.prototype.joi = function () {
return this._joi;
};
JoiSequelize.prototype.omit = function () {
if(!arguments.length) throw new Error('Omit must have params (arguments)');
return _.omit(this._joi, arguments);
};
JoiSequelize.prototype.pick = function () {
if(!arguments.length) throw new Error('Pick must have params (arguments)');
return _.pick(this._joi, arguments);
};
module.exports = JoiSequelize;
| 'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
};
JoiSequelize.prototype.joi = function () {
return this._joi;
};
JoiSequelize.prototype.omit = function () {
if(!arguments.length) throw new Error('Omit must have params (arguments)');
if(arguments[0] instanceof Array) return _.omit(this._joi, arguments[0]);
else return _.omit(this._joi, arguments);
};
JoiSequelize.prototype.pick = function () {
if(!arguments.length) throw new Error('Pick must have params (arguments)');
if(arguments[0] instanceof Array) return _.pick(this._joi, arguments[0]);
else return _.pick(this._joi, arguments);
};
JoiSequelize.prototype.include = function (o) {
if(!o || !(o instanceof Object) )
throw new Error('Pick must have params (arguments)');
return _.merge(this._joi, o);
};
module.exports = JoiSequelize;
| Change pick, omit to allow both array and list of params. Create function include. | Change pick, omit to allow both array and list of params. Create function include.
| JavaScript | mit | joeybaker/joi-sequelize,mibrito/joi-sequelize | javascript | ## Code Before:
'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
};
JoiSequelize.prototype.joi = function () {
return this._joi;
};
JoiSequelize.prototype.omit = function () {
if(!arguments.length) throw new Error('Omit must have params (arguments)');
return _.omit(this._joi, arguments);
};
JoiSequelize.prototype.pick = function () {
if(!arguments.length) throw new Error('Pick must have params (arguments)');
return _.pick(this._joi, arguments);
};
module.exports = JoiSequelize;
## Instruction:
Change pick, omit to allow both array and list of params. Create function include.
## Code After:
'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
};
JoiSequelize.prototype.joi = function () {
return this._joi;
};
JoiSequelize.prototype.omit = function () {
if(!arguments.length) throw new Error('Omit must have params (arguments)');
if(arguments[0] instanceof Array) return _.omit(this._joi, arguments[0]);
else return _.omit(this._joi, arguments);
};
JoiSequelize.prototype.pick = function () {
if(!arguments.length) throw new Error('Pick must have params (arguments)');
if(arguments[0] instanceof Array) return _.pick(this._joi, arguments[0]);
else return _.pick(this._joi, arguments);
};
JoiSequelize.prototype.include = function (o) {
if(!o || !(o instanceof Object) )
throw new Error('Pick must have params (arguments)');
return _.merge(this._joi, o);
};
module.exports = JoiSequelize;
|
f95d5715d26957d4832fdb555137d1b09e19d917 | test/specs/e2e/e2e.cli.snippet.js | test/specs/e2e/e2e.cli.snippet.js | "use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function () {
var bs, options;
before(function (done) {
bs = fork(index, ["start", "--logLevel=silent"]);
bs.on("message", function (data) {
options = data.options;
done();
});
bs.send({send: "options"});
});
after(function () {
bs.kill("SIGINT");
});
it("can serve the client JS", function (done) {
request(options.urls.local)
.get(options.scriptPath)
.expect(200)
.end(function (err, res) {
assert.isTrue(_.contains(res.text, "Connected to BrowserSync"));
done();
});
});
});
| "use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function () {
this.timeout(5000);
var bs, options;
before(function (done) {
bs = fork(index, ["start", "--logLevel=silent"]);
bs.on("message", function (data) {
options = data.options;
done();
});
bs.send({send: "options"});
});
after(function () {
bs.kill("SIGINT");
});
it("can serve the client JS", function (done) {
request(options.urls.local)
.get(options.scriptPath)
.expect(200)
.end(function (err, res) {
assert.isTrue(_.contains(res.text, "Connected to BrowserSync"));
done();
});
});
});
| Increase timeouts in attempt to get windows CI build working! | Increase timeouts in attempt to get windows CI build working!
| JavaScript | apache-2.0 | BrowserSync/browser-sync,Iced-Tea/browser-sync,portned/browser-sync,naoyak/browser-sync,schmod/browser-sync,Plou/browser-sync,syarul/browser-sync,lookfirst/browser-sync,Teino1978-Corp/Teino1978-Corp-browser-sync,syarul/browser-sync,EdwonLim/browser-sync,zhelezko/browser-sync,chengky/browser-sync,mcanthony/browser-sync,michaelgilley/browser-sync,naoyak/browser-sync,pmq20/browser-sync,BrowserSync/browser-sync,BrowserSync/browser-sync,nothiphop/browser-sync,portned/browser-sync,cnbin/browser-sync,shelsonjava/browser-sync,BrowserSync/browser-sync,chengky/browser-sync,nothiphop/browser-sync,schmod/browser-sync,shelsonjava/browser-sync,pepelsbey/browser-sync,mnquintana/browser-sync,Plou/browser-sync,zhelezko/browser-sync,Teino1978-Corp/Teino1978-Corp-browser-sync,harmoney-nikr/browser-sync,mcanthony/browser-sync,pmq20/browser-sync,pepelsbey/browser-sync,Iced-Tea/browser-sync,nitinsurana/browser-sync,guiquanz/browser-sync,beni55/browser-sync,harmoney-nikr/browser-sync,nitinsurana/browser-sync,felixdae/browser-sync,stevemao/browser-sync,guiquanz/browser-sync,stevemao/browser-sync,d-g-h/browser-sync,beni55/browser-sync,markcatley/browser-sync,EdwonLim/browser-sync,felixdae/browser-sync,d-g-h/browser-sync,michaelgilley/browser-sync | javascript | ## Code Before:
"use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function () {
var bs, options;
before(function (done) {
bs = fork(index, ["start", "--logLevel=silent"]);
bs.on("message", function (data) {
options = data.options;
done();
});
bs.send({send: "options"});
});
after(function () {
bs.kill("SIGINT");
});
it("can serve the client JS", function (done) {
request(options.urls.local)
.get(options.scriptPath)
.expect(200)
.end(function (err, res) {
assert.isTrue(_.contains(res.text, "Connected to BrowserSync"));
done();
});
});
});
## Instruction:
Increase timeouts in attempt to get windows CI build working!
## Code After:
"use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function () {
this.timeout(5000);
var bs, options;
before(function (done) {
bs = fork(index, ["start", "--logLevel=silent"]);
bs.on("message", function (data) {
options = data.options;
done();
});
bs.send({send: "options"});
});
after(function () {
bs.kill("SIGINT");
});
it("can serve the client JS", function (done) {
request(options.urls.local)
.get(options.scriptPath)
.expect(200)
.end(function (err, res) {
assert.isTrue(_.contains(res.text, "Connected to BrowserSync"));
done();
});
});
});
|
93741eed3b8c0f59304c405cfb4f9382f141e913 | .travis.yml | .travis.yml | language: php
php:
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: hhvm
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- touch .env
- echo 'date.timezone = Europe/Berlin' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php vendor/bin/php-coveralls -v
- vendor/bin/test-reporter
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
| language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: 7.1
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- touch .env
- echo 'date.timezone = Europe/Berlin' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php vendor/bin/php-coveralls -v
- vendor/bin/test-reporter
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
| Test PHP7.1 but allow failures | Test PHP7.1 but allow failures | YAML | mit | jkphl/micrometa,jkphl/micrometa | yaml | ## Code Before:
language: php
php:
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: hhvm
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- touch .env
- echo 'date.timezone = Europe/Berlin' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php vendor/bin/php-coveralls -v
- vendor/bin/test-reporter
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
## Instruction:
Test PHP7.1 but allow failures
## Code After:
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: 7.1
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- touch .env
- echo 'date.timezone = Europe/Berlin' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php vendor/bin/php-coveralls -v
- vendor/bin/test-reporter
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
3c8ef2be28d53e34a0a12f042ccad08c16cc8a1d | metadata/com.angryburg.uapp.txt | metadata/com.angryburg.uapp.txt | Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:
The official app for danger/u/, [https://dangeru.us/ dangeru.us]
Based on the Sukeban Games visual novel Va-11 Hall-A. Assets used with
permission.
.
Repo Type:git
Repo:https://github.com/nilesr/United4
Build:4.1.6,416
commit=4.1.6
subdir=app
gradle=yes
Build:4.1.7,417
commit=4.1.7
subdir=app
gradle=yes
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:4.1.7
Current Version Code:417
| Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:
The official app for danger/u/, [https://dangeru.us/ dangeru.us]
Based on the Sukeban Games visual novel Va-11 Hall-A. Assets used with
permission.
.
Repo Type:git
Repo:https://github.com/nilesr/United4
Build:4.1.6,416
commit=4.1.6
subdir=app
gradle=yes
Build:4.1.7,417
commit=4.1.7
subdir=app
gradle=yes
Build:4.1.9,419
commit=4.1.9
subdir=app
gradle=yes
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:4.1.9
Current Version Code:419
| Update la/u/ncher to 4.1.9 (419) | Update la/u/ncher to 4.1.9 (419)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:
The official app for danger/u/, [https://dangeru.us/ dangeru.us]
Based on the Sukeban Games visual novel Va-11 Hall-A. Assets used with
permission.
.
Repo Type:git
Repo:https://github.com/nilesr/United4
Build:4.1.6,416
commit=4.1.6
subdir=app
gradle=yes
Build:4.1.7,417
commit=4.1.7
subdir=app
gradle=yes
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:4.1.7
Current Version Code:417
## Instruction:
Update la/u/ncher to 4.1.9 (419)
## Code After:
Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:
The official app for danger/u/, [https://dangeru.us/ dangeru.us]
Based on the Sukeban Games visual novel Va-11 Hall-A. Assets used with
permission.
.
Repo Type:git
Repo:https://github.com/nilesr/United4
Build:4.1.6,416
commit=4.1.6
subdir=app
gradle=yes
Build:4.1.7,417
commit=4.1.7
subdir=app
gradle=yes
Build:4.1.9,419
commit=4.1.9
subdir=app
gradle=yes
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:4.1.9
Current Version Code:419
|
30d285d0063cdcb70d47c8619434bcbc057ab9d7 | src/allocators/page_heap.cc | src/allocators/page_heap.cc | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "system-alloc.h"
namespace scalloc {
PageHeap PageHeap::page_heap_ cache_aligned;
void PageHeap::InitModule() {
DistributedQueue::InitModule();
page_heap_.page_pool_.Init(kPageHeapBackends);
}
void PageHeap::AsyncRefill() {
uintptr_t ptr = reinterpret_cast<uintptr_t>(SystemAlloc_Mmap(
kPageSize * kPageRefill, NULL));
if (UNLIKELY(ptr == 0)) {
ErrorOut("SystemAlloc failed");
}
for (size_t i = 0; i < kPageRefill; i++) {
page_pool_.Enqueue(reinterpret_cast<void*>(ptr));
ptr += kPageSize;
}
}
} // namespace scalloc
| // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "system-alloc.h"
namespace scalloc {
PageHeap PageHeap::page_heap_ cache_aligned;
void PageHeap::InitModule() {
DistributedQueue::InitModule();
page_heap_.page_pool_.Init(kPageHeapBackends);
}
void PageHeap::AsyncRefill() {
uintptr_t ptr = reinterpret_cast<uintptr_t>(SystemAlloc_Mmap(
kPageSize * kPageRefill, NULL));
if (UNLIKELY(ptr == 0)) {
ErrorOut("SystemAlloc failed");
}
for (size_t i = 0; i < kPageRefill; i++) {
Put(reinterpret_cast<void*>(ptr));
ptr += kPageSize;
}
}
} // namespace scalloc
| Use public API for inserting a block in refill. | Use public API for inserting a block in refill.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C++ | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc | c++ | ## Code Before:
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "system-alloc.h"
namespace scalloc {
PageHeap PageHeap::page_heap_ cache_aligned;
void PageHeap::InitModule() {
DistributedQueue::InitModule();
page_heap_.page_pool_.Init(kPageHeapBackends);
}
void PageHeap::AsyncRefill() {
uintptr_t ptr = reinterpret_cast<uintptr_t>(SystemAlloc_Mmap(
kPageSize * kPageRefill, NULL));
if (UNLIKELY(ptr == 0)) {
ErrorOut("SystemAlloc failed");
}
for (size_t i = 0; i < kPageRefill; i++) {
page_pool_.Enqueue(reinterpret_cast<void*>(ptr));
ptr += kPageSize;
}
}
} // namespace scalloc
## Instruction:
Use public API for inserting a block in refill.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
## Code After:
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "system-alloc.h"
namespace scalloc {
PageHeap PageHeap::page_heap_ cache_aligned;
void PageHeap::InitModule() {
DistributedQueue::InitModule();
page_heap_.page_pool_.Init(kPageHeapBackends);
}
void PageHeap::AsyncRefill() {
uintptr_t ptr = reinterpret_cast<uintptr_t>(SystemAlloc_Mmap(
kPageSize * kPageRefill, NULL));
if (UNLIKELY(ptr == 0)) {
ErrorOut("SystemAlloc failed");
}
for (size_t i = 0; i < kPageRefill; i++) {
Put(reinterpret_cast<void*>(ptr));
ptr += kPageSize;
}
}
} // namespace scalloc
|
8e4d77636a9846296225ddbfab872be4c7486261 | dask_distance/_pycompat.py | dask_distance/_pycompat.py |
try:
irange = xrange
except NameError:
irange = range
|
try:
irange = xrange
except NameError:
irange = range
try:
from itertools import izip
except ImportError:
izip = zip
| Add izip for Python 2/3 compatibility | Add izip for Python 2/3 compatibility
Simply use `izip` from `itertools` on Python 2 and alias `izip` as `zip`
on Python 3. This way an iterable form of `zip` remains available on
both Python 2 and Python 3 that is named `izip`. Should help avoid
having the performance of the two implementations from diverging too
far.
| Python | bsd-3-clause | jakirkham/dask-distance | python | ## Code Before:
try:
irange = xrange
except NameError:
irange = range
## Instruction:
Add izip for Python 2/3 compatibility
Simply use `izip` from `itertools` on Python 2 and alias `izip` as `zip`
on Python 3. This way an iterable form of `zip` remains available on
both Python 2 and Python 3 that is named `izip`. Should help avoid
having the performance of the two implementations from diverging too
far.
## Code After:
try:
irange = xrange
except NameError:
irange = range
try:
from itertools import izip
except ImportError:
izip = zip
|
f8400e0f01ed045d2c609d12fb1f6c4c040991f3 | src/Home/Home.tsx | src/Home/Home.tsx | import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSection />
<p style={{ fontSize: '12px', textAlign: 'center' }}>
Made with ♥ -
<a
href="https://github.com/Felizardo/turnato"
target="_blank"
rel="noopener"
>
GitHub
</a>
-
<a
href="/about"
rel="noopener"
>
About
</a>
</p>
</TurnatoBar>
);
}
}
export default Home;
| import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
import { Link } from 'react-router-dom';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSection />
<p style={{ fontSize: '12px', textAlign: 'center' }}>
Made with ♥ -
<a
href="https://github.com/Felizardo/turnato"
target="_blank"
rel="noopener"
>
GitHub
</a>
-
<Link
to="/about"
>
About
</Link>
</p>
</TurnatoBar>
);
}
}
export default Home;
| Use <Link> instead of <a> | Use <Link> instead of <a>
| TypeScript | agpl-3.0 | Felizardo/turnato,Felizardo/turnato,Felizardo/turnato | typescript | ## Code Before:
import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSection />
<p style={{ fontSize: '12px', textAlign: 'center' }}>
Made with ♥ -
<a
href="https://github.com/Felizardo/turnato"
target="_blank"
rel="noopener"
>
GitHub
</a>
-
<a
href="/about"
rel="noopener"
>
About
</a>
</p>
</TurnatoBar>
);
}
}
export default Home;
## Instruction:
Use <Link> instead of <a>
## Code After:
import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
import { Link } from 'react-router-dom';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSection />
<p style={{ fontSize: '12px', textAlign: 'center' }}>
Made with ♥ -
<a
href="https://github.com/Felizardo/turnato"
target="_blank"
rel="noopener"
>
GitHub
</a>
-
<Link
to="/about"
>
About
</Link>
</p>
</TurnatoBar>
);
}
}
export default Home;
|
46c3049026d690813d8492b6baf2cebe2d99dcda | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.8.7
- 1.9.3
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
| language: ruby
rvm:
- 1.8.7
- 1.9.3
# Rubinius in 1.8 mode on Travis does not work. It complains about st_data_t etc in Xcodeproj.
#- rbx-18mode
- rbx-19mode
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
| Enable Rubinius in 1.9 mode on Travis. | Enable Rubinius in 1.9 mode on Travis.
| YAML | mit | Ashton-W/Core,AdamCampbell/Core,CocoaPods/Core,brianmichel/Core,orta/Core,dacaiguoguogmail/Core,k0nserv/Core,gabro/Core,dnkoutso/Core | yaml | ## Code Before:
language: ruby
rvm:
- 1.8.7
- 1.9.3
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
## Instruction:
Enable Rubinius in 1.9 mode on Travis.
## Code After:
language: ruby
rvm:
- 1.8.7
- 1.9.3
# Rubinius in 1.8 mode on Travis does not work. It complains about st_data_t etc in Xcodeproj.
#- rbx-18mode
- rbx-19mode
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
|
a9b4b0993b353d4992b8ca09ee217808b618af77 | metadata/org.schabi.nxbookmarks.txt | metadata/org.schabi.nxbookmarks.txt | Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summary:A front end for the Nextcloud Bookmark app
Description:
An Android front end for the Nextcloud/Owncloud Bookmark App based on the new
REST API that was introduced by Bookmarks version 0.10.1 With this app you can
add/edit/delete and view bookmarks, and sync them with your Nextcloud.
However you need to have the Bookmarks app in minimal required version 0.10.1
installed and enabled on you Nextcloud.
If you need more information about the Nextcloud Bookmark app, you can follow
this link: [https://apps.nextcloud.com/apps/bookmarks]
.
Repo Type:git
Repo:https://github.com/theScrabi/OCBookmarks
Build:1.0,1
commit=v1.0
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:1.0
Current Version Code:1
| Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summary:A front end for the Nextcloud Bookmark app
Description:
An Android front end for the Nextcloud/Owncloud Bookmark App based on the new
REST API that was introduced by Bookmarks version 0.10.1 With this app you can
add/edit/delete and view bookmarks, and sync them with your Nextcloud.
However you need to have the Bookmarks app in minimal required version 0.10.1
installed and enabled on you Nextcloud.
If you need more information about the Nextcloud Bookmark app, you can follow
this link: [https://apps.nextcloud.com/apps/bookmarks]
.
Repo Type:git
Repo:https://github.com/theScrabi/OCBookmarks
Build:1.0,1
commit=v1.0
subdir=app
gradle=yes
Build:1.1,2
commit=v1.1
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:1.1
Current Version Code:2
| Update Nextcloud Bookmarks to 1.1 (2) | Update Nextcloud Bookmarks to 1.1 (2)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summary:A front end for the Nextcloud Bookmark app
Description:
An Android front end for the Nextcloud/Owncloud Bookmark App based on the new
REST API that was introduced by Bookmarks version 0.10.1 With this app you can
add/edit/delete and view bookmarks, and sync them with your Nextcloud.
However you need to have the Bookmarks app in minimal required version 0.10.1
installed and enabled on you Nextcloud.
If you need more information about the Nextcloud Bookmark app, you can follow
this link: [https://apps.nextcloud.com/apps/bookmarks]
.
Repo Type:git
Repo:https://github.com/theScrabi/OCBookmarks
Build:1.0,1
commit=v1.0
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:1.0
Current Version Code:1
## Instruction:
Update Nextcloud Bookmarks to 1.1 (2)
## Code After:
Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summary:A front end for the Nextcloud Bookmark app
Description:
An Android front end for the Nextcloud/Owncloud Bookmark App based on the new
REST API that was introduced by Bookmarks version 0.10.1 With this app you can
add/edit/delete and view bookmarks, and sync them with your Nextcloud.
However you need to have the Bookmarks app in minimal required version 0.10.1
installed and enabled on you Nextcloud.
If you need more information about the Nextcloud Bookmark app, you can follow
this link: [https://apps.nextcloud.com/apps/bookmarks]
.
Repo Type:git
Repo:https://github.com/theScrabi/OCBookmarks
Build:1.0,1
commit=v1.0
subdir=app
gradle=yes
Build:1.1,2
commit=v1.1
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:1.1
Current Version Code:2
|
eb1fef5627df3869c7d6d4438e3876046c54292e | src/js/prefabs/shipbase.js | src/js/prefabs/shipbase.js | var ShipBase = function (game, x, y, key) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(400);
this.body.maxAngular = 200;
this.body.collideWorldBounds = true;
};
ShipBase.prototype = Object.create(Phaser.Sprite.prototype);
ShipBase.prototype.constructor = ShipBase;
ShipBase.prototype.update = function () {
}; | var ShipBase = function (game, x, y, key, weapon) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
this.startX = x;
this.startY = y;
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(400);
this.body.maxAngular = 200;
this.body.collideWorldBounds = true;
this.ACCELERATION = 600;
this.ANGULAR_ACCELERATION = 400;
//set pivot point
this.anchor.setTo(0.5, 0.5);
//Setup bullet timing information
this.lastBulletShotAt = -10000;
this.SHOT_DELAY = 100;
//Add weapon
this.weapon = weapon;
weapon.parentShip = this;
};
ShipBase.prototype = Object.create(Phaser.Sprite.prototype);
ShipBase.prototype.constructor = ShipBase;
ShipBase.prototype.onHit = function (bullet) {
if (bullet.parentShip !== this) {this.reset(this.startX, this.startY);}
};
ShipBase.prototype.onShipCollision = function () {
this.reset(this.startX, this.startY);
}; | Add more properties to ShipBase Also added collision functions | Add more properties to ShipBase
Also added collision functions
| JavaScript | mit | opcon/hdyftta,opcon/hdyftta | javascript | ## Code Before:
var ShipBase = function (game, x, y, key) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(400);
this.body.maxAngular = 200;
this.body.collideWorldBounds = true;
};
ShipBase.prototype = Object.create(Phaser.Sprite.prototype);
ShipBase.prototype.constructor = ShipBase;
ShipBase.prototype.update = function () {
};
## Instruction:
Add more properties to ShipBase
Also added collision functions
## Code After:
var ShipBase = function (game, x, y, key, weapon) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
this.startX = x;
this.startY = y;
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(400);
this.body.maxAngular = 200;
this.body.collideWorldBounds = true;
this.ACCELERATION = 600;
this.ANGULAR_ACCELERATION = 400;
//set pivot point
this.anchor.setTo(0.5, 0.5);
//Setup bullet timing information
this.lastBulletShotAt = -10000;
this.SHOT_DELAY = 100;
//Add weapon
this.weapon = weapon;
weapon.parentShip = this;
};
ShipBase.prototype = Object.create(Phaser.Sprite.prototype);
ShipBase.prototype.constructor = ShipBase;
ShipBase.prototype.onHit = function (bullet) {
if (bullet.parentShip !== this) {this.reset(this.startX, this.startY);}
};
ShipBase.prototype.onShipCollision = function () {
this.reset(this.startX, this.startY);
}; |
1e651aaa22a35bbcaaa1af4da0e05a674833ebdc | revparse_test.go | revparse_test.go | package git
| package git
import (
"fmt"
"os"
"testing"
)
func TestRevParseSingle(t *testing.T) {
repo := createTestRepo(t)
defer os.RemoveAll(repo.Workdir())
commitId, _ := seedTestRepo(t, repo)
fmt.Println(commitId)
revSpec, err := repo.RevParse("HEAD")
checkFatal(t, err)
checkObject(t, revSpec.From(), commitId)
}
func checkObject(t *testing.T, obj Object, id *Oid) {
if obj == nil {
t.Fatalf("bad object")
}
if !obj.Id().Equal(id) {
t.Fatalf("bad object, expected %s, got %s", id.String(), obj.Id().String())
}
}
| Add simple test for `rev-parse HEAD`. | Add simple test for `rev-parse HEAD`.
| Go | mit | libgit2/git2go,orivej/git2go,tiborvass/git2go,treejames/git2go,clns/git2go,orivej/git2go,clearr/git2go,kissthink/git2go,TheDahv/git2go,clearr/git2go,michaeledgar/git2go,ezwiebel/git2go,ezwiebel/git2go,orivej/git2go,TheDahv/git2go,tiborvass/git2go,hwjeong/git2go,libgit2/git2go,clns/git2go,AaronO/git2go,pks-t/git2go,ezwiebel/git2go,sygool/git2go,tiborvass/git2go,treejames/git2go,joseferminj/git2go,pks-t/git2go,treejames/git2go,clns/git2go,joseferminj/git2go,libgit2/git2go,Acidburn0zzz/git2go,hwjeong/git2go,hwjeong/git2go,Acidburn0zzz/git2go,kissthink/git2go,TheDahv/git2go,sygool/git2go,michaeledgar/git2go,joseferminj/git2go,clearr/git2go,AaronO/git2go | go | ## Code Before:
package git
## Instruction:
Add simple test for `rev-parse HEAD`.
## Code After:
package git
import (
"fmt"
"os"
"testing"
)
func TestRevParseSingle(t *testing.T) {
repo := createTestRepo(t)
defer os.RemoveAll(repo.Workdir())
commitId, _ := seedTestRepo(t, repo)
fmt.Println(commitId)
revSpec, err := repo.RevParse("HEAD")
checkFatal(t, err)
checkObject(t, revSpec.From(), commitId)
}
func checkObject(t *testing.T, obj Object, id *Oid) {
if obj == nil {
t.Fatalf("bad object")
}
if !obj.Id().Equal(id) {
t.Fatalf("bad object, expected %s, got %s", id.String(), obj.Id().String())
}
}
|
e544189ad398c515301fc6583baa339bf185876a | site/loadMetadata.js | site/loadMetadata.js | import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split('/')
const filename = parts[parts.length - 1]
if (filename === 'info.json') {
return
}
const songKey = parts[1]
metaData.songs[songKey] = metaData.songs[songKey] || {}
if (filename === 'song.json') {
metaData.songs[songKey].info = songRequire(name)
} else if (filename === 'package.json') {
const trackKey = parts[2]
metaData.songs[songKey].tracks = metaData.songs[songKey].tracks || {}
metaData.songs[songKey].tracks[trackKey] = songRequire(name)
}
})
store.dispatch(setMetadata(metaData))
return songRequire
}
export default function loadMetadata(store) {
const songRequire = _loadMetadata(store)
if (module.hot) {
module.hot.accept(songRequire.id, () => {
loadMetadata(store)
})
}
}
| import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split('/')
const filename = parts[parts.length - 1]
if (filename === 'info.json') {
return
}
const songKey = parts[1]
metaData.songs[songKey] = metaData.songs[songKey] || {}
if (filename === 'song.json') {
Object.assign(metaData.songs[songKey], songRequire(name))
} else if (filename === 'package.json') {
const trackKey = parts[2]
metaData.songs[songKey].tracks = metaData.songs[songKey].tracks || {}
metaData.songs[songKey].tracks[trackKey] = songRequire(name)
}
})
store.dispatch(setMetadata(metaData))
return songRequire
}
export default function loadMetadata(store) {
const songRequire = _loadMetadata(store)
if (module.hot) {
module.hot.accept(songRequire.id, () => {
loadMetadata(store)
})
}
}
| Fix location of song info metadata | Fix location of song info metadata
| JavaScript | mit | hacktunes/hacktunes,hacktunes/hacktunes | javascript | ## Code Before:
import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split('/')
const filename = parts[parts.length - 1]
if (filename === 'info.json') {
return
}
const songKey = parts[1]
metaData.songs[songKey] = metaData.songs[songKey] || {}
if (filename === 'song.json') {
metaData.songs[songKey].info = songRequire(name)
} else if (filename === 'package.json') {
const trackKey = parts[2]
metaData.songs[songKey].tracks = metaData.songs[songKey].tracks || {}
metaData.songs[songKey].tracks[trackKey] = songRequire(name)
}
})
store.dispatch(setMetadata(metaData))
return songRequire
}
export default function loadMetadata(store) {
const songRequire = _loadMetadata(store)
if (module.hot) {
module.hot.accept(songRequire.id, () => {
loadMetadata(store)
})
}
}
## Instruction:
Fix location of song info metadata
## Code After:
import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split('/')
const filename = parts[parts.length - 1]
if (filename === 'info.json') {
return
}
const songKey = parts[1]
metaData.songs[songKey] = metaData.songs[songKey] || {}
if (filename === 'song.json') {
Object.assign(metaData.songs[songKey], songRequire(name))
} else if (filename === 'package.json') {
const trackKey = parts[2]
metaData.songs[songKey].tracks = metaData.songs[songKey].tracks || {}
metaData.songs[songKey].tracks[trackKey] = songRequire(name)
}
})
store.dispatch(setMetadata(metaData))
return songRequire
}
export default function loadMetadata(store) {
const songRequire = _loadMetadata(store)
if (module.hot) {
module.hot.accept(songRequire.id, () => {
loadMetadata(store)
})
}
}
|
3f87166a147847566ea7e282421f8bf74aa0708a | mono.json | mono.json | {
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.5",
"github/jillix/events/v0.1.4",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
],
"operations": [ ]
}
| {
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.6",
"github/jillix/events/v0.1.6",
"http://code.jquery.com/ui/1.10.3/jquery-ui.js",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
],
"operations": [ ]
}
| Update to Bind v0.1.6 and Events v0.1.6. Added jQuery UI. | Update to Bind v0.1.6 and Events v0.1.6. Added jQuery UI.
| JSON | mit | jillix/engine-tree | json | ## Code Before:
{
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.5",
"github/jillix/events/v0.1.4",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
],
"operations": [ ]
}
## Instruction:
Update to Bind v0.1.6 and Events v0.1.6. Added jQuery UI.
## Code After:
{
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.6",
"github/jillix/events/v0.1.6",
"http://code.jquery.com/ui/1.10.3/jquery-ui.js",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
],
"operations": [ ]
}
|
dd8e689b8db71859826c717735317f32890dfecf | README.md | README.md | **Outdated :(**
Install
sudo aptitude install mongodb
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo aptitude install texlive
curl http://npmjs.org/install.sh | sudo sh
npm install -d
## Run Robot tests
- Install Robot `easy_install robotframework`
- Verify Robot installation `pybot --version`
- Install SeleniumLibrary [https://code.google.com/p/robotframework-seleniumlibrary/downloads/detail?name=robotframework-seleniumlibrary-2.9.1.tar.gz&can=2&q=]
- Install poppler (pdftotext) `brew install poppler`
## SSH Access to Github
Add this to ~/.ssh/config
```
Host dippa.github.com
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_dippa
```
|
Dippa editor is a web-based LaTeX editor. The service is running at <http://dippaeditor.com>.
With Dippa editor, you can create professional looking academic white papers. Dippa editor uses LaTeX for laying out your document, but don't worry, using LaTeX has never been this easy! With the web-based editor you can skip all the installing steps of LaTeX!
# Demo
Go to <http://dippaeditor.com> and create a demo document!
# Contributors
218 Mikko Koski [@rap1ds](https://github.com/rap1ds)
1 Joonas Rouhiainen [@joonasrouhiainen](https://github.com/joonasrouhiainen)
| Update the old and outdated readme | Update the old and outdated readme | Markdown | mit | rap1ds/dippa,rap1ds/dippa,rap1ds/dippa | markdown | ## Code Before:
**Outdated :(**
Install
sudo aptitude install mongodb
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo aptitude install texlive
curl http://npmjs.org/install.sh | sudo sh
npm install -d
## Run Robot tests
- Install Robot `easy_install robotframework`
- Verify Robot installation `pybot --version`
- Install SeleniumLibrary [https://code.google.com/p/robotframework-seleniumlibrary/downloads/detail?name=robotframework-seleniumlibrary-2.9.1.tar.gz&can=2&q=]
- Install poppler (pdftotext) `brew install poppler`
## SSH Access to Github
Add this to ~/.ssh/config
```
Host dippa.github.com
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_dippa
```
## Instruction:
Update the old and outdated readme
## Code After:
Dippa editor is a web-based LaTeX editor. The service is running at <http://dippaeditor.com>.
With Dippa editor, you can create professional looking academic white papers. Dippa editor uses LaTeX for laying out your document, but don't worry, using LaTeX has never been this easy! With the web-based editor you can skip all the installing steps of LaTeX!
# Demo
Go to <http://dippaeditor.com> and create a demo document!
# Contributors
218 Mikko Koski [@rap1ds](https://github.com/rap1ds)
1 Joonas Rouhiainen [@joonasrouhiainen](https://github.com/joonasrouhiainen)
|
23b43544fd3b7c2c44272f30fb689fba6b1698a9 | src/components/Place/Place.js | src/components/Place/Place.js | import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
render() {
if (this.props.place.rating !== undefined) {
return (
<div>
<h1>{this.props.place.name}</h1>
<p>{this.props.place.formatted_address}<br />
Rating: {this.props.place.rating}</p>
<iframe
width="600"
height="450"
frameBorder="0"
src={`https://www.google.com/maps/embed/v1/place?key=${mapKey}&q=${this.props.place.name}${this.props.place.formatted_address}¢er=${this.props.place.geometry.location.lat},${this.props.place.geometry.location.lng}`} allowFullScreen>
</iframe>
</div>
)
} else {
return(<div></div>)
}
}
}
export default Place;
| import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
price(n) {
let money = "";
for (var i=0; i < n; i++){
money += "$";
}
return money;
}
render() {
if (this.props.place.rating !== undefined) {
return (
<div>
<h1>{this.props.place.name}</h1>
<p>{this.props.place.formatted_address}<br />
Rating: {this.props.place.rating}</p>
<p>Price: {this.price(this.props.place.price_level)} </p>
<iframe
width="600"
height="450"
frameBorder="0"
src={`https://www.google.com/maps/embed/v1/place?key=${mapKey}&q=${this.props.place.name}${this.props.place.formatted_address}¢er=${this.props.place.geometry.location.lat},${this.props.place.geometry.location.lng}`} allowFullScreen>
</iframe>
</div>
)
} else {
return(<div></div>)
}
}
}
export default Place;
| ADD map AND price to search result display | ADD map AND price to search result display
| JavaScript | mit | Decidr/react-decidr,Decidr/react-decidr,Decidr/react-decidr | javascript | ## Code Before:
import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
render() {
if (this.props.place.rating !== undefined) {
return (
<div>
<h1>{this.props.place.name}</h1>
<p>{this.props.place.formatted_address}<br />
Rating: {this.props.place.rating}</p>
<iframe
width="600"
height="450"
frameBorder="0"
src={`https://www.google.com/maps/embed/v1/place?key=${mapKey}&q=${this.props.place.name}${this.props.place.formatted_address}¢er=${this.props.place.geometry.location.lat},${this.props.place.geometry.location.lng}`} allowFullScreen>
</iframe>
</div>
)
} else {
return(<div></div>)
}
}
}
export default Place;
## Instruction:
ADD map AND price to search result display
## Code After:
import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
price(n) {
let money = "";
for (var i=0; i < n; i++){
money += "$";
}
return money;
}
render() {
if (this.props.place.rating !== undefined) {
return (
<div>
<h1>{this.props.place.name}</h1>
<p>{this.props.place.formatted_address}<br />
Rating: {this.props.place.rating}</p>
<p>Price: {this.price(this.props.place.price_level)} </p>
<iframe
width="600"
height="450"
frameBorder="0"
src={`https://www.google.com/maps/embed/v1/place?key=${mapKey}&q=${this.props.place.name}${this.props.place.formatted_address}¢er=${this.props.place.geometry.location.lat},${this.props.place.geometry.location.lng}`} allowFullScreen>
</iframe>
</div>
)
} else {
return(<div></div>)
}
}
}
export default Place;
|
219099101ccf541f47b40dd7cfaffbafdf40cbeb | attributes/default.rb | attributes/default.rb | default['gerrit']['version'] = "2.9"
override['gerrit']['war']['download_url'] = "http://gerrit-releases.storage.googleapis.com/gerrit-2.9.war"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['config']['database']['type'] = "MYSQL"
default['gerrit']['config']['database']['database'] = "gerrit"
default['gerrit']['config']['auth']['type'] = "HTTP"
default['gerrit']['config']['auth']['cookieSecure'] = true
default['gerrit']['config']['auth']['gitBasicAuth'] = true
default['gerrit']['proxy']['ssl'] = true
default['gerrit']['batch_admin_user']['enabled'] = true
| default['gerrit']['version'] = "2.9"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['config']['database']['type'] = "MYSQL"
default['gerrit']['config']['database']['database'] = "gerrit"
default['gerrit']['config']['auth']['type'] = "HTTP"
default['gerrit']['config']['auth']['cookieSecure'] = true
default['gerrit']['config']['auth']['gitBasicAuth'] = true
default['gerrit']['proxy']['ssl'] = true
default['gerrit']['batch_admin_user']['enabled'] = true
| Remove override.. attribute was defined in a role.. | Remove override.. attribute was defined in a role..
| Ruby | apache-2.0 | TYPO3-cookbooks/site-reviewtypo3org,TYPO3-cookbooks/site-reviewtypo3org,TYPO3-cookbooks/site-reviewtypo3org,TYPO3-cookbooks/site-reviewtypo3org | ruby | ## Code Before:
default['gerrit']['version'] = "2.9"
override['gerrit']['war']['download_url'] = "http://gerrit-releases.storage.googleapis.com/gerrit-2.9.war"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['config']['database']['type'] = "MYSQL"
default['gerrit']['config']['database']['database'] = "gerrit"
default['gerrit']['config']['auth']['type'] = "HTTP"
default['gerrit']['config']['auth']['cookieSecure'] = true
default['gerrit']['config']['auth']['gitBasicAuth'] = true
default['gerrit']['proxy']['ssl'] = true
default['gerrit']['batch_admin_user']['enabled'] = true
## Instruction:
Remove override.. attribute was defined in a role..
## Code After:
default['gerrit']['version'] = "2.9"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['config']['database']['type'] = "MYSQL"
default['gerrit']['config']['database']['database'] = "gerrit"
default['gerrit']['config']['auth']['type'] = "HTTP"
default['gerrit']['config']['auth']['cookieSecure'] = true
default['gerrit']['config']['auth']['gitBasicAuth'] = true
default['gerrit']['proxy']['ssl'] = true
default['gerrit']['batch_admin_user']['enabled'] = true
|
e1facf9e0689d38b7f6747aecc36511c020f2d51 | packages/tux/src/components/fields/Dropdown.tsx | packages/tux/src/components/fields/Dropdown.tsx | import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValue: string | null,
}
class Dropdown extends Component<any, State> {
state: State = {
selectedValue: null,
}
componentDidMount() {
const { value } = this.props
console.log(value)
this.setState({
selectedValue: value
})
}
handleChange = (value: string) => {
const { onChange } = this.props
this.setState({
selectedValue: value
})
onChange(value)
}
render() {
const { id, value, label, dropdownValues, onChange } = this.props
const { selectedValue } = this.state
return (
<div className="Dropdown">
<label className="InputLabel">{label}</label>
<select
onChange={(event: React.ChangeEvent<any>) => this.handleChange(event.target.value)}
>
{dropdownValues.map((value: string) => (
<option key={value} selected={value === selectedValue}>{value}</option>
))}
</select>
<style jsx>{`
.Dropdown {
}
`}</style>
</div>
)
}
}
export default Dropdown
| import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValue: string | undefined,
}
class Dropdown extends Component<any, State> {
state: State = {
selectedValue: undefined,
}
componentDidMount() {
const { value } = this.props
this.setState({
selectedValue: value
})
}
handleChange = (value: string) => {
const { onChange } = this.props
this.setState({
selectedValue: value
})
onChange(value)
}
render() {
const { id, value, label, dropdownValues, onChange } = this.props
const { selectedValue } = this.state
return (
<div className="Dropdown">
<label className="InputLabel">{label}</label>
<select
onChange={(event: React.ChangeEvent<any>) => this.handleChange(event.target.value)}
value={selectedValue}
>
{dropdownValues.map((value: string) => (
<option key={value}>{value}</option>
))}
</select>
<style jsx>{`
.Dropdown {
}
`}</style>
</div>
)
}
}
export default Dropdown
| Use 'value' instead of 'defaultValue' | Use 'value' instead of 'defaultValue'
| TypeScript | mit | aranja/tux,aranja/tux,aranja/tux | typescript | ## Code Before:
import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValue: string | null,
}
class Dropdown extends Component<any, State> {
state: State = {
selectedValue: null,
}
componentDidMount() {
const { value } = this.props
console.log(value)
this.setState({
selectedValue: value
})
}
handleChange = (value: string) => {
const { onChange } = this.props
this.setState({
selectedValue: value
})
onChange(value)
}
render() {
const { id, value, label, dropdownValues, onChange } = this.props
const { selectedValue } = this.state
return (
<div className="Dropdown">
<label className="InputLabel">{label}</label>
<select
onChange={(event: React.ChangeEvent<any>) => this.handleChange(event.target.value)}
>
{dropdownValues.map((value: string) => (
<option key={value} selected={value === selectedValue}>{value}</option>
))}
</select>
<style jsx>{`
.Dropdown {
}
`}</style>
</div>
)
}
}
export default Dropdown
## Instruction:
Use 'value' instead of 'defaultValue'
## Code After:
import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValue: string | undefined,
}
class Dropdown extends Component<any, State> {
state: State = {
selectedValue: undefined,
}
componentDidMount() {
const { value } = this.props
this.setState({
selectedValue: value
})
}
handleChange = (value: string) => {
const { onChange } = this.props
this.setState({
selectedValue: value
})
onChange(value)
}
render() {
const { id, value, label, dropdownValues, onChange } = this.props
const { selectedValue } = this.state
return (
<div className="Dropdown">
<label className="InputLabel">{label}</label>
<select
onChange={(event: React.ChangeEvent<any>) => this.handleChange(event.target.value)}
value={selectedValue}
>
{dropdownValues.map((value: string) => (
<option key={value}>{value}</option>
))}
</select>
<style jsx>{`
.Dropdown {
}
`}</style>
</div>
)
}
}
export default Dropdown
|
05a4ff557f4565f8b50efb177af277cb3bc8b446 | .travis.yml | .travis.yml | language: node_js
node_js:
- 0.12
before_install:
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
- cd ~/casperjs
- git checkout tags/1.0.2
- export PATH=$PATH:`pwd`/bin
- cd -
before_script:
- phantomjs --version
- casperjs --version
install:
- npm install
notifications:
slack: tlksio:fNbJkMIvB9GZKDDjfjZqAzBb
| language: node_js
node_js:
- 0.12
install:
- npm install
notifications:
slack: tlksio:fNbJkMIvB9GZKDDjfjZqAzBb
| Remove casper.js, phantomjs seems to be old | Remove casper.js, phantomjs seems to be old
| YAML | mit | tlksio/front,tlksio/front | yaml | ## Code Before:
language: node_js
node_js:
- 0.12
before_install:
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
- cd ~/casperjs
- git checkout tags/1.0.2
- export PATH=$PATH:`pwd`/bin
- cd -
before_script:
- phantomjs --version
- casperjs --version
install:
- npm install
notifications:
slack: tlksio:fNbJkMIvB9GZKDDjfjZqAzBb
## Instruction:
Remove casper.js, phantomjs seems to be old
## Code After:
language: node_js
node_js:
- 0.12
install:
- npm install
notifications:
slack: tlksio:fNbJkMIvB9GZKDDjfjZqAzBb
|
89a6ca0610527258abf8a96c63d322264905a1d3 | ruby/aliases.zsh | ruby/aliases.zsh | alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun' | alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun'
gem-browse-source-url() {
(
set -Eeuo pipefail
local gem_info source_url
gem_info=$(curl -sSNf "https://rubygems.org/api/v1/gems/$1.json")
source_url=$(echo "$gem_info" | tr -d '\n' | jq -r .source_code_uri)
if [[ $source_url == null || $source_url == "" ]]; then
source_url=$(echo "$gem_info" | tr -d '\n' | jq -r .homepage_uri)
fi
echo "$source_url"
open "$source_url" &>/dev/null
)
}
alias gemb=gem-browse-source-url
| Add alias to browse the source url of a gem | Add alias to browse the source url of a gem
| Shell | mit | ZimbiX/dotfiles,ZimbiX/dotfiles | shell | ## Code Before:
alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun'
## Instruction:
Add alias to browse the source url of a gem
## Code After:
alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun'
gem-browse-source-url() {
(
set -Eeuo pipefail
local gem_info source_url
gem_info=$(curl -sSNf "https://rubygems.org/api/v1/gems/$1.json")
source_url=$(echo "$gem_info" | tr -d '\n' | jq -r .source_code_uri)
if [[ $source_url == null || $source_url == "" ]]; then
source_url=$(echo "$gem_info" | tr -d '\n' | jq -r .homepage_uri)
fi
echo "$source_url"
open "$source_url" &>/dev/null
)
}
alias gemb=gem-browse-source-url
|
d34ca8ba76ec51b1cd1a48e557b91ab7fa44afd0 | backend/spec/views/comable/admin/themes/index.slim_spec.rb | backend/spec/views/comable/admin/themes/index.slim_spec.rb | describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:name))
end
end
| describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, (Rails::VERSION::MAJOR == 3) ? Comable::Theme.scoped : Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:name))
end
end
| Fix tests to work in Rails 3.2 | Fix tests to work in Rails 3.2
| Ruby | mit | appirits/comable,appirits/comable,hyoshida/comable,hyoshida/comable,hyoshida/comable,appirits/comable | ruby | ## Code Before:
describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:name))
end
end
## Instruction:
Fix tests to work in Rails 3.2
## Code After:
describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, (Rails::VERSION::MAJOR == 3) ? Comable::Theme.scoped : Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:name))
end
end
|
577e3775e120930a5e46b8a8a78b102c6f1579ca | src/travix/commands/PythonCommand.hx | src/travix/commands/PythonCommand.hx | package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure(_, _))) {
installPackage('python3');
}
exec('python3', ['bin/python/tests.py']);
});
}
}
| package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure(_, _))) {
// fix for https://github.com/back2dos/travix/issues/83
if (Sys.systemName() == 'Mac' && tryToRun('python', ['--version']).match(Success(_))) {
// https://stackoverflow.com/questions/49672642/trying-to-install-python3-using-brew
exec('brew', ['upgrade', "python"]);
} else {
installPackage('python3');
}
}
exec('python3', ['bin/python/tests.py']);
});
}
}
| Fix installation of Python 3 on OSX via brew | Fix installation of Python 3 on OSX via brew | Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix | haxe | ## Code Before:
package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure(_, _))) {
installPackage('python3');
}
exec('python3', ['bin/python/tests.py']);
});
}
}
## Instruction:
Fix installation of Python 3 on OSX via brew
## Code After:
package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure(_, _))) {
// fix for https://github.com/back2dos/travix/issues/83
if (Sys.systemName() == 'Mac' && tryToRun('python', ['--version']).match(Success(_))) {
// https://stackoverflow.com/questions/49672642/trying-to-install-python3-using-brew
exec('brew', ['upgrade', "python"]);
} else {
installPackage('python3');
}
}
exec('python3', ['bin/python/tests.py']);
});
}
}
|
2779c49c7fa75c4520d1499872b43092bac0bbda | gpg-init.fish | gpg-init.fish | function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end
# no, it is not running. Start it!
gpg-agent --daemon --no-grab \
--write-env-file ~/.gnupg/.gpg-agent-info \
>/dev/null ^&1
end
# get the agent info from the info file, and export it so GPG can see it.
set -gx GPG_AGENT_INFO (cut -c 16- ~/.gnupg/.gpg-agent-info)
set -gx GPG_TTY (tty)
end
| function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end
# no, it is not running. Start it!
killall gpg-agent; and
gpg-agent --daemon --no-grab \
--write-env-file ~/.gnupg/.gpg-agent-info \
>/dev/null ^&1
end
# get the agent info from the info file, and export it so GPG can see it.
set -gx GPG_AGENT_INFO (cut -c 16- ~/.gnupg/.gpg-agent-info)
set -gx GPG_TTY (tty)
end
| Kill GPG agent before starting a new one | Kill GPG agent before starting a new one
| fish | bsd-3-clause | aapit/fish-shell-functions,aapit/fish-shell-functions | fish | ## Code Before:
function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end
# no, it is not running. Start it!
gpg-agent --daemon --no-grab \
--write-env-file ~/.gnupg/.gpg-agent-info \
>/dev/null ^&1
end
# get the agent info from the info file, and export it so GPG can see it.
set -gx GPG_AGENT_INFO (cut -c 16- ~/.gnupg/.gpg-agent-info)
set -gx GPG_TTY (tty)
end
## Instruction:
Kill GPG agent before starting a new one
## Code After:
function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end
# no, it is not running. Start it!
killall gpg-agent; and
gpg-agent --daemon --no-grab \
--write-env-file ~/.gnupg/.gpg-agent-info \
>/dev/null ^&1
end
# get the agent info from the info file, and export it so GPG can see it.
set -gx GPG_AGENT_INFO (cut -c 16- ~/.gnupg/.gpg-agent-info)
set -gx GPG_TTY (tty)
end
|
48fb501dd8bd3098eed0a77f35cd366708075b4a | README.md | README.md | What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.
It pulls the PHP Laravel image from [this repository](https://github.com/GIANTCRAB/php-laravel-env).
## Support
* PHP 7.1/7.2
* Laravel 5.6
* MySQL 5.5
* Redis (Your Laravel will require `predis/predis` composer package)
# Usage
There are several deployment techniques available: SSH and Docker
## SSH Deployment
Copy the following files and drop them in your Laravel base repository:
* .env.gitlab-testing
* .gitlab-ci.yml
* .gitlab-build.sh
* .gitlab-test.sh
* .gitlab-staging-deploy.sh
Ensure that your repository has set a Git deployment remote and you have created a SSH key for access to this remote.
Open up `.gitlab-ci.yml` and set the variables for the following:
```
GIT_DEPLOYMENT_URL: git@gitlab.com:woohuiren/test-laravel-project.git
GIT_DEPLOYMENT_REMOTE: staging
GIT_DEPLOYMENT_BRANCH: master
SSH_PRIVATE_KEY: somethingsomethingblahblah # Recommended to put into GitLab secret variables instead
```
| What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.
It pulls the PHP Laravel image from [this repository](https://github.com/GIANTCRAB/php-laravel-env).
## Support
* PHP 7.1/7.2
* Laravel 5.6
* MySQL 5.5
* Redis (Your Laravel will require `predis/predis` composer package)
* Laravel Dusk (UI automated testing)
# Usage
There are several deployment techniques available: SSH and Docker
## SSH Deployment
Copy the following files and drop them in your Laravel base repository:
* .env.gitlab-testing
* .gitlab-ci.yml
* .gitlab-build.sh
* .gitlab-test.sh
* .gitlab-staging-deploy.sh
Ensure that your repository has set a Git deployment remote and you have created a SSH key for access to this remote.
Open up `.gitlab-ci.yml` and set the variables for the following:
```
GIT_DEPLOYMENT_URL: git@gitlab.com:woohuiren/test-laravel-project.git
GIT_DEPLOYMENT_REMOTE: staging
GIT_DEPLOYMENT_BRANCH: master
SSH_PRIVATE_KEY: somethingsomethingblahblah # Recommended to put into GitLab secret variables instead
```
| Add info on Laravel dusk | Add info on Laravel dusk
| Markdown | mit | GIANTCRAB/gitlabby-dockerish-laravel | markdown | ## Code Before:
What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.
It pulls the PHP Laravel image from [this repository](https://github.com/GIANTCRAB/php-laravel-env).
## Support
* PHP 7.1/7.2
* Laravel 5.6
* MySQL 5.5
* Redis (Your Laravel will require `predis/predis` composer package)
# Usage
There are several deployment techniques available: SSH and Docker
## SSH Deployment
Copy the following files and drop them in your Laravel base repository:
* .env.gitlab-testing
* .gitlab-ci.yml
* .gitlab-build.sh
* .gitlab-test.sh
* .gitlab-staging-deploy.sh
Ensure that your repository has set a Git deployment remote and you have created a SSH key for access to this remote.
Open up `.gitlab-ci.yml` and set the variables for the following:
```
GIT_DEPLOYMENT_URL: git@gitlab.com:woohuiren/test-laravel-project.git
GIT_DEPLOYMENT_REMOTE: staging
GIT_DEPLOYMENT_BRANCH: master
SSH_PRIVATE_KEY: somethingsomethingblahblah # Recommended to put into GitLab secret variables instead
```
## Instruction:
Add info on Laravel dusk
## Code After:
What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.
It pulls the PHP Laravel image from [this repository](https://github.com/GIANTCRAB/php-laravel-env).
## Support
* PHP 7.1/7.2
* Laravel 5.6
* MySQL 5.5
* Redis (Your Laravel will require `predis/predis` composer package)
* Laravel Dusk (UI automated testing)
# Usage
There are several deployment techniques available: SSH and Docker
## SSH Deployment
Copy the following files and drop them in your Laravel base repository:
* .env.gitlab-testing
* .gitlab-ci.yml
* .gitlab-build.sh
* .gitlab-test.sh
* .gitlab-staging-deploy.sh
Ensure that your repository has set a Git deployment remote and you have created a SSH key for access to this remote.
Open up `.gitlab-ci.yml` and set the variables for the following:
```
GIT_DEPLOYMENT_URL: git@gitlab.com:woohuiren/test-laravel-project.git
GIT_DEPLOYMENT_REMOTE: staging
GIT_DEPLOYMENT_BRANCH: master
SSH_PRIVATE_KEY: somethingsomethingblahblah # Recommended to put into GitLab secret variables instead
```
|
771d58409858015104ddcc1073e010fd0ebb9fd9 | Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js | Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '../Utilities/useMergeRefs';
import * as React from 'react';
/**
* Experimental implementation of `createAnimatedComponent` that is intended to
* be compatible with concurrent rendering.
*/
export default function createAnimatedComponent<TProps: {...}, TInstance>(
Component: React.AbstractComponent<TProps, TInstance>,
): React.AbstractComponent<TProps, TInstance> {
return React.forwardRef((props, forwardedRef) => {
const [reducedProps, callbackRef] = useAnimatedProps<TProps, TInstance>(
props,
);
const ref = useMergeRefs<TInstance | null>(callbackRef, forwardedRef);
return <Component {...reducedProps} ref={ref} />;
});
}
| /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '../Utilities/useMergeRefs';
import StyleSheet from '../StyleSheet/StyleSheet';
import * as React from 'react';
/**
* Experimental implementation of `createAnimatedComponent` that is intended to
* be compatible with concurrent rendering.
*/
export default function createAnimatedComponent<TProps: {...}, TInstance>(
Component: React.AbstractComponent<TProps, TInstance>,
): React.AbstractComponent<TProps, TInstance> {
return React.forwardRef((props, forwardedRef) => {
const [reducedProps, callbackRef] = useAnimatedProps<TProps, TInstance>(
props,
);
const ref = useMergeRefs<TInstance | null>(callbackRef, forwardedRef);
// Some components require explicit passthrough values for animation
// to work properly. For example, if an animated component is
// transformed and Pressable, onPress will not work after transform
// without these passthrough values.
// $FlowFixMe[prop-missing]
const {passthroughAnimatedPropExplicitValues, style} = reducedProps;
const {style: passthroughStyle, ...passthroughProps} =
passthroughAnimatedPropExplicitValues ?? {};
const mergedStyle = StyleSheet.compose(style, passthroughStyle);
return (
<Component
{...reducedProps}
{...passthroughProps}
style={mergedStyle}
ref={ref}
/>
);
});
}
| Add passthroughAnimatedPropsExplicitValues to modern createAnimatedComponent | Add passthroughAnimatedPropsExplicitValues to modern createAnimatedComponent
Summary:
Code almost directly copied from the old implementation of [createAnimatedComponent.js](https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/Libraries/Animated/createAnimatedComponent.js?commit=156dbfe5d0fc491819a8b4939896d23b2273e251&lines=208-211).
This is necessary for certain things to work (like ScrollViewStickyHeader).
The reason is because when animations are driven by useNativeDriver, JS does not know where the component has moved to. If a component that is translated like ScrollViewStickyHeader is also Pressable, the onPress will **not** work without this prop. [Link to where ScrollViewStickyHeader uses passthroughAnimatedPropsExplicitValues](https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/Libraries/Components/ScrollView/ScrollViewStickyHeader.js?commit=124a38e1708b620857e4e6969cdef6004aa1bd10&lines=294-296)
I am not adding this to the Flow type because we only want people using this if they really know what they're doing, as it's a hacky fix.
Followup work to this would be to create a hook to attach the listener to the animated values, which ScrollViewStickyHeader does manually. But this is not required for this component to work.
Changelog: Internal
Reviewed By: yungsters
Differential Revision: D29557480
fbshipit-source-id: 293fab4746c3404f5ae9b90afe85d2ca91181873
| JavaScript | mit | pandiaraj44/react-native,janicduplessis/react-native,pandiaraj44/react-native,javache/react-native,facebook/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,facebook/react-native,pandiaraj44/react-native,pandiaraj44/react-native,pandiaraj44/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,pandiaraj44/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native | javascript | ## Code Before:
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '../Utilities/useMergeRefs';
import * as React from 'react';
/**
* Experimental implementation of `createAnimatedComponent` that is intended to
* be compatible with concurrent rendering.
*/
export default function createAnimatedComponent<TProps: {...}, TInstance>(
Component: React.AbstractComponent<TProps, TInstance>,
): React.AbstractComponent<TProps, TInstance> {
return React.forwardRef((props, forwardedRef) => {
const [reducedProps, callbackRef] = useAnimatedProps<TProps, TInstance>(
props,
);
const ref = useMergeRefs<TInstance | null>(callbackRef, forwardedRef);
return <Component {...reducedProps} ref={ref} />;
});
}
## Instruction:
Add passthroughAnimatedPropsExplicitValues to modern createAnimatedComponent
Summary:
Code almost directly copied from the old implementation of [createAnimatedComponent.js](https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/Libraries/Animated/createAnimatedComponent.js?commit=156dbfe5d0fc491819a8b4939896d23b2273e251&lines=208-211).
This is necessary for certain things to work (like ScrollViewStickyHeader).
The reason is because when animations are driven by useNativeDriver, JS does not know where the component has moved to. If a component that is translated like ScrollViewStickyHeader is also Pressable, the onPress will **not** work without this prop. [Link to where ScrollViewStickyHeader uses passthroughAnimatedPropsExplicitValues](https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/Libraries/Components/ScrollView/ScrollViewStickyHeader.js?commit=124a38e1708b620857e4e6969cdef6004aa1bd10&lines=294-296)
I am not adding this to the Flow type because we only want people using this if they really know what they're doing, as it's a hacky fix.
Followup work to this would be to create a hook to attach the listener to the animated values, which ScrollViewStickyHeader does manually. But this is not required for this component to work.
Changelog: Internal
Reviewed By: yungsters
Differential Revision: D29557480
fbshipit-source-id: 293fab4746c3404f5ae9b90afe85d2ca91181873
## Code After:
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '../Utilities/useMergeRefs';
import StyleSheet from '../StyleSheet/StyleSheet';
import * as React from 'react';
/**
* Experimental implementation of `createAnimatedComponent` that is intended to
* be compatible with concurrent rendering.
*/
export default function createAnimatedComponent<TProps: {...}, TInstance>(
Component: React.AbstractComponent<TProps, TInstance>,
): React.AbstractComponent<TProps, TInstance> {
return React.forwardRef((props, forwardedRef) => {
const [reducedProps, callbackRef] = useAnimatedProps<TProps, TInstance>(
props,
);
const ref = useMergeRefs<TInstance | null>(callbackRef, forwardedRef);
// Some components require explicit passthrough values for animation
// to work properly. For example, if an animated component is
// transformed and Pressable, onPress will not work after transform
// without these passthrough values.
// $FlowFixMe[prop-missing]
const {passthroughAnimatedPropExplicitValues, style} = reducedProps;
const {style: passthroughStyle, ...passthroughProps} =
passthroughAnimatedPropExplicitValues ?? {};
const mergedStyle = StyleSheet.compose(style, passthroughStyle);
return (
<Component
{...reducedProps}
{...passthroughProps}
style={mergedStyle}
ref={ref}
/>
);
});
}
|
7fd8c44bd36aed172fd14c885c8af8c56bbbc989 | backend/src/main/helm/values-nfs-server-provisioner.yaml | backend/src/main/helm/values-nfs-server-provisioner.yaml | persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
storageClass: files
accessMode: ReadWriteOnce
size: ${extendedmind.nfsStorageSize}
## For creating the StorageClass automatically:
storageClass:
create: true
## Set a provisioner name. If unset, a name will be generated.
provisionerName: nfs-provisioner
## Set StorageClass as the default StorageClass
## Ignored if storageClass.create is false
defaultClass: false
## Set a StorageClass name
## Ignored if storageClass.create is false
name: nfs
# Resources
resources:
limits:
cpu: 50m
memory: 100Mi
requests:
cpu: 50m
memory: 100Mi
| persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
storageClass: files
accessMode: ReadWriteOnce
size: ${extendedmind.nfsStorageSize}
## For creating the StorageClass automatically:
storageClass:
create: true
## Set a provisioner name. If unset, a name will be generated.
provisionerName: nfs-provisioner
## Set StorageClass as the default StorageClass
## Ignored if storageClass.create is false
defaultClass: false
## Set a StorageClass name
## Ignored if storageClass.create is false
name: nfs
# Resources
resources:
limits:
cpu: ${extendedmind.nfsCpu}
memory: ${extendedmind.nfsMemory}
requests:
cpu: ${extendedmind.nfsCpu}
memory: ${extendedmind.nfsMemory}
| Use dynamic values for nfs resources | Use dynamic values for nfs resources
| YAML | agpl-3.0 | extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind | yaml | ## Code Before:
persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
storageClass: files
accessMode: ReadWriteOnce
size: ${extendedmind.nfsStorageSize}
## For creating the StorageClass automatically:
storageClass:
create: true
## Set a provisioner name. If unset, a name will be generated.
provisionerName: nfs-provisioner
## Set StorageClass as the default StorageClass
## Ignored if storageClass.create is false
defaultClass: false
## Set a StorageClass name
## Ignored if storageClass.create is false
name: nfs
# Resources
resources:
limits:
cpu: 50m
memory: 100Mi
requests:
cpu: 50m
memory: 100Mi
## Instruction:
Use dynamic values for nfs resources
## Code After:
persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
storageClass: files
accessMode: ReadWriteOnce
size: ${extendedmind.nfsStorageSize}
## For creating the StorageClass automatically:
storageClass:
create: true
## Set a provisioner name. If unset, a name will be generated.
provisionerName: nfs-provisioner
## Set StorageClass as the default StorageClass
## Ignored if storageClass.create is false
defaultClass: false
## Set a StorageClass name
## Ignored if storageClass.create is false
name: nfs
# Resources
resources:
limits:
cpu: ${extendedmind.nfsCpu}
memory: ${extendedmind.nfsMemory}
requests:
cpu: ${extendedmind.nfsCpu}
memory: ${extendedmind.nfsMemory}
|
6cab51ff3ed62b14ed1b69ea73f0576f8e61486e | app/aboutDialog.js | app/aboutDialog.js | const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Electron: ${process.versions['atom-shell']}
libchromiumcontent: ${process.versions['chrome']}
V8: ${process.versions.v8}
Node.js: ${process.versions.node}
Update channel: ${Channel.channel()}
This software uses libraries from the FFmpeg project under the LGPLv2.1`,
icon: path.join(__dirname, '..', 'app', 'img', 'braveAbout.png'),
buttons: ['Ok']
})
}
| const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Electron: ${process.versions['atom-shell']}
libchromiumcontent: ${process.versions['chrome']}
V8: ${process.versions.v8}
Node.js: ${process.versions.node}
Update channel: ${Channel.channel()}
This software uses libraries from the FFmpeg project under the LGPLv2.1`,
icon: path.join(__dirname, '..', 'app', 'extensions', 'brave', 'img', 'braveAbout.png'),
buttons: ['Ok']
})
}
| Fix about dialog image reference | Fix about dialog image reference
Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@bridiver
| JavaScript | mpl-2.0 | timborden/browser-laptop,manninglucas/browser-laptop,Sh1d0w/browser-laptop,jonathansampson/browser-laptop,luixxiul/browser-laptop,darkdh/browser-laptop,diasdavid/browser-laptop,jonathansampson/browser-laptop,dcposch/browser-laptop,Sh1d0w/browser-laptop,pmkary/braver,dcposch/browser-laptop,diasdavid/browser-laptop,jonathansampson/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,timborden/browser-laptop,darkdh/browser-laptop,willy-b/browser-laptop,Sh1d0w/browser-laptop,willy-b/browser-laptop,willy-b/browser-laptop,dcposch/browser-laptop,diasdavid/browser-laptop,dcposch/browser-laptop,luixxiul/browser-laptop,MKuenzi/browser-laptop,manninglucas/browser-laptop,darkdh/browser-laptop,darkdh/browser-laptop,willy-b/browser-laptop,manninglucas/browser-laptop,manninglucas/browser-laptop,MKuenzi/browser-laptop,timborden/browser-laptop,luixxiul/browser-laptop,MKuenzi/browser-laptop,timborden/browser-laptop,MKuenzi/browser-laptop,jonathansampson/browser-laptop,pmkary/braver,Sh1d0w/browser-laptop,pmkary/braver,pmkary/braver | javascript | ## Code Before:
const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Electron: ${process.versions['atom-shell']}
libchromiumcontent: ${process.versions['chrome']}
V8: ${process.versions.v8}
Node.js: ${process.versions.node}
Update channel: ${Channel.channel()}
This software uses libraries from the FFmpeg project under the LGPLv2.1`,
icon: path.join(__dirname, '..', 'app', 'img', 'braveAbout.png'),
buttons: ['Ok']
})
}
## Instruction:
Fix about dialog image reference
Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@bridiver
## Code After:
const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Electron: ${process.versions['atom-shell']}
libchromiumcontent: ${process.versions['chrome']}
V8: ${process.versions.v8}
Node.js: ${process.versions.node}
Update channel: ${Channel.channel()}
This software uses libraries from the FFmpeg project under the LGPLv2.1`,
icon: path.join(__dirname, '..', 'app', 'extensions', 'brave', 'img', 'braveAbout.png'),
buttons: ['Ok']
})
}
|
b7a09445b447ac8b927c0c1693524d75d463daf1 | src/Backend/Core/Layout/Templates/macros.html.twig | src/Backend/Core/Layout/Templates/macros.html.twig | {% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro required() %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ 'lbl.RequiredField'|trans|ucfirst }}" title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr>
{% endmacro %}
{% macro icon(icon) %}
<span class="fa fa-{{ icon }}" aria-hidden="true"></span>
{% endmacro %}
{% macro infoTooltip(title) %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ title }}" title="{{ title }}">{{ _self.icon('info-circle') }}</abbr>
{% endmacro %}
{% macro dataGrid(dataGrid, noItemsMessage) %}
<div class="row">
<div class="col-md-12">
{% if dataGrid %}
<div class="table-responsive">
{{ dataGrid|raw }}
</div>
{% else %}
<p>
{% if noItemsMessage %}
{{ noItemsMessage|raw }}
{% else %}
{{ 'msg.NoItems'|trans|raw }}
{% endif %}
</p>
{% endif %}
</div>
</div>
{% endmacro %}
| {% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro required() %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ 'lbl.RequiredField'|trans|ucfirst }}" title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr>
{% endmacro %}
{% macro icon(icon) %}
<span class="fa fa-{{ icon }}" aria-hidden="true"></span>
{% endmacro %}
{% macro infoTooltip(title) %}
{% import _self as macro %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ title }}" title="{{ title }}">{{ macro.icon('info-circle') }}</abbr>
{% endmacro %}
{% macro dataGrid(dataGrid, noItemsMessage) %}
<div class="row">
<div class="col-md-12">
{% if dataGrid %}
<div class="table-responsive">
{{ dataGrid|raw }}
</div>
{% else %}
<p>
{% if noItemsMessage %}
{{ noItemsMessage|raw }}
{% else %}
{{ 'msg.NoItems'|trans|raw }}
{% endif %}
</p>
{% endif %}
</div>
</div>
{% endmacro %}
| Fix import macro icon in macro infoTooltip | Fix import macro icon in macro infoTooltip
| Twig | mit | riadvice/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,riadvice/forkcms,carakas/forkcms,riadvice/forkcms,jessedobbelaere/forkcms,jeroendesloovere/forkcms,jessedobbelaere/forkcms,justcarakas/forkcms,jonasdekeukelaere/forkcms,bartdc/forkcms,carakas/forkcms,justcarakas/forkcms,sumocoders/forkcms,bartdc/forkcms,jonasdekeukelaere/forkcms,Katrienvh/forkcms,jeroendesloovere/forkcms,Katrienvh/forkcms,jessedobbelaere/forkcms,carakas/forkcms,sumocoders/forkcms,jacob-v-dam/forkcms,jacob-v-dam/forkcms,jonasdekeukelaere/forkcms,Katrienvh/forkcms,forkcms/forkcms,jonasdekeukelaere/forkcms,jeroendesloovere/forkcms,riadvice/forkcms,carakas/forkcms,carakas/forkcms,sumocoders/forkcms,sumocoders/forkcms,forkcms/forkcms,jacob-v-dam/forkcms,jacob-v-dam/forkcms,justcarakas/forkcms,jeroendesloovere/forkcms,forkcms/forkcms,jessedobbelaere/forkcms,forkcms/forkcms,bartdc/forkcms,Katrienvh/forkcms | twig | ## Code Before:
{% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro required() %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ 'lbl.RequiredField'|trans|ucfirst }}" title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr>
{% endmacro %}
{% macro icon(icon) %}
<span class="fa fa-{{ icon }}" aria-hidden="true"></span>
{% endmacro %}
{% macro infoTooltip(title) %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ title }}" title="{{ title }}">{{ _self.icon('info-circle') }}</abbr>
{% endmacro %}
{% macro dataGrid(dataGrid, noItemsMessage) %}
<div class="row">
<div class="col-md-12">
{% if dataGrid %}
<div class="table-responsive">
{{ dataGrid|raw }}
</div>
{% else %}
<p>
{% if noItemsMessage %}
{{ noItemsMessage|raw }}
{% else %}
{{ 'msg.NoItems'|trans|raw }}
{% endif %}
</p>
{% endif %}
</div>
</div>
{% endmacro %}
## Instruction:
Fix import macro icon in macro infoTooltip
## Code After:
{% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro required() %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ 'lbl.RequiredField'|trans|ucfirst }}" title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr>
{% endmacro %}
{% macro icon(icon) %}
<span class="fa fa-{{ icon }}" aria-hidden="true"></span>
{% endmacro %}
{% macro infoTooltip(title) %}
{% import _self as macro %}
<abbr tabindex="0" data-toggle="tooltip" aria-label="{{ title }}" title="{{ title }}">{{ macro.icon('info-circle') }}</abbr>
{% endmacro %}
{% macro dataGrid(dataGrid, noItemsMessage) %}
<div class="row">
<div class="col-md-12">
{% if dataGrid %}
<div class="table-responsive">
{{ dataGrid|raw }}
</div>
{% else %}
<p>
{% if noItemsMessage %}
{{ noItemsMessage|raw }}
{% else %}
{{ 'msg.NoItems'|trans|raw }}
{% endif %}
</p>
{% endif %}
</div>
</div>
{% endmacro %}
|
6dfe0bf11964e4f04d78290190ffd33c52c1b77e | sources/us/nj/statewide.json | sources/us/nj/statewide.json | {
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "http://geodata.state.nj.us/arcgis/rest/services/Features/Addresses_and_Names/MapServer/0",
"website": "https://njgin.state.nj.us/NJ_NJGINExplorer/ShowMetadata.jsp?docId={EC181B3D-4D15-11E1-A2E4-0003BA2C919E}",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": [
"PRE_NUM",
"ADDR_NUM",
"SUF_NUM"
],
"street": [
"PRE_DIR",
"PRE_TYPE",
"PRE_MOD",
"NAME",
"SUF_TYPE",
"SUF_DIR",
"SUF_MOD"
],
"postcode": "ZIP_CODE",
"id": "AP_GUID",
"accuracy": 1
}
}
| {
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "https://njgin.state.nj.us/download2/Address/ADDR_POINT_NJ_fgdb.zip",
"website": "https://njgin.state.nj.us/NJ_NJGINExplorer/ShowMetadata.jsp?docId={EC181B3D-4D15-11E1-A2E4-0003BA2C919E}",
"type": "http",
"compression": "zip",
"conform": {
"type": "gdb",
"number": [
"PRE_NUM",
"ADDR_NUM",
"SUF_NUM"
],
"street": [
"PRE_DIR",
"PRE_TYPE",
"PRE_MOD",
"NAME",
"SUF_TYPE",
"SUF_DIR",
"SUF_MOD"
],
"postcode": "ZIP_CODE",
"id": "AP_GUID",
"accuracy": 1
}
}
| Use the GDB for New Jersey | Use the GDB for New Jersey
| JSON | bsd-3-clause | tyrasd/openaddresses,sabas/openaddresses,sergiyprotsiv/openaddresses,sabas/openaddresses,tyrasd/openaddresses,orangejulius/openaddresses,openaddresses/openaddresses,astoff/openaddresses,davidchiles/openaddresses,openaddresses/openaddresses,davidchiles/openaddresses,slibby/openaddresses,slibby/openaddresses,sabas/openaddresses,sergiyprotsiv/openaddresses,openaddresses/openaddresses,astoff/openaddresses,sergiyprotsiv/openaddresses,orangejulius/openaddresses,orangejulius/openaddresses,mmdolbow/openaddresses,astoff/openaddresses,davidchiles/openaddresses,tyrasd/openaddresses,slibby/openaddresses,mmdolbow/openaddresses,mmdolbow/openaddresses | json | ## Code Before:
{
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "http://geodata.state.nj.us/arcgis/rest/services/Features/Addresses_and_Names/MapServer/0",
"website": "https://njgin.state.nj.us/NJ_NJGINExplorer/ShowMetadata.jsp?docId={EC181B3D-4D15-11E1-A2E4-0003BA2C919E}",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": [
"PRE_NUM",
"ADDR_NUM",
"SUF_NUM"
],
"street": [
"PRE_DIR",
"PRE_TYPE",
"PRE_MOD",
"NAME",
"SUF_TYPE",
"SUF_DIR",
"SUF_MOD"
],
"postcode": "ZIP_CODE",
"id": "AP_GUID",
"accuracy": 1
}
}
## Instruction:
Use the GDB for New Jersey
## Code After:
{
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "https://njgin.state.nj.us/download2/Address/ADDR_POINT_NJ_fgdb.zip",
"website": "https://njgin.state.nj.us/NJ_NJGINExplorer/ShowMetadata.jsp?docId={EC181B3D-4D15-11E1-A2E4-0003BA2C919E}",
"type": "http",
"compression": "zip",
"conform": {
"type": "gdb",
"number": [
"PRE_NUM",
"ADDR_NUM",
"SUF_NUM"
],
"street": [
"PRE_DIR",
"PRE_TYPE",
"PRE_MOD",
"NAME",
"SUF_TYPE",
"SUF_DIR",
"SUF_MOD"
],
"postcode": "ZIP_CODE",
"id": "AP_GUID",
"accuracy": 1
}
}
|
3d70e2c36ee9951abfff74751f64790eed03f17a | fabric/fabric-core/src/main/resources/io/fabric8/internal/karaf_kill.sh | fabric/fabric-core/src/main/resources/io/fabric8/internal/karaf_kill.sh | function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
kill $PID
for i in {1..5};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been successfully stopped"
break
else
sleep 3
fi
done
} | function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
$KARAF_HOME/bin/stop
for i in {1..20};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been successfully stopped"
break
else
sleep 3
fi
done
kill -9 $PID
} | Increase the amount of time to wait until a container stops. Kill the container if it doesn't stop gracefully. | Increase the amount of time to wait until a container stops. Kill the container if it doesn't stop gracefully.
| Shell | apache-2.0 | rhuss/fabric8,chirino/fabric8v2,janstey/fabric8,jludvice/fabric8,zmhassan/fabric8,rajdavies/fabric8,jimmidyson/fabric8,christian-posta/fabric8,chirino/fabric8,jimmidyson/fabric8,KurtStam/fabric8,hekonsek/fabric8,zmhassan/fabric8,hekonsek/fabric8,dhirajsb/fabric8,jludvice/fabric8,rnc/fabric8,jimmidyson/fabric8,zmhassan/fabric8,jonathanchristison/fabric8,mwringe/fabric8,chirino/fabric8,PhilHardwick/fabric8,KurtStam/fabric8,gashcrumb/fabric8,mwringe/fabric8,rhuss/fabric8,sobkowiak/fabric8,EricWittmann/fabric8,hekonsek/fabric8,jimmidyson/fabric8,chirino/fabric8v2,hekonsek/fabric8,avano/fabric8,janstey/fabric8,EricWittmann/fabric8,hekonsek/fabric8,jonathanchristison/fabric8,gashcrumb/fabric8,zmhassan/fabric8,KurtStam/fabric8,dhirajsb/fabric8,chirino/fabric8v2,KurtStam/fabric8,christian-posta/fabric8,jonathanchristison/fabric8,chirino/fabric8v2,sobkowiak/fabric8,aslakknutsen/fabric8,migue/fabric8,christian-posta/fabric8,migue/fabric8,migue/fabric8,sobkowiak/fabric8,rnc/fabric8,rhuss/fabric8,rajdavies/fabric8,jludvice/fabric8,dhirajsb/fabric8,mwringe/fabric8,migue/fabric8,rajdavies/fabric8,chirino/fabric8,aslakknutsen/fabric8,janstey/fabric8,jimmidyson/fabric8,EricWittmann/fabric8,PhilHardwick/fabric8,dhirajsb/fabric8,christian-posta/fabric8,punkhorn/fabric8,EricWittmann/fabric8,gashcrumb/fabric8,punkhorn/fabric8,avano/fabric8,punkhorn/fabric8,sobkowiak/fabric8,avano/fabric8,jludvice/fabric8,avano/fabric8,aslakknutsen/fabric8,rajdavies/fabric8,rnc/fabric8,rnc/fabric8,PhilHardwick/fabric8,jonathanchristison/fabric8,PhilHardwick/fabric8,punkhorn/fabric8,mwringe/fabric8,rhuss/fabric8,rnc/fabric8,chirino/fabric8,gashcrumb/fabric8 | shell | ## Code Before:
function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
kill $PID
for i in {1..5};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been successfully stopped"
break
else
sleep 3
fi
done
}
## Instruction:
Increase the amount of time to wait until a container stops. Kill the container if it doesn't stop gracefully.
## Code After:
function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
$KARAF_HOME/bin/stop
for i in {1..20};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been successfully stopped"
break
else
sleep 3
fi
done
kill -9 $PID
} |