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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0a7961a157f1c0f4f16b887debb1f3b51c3aede2 | tests/tests_cats.cljx | tests/tests_cats.cljx | (ns tests-cats
#+cljs
(:require-macros [cemerick.cljs.test
:refer (is deftest with-test run-tests testing test-var)])
#+cljs
(:require [cemerick.cljs.test :as ts]
[cats.core :as m]
[cats.types :as t])
#+clj
(:require [clojure.test :refer :all]
[cats.co... | (ns tests-cats
#+cljs
(:require-macros [cemerick.cljs.test
:refer (is deftest with-test run-tests testing test-var)])
#+cljs
(:require [cemerick.cljs.test :as ts]
[cats.core :as m]
[cats.types :as t])
#+clj
(:require [clojure.test :refer :all]
[cats.co... | Test sequence-m for the Maybe monad | Test sequence-m for the Maybe monad
| Clojure | bsd-2-clause | yurrriq/cats,OlegTheCat/cats,funcool/cats,tcsavage/cats,mccraigmccraig/cats,alesguzik/cats | clojure | ## Code Before:
(ns tests-cats
#+cljs
(:require-macros [cemerick.cljs.test
:refer (is deftest with-test run-tests testing test-var)])
#+cljs
(:require [cemerick.cljs.test :as ts]
[cats.core :as m]
[cats.types :as t])
#+clj
(:require [clojure.test :refer :all]
... |
6551b81b2dc0963a9244de8d75a3bff2feba2ae8 | CHANGELOG.md | CHANGELOG.md | * Replace ShipmentMailer with CartonMailer
IMPORTANT: Appliction and extension code targeting ShipmentMailer needs to
be updated to target CartonMailer instead.
Issue https://github.com/bonobos/spree/pull/299
* Add Carton concept to Spree
Cartons represent containers of inventory units that have... |
* Replace ShipmentMailer with CartonMailer
IMPORTANT: Appliction and extension code targeting ShipmentMailer needs to
be updated to target CartonMailer instead.
Issue https://github.com/bonobos/spree/pull/299
* Add Carton concept to Spree
Cartons represent containers of inventory units that hav... | Add changelog entry for Money preference removal | Add changelog entry for Money preference removal
| Markdown | bsd-3-clause | pervino/solidus,ckk-scratch/solidus,lsirivong/solidus,forkata/solidus,devilcoders/solidus,athal7/solidus,devilcoders/solidus,Arpsara/solidus,jsurdilla/solidus,ckk-scratch/solidus,ckk-scratch/solidus,grzlus/solidus,bonobos/solidus,xuewenfei/solidus,pervino/solidus,jsurdilla/solidus,Senjai/solidus,grzlus/solidus,jordan-b... | markdown | ## Code Before:
* Replace ShipmentMailer with CartonMailer
IMPORTANT: Appliction and extension code targeting ShipmentMailer needs to
be updated to target CartonMailer instead.
Issue https://github.com/bonobos/spree/pull/299
* Add Carton concept to Spree
Cartons represent containers of inventory... |
9c525a287afa617d59665eddeb19787255fa56dc | README.md | README.md |
This is a Ruby on Rails based web application. It's a Create, Read, Update, Destroy application. Users can create an account and login. User can also comment on other users profile. | It's an application built for people to rent out the extra space they have in their space/apartment.
#What can I do with this web application?
This is a Ruby on Rails based web application. It's a Create, Read, Update, Destroy application. Users can create an account and login. User can also comment on other users p... | Update readme with more information | Update readme with more information
| Markdown | mit | jhack32/rent-a-storage,jhack32/rent-a-storage,jhack32/rent-a-storage | markdown | ## Code Before:
This is a Ruby on Rails based web application. It's a Create, Read, Update, Destroy application. Users can create an account and login. User can also comment on other users profile.
## Instruction:
Update readme with more information
## Code After:
It's an application built for people to rent out the... |
c30821c7ef6cd8268ac7e66fa862e64590218bf5 | Configuration/TypoScript/Includes/Page.ts | Configuration/TypoScript/Includes/Page.ts | page.meta {
# tell mobile devices to initially scale the page to fit the devices screen width
# viewport = width=device-width, initial-scale=1.0
} | config {
# set the 'no-js' html-class for Modernizr
htmlTag_setParams = class="no-js"
}
page.meta {
# tell mobile devices to initially scale the page to fit the devices screen width
# viewport = width=device-width, initial-scale=1.0
} | Set the 'no-js' class on the html-element by default | [FEATURE] Set the 'no-js' class on the html-element by default
| TypeScript | mit | t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template | typescript | ## Code Before:
page.meta {
# tell mobile devices to initially scale the page to fit the devices screen width
# viewport = width=device-width, initial-scale=1.0
}
## Instruction:
[FEATURE] Set the 'no-js' class on the html-element by default
## Code After:
config {
# set the 'no-js' html-class for Modernizr
htmlTa... |
a174fbd637bf9ccc7b8a97a251c016495f92f6a9 | eliot/__init__.py | eliot/__init__.py |
from ._version import __version__
# Expose the public API:
from ._message import Message
from ._action import startAction, startTask, Action
from ._output import ILogger, Logger, MemoryLogger
from ._validation import Field, MessageType, ActionType
from ._traceback import writeTraceback, writeFailure
addDestination = ... |
from ._version import __version__
# Expose the public API:
from ._message import Message
from ._action import startAction, startTask, Action
from ._output import ILogger, Logger, MemoryLogger
from ._validation import Field, fields, MessageType, ActionType
from ._traceback import writeTraceback, writeFailure
addDestin... | Add fields to the public API. | Add fields to the public API.
| Python | apache-2.0 | ClusterHQ/eliot,ScatterHQ/eliot,iffy/eliot,ScatterHQ/eliot,ScatterHQ/eliot | python | ## Code Before:
from ._version import __version__
# Expose the public API:
from ._message import Message
from ._action import startAction, startTask, Action
from ._output import ILogger, Logger, MemoryLogger
from ._validation import Field, MessageType, ActionType
from ._traceback import writeTraceback, writeFailure
a... |
e200b324ad063d7576d306b1f82841ddd8d637f2 | config/application.rb | config/application.rb | require_relative './boot'
require 'action_controller/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
Bundler.require(*Rails.groups)
module PensionGuidance
class Application < Rails::Application
config.action_dispatch.rescue_responses.merge! 'GuideRepository::GuideNotFound' => :not_found
... | require_relative './boot'
require 'action_controller/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
Bundler.require(*Rails.groups)
module PensionGuidance
class Application < Rails::Application
config.action_dispatch.rescue_responses.merge! 'GuideRepository::GuideNotFound' => :not_found
... | Use middleware to 404 requests to `/browserconfig.xml` | Use middleware to 404 requests to `/browserconfig.xml`
| Ruby | mit | guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance | ruby | ## Code Before:
require_relative './boot'
require 'action_controller/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
Bundler.require(*Rails.groups)
module PensionGuidance
class Application < Rails::Application
config.action_dispatch.rescue_responses.merge! 'GuideRepository::GuideNotFound' =>... |
2a2eb23c78c959ab5f4c3b0a5927eb6ec693a018 | services/web/test/unit_frontend/coffee/test-main.coffee | services/web/test/unit_frontend/coffee/test-main.coffee | tests = []
for file of window.__karma__.files
if window.__karma__.files.hasOwnProperty(file)
if /Tests\.js$/.test(file)
tests.push(file)
requirejs.config
baseUrl: '/base/public/js'
paths:
"moment": "libs/moment-2.9.0"
deps: tests
callback: window.__karma__.start
| tests = []
for file of window.__karma__.files
if window.__karma__.files.hasOwnProperty(file)
if /test\/unit_frontend\/js.+Tests.js$/.test(file)
tests.push(file)
requirejs.config
baseUrl: '/base/public/js'
paths:
"moment": "libs/moment-2.9.0"
deps: tests
callback: window.__karma__.start
| Fix bug where tests from new ES code being included in requirejs wrapped code | Fix bug where tests from new ES code being included in requirejs wrapped code
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex | coffeescript | ## Code Before:
tests = []
for file of window.__karma__.files
if window.__karma__.files.hasOwnProperty(file)
if /Tests\.js$/.test(file)
tests.push(file)
requirejs.config
baseUrl: '/base/public/js'
paths:
"moment": "libs/moment-2.9.0"
deps: tests
callback: window.__karma__.start
## Instruction:... |
786d84819a5b4fdd105692e84ba2e75379d29bb5 | extras/languages/_export/ui.csv | extras/languages/_export/ui.csv | "ID","SOURCE","TRANSLATION","NOTES"
"1","The Map of Sigil, City of Doors","","Page title."
"2","Reference index of 260 Sigil venues culled from official Planescape material.","","Page description."
"3","Sigil: The City of Doors","","Map header."
"4","Nether Whisper","","Upstream website name."
| "ID","SOURCE","TRANSLATION","NOTES"
"1","The Map of Sigil, City of Doors","","Page title."
"2","Reference index of 260 Sigil venues culled from official Planescape material.","","Page description."
"3","Sigil: The City of Doors","","Map header."
"4","Nether Whisper","","Upstream website name."
"5","Search...","",""
| Add “Search…” string to UI translation file | :gift: Add “Search…” string to UI translation file
| CSV | mit | amargon/city-of-doors,amargon/city-of-doors,amargon/city-of-doors | csv | ## Code Before:
"ID","SOURCE","TRANSLATION","NOTES"
"1","The Map of Sigil, City of Doors","","Page title."
"2","Reference index of 260 Sigil venues culled from official Planescape material.","","Page description."
"3","Sigil: The City of Doors","","Map header."
"4","Nether Whisper","","Upstream website name."
## Instr... |
ac67275a527da0370c68fb5f66f1b9fa0b999fce | requirements/base.txt | requirements/base.txt | Django==1.7.3
dj-database-url==0.3.0
django-cache-url==0.8.0
django-configurations==0.8
gunicorn==19.1.1
psycopg2==2.5.4
| Django==1.7.3
dj-database-url==0.3.0
django-cache-url==0.8.0
django-configurations==0.8
gunicorn==19.1.1
psycopg2==2.5.4
requests==2.5.1
| Add requests dependency to requirements | Add requests dependency to requirements
| Text | bsd-3-clause | CorbanU/corban-shopify,CorbanU/corban-shopify | text | ## Code Before:
Django==1.7.3
dj-database-url==0.3.0
django-cache-url==0.8.0
django-configurations==0.8
gunicorn==19.1.1
psycopg2==2.5.4
## Instruction:
Add requests dependency to requirements
## Code After:
Django==1.7.3
dj-database-url==0.3.0
django-cache-url==0.8.0
django-configurations==0.8
gunicorn==19.1.1
psyco... |
450d5932d4131b44a5e78566db70720192f533ee | spec/team_spec.rb | spec/team_spec.rb | require 'spec_helper'
require_relative '../src/team.rb'
describe Team do
describe 'Team#name' do
it "Should return team's name." do
t = Team.new 'Devils'
expect(t.name).to eql 'Devils'
end
end
end
| require 'spec_helper'
require_relative '../src/team.rb'
describe Team do
describe 'Team#name' do
it "Should return team's name." do
t = Team.new 'Devils'
expect(t.name).to eql 'Devils'
end
it "Should allow team's name to be set." do
t = Team.new 'Devils'
t.name = 'Angels'
expect(t.name).to ... | Add should allow team's nameto be set test | Add should allow team's nameto be set test
| Ruby | mit | francisbrito/INS353-2014-2-c2 | ruby | ## Code Before:
require 'spec_helper'
require_relative '../src/team.rb'
describe Team do
describe 'Team#name' do
it "Should return team's name." do
t = Team.new 'Devils'
expect(t.name).to eql 'Devils'
end
end
end
## Instruction:
Add should allow team's nameto be set test
## Code After:
require 'spec... |
bf1117effbc1fc4769e10b1fa00f6116202d0c7f | build/configure.sh | build/configure.sh | if [ -z "$MYSQL_DATABASE" ]; then
echo "MYSQL_DATABASE environment variable not specified"
exit 1
fi
if [ -z "$MYSQL_USER" ]; then
echo "MYSQL_USER environment variable not specified"
exit 1
fi
if [ -z "$MYSQL_PASSWORD" ]; then
echo "MYSQL_PASSWORD environment variable not specified"
exit 1
fi... | if [ -z "$MYSQL_DATABASE" ]; then
echo "MYSQL_DATABASE environment variable not specified"
exit 1
fi
if [ -z "$MYSQL_USER" ]; then
echo "MYSQL_USER environment variable not specified"
exit 1
fi
if [ -z "$MYSQL_PASSWORD" ]; then
echo "MYSQL_PASSWORD environment variable not specified"
exit 1
fi... | Copy mysql environment variables into keys.json | Copy mysql environment variables into keys.json
| Shell | mit | tudelft-atlarge/opendc,tudelft-atlarge/opendc | shell | ## Code Before:
if [ -z "$MYSQL_DATABASE" ]; then
echo "MYSQL_DATABASE environment variable not specified"
exit 1
fi
if [ -z "$MYSQL_USER" ]; then
echo "MYSQL_USER environment variable not specified"
exit 1
fi
if [ -z "$MYSQL_PASSWORD" ]; then
echo "MYSQL_PASSWORD environment variable not specifie... |
b4d3f68753a62faf64fecb9bb2aaa39ded57e174 | app/views/batches/_batches.html.erb | app/views/batches/_batches.html.erb | <% if @batches.length > 0 %>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Created</th>
<th>Total Contributions</th>
</tr>
</thead>
<tbody>
<% @batches.each do |batch| %>
<tr>
<td><%= link_to batch.title, batch... | <% if @batches.length > 0 %>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Created</th>
<th>Total Contributions</th>
</tr>
</thead>
<tbody>
<% @batches.each do |batch| %>
<tr>
<td><%= link_to batch.title, batch... | Update batches/_batches partial to reflect batch contributions change | Update batches/_batches partial to reflect batch contributions change
| HTML+ERB | mit | drueck/giving,drueck/giving | html+erb | ## Code Before:
<% if @batches.length > 0 %>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Created</th>
<th>Total Contributions</th>
</tr>
</thead>
<tbody>
<% @batches.each do |batch| %>
<tr>
<td><%= link_to ba... |
cfda6cfe0f916e43d7ccb973b0df6c4c72363f37 | appveyor.yml | appveyor.yml | build: false
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.10"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda
- PYTHON: "C:\\Python33"
PYTHON_VERSION: "3.3.5"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3... | build: false
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.11"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.0"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda36
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_AR... | Test only on 2.7.11 and 3.6.0 | Test only on 2.7.11 and 3.6.0
| YAML | bsd-3-clause | FrancoisRheaultUS/dipy,FrancoisRheaultUS/dipy | yaml | ## Code Before:
build: false
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.10"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda
- PYTHON: "C:\\Python33"
PYTHON_VERSION: "3.3.5"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3
- PYTHON: "C:\\Python34"
PY... |
17aaecf89dd3e9065d8b528a87ec97be511281f9 | idsBuild.sh | idsBuild.sh | echo Informing Slack...
curl -X 'POST' --silent --data-binary '{"text":"A new build for the player service has started."}' $WEBHOOK > /dev/null
mkdir dockercfg ; cd dockercfg
echo Downloading Docker requirements..
wget http://game-on.org:8081/dockerneeds.tar -q
echo Setting up Docker...
tar xzf dockerneeds.tar
cd ..
... | echo Informing Slack...
curl -X 'POST' --silent --data-binary '{"text":"A new build for the player service has started."}' $WEBHOOK > /dev/null
mkdir dockercfg ; cd dockercfg
echo Downloading Docker requirements..
wget --user=admin --password=$ADMIN_PASSWORD https://game-on.org/repository/dockerneeds.tar -q
echo Setti... | Access build requirements through proxy and use HTTP AUTH. | Access build requirements through proxy and use HTTP AUTH. | Shell | apache-2.0 | gameontext/gameon-parser,gameontext/gameon-player,gameontext/gameon-parser,gameontext/gameon-player,gameontext/gameon-mediator,gameontext/gameon-mediator,gameontext/gameon-parser,gameontext/gameon-mediator | shell | ## Code Before:
echo Informing Slack...
curl -X 'POST' --silent --data-binary '{"text":"A new build for the player service has started."}' $WEBHOOK > /dev/null
mkdir dockercfg ; cd dockercfg
echo Downloading Docker requirements..
wget http://game-on.org:8081/dockerneeds.tar -q
echo Setting up Docker...
tar xzf dockern... |
05de158f44e72207193c4fb86952a74b6ab3cebe | app/assets/javascripts/resolve/load_permalink.js.coffee | app/assets/javascripts/resolve/load_permalink.js.coffee | $ ->
$("*[data-umlaut-toggle-permalink]").click (event) ->
originalLink = $(this)
valueContainer = $("#umlaut-permalink-container")
loadedLink = $(".umlaut-permalink-content a")
url = loadedLink.attr("href")
if url == undefined
loadedLink = $("#umlaut-permalink-content")
url = loadedLink.attr("href")... | $ ->
$("*[data-umlaut-toggle-permalink]").click (event) ->
if $(".umlaut-permalink-container input").is(":visible")
$(".umlaut-permalink-container input").select()
permalinkLoaded = setInterval ->
if $(".umlaut-permalink-container a").is(":visible")
reformatPermalink(event)
clearInterval(permalinkLoa... | Fix permalink reformat to wait for link to load if its the first time the page opened | Fix permalink reformat to wait for link to load if its the first time the page opened
| CoffeeScript | mit | NYULibraries/getit,NYULibraries/getit,NYULibraries/getit,NYULibraries/getit | coffeescript | ## Code Before:
$ ->
$("*[data-umlaut-toggle-permalink]").click (event) ->
originalLink = $(this)
valueContainer = $("#umlaut-permalink-container")
loadedLink = $(".umlaut-permalink-content a")
url = loadedLink.attr("href")
if url == undefined
loadedLink = $("#umlaut-permalink-content")
url = loadedL... |
2ba932afefd135c0afe50dad3450049918bbcdf8 | app/assets/stylesheets/_app/_community/_application.sass | app/assets/stylesheets/_app/_community/_application.sass | @import '_partials/card_forum'
@import '_partials/forms'
@import '_partials/post'
@import '_partials/user'
.btn--plus
padding-left: 40px
position: relative
&:before
+font-size(35)
left: 15px
position: absolute
top: 4px
.dropdown__value
padding: 6px 40px 6px 10px
&:after
right: 10px
... | @import '_partials/card_forum'
@import '_partials/forms'
@import '_partials/post'
@import '_partials/user'
.btn--plus
padding-left: 40px
position: relative
&:before
+font-size(35)
left: 15px
position: absolute
top: 4px
.dropdown__value
padding: 6px 40px 6px 10px
&:after
right: 10px
... | Remove redundant thorn tree .copy--body override. | Remove redundant thorn tree .copy--body override.
| Sass | mit | lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo | sass | ## Code Before:
@import '_partials/card_forum'
@import '_partials/forms'
@import '_partials/post'
@import '_partials/user'
.btn--plus
padding-left: 40px
position: relative
&:before
+font-size(35)
left: 15px
position: absolute
top: 4px
.dropdown__value
padding: 6px 40px 6px 10px
&:after
... |
41647ab4cd56fc6d5ce58659f574186f293ca9f8 | bio/sources/uniprot/resources/uniprot-human_keys.properties | bio/sources/uniprot/resources/uniprot-human_keys.properties | Protein.key_md5=md5checksum, organism
Organism.key_taxonid=taxonId
Publication.key_pubmed=pubMedId
DataSet.key_name=name
DataSource.key_name=name
Gene.key_symbol=symbol, organism
OntologyTerm.key_name=name, ontology
Ontology.key_name=name
ProteinDomain.key_identifier=primaryIdentifier
| Protein.key_md5=md5checksum, organism
Organism.key_taxonid=taxonId
Publication.key_pubmed=pubMedId
DataSet.key_name=name
DataSource.key_name=name
Gene.key_symbol=symbol, organism
OntologyTerm.key_name=name, ontology
Ontology.key_name=name
ProteinDomain.key_identifier=primaryIdentifier
Sequence.key = md5checksum
| Add key for protein sequences to merge. | Add key for protein sequences to merge.
Former-commit-id: 9322b409d5cade6a26db62a0c30d31da81461ec6 | INI | lgpl-2.1 | julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine | ini | ## Code Before:
Protein.key_md5=md5checksum, organism
Organism.key_taxonid=taxonId
Publication.key_pubmed=pubMedId
DataSet.key_name=name
DataSource.key_name=name
Gene.key_symbol=symbol, organism
OntologyTerm.key_name=name, ontology
Ontology.key_name=name
ProteinDomain.key_identifier=primaryIdentifier
## Instruction:
A... |
45a48898129c0e487d4ba2230d97fffc1e94e078 | .travis.yml | .travis.yml | sudo: false
language: ruby
rvm:
- ree
- 1.9.3
- 2.5.1
notifications:
email: false
| sudo: false
language: ruby
rvm:
- ree
- 1.9.3
- 2.5.1
notifications:
email: false
before_install:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
| Use bundler < 2 for Travis CI | Use bundler < 2 for Travis CI
Otherwise it fails to work with this gem
Travis CI docs on this:
https://docs.travis-ci.com/user/languages/ruby/#bundler-20
| YAML | mit | bigcartel/bigcartel-theme-fonts | yaml | ## Code Before:
sudo: false
language: ruby
rvm:
- ree
- 1.9.3
- 2.5.1
notifications:
email: false
## Instruction:
Use bundler < 2 for Travis CI
Otherwise it fails to work with this gem
Travis CI docs on this:
https://docs.travis-ci.com/user/languages/ruby/#bundler-20
## Code After:
sudo: false
language: rub... |
23aae398b791db53e8f69ed53a078f983c575fb0 | .travis.yml | .travis.yml | language: php
matrix:
allow_failures:
- php: 5.4
- php: 5.5
- php: 5.6
- php: hhvm
- php: hhvm-nightly
- php: nightly
include:
- php: 5.3
dist: precise
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
dist: trusty
- php: 7.0
dist: ... | language: php
matrix:
allow_failures:
- php: 5.4
- php: 5.5
- php: 5.6
- php: hhvm
- php: hhvm-nightly
- php: nightly
include:
- php: 5.3
dist: precise
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
dist: trusty
- php: 7.0
dist: ... | Add PHP 8.0 to continuous integration tests | Add PHP 8.0 to continuous integration tests
| YAML | unlicense | zachborboa/php-curl-class,zachborboa/php-curl-class,php-curl-class/php-curl-class,php-curl-class/php-curl-class,php-curl-class/php-curl-class,zachborboa/php-curl-class | yaml | ## Code Before:
language: php
matrix:
allow_failures:
- php: 5.4
- php: 5.5
- php: 5.6
- php: hhvm
- php: hhvm-nightly
- php: nightly
include:
- php: 5.3
dist: precise
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
dist: trusty
- php: ... |
764b21e02d1f37ed451b3cafb96371cfb1e97b4b | app/views/questions/index.html.erb | app/views/questions/index.html.erb | <body>
<div id='all_questions'>
<p id='ui_title'>All Questions</p>
<% @questions.each do |question| %>
<div class='ind_ques'>
<div class="ind_ques_contents">
<p ><%= question.title %></p>
<p><%= question.content %></p>
<p> <img class='ui_avatar_question' src='<%= question.creator.avatar... | <body>
<div id='all_questions'>
<p id='ui_title'>All Questions</p>
<% @questions.each do |question| %>
<div class='ind_ques'>
<div class="ind_ques_contents">
<li><%= link_to "#{question.title}", question_path(question.id) %></li>
<li><%= question.content %></li>
<li> <img class='ui_avat... | Add links for user and question | Add links for user and question
| HTML+ERB | mit | kevalwell/StackOverflow,kevalwell/StackOverflow,kevalwell/StackOverflow | html+erb | ## Code Before:
<body>
<div id='all_questions'>
<p id='ui_title'>All Questions</p>
<% @questions.each do |question| %>
<div class='ind_ques'>
<div class="ind_ques_contents">
<p ><%= question.title %></p>
<p><%= question.content %></p>
<p> <img class='ui_avatar_question' src='<%= questio... |
c1e6d14ee6e4c46b92fa326c81e3644e4626cacf | doc/AboutUs.md | doc/AboutUs.md |
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
1. Team Leader
2. Documentation
#### Yi Hang
1. Code Quality
2. Integration
#### Rong Hua
1. Test
2. Intern
#### Charlton
1. Scheduling and ... |
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
1. Team Leader - In charge of overall project coordination.
2. Documentation - Ensures that project documentations are in order.
#### Yi Hang
1.... | Add responsibilities in About Us | Add responsibilities in About Us
| Markdown | mit | CS2103AUG2016-W11-C1/main | markdown | ## Code Before:
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
1. Team Leader
2. Documentation
#### Yi Hang
1. Code Quality
2. Integration
#### Rong Hua
1. Test
2. Intern
#### Charlton
1.... |
9e13c395c57629c592c8592dc6fd86403264c701 | .github/pull_request_template.md | .github/pull_request_template.md | ↖ First, change the base branch from "master" to "dev".
↑ Next, briefly describe your proposal in the title.
Fixes: #
Finally, tell us more about the change here, in the description.
/cc @primer/ds-core
| - [ ] First, change the base branch from "master" to "dev".
- [ ] Next, briefly describe your proposal in the title.
- [ ] Fixes: # (type an issue number after the # if applicable)
Finally, tell us more about the change here, in the description.
/cc @primer/ds-core
| Make a checklist out of the 3 sentences | Make a checklist out of the 3 sentences
Also fixed the naming of the `Fixes: #` with the help of @shawnbot.
| Markdown | mit | primer/primer,primer/primer-css,primer/primer-css,primer/primer-css,primer/primer,primer/primer | markdown | ## Code Before:
↖ First, change the base branch from "master" to "dev".
↑ Next, briefly describe your proposal in the title.
Fixes: #
Finally, tell us more about the change here, in the description.
/cc @primer/ds-core
## Instruction:
Make a checklist out of the 3 sentences
Also fixed the naming of the `Fixes: #... |
58e4a92835061216155926cf1dcf43a20142181f | upload/library/SV/WordCountSearch/XenForo/DataWriter/DiscussionMessage/Post.php | upload/library/SV/WordCountSearch/XenForo/DataWriter/DiscussionMessage/Post.php | <?php
class SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post extends XFCP_SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post
{
protected function _getFields()
{
$fields = parent::_getFields();
$fields['xf_post_words'] = array
(
'post_id' => array('type'... | <?php
class SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post extends XFCP_SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post
{
protected function _getFields()
{
$fields = parent::_getFields();
$fields['xf_post_words'] = array
(
'post_id' => array('type'... | Handle updates/deletes of linked tables correctly | Handle updates/deletes of linked tables correctly
| PHP | mit | Xon/XenForo-WordCountSearch | php | ## Code Before:
<?php
class SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post extends XFCP_SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post
{
protected function _getFields()
{
$fields = parent::_getFields();
$fields['xf_post_words'] = array
(
'post_id'... |
c7030e461026e718c46b86dadecc9681d226c27c | cupy/util.py | cupy/util.py | import atexit
import functools
from cupy import cuda
_memoized_funcs = []
def memoize(for_each_device=False):
"""Makes a function memoizing the result for each argument and device.
This decorator provides automatic memoization of the function result.
Args:
for_each_device (bool): If True, it ... | import atexit
import functools
from cupy import cuda
_memos = []
def memoize(for_each_device=False):
"""Makes a function memoizing the result for each argument and device.
This decorator provides automatic memoization of the function result.
Args:
for_each_device (bool): If True, it memoizes ... | Fix unintended late finalization of memoized functions | Fix unintended late finalization of memoized functions
| Python | mit | ktnyt/chainer,niboshi/chainer,niboshi/chainer,laysakura/chainer,tscohen/chainer,benob/chainer,chainer/chainer,cupy/cupy,aonotas/chainer,cupy/cupy,jnishi/chainer,cupy/cupy,tkerola/chainer,cemoody/chainer,ktnyt/chainer,chainer/chainer,jnishi/chainer,jnishi/chainer,keisuke-umezawa/chainer,truongdq/chainer,kashif/chainer,w... | python | ## Code Before:
import atexit
import functools
from cupy import cuda
_memoized_funcs = []
def memoize(for_each_device=False):
"""Makes a function memoizing the result for each argument and device.
This decorator provides automatic memoization of the function result.
Args:
for_each_device (boo... |
a87a0f30d6325705f200c2137dbb2d5a9b0222b9 | pkg/term/tc_linux_cgo.go | pkg/term/tc_linux_cgo.go | // +build linux,cgo
package term
import (
"syscall"
"unsafe"
)
// #include <termios.h>
import "C"
type Termios syscall.Termios
// MakeRaw put the terminal connected to the given file descriptor into raw
// mode and returns the previous state of the terminal so that it can be
// restored.
func MakeRaw(fd uintptr)... | // +build linux,cgo
package term
import (
"syscall"
"unsafe"
)
// #include <termios.h>
import "C"
type Termios syscall.Termios
// MakeRaw put the terminal connected to the given file descriptor into raw
// mode and returns the previous state of the terminal so that it can be
// restored.
func MakeRaw(fd uintptr)... | Fix weird terminal output format | Fix weird terminal output format
Signed-off-by: Lei Jitang <9ac444d2b5df3db1f31aa1c6462ac8e9e2bde241@huawei.com>
| Go | apache-2.0 | moby/term | go | ## Code Before:
// +build linux,cgo
package term
import (
"syscall"
"unsafe"
)
// #include <termios.h>
import "C"
type Termios syscall.Termios
// MakeRaw put the terminal connected to the given file descriptor into raw
// mode and returns the previous state of the terminal so that it can be
// restored.
func Mak... |
ad931adc08eec181ea2e6af6ab6b067acec10e3f | render_script/main.js | render_script/main.js | function RenderClass(element) {
var _private = this;
_private.el = null;
this.update = function (data) {
if (_private.el === null) { return; }
for (var container of data) {
newLine = document.getElementById('template').cloneNode(true);
newLine.innerHTML = newLine.innerHTML
.repla... | function RenderClass(element) {
var _private = this;
_private.el = null;
this.update = function (data) {
if (_private.el === null) { return; }
for (var container of data) {
var isChecked = (container.state === 'Up')
var newLine = document.getElementById('template').cloneNode(true);
va... | Fix bind of the switches and increase perf with the DOM | Fix bind of the switches and increase perf with the DOM
| JavaScript | mit | FlorianDewulf/docker-containers-manager,FlorianDewulf/docker-containers-manager | javascript | ## Code Before:
function RenderClass(element) {
var _private = this;
_private.el = null;
this.update = function (data) {
if (_private.el === null) { return; }
for (var container of data) {
newLine = document.getElementById('template').cloneNode(true);
newLine.innerHTML = newLine.innerHTML
... |
221c6bcc31147ad23ff856ebc3a58f07a59d7966 | spec/arethusa.core/key_capture_spec.js | spec/arethusa.core/key_capture_spec.js | "use strict";
describe('keyCapture', function() {
beforeEach(module('arethusa.core'));
describe('isCtrlActive', function() {
it('return false before any event', inject(function(keyCapture) {
expect(keyCapture.isCtrlActive()).toBe(false);
}));
it('return true if keydown for ctrl was received', i... | "use strict";
describe('keyCapture', function() {
beforeEach(module('arethusa.core'));
describe('onKeyPressed', function() {
it('calls the given callback', inject(function(keyCapture) {
var event = {
keyCode: 27,
target: { tagname: '' }
};
var callbackCalled = false;
va... | Remove obsolete specs for keyCapture service | Remove obsolete specs for keyCapture service
| JavaScript | mit | PonteIneptique/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa | javascript | ## Code Before:
"use strict";
describe('keyCapture', function() {
beforeEach(module('arethusa.core'));
describe('isCtrlActive', function() {
it('return false before any event', inject(function(keyCapture) {
expect(keyCapture.isCtrlActive()).toBe(false);
}));
it('return true if keydown for ctrl ... |
0d8582c7952856e50e0389086d89d35f155674de | .github/workflows/check-cppcheck-llpc.yml | .github/workflows/check-cppcheck-llpc.yml | name: Static code check
on:
pull_request:
jobs:
cppcheck:
name: cppcheck
runs-on: "ubuntu-20.04"
steps:
- name: Setup environment
run: |
sudo apt-get install -yqq cppcheck
- name: Checkout LLPC
run: |
git clone https://github.com/${GITHUB_REPOSITORY}.git... | name: Static code check
on:
pull_request:
jobs:
cppcheck:
name: cppcheck
runs-on: "ubuntu-20.04"
steps:
- name: Setup environment
run: |
sudo apt-get install -yqq cppcheck
- name: Checkout LLPC
run: |
git clone https://github.com/${GITHUB_REPOSITORY}.git... | Enable inline suppressions for cppcheck | [CI] Enable inline suppressions for cppcheck
With this flags, it's possible to suppress false positives directly in the source code, e.g.:
```
// cppcheck-suppress syntaxError
TEST(InputUtilsTests, PlaceholderPass) {
```
Required for https://github.com/GPUOpen-Drivers/llpc/pull/1372.
| YAML | mit | GPUOpen-Drivers/llpc,GPUOpen-Drivers/llpc,GPUOpen-Drivers/llpc,GPUOpen-Drivers/llpc,GPUOpen-Drivers/llpc | yaml | ## Code Before:
name: Static code check
on:
pull_request:
jobs:
cppcheck:
name: cppcheck
runs-on: "ubuntu-20.04"
steps:
- name: Setup environment
run: |
sudo apt-get install -yqq cppcheck
- name: Checkout LLPC
run: |
git clone https://github.com/${GITHUB... |
82e65db8147241fb997b5890d6d0778bd69cb633 | dist/vellum/_lists.scss | dist/vellum/_lists.scss | // Lists
// -----
//
// We default to unstyled lists because they seem to be a more common usecase.
// Use the extensions to re-add the defaults back in.
ul,
ol {
margin: 0;
padding: 0;
list-style-type: none;
}
// Use this extension to turn default styling for unordered lists back on
%default-ul {
lis... | // Lists
// -----
//
// We default to unstyled lists because they seem to be a more common usecase.
// Use the extensions to re-add the defaults back in.
ul,
ol {
margin: 0;
padding: 0;
list-style-type: none;
}
// Use this extension to turn default styling for unordered lists back on
%bullet-list {
li... | Rename extends which bring back standard list styles | Rename extends which bring back standard list styles
| SCSS | mit | mobify/vellum,mobify/vellum | scss | ## Code Before:
// Lists
// -----
//
// We default to unstyled lists because they seem to be a more common usecase.
// Use the extensions to re-add the defaults back in.
ul,
ol {
margin: 0;
padding: 0;
list-style-type: none;
}
// Use this extension to turn default styling for unordered lists back on
%defa... |
8bcdb52f3f2cf70a95829eed5c1b33fc329187b1 | .travis.yml | .travis.yml | language: ruby
script: "bundle exec rspec"
rvm:
- 2.2.3
before_install: gem install bundler -v 1.10.6
gemfile:
- Gemfile
notifications:
email: false
| language: ruby
script: "bundle exec rspec"
rvm:
- 2.3.0
- 2.2.3
before_install: gem install bundler -v 1.10.6
gemfile:
- Gemfile
notifications:
email: false
| Add Ruby 2.3.0 for CI | Add Ruby 2.3.0 for CI
| YAML | mit | bsodmike/easy_mailchimp,bsodmike/easy_mailchimp | yaml | ## Code Before:
language: ruby
script: "bundle exec rspec"
rvm:
- 2.2.3
before_install: gem install bundler -v 1.10.6
gemfile:
- Gemfile
notifications:
email: false
## Instruction:
Add Ruby 2.3.0 for CI
## Code After:
language: ruby
script: "bundle exec rspec"
rvm:
- 2.3.0
- 2.2.3
before_install: gem instal... |
8a35aa3f86a75348c31799a4939429a3f924392d | tasks/bnd-ext.rake | tasks/bnd-ext.rake | require 'buildr'
# Helper methods for building bundles using buildr-bnd.
class Buildr::Project
def java_packages
@java_packages ||= Dir[ File.join( _(:source, :main, :java), "**/*.java" ) ].collect { |f|
File.read(f).scan(/package\s+(\S+);/).flatten.first
}.compact.uniq
end
def bnd_export_package... | require 'buildr'
# Helper methods for building bundles using buildr-bnd.
class Buildr::Project
def java_packages
@java_packages ||= Dir[ File.join( _(:source, :main, :java), "**/*.java" ) ].collect { |f|
File.read(f).scan(/package\s+(\S+);/).flatten.first
}.compact.uniq
end
def bnd_export_package... | Use a more sensible mechanism to determine whether to bundle resources. | Use a more sensible mechanism to determine whether to bundle resources.
(The previous one only worked by accident.)
SVN-Revision: 343
| Ruby | bsd-3-clause | NCIP/ctms-commons,NCIP/ctms-commons,NCIP/ctms-commons,NCIP/ctms-commons | ruby | ## Code Before:
require 'buildr'
# Helper methods for building bundles using buildr-bnd.
class Buildr::Project
def java_packages
@java_packages ||= Dir[ File.join( _(:source, :main, :java), "**/*.java" ) ].collect { |f|
File.read(f).scan(/package\s+(\S+);/).flatten.first
}.compact.uniq
end
def bn... |
22243b70c2b27cef78cf38d5f3bd9dc420e21ba3 | yard_extensions.rb | yard_extensions.rb | require 'pp'
class MyModuleHandler < YARD::Handlers::Ruby::Base
handles method_call(:property)
def process
name = statement.parameters.first.jump(:tstring_content, :ident).source
object = YARD::CodeObjects::MethodObject.new(namespace, name)
register(object)
# modify the object
object.dynami... |
class MyModuleHandler < YARD::Handlers::Ruby::Base
handles method_call(:property)
def process
name = statement.parameters.first.jump(:tstring_content, :ident).source
object = YARD::CodeObjects::MethodObject.new(namespace, name)
register(object)
# modify the object
object.dynamic = true
ob... | Remove white space remove require 'pp' | Remove white space remove require 'pp'
| Ruby | mit | rapid7/convection,rapid7/convection | ruby | ## Code Before:
require 'pp'
class MyModuleHandler < YARD::Handlers::Ruby::Base
handles method_call(:property)
def process
name = statement.parameters.first.jump(:tstring_content, :ident).source
object = YARD::CodeObjects::MethodObject.new(namespace, name)
register(object)
# modify the object
... |
5a60adf7298781972388a6743a6a0fcd74c2821f | Resources/translations/validators.es.yml | Resources/translations/validators.es.yml | fos_user:
username:
already_used: El nombre de usuario ya está en uso
blank: Por favor, ingrese un nombre de usuario
short: "[-Inf,Inf]El nombre de usuario es demasiado corto"
long: "[-Inf,Inf]El nombre de usuario es demasiado largo"
email:
already_used: La dirección de c... | fos_user:
username:
already_used: El nombre de usuario ya está en uso
blank: Por favor, ingrese un nombre de usuario
short: "[-Inf,Inf]El nombre de usuario es demasiado corto"
long: "[-Inf,Inf]El nombre de usuario es demasiado largo"
email:
already_used: La dirección de c... | Revert "Added Integrity constraint violation for group name" | Revert "Added Integrity constraint violation for group name"
This reverts commit 4cb6a565115e084fe2a7d9cbb9bfabbf2de057ac.
| YAML | mit | XWB/FOSUserBundle,XWB/FOSUserBundle,FriendsOfSymfony/FOSUserBundle | yaml | ## Code Before:
fos_user:
username:
already_used: El nombre de usuario ya está en uso
blank: Por favor, ingrese un nombre de usuario
short: "[-Inf,Inf]El nombre de usuario es demasiado corto"
long: "[-Inf,Inf]El nombre de usuario es demasiado largo"
email:
already_used: L... |
e6ebfd125152fd052311e64a793adffb0e31438e | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | [Read our guide on bug reports here](./ISSUES_GUIDE.md)
**Actual Behaviour**
Explain what is currently happening.
**Expected Behaviour**
Explain what you expected (unnecessary if it's obviouxly broken, e.g. a crash).
**Would you like to work on the issue?**
Let us know if this issue should be assigned to you.
| **Note**: This repository is for the 2014-era Zulip Android app; you
probably are you using
[zulip-mobile](https://github.com/zulip/zulip-mobile) and want to
[report an issue here](https://github.com/zulip/zulip-mobile/issues).
| Rewrite issue template to discourage confused posts. | docs: Rewrite issue template to discourage confused posts.
| Markdown | apache-2.0 | zulip/zulip-android | markdown | ## Code Before:
[Read our guide on bug reports here](./ISSUES_GUIDE.md)
**Actual Behaviour**
Explain what is currently happening.
**Expected Behaviour**
Explain what you expected (unnecessary if it's obviouxly broken, e.g. a crash).
**Would you like to work on the issue?**
Let us know if this issue should be assi... |
9c7118524c7194b9a343f43306895cb7f90873bc | requirements.txt | requirements.txt | hgtools==6.3
keyring==5.3
astropy-helpers==1.0.2
astroquery==0.2.4
sncosmo==1.0.0
pydl==0.3.0
montage-wrapper==0.9.8
ccdproc==0.3.1
wcsaxes==0.3
gammapy==0.2
pyvo==0.0beta2
photutils==0.1
spherical-geometry==1.0.4
APLpy==1.0
specutils==0.1
imexam==0.5
gwcs==0.1.dev44
pyregion==1.1.4
astroML==0.2
ginga==2.3.201505170138... | hgtools==6.3
keyring==5.3
beautifulsoup4==4.3.2
astropy-helpers==1.0.2
astroquery==0.2.4
sncosmo==1.0.0
pydl==0.3.0
montage-wrapper==0.9.8
ccdproc==0.3.1
wcsaxes==0.3
gammapy==0.2
pyvo==0.0beta2
photutils==0.1
spherical-geometry==1.0.4
APLpy==1.0
specutils==0.1
imexam==0.5
gwcs==0.1.dev44
pyregion==1.1.4
astroML==0.2
g... | Add beautifulsoup4 with its PyPI name to the build list | Add beautifulsoup4 with its PyPI name to the build list
| Text | bsd-3-clause | Cadair/conda-builder-affiliated,astropy/conda-build-tools,Cadair/conda-builder-affiliated,astropy/conda-build-tools,kbarbary/conda-builder-affiliated,astropy/conda-builder-affiliated,zblz/conda-builder-affiliated,bmorris3/conda-builder-affiliated,cdeil/conda-builder-affiliated,cdeil/conda-builder-affiliated,bmorris3/co... | text | ## Code Before:
hgtools==6.3
keyring==5.3
astropy-helpers==1.0.2
astroquery==0.2.4
sncosmo==1.0.0
pydl==0.3.0
montage-wrapper==0.9.8
ccdproc==0.3.1
wcsaxes==0.3
gammapy==0.2
pyvo==0.0beta2
photutils==0.1
spherical-geometry==1.0.4
APLpy==1.0
specutils==0.1
imexam==0.5
gwcs==0.1.dev44
pyregion==1.1.4
astroML==0.2
ginga==... |
36581a6dc0d8e8acfbbf0d34be7b94bf2bd7e7c1 | src/console/DatabaseResetCommand.ts | src/console/DatabaseResetCommand.ts | import { Logger } from '../core/Logger';
import * as Knex from 'knex';
import { AbstractCommand } from './lib/AbstractCommand';
import * as options from './../../knexfile';
const log = new Logger(__filename);
/**
* DatabaseResetCommand rollback all current migrations and
* then migrate to the latest one.
*
* @e... | import { Logger } from '../core/Logger';
import * as Knex from 'knex';
import { AbstractCommand } from './lib/AbstractCommand';
import * as options from './../../knexfile';
const log = new Logger(__filename);
/**
* DatabaseResetCommand rollback all current migrations and
* then migrate to the latest one.
*
* @e... | Add type to reset database command | Add type to reset database command
| TypeScript | mit | w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate | typescript | ## Code Before:
import { Logger } from '../core/Logger';
import * as Knex from 'knex';
import { AbstractCommand } from './lib/AbstractCommand';
import * as options from './../../knexfile';
const log = new Logger(__filename);
/**
* DatabaseResetCommand rollback all current migrations and
* then migrate to the late... |
210370997a9ae3f0a30d3cbccf3ec017e181db71 | autogen.sh | autogen.sh |
aclocal && \
libtoolize --automake --force && \
automake --foreign --add-missing --force && \
autoconf --force
|
aclocal && \
${LIBTOOLIZE:-libtoolize} --automake --force && \
automake --foreign --add-missing --force && \
autoconf --force
| Allow libtoolize to be specified via environment variable | Allow libtoolize to be specified via environment variable
On OS X, libtoolize is known as glibtoolize. Allow this to be
specified via an environment variable so that autogen.sh need
not be modified to build.
Signed-off-by: Jay Soffian <eccf10a4397cf08f0034a6cb5e4457bdd5e3783e@gmail.com>
Signed-off-by: David Woodhouse... | Shell | lgpl-2.1 | neshema/openconnect,chadcatlett/openconnect,mtmiller/openconnect,brandt/openconnect,don-johnny/openconnect,don-johnny/openconnect,mveplus/openconnect-client,mveplus/openconnect-client,lins05/openconnect,matlockx/openconnect,nmav/openconnect-mine,nmav/openconnect-mine,atyndall/openconnect,atyndall/openconnect,mtmiller/o... | shell | ## Code Before:
aclocal && \
libtoolize --automake --force && \
automake --foreign --add-missing --force && \
autoconf --force
## Instruction:
Allow libtoolize to be specified via environment variable
On OS X, libtoolize is known as glibtoolize. Allow this to be
specified via ... |
fc93261c1551b09932f8e24a705698a416d0e63d | test/Driver/linker-args-order-linux.swift | test/Driver/linker-args-order-linux.swift | // Statically link a "hello world" program
// REQUIRES: OS=linux-gnu
// REQUIRES: static_stdlib
print("hello world!")
// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -v -static-stdlib -o %t/static-stdlib %s -Xlinker --no-allow-multiple-definition 2>&1| %FileCheck %s
// CHECK: Swift version
// CHECK: Target: ... | // Statically link a "hello world" program
// REQUIRES: static_stdlib
print("hello world!")
// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -driver-print-jobs -static-stdlib -o %t/static-stdlib %s -Xlinker --no-allow-multiple-definition 2>&1| %FileCheck %s
// CHECK: {{.*}}/swift -frontend -c -primary-file {{... | Update the linker -Xlinker argument reordering test. | Update the linker -Xlinker argument reordering test.
- Use -driver-print-jobs to avoid actually building the test file.
| Swift | apache-2.0 | apple/swift,zisko/swift,nathawes/swift,atrick/swift,rudkx/swift,harlanhaskins/swift,milseman/swift,milseman/swift,milseman/swift,ahoppen/swift,roambotics/swift,danielmartin/swift,austinzheng/swift,hooman/swift,devincoughlin/swift,stephentyrone/swift,glessard/swift,danielmartin/swift,alblue/swift,brentdax/swift,tkremene... | swift | ## Code Before:
// Statically link a "hello world" program
// REQUIRES: OS=linux-gnu
// REQUIRES: static_stdlib
print("hello world!")
// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -v -static-stdlib -o %t/static-stdlib %s -Xlinker --no-allow-multiple-definition 2>&1| %FileCheck %s
// CHECK: Swift version
//... |
2546e8b169378c698fc81b20030a899693a27363 | lib/podio/areas/oauth_client.rb | lib/podio/areas/oauth_client.rb | module Podio
module OAuthClient
include Podio::ResponseWrapper
extend self
def update(id, attributes)
response = Podio.connection.put do |req|
req.url "/oauth/client/#{id}"
req.body = attributes
end
response.status
end
def delete(id)
response = Podio.conn... | module Podio
module OAuthClient
include Podio::ResponseWrapper
extend self
def update(id, attributes)
puts attributes
response = Podio.connection.put do |req|
req.url "/oauth/client/#{id}"
req.body = attributes
end
response.status
end
def delete(id... | Fix bad syntax for oauth client | Fix bad syntax for oauth client
| Ruby | mit | podio/podio-rb,cocktail-io/podio-rb,jutonz/podio-rb,pjmuller/podio-rb | ruby | ## Code Before:
module Podio
module OAuthClient
include Podio::ResponseWrapper
extend self
def update(id, attributes)
response = Podio.connection.put do |req|
req.url "/oauth/client/#{id}"
req.body = attributes
end
response.status
end
def delete(id)
respo... |
2376316b36f4d6bdbdb82bea519b6296763bb2f2 | MORK/ORKTaskResult+MORK.h | MORK/ORKTaskResult+MORK.h | //
// ORKCollectionResult+MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import "ORKResult.h"
@interface ORKTaskResult (MORK)
@property (readonly) NSArray *mork_fieldDataFromResults;
@end
| //
// ORKCollectionResult+MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import "ORKResult.h"
@interface ORKTaskResult (MORK)
- (NSArray *)mork_getFieldDataFromResults;
@end
| Put method declaration back into category header | Put method declaration back into category header
| C | mit | mdsol/MORK,mdsol/MORK | c | ## Code Before:
//
// ORKCollectionResult+MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import "ORKResult.h"
@interface ORKTaskResult (MORK)
@property (readonly) NSArray *mork_fieldDataFromResults;
@end
## Instruction:
Put method decl... |
45b38fc0ba8c2d64fb6ac869c0cc6438d865439f | responsive-design-lab/app/styles/main.css | responsive-design-lab/app/styles/main.css | /* main.css */
/* Add Pregressive Enhancement CSS if Flexbox not supported */
.no-flexbox .container {
background: #eee;
overflow: auto;
}
.no-flexbox .container .col {
width: 27%;
padding: 30px 3.15% 0;
float: left;
}
@media screen and (max-width: 48rem) {
.no-flexbox .container .col {
width:... | /* main.css */
/* Add Pregressive Enhancement CSS if Flexbox not supported */
.no-flexbox .container {
background: #eee;
overflow: auto;
}
.no-flexbox .container .col {
width: 27%;
padding: 30px 3.15% 0;
float: left;
}
@media screen and (max-width: 48rem) {
.no-flexbox .container .col {
width:... | Add Pregressive Enhancement CSS if Flexbox is supported | Add Pregressive Enhancement CSS if Flexbox is supported
| CSS | apache-2.0 | verioussmith/pwa-training-labs,verioussmith/pwa-training-labs | css | ## Code Before:
/* main.css */
/* Add Pregressive Enhancement CSS if Flexbox not supported */
.no-flexbox .container {
background: #eee;
overflow: auto;
}
.no-flexbox .container .col {
width: 27%;
padding: 30px 3.15% 0;
float: left;
}
@media screen and (max-width: 48rem) {
.no-flexbox .container .... |
0fa19ad5a0a79c76dbb8deb674bb5cbfc86d5c8c | Scripts/script-SplunkSearch.yml | Scripts/script-SplunkSearch.yml | commonfields:
id: SplunkSearch
version: 1
name: SplunkSearch
script: |-
var rows = args.rows ? args.rows : 30;
var query = (args.query.indexOf('|') > 0) ? args.query : args.query + ' | head ' + rows;
var res = executeCommand('search', {'using-brand': 'splunk', query: query});
var table = {
Type: 1,
... | commonfields:
id: SplunkSearch
version: 1
name: SplunkSearch
script: |-
var rows = args.rows ? args.rows : 30;
var query = (args.query.indexOf('|') > 0) ? args.query : args.query + ' | head ' + rows;
var res = executeCommand('search', {'using-brand': 'splunk', query: query});
var table = {
Type: 1,
... | Change SplunkSearch response when no results | Change SplunkSearch response when no results
| YAML | mit | VirusTotal/content,demisto/content,VirusTotal/content,demisto/content,VirusTotal/content,demisto/content,VirusTotal/content,demisto/content | yaml | ## Code Before:
commonfields:
id: SplunkSearch
version: 1
name: SplunkSearch
script: |-
var rows = args.rows ? args.rows : 30;
var query = (args.query.indexOf('|') > 0) ? args.query : args.query + ' | head ' + rows;
var res = executeCommand('search', {'using-brand': 'splunk', query: query});
var table = {
... |
5ba8294d890feef82af4aa01caaeaf648cfa5bab | contributor_docs/navbar.md | contributor_docs/navbar.md | <!-- _navbar.md -->
* [En](/)
* [Es](/es/)
* [Pt-Br](/pt-br/)
| <!-- _navbar.md -->
* [En](/)
* [Es](/es/)
* [Pt-Br](/pt-br/)
* [Ko](/ko/)
* [Sk](/sk/)
* [Zh](/zh/)
* [Hi](/hi/)
| Add links to new translations contrib-docs | Add links to new translations contrib-docs | Markdown | lgpl-2.1 | limzykenneth/p5.js,limzykenneth/p5.js,mlarghydracept/p5.js,processing/p5.js,processing/p5.js,dhowe/p5.js,mlarghydracept/p5.js,dhowe/p5.js | markdown | ## Code Before:
<!-- _navbar.md -->
* [En](/)
* [Es](/es/)
* [Pt-Br](/pt-br/)
## Instruction:
Add links to new translations contrib-docs
## Code After:
<!-- _navbar.md -->
* [En](/)
* [Es](/es/)
* [Pt-Br](/pt-br/)
* [Ko](/ko/)
* [Sk](/sk/)
* [Zh](/zh/)
* [Hi](/hi/)
|
06d8408172e37a2e951f7d6251c04ea95c721eab | .travis.yml | .travis.yml | language: objective-c
cache: cocoapods
#before_install:
#- pod repo --silent update
xcode_workspace: Swindler.xcworkspace
xcode_scheme: Swindler
script: xcodebuild -workspace Swindler.xcworkspace -scheme Swindler build test
| language: objective-c
cache: cocoapods
install: pod install || pod install --repo-update
xcode_workspace: Swindler.xcworkspace
xcode_scheme: Swindler
script: xcodebuild -workspace Swindler.xcworkspace -scheme Swindler build test
| Update repo if initial pod install fails | Travis: Update repo if initial pod install fails
| YAML | mit | tmandry/Swindler,tmandry/Swindler,tmandry/Swindler | yaml | ## Code Before:
language: objective-c
cache: cocoapods
#before_install:
#- pod repo --silent update
xcode_workspace: Swindler.xcworkspace
xcode_scheme: Swindler
script: xcodebuild -workspace Swindler.xcworkspace -scheme Swindler build test
## Instruction:
Travis: Update repo if initial pod install fails
## Code Aft... |
91beee19bd8fa5d0f9d1f3179847a44caa72b63f | composer.json | composer.json | {
"authors": [
{
"name": "Khalifah Shabazz",
"homepage": "http://www.kshabazz.net",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Kshabazz\\BattleNet\\D3\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Kshabazz\\Tests\\BattleNet\\D3\\": "tests/D3/"
}
},
"description": "A PHP library... | {
"authors": [
{
"name": "Khalifah Shabazz",
"homepage": "http://www.kshabazz.net",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Kshabazz\\BattleNet\\D3\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Kshabazz\\Tests\\BattleNet\\D3\\": "tests/D3/"
}
},
"description": "A PHP library... | Add Sphpdox library for converting docblocks to documentation. | Add Sphpdox library for converting docblocks to documentation.
| JSON | mit | b01/d3 | json | ## Code Before:
{
"authors": [
{
"name": "Khalifah Shabazz",
"homepage": "http://www.kshabazz.net",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Kshabazz\\BattleNet\\D3\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Kshabazz\\Tests\\BattleNet\\D3\\": "tests/D3/"
}
},
"description"... |
355c678409152d4d039956b483d5f33ab5a91b1e | app/views/news/list.html.erb | app/views/news/list.html.erb | <div class="section">
<% @news.each do |n| %>
<div class="section-wrap" id="news-<%= n.id %>">
<div class="section-item">
<div class="section-title">
[<%= n.created_at.strftime("%Y-%m-%d") %>]
<%= n.title %>
</div>
<div class="section-content">
<%= n.content %>
</div>
... | <div class="section">
<% @news.each do |n| %>
<div class="section-wrap" id="news-<%= n.id %>">
<div class="section-item">
<div class="section-title">
[<%= n.created_at.strftime("%Y-%m-%d") %>]
<%= n.title %>
</div>
<div class="section-content">
<%= n.content %>
</div>
... | Use normal link to rss | Use normal link to rss
| HTML+ERB | mit | crispgm/rugby-board,crispgm/rugby-board,crispgm/rugby-board | html+erb | ## Code Before:
<div class="section">
<% @news.each do |n| %>
<div class="section-wrap" id="news-<%= n.id %>">
<div class="section-item">
<div class="section-title">
[<%= n.created_at.strftime("%Y-%m-%d") %>]
<%= n.title %>
</div>
<div class="section-content">
<%= n.content %... |
041e6bf2579b964e57f3b0a80dc56d2aa9fb8d80 | src/routes/file.ts | src/routes/file.ts | import * as fs from 'fs';
import {ReadStream} from 'fs';
export default {
test: (uri: string): boolean => /^\.|^\//.test(uri) || /^[a-zA-Z]:\\[\\\S|*\S]?.*$/g.test(uri),
read: (path: string): Promise<ReadStream> => {
return new Promise((resolve, reject) => {
let readStream = null;
try {
readStream = fs... | import * as fs from 'fs';
import {ReadStream} from 'fs';
export default {
test: (uri: string): boolean => {
if (process.platform === 'win32') {
return /^[a-zA-Z]:\\[\\\S|*\S]?.*$/g.test(uri);
}
return /^\.|^\//.test(uri)
},
read: (path: string): Promise<ReadStream> => {
return new Promise((resolve, rej... | Add path check for windows | Add path check for windows
| TypeScript | mit | kicumkicum/stupid-player,kicumkicum/stupid-player | typescript | ## Code Before:
import * as fs from 'fs';
import {ReadStream} from 'fs';
export default {
test: (uri: string): boolean => /^\.|^\//.test(uri) || /^[a-zA-Z]:\\[\\\S|*\S]?.*$/g.test(uri),
read: (path: string): Promise<ReadStream> => {
return new Promise((resolve, reject) => {
let readStream = null;
try {
... |
ff163bfb68caf00240a345426be033e86b60da92 | app/users/users.service.js | app/users/users.service.js | {
class UsersService {
create(user) {
console.log('CREATED!');
console.log(user);
}
}
angular.module('meganote.users')
.service('UsersService', UsersService);
}
| {
angular.module('meganote.users')
.service('UsersService', [
'$http',
'API_BASE',
($http, API_BASE) => {
class UsersService {
create(user) {
return $http.post(`${API_BASE}users`, {
user,
})
.then(
res => {
... | Make a POST request to create a user. | Make a POST request to create a user.
| JavaScript | mit | xternbootcamp16/meganote,xternbootcamp16/meganote | javascript | ## Code Before:
{
class UsersService {
create(user) {
console.log('CREATED!');
console.log(user);
}
}
angular.module('meganote.users')
.service('UsersService', UsersService);
}
## Instruction:
Make a POST request to create a user.
## Code After:
{
angular.module('meganote.users')
... |
129ac478286f506543644b288ddffb9dddb2dc0e | src/js/background.js | src/js/background.js |
// Update tick
function update() {
setTimeout(update, REFRESH_AMOUNT * 1000);
Twitch.getStatus(function(err, status) {
if (!status.authenticated) {
Twitch.login({
popup: true,
scope: ['user_read'],
redirect_uri: chrome.extension.getURL('veri... |
// Variables
var authenticated = false;
var streamersCount = 0;
// Update popup window and icon
function updateStatus() {
var popup = "";
var img = 'icon-19-off';
if(authenticated) {
if(streamersCount > 5){
img = 'icon-19-on';
} else {
img = 'icon-19-' + streamers... | Update popup window / icon | Update popup window / icon
| JavaScript | apache-2.0 | TechGuard/StreamAlert,TechGuard/StreamAlert,TechGuard/TwitchNotify,TechGuard/TwitchNotify | javascript | ## Code Before:
// Update tick
function update() {
setTimeout(update, REFRESH_AMOUNT * 1000);
Twitch.getStatus(function(err, status) {
if (!status.authenticated) {
Twitch.login({
popup: true,
scope: ['user_read'],
redirect_uri: chrome.extens... |
02f1f500e29927a811c37a2bcc99bc545c1f08d5 | README.md | README.md |
A [Polymer](http://polymer-project.org) element for querying results from the [Strava API](http://strava.github.io/api/)
> Maintained by [Brent Vatne](https://github.com/brentvatne).
## Install
Using [Bower](http://bower.io), run:
```bash
$ bower install --save strava-card
```
## Usage
1. Import Web Components' ... |
A [Polymer](http://polymer-project.org) element for querying results from the [Strava API](http://strava.github.io/api/)
> Maintained by [Brent Vatne](https://github.com/brentvatne).
## Install
Using [Bower](http://bower.io), run:
```bash
$ bower install --save strava-card
```
## Demo
> [See it in action](http:/... | Add link to demo page | Add link to demo page
| Markdown | mit | brentvatne/strava-card | markdown | ## Code Before:
A [Polymer](http://polymer-project.org) element for querying results from the [Strava API](http://strava.github.io/api/)
> Maintained by [Brent Vatne](https://github.com/brentvatne).
## Install
Using [Bower](http://bower.io), run:
```bash
$ bower install --save strava-card
```
## Usage
1. Import ... |
21d5bc00a373c25dcaa0645e60ea38cb3e9b5a59 | src/main/java/com/ezardlabs/dethsquare/multiplayer/NetworkAnimator.java | src/main/java/com/ezardlabs/dethsquare/multiplayer/NetworkAnimator.java | package com.ezardlabs.dethsquare.multiplayer;
import java.nio.ByteBuffer;
public class NetworkAnimator extends NetworkBehaviour {
@Override
public void start() {
super.start();
assert gameObject.animator != null;
gameObject.animator.shouldUpdate = getPlayerId() == Network.getPlayerId();
}
@Override
prote... | package com.ezardlabs.dethsquare.multiplayer;
import java.nio.ByteBuffer;
public class NetworkAnimator extends NetworkBehaviour {
@Override
public void start() {
super.start();
assert gameObject.animator != null;
gameObject.animator.shouldUpdate = getPlayerId() == Network.getPlayerId();
}
@Override
prote... | Send animation data across the network as shorts instead of ints, to save some bytes | Send animation data across the network as shorts instead of ints, to save some bytes
| Java | mit | 8-Bit-Warframe/Dethsquare-Engine-core | java | ## Code Before:
package com.ezardlabs.dethsquare.multiplayer;
import java.nio.ByteBuffer;
public class NetworkAnimator extends NetworkBehaviour {
@Override
public void start() {
super.start();
assert gameObject.animator != null;
gameObject.animator.shouldUpdate = getPlayerId() == Network.getPlayerId();
}
... |
412e195da29b4f4fc7b72967c192714a6f5eaeb5 | setup.py | setup.py | import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary for a large application'... | import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary for a large application'... | Clean up dependencies (no importlib) | Clean up dependencies (no importlib)
| Python | mit | diffeo/yakonfig | python | ## Code Before:
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary for a la... |
77bb6f36e9651c846f6b0c6148f40b96e2f7598f | src/vmware/VMwareForm.tsx | src/vmware/VMwareForm.tsx | import * as React from 'react';
import { required } from '@waldur/core/validators';
import { FormContainer, StringField, NumberField, SecretField } from '@waldur/form-react';
export const VMwareForm = ({ translate, container }) => (
<FormContainer {...container}>
<StringField
name="backend_url"
labe... | import * as React from 'react';
import { required } from '@waldur/core/validators';
import { FormContainer, StringField, NumberField, SecretField } from '@waldur/form-react';
export const VMwareForm = ({ translate, container }) => (
<FormContainer {...container}>
<StringField
name="backend_url"
labe... | Allow setting cluster label instead of ID when creating a VMware offering | Allow setting cluster label instead of ID when creating a VMware offering [WAL-2536]
| TypeScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | typescript | ## Code Before:
import * as React from 'react';
import { required } from '@waldur/core/validators';
import { FormContainer, StringField, NumberField, SecretField } from '@waldur/form-react';
export const VMwareForm = ({ translate, container }) => (
<FormContainer {...container}>
<StringField
name="backend... |
0b550701ced860c91efc929a3738d4a6c7434c90 | config.toml | config.toml | baseurl = "http://yourSiteHere"
languageCode = "en-us"
title = "my new hugo site"
publishdir = "./"
theme = "hyde"
| baseurl = "http://joshuamckenty.github.io"
languageCode = "en-us"
title = "my new hugo site"
publishdir = "./"
theme = "hyde"
| Fix baseurl until DNS roll. | Fix baseurl until DNS roll.
| TOML | unlicense | joshuamckenty/joshuamckenty.github.io | toml | ## Code Before:
baseurl = "http://yourSiteHere"
languageCode = "en-us"
title = "my new hugo site"
publishdir = "./"
theme = "hyde"
## Instruction:
Fix baseurl until DNS roll.
## Code After:
baseurl = "http://joshuamckenty.github.io"
languageCode = "en-us"
title = "my new hugo site"
publishdir = "./"
theme = "hyde"
|
1dbf9fb767d1a8919e50f56185b63daade5cb199 | lib/web.rb | lib/web.rb | require 'sinatra'
require_relative 'sonatype'
require_relative 'shields'
DEFAULT_SUBJECT = 'maven central'
PROJECT_SITE = 'https://github.com/jirutka/maven-badges'
configure :production do
disable :static
before { cache_control :public, :max_age => 3600 }
end
get '/' do
content_type :text
"Nothing is here, s... | require 'sinatra'
require_relative 'sonatype'
require_relative 'shields'
DEFAULT_SUBJECT = 'maven central'
MAVEN_SEARCH_URI = 'http://search.maven.org'
PROJECT_SITE = 'https://github.com/jirutka/maven-badges'
configure :production do
disable :static
before { cache_control :public, :max_age => 3600 }
end
get '/' ... | Add resource for redirect to search.maven.org | Add resource for redirect to search.maven.org
| Ruby | mit | jirutka/maven-badges | ruby | ## Code Before:
require 'sinatra'
require_relative 'sonatype'
require_relative 'shields'
DEFAULT_SUBJECT = 'maven central'
PROJECT_SITE = 'https://github.com/jirutka/maven-badges'
configure :production do
disable :static
before { cache_control :public, :max_age => 3600 }
end
get '/' do
content_type :text
"No... |
6a8cbb53dad28508f0fbb893ce37defbbec11a49 | src/bin/e_log.c | src/bin/e_log.c |
EINTERN int e_log_dom = -1;
EINTERN int
e_log_init(void)
{
e_log_dom = eina_log_domain_register("e", EINA_COLOR_WHITE);
return e_log_dom != -1;
}
EINTERN int
e_log_shutdown(void)
{
eina_log_domain_unregister(e_log_dom);
e_log_dom = -1;
return 0;
}
|
EINTERN int e_log_dom = -1;
static const char *_names[] = {
"CRI",
"ERR",
"WRN",
"INF",
"DBG",
};
static void
_e_log_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc EINA_UNUSED, int line, const char *fmt, void *data EINA_UNUSED, va_list args)
{
const char *color... | Revert "e logs - the custom e log func breaks eina backtraces, so don't use it" | Revert "e logs - the custom e log func breaks eina backtraces, so don't use it"
This reverts commit 2df04042269f3b5604c719844eac372fa5fcddd2.
let's not do this in all cases
| C | bsd-2-clause | tasn/enlightenment,rvandegrift/e,rvandegrift/e,rvandegrift/e,tasn/enlightenment,tasn/enlightenment | c | ## Code Before:
EINTERN int e_log_dom = -1;
EINTERN int
e_log_init(void)
{
e_log_dom = eina_log_domain_register("e", EINA_COLOR_WHITE);
return e_log_dom != -1;
}
EINTERN int
e_log_shutdown(void)
{
eina_log_domain_unregister(e_log_dom);
e_log_dom = -1;
return 0;
}
## Instruction:
Revert "e logs - the... |
0035b81b380f6dba8dbedc0088e2490f15c2830b | README.md | README.md | Example files and documentation for implementing immersive scrolling pages in NationBuilder.
|
Example files and documentation for implementing immersive scrolling pages in NationBuilder.
Once you've put the files in place, and modified _nav.html and layout.html in your template according to the instructions, you can create your very own immersive scrolling page.
## Creating a scrolling page in NationBuilder
... | Add instructions for how to create a page in NationBuilder itself | Add instructions for how to create a page in NationBuilder itself | Markdown | agpl-3.0 | heybenji/nationbuilder-scrolling-sections,heybenji/nationbuilder-scrolling-sections | markdown | ## Code Before:
Example files and documentation for implementing immersive scrolling pages in NationBuilder.
## Instruction:
Add instructions for how to create a page in NationBuilder itself
## Code After:
Example files and documentation for implementing immersive scrolling pages in NationBuilder.
Once you've put th... |
0ca34fb8a218b8c9338eadf7f730bb8662eb5a7e | recipes-xfce/fontconfig-overrides/fontconfig-overrides_1.0.bb | recipes-xfce/fontconfig-overrides/fontconfig-overrides_1.0.bb | DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontconfig"
PR = "r1"
... | DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontconfig"
PR = "r1"
... | Update after toplevl LICENSE file checksum change | fontconfig-overrrides: Update after toplevl LICENSE file checksum change
Acked-by: Ken Sharp <e6c8ad8f54d15df4645e8aaf3f7a209bc3688570@ni.com>
Acked-by: Rich Tollerton <67c688e7f7482ba5c4ebe3d70bc77594748182a6@ni.com>
Acked-by: Ben Shelton <873d2944fc7a954ed322314738197137e10de387@ni.com>
Signed-off-by: Alejandro del ... | BitBake | mit | ni/meta-nilrt,ni/meta-nilrt,ni/meta-nilrt,ni/meta-nilrt,ni/meta-nilrt | bitbake | ## Code Before:
DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontco... |
4e5d3973da8efaa3246c5131979ef4d0673faac9 | TODO.md | TODO.md |
- Add the ability to include a cover image.
- Add the ability to include images in the finished book formats. |
- [] Add the ability to include a cover image.
- [] Add the ability to include images in the finished book formats.
- [] Add additional themes
- [] Find fonts to include with book
- [] Update book.css to fix spacing between back-to-back codeblocks
- [] Add a plugin that will allow for Leanpub style aside boxes | Add more things to do | Add more things to do
| Markdown | mit | tschmidt/author | markdown | ## Code Before:
- Add the ability to include a cover image.
- Add the ability to include images in the finished book formats.
## Instruction:
Add more things to do
## Code After:
- [] Add the ability to include a cover image.
- [] Add the ability to include images in the finished book formats.
- [] Add additional th... |
ee2a6bb99d2a8fadecddd58366c20202c863c97c | geocoder/__init__.py | geocoder/__init__.py | from .api import get, yahoo, bing, geonames, google, mapquest # noqa
from .api import nokia, osm, tomtom, geolytica, arcgis, opencage # noqa
from .api import maxmind, freegeoip, ottawa, here, baidu, w3w, yandex # noqa
# EXTRAS
from .api import timezone, elevation, ip, canadapost, reverse # noqa
# CLI
from .cli im... |
__title__ = 'geocoder'
__author__ = 'Denis Carriere'
__author_email__ = 'carriere.denis@gmail.com'
__version__ = '1.2.2'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2013-2015 Denis Carriere'
# CORE
from .api import get, yahoo, bing, geonames, mapquest # noqa
from .api import nokia, osm, tomtom, geolytica, arc... | Add imports to init with noqa comments | Add imports to init with noqa comments
| Python | mit | epyatopal/geocoder-1,akittas/geocoder,minimedj/geocoder,DenisCarriere/geocoder,ahlusar1989/geocoder,miraculixx/geocoder | python | ## Code Before:
from .api import get, yahoo, bing, geonames, google, mapquest # noqa
from .api import nokia, osm, tomtom, geolytica, arcgis, opencage # noqa
from .api import maxmind, freegeoip, ottawa, here, baidu, w3w, yandex # noqa
# EXTRAS
from .api import timezone, elevation, ip, canadapost, reverse # noqa
# ... |
2e136f9fd28b947cfecd721fb94cd95f8488b2cb | modules/index-checker/src/main/java/jorgediazest/indexchecker/util/PortletPropsValues.java | modules/index-checker/src/main/java/jorgediazest/indexchecker/util/PortletPropsValues.java | /**
* Copyright (c) 2015-present Jorge Díaz All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | /**
* Copyright (c) 2015-present Jorge Díaz All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | Fix NPE caused by automatic SF | Fix NPE caused by automatic SF
| Java | lgpl-2.1 | jorgediaz-lr/index-checker | java | ## Code Before:
/**
* Copyright (c) 2015-present Jorge Díaz All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your opti... |
9b512127c068cb1fcde6e564a0f0cfde3e02493b | templates/app/index.html | templates/app/index.html | <html>
<head>
<title>Title</title>
<script src="bower_components/react/react.js"></script>
<script src="bower_components/react/JSXTransformer.js"></script>
</head>
<body>
<div id="app-container"></div>
<script type="text/jsx">
var App = React.createClass({
getInitialState: functi... | <html>
<head>
<title>Title</title>
<script src="bower_components/react/react.js"></script>
<script src="bower_components/react/JSXTransformer.js"></script>
</head>
<body>
<div id="app-container"></div>
<script type="text/jsx">
var App = React.createClass({
getInitialState: functi... | Make message input part independent component | Make message input part independent component
| HTML | mit | zaki-yama/react-sample,zaki-yama/react-sample,zaki-yama/react-sample | html | ## Code Before:
<html>
<head>
<title>Title</title>
<script src="bower_components/react/react.js"></script>
<script src="bower_components/react/JSXTransformer.js"></script>
</head>
<body>
<div id="app-container"></div>
<script type="text/jsx">
var App = React.createClass({
getInit... |
2896d1d0507ac312ab6246c3ccb33bbb6bc6d331 | bluebottle/common/management/commands/makemessages.py | bluebottle/common/management/commands/makemessages.py | import json
import codecs
import tempfile
from django.core.management.commands.makemessages import Command as BaseCommand
class Command(BaseCommand):
""" Extend the makemessages to include some of the fixtures """
fixtures = [
('bb_projects', 'project_data.json'),
('bb_tasks', 'skills.json'),... | import json
import codecs
import tempfile
from django.core.management.commands.makemessages import Command as BaseCommand
class Command(BaseCommand):
""" Extend the makemessages to include some of the fixtures """
fixtures = [
('bb_projects', 'project_data.json'),
('bb_tasks', 'skills.json'),... | Add a context to the fixture translations | Add a context to the fixture translations
| Python | bsd-3-clause | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | python | ## Code Before:
import json
import codecs
import tempfile
from django.core.management.commands.makemessages import Command as BaseCommand
class Command(BaseCommand):
""" Extend the makemessages to include some of the fixtures """
fixtures = [
('bb_projects', 'project_data.json'),
('bb_tasks',... |
f423e245b623b2fed76ecfc28afbb99a2a42188c | python/exports.bash | python/exports.bash | export PIP_REQUIRE_VIRTUALENV=true
export WORKON_HOME=~/Dropbox/Virtualenvs
export PROJECT_HOME=~/Dropbox/projects
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
| export PIP_REQUIRE_VIRTUALENV=true
export WORKON_HOME=~/Dropbox/Virtualenvs
export PROJECT_HOME=~/Dropbox/projects
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export PYTHONDONTWRITEBYTECODE=1
| Fix python byte code problem | Fix python byte code problem
| Shell | mit | sandertammesoo/dotfiles,sandertammesoo/dotfiles | shell | ## Code Before:
export PIP_REQUIRE_VIRTUALENV=true
export WORKON_HOME=~/Dropbox/Virtualenvs
export PROJECT_HOME=~/Dropbox/projects
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
## Instruction:
Fix python byte code problem
## Code After:
export PIP_REQUIRE_VIRTUALENV=true
export WORKON_HOME=~/Dropbo... |
09813139d3a77e4bebcbdd8cf6ef7192c9faaf33 | lib/wheaties/concerns/messaging.rb | lib/wheaties/concerns/messaging.rb | module Wheaties
module Concerns
module Messaging
def privmsg(message, *recipients)
broadcast(:privmsg, recipients.join(" "), :text => message)
end
def notice(message, *recipients)
broadcast(:notice, recipients.join(" "), :text => message)
end
def action(... | module Wheaties
module Concerns
module Messaging
def privmsg(message, *recipients)
ircify(message, *recipients) do |message, recipients|
broadcast(:privmsg, recipients.join(" "), :text => message)
end
end
def notice(message, *recipients)
ircify(message, *... | Add special handling for splitting strings and arrays before sending messages | Add special handling for splitting strings and arrays before sending messages
| Ruby | mit | raws/wheaties | ruby | ## Code Before:
module Wheaties
module Concerns
module Messaging
def privmsg(message, *recipients)
broadcast(:privmsg, recipients.join(" "), :text => message)
end
def notice(message, *recipients)
broadcast(:notice, recipients.join(" "), :text => message)
end
... |
51647df4a4ac48de433ee5c4dac7116b0f4ab80d | lib/gemrat/arguments.rb | lib/gemrat/arguments.rb | module Gemrat
class Arguments
class UnableToParse < StandardError; end
ATTRIBUTES = [:gems, :gemfile, :options]
ATTRIBUTES.each { |arg| attr_accessor arg }
def initialize(*args)
self.arguments = *args
validate
extract_options
end
def gems
gem_names.map do |name|... | module Gemrat
class Arguments
class UnableToParse < StandardError; end
ATTRIBUTES = [:gems, :gemfile, :options]
ATTRIBUTES.each { |arg| attr_accessor arg }
def initialize(*args)
self.arguments = *args
validate
parse_options
#extract_options
end
def gems
ge... | Implement first OptionParser flag, -g | Implement first OptionParser flag, -g
| Ruby | mit | DruRly/gemrat | ruby | ## Code Before:
module Gemrat
class Arguments
class UnableToParse < StandardError; end
ATTRIBUTES = [:gems, :gemfile, :options]
ATTRIBUTES.each { |arg| attr_accessor arg }
def initialize(*args)
self.arguments = *args
validate
extract_options
end
def gems
gem_nam... |
407954191669dca72f8c8a8c230162613be8d523 | app/views/companies/_company_card.html.erb | app/views/companies/_company_card.html.erb | <% @companies.each do |company| %>
<div class="company-card" onclick="flipCard()">
<div class="flipper">
<div class="front">
<div class="company-image"></div>
<h2 class="company-name-front"><%= company.name %></h2>
</div>
<div class="back">
<h2 class="company-name"><%= co... | <% @companies.each do |company| %>
<% if company.users.length >= 1 %>
<div class="company-card" onclick="flipCard()">
<div class="flipper">
<div class="front">
<div class="company-image"></div>
<h2 class="company-name-front"><%= company.name %></h2>
</div>
<div cl... | Add conditional to only show companies with users | Add conditional to only show companies with users
| HTML+ERB | mit | iand11/boot-on-the-ground,iand11/boot-on-the-ground,iand11/boot-on-the-ground | html+erb | ## Code Before:
<% @companies.each do |company| %>
<div class="company-card" onclick="flipCard()">
<div class="flipper">
<div class="front">
<div class="company-image"></div>
<h2 class="company-name-front"><%= company.name %></h2>
</div>
<div class="back">
<h2 class="comp... |
783b53f45a0d6923f2401674e91b2c6f599bddb8 | lib/spontaneous/facet.rb | lib/spontaneous/facet.rb |
module Spontaneous
class Facet
def initialize(root)
@root = root
paths.add :lib, ["lib", "**/*.rb"]
paths.add :schema, ["schema", "**/*.rb"]
paths.add :templates, "templates"
paths.add :config, "config"
paths.add :tasks, ["lib/tasks", "**/*.rake"]
paths.add :migrations, ... |
module Spontaneous
class Facet
def initialize(root)
@root = root
paths.add :lib, ["lib", "**/*.rb"]
paths.add :schema, ["schema", "**/*.rb"]
paths.add :templates, "templates"
paths.add :config, "config"
paths.add :tasks, ["lib/tasks", "**/*.rake"]
paths.add :migrations, ... | Make loading of indexes.rb dependent on its existance | Make loading of indexes.rb dependent on its existance
| Ruby | mit | magnetised/spontaneous,opendesk/spontaneous,mediagreenhouse/spontaneous,magnetised/spontaneous,mediagreenhouse/spontaneous,SpontaneousCMS/spontaneous,mediagreenhouse/spontaneous,magnetised/spontaneous,opendesk/spontaneous,SpontaneousCMS/spontaneous,opendesk/spontaneous,SpontaneousCMS/spontaneous | ruby | ## Code Before:
module Spontaneous
class Facet
def initialize(root)
@root = root
paths.add :lib, ["lib", "**/*.rb"]
paths.add :schema, ["schema", "**/*.rb"]
paths.add :templates, "templates"
paths.add :config, "config"
paths.add :tasks, ["lib/tasks", "**/*.rake"]
paths.a... |
61d7c9e99398874745d11720cd8d985bdc3d7514 | demoapp/views.py | demoapp/views.py | from demoapp.forms import DemoLoginForm
from django.shortcuts import render_to_response
from django.shortcuts import redirect
from demoapp import app_settings
from demoapp.utils import get_salt
def login_view(request):
if request.method == 'POST':
form = DemoLoginForm(request.POST)
if form.is_vali... | from demoapp.forms import DemoLoginForm
from django.shortcuts import render
from django.shortcuts import redirect
from demoapp import app_settings
from demoapp.utils import get_salt
def login_view(request):
if request.method == 'POST':
form = DemoLoginForm(request.POST)
if form.is_valid():
... | Add context to login view | Add context to login view
| Python | unlicense | dboczek/django-demo,dboczek/django-demo | python | ## Code Before:
from demoapp.forms import DemoLoginForm
from django.shortcuts import render_to_response
from django.shortcuts import redirect
from demoapp import app_settings
from demoapp.utils import get_salt
def login_view(request):
if request.method == 'POST':
form = DemoLoginForm(request.POST)
... |
3ddeea297cfb0140c6157b5410e448f1a7982bf3 | app/helpers/user_helper.rb | app/helpers/user_helper.rb | module UserHelper
def guider_options
groups = Group.includes(:users)
{
'Groups': groups.map do |group|
[group.name, group.name, data: { icon: 'glyphicon-tag', children_to_select: group.users.pluck(:id) }]
end,
'Users': User.guiders.active.map do |guider|
[guider.name, guider.... | module UserHelper
def guider_options
groups = Group.includes(:users)
{
'Groups': groups.map do |group|
[group.name, group.name, data: { icon: 'glyphicon-tag', children_to_select: group.user_ids }]
end,
'Users': User.guiders.active.map do |guider|
[guider.name, guider.id, dat... | Reduce huge N+1 querying for associated user IDs | Reduce huge N+1 querying for associated user IDs
This was causing a huge N+1 query through groups / assignments / users.
| Ruby | mit | guidance-guarantee-programme/telephone_appointment_planner,guidance-guarantee-programme/telephone_appointment_planner,guidance-guarantee-programme/telephone_appointment_planner | ruby | ## Code Before:
module UserHelper
def guider_options
groups = Group.includes(:users)
{
'Groups': groups.map do |group|
[group.name, group.name, data: { icon: 'glyphicon-tag', children_to_select: group.users.pluck(:id) }]
end,
'Users': User.guiders.active.map do |guider|
[guid... |
7289d253a3f92775b8295515117038928b170b0e | src/test/resources/gvm/aeroplane_mode_steps.groovy | src/test/resources/gvm/aeroplane_mode_steps.groovy | package gvm
import static cucumber.api.groovy.EN.*
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(baseDir, [GVM_DIR: gvmDirEnv, GVM_SERVICE: "http://localhost:0"])
bash.start()
bash.execute("source $binDir/gvm-init.sh")
}
And(~'^the internet is reachable$') {->
bash = new BashEnv(b... | package gvm
import static cucumber.api.groovy.EN.*
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(gvmBaseEnv, [GVM_DIR: gvmDirEnv, GVM_SERVICE: "http://localhost:0"])
bash.start()
bash.execute("source $binDir/gvm-init.sh")
}
And(~'^the internet is reachable$') {->
bash = new BashEn... | Rename base directory to gvm base environment variable in test environment. | Rename base directory to gvm base environment variable in test environment.
| Groovy | apache-2.0 | DealerDotCom/gvm-cli,skpal/sdkman-cli,nobeans/gvm-cli,busches/gvm-cli,shanman190/sdkman-cli,DealerDotCom/gvm-cli,skpal/sdkman-cli,GsusRecovery/sdkman-cli,GsusRecovery/sdkman-cli,nobeans/gvm-cli,jbovet/gvm,sdkman/sdkman-cli,gvmtool/gvm-cli | groovy | ## Code Before:
package gvm
import static cucumber.api.groovy.EN.*
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(baseDir, [GVM_DIR: gvmDirEnv, GVM_SERVICE: "http://localhost:0"])
bash.start()
bash.execute("source $binDir/gvm-init.sh")
}
And(~'^the internet is reachable$') {->
bash... |
806501fd9c8587248ac20f8282bb432b37b54ab0 | README.md | README.md |
Basic tools to generate an HTML visualisation of Tinc Networks.
##Example
Here is an example of a Tinc View page with 3 networks :

##Installation
Prerequies and dependance :
sudo aptitude install graphviz
Get project :
git clone https://github.com/24eme/tin... |
Basic tools to generate an HTML visualisation of Tinc Networks.
##Example
Here is an example of a Tinc View page with 3 networks :

##Installation
Prerequies and dependance :
sudo aptitude install graphviz
Get project :
git clone https://github.com/24eme/tin... | Add doc to configure apache | Add doc to configure apache | Markdown | mit | 24eme/tincview,24eme/tincview | markdown | ## Code Before:
Basic tools to generate an HTML visualisation of Tinc Networks.
##Example
Here is an example of a Tinc View page with 3 networks :

##Installation
Prerequies and dependance :
sudo aptitude install graphviz
Get project :
git clone https://gith... |
d13f04072e3a66005885132f551702efa1d18a75 | CMakeLists.txt | CMakeLists.txt | cmake_minimum_required(VERSION 3.0)
project(pybinding)
if(NOT PYTHON_VERSION)
set(PYTHON_VERSION 3.4) # minimum required version
endif()
add_subdirectory(cppwrapper)
if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set_target_properties(_pybinding PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
fore... | cmake_minimum_required(VERSION 3.0)
project(pybinding)
if(NOT PYTHON_VERSION)
set(PYTHON_VERSION 3.4) # minimum required version
endif()
add_subdirectory(cppwrapper)
if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set_target_properties(_pybinding PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
fore... | Add pytest target to CMake | Add pytest target to CMake
| Text | bsd-2-clause | dean0x7d/pybinding,dean0x7d/pybinding,MAndelkovic/pybinding,dean0x7d/pybinding,MAndelkovic/pybinding,MAndelkovic/pybinding | text | ## Code Before:
cmake_minimum_required(VERSION 3.0)
project(pybinding)
if(NOT PYTHON_VERSION)
set(PYTHON_VERSION 3.4) # minimum required version
endif()
add_subdirectory(cppwrapper)
if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set_target_properties(_pybinding PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIS... |
c0a7a727bfc4afb63f62c961c92746e41a923779 | src/js/containers/Device.js | src/js/containers/Device.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Box, Tabs, Tab } from 'grommet';
import { Map } from 'react-d3-map';
import { Table } from '../components';
import { deviceActions } from '../actions';
const mapConf = {
width: 1400,
... | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Box, Tabs, Tab } from 'grommet';
import { Map, MarkerGroup } from 'react-d3-map';
import { Table } from '../components';
import { deviceActions } from '../actions';
const mapConf = {
... | Add MarkerGroup in Map by device geo info | Add MarkerGroup in Map by device geo info
| JavaScript | mit | masogit/dashboard,masogit/dashboard | javascript | ## Code Before:
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Box, Tabs, Tab } from 'grommet';
import { Map } from 'react-d3-map';
import { Table } from '../components';
import { deviceActions } from '../actions';
const mapConf = {... |
9f5280521cb3d5937b18d1a40ea6ba0a80fcd1c2 | test/chpldoc/classes/methodOutsideClassDef.chpl | test/chpldoc/classes/methodOutsideClassDef.chpl | /* This class will declare a method inside itself, but will have a
method declared outside it as well */
class Foo {
proc internalMeth() {
}
}
// We expect these two methods to be printed outside of the class indentation
// level
proc Foo.externalMeth1() {
}
/* This method has a comment attached to it */
pro... | /* This class will declare a method inside itself, but will have a
method declared outside it as well */
class Foo {
proc internalMeth() {
}
}
// We expect these two methods to be printed outside of the class indentation
// level
proc Foo.externalMeth1() {
}
/* This method has a comment attached to it */
pro... | Add record with secondary method to chpldoc/ tests. | Add record with secondary method to chpldoc/ tests.
| Chapel | apache-2.0 | hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chiz... | chapel | ## Code Before:
/* This class will declare a method inside itself, but will have a
method declared outside it as well */
class Foo {
proc internalMeth() {
}
}
// We expect these two methods to be printed outside of the class indentation
// level
proc Foo.externalMeth1() {
}
/* This method has a comment attac... |
00a464ad7cf9b235d07fe7f060909acbbdd16418 | app/views/admin/index.html.haml | app/views/admin/index.html.haml | .container
%h1
%a{href: '/requested_accounts'}
Requested Accounts:
= RequestedAccount.count
.container
%h1
%a{href: '/tickets/dashboard'}
Open Tickets:
= TicketDispenser::Ticket.where(status: TicketDispenser::Ticket::Statuses::OPEN).count
| .container
%h1
%a{href: '/requested_accounts'}
Requested Accounts:
= RequestedAccount.count
.container
%h1
%a{href: '/tickets/dashboard'}
Open Tickets:
= TicketDispenser::Ticket.where(status: TicketDispenser::Ticket::Statuses::OPEN).count
.container
%h2 Useful links
%ul
%li
... | Add some extra links to admin index | Add some extra links to admin index
| Haml | mit | WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard | haml | ## Code Before:
.container
%h1
%a{href: '/requested_accounts'}
Requested Accounts:
= RequestedAccount.count
.container
%h1
%a{href: '/tickets/dashboard'}
Open Tickets:
= TicketDispenser::Ticket.where(status: TicketDispenser::Ticket::Statuses::OPEN).count
## Instruction:
Add some ext... |
431ec68fe478d1b8d212c87590e5b614a4d16fe9 | app/src/storage/template.html | app/src/storage/template.html | <div class="gridster-element" gridster="gridsterStorageOptions">
<div gridster-item="map" ng-repeat="map in maps" class="grid-map">
<div ol3-map="map" styles="styles" static-map="true" class="map-box" gridster-item-element="gridsterItem">
<div class="map-title">
<h4>{{ map.title }}</h4>
... | <div class="gridster-element" gridster="gridsterStorageOptions">
<div gridster-item="map" ng-repeat="map in maps" class="grid-map">
<div ol3-map="map" styles="styles" static-map="true" class="map-box" gridster-item-element="gridsterItem">
<div class="map-title">
<h4 ng-click="editMode=true;" ng... | Make stored map title editable | Make stored map title editable
| HTML | apache-2.0 | nebulon42/magnacarto,omniscale/magnacarto,omniscale/magnacarto,nebulon42/magnacarto,omniscale/magnacarto,omniscale/magnacarto,nebulon42/magnacarto,nebulon42/magnacarto | html | ## Code Before:
<div class="gridster-element" gridster="gridsterStorageOptions">
<div gridster-item="map" ng-repeat="map in maps" class="grid-map">
<div ol3-map="map" styles="styles" static-map="true" class="map-box" gridster-item-element="gridsterItem">
<div class="map-title">
<h4>{{ map.title... |
02f5db5fdb46684b60a9b5e9125da228a927c2c3 | mrbelvedereci/build/cumulusci/config.py | mrbelvedereci/build/cumulusci/config.py | from cumulusci.core.config import YamlGlobalConfig
from cumulusci.core.config import YamlProjectConfig
class MrbelvedereProjectConfig(YamlProjectConfig):
def __init__(self, global_config_obj, build_flow):
super(MrbelvedereProjectConfig, self).__init__(global_config_obj)
self.build_flow = build_flow... | from cumulusci.core.config import YamlGlobalConfig
from cumulusci.core.config import YamlProjectConfig
class MrbelvedereProjectConfig(YamlProjectConfig):
def __init__(self, global_config_obj, build_flow):
self.build_flow = build_flow
super(MrbelvedereProjectConfig, self).__init__(global_config_obj)... | Set self.build_flow before calling the super __init__ method | Set self.build_flow before calling the super __init__ method
| Python | bsd-3-clause | SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci | python | ## Code Before:
from cumulusci.core.config import YamlGlobalConfig
from cumulusci.core.config import YamlProjectConfig
class MrbelvedereProjectConfig(YamlProjectConfig):
def __init__(self, global_config_obj, build_flow):
super(MrbelvedereProjectConfig, self).__init__(global_config_obj)
self.build_f... |
66e8e572fa16042ef4fae95680aefefe63fc1ac7 | src/constants/enums.ts | src/constants/enums.ts | export enum AudioSource {
NEW_SEARCH_RESULT = 'https://k003.kiwi6.com/hotlink/bbgk5w2fhz/ping.ogg',
SUCCESSFUL_WATCHER_ACCEPT = 'https://k003.kiwi6.com/hotlink/sd6quj2ecs/horn.ogg'
}
export enum TabIndex {
SEARCH = 0,
QUEUE = 1,
WATCHERS = 2,
BLOCKLIST = 3,
ACCOUNT = 4,
SETTINGS = 5
}
ex... | export enum AudioSource {
NEW_SEARCH_RESULT = 'https://k003.kiwi6.com/hotlink/bbgk5w2fhz/ping.ogg',
SUCCESSFUL_WATCHER_ACCEPT = 'https://k003.kiwi6.com/hotlink/sd6quj2ecs/horn.ogg'
}
export enum TabIndex {
SEARCH = 0,
QUEUE = 1,
WATCHERS = 2,
BLOCKLIST = 3,
ACCOUNT = 4,
SETTINGS = 5
}
ex... | Add MONTHS to Duration enum. | Add MONTHS to Duration enum.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | typescript | ## Code Before:
export enum AudioSource {
NEW_SEARCH_RESULT = 'https://k003.kiwi6.com/hotlink/bbgk5w2fhz/ping.ogg',
SUCCESSFUL_WATCHER_ACCEPT = 'https://k003.kiwi6.com/hotlink/sd6quj2ecs/horn.ogg'
}
export enum TabIndex {
SEARCH = 0,
QUEUE = 1,
WATCHERS = 2,
BLOCKLIST = 3,
ACCOUNT = 4,
SETTINGS = 5
}
... |
7a496bed78710457c4377f30f70398745eeeb963 | usr.sbin/lpr/Makefile | usr.sbin/lpr/Makefile |
SUBDIR= common_source chkprintcap lp lpc lpd lpq lpr lprm lptest pac \
filters filters.ru SMM.doc
MAINTAINER= wollman@FreeBSD.org
MAINTAINER+= gad@FreeBSD.org
.include <bsd.subdir.mk>
|
SUBDIR= common_source chkprintcap lp lpc lpd lpq lpr lprm lptest pac \
filters filters.ru SMM.doc
MAINTAINER= wollman@FreeBSD.org
MAINTAINER+= gad@FreeBSD.org
# Questions/ideas for lpr & friends could also be sent to:
# freebsd-print@bostonradio.org
.include <bsd.subdir.mk>
| Add a comment pointing to the freebsd-print@bostonradio.org mailing list. | Add a comment pointing to the freebsd-print@bostonradio.org mailing list.
| unknown | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | unknown | ## Code Before:
SUBDIR= common_source chkprintcap lp lpc lpd lpq lpr lprm lptest pac \
filters filters.ru SMM.doc
MAINTAINER= wollman@FreeBSD.org
MAINTAINER+= gad@FreeBSD.org
.include <bsd.subdir.mk>
## Instruction:
Add a comment pointing to the freebsd-print@bostonradio.org mailing list.
## Code After:
SUBDIR=... |
220538bf13233e97e57f49054ace5b7392f8f4d3 | .travis.yml | .travis.yml | branches:
only:
- master
- /release-.*/
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
dist: trusty
sudo: false
addons:
apt:
packages:
- automake
- autoconf
- libtool
- pkg-config
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[... | branches:
only:
- master
- /release-.*/
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
dist: trusty
sudo: false
addons:
apt:
packages:
- automake
- autoconf
- libtool
- pkg-config
script: ./super-test.sh -j2 quick # limit parallelism due to limited memory on Travis
| Fix Travis build: Homebrew now complains that these are already installed. | Fix Travis build: Homebrew now complains that these are already installed.
| YAML | mit | mologie/capnproto,mologie/capnproto,mologie/capnproto | yaml | ## Code Before:
branches:
only:
- master
- /release-.*/
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
dist: trusty
sudo: false
addons:
apt:
packages:
- automake
- autoconf
- libtool
- pkg-config
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upda... |
9c225d0f19b19657b86a153f93562881048510b4 | lib/xpi.js | lib/xpi.js | var join = require("path").join;
var console = require("./utils").console;
var fs = require("fs-promise");
var zip = require("./zip");
var all = require("when").all;
var tmp = require('./tmp');
var bootstrapSrc = join(__dirname, "../data/bootstrap.js");
/**
* Takes a manifest object (from package.json) and build opti... | var join = require("path").join;
var console = require("./utils").console;
var fs = require("fs-promise");
var zip = require("./zip");
var all = require("when").all;
var tmp = require('./tmp');
var bootstrapSrc = join(__dirname, "../data/bootstrap.js");
/**
* Takes a manifest object (from package.json) and build opti... | Remove extra createBuildOptions for now | Remove extra createBuildOptions for now
| JavaScript | mpl-2.0 | Medeah/jpm,rpl/jpm,guyzmuch/jpm,wagnerand/jpm,guyzmuch/jpm,Medeah/jpm,matraska23/jpm,nikolas/jpm,freaktechnik/jpm,matraska23/jpm,alexduch/jpm,mozilla-jetpack/jpm,jsantell/jpm,Gozala/jpm,freaktechnik/jpm,rpl/jpm,nikolas/jpm,mozilla-jetpack/jpm,kkapsner/jpm,mozilla/jpm,mozilla-jetpack/jpm,jsantell/jpm,johannhof/jpm,alexd... | javascript | ## Code Before:
var join = require("path").join;
var console = require("./utils").console;
var fs = require("fs-promise");
var zip = require("./zip");
var all = require("when").all;
var tmp = require('./tmp');
var bootstrapSrc = join(__dirname, "../data/bootstrap.js");
/**
* Takes a manifest object (from package.json... |
3bcb8f0843b7798bb02f7cf5652ec200293f0264 | cookbooks/planet/templates/default/users-deleted.erb | cookbooks/planet/templates/default/users-deleted.erb |
T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX)
# use the same as for the users-agreed template
export PGPASSFILE=/etc/replication/users-agreed.conf
echo "# user IDs of deleted users. " > $T/users_deleted
psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where status='delete... |
T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX)
# use the same as for the users-agreed template
export PGPASSFILE=/etc/replication/users-agreed.conf
echo "# user IDs of deleted users. " > $T/users_deleted
psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where status='delete... | Move output down a level | Move output down a level
| HTML+ERB | apache-2.0 | Firefishy/chef,zerebubuth/openstreetmap-chef,tomhughes/openstreetmap-chef,openstreetmap/chef,tomhughes/openstreetmap-chef,Firefishy/chef,openstreetmap/chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,Firefishy/chef,tomhughes/openstreetmap-chef,... | html+erb | ## Code Before:
T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX)
# use the same as for the users-agreed template
export PGPASSFILE=/etc/replication/users-agreed.conf
echo "# user IDs of deleted users. " > $T/users_deleted
psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users wher... |
622ad90f13100b5d5296af662552de2960afb7a6 | src/Field/Scalar/BooleanField.php | src/Field/Scalar/BooleanField.php | <?php
/*
* This file is part of the Active Collab DatabaseStructure project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
namespace ActiveCollab\DatabaseStructure\Field\Scalar;
use LogicException;
/**
* @package ActiveCollab\DatabaseStructure\Field\Scalar
*/
class BooleanField extends Fiel... | <?php
/*
* This file is part of the Active Collab DatabaseStructure project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
namespace ActiveCollab\DatabaseStructure\Field\Scalar;
use LogicException;
/**
* @package ActiveCollab\DatabaseStructure\Field\Scalar
*/
class BooleanField extends Fiel... | Add native type to boolean fields | Add native type to boolean fields
| PHP | mit | activecollab/databasestructure | php | ## Code Before:
<?php
/*
* This file is part of the Active Collab DatabaseStructure project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
namespace ActiveCollab\DatabaseStructure\Field\Scalar;
use LogicException;
/**
* @package ActiveCollab\DatabaseStructure\Field\Scalar
*/
class BooleanFi... |
29e895fab31148e0bc542c16612a1546894ead5f | spec/support/helpers/request_spec_helper.rb | spec/support/helpers/request_spec_helper.rb | module RequestSpecHelper
def i_should_see(content)
page.should have_content(content)
end
def i_should_not_see(content)
page.should have_no_content(content)
end
def i_should_be_on(path)
current_path.should eq(path)
end
def url_should_have_param(param, value)
current_params[param].should ... | module RequestSpecHelper
def i_should_see(content)
page.should have_content(content)
end
def i_should_not_see(content)
page.should have_no_content(content)
end
def i_should_be_on(path)
current_path.should eq(path)
end
def url_should_have_param(param, value)
current_params[param].should ... | Add few more request helpers | Add few more request helpers
| Ruby | mit | doorkeeper-gem/doorkeeper,outstand/doorkeeper,stormz/doorkeeper,Tout/doorkeeper,jasl/doorkeeper,telekomatrix/doorkeeper,ezilocchi/doorkeeper,dk1234567/doorkeeper,ukasiu/doorkeeper,ministryofjustice/doorkeeper,vanboom/doorkeeper,phillbaker/doorkeeper,mavenlink/doorkeeper,Tout/doorkeeper,CloudTags/doorkeeper,ezilocchi/do... | ruby | ## Code Before:
module RequestSpecHelper
def i_should_see(content)
page.should have_content(content)
end
def i_should_not_see(content)
page.should have_no_content(content)
end
def i_should_be_on(path)
current_path.should eq(path)
end
def url_should_have_param(param, value)
current_param... |
d6147ef7ba68c89656a721844ea1de6b696c3f83 | IRC/plugins/Git/Git.rb | IRC/plugins/Git/Git.rb |
require_relative '../../IRCPlugin'
class Git < IRCPlugin
Description = "Plugin to run git pull."
Commands = {
:pull => "runs git pull"
}
Dependencies = [ :Statistics ]
def afterLoad
@l = @bot.pluginManager.plugins[:Statistics]
end
def beforeUnload
@l = nil
end
def on_privmsg(msg)
... |
require_relative '../../IRCPlugin'
class Git < IRCPlugin
Description = "Plugin to run git pull."
Commands = {
:pull => "fetches changes from upstream and resets current branch and working directory to reflect it"
}
Dependencies = [ :Statistics ]
def afterLoad
@l = @bot.pluginManager.plugins[:Statis... | Update command description for .pull | Update command description for .pull
| Ruby | agpl-3.0 | k5bot/k5bot,k5bot/k5bot,k5bot/k5bot | ruby | ## Code Before:
require_relative '../../IRCPlugin'
class Git < IRCPlugin
Description = "Plugin to run git pull."
Commands = {
:pull => "runs git pull"
}
Dependencies = [ :Statistics ]
def afterLoad
@l = @bot.pluginManager.plugins[:Statistics]
end
def beforeUnload
@l = nil
end
def on_p... |
075343bbeba8bc3488cd03c6b78eeb6b5dfb91f9 | spec/flatfile_spec.rb | spec/flatfile_spec.rb | require 'spec_helper'
require './generate_flatfile'
describe "Flatfiles backend", :js => true do
type = "Flatfile"
name = "Metric"
metric = "#{type}~#{name}"
before :each do
add_config type_config("Flatfile", {file_name: 'public/flatfile_15s.csv', metric: name})
test_config type
end
context "refre... | require 'spec_helper'
require './generate_flatfile'
describe "Flatfiles backend", :js => true do
type = "Flatfile"
name = "Metric"
metric = "#{type}~#{name}"
before :each do
add_config type_config("Flatfile", {file_name: 'public/flatfile_15s.csv', metric: name, interpolate: true})
test_config type
en... | Use interpolation for flatfile test | Use interpolation for flatfile test
| Ruby | bsd-3-clause | glasnt/machiavelli,machiavellian/machiavelli,machiavellian/machiavelli,glasnt/machiavelli,glasnt/machiavelli,machiavellian/machiavelli,glasnt/machiavelli,machiavellian/machiavelli | ruby | ## Code Before:
require 'spec_helper'
require './generate_flatfile'
describe "Flatfiles backend", :js => true do
type = "Flatfile"
name = "Metric"
metric = "#{type}~#{name}"
before :each do
add_config type_config("Flatfile", {file_name: 'public/flatfile_15s.csv', metric: name})
test_config type
end
... |
0fcb89b672f19f3df41796aff561e7f22425692f | share/spice/thumbtack/thumbtack.js | share/spice/thumbtack/thumbtack.js | (function (env) {
"use strict";
env.ddg_spice_thumbtack = function(api_result){
// Don't show anything if we weren't able to return 2 or more services.
// In future iterations, we should support a different view in the case
// of a single result.
if (!api_result || api_result.er... | (function (env) {
"use strict";
env.ddg_spice_thumbtack = function(api_result){
if (!api_result || api_result.error || !api_result.data || !api_result.data.length) {
return Spice.failed('thumbtack');
}
// Render the response
DDG.require('maps', function() {
... | Check for an empty result | Check for an empty result
| JavaScript | apache-2.0 | MoriTanosuke/zeroclickinfo-spice,levaly/zeroclickinfo-spice,marianosimone/zeroclickinfo-spice,deserted/zeroclickinfo-spice,soleo/zeroclickinfo-spice,levaly/zeroclickinfo-spice,kevintab95/zeroclickinfo-spice,TomBebbington/zeroclickinfo-spice,soleo/zeroclickinfo-spice,whalenrp/zeroclickinfo-spice,xaviervalarino/zeroclick... | javascript | ## Code Before:
(function (env) {
"use strict";
env.ddg_spice_thumbtack = function(api_result){
// Don't show anything if we weren't able to return 2 or more services.
// In future iterations, we should support a different view in the case
// of a single result.
if (!api_result ... |
1988901d7b174d041ae1418179d63b7b7941a4e3 | src/Euler/Problem016.hs | src/Euler/Problem016.hs | -- 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
-- What is the sum of the digits of the number 2^1000?
module Euler.Problem016
( solution
) where
solution :: Integer -> Integer
solution = undefined
| -- 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
-- What is the sum of the digits of the number 2^1000?
module Euler.Problem016
( solution
) where
solution :: Integer -> Integer
solution e = sum . digits $ 2^e
digits :: Integer -> [Integer]
digits = map (read . return) . show
| Add solution to problem 16. | Add solution to problem 16.
| Haskell | mit | whittle/euler | haskell | ## Code Before:
-- 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
-- What is the sum of the digits of the number 2^1000?
module Euler.Problem016
( solution
) where
solution :: Integer -> Integer
solution = undefined
## Instruction:
Add solution to problem 16.
## Code After:
-- 2^15... |
74e0422096d02d56a4cbb5088631a45b0d11b8f1 | ipmi/test_ipmi_resets.robot | ipmi/test_ipmi_resets.robot | *** Settings ***
Documentation Module to test IPMI cold and warm reset functionalities.
Resource ../lib/ipmi_client.robot
Resource ../lib/openbmc_ffdc.robot
Test Teardown FFDC On Test Case Fail
Suite Teardown Redfish Power Off
*** Variables ***
# User may pass LOOP_COUNT.
${LOOP_COUNT} ${1}... | *** Settings ***
Documentation Module to test IPMI cold and warm reset functionalities.
Resource ../lib/ipmi_client.robot
Resource ../lib/openbmc_ffdc.robot
Test Teardown FFDC On Test Case Fail
*** Variables ***
# User may pass LOOP_COUNT.
${LOOP_COUNT} ${1}
*** Test Cases ***
Test IPMI War... | Update IPMI power cycle test | Update IPMI power cycle test
Change-Id: I2c7461377fe928f937be511ff542b90f4ae56e2e
Signed-off-by: George Keishing <bef0a9ecac45fb57611777c8270153994e13fd2e@in.ibm.com>
| RobotFramework | apache-2.0 | openbmc/openbmc-test-automation,openbmc/openbmc-test-automation | robotframework | ## Code Before:
*** Settings ***
Documentation Module to test IPMI cold and warm reset functionalities.
Resource ../lib/ipmi_client.robot
Resource ../lib/openbmc_ffdc.robot
Test Teardown FFDC On Test Case Fail
Suite Teardown Redfish Power Off
*** Variables ***
# User may pass LOOP_COUNT.
${L... |
b1fe3ab9fab78737d4a2b2a40c74bbfdd22bd6c8 | README.md | README.md |
Chrysalide is a clean, minimalistic, responsive, and Lynx friendly theme. It is the default theme for [Motyl](https://github.com/fcambus/motyl), an opinionated blog-aware static site generator written in Lua.
## Syntax highlighting
Chrysalide uses [Prism](http://prismjs.com/) for client-side Syntax highlighting. The... |
Chrysalide is a clean, minimalistic, responsive, and Lynx friendly theme. It is the default theme for [Motyl](https://github.com/fcambus/motyl), an opinionated blog-aware static site generator written in Lua.
## Syntax highlighting
Chrysalide uses [Prism](http://prismjs.com/) for client-side Syntax highlighting. The... | Update license information regarding fonts | Update license information regarding fonts
| Markdown | bsd-2-clause | fcambus/chrysalide | markdown | ## Code Before:
Chrysalide is a clean, minimalistic, responsive, and Lynx friendly theme. It is the default theme for [Motyl](https://github.com/fcambus/motyl), an opinionated blog-aware static site generator written in Lua.
## Syntax highlighting
Chrysalide uses [Prism](http://prismjs.com/) for client-side Syntax h... |
08297f1f75e37a65d89afd5bdd6ed14aa8bae321 | src/base-query/bootstrap.js | src/base-query/bootstrap.js | import { version, homepage } from '../../package.json'
import Logger from 'js-logger'
import './polyfills.js'
// Bootstrap logger
Logger.useDefaults()
// print header to console
console.log('base3d.js v'+version+'\n'+homepage) | import { version, homepage } from '../../package.json'
import Logger from 'js-logger'
import './polyfills.js'
// Bootstrap logger
Logger.useDefaults()
// print header to console in browser environment
var isBrowser = typeof window !== 'undefined' && Object.prototype.toString.call(window) === '[object Window]'
if (isB... | Print banner to console in browser environment only | Print banner to console in browser environment only
| JavaScript | mit | archilogic-com/3dio-js,archilogic-com/3dio-js | javascript | ## Code Before:
import { version, homepage } from '../../package.json'
import Logger from 'js-logger'
import './polyfills.js'
// Bootstrap logger
Logger.useDefaults()
// print header to console
console.log('base3d.js v'+version+'\n'+homepage)
## Instruction:
Print banner to console in browser environment only
## Cod... |
7891cf254bb98b65503675a20ed6b013385328cf | setup.py | setup.py | import setuptools
def package_data_dirs(source, sub_folders):
import os
dirs = []
for d in sub_folders:
for dirname, _, files in os.walk(os.path.join(source, d)):
dirname = os.path.relpath(dirname, source)
for f in files:
dirs.append(os.path.join(dirname, f))
return dirs
def params():
name = "OctoP... | import setuptools
def package_data_dirs(source, sub_folders):
import os
dirs = []
for d in sub_folders:
for dirname, _, files in os.walk(os.path.join(source, d)):
dirname = os.path.relpath(dirname, source)
for f in files:
dirs.append(os.path.join(dirname, f))
return dirs
def params():
name = "OctoP... | Copy paste error leading to static and template folders not being properly installed along side the package | Copy paste error leading to static and template folders not being properly installed along side the package
| Python | agpl-3.0 | OctoPrint/OctoPrint-Netconnectd,mrbeam/OctoPrint-Netconnectd,mrbeam/OctoPrint-Netconnectd,OctoPrint/OctoPrint-Netconnectd,mrbeam/OctoPrint-Netconnectd | python | ## Code Before:
import setuptools
def package_data_dirs(source, sub_folders):
import os
dirs = []
for d in sub_folders:
for dirname, _, files in os.walk(os.path.join(source, d)):
dirname = os.path.relpath(dirname, source)
for f in files:
dirs.append(os.path.join(dirname, f))
return dirs
def params()... |
38ff21bbc0f64e805b75aa954fe2a748ad32e76f | src/log/index.ts | src/log/index.ts | // Copyright 2016 Joe Duffy. All rights reserved.
"use strict";
import * as contract from '../contract';
export interface ILogger {
infof(msg: string, ...args: any[]): void;
errorf(msg: string, ...args: any[]): void;
fatalf(msg: string, ...args: any[]): void;
}
let consoleLogger: ILogger = {
infof: ... | // Copyright 2016 Joe Duffy. All rights reserved.
"use strict";
import * as contract from '../contract';
export interface ILogger {
infof(msg: string, ...args: any[]): void;
errorf(msg: string, ...args: any[]): void;
fatalf(msg: string, ...args: any[]): void;
}
let consoleLogger: ILogger = {
infof: ... | Rename functions to be less obscure (and cased properly) | Rename functions to be less obscure (and cased properly)
| TypeScript | mit | joeduffy/nodets | typescript | ## Code Before:
// Copyright 2016 Joe Duffy. All rights reserved.
"use strict";
import * as contract from '../contract';
export interface ILogger {
infof(msg: string, ...args: any[]): void;
errorf(msg: string, ...args: any[]): void;
fatalf(msg: string, ...args: any[]): void;
}
let consoleLogger: ILogger... |
1996083e58f308dfa42ff315ea15b7dba8326679 | apina-core/src/main/java/fi/evident/apina/model/settings/TranslationSettings.java | apina-core/src/main/java/fi/evident/apina/model/settings/TranslationSettings.java | package fi.evident.apina.model.settings;
import fi.evident.apina.utils.PatternSet;
import java.util.Collection;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import static java.util.Collections.unmodifiableCollection;
/**
* Various settings guiding the translation.
*/
public final clas... | package fi.evident.apina.model.settings;
import fi.evident.apina.utils.PatternSet;
import java.util.Collection;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import static java.util.Collections.unmodifiableCollection;
/**
* Various settings guiding the translation.
*/
public final clas... | Allow multiple types to be imported with single call | Allow multiple types to be imported with single call
Since both the command line client and the Gradle task support
specifying multiple imports from a module with a shorthand syntax, it
makes things simpler for callers to allow passing multiple types in a
single addImport-call.
| Java | mit | EvidentSolutions/apina,EvidentSolutions/apina,EvidentSolutions/apina | java | ## Code Before:
package fi.evident.apina.model.settings;
import fi.evident.apina.utils.PatternSet;
import java.util.Collection;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import static java.util.Collections.unmodifiableCollection;
/**
* Various settings guiding the translation.
*/
p... |
1bd52c2e40222a3031b839b2f829d8933f3504fe | includes/registrars.inc.php | includes/registrars.inc.php | <?php
/*
* Get the list of registrars.
*/
$registrars = json_decode(file_get_contents('../includes/registrars.json'));
if ($registrars === FALSE)
{
header('HTTP/1.0 500 Internal Server Error');
echo '500 Internal Server Error';
exit();
}
| <?php
/*
* Get the list of registrars.
*/
$registrars = json_decode(file_get_contents('../includes/registrars.json'));
if ($registrars === FALSE)
{
header('HTTP/1.0 500 Internal Server Error');
echo '500 Internal Server Error';
exit();
}
/*
* If a parameter has been passed, that's a GNIS ID, so display that ... | Build out the rest of the registrar method | Build out the rest of the registrar method
| PHP | mit | TrustTheVote-Project/horatio-server,TrustTheVote-Project/horatio-server | php | ## Code Before:
<?php
/*
* Get the list of registrars.
*/
$registrars = json_decode(file_get_contents('../includes/registrars.json'));
if ($registrars === FALSE)
{
header('HTTP/1.0 500 Internal Server Error');
echo '500 Internal Server Error';
exit();
}
## Instruction:
Build out the rest of the registrar met... |
728a9cda2e8c14aeacbf57189e757496b9f35a2b | app/views/apps/edit.html.haml | app/views/apps/edit.html.haml | .page-header
%h1 Edit App
= render "form"
- if policy(@app).destroy?
%hr
%h3 Remove this App
%p
Here lies danger. Removing the app from Cuttlefish will permanently delete the app, the associated emails and can not be undone!
%p
= button_to "Remove App", @app, confirm: "Are you sure?", method: :dele... | .page-header
%h1 Edit App
= render "form"
- if policy(@app).destroy?
.alert.alert-block
%h2 Remove this App
%p
Here lies danger. Removing the app from Cuttlefish will permanently delete the app, the associated emails and can not be undone!
%p
= button_to "Remove App", @app, confirm: "Are y... | Make the dangerous bit more obviously dangerous | Make the dangerous bit more obviously dangerous
| Haml | agpl-3.0 | idlweb/cuttlefish,pratyushmittal/cuttlefish,idlweb/cuttlefish,idlweb/cuttlefish,pratyushmittal/cuttlefish,idlweb/cuttlefish,pratyushmittal/cuttlefish,pratyushmittal/cuttlefish | haml | ## Code Before:
.page-header
%h1 Edit App
= render "form"
- if policy(@app).destroy?
%hr
%h3 Remove this App
%p
Here lies danger. Removing the app from Cuttlefish will permanently delete the app, the associated emails and can not be undone!
%p
= button_to "Remove App", @app, confirm: "Are you sure?... |
44656033eb8c2caf2d90439baf661abb44257184 | run.sh | run.sh |
vertx run app.coffee -cp "lib/ehcache-core-2.6.0.jar:lib/slf4j-api-1.7.0.jar:lib/slf4j-simple-1.7.0.jar:lib/handlebars-0.5.3.jar:lib/commons-lang3-3.1.jar:lib/parboiled-java-1.0.2.jar:lib/parboiled-core-1.0.2.jar:lib/asm-3.3.1.jar"
|
vertx run app.coffee -cp "lib/ehcache-core-2.6.0.jar:lib/slf4j-api-1.7.0.jar:lib/slf4j-simple-1.7.0.jar:lib/handlebars-0.5.3.jar:lib/commons-lang3-3.1.jar:lib/parboiled-java-1.0.2.jar:lib/parboiled-core-1.0.2.jar:lib/asm-3.3.1.jar" -Xmx 512M
| Set max heap size to 512M to prevent OOM errors. | Set max heap size to 512M to prevent OOM errors.
| Shell | mit | reitti/reittiopas,reitti/reittiopas | shell | ## Code Before:
vertx run app.coffee -cp "lib/ehcache-core-2.6.0.jar:lib/slf4j-api-1.7.0.jar:lib/slf4j-simple-1.7.0.jar:lib/handlebars-0.5.3.jar:lib/commons-lang3-3.1.jar:lib/parboiled-java-1.0.2.jar:lib/parboiled-core-1.0.2.jar:lib/asm-3.3.1.jar"
## Instruction:
Set max heap size to 512M to prevent OOM errors.
## C... |
9faf9362fabd9bac37991986617ee7bf51ce0642 | application/views/messages/passwordResetCompleteMessage.php | application/views/messages/passwordResetCompleteMessage.php |
<div id="message" style='width:450px;'>
<h1>Password Reset Complete</h1>
<div id="authBox">
<p>Your account's password has been reset. An email has been dispatched with a temporary password you may use to login and then change it to anything you wish.</p>
</div>
</div> | <div class="container">
<div class="row">
<h2>Password Reset Complete</h2>
<p>Your account's password has been reset. An email has been dispatched with a temporary password you may use to login and then change it to anything you wish.</p>
</div>
</div> | Update password reset complete page to latest bootstrap. | Update password reset complete page to latest bootstrap.
| PHP | mit | marekr/siggy,marekr/siggy,marekr/siggy,marekr/siggy | php | ## Code Before:
<div id="message" style='width:450px;'>
<h1>Password Reset Complete</h1>
<div id="authBox">
<p>Your account's password has been reset. An email has been dispatched with a temporary password you may use to login and then change it to anything you wish.</p>
</div>
</div... |
7f8c1f8560f58bf7466f09abcfd5de3b6f32e9d6 | shippable.yml | shippable.yml | language: none
build:
pre_ci_boot:
image_name: tomekw/ada-gnat
image_tag: 7.3.0
pull: true
ci:
- apt update
- apt install -y --no-install-recommends gprbuild make libahven6-dev lcov git ca-certificates libegl1-mesa-dev
- git clone https://github.com/onox/json-ada.git
- cd json-ada; make... | language: none
build:
pre_ci_boot:
image_name: tomekw/ada-gnat
image_tag: 7.3.0
pull: true
ci:
- apt update
- apt install -y --no-install-recommends gprbuild make libahven6-dev lcov git ca-certificates libegl1-mesa-dev
- git clone https://github.com/onox/json-ada.git
- git clone https:/... | Fix CI after adding dcf-ada project as a dependency | Fix CI after adding dcf-ada project as a dependency
Signed-off-by: onox <34c1d3d2d1347bea60a26f46574de21a7a79b6d5@gmail.com>
| YAML | apache-2.0 | onox/orka | yaml | ## Code Before:
language: none
build:
pre_ci_boot:
image_name: tomekw/ada-gnat
image_tag: 7.3.0
pull: true
ci:
- apt update
- apt install -y --no-install-recommends gprbuild make libahven6-dev lcov git ca-certificates libegl1-mesa-dev
- git clone https://github.com/onox/json-ada.git
- c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.