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
7097e220fb78e0e7afc57df63a47566e8862cff4
docs/api.rst
docs/api.rst
.. _api: ************* API Reference ************* All public functions are available from the main module. .. code-block:: python import pydash pydash.<function> Arrays ====== .. automodule:: pydash.arrays :members: Chaining ======== .. automodule:: pydash.chaining :members: Collections ==...
.. _api: ************* API Reference ************* All public functions are available from the main module. .. code-block:: python import pydash pydash.<function> Arrays ====== .. automodule:: pydash.arrays :members: Chaining ======== .. automodule:: pydash.chaining :members: Collections ==...
Add Predicates section to API docs.
Add Predicates section to API docs.
reStructuredText
mit
jacobbridges/pydash,dgilland/pydash,bharadwajyarlagadda/pydash
restructuredtext
## Code Before: .. _api: ************* API Reference ************* All public functions are available from the main module. .. code-block:: python import pydash pydash.<function> Arrays ====== .. automodule:: pydash.arrays :members: Chaining ======== .. automodule:: pydash.chaining :members: ...
42a71fada14897aa3130b5466f16eaa6bbf553c6
README.md
README.md
buffer-firefoxos ================ Buffer client for FirefoxOS
1. Install ```Firefox``` 2. Install [Redirector](https://addons.mozilla.org/en-US/firefox/addon/redirector/) extension to simulate the [redirect feature](https://developer.mozilla.org/en-US/Apps/Build/Manifest#redirects) of Firefox OS apps 1. Create a new rule 2. ```Include pattern``` should be like that : http://ww...
Add instructions to setup the development environment
Add instructions to setup the development environment
Markdown
apache-2.0
yrezgui/buffer-firefoxos
markdown
## Code Before: buffer-firefoxos ================ Buffer client for FirefoxOS ## Instruction: Add instructions to setup the development environment ## Code After: 1. Install ```Firefox``` 2. Install [Redirector](https://addons.mozilla.org/en-US/firefox/addon/redirector/) extension to simulate the [redirect feature](...
59d941642c10b2a71fb368b2981f71e77a89d4ae
package.json
package.json
{ "private": true, "name": "horizon", "description": "Home of the Horizon theme for VS Code", "author": "Jonathan Olaleye", "license": "MIT", "homepage": "https://github.com/jolaleye/horizon#readme", "repository": { "type": "git", "url": "git+https://github.com/jolaleye/horizon.git" }, "bugs":...
{ "private": true, "name": "horizon", "description": "Home of the Horizon theme for VS Code", "author": "Jonathan Olaleye", "license": "MIT" }
Remove homepage, repo, and bugs fields
Remove homepage, repo, and bugs fields
JSON
mit
jolaleye/horizon-theme-vscode
json
## Code Before: { "private": true, "name": "horizon", "description": "Home of the Horizon theme for VS Code", "author": "Jonathan Olaleye", "license": "MIT", "homepage": "https://github.com/jolaleye/horizon#readme", "repository": { "type": "git", "url": "git+https://github.com/jolaleye/horizon.git...
d328de60f170292a34e44f1ff7d3a37d192e5e1a
bin/travis-run.sh
bin/travis-run.sh
echo "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml sudo service jetty restart nosetests --ckan \ --nologcapture \ --with-pylons=subdir/test.ini \ --with-coverage \...
echo "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml sudo service jetty restart nosetests --ckan \ --nologcapture \ --with-pylons=test.travis.ini \ --with-coverage \...
Use different ini file for Travis
Use different ini file for Travis
Shell
agpl-3.0
ViderumGlobal/ckanext-tayside,ViderumGlobal/ckanext-tayside,ViderumGlobal/ckanext-tayside,ViderumGlobal/ckanext-tayside
shell
## Code Before: echo "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml sudo service jetty restart nosetests --ckan \ --nologcapture \ --with-pylons=subdir/test.ini \ -...
bb5ecbcc59c37c839c30d5f61f78ea76b1c44ed6
src/php-abac/Test/Manager/AttributeManagerTest.php
src/php-abac/Test/Manager/AttributeManagerTest.php
<?php namespace PhpAbac\Test\Manager; use PhpAbac\Abac; class AttributeManagerTest extends \PHPUnit_Framework_TestCase { /** @var \PhpAbac\Manager\AttributeManager **/ private $manager; public function setUp() { new Abac(new \PDO( 'mysql:host=' . $GLOBALS['MYSQL_DB_HOST'] . ';' ....
<?php namespace PhpAbac\Test\Manager; use PhpAbac\Abac; class AttributeManagerTest extends \PHPUnit_Framework_TestCase { /** @var \PhpAbac\Manager\AttributeManager **/ private $manager; public function setUp() { new Abac(new \PDO( 'mysql:host=' . $GLOBALS['MYSQL_DB_HOST'] . ';' ....
Fix attributes manager test to fit the new model
Fix attributes manager test to fit the new model
PHP
mit
Kilix/php-abac
php
## Code Before: <?php namespace PhpAbac\Test\Manager; use PhpAbac\Abac; class AttributeManagerTest extends \PHPUnit_Framework_TestCase { /** @var \PhpAbac\Manager\AttributeManager **/ private $manager; public function setUp() { new Abac(new \PDO( 'mysql:host=' . $GLOBALS['MYSQL_D...
5e194e3c4f0a468d3bbdfc85c4124fef0ed1e884
.forestry/front_matter/templates/g3ortega-blog.yml
.forestry/front_matter/templates/g3ortega-blog.yml
--- label: g3ortega blog hide_body: false is_partial: false fields: - type: text name: title label: Title config: required: true - type: datetime label: Date name: date config: date_format: YYYY-MM-DD time_format: h:mm A ZZ required: true - type: select config: source: type: simp...
--- label: g3ortega blog hide_body: false is_partial: false fields: - type: text name: title label: Title config: required: true - type: datetime label: Date name: date config: date_format: YYYY-MM-DD time_format: h:mm A ZZ required: true - type: select config: source: type: simp...
Update from Forestry.io - Updated Forestry configuration
Update from Forestry.io - Updated Forestry configuration
YAML
mit
g3ortega/g3ortega.github.com,g3ortega/g3ortega.github.com
yaml
## Code Before: --- label: g3ortega blog hide_body: false is_partial: false fields: - type: text name: title label: Title config: required: true - type: datetime label: Date name: date config: date_format: YYYY-MM-DD time_format: h:mm A ZZ required: true - type: select config: source: ...
5184ae714e73247e47e67aa5e0c8b8f663a1c112
README.md
README.md
LaTeX-Fig ========= A MATLAB script to export figures using a system installation of LaTeX to process text objects. **Basic usage:** Make sure the latex\_fig.m file is in your MATLAB path and type "help latex\_fig". Also see the "example.m" file for an example usage case. **Known issues:** - Rasterized plot objects...
LaTeX-Fig ========= A MATLAB script to export figures using a system installation of LaTeX to process text objects. **Basic usage:** Make sure the latex\_fig.m file is in your MATLAB path and type `help latex_fig`. Also see the example.m file for an example usage case. **Known issues:** - Rasterized plot objects ar...
Update known issues and slight reformatting.
Update known issues and slight reformatting.
Markdown
mit
dmlipinski/LaTeX-Fig
markdown
## Code Before: LaTeX-Fig ========= A MATLAB script to export figures using a system installation of LaTeX to process text objects. **Basic usage:** Make sure the latex\_fig.m file is in your MATLAB path and type "help latex\_fig". Also see the "example.m" file for an example usage case. **Known issues:** - Rasteri...
b834040b9426954cde912b685af7505b741dab4a
control.c
control.c
struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (packet.plug & 0x3); return binary & 0xFF; } void bi...
struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (packet.plug & 0x3); return binary & 0xFF; } void bi...
Rename printBinary function and write to string instead
Rename printBinary function and write to string instead printBinary is now called btoa (binary to ascii) btoa accepts the number, a buffer and a number of digits buffer length must be (digits + 1)
C
agpl-3.0
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
c
## Code Before: struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (packet.plug & 0x3); return binary & ...
5466613a4d34698e768bef636e8d6c5e0741f86c
templates/qpidd.conf.erb
templates/qpidd.conf.erb
port=<%= port %> max-connections=<%= max_connections %> worker-threads=<%= worker_threads %> connection-backlog=<%= connection_backlog %> auth=<%= auth %> realm=<%= realm %> <% if clustered == true %> <%= mechanism_option %>=<%= cluster_mechanism %> <% end %> <% if log_to_file != 'UNSET' %> log-to-file=<%= log_to_file ...
port=<%= @port %> max-connections=<%= @max_connections %> worker-threads=<%= @worker_threads %> connection-backlog=<%= @connection_backlog %> auth=<%= @auth %> realm=<%= @realm %> <% if @clustered == true %> <%= @mechanism_option %>=<%= @cluster_mechanism %> <% end %> <% if @log_to_file != 'UNSET' %> log-to-file=<%= @l...
Use instance instead of local variables in template
Use instance instead of local variables in template Otherwise, newer Puppet versions will show deprecation warnings.
HTML+ERB
apache-2.0
jpoittevin/puppet-qpid,plumgrid/puppet-qpid,dprince/puppet-qpid,jpoittevin/puppet-qpid,plumgrid/puppet-qpid,dprince/puppet-qpid
html+erb
## Code Before: port=<%= port %> max-connections=<%= max_connections %> worker-threads=<%= worker_threads %> connection-backlog=<%= connection_backlog %> auth=<%= auth %> realm=<%= realm %> <% if clustered == true %> <%= mechanism_option %>=<%= cluster_mechanism %> <% end %> <% if log_to_file != 'UNSET' %> log-to-file=...
6cdd0a49cfc8a91fd51b935fabe0d97c7a99c065
views/index.jade
views/index.jade
extends layout block content h1= title p Welcome to #{title} a(href="https://www.facebook.com/dialog/oauth?client_id=" + facebookAppId + "&redirect_uri=https://salty-beach-7387.herokuapp.com/facebook/&scope=public_profile,user_friends,email,user_about_me,user_actions.books,user_actions.fitness,user_actions.music...
extends layout block content h1= title p Welcome to #{title} a(href="https://www.facebook.com/dialog/oauth?client_id=" + facebookAppId + "&redirect_uri=https://salty-beach-7387.herokuapp.com/facebook/&scope=public_profile,user_friends,email,user_about_me,user_actions.books,user_actions.fitness,user_actions.music...
Add all links to the title page
Add all links to the title page
Jade
mpl-2.0
augustinas/DataPlugFacebook,Hub-of-all-Things/DataPlugFacebook,augustinas/DataPlugFacebook
jade
## Code Before: extends layout block content h1= title p Welcome to #{title} a(href="https://www.facebook.com/dialog/oauth?client_id=" + facebookAppId + "&redirect_uri=https://salty-beach-7387.herokuapp.com/facebook/&scope=public_profile,user_friends,email,user_about_me,user_actions.books,user_actions.fitness,us...
7363c2296e26719e1db3044bbf01e1f1b38242cd
Slug/UniqueSlugHandler.php
Slug/UniqueSlugHandler.php
<?php /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\ContentBundle\Slu...
<?php /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\ContentBundle\Slu...
Use constants with "getRepository()" methods.
Use constants with "getRepository()" methods.
PHP
mit
DarvinStudio/DarvinContentBundle,DarvinStudio/DarvinContentBundle
php
## Code Before: <?php /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\C...
3602759b633f0643979c8f0970e088f29644b758
icekit/plugins/brightcove/models.py
icekit/plugins/brightcove/models.py
from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from fluent_contents.models import ContentItem try: from django_brightcove.fields import BrightcoveField except ImportError: raise NotImplementedError( _( 'Please install `...
from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from fluent_contents.models import ContentItem try: from django_brightcove.fields import BrightcoveField except ImportError: raise NotImplementedError( _( 'Please install `...
Remove comment as media addition automatically happens.
Remove comment as media addition automatically happens.
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
python
## Code Before: from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from fluent_contents.models import ContentItem try: from django_brightcove.fields import BrightcoveField except ImportError: raise NotImplementedError( _( '...
4bbede501663f3db2f1a62a1d52fd7f117f7614d
.travis.yml
.travis.yml
language: python python: - "2.7" addons: apt: packages: - libatlas-dev - libatlas-base-dev - liblapack-dev - libproj-dev - gfortran - gdal-bin - libgdal1-dev install: # Expand include path for building python-gdal bindings. - export CPLUS_INCLUDE...
language: python python: - "2.7" addons: apt: packages: - libatlas-dev - libatlas-base-dev - liblapack-dev - libproj-dev - gfortran - gdal-bin - libgdal1-dev install: # Expand include path for building python-gdal bindings. - export CPLUS_INCLUDE...
Add API code to Travis quality check.
Add API code to Travis quality check.
YAML
apache-2.0
ama-jharrison/agdc,ama-jharrison/agdc
yaml
## Code Before: language: python python: - "2.7" addons: apt: packages: - libatlas-dev - libatlas-base-dev - liblapack-dev - libproj-dev - gfortran - gdal-bin - libgdal1-dev install: # Expand include path for building python-gdal bindings. - expo...
a1ad95957a0c623d69393b013a2355bc79bfe490
karma.conf.js
karma.conf.js
const reporters = ['mocha', 'coverage'] if (process.env.COVERALLS_REPO_TOKEN) { reporters.push('coveralls') } module.exports = function (config) { config.set({ singleRun: true, browsers: ['Firefox'], frameworks: ['mocha'], reporters, coverageReporter: { dir: 'build/coverage', report...
const reporters = ['mocha', 'coverage'] if (process.env.COVERALLS_REPO_TOKEN) { reporters.push('coveralls') } module.exports = function (config) { config.set({ singleRun: true, browsers: ['Firefox'], frameworks: ['mocha'], reporters, coverageReporter: { dir: 'build/coverage', report...
Switch unit test stubs to sinon-chrome-webextensions.min.js
Switch unit test stubs to sinon-chrome-webextensions.min.js
JavaScript
cc0-1.0
lidel/ipfs-firefox-addon,lidel/ipfs-firefox-addon,lidel/ipfs-firefox-addon
javascript
## Code Before: const reporters = ['mocha', 'coverage'] if (process.env.COVERALLS_REPO_TOKEN) { reporters.push('coveralls') } module.exports = function (config) { config.set({ singleRun: true, browsers: ['Firefox'], frameworks: ['mocha'], reporters, coverageReporter: { dir: 'build/coverag...
4cfecfa2d4734c968ca6d3d1b65ec7e720f63081
index.js
index.js
/** * Created by tshen on 16/7/15. */ 'use strict' import {NativeModules} from 'react-native'; const NativeSimpleFetch = NativeModules.SimpleFetch; const fetch = function (url, options) { const params = { url: url, method: options.method ? options.method.toUpperCase() : 'GET', headers: o...
/** * Created by tshen on 16/7/15. */ 'use strict' import {NativeModules} from 'react-native'; const NativeSimpleFetch = NativeModules.SimpleFetch; const fetch = function (url, options) { const params = { url: url, method: options.method ? options.method.toUpperCase() : 'GET', headers: o...
Fix bug. Remove console logs.
Fix bug. Remove console logs.
JavaScript
mit
liaoyuan-io/react-native-simple-fetch
javascript
## Code Before: /** * Created by tshen on 16/7/15. */ 'use strict' import {NativeModules} from 'react-native'; const NativeSimpleFetch = NativeModules.SimpleFetch; const fetch = function (url, options) { const params = { url: url, method: options.method ? options.method.toUpperCase() : 'GET', ...
cc1741b1037bcf4f79be00cd3bf43c642cc01a34
app/views/user_site_settings/_form.html.erb
app/views/user_site_settings/_form.html.erb
<%= form_for @preference do |f| %> <div class="field"> <%= f.label :max_flags, "Maximum autoflags per day" %><br/> <%= f.number_field :max_flags, :class => "form-control" %> </div><br/> <div class="field"> <%= f.label :sites, "Sites" %><br/> <%= f.select :sites, options_for_select(Site.mains.orde...
<%= form_for @preference do |f| %> <div class="field"> <%= f.label :max_flags, "Maximum autoflags per day (per site)" %><br/> <%= f.number_field :max_flags, :class => "form-control" %> </div><br/> <div class="field"> <%= f.label :sites, "Sites" %><br/> <%= f.select :sites, options_for_select(Site...
Add clarification to max autoflags preferences
Add clarification to max autoflags preferences See #106
HTML+ERB
cc0-1.0
angussidney/metasmoke,j-f1/forked-metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,angussidney/metasmoke,Charcoal-SE/metasmoke,angussidney/metasmoke,j-f1/forked-metasmoke,SulphurDioxide/metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,angussidney/metasmoke,SulphurDioxide/metasmoke,Sulphu...
html+erb
## Code Before: <%= form_for @preference do |f| %> <div class="field"> <%= f.label :max_flags, "Maximum autoflags per day" %><br/> <%= f.number_field :max_flags, :class => "form-control" %> </div><br/> <div class="field"> <%= f.label :sites, "Sites" %><br/> <%= f.select :sites, options_for_select...
030d3f15a8a684e783e1842a888899b7cddb4cc4
app/helpers/multi_year_charts_helper.rb
app/helpers/multi_year_charts_helper.rb
module MultiYearChartsHelper # Public: The full URL to the Multi-Year Charts application for an instance of # MultiYearCharts. # # Returns a string. def myc_url(multi_year_chart) "#{APP_CONFIG[:multi_year_charts_url]}/#{multi_year_chart.redirect_slug}" end def can_use_as_myc_scenario?(saved_scenario)...
module MultiYearChartsHelper # Public: The full URL to the Multi-Year Charts application for an instance of # MultiYearCharts. # # Returns a string. def myc_url(multi_year_chart) "#{APP_CONFIG[:multi_year_charts_url]}/" \ "#{multi_year_chart.redirect_slug}?locale=#{I18n.locale}" end def can_use_a...
Include locale parameter when redirecting to MYC
Include locale parameter when redirecting to MYC
Ruby
mit
quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel
ruby
## Code Before: module MultiYearChartsHelper # Public: The full URL to the Multi-Year Charts application for an instance of # MultiYearCharts. # # Returns a string. def myc_url(multi_year_chart) "#{APP_CONFIG[:multi_year_charts_url]}/#{multi_year_chart.redirect_slug}" end def can_use_as_myc_scenario?...
94d664c3beb39a1b9d9498201b2207c9fb5dc84d
appveyor.yml
appveyor.yml
branches: only: - master version: 0.1.{build} skip_tags: true assembly_info: patch: true file: '**\SharedAssemblyInfo.*' assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}-beta" configuration: Release nuget: account_feed: true project_fee...
branches: only: - master version: 0.1.{build} skip_tags: true assembly_info: patch: true file: '**\SharedAssemblyInfo.*' assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}-beta" configuration: Release nuget: account_feed: true project_fee...
Disable publishing to nuget feed for PRs
Disable publishing to nuget feed for PRs
YAML
mit
xt0rted/Nancy.Validation.DataAnnotations.Extensions
yaml
## Code Before: branches: only: - master version: 0.1.{build} skip_tags: true assembly_info: patch: true file: '**\SharedAssemblyInfo.*' assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}-beta" configuration: Release nuget: account_feed: tr...
18de95a09f682987e4d250f1e94ef6074890275f
docs/references/resources.rst
docs/references/resources.rst
Resources ========= * `QPDF Manual`_ * `PDF 1.7`_ ISO Specification PDF 32000-1:2008 * `Adobe Supplement to ISO 32000 BaseVersion 1.7 ExtensionLevel 3`_, Adobe Acrobat 9.0, June 2008, for AESv3 * Other `Adobe extensions`_ to the PDF specification .. _QPDF Manual: https://qpdf.readthedocs.io/ .. _PDF 1.7: https://...
Resources ========= * `QPDF Manual`_ * `PDF 1.7`_ ISO Specification PDF 32000-1:2008 * `Adobe Supplement to ISO 32000 BaseVersion 1.7 ExtensionLevel 3`_, Adobe Acrobat 9.0, June 2008, for AESv3 * Other `Adobe extensions`_ to the PDF specification .. _QPDF Manual: https://qpdf.readthedocs.io/ .. _PDF 1.7: https://...
Fix broken link to PDF 1.7 Specification
Manual: Fix broken link to PDF 1.7 Specification
reStructuredText
mpl-2.0
pikepdf/pikepdf,pikepdf/pikepdf,pikepdf/pikepdf
restructuredtext
## Code Before: Resources ========= * `QPDF Manual`_ * `PDF 1.7`_ ISO Specification PDF 32000-1:2008 * `Adobe Supplement to ISO 32000 BaseVersion 1.7 ExtensionLevel 3`_, Adobe Acrobat 9.0, June 2008, for AESv3 * Other `Adobe extensions`_ to the PDF specification .. _QPDF Manual: https://qpdf.readthedocs.io/ .. _P...
5a5565b39d96ce64767089bab8911ed891f44374
isaac_math.js
isaac_math.js
// Math Library for ISAAC Physics. // addVector function. // Takes in two vectors, returns a new vector made by adding // the inputs together. If the two input vectors don't have the same // length, the first input vector will be returned. function addVector (vectorA, vectorB) { if(vectorA.length === vectorB.length) ...
// Math Library for ISAAC Physics. // addVector function. // Takes in two vectors, returns a new vector made by adding // the inputs together. If the two input vectors don't have the same // length, the first input vector will be returned. function addVector (vectorA, vectorB) { if(vectorA.length === vectorB.length) ...
Add dot product function to math module.
Add dot product function to math module.
JavaScript
mit
isaacjs/ISAAC
javascript
## Code Before: // Math Library for ISAAC Physics. // addVector function. // Takes in two vectors, returns a new vector made by adding // the inputs together. If the two input vectors don't have the same // length, the first input vector will be returned. function addVector (vectorA, vectorB) { if(vectorA.length === ...
5632daecf9c5f271eeba0f9948d88f44d6a070d0
irclogview/models.py
irclogview/models.py
from django.db import models from picklefield.fields import PickledObjectField class Channel(models.Model): name = models.SlugField(max_length=50, unique=True) updated = models.DateTimeField(auto_now=True) def __unicode__(self): return u'#%s' % self.name class Log(models.Model): channel = mo...
from django.db import models from picklefield.fields import PickledObjectField from . import utils class Channel(models.Model): name = models.SlugField(max_length=50, unique=True) updated = models.DateTimeField(auto_now=True) def __unicode__(self): return u'#%s' % self.name class Log(models.Mod...
Add function to get content in list of dicts format
Add function to get content in list of dicts format
Python
agpl-3.0
BlankOn/irclogview,fajran/irclogview,fajran/irclogview,BlankOn/irclogview
python
## Code Before: from django.db import models from picklefield.fields import PickledObjectField class Channel(models.Model): name = models.SlugField(max_length=50, unique=True) updated = models.DateTimeField(auto_now=True) def __unicode__(self): return u'#%s' % self.name class Log(models.Model): ...
1fbcbd9b36f5d3af6f8a948fc9122f313fd141ca
manifests/prometheus/alerts.d/diego_cell_rep_memory_capacity.yml
manifests/prometheus/alerts.d/diego_cell_rep_memory_capacity.yml
--- - type: replace path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/- value: name: DiegoCellRepMemoryCapacity rules: - record: rep_memory_capacity_pct:avg5m expr: > 100 * sum(avg_over_time(firehose_value_metric_rep_capacity_...
--- - type: replace path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/- value: name: DiegoCellRepMemoryCapacity rules: - record: rep_memory_capacity_pct:avg5m expr: > 100 * sum(avg_over_time(firehose_value_metric_rep_capacity_...
Revert "Include `bosh_job_name` label in cell memory metrics"
Revert "Include `bosh_job_name` label in cell memory metrics" This reverts commit a0aa3c091b8a3dd4062007798a128d3998b7b31c.
YAML
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
yaml
## Code Before: --- - type: replace path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/- value: name: DiegoCellRepMemoryCapacity rules: - record: rep_memory_capacity_pct:avg5m expr: > 100 * sum(avg_over_time(firehose_value_metr...
e88f90bba02b0e4388408fcbf46866f61d802593
README.md
README.md
ASP.NET MVC === AppVeyor: [![AppVeyor](https://ci.appveyor.com/api/projects/status/969jbosi0qwc1awg/branch/dev?svg=true)](https://ci.appveyor.com/project/aspnetci/mvc/branch/dev) Travis: [![Travis](https://travis-ci.org/aspnet/Mvc.svg?branch=dev)](https://travis-ci.org/aspnet/Mvc) ASP.NET MVC gives you a powerful, ...
ASP.NET MVC === AppVeyor: [![AppVeyor](https://ci.appveyor.com/api/projects/status/969jbosi0qwc1awg/branch/dev?svg=true)](https://ci.appveyor.com/project/aspnetci/mvc/branch/dev) Travis: [![Travis](https://travis-ci.org/aspnet/Mvc.svg?branch=dev)](https://travis-ci.org/aspnet/Mvc) ASP.NET MVC gives you a powerful, ...
Add link to ASP.NET MVC Boilerplate
Add link to ASP.NET MVC Boilerplate
Markdown
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
markdown
## Code Before: ASP.NET MVC === AppVeyor: [![AppVeyor](https://ci.appveyor.com/api/projects/status/969jbosi0qwc1awg/branch/dev?svg=true)](https://ci.appveyor.com/project/aspnetci/mvc/branch/dev) Travis: [![Travis](https://travis-ci.org/aspnet/Mvc.svg?branch=dev)](https://travis-ci.org/aspnet/Mvc) ASP.NET MVC gives ...
ceef7aa5409b657669fca5f2065abf1a74335c45
mysite/base/templates/500.html
mysite/base/templates/500.html
{% extends 'base/one_column.html' %} {% load base_extras %} {% block title %} Error {{ block.super }} {% endblock title %} {% block body_id %}error{% endblock body_id %} {% block main %} <div class='module'> <div class='head'> <h3 style='font-size: 15pt;'>Error 500 (server error)</h3> </div> <div...
{% extends 'base/one_column.html' %} {% load base_extras %} {% block title %} Error {{ block.super }} {% endblock title %} {% block body_id %}error{% endblock body_id %} {% block main %} <div class='module'> <div class='head'> <h3 style='font-family: "Comic Sans MS"; font-size: 15pt;'>Error 500 (server e...
Use a more cheerful font on the error page.
Use a more cheerful font on the error page.
HTML
agpl-3.0
jledbetter/openhatch,SnappleCap/oh-mainline,heeraj123/oh-mainline,mzdaniel/oh-mainline,Changaco/oh-mainline,sudheesh001/oh-mainline,openhatch/oh-mainline,campbe13/openhatch,ojengwa/oh-mainline,vipul-sharma20/oh-mainline,sudheesh001/oh-mainline,heeraj123/oh-mainline,waseem18/oh-mainline,campbe13/openhatch,moijes12/oh-ma...
html
## Code Before: {% extends 'base/one_column.html' %} {% load base_extras %} {% block title %} Error {{ block.super }} {% endblock title %} {% block body_id %}error{% endblock body_id %} {% block main %} <div class='module'> <div class='head'> <h3 style='font-size: 15pt;'>Error 500 (server error)</h3> ...
198f6e31645e7f2d881dc043882170649898121d
code/content.js
code/content.js
chrome.identity.getAuthToken({ 'interactive': true }, function(token) { console.log("token" + token); }); var encoded = $("div.ep[data-eid]").attr("data-eid"); if (encoded !== undefined) { var eid = atob(encoded); }
// chrome.identity.getAuthToken({ 'interactive': true }, function(token) { // console.log("token" + token); // }); $(document).on('click', '.ep-gl-count', function () { var encoded = $("div.ep[data-eid]").attr("data-eid"); if (encoded === undefined) { return; } var decoded = atob(encoded)...
Add cost element to the event detail
Add cost element to the event detail
JavaScript
apache-2.0
mawek/google-calendar-cost
javascript
## Code Before: chrome.identity.getAuthToken({ 'interactive': true }, function(token) { console.log("token" + token); }); var encoded = $("div.ep[data-eid]").attr("data-eid"); if (encoded !== undefined) { var eid = atob(encoded); } ## Instruction: Add cost element to the event detail ## Code After: // chrome....
e70da73b3080c937d456d7132a3ffab7c0e18eca
app/views/purchased_items/new.html.erb
app/views/purchased_items/new.html.erb
<%= form_tag(controller: "purchased_items", action: "create") do %> <%= hidden_field_tag :deal_id, @deal.id %><br/> <%= hidden_field_tag :title, @deal.title %><br/> <%= hidden_field_tag :description, @deal.description %><br/> <%= label_tag :quantity %><br/> <input type="number" name="quantity" id="purchaseit...
<%= form_tag(controller: "purchased_items", action: "create") do %> <%= hidden_field_tag :deal_id, @deal.id %><br/> <%= hidden_field_tag :title, @deal.title %><br/> <%= hidden_field_tag :description, @deal.description %><br/> <%= label_tag :quantity %><br/> <input type="number" name="quantity" id="purchaseit...
Change the description on stripe modal
Change the description on stripe modal
HTML+ERB
mit
mcardacci/Full-Bellies,mcardacci/Full-Bellies,mcardacci/Full-Bellies
html+erb
## Code Before: <%= form_tag(controller: "purchased_items", action: "create") do %> <%= hidden_field_tag :deal_id, @deal.id %><br/> <%= hidden_field_tag :title, @deal.title %><br/> <%= hidden_field_tag :description, @deal.description %><br/> <%= label_tag :quantity %><br/> <input type="number" name="quantity...
6e17e781f6cb8e29a7284beffe10463c843b86b3
tests/test_vector2_equality.py
tests/test_vector2_equality.py
from hypothesis import assume, given from ppb_vector import Vector2 from utils import vectors @given(x=vectors()) def test_equal_self(x: Vector2): assert x == x @given(x=vectors()) def test_non_zero_equal(x: Vector2): assume(x != (0, 0)) assert x != 1.1 * x @given(x=vectors(), y=vectors()) def test_not_equal_...
from hypothesis import assume, given from ppb_vector import Vector2 from utils import vectors @given(x=vectors()) def test_equal_self(x: Vector2): assert x == x @given(x=vectors()) def test_non_zero_equal(x: Vector2): assume(x != (0, 0)) assert x != 1.1 * x assert x != -x @given(x=vectors(), y=vectors()) de...
Add another (generated) negative example
tests/equality: Add another (generated) negative example
Python
artistic-2.0
ppb/ppb-vector,ppb/ppb-vector
python
## Code Before: from hypothesis import assume, given from ppb_vector import Vector2 from utils import vectors @given(x=vectors()) def test_equal_self(x: Vector2): assert x == x @given(x=vectors()) def test_non_zero_equal(x: Vector2): assume(x != (0, 0)) assert x != 1.1 * x @given(x=vectors(), y=vectors()) def...
0cdfe6d3018b2a7edad514234cce8997a8fb8e26
docs/README.md
docs/README.md
The Basics: 1. [Creating Reagent Components](/docs/CreatingReagentComponents.md) 2. [Using [square brackets] instead of (parentheses)](/docs/UsingSquareBracketsInsteadOfParens.md) 3. [When do components update?](/docs/WhenDoComponentsUpdate.md) Also: * [purelyfunctional.tv ](https://purelyfunctional.tv/guide/reage...
The Basics: 1. [Creating Reagent Components](/docs/CreatingReagentComponents.md) 2. [Using [square brackets] instead of (parentheses)](/docs/UsingSquareBracketsInsteadOfParens.md) 3. [When do components update?](/docs/WhenDoComponentsUpdate.md) Also: * [purelyfunctional.tv ](https://purelyfunctional.tv/guide/reage...
Add Using Stateful JS Components
Add Using Stateful JS Components
Markdown
mit
reagent-project/reagent,reagent-project/reagent,reagent-project/reagent
markdown
## Code Before: The Basics: 1. [Creating Reagent Components](/docs/CreatingReagentComponents.md) 2. [Using [square brackets] instead of (parentheses)](/docs/UsingSquareBracketsInsteadOfParens.md) 3. [When do components update?](/docs/WhenDoComponentsUpdate.md) Also: * [purelyfunctional.tv ](https://purelyfunctiona...
4631a2192b24675f61f4eec5ab68e273ea47cca8
sklearn/svm/sparse/base.py
sklearn/svm/sparse/base.py
import numpy as np import scipy.sparse from abc import ABCMeta, abstractmethod from ..base import BaseLibSVM class SparseBaseLibSVM(BaseLibSVM): __metaclass__ = ABCMeta @abstractmethod def __init__(self, impl, kernel, degree, gamma, coef0, tol, C, nu, epsilon, shrinking, probability, ca...
import numpy as np import scipy.sparse from abc import ABCMeta, abstractmethod from ..base import BaseLibSVM class SparseBaseLibSVM(BaseLibSVM): __metaclass__ = ABCMeta @abstractmethod def __init__(self, impl, kernel, degree, gamma, coef0, tol, C, nu, epsilon, shrinking, probability, ca...
FIX sparse OneClassSVM was using the wrong parameter
FIX sparse OneClassSVM was using the wrong parameter
Python
bsd-3-clause
rishikksh20/scikit-learn,kmike/scikit-learn,JPFrancoia/scikit-learn,B3AU/waveTree,themrmax/scikit-learn,vybstat/scikit-learn,kaichogami/scikit-learn,IndraVikas/scikit-learn,walterreade/scikit-learn,tosolveit/scikit-learn,macks22/scikit-learn,AlexRobson/scikit-learn,heli522/scikit-learn,robbymeals/scikit-learn,xuewei4d/...
python
## Code Before: import numpy as np import scipy.sparse from abc import ABCMeta, abstractmethod from ..base import BaseLibSVM class SparseBaseLibSVM(BaseLibSVM): __metaclass__ = ABCMeta @abstractmethod def __init__(self, impl, kernel, degree, gamma, coef0, tol, C, nu, epsilon, shrinking,...
3eb27f7d910bf8a33be0eaa17214b11c339fe653
scripts/calculate_eos.sh
scripts/calculate_eos.sh
./LennardJones.py 0.1 ./LennardJones.py 0.2 ./LennardJones.py 0.3 ./LennardJones.py 0.4 ./LennardJones.py 0.5 ./LennardJones.py 0.6 ./LennardJones.py 0.7 ./LennardJones.py 0.8 ./LennardJones.py 0.9 ./LennardJones.py 1.0 ./LennardJones.py 1.05
./LennardJones.py dn0.1 ./LennardJones.py dn0.2 ./LennardJones.py dn0.3 ./LennardJones.py dn0.4 ./LennardJones.py dn0.5 ./LennardJones.py dn0.6 ./LennardJones.py dn0.7 ./LennardJones.py dn0.8 ./LennardJones.py dn0.9 ./LennardJones.py dn1.0 ./LennardJones.py dn1.05
Update EOS generation script with new syntax
Update EOS generation script with new syntax
Shell
mit
hkaju/LennardJones,hkaju/LennardJones,hkaju/LennardJones
shell
## Code Before: ./LennardJones.py 0.1 ./LennardJones.py 0.2 ./LennardJones.py 0.3 ./LennardJones.py 0.4 ./LennardJones.py 0.5 ./LennardJones.py 0.6 ./LennardJones.py 0.7 ./LennardJones.py 0.8 ./LennardJones.py 0.9 ./LennardJones.py 1.0 ./LennardJones.py 1.05 ## Instruction: Update EOS generation script with new syntax...
19de35d8124a67e459a69080156bd310bb3814ea
rate_delta_point.py
rate_delta_point.py
from numpy import * from scipy import * from scipy.interpolate import interp1d from scipy.interpolate import pchip import sys import os import argparse import json a = flipud(loadtxt(sys.argv[1])); b = flipud(loadtxt(sys.argv[2])); for m in range(0,4): ya = a[:,3+m] yb = b[:,3+m] ra = a[:,2]*8./a[:,1] ...
from numpy import * from scipy import * from scipy.interpolate import interp1d from scipy.interpolate import pchip import sys import os import argparse import json a = flipud(loadtxt(sys.argv[1])); b = flipud(loadtxt(sys.argv[2])); for m in range(0,11): try: ya = a[:,3+m] yb = b[:,3+m] ra...
Support all metrics for points.
Support all metrics for points.
Python
mit
tdaede/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy
python
## Code Before: from numpy import * from scipy import * from scipy.interpolate import interp1d from scipy.interpolate import pchip import sys import os import argparse import json a = flipud(loadtxt(sys.argv[1])); b = flipud(loadtxt(sys.argv[2])); for m in range(0,4): ya = a[:,3+m] yb = b[:,3+m] ra = a[:...
19e72171793322cb3cf5031b6d20a3dd7b270957
client/components/filters/ordinal-date/ordinal-date.filter.js
client/components/filters/ordinal-date/ordinal-date.filter.js
'use strict'; angular.module('mementoMovieApp') .filter('ordinalDate', function ($filter) { var suffixes = ["th", "st", "nd", "rd"]; return function(input) { if (!input) { return; } var date = new Date(input); var monthYear = $filter('date')(date, 'MMMM yyyy').split(' '); ...
'use strict'; angular.module('mementoMovieApp') .filter('ordinalDate', function ($filter) { var suffixes = ["th", "st", "nd", "rd"]; return function(input) { if (!input) { return; } var date; if (input.indexOf('9999') === 0) { return 'TBA'; } else if (input.in...
Handle different movie release date estimation formats.
Handle different movie release date estimation formats.
JavaScript
mit
ssidorchick/mementomovie
javascript
## Code Before: 'use strict'; angular.module('mementoMovieApp') .filter('ordinalDate', function ($filter) { var suffixes = ["th", "st", "nd", "rd"]; return function(input) { if (!input) { return; } var date = new Date(input); var monthYear = $filter('date')(date, 'MMMM yyyy')...
273832122c80c13bff399242f9139067ca518ef5
docpad.coffee
docpad.coffee
docpadConfig = { templateData: site: title: "Dorian Patterson" getPreparedTitle: -> if @document.title then "#{@document.title} | #{@site.title}" else @site.title } # Export the Configuration module.exports = docpadConfig
docpadConfig = { templateData: site: title: "Curly Hair Coder" getPreparedTitle: -> if @document.title then "#{@document.title} | #{@site.title}" else @site.title collections: pages: -> @getCollection("html").findAllLive({isPage:true}) } # Export the Configuration module.exports = docpadConfig
Change site title and add collection function.
Change site title and add collection function.
CoffeeScript
mit
imaginationac/imaginationac.github.com
coffeescript
## Code Before: docpadConfig = { templateData: site: title: "Dorian Patterson" getPreparedTitle: -> if @document.title then "#{@document.title} | #{@site.title}" else @site.title } # Export the Configuration module.exports = docpadConfig ## Instruction: Change site title and add collection function. ## Co...
e06c3fd980a1be81e23dcf401d363a0a6c90cd94
server/www/lapitar.css
server/www/lapitar.css
@charset "utf-8"; html, body { height: 100%; width: 100%; } body { padding-top: 80px; } .navbar-brand { background: url('//lapis.blue/img/lapis.png') no-repeat 0 10px; background-size: 40px; padding-left: 42px; } .row img { max-width: 100%; max-height: 100%; } .pixelated { width...
@charset "utf-8"; html, body { height: 100%; width: 100%; } body { padding-top: 80px; } .navbar-brand { background: url('//lapis.blue/img/lapis.png') no-repeat 0 10px; background-size: 40px; padding-left: 42px; } .row img { max-width: 100%; max-height: 100%; } .pixelated { width...
Add more fallbacks for image scaling
Add more fallbacks for image scaling
CSS
mit
LapisBlue/Lapitar,LapisBlue/Lapitar,LapisBlue/Lapitar
css
## Code Before: @charset "utf-8"; html, body { height: 100%; width: 100%; } body { padding-top: 80px; } .navbar-brand { background: url('//lapis.blue/img/lapis.png') no-repeat 0 10px; background-size: 40px; padding-left: 42px; } .row img { max-width: 100%; max-height: 100%; } .pixel...
2648ddcdb0496ed7d763428488343027c528693d
package.json
package.json
{ "name": "hexo-renderer-marked", "version": "0.2.5", "description": "Markdown renderer plugin for Hexo", "main": "index", "scripts": { "test": "gulp test" }, "directories": { "lib": "./lib" }, "engines": { "node": ">= 0.10.0" }, "repository": "hexojs/hexo-renderer-marked", "keywords...
{ "name": "hexo-renderer-marked", "version": "0.2.5", "description": "Markdown renderer plugin for Hexo", "main": "index", "scripts": { "test": "gulp test" }, "directories": { "lib": "./lib" }, "engines": { "node": ">= 0.10.0" }, "repository": "hexojs/hexo-renderer-marked", "keywords...
Upgrade dependencies. Fixes DoS in marked.
Upgrade dependencies. Fixes DoS in marked. Closes #3
JSON
mit
sun11/hexo-renderer-kramed,hexojs/hexo-renderer-marked
json
## Code Before: { "name": "hexo-renderer-marked", "version": "0.2.5", "description": "Markdown renderer plugin for Hexo", "main": "index", "scripts": { "test": "gulp test" }, "directories": { "lib": "./lib" }, "engines": { "node": ">= 0.10.0" }, "repository": "hexojs/hexo-renderer-mark...
e76ca364ab979e309d34ff458ef2629145a52ce2
magnum/db/sqlalchemy/alembic/versions/a1136d335540_add_docker_storage_driver_column.py
magnum/db/sqlalchemy/alembic/versions/a1136d335540_add_docker_storage_driver_column.py
# revision identifiers, used by Alembic. revision = 'a1136d335540' down_revision = 'd072f58ab240' from alembic import op import sqlalchemy as sa docker_storage_driver_enum = sa.Enum('devicemapper', 'overlay', name='docker_storage_driver') def upgrade(): op.add_column('baym...
# revision identifiers, used by Alembic. revision = 'a1136d335540' down_revision = 'd072f58ab240' from alembic import op import sqlalchemy as sa docker_storage_driver_enum = sa.Enum('devicemapper', 'overlay', name='docker_storage_driver') def upgrade(): docker_storage_driv...
Fix for enum type docker_storage_driver
Fix for enum type docker_storage_driver Create enum type "docker_storage_driver" for migration This is fixing oslo_db.exception.DBError: (psycopg2.ProgrammingError) type "docker_storage_driver" does not exist Closes-Bug: #1609776 Change-Id: I92d427e90bd73b4114d8688d3761cabac450fc9d
Python
apache-2.0
openstack/magnum,openstack/magnum,ArchiFleKs/magnum,ArchiFleKs/magnum
python
## Code Before: # revision identifiers, used by Alembic. revision = 'a1136d335540' down_revision = 'd072f58ab240' from alembic import op import sqlalchemy as sa docker_storage_driver_enum = sa.Enum('devicemapper', 'overlay', name='docker_storage_driver') def upgrade(): op....
8df7c4b2c008ce6c7735106c28bad1f7326f7012
tests/smoketests/test_twisted.py
tests/smoketests/test_twisted.py
from twisted.internet import reactor, task def test_deferred(): return task.deferLater(reactor, 0.05, lambda: None)
from twisted.internet import reactor, task from twisted.internet.defer import Deferred, succeed from twisted.python.failure import Failure def test_deferred(): return task.deferLater(reactor, 0.05, lambda: None) def test_failure(): """ Test that we can check for a failure in an asynchronously-called fun...
Add an example Twisted test that expects failure.
Add an example Twisted test that expects failure.
Python
mit
CheeseLord/warts,CheeseLord/warts
python
## Code Before: from twisted.internet import reactor, task def test_deferred(): return task.deferLater(reactor, 0.05, lambda: None) ## Instruction: Add an example Twisted test that expects failure. ## Code After: from twisted.internet import reactor, task from twisted.internet.defer import Deferred, succeed fr...
b4cc45b959822557148720919b92827d0562b118
src/ng-justgage.js
src/ng-justgage.js
angular.module("ngJustGage", []) .directive('justGage', function ($compile, $timeout) { return { restrict: 'E', scope: { id: '@', min: '=', max: '=', title: '@', value: '=' }, template: '<div id={{id}}-justgage></div>', compile: function...
angular.module("ngJustGage", []) .directive('justGageStatic', function ($compile, $timeout) { return { restrict: 'E', scope: { id: '@', min: '=', max: '=', title: '@', value: '=' }, template: '<div id={{id}}-justgagestatic></div>', compil...
Add in a <just-gage-dynamic> and rename original to <just-gage-static>
Add in a <just-gage-dynamic> and rename original to <just-gage-static>
JavaScript
mit
mattlaver/angular-justgage,mattlaver/angular-justgage
javascript
## Code Before: angular.module("ngJustGage", []) .directive('justGage', function ($compile, $timeout) { return { restrict: 'E', scope: { id: '@', min: '=', max: '=', title: '@', value: '=' }, template: '<div id={{id}}-justgage></div>', c...
05eadf66991bfcb2635c35399df6a34e9b555b62
VERSION.md
VERSION.md
* build tool can generate one file from a template and a source file # 0.0.2 * created stub mdwebsite python script * check arguments passed to script # 0.0.1 * created git repository * updated README file * created VERSION file
* build tool can generate one file from a template and a source file * switched to python3 for markdown support * added markdown * converted html snippet file to markdown with meta header # 0.0.2 * created stub mdwebsite python script * check arguments passed to script # 0.0.1 * created git repository * updated RE...
Update Version History to include use of markdown and switch to python3.
Update Version History to include use of markdown and switch to python3.
Markdown
mit
teeheehee/mdwebsite,teeheehee/mdwebsite
markdown
## Code Before: * build tool can generate one file from a template and a source file # 0.0.2 * created stub mdwebsite python script * check arguments passed to script # 0.0.1 * created git repository * updated README file * created VERSION file ## Instruction: Update Version History to include use of markdown and...
44286750d261dbd50630a9a9f7144111981d8494
app/models/line.rb
app/models/line.rb
class Line < ActiveRecord::Base belongs_to :person belongs_to :quote validates :person, :body, presence: true PATTERNS = [ [ /<\s*([^>]+)\s*>\s*(.*)$/, false ], [ /\*\s+([^\s]+)\s*(.*)$/, true ], [ /([^:]+):\s*(.*)$/, false ], ] def self.from_raw_line(raw_line) PATTERNS.eac...
class Line < ActiveRecord::Base belongs_to :person belongs_to :quote validates :person, :body, presence: true PATTERNS = [ [ /<\s*([^>]+)\s*>\s*(.*)$/, false ], [ /\*\s+([^\s]+)\s*(.*)$/, true ], [ /([^:]+):\s*(.*)$/, false ], [ /^([^\s]+)\s*(.*)$/, true ], ] def self...
Support action format from Skyshaper Wiki quotes
Support action format from Skyshaper Wiki quotes
Ruby
mit
skyshaper/satq,skyshaper/satq,skyshaper/satq,skyshaper/satq
ruby
## Code Before: class Line < ActiveRecord::Base belongs_to :person belongs_to :quote validates :person, :body, presence: true PATTERNS = [ [ /<\s*([^>]+)\s*>\s*(.*)$/, false ], [ /\*\s+([^\s]+)\s*(.*)$/, true ], [ /([^:]+):\s*(.*)$/, false ], ] def self.from_raw_line(raw_line) ...
e7f534c2166c3c5eee9ceb33b27607d3d8361211
app/assets/stylesheets/styleguide/_sg_typography.scss
app/assets/stylesheets/styleguide/_sg_typography.scss
// This is our basic paragraph style // // Styleguide Basic Paragraph p { @extend %bodyText; } h1 { @extend %primaryHeading; } h2 { @extend %secondaryHeading; }
//p { // @extend %bodyText; //} // //h1 { // @extend %primaryHeading; //} // //h2 { // @extend %secondaryHeading; //}
Comment out styleguide specific typography to avoid conflicts with article page.
Comment out styleguide specific typography to avoid conflicts with article page.
SCSS
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
scss
## Code Before: // This is our basic paragraph style // // Styleguide Basic Paragraph p { @extend %bodyText; } h1 { @extend %primaryHeading; } h2 { @extend %secondaryHeading; } ## Instruction: Comment out styleguide specific typography to avoid conflicts with article page. ## Code After: //p { // @extend %bo...
2bd505ef19ed45124541d9f5f5a669e70b0b806c
tools/llvm-link/CMakeLists.txt
tools/llvm-link/CMakeLists.txt
set(LLVM_LINK_COMPONENTS BitWriter Core IRReader Linker Object Support TransformUtils IPO ) add_llvm_tool(llvm-link llvm-link.cpp DEPENDS intrinsics_gen )
set(LLVM_LINK_COMPONENTS BitReader BitWriter Core IRReader Linker Object Support TransformUtils IPO ) add_llvm_tool(llvm-link llvm-link.cpp DEPENDS intrinsics_gen )
Add BitReader to deps corresponding to r301832.
llvm-link: Add BitReader to deps corresponding to r301832. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@301850 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,app...
text
## Code Before: set(LLVM_LINK_COMPONENTS BitWriter Core IRReader Linker Object Support TransformUtils IPO ) add_llvm_tool(llvm-link llvm-link.cpp DEPENDS intrinsics_gen ) ## Instruction: llvm-link: Add BitReader to deps corresponding to r301832. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130...
12b5f10352d9afd5cd75cb2a2a2d41dbe48fc738
p166m/README.md
p166m/README.md
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses. ### Example 1: ``` Input: numerator = 1, denominator = 2 Output: "0.5" ``` ### Example 2: ``` Input: numerator = 2, denomi...
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses. ### Example 1: ``` Input: numerator = 1, denominator = 2 Output: "0.5" ``` ### Example 2: ``` Input: numerator = 2, denomi...
Add reasoning of p166m fraction to decimal
Add reasoning of p166m fraction to decimal
Markdown
mit
l33tdaima/l33tdaima,l33tdaima/l33tdaima,l33tdaima/l33tdaima,l33tdaima/l33tdaima,l33tdaima/l33tdaima
markdown
## Code Before: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses. ### Example 1: ``` Input: numerator = 1, denominator = 2 Output: "0.5" ``` ### Example 2: ``` Input: numer...
1e6af3ab8d8cf7b759af6933332dd7fa302b191b
src/main/java/com/codeski/nbt/tags/NBTLong.java
src/main/java/com/codeski/nbt/tags/NBTLong.java
package com.codeski.nbt.tags; import java.nio.ByteBuffer; import java.nio.charset.Charset; public class NBTLong extends NBT { public static final byte LENGTH = 8; public static final byte TYPE = 4; private Long payload; public NBTLong(String name, long payload) { super(name); this.payload = payload; } @Ov...
package com.codeski.nbt.tags; import java.nio.ByteBuffer; import java.nio.charset.Charset; public class NBTLong extends NBT { public static final byte LENGTH = 8; public static final byte TYPE = 4; private Long payload; public NBTLong(String name, long payload) { super(name); this.payload = payload; } @Ov...
Remove comment with debugging stuff
Remove comment with debugging stuff
Java
mit
Codeski/NBT
java
## Code Before: package com.codeski.nbt.tags; import java.nio.ByteBuffer; import java.nio.charset.Charset; public class NBTLong extends NBT { public static final byte LENGTH = 8; public static final byte TYPE = 4; private Long payload; public NBTLong(String name, long payload) { super(name); this.payload = p...
5a08c535b9e874148e45a3313342bf95a3313d86
grunt/bs-raw-files-generator.js
grunt/bs-raw-files-generator.js
/* global btoa: true */ /*! * Bootstrap Grunt task for generating raw-files.min.js for the Customizer * http://getbootstrap.com * Copyright 2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ 'use strict'; var fs = require('fs'); var btoa = require('btoa'); var grunt ...
/*! * Bootstrap Grunt task for generating raw-files.min.js for the Customizer * http://getbootstrap.com * Copyright 2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /* global btoa: true */ 'use strict'; var fs = require('fs'); var btoa = require('btoa'); var grun...
Move license to the top of the file.
Move license to the top of the file. BS3 commits: 91e57e2738fb46df241d23038fed729fc6471466
JavaScript
mit
2947721120/googlebt4,todc/todc-bootstrap,todc/todc-bootstrap,todc/todc-bootstrap,2947721120/todc-bootstrap,aaroncnhk/todc-bootstrap,ztx1491/todc-bootstrap,mozillo/todc-bootstrap,up2vs/todc-bootstrap
javascript
## Code Before: /* global btoa: true */ /*! * Bootstrap Grunt task for generating raw-files.min.js for the Customizer * http://getbootstrap.com * Copyright 2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ 'use strict'; var fs = require('fs'); var btoa = require('bt...
96dfb77570a37ab38d666e3d2ecbbb9809306eeb
.travis.yml
.travis.yml
language: go go: 1.2 install: - go get -v code.google.com/p/go.tools/cmd/cover script: - go test -v ./spew -covermode=count -coverprofile=profile.cov after_success: - go get -v github.com/mattn/goveralls - export PATH=$PATH:$HOME/gopath/bin - goveralls -coverprofile=profile.cov -service=travis-ci
language: go go: 1.2 install: - go get -v code.google.com/p/go.tools/cmd/cover script: - go test -v -tags=testcgo ./spew -covermode=count -coverprofile=profile.cov after_success: - go get -v github.com/mattn/goveralls - export PATH=$PATH:$HOME/gopath/bin - goveralls -coverprofile=profile.cov -servic...
Configure TravisCI to test with testcgo tag.
Configure TravisCI to test with testcgo tag.
YAML
isc
bparees/go-spew,dvln/go-spew,dvln/go-spew,bparees/go-spew,FactomProject/go-spew,kortschak/utter,FactomProject/go-spew,davecgh/go-spew,davecgh/go-spew
yaml
## Code Before: language: go go: 1.2 install: - go get -v code.google.com/p/go.tools/cmd/cover script: - go test -v ./spew -covermode=count -coverprofile=profile.cov after_success: - go get -v github.com/mattn/goveralls - export PATH=$PATH:$HOME/gopath/bin - goveralls -coverprofile=profile.cov -serv...
1e463765aed76b08db460448fd39e7177b56f67e
src/components/SplitButton/MenuItem.js
src/components/SplitButton/MenuItem.js
import styled from "styled-components"; import { colors } from "constants/theme"; const MenuItem = styled.button.attrs({ type: "button" })` font-size: 1em; border: none; text-align: left; border-radius: 8px; padding: 0.75em 1.5em; margin-bottom: 0.25em; outline: none; &:last-of-type { margin: 0; ...
import styled from "styled-components"; import { colors } from "constants/theme"; const MenuItem = styled.button.attrs({ type: "button" })` font-size: 1em; border: none; text-align: left; border-radius: 8px; padding: 0.75em 1.5em; margin-bottom: 0.25em; outline: none; &:last-of-type { margin: 0; ...
Improve UX around disabled split button menu items.
Improve UX around disabled split button menu items.
JavaScript
mit
ONSdigital/eq-author,ONSdigital/eq-author,ONSdigital/eq-author
javascript
## Code Before: import styled from "styled-components"; import { colors } from "constants/theme"; const MenuItem = styled.button.attrs({ type: "button" })` font-size: 1em; border: none; text-align: left; border-radius: 8px; padding: 0.75em 1.5em; margin-bottom: 0.25em; outline: none; &:last-of-type {...
99a991bc795c28dce265f4a838db4b891988627e
lib/compass-magick/commands/filters.rb
lib/compass-magick/commands/filters.rb
module Compass::Magick::Commands::Filters class Grayscale < Compass::Magick::Command def invoke(image) image.quantize(256, Magick::GRAYColorspace, Magick::NoDitherMethod) end end end
module Compass::Magick::Commands::Filters class Grayscale < Compass::Magick::Command def invoke(image) image.modulate(1.0, 0.0, 1.0) end end end
Use Magick::modulate instead of Magick::quantize as the latter has issues with transparent PNGs.
Use Magick::modulate instead of Magick::quantize as the latter has issues with transparent PNGs.
Ruby
mit
StanAngeloff/compass-magick,StanAngeloff/compass-magick
ruby
## Code Before: module Compass::Magick::Commands::Filters class Grayscale < Compass::Magick::Command def invoke(image) image.quantize(256, Magick::GRAYColorspace, Magick::NoDitherMethod) end end end ## Instruction: Use Magick::modulate instead of Magick::quantize as the latter has issues with transpa...
b0c217acb04d377bdd0d37ce8fc61a88bd97ae77
pyelevator/elevator.py
pyelevator/elevator.py
from .base import Client class RangeIter(object): def __init__(self, range_datas): self._container = range_datas if self._valid_range(range_datas) else None def _valid_range(self, range_datas): if (not isinstance(range_datas, tuple) or any(not isinstance(pair, tuple) for pair in r...
from .base import Client class RangeIter(object): def __init__(self, range_datas): self._container = range_datas if self._valid_range(range_datas) else None def _valid_range(self, range_datas): if (not isinstance(range_datas, tuple) or any(not isinstance(pair, tuple) for pair in r...
Update : RangeIter args name changed
Update : RangeIter args name changed
Python
mit
oleiade/py-elevator
python
## Code Before: from .base import Client class RangeIter(object): def __init__(self, range_datas): self._container = range_datas if self._valid_range(range_datas) else None def _valid_range(self, range_datas): if (not isinstance(range_datas, tuple) or any(not isinstance(pair, tupl...
d8bb172d6bd0ecd711b40c4bded1a0e77da79914
README.md
README.md
CompSoc's game for Ludum Dare 32! See [here](https://github.com/libgdx/libgdx/wiki/Setting-up-your-Development-Environment-%28Eclipse%2C-Intellij-IDEA%2C-NetBeans%29) for help getting started. ## Brainstorming ### Tower Defense Themes: - Pong / ball is a weapon - Nuclear / radiation / mutation Ball has interactions...
CompSoc's game for Ludum Dare 32! ## Brainstorming ### Tower Defense - Win Conditions - Loss Conditions - GUI - Balance - Title Screen - Music
Update readme with final day target
Update readme with final day target
Markdown
bsd-3-clause
UoLCompSoc/ld32,UoLCompSoc/ld32,UoLCompSoc/ld32
markdown
## Code Before: CompSoc's game for Ludum Dare 32! See [here](https://github.com/libgdx/libgdx/wiki/Setting-up-your-Development-Environment-%28Eclipse%2C-Intellij-IDEA%2C-NetBeans%29) for help getting started. ## Brainstorming ### Tower Defense Themes: - Pong / ball is a weapon - Nuclear / radiation / mutation Ball ...
33cd85710322cbab77dc75646919ab0e9578807a
puppet/modules/role/templates/machinevision/VagrantRoleMachineVision.wiki.erb
puppet/modules/role/templates/machinevision/VagrantRoleMachineVision.wiki.erb
* Documentation: [[mw:Extension:MachineVision|]]
* Documentation: [[mw:Extension:MachineVision|]] * Image labeling queue: [[Special:ImageLabeling]] / [[Special:ApiSandbox|action=query&list=querypage&qppage=ImageLabeling]]
Add convenience link for special page
machinevision: Add convenience link for special page Depends-On: I57195e70d61f60713e00e64205698e64b689bffb Change-Id: I81cf7bf6b6eaf26c5b6d865a1f973cb409595662
HTML+ERB
mit
wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant
html+erb
## Code Before: * Documentation: [[mw:Extension:MachineVision|]] ## Instruction: machinevision: Add convenience link for special page Depends-On: I57195e70d61f60713e00e64205698e64b689bffb Change-Id: I81cf7bf6b6eaf26c5b6d865a1f973cb409595662 ## Code After: * Documentation: [[mw:Extension:MachineVision|]] * Image labe...
f2f7025ce2ce5b00291627a60329f3294c2624c3
webapp/jsp/admin/PortletAdminHeader.jsp
webapp/jsp/admin/PortletAdminHeader.jsp
<%@ page errorPage="ErrorPage.jsp" %> <%@ page import="fr.paris.lutece.portal.service.util.AppPathService" %> <%@ page import="fr.paris.lutece.portal.web.l10n.LocaleService" %> <!DOCTYPE html> <html lang="<%= LocaleService.getDefault().getLanguage() %>"> <head> <base href="<%= AppPathService.getBaseUrl( request ) %>">...
<%@ page errorPage="ErrorPage.jsp" %> <%@ page import="fr.paris.lutece.portal.service.util.AppPathService" %> <%@ page import="fr.paris.lutece.portal.web.l10n.LocaleService" %> <!DOCTYPE html> <html lang="<%= LocaleService.getDefault().getLanguage() %>"> <head> <base href="<%= AppPathService.getBaseUrl( request ) %>">...
Remove head's css + js includes moved to templates
LUTECE-2221: Remove head's css + js includes moved to templates
Java Server Pages
bsd-3-clause
lutece-platform/lutece-core,rzara/lutece-core,rzara/lutece-core,rzara/lutece-core,lutece-platform/lutece-core,lutece-platform/lutece-core
java-server-pages
## Code Before: <%@ page errorPage="ErrorPage.jsp" %> <%@ page import="fr.paris.lutece.portal.service.util.AppPathService" %> <%@ page import="fr.paris.lutece.portal.web.l10n.LocaleService" %> <!DOCTYPE html> <html lang="<%= LocaleService.getDefault().getLanguage() %>"> <head> <base href="<%= AppPathService.getBaseUrl...
6b89b6d338f878bf05d3d335d5b6743179f0f585
config/tech-docs.yml
config/tech-docs.yml
host: https://docs.publishing.service.gov.uk service_link: / show_govuk_logo: true service_name: Developer docs full_service_name: GOV.UK Developer Documentation description: Internal technical documentation for developers working on GOV.UK in GDS header_links: Dashboard: / Get started: /manual/get-started.html ...
host: https://docs.publishing.service.gov.uk service_link: / show_govuk_logo: true service_name: Developer docs full_service_name: GOV.UK Developer Documentation description: Internal technical documentation for developers working on GOV.UK in GDS phase: Internal header_links: Dashboard: / Get started: /manual/ge...
Make a little clearer that these docs are internal
Make a little clearer that these docs are internal This adds "Internal" to the header.
YAML
mit
alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs
yaml
## Code Before: host: https://docs.publishing.service.gov.uk service_link: / show_govuk_logo: true service_name: Developer docs full_service_name: GOV.UK Developer Documentation description: Internal technical documentation for developers working on GOV.UK in GDS header_links: Dashboard: / Get started: /manual/ge...
6975c16c860f70ff7bd707aec3109b81056faf6a
README.md
README.md
Bayesian Changepoint Detection ============================== Methods to get the probability of a changepoint in a time series. Both online and offline methods are available. Read the following papers to really understand the methods: [1] Paul Fearnhead, Exact and Efficient Bayesian Inference for Multiple ...
Bayesian Changepoint Detection ============================== Methods to get the probability of a changepoint in a time series. Both online and offline methods are available. Read the following papers to really understand the methods: [1] Paul Fearnhead, Exact and Efficient Bayesian Inference for Multiple ...
Fix link to example notebook
Fix link to example notebook
Markdown
mit
hildensia/bayesian_changepoint_detection
markdown
## Code Before: Bayesian Changepoint Detection ============================== Methods to get the probability of a changepoint in a time series. Both online and offline methods are available. Read the following papers to really understand the methods: [1] Paul Fearnhead, Exact and Efficient Bayesian Inference for M...
bace2bd40ce3baa6b901e8b64b9460e67d25c4bd
build_engine.sh
build_engine.sh
echo "Downloading the Engine, this may take some time" git clone -b v3.1 --single-branch --depth 1 http://github.com/jMonkeyEngine/jMonkeyEngine/ engine # single-branch requires git > 1.7.10, if you see an error, just leave it out. git checkout v3.1.0-beta2 # tags/v3.1.0-beta2 cd engine #echo "Patching the Engine...."...
echo "Downloading the Engine, this may take some time" # To have the latest Commit on 3.1 use "-b v3.1". If you want a certain tag, use "-b v3.1.0-beta2" git clone -b v3.1.0-beta2 --single-branch --depth 1 http://github.com/jMonkeyEngine/jMonkeyEngine/ engine # single-branch requires git > 1.7.10, if you see an error, ...
Build the specific tag instead of the branch head.
Travis: Build the specific tag instead of the branch head.
Shell
bsd-3-clause
jMonkeyEngine/sdk,jMonkeyEngine/sdk,jMonkeyEngine/sdk,jMonkeyEngine/sdk
shell
## Code Before: echo "Downloading the Engine, this may take some time" git clone -b v3.1 --single-branch --depth 1 http://github.com/jMonkeyEngine/jMonkeyEngine/ engine # single-branch requires git > 1.7.10, if you see an error, just leave it out. git checkout v3.1.0-beta2 # tags/v3.1.0-beta2 cd engine #echo "Patching...
3356721a11d2b74f1410040e6b614845729f8327
README.md
README.md
[![Circle CI](https://circleci.com/gh/CenturyLinkLabs/docker-reg-client.svg?style=svg)](https://circleci.com/gh/CenturyLinkLabs/docker-reg-client) [![GoDoc](http://godoc.org/github.com/CenturyLinkLabs/docker-reg-client/registry?status.png)](http://godoc.org/github.com/CenturyLinkLabs/docker-reg-client/registry) docker...
[![Circle CI](https://circleci.com/gh/CenturyLinkLabs/docker-reg-client.svg?style=svg)](https://circleci.com/gh/CenturyLinkLabs/docker-reg-client) [![GoDoc](http://godoc.org/github.com/CenturyLinkLabs/docker-reg-client/registry?status.png)](http://godoc.org/github.com/CenturyLinkLabs/docker-reg-client/registry) docker...
Add note about GetWriteToken() for automated builds
Add note about GetWriteToken() for automated builds
Markdown
apache-2.0
CenturyLinkLabs/docker-reg-client
markdown
## Code Before: [![Circle CI](https://circleci.com/gh/CenturyLinkLabs/docker-reg-client.svg?style=svg)](https://circleci.com/gh/CenturyLinkLabs/docker-reg-client) [![GoDoc](http://godoc.org/github.com/CenturyLinkLabs/docker-reg-client/registry?status.png)](http://godoc.org/github.com/CenturyLinkLabs/docker-reg-client/r...
f5e61aafedfe5fb89f2498d446ca7b231d36f197
base/Controller.php
base/Controller.php
<?php namespace base; class Controller{ private $_views = array(); private $_res = null; private $_req = null; public $currentPath = null; protected function getRequest() { return Request::getInstance(); } protected function getResponse() { if(empty($this->_res)){ $this->_res = new Response(); ...
<?php namespace base; class Controller{ private $_views = array(); private $_res = null; private $_req = null; public $currentPath = null; protected function getRequest() { return Request::getInstance(); } protected function getResponse() { if(empty($this->_res)){ $this->_res = new Response(); ...
Add public getProfile method to base controller
Add public getProfile method to base controller
PHP
mit
underscore05/simplemvcbase
php
## Code Before: <?php namespace base; class Controller{ private $_views = array(); private $_res = null; private $_req = null; public $currentPath = null; protected function getRequest() { return Request::getInstance(); } protected function getResponse() { if(empty($this->_res)){ $this->_res = n...
f168a459c76f17384d6d0a9f359454d2bba67a97
src/admin/dumb_components/custom_email_form.js
src/admin/dumb_components/custom_email_form.js
import React from 'react' export default (email, submit) => <div className='custom-email-container'> <h3>Write out your custom email</h3> <form onSubmit={submit}> <input type='text' className='custom-email-subject' placeholder='Subject' defaultValue={email ? email[0] : ''} /> <textarea className=...
import React from 'react' export default (email, submit) => <div className='custom-email-container'> <h3>Please include the message in the text box as the last line of your email</h3> <form onSubmit={submit}> <input type='text' className='custom-email-subject' placeholder='Subject' defaultValue={email ...
Add ‘do not reply’ message to custom email.
Add ‘do not reply’ message to custom email.
JavaScript
mit
foundersandcoders/sail-back,foundersandcoders/sail-back
javascript
## Code Before: import React from 'react' export default (email, submit) => <div className='custom-email-container'> <h3>Write out your custom email</h3> <form onSubmit={submit}> <input type='text' className='custom-email-subject' placeholder='Subject' defaultValue={email ? email[0] : ''} /> <tex...
7e3fdd661426207d9b42a849846e03404177d298
.travis.yml
.travis.yml
sudo: false addons: apt: packages: - libgmp-dev env: - STACK_YAML=stack-ghc-7.8.4.yaml - STACK_YAML=stack.yaml install: # stack - mkdir -p ~/.local/bin - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar -xvzf - ...
sudo: false addons: apt: packages: - libgmp-dev env: - STACK_YAML=stack-ghc-7.8.4.yaml - STACK_YAML=stack.yaml install: # stack - mkdir -p ~/.local/bin - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar -xvzf - ...
Use --ghc-options rather than --pendantic.
Use --ghc-options rather than --pendantic. The latter seems to override cabal.
YAML
bsd-3-clause
zerobuzz/servant,zerobuzz/servant
yaml
## Code Before: sudo: false addons: apt: packages: - libgmp-dev env: - STACK_YAML=stack-ghc-7.8.4.yaml - STACK_YAML=stack.yaml install: # stack - mkdir -p ~/.local/bin - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz ...
1357df27f29ced7faa1f4e971c2efe5aba712399
app/models/teamspeak/Ban.php
app/models/teamspeak/Ban.php
<?php namespace Models\Teamspeak; use Illuminate\Database\Eloquent\SoftDeletingTrait; class Ban extends \Models\aModel { protected $table = 'teamspeak_ban'; protected $primaryKey = 'id'; public function account() { return $this->belongsTo("\Models\Teamspeak\Account", "account_id", "account_id")...
<?php namespace Models\Teamspeak; use Illuminate\Database\Eloquent\SoftDeletingTrait; class Ban extends \Models\aModel { protected $table = 'teamspeak_ban'; protected $primaryKey = 'id'; protected $dates = ['created_at', 'updated_at', 'deleted_at', 'expires_at']; public function account() { ...
Add date fields to TeamSpeak ban model
Add date fields to TeamSpeak ban model
PHP
mit
atoff/core,atoff/core,enlim/core,enlim/core,enlim/core
php
## Code Before: <?php namespace Models\Teamspeak; use Illuminate\Database\Eloquent\SoftDeletingTrait; class Ban extends \Models\aModel { protected $table = 'teamspeak_ban'; protected $primaryKey = 'id'; public function account() { return $this->belongsTo("\Models\Teamspeak\Account", "account_id...
aa209fb45bd18bea7076024a79cc361fe2b10c63
doc/source/templates/layout.html
doc/source/templates/layout.html
{% extends "!layout.html" %} {% block rootrellink %} <li><a href="http://networkx.github.com/">NetworkX Home </a> |&nbsp;</li> <li><a href="http://networkx.github.com/documentation.html">Documentation </a>|&nbsp;</li> <li><a href="http://networkx.github.com/download.html">Download </a> |&nbsp;<...
{% extends "!layout.html" %} {% block rootrellink %} <li><a href="http://networkx.github.com/">NetworkX Home </a> |&nbsp;</li> <li><a href="http://networkx.github.com/documentation.html">Documentation </a>|&nbsp;</li> <li><a href="http://networkx.github.com/download.html">Download </a> |&nbsp;<...
Fix header spacing for development docs.
Fix header spacing for development docs.
HTML
bsd-3-clause
ionanrozenfeld/networkx,goulu/networkx,NvanAdrichem/networkx,farhaanbukhsh/networkx,dhimmel/networkx,RMKD/networkx,RMKD/networkx,blublud/networkx,jni/networkx,aureooms/networkx,kernc/networkx,blublud/networkx,ghdk/networkx,cmtm/networkx,kernc/networkx,Sixshaman/networkx,ghdk/networkx,wasade/networkx,debsankha/networkx,...
html
## Code Before: {% extends "!layout.html" %} {% block rootrellink %} <li><a href="http://networkx.github.com/">NetworkX Home </a> |&nbsp;</li> <li><a href="http://networkx.github.com/documentation.html">Documentation </a>|&nbsp;</li> <li><a href="http://networkx.github.com/download.html">Downlo...
a88d5414e7762e87c052ca9a28fe36a28b7d4d46
oscar/apps/partner/prices.py
oscar/apps/partner/prices.py
class TaxNotKnown(Exception): """ Exception for when a tax-inclusive price is requested but we don't know what the tax applicable is (yet). """ class Base(object): #: Whether any prices exist exists = False #: Whether tax is known for this product (and session) is_tax_known = False ...
class TaxNotKnown(Exception): """ Exception for when a tax-inclusive price is requested but we don't know what the tax applicable is (yet). """ class Base(object): """ The interface that any pricing policy must support """ #: Whether any prices exist exists = False #: Whether...
Add currency property to pricing policies
Add currency property to pricing policies
Python
bsd-3-clause
pdonadeo/django-oscar,jinnykoo/wuyisj.com,WillisXChen/django-oscar,bschuon/django-oscar,saadatqadri/django-oscar,kapari/django-oscar,adamend/django-oscar,adamend/django-oscar,bnprk/django-oscar,sonofatailor/django-oscar,Jannes123/django-oscar,faratro/django-oscar,MatthewWilkes/django-oscar,sasha0/django-oscar,anentropi...
python
## Code Before: class TaxNotKnown(Exception): """ Exception for when a tax-inclusive price is requested but we don't know what the tax applicable is (yet). """ class Base(object): #: Whether any prices exist exists = False #: Whether tax is known for this product (and session) is_tax_...
eb620b32f1b7fcb77be47eafe7eaf5069ad23929
composer.json
composer.json
{ "name": "annotatecms/themes", "type": "annotatecms-extension", "description": "Themes support for AnnotateCms framework", "minimum-stability": "dev", "license": "MIT", "authors": [ { "name": "Michal Vyšinský", "email": "vysinsky@live.com" } ...
{ "name": "annotatecms/themes", "type": "annotatecms-extension", "description": "Themes support for AnnotateCms framework", "minimum-stability": "dev", "license": "MIT", "authors": [ { "name": "Michal Vyšinský", "email": "vysinsky@live.com" } ...
Fix dependency - use annotatecms/events to automatically register events extension
Fix dependency - use annotatecms/events to automatically register events extension
JSON
mit
greeny/themes,greeny/themes
json
## Code Before: { "name": "annotatecms/themes", "type": "annotatecms-extension", "description": "Themes support for AnnotateCms framework", "minimum-stability": "dev", "license": "MIT", "authors": [ { "name": "Michal Vyšinský", "email": "vysinsky@live.com" ...
6be0e8cb51338f9b8f685c53f1bc3be831a62aac
charts/ceph-csi-rbd/templates/nodeplugin-clusterrolebinding.yaml
charts/ceph-csi-rbd/templates/nodeplugin-clusterrolebinding.yaml
{{- if .Values.rbac.create -}} {{- if .Values.topology.enabled }} kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }} labels: app: {{ include "ceph-csi-rbd.name" . }} chart: {{ include "ceph-csi-rbd.chart" . }} component: {...
{{- if .Values.rbac.create -}} kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }} labels: app: {{ include "ceph-csi-rbd.name" . }} chart: {{ include "ceph-csi-rbd.chart" . }} component: {{ .Values.nodeplugin.name }} re...
Fix missing ClusterRoleBinding for nodeplugin ServiceAccount
helm: Fix missing ClusterRoleBinding for nodeplugin ServiceAccount When topology is disabled, the ClusterRoleBinding is not created in the Helm chart. However, the nodeplugin needs access to volumeattachments for the volume healer. Signed-off-by: Steven Reitsma <4068f0880b399410602d694b3cc711c8a8f4727e@properchaos.nl...
YAML
apache-2.0
ceph/ceph-csi,ceph/ceph-csi,ceph/ceph-csi,ceph/ceph-csi
yaml
## Code Before: {{- if .Values.rbac.create -}} {{- if .Values.topology.enabled }} kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }} labels: app: {{ include "ceph-csi-rbd.name" . }} chart: {{ include "ceph-csi-rbd.chart" . }} ...
01f264010f691f9c86fd6c83c3a231064d2b4913
client/components/lists/ListSignupFormCreator.js
client/components/lists/ListSignupFormCreator.js
import React from 'react'; import { Modal } from 'react-bootstrap'; export default class ListSignupFormCreator extends React.Component { constructor(props) { super(props); this.state = { subscribeKey: this.props.subscribeKey, showModal: false }; } showModal() { this.setState({ ...
import React from 'react'; import { Modal } from 'react-bootstrap'; export default class ListSignupFormCreator extends React.Component { constructor(props) { super(props); this.state = { subscribeKey: this.props.subscribeKey, showModal: false }; } showModal() { this.setState({ ...
Add instructions and improve formatting
Add instructions and improve formatting
JavaScript
bsd-3-clause
zhakkarn/Mail-for-Good,zhakkarn/Mail-for-Good,karuppiah7890/Mail-for-Good,zhakkarn/Mail-for-Good,karuppiah7890/Mail-for-Good,karuppiah7890/Mail-for-Good
javascript
## Code Before: import React from 'react'; import { Modal } from 'react-bootstrap'; export default class ListSignupFormCreator extends React.Component { constructor(props) { super(props); this.state = { subscribeKey: this.props.subscribeKey, showModal: false }; } showModal() { this...
f8a6854f2cb389d882640c1466ef703e4a3d9b82
app/views/application/_head.html.erb
app/views/application/_head.html.erb
<head> <title><%= title %></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="<%= yield :meta_description %>"> <script> (function (h) { h.className = h.className.replace('no-js', 'js') })(document.documentElement) </script> <!--[if lt I...
<head> <title><%= title %></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="<%= yield :meta_description %>"> <script> (function (h) { h.className = h.className.replace('no-js', 'js') })(document.documentElement) </script> <!--[if lt I...
Load JS and stylesheets asynchronously
Load JS and stylesheets asynchronously
HTML+ERB
mit
AusDTO/gov-au-beta,AusDTO/gov-au-beta,AusDTO/gov-au-beta,AusDTO/gov-au-beta,AusDTO/gov-au-beta
html+erb
## Code Before: <head> <title><%= title %></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="<%= yield :meta_description %>"> <script> (function (h) { h.className = h.className.replace('no-js', 'js') })(document.documentElement) </script...
f9fc1dafcbb7a6a456d0721137b34b6716498d86
ci/requirements-py26.yml
ci/requirements-py26.yml
name: test_env dependencies: - python=2.6.9 - cython=0.22.1 - h5py=2.5.0 - pytest - ordereddict - numpy=1.9.2 - pandas=0.16.2 - matplotlib=1.4 - openssl - toolz # no seaborn - scipy=0.16.0 - unittest2 - pip: - coveralls - pytest-cov - cyordereddict - dask - h5netcdf
name: test_env dependencies: - python=2.6.9 - cython=0.22.1 - h5py=2.5.0 - pytest - ordereddict - numpy=1.9.2 - pandas=0.16.2 - matplotlib=1.4 - openssl # no seaborn - scipy=0.16.0 - unittest2 - pip: - coveralls - pytest-cov - cyordereddict - dask - h5netcdf - toolz
Fix failing CI tests on Python 2.6
Fix failing CI tests on Python 2.6 It turns out we need the latest toolz from pip, not conda (which is no longer building packages for Python 2.6).
YAML
apache-2.0
rabernat/xray,shoyer/xarray,markelg/xray,pydata/xarray,pydata/xarray,jhamman/xray,jhamman/xarray,markelg/xray,chunweiyuan/xarray,shoyer/xray,jcmgray/xarray,xray/xray,shoyer/xarray,markelg/xray,NicWayand/xray,jhamman/xarray,jhamman/xarray,pydata/xarray,rabernat/xray
yaml
## Code Before: name: test_env dependencies: - python=2.6.9 - cython=0.22.1 - h5py=2.5.0 - pytest - ordereddict - numpy=1.9.2 - pandas=0.16.2 - matplotlib=1.4 - openssl - toolz # no seaborn - scipy=0.16.0 - unittest2 - pip: - coveralls - pytest-cov - cyordereddict - dask ...
2388cffee66eab8c72fa968aa83f5ca64f6343c1
supports/messages.php
supports/messages.php
<?php namespace Orchestra\Support; use \Session, Laravel\Messages as M; class Messages extends M { /** * Add a message to the collector. * * <code> * // Add a message for the e-mail attribute * Message::make('email', 'The e-mail address is invalid.'); * </code> * * @static * @param string $ke...
<?php namespace Orchestra\Support; use \Session, Laravel\Messages as M; class Messages extends M { /** * Add a message to the collector. * * <code> * // Add a message for the e-mail attribute * Message::make('email', 'The e-mail address is invalid.'); * </code> * * @static * @param string $ke...
Add a save to Session::flash().
Add a save to Session::flash(). Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
PHP
mit
orchestral/orchestra,orchestral/orchestra
php
## Code Before: <?php namespace Orchestra\Support; use \Session, Laravel\Messages as M; class Messages extends M { /** * Add a message to the collector. * * <code> * // Add a message for the e-mail attribute * Message::make('email', 'The e-mail address is invalid.'); * </code> * * @static * @pa...
67f01bda3071611217dea3f5dc9b944dec51f564
modules/registry-change-management-state.adoc
modules/registry-change-management-state.adoc
// Module included in the following assemblies: // // * installing/installing_bare_metal/installing-bare-metal.adoc // * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc // * installing/installing_vsphere/installing-restricted-networks-vsphere.adoc // * installing/installing_vsphere/insta...
// Module included in the following assemblies: // // * installing/installing_bare_metal/installing-bare-metal.adoc // * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc // * installing/installing_vsphere/installing-restricted-networks-vsphere.adoc // * installing/installing_vsphere/insta...
Simplify command to change managementState
Simplify command to change managementState The working example shows the image registry operator config object, but the command to change the ManagementState by editing it is not provided. As a reference, this would suffice: `oc edit configs.imageregistry.operator.openshift.io`. However, a simpler instruction for th...
AsciiDoc
apache-2.0
vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs
asciidoc
## Code Before: // Module included in the following assemblies: // // * installing/installing_bare_metal/installing-bare-metal.adoc // * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc // * installing/installing_vsphere/installing-restricted-networks-vsphere.adoc // * installing/installi...
aa1ddaa4fe35f8cff0ec0e9eada64fa9861fd06a
scripts/test_execution_tutorial.sh
scripts/test_execution_tutorial.sh
set -e # first error should stop execution of this script # Identify the bin dir in the distribution, and source the common include script BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )" source ${BASE_DIR}/scripts/common.sh # also trap errors, to reenable terminal settings trap onExit ERR export CLASS...
set -e # first error should stop execution of this script # Identify the bin dir in the distribution, and source the common include script BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )" source ${BASE_DIR}/scripts/common.sh SHORT_SCALA_VERSION=${TRAVIS_SCALA_VERSION%.*} SCALDING_VERSION=`cat ${BASE_DIR...
Use shell to read scala and scalding versions.
Use shell to read scala and scalding versions.
Shell
apache-2.0
twitter/scalding,JiJiTang/scalding,JiJiTang/scalding,tglstory/scalding,sid-kap/scalding,tresata/scalding,jzmq/scalding,aposwolsky/scalding,f7753/scalding,sriramkrishnan/scalding,oeddyo/scalding,piyushnarang/scalding,sunilrebel/scalding,f7753/scalding,Chasego/scalding,avp1984/scalding,cchepelov/scalding,nvoron23/scaldin...
shell
## Code Before: set -e # first error should stop execution of this script # Identify the bin dir in the distribution, and source the common include script BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )" source ${BASE_DIR}/scripts/common.sh # also trap errors, to reenable terminal settings trap onExit ...
4c1237d2969d735cfcf9f3c10cf27cb801996e32
tests/test_integration.py
tests/test_integration.py
"""Unit test module for Selenium testing""" from selenium import webdriver from flask.ext.testing import LiveServerTestCase from tests import TestCase from pages import LoginPage class TestUI(TestCase, LiveServerTestCase): """Test class for UI integration/workflow testing""" def setUp(self): """Res...
"""Unit test module for Selenium testing""" import os from selenium import webdriver from flask.ext.testing import LiveServerTestCase from tests import TestCase from pages import LoginPage class TestUI(TestCase, LiveServerTestCase): """Test class for UI integration/workflow testing""" def setUp(self): ...
Use Sauce Labs for selenium testing when available
Use Sauce Labs for selenium testing when available
Python
bsd-3-clause
uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal
python
## Code Before: """Unit test module for Selenium testing""" from selenium import webdriver from flask.ext.testing import LiveServerTestCase from tests import TestCase from pages import LoginPage class TestUI(TestCase, LiveServerTestCase): """Test class for UI integration/workflow testing""" def setUp(self)...
2143593539c39206fa86393e2c9934a6a7e9fcbb
.travis.yml
.travis.yml
language: python python: - '2.7' install: - pip install -r requirements.txt - pip install coveralls pytest-cov script: py.test --cov-report term-missing --cov flask_authorization_panda after_success: coveralls deploy: provider: pypi user: eikonomega password: secure: O3ykqu94SAGAPDYJsYC...
language: python python: - '2.7' install: - pip install -r requirements.txt - pip install coveralls pytest-cov script: py.test --cov-report term-missing --cov flask_authorization_panda after_success: coveralls deploy: provider: pypi user: eikonomega password: secure: g0qFyS/i4aRuSjKgNGJBZ3N/JqsBLOqA5...
Add basic test cases to program.
Add basic test cases to program.
YAML
mit
eikonomega/flask-authorization-panda
yaml
## Code Before: language: python python: - '2.7' install: - pip install -r requirements.txt - pip install coveralls pytest-cov script: py.test --cov-report term-missing --cov flask_authorization_panda after_success: coveralls deploy: provider: pypi user: eikonomega password: secure: O3y...
e45f056e92c7e5b2956072f7f2985ce1f7d213ed
setup.py
setup.py
from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup(name='riboutils', version='0.1', description="This package contains utilities for other ribosome profiling projects.", long_description=readme(), keywords="ribosome profiling utili...
from setuptools import setup console_scripts = [ 'extract-metagene-profiles=riboutils.extract_metagene_profiles:main', 'estimate-metagene-profile-bayes-factors=riboutils.estimate_metagene_profile_bayes_factors:main', 'select-periodic-offsets=riboutils.select_periodic_offsets:main' ] def readme(): with...
FIX moved bio script to misc.bio_utils
FIX moved bio script to misc.bio_utils
Python
mit
dieterich-lab/riboseq-utils
python
## Code Before: from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup(name='riboutils', version='0.1', description="This package contains utilities for other ribosome profiling projects.", long_description=readme(), keywords="ribosome...
c8a7b9acc6c66a44eeb9ceac91587bb8ad08ad89
pagedown/utils.py
pagedown/utils.py
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import staticfiles_storage ...
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.templatetags.static import static return static(...
Use `django.templatetags.static`to load the file
Use `django.templatetags.static`to load the file Debugging this issue: https://github.com/timmyomahony/django-pagedown/issues/25
Python
bsd-3-clause
timmyomahony/django-pagedown,timmyomahony/django-pagedown,timmyomahony/django-pagedown
python
## Code Before: from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import stati...
61cb35c193952fde72ce1df42d4151e96ffffcbc
lib/sessions/event/chat_status_customer.rb
lib/sessions/event/chat_status_customer.rb
class Sessions::Event::ChatStatusCustomer < Sessions::Event::ChatBase def run chat_id = 1 chat = Chat.find_by(id: chat_id) if !chat return { event: 'chat_status_customer', data: { state: 'no_such_chat', }, } end # check if it's a chat sessin reconne...
class Sessions::Event::ChatStatusCustomer < Sessions::Event::ChatBase def run chat_id = 1 chat = Chat.find_by(id: chat_id) if !chat return { event: 'chat_status_customer', data: { state: 'no_such_chat', }, } end # check if it's a chat sessin reconne...
Update ws client ids in reconnect.
Update ws client ids in reconnect.
Ruby
agpl-3.0
zammad/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,zammad/zammad,monotek/zammad,monotek/zammad
ruby
## Code Before: class Sessions::Event::ChatStatusCustomer < Sessions::Event::ChatBase def run chat_id = 1 chat = Chat.find_by(id: chat_id) if !chat return { event: 'chat_status_customer', data: { state: 'no_such_chat', }, } end # check if it's a cha...
6deb6451ae31e879390f60e50abfba7fba70121e
doc/.static/lpod.css
doc/.static/lpod.css
@import url("default.css"); body { color: #000; background-color: #fff; margin-left: 28px; } div.related { background-color: #444; } a, div.sphinxsidebar h3 a, div.sphinxsidebar a, div.footer a { color: #444; } div.sphinxsidebar h3, div.sphinxsidebar h4 { color: #000; } div.sphinxsidebar ul { color: ...
@import url("default.css"); body { color: #000; background-color: #fff; margin-left: 28px; } div.related { background-color: #444; } a, div.sphinxsidebar h3 a, div.sphinxsidebar a, div.footer a { color: #444; } div.sphinxsidebar h3, div.sphinxsidebar h4 { color: #000; } div.sphinxsidebar ul { color: ...
Change font-size of central menu
doc: Change font-size of central menu
CSS
apache-2.0
lpod/lpod-docs,Agicia/lpod-python,Agicia/lpod-python,lpod/lpod-docs
css
## Code Before: @import url("default.css"); body { color: #000; background-color: #fff; margin-left: 28px; } div.related { background-color: #444; } a, div.sphinxsidebar h3 a, div.sphinxsidebar a, div.footer a { color: #444; } div.sphinxsidebar h3, div.sphinxsidebar h4 { color: #000; } div.sphinxsideba...
e8761b0c7f22ca69a90b9d449449ed679862bfaa
tasks/waiting_jenkins.yml
tasks/waiting_jenkins.yml
--- - name: 'Waiting jenkins started' command: "curl --head --silent {{ jenkins_base_url }}/" register: 'jenkins_check_available' until: "{{ (jenkins_check_available.stdout.find('200 OK') != -1) or (jenkins_check_available.stdout.find('403 Forbidden') != -1) }}" retries: "{{ jenkins_waiting_availa...
--- - name: 'Waiting jenkins started' uri: url: "{{ jenkins_base_url }}/" status_code: '200,403' register: 'jenkins_check_available' until: "{{ (jenkins_check_available.status == 200) or (jenkins_check_available.status == 403) }}" retries: "{{ jenkins_waiting_available_retries }}" delay: "{{ ...
Replace curl command by uri module for Jenkins waiting task
Replace curl command by uri module for Jenkins waiting task
YAML
mit
infOpen/ansible-role-jenkins
yaml
## Code Before: --- - name: 'Waiting jenkins started' command: "curl --head --silent {{ jenkins_base_url }}/" register: 'jenkins_check_available' until: "{{ (jenkins_check_available.stdout.find('200 OK') != -1) or (jenkins_check_available.stdout.find('403 Forbidden') != -1) }}" retries: "{{ jenkin...
dcccac8ad4062f354e6d8342eb840fdd4c81c114
japr.gemspec
japr.gemspec
require File.expand_path('lib/japr/version', __dir__) Gem::Specification.new do |s| # Metadata s.name = 'japr' s.version = JAPR::VERSION s.date = Time.now s.summary = <<-SUMMARY A powerful asset pipeline for Jekyll that bundles, converts, and minifies CSS and JavaScript assets. SUMMARY s.descri...
require File.expand_path('lib/japr/version', __dir__) Gem::Specification.new do |s| # Metadata s.name = 'japr' s.version = JAPR::VERSION s.date = Time.now s.summary = <<-SUMMARY A powerful asset pipeline for Jekyll that bundles, converts, and minifies CSS and JavaScript assets. SUMMARY s.descri...
Update jekyll requirement from ~> 3.5 to >= 3.5, < 5.0
Update jekyll requirement from ~> 3.5 to >= 3.5, < 5.0 Updates the requirements on [jekyll](https://github.com/jekyll/jekyll) to permit the latest version. - [Release notes](https://github.com/jekyll/jekyll/releases) - [Changelog](https://github.com/jekyll/jekyll/blob/master/History.markdown) - [Commits](https://githu...
Ruby
mit
kitsched/japr
ruby
## Code Before: require File.expand_path('lib/japr/version', __dir__) Gem::Specification.new do |s| # Metadata s.name = 'japr' s.version = JAPR::VERSION s.date = Time.now s.summary = <<-SUMMARY A powerful asset pipeline for Jekyll that bundles, converts, and minifies CSS and JavaScript assets. SUM...
3ad6f84c3cbc463f032937bd2b7bfe6783037f71
installer/templates/phx_ecto/data_case.ex
installer/templates/phx_ecto/data_case.ex
defmodule <%= app_module %>.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, ...
defmodule <%= app_module %>.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, ...
Fix errors_on when using array field changeset
Fix errors_on when using array field changeset ## Overview `errors_on/1` raises an error when it receives a changeset with an array field which was `cast`-ed with an invalid type. ## Details When validating the type of an array field fails, `cast/4` it will put an error on the changeset, such as: ```elixir [my_list_f...
Elixir
mit
jwarwick/phoenix,rafbgarcia/phoenix,michalmuskala/phoenix,Gazler/phoenix,nshafer/phoenix,0x00evil/phoenix,nshafer/phoenix,keathley/phoenix,eksperimental/phoenix,0x00evil/phoenix,phoenixframework/phoenix,nshafer/phoenix,jwarwick/phoenix,keathley/phoenix,phoenixframework/phoenix,rafbgarcia/phoenix,optikfluffel/phoenix,0x...
elixir
## Code Before: defmodule <%= app_module %>.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. F...
7e75fed16a97941a619a24b12c450627012eb563
javascript/iframe_page.js
javascript/iframe_page.js
if (typeof jQuery!=='undefined') { (function($) { var iframe = $('#Iframepage-iframe'); var loading = $('#Iframepage-loading'); // Add not-ready marker for third party use. iframe.addClass('iframepage-not-ready'); // Show loading message iframe.hide(); loading.show(); $(function() { iframe.load(fu...
if (typeof jQuery!=='undefined') { (function($) { var iframe = $('#Iframepage-iframe'); var loading = $('#Iframepage-loading'); // Add not-ready marker for third party use. iframe.addClass('iframepage-not-ready'); // Show loading message iframe.hide(); loading.show(); $(function() { $( window ).lo...
Add support for Firefox & IE9
Add support for Firefox & IE9
JavaScript
bsd-3-clause
mandrew/silverstripe-iframe,silverstripe-labs/silverstripe-iframe,silverstripe-labs/silverstripe-iframe,mandrew/silverstripe-iframe
javascript
## Code Before: if (typeof jQuery!=='undefined') { (function($) { var iframe = $('#Iframepage-iframe'); var loading = $('#Iframepage-loading'); // Add not-ready marker for third party use. iframe.addClass('iframepage-not-ready'); // Show loading message iframe.hide(); loading.show(); $(function() { ...
48bb03610c15b263b6eb32e0bb7ef2f3de699ecb
Databrary/Controller/Audit.hs
Databrary/Controller/Audit.hs
{-# LANGUAGE OverloadedStrings #-} module Databrary.Controller.Audit ( viewActivity ) where import Control.Arrow (second) import Data.Ord (comparing) import Databrary.Ops import qualified Databrary.JSON as JSON import Databrary.Model.VolumeAccess import Databrary.Model.Authorize import Databrary.Model.Party impor...
{-# LANGUAGE OverloadedStrings #-} module Databrary.Controller.Audit ( viewActivity ) where import Control.Arrow (second) import Data.Function (on) import Data.List (nubBy) import Data.Ord (comparing) import Databrary.Ops import qualified Databrary.JSON as JSON import Databrary.Model.Party import Databrary.Model....
Remove duplicates from news feed
Remove duplicates from news feed Fixes #3515
Haskell
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
haskell
## Code Before: {-# LANGUAGE OverloadedStrings #-} module Databrary.Controller.Audit ( viewActivity ) where import Control.Arrow (second) import Data.Ord (comparing) import Databrary.Ops import qualified Databrary.JSON as JSON import Databrary.Model.VolumeAccess import Databrary.Model.Authorize import Databrary.M...
3c947d1358dedddda6068c27295e8c0e803712ae
BaragonUI/app/components/status/StatusPage.jsx
BaragonUI/app/components/status/StatusPage.jsx
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import rootComponent from '../../rootComponent'; import { refresh } from '../../actions/ui/status'; import WorkerStatus from './WorkerStatus'; import PendingRequests from './PendingRequests'; import Request...
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import rootComponent from '../../rootComponent'; import { refresh } from '../../actions/ui/status'; import WorkerStatus from './WorkerStatus'; import PendingRequests from './PendingRequests'; import RequestSear...
Use react-router rather than browserHistory
Use react-router rather than browserHistory Move to using react-router rather than directly modifying the `browserHistory` object. This way is just a little bit neater.
JSX
apache-2.0
HubSpot/Baragon,HubSpot/Baragon,HubSpot/Baragon
jsx
## Code Before: import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import rootComponent from '../../rootComponent'; import { refresh } from '../../actions/ui/status'; import WorkerStatus from './WorkerStatus'; import PendingRequests from './PendingRequests'...
3eca568b41858684df93d1111744fad96c1084f4
lib/jekyll_test_plugin.rb
lib/jekyll_test_plugin.rb
require "jekyll_test_plugin/version" require "jekyll" module JekyllTestPlugin class TestPage < Jekyll::Page def initialize(site, base, dir, name) @site = site @base = base @dir = dir @name = name self.process(name) self.content = "this is a test" self.data = {} end ...
require "jekyll_test_plugin/version" require "jekyll" module JekyllTestPlugin class TestPage < Jekyll::Page def initialize(site, base, dir, name) @site = site @base = base @dir = dir @name = name self.process(name) self.content = "this is a test" self.data = {} end ...
Set it to true so it'll run in a whitelist.
Set it to true so it'll run in a whitelist. /cc @benbalter
Ruby
mit
jekyll/jekyll-test-gem-plugin
ruby
## Code Before: require "jekyll_test_plugin/version" require "jekyll" module JekyllTestPlugin class TestPage < Jekyll::Page def initialize(site, base, dir, name) @site = site @base = base @dir = dir @name = name self.process(name) self.content = "this is a test" self.da...
a41a0a67e7422213df2ada1f0893bca7e01a5fd7
scripts/templates/credhub_bashrc.sh
scripts/templates/credhub_bashrc.sh
apk add --no-cache util-linux 1>2 2>/dev/null cat <<EOF ------- CREDHUB SHELL From this shell, you can access credhub using the credhub cli. Basic usage: \$ credhub find -p /path/of/secrets \$ credhub get -n /name/of/secretc Some useful credentials path are listed below. $(column -t -s "|" <<PATHS PROMETHEUS P...
apk add --no-cache util-linux 1>2 2>/dev/null cat <<EOF ------- CREDHUB SHELL From this shell, you can access credhub using the credhub cli. Basic usage: \$ credhub find -p /path/of/secrets \$ credhub get -n /name/of/secretc Some useful credentials path are listed below. $(column -t -s "|" <<PATHS PROMETHEUS P...
Fix path of cf admin password in credhub preamble
Fix path of cf admin password in credhub preamble
Shell
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
shell
## Code Before: apk add --no-cache util-linux 1>2 2>/dev/null cat <<EOF ------- CREDHUB SHELL From this shell, you can access credhub using the credhub cli. Basic usage: \$ credhub find -p /path/of/secrets \$ credhub get -n /name/of/secretc Some useful credentials path are listed below. $(column -t -s "|" <<PA...
fa061f8a12656b6b2a5d48daba0eace95af6a8e8
test/test_ambit.rb
test/test_ambit.rb
require "test/unit" require "ambit" class TestAmbit < Test::Unit::TestCase def test_simple_default x = Ambit::choose([1, 2]) Ambit::require x.even? assert(x == 2) Ambit::clear! end def test_simple_private nd = Ambit::Generator.new x = nd.choose([1, 2]) nd.require x.even? assert(...
require "test/unit" require "ambit" class TestAmbit < Test::Unit::TestCase def test_simple_default x = Ambit::choose([1, 2]) Ambit::require x.even? assert(x == 2) Ambit::clear! end def test_simple_private nd = Ambit::Generator.new x = nd.choose([1, 2]) nd.require x.even? assert(...
Add a test for mark/cut, based on the find_boxes example.
Add a test for mark/cut, based on the find_boxes example.
Ruby
bsd-2-clause
jimwise/ambit
ruby
## Code Before: require "test/unit" require "ambit" class TestAmbit < Test::Unit::TestCase def test_simple_default x = Ambit::choose([1, 2]) Ambit::require x.even? assert(x == 2) Ambit::clear! end def test_simple_private nd = Ambit::Generator.new x = nd.choose([1, 2]) nd.require x.e...
87fc65d6820def0974b2f35437dc77c2da3f5957
examples/index.php
examples/index.php
<?php session_start(); require __DIR__.'/../vendor/autoload.php'; use \BW\Vkontakte as Vk; $vk = new Vk([ 'client_id' => '5759854', 'client_secret' => 'a556FovqtUBHArlXlAAO', 'redirect_uri' => 'http://localhost:8000', ]); if (isset($_GET['code'])) { $vk->authenticate($_GET['code']); $_SESSION['...
<?php session_start(); require __DIR__.'/../vendor/autoload.php'; use \BW\Vkontakte as Vk; $vk = new Vk([ 'client_id' => '5759854', 'client_secret' => 'a556FovqtUBHArlXlAAO', 'redirect_uri' => 'http://localhost:8000', ]); if (isset($_GET['code'])) { $vk->authenticate($_GET['code']); $_SESSION['...
Fix request scheme: REQUEST_SCHEME doesn't exist for PHP 7 built-in server
Fix request scheme: REQUEST_SCHEME doesn't exist for PHP 7 built-in server
PHP
mit
bocharsky-bw/vkontakte-php-sdk
php
## Code Before: <?php session_start(); require __DIR__.'/../vendor/autoload.php'; use \BW\Vkontakte as Vk; $vk = new Vk([ 'client_id' => '5759854', 'client_secret' => 'a556FovqtUBHArlXlAAO', 'redirect_uri' => 'http://localhost:8000', ]); if (isset($_GET['code'])) { $vk->authenticate($_GET['code']);...
64ff77c119f5253678e4cd28472b17204e5d2cc7
jarbas/dashboard/static/dashboard.css
jarbas/dashboard/static/dashboard.css
display: none } td.field-value { white-space: nowrap } .required label, label.required { color: #666; font-weight: normal; }
display: none } #content-main p { display: block } td.field-value { white-space: nowrap } .required label, label.required { color: #666; font-weight: normal }
Fix bug: pagination is back
Fix bug: pagination is back
CSS
mit
datasciencebr/serenata-de-amor,datasciencebr/jarbas,datasciencebr/jarbas,datasciencebr/serenata-de-amor,marcusrehm/serenata-de-amor,marcusrehm/serenata-de-amor,marcusrehm/serenata-de-amor,datasciencebr/jarbas,marcusrehm/serenata-de-amor,datasciencebr/jarbas
css
## Code Before: display: none } td.field-value { white-space: nowrap } .required label, label.required { color: #666; font-weight: normal; } ## Instruction: Fix bug: pagination is back ## Code After: display: none } #content-main p { display: block } td.field-value { white-space: nowrap } .required...
0793d2ab4831b9bbf9354b9eaf876f6134809ebb
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 3.3) project(png2tile) find_package(PNG REQUIRED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11") set(SOURCE_FILES compressors/gfxcomp_stm.c compressors/gfxcomp_phantasystargaiden.cpp main.cpp ) add_executable(png2til...
cmake_minimum_required(VERSION 3.3) project(png2tile) find_package(PNG REQUIRED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SOURCE_FILES compressors/gfxcomp_stm.c compressors/gfxcomp_phantasystargaiden.cpp main.cpp ) add_executable(png2tile ${SOURCE_FILES}) include_directories(${PNG_INCL...
Revert to original CMake flags.
Revert to original CMake flags.
Text
mit
yuv422/png2tile,yuv422/png2tile
text
## Code Before: cmake_minimum_required(VERSION 3.3) project(png2tile) find_package(PNG REQUIRED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11") set(SOURCE_FILES compressors/gfxcomp_stm.c compressors/gfxcomp_phantasystargaiden.cpp main.cpp ) add_ex...
5015d202a36383235437e6ad3843dd0c69dcef88
.travis.yml
.travis.yml
language: php php: - "hhvm" before_script: - composer install --prefer-source script: - vendor/bin/phpunit
sudo: false language: php php: - "hhvm" before_script: - composer install --prefer-source script: - vendor/bin/phpunit
Use Travis' new docker archetecture.
Use Travis' new docker archetecture.
YAML
mit
HackPack/HackClassScanner
yaml
## Code Before: language: php php: - "hhvm" before_script: - composer install --prefer-source script: - vendor/bin/phpunit ## Instruction: Use Travis' new docker archetecture. ## Code After: sudo: false language: php php: - "hhvm" before_script: - composer install --prefer-source script: ...
b53333e62ba7d841b70c69c67e1e214b72bfe49e
wiki/src/main/resources/MySankore/Groups.xml
wiki/src/main/resources/MySankore/Groups.xml
<?xml version="1.0" encoding="UTF-8"?> <xwikidoc> <web>MySankore</web> <name>Groups</name> <language></language> <defaultLanguage>en</defaultLanguage> <translation>0</translation> <parent>MyCurriki.WebHome</parent> <creator>XWiki.Admin</creator> <author>XWiki.Admin</author> <customClass></customClass> <contentAuthor>XW...
<?xml version="1.0" encoding="UTF-8"?> <xwikidoc> <web>MySankore</web> <name>Groups</name> <language></language> <defaultLanguage>en</defaultLanguage> <translation>0</translation> <parent>MyCurriki.WebHome</parent> <creator>XWiki.Admin</creator> <author>XWiki.Admin</author> <customClass></customClass> <contentAuthor>XW...
Add a link using a button "REJOINDRE UN GROUPE" like we did "Ajouter une ressource"
Add a link using a button "REJOINDRE UN GROUPE" like we did "Ajouter une ressource" git-svn-id: 20418c87ed1402b21fd364c4015379761d5a9ad4@8515 d4d025b9-7bfe-4295-b4c0-7365c5b8ee40
XML
lgpl-2.1
xwiki-labs/sankoreorg,xwiki-labs/sankoreorg,xwiki-contrib/sankoreorg,xwiki-contrib/sankoreorg,xwiki-labs/sankoreorg,xwiki-contrib/sankoreorg
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <xwikidoc> <web>MySankore</web> <name>Groups</name> <language></language> <defaultLanguage>en</defaultLanguage> <translation>0</translation> <parent>MyCurriki.WebHome</parent> <creator>XWiki.Admin</creator> <author>XWiki.Admin</author> <customClass></customClass> <...
31972f43dc6ad8c0396ec76adf89c2600ad25262
.travis.yml
.travis.yml
language: objective-c osx_image: xcode8.2 install: echo before_install: - gem install xcpretty - mkdir -p ~/Library/Logs/DiagnosticReports script: - set -o pipefail - scripts/bootstrap.sh - NSUnbufferedIO=YES xcodebuild -scheme pxctest-list-tests -sdk iphonesimulator build | xcpretty -c - NSUnbufferedIO=YES...
language: objective-c osx_image: xcode8.2 install: echo before_install: - gem install xcpretty - mkdir -p ~/Library/Logs/DiagnosticReports script: - set -o pipefail - scripts/bootstrap.sh - NSUnbufferedIO=YES xcodebuild -scheme pxctest-list-tests -sdk iphonesimulator build | xcpretty -c - NSUnbufferedIO=YES...
Test brew install --HEAD on Travis
Test brew install --HEAD on Travis
YAML
mit
plu/pxctest,davetobin/pxctest,davetobin/pxctest,plu/pxctest,plu/pxctest
yaml
## Code Before: language: objective-c osx_image: xcode8.2 install: echo before_install: - gem install xcpretty - mkdir -p ~/Library/Logs/DiagnosticReports script: - set -o pipefail - scripts/bootstrap.sh - NSUnbufferedIO=YES xcodebuild -scheme pxctest-list-tests -sdk iphonesimulator build | xcpretty -c - NS...
276cb99f893443e4f1d242f861cd74d77770def4
inselect/tests/lib/test_segment.py
inselect/tests/lib/test_segment.py
import json import unittest from pathlib import Path from inselect.lib.document import InselectDocument from inselect.lib.segment import segment_document TESTDATA = Path(__file__).parent.parent / 'test_data' class TestSegment(unittest.TestCase): def test_segment_document(self): doc = InselectDocument.l...
import json import unittest from pathlib import Path from inselect.lib.document import InselectDocument from inselect.lib.segment import segment_document TESTDATA = Path(__file__).parent.parent / 'test_data' class TestSegment(unittest.TestCase): def test_segment_document(self): doc = InselectDocument.l...
Remove commented-out debug code :-(
Remove commented-out debug code :-(
Python
bsd-3-clause
NaturalHistoryMuseum/inselect,NaturalHistoryMuseum/inselect
python
## Code Before: import json import unittest from pathlib import Path from inselect.lib.document import InselectDocument from inselect.lib.segment import segment_document TESTDATA = Path(__file__).parent.parent / 'test_data' class TestSegment(unittest.TestCase): def test_segment_document(self): doc = In...
229a3414144a2d18fddb8fca3d3a75ae4ae305aa
package.json
package.json
{ "name": "SimpleChatServer", "version": "0.0.0", "main": "server.js", "scripts": { "test": "./node_modules/.bin/mocha tests" }, "author": "", "license": "BSD-2-Clause", "dependencies": { }, "devDependencies": { "mocha": "~1.21.4" } }
{ "name": "SimpleChatServer", "version": "0.0.0", "main": "server.js", "scripts": { "start": "node js/server.js", "test": "mocha tests", "forever": "forever start -a js/server.js" }, "author": "", "license": "BSD-2-Clause", "dependencies": {}, "devDependencies": { "forever": "^0.15.1",...
ADD forever script as dev dependency
ADD forever script as dev dependency Run with npm run forever Only start and test can be run with npm start/test For custom commands use npm run <custom_command>
JSON
mit
fhinkel/SimpleChatServer,fhinkel/SimpleChatServer
json
## Code Before: { "name": "SimpleChatServer", "version": "0.0.0", "main": "server.js", "scripts": { "test": "./node_modules/.bin/mocha tests" }, "author": "", "license": "BSD-2-Clause", "dependencies": { }, "devDependencies": { "mocha": "~1.21.4" } } ## Instru...
7ddb95428cce2957ae8837cc3161708cf9e6ee1c
test/com/facebook/buck/features/rust/testdata/cxx_with_rust_dep/morehello.rs
test/com/facebook/buck/features/rust/testdata/cxx_with_rust_dep/morehello.rs
extern "C" { fn evenmorehello(); } pub fn helloer() { println!("I'm saying \"hello\" again!"); unsafe { evenmorehello() }; }
extern "C" { fn evenmorehello(); } pub fn helloer() { println!("I'm saying \"hello\" again!"); unsafe { evenmorehello() }; }
Update formatter to rustfmt 2.0
Update formatter to rustfmt 2.0 Reviewed By: zertosh fbshipit-source-id: fac317220355b9e4b067199b05e36ab79ffcf802
Rust
apache-2.0
JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck
rust
## Code Before: extern "C" { fn evenmorehello(); } pub fn helloer() { println!("I'm saying \"hello\" again!"); unsafe { evenmorehello() }; } ## Instruction: Update formatter to rustfmt 2.0 Reviewed By: zertosh fbshipit-source-id: fac317220355b9e4b067199b05e36ab79ffcf802 ## Code After: extern "C" { ...
0dd93322e88d0be0d9cda9fa1746a81b991c24c6
src/rules/eoflineRule.ts
src/rules/eoflineRule.ts
/* * Copyright 2013 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/* * Copyright 2013 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Allow eofline rule to have an empty file
Allow eofline rule to have an empty file
TypeScript
apache-2.0
pspeter3/tslint,RyanCavanaugh/tslint,andy-ms/tslint,Nemo157/tslint,vmmitev/tslint,lukeapage/tslint,Kuniwak/tslint,aciccarello/tslint,berickson1/tslint,Pajn/tslint,spirosikmd/tslint,spirosikmd/tslint,weswigham/tslint,Kuniwak/tslint,berickson1/tslint,prendradjaja/tslint,weswigham/tslint,s-panferov/tslint,ScottSWu/tslint,...
typescript
## Code Before: /* * Copyright 2013 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
b4fda38bd5d504922d19fd7191dd824732c78da2
sh/homebrew.sh
sh/homebrew.sh
add_to_path $HOME/homebrew/{bin,sbin} # Get (unprefixed) GNU utils to override BSD utils. add_to_path $HOME/homebrew/opt/coreutils/libexec/gnubin function man-nognu () { gnuman="$HOME/homebrew/opt/coreutils/libexec/gnuman:$HOME/homebrew/share/man" MANPATH="${MANPATH/$gnuman:/}" man "$@" }
add_to_path $HOME/homebrew/{bin,sbin} # Get (unprefixed) GNU utils to override BSD utils. add_to_path $HOME/homebrew/opt/coreutils/libexec/gnubin function man-nognu () { gnuman="$HOME/homebrew/opt/coreutils/libexec/gnuman:$HOME/homebrew/share/man" MANPATH="${MANPATH/$gnuman:/}" man "$@" } with-brew-env () { PK...
Add with-brew-env alias for compiling with brew libs
Add with-brew-env alias for compiling with brew libs
Shell
mit
rwstauner/run_control,rwstauner/run_control,rwstauner/run_control,rwstauner/run_control,rwstauner/run_control
shell
## Code Before: add_to_path $HOME/homebrew/{bin,sbin} # Get (unprefixed) GNU utils to override BSD utils. add_to_path $HOME/homebrew/opt/coreutils/libexec/gnubin function man-nognu () { gnuman="$HOME/homebrew/opt/coreutils/libexec/gnuman:$HOME/homebrew/share/man" MANPATH="${MANPATH/$gnuman:/}" man "$@" } ## Inst...
0089918d2b03b5fb6196861448a393127a92c554
src/checked.spec.js
src/checked.spec.js
import WrapperBuilder from './wrapper'; import { shallow, mount } from 'enzyme'; import React from 'react'; const CheckedFixture = () => ( <input type="checkbox" defaultChecked value="coffee" /> ); // const NotCheckedFixture = () => ( // <input type="checkbox" value="coffee" /> // ); describe('Checkbox', () => {...
import WrapperBuilder from './wrapper'; import { shallow, mount } from 'enzyme'; import React from 'react'; const CheckedFixture = () => ( <input type="checkbox" defaultChecked value="coffee" /> ); const NotCheckedFixture = () => ( <input type="checkbox" value="coffee" /> ); describe('Checkbox', () => { const ...
Check if checkbox is not checked.
Check if checkbox is not checked.
JavaScript
mit
rkotze/should-enzyme
javascript
## Code Before: import WrapperBuilder from './wrapper'; import { shallow, mount } from 'enzyme'; import React from 'react'; const CheckedFixture = () => ( <input type="checkbox" defaultChecked value="coffee" /> ); // const NotCheckedFixture = () => ( // <input type="checkbox" value="coffee" /> // ); describe('Ch...
bdd7242ab8ec452bfa7ef03561d5c42997144097
.travis.yml
.travis.yml
language: node_js node_js: - stable git: submodules: false before_install: - export DISPLAY=:99.0 - Xvfb :99.0 -extension RANDR -ac -screen 0 1280x1024x16 > /dev/null & before_script: - npm run compile
sudo: true # needed for google-chrome-stable install workaround :( language: node_js node_js: - stable # Handle git submodules yourself git: submodules: false # Current broken on Travis 15/March/2016 # addons: # apt: # sources: # - google-chrome # packages: # - google-chrome-stable before_in...
Revert "[tests] Try current version of chrome as well"
Revert "[tests] Try current version of chrome as well" This reverts commit a62c5e4140af23453b24f1f3aa052527c6493723.
YAML
mit
toxicFork/react-three-renderer
yaml
## Code Before: language: node_js node_js: - stable git: submodules: false before_install: - export DISPLAY=:99.0 - Xvfb :99.0 -extension RANDR -ac -screen 0 1280x1024x16 > /dev/null & before_script: - npm run compile ## Instruction: Revert "[tests] Try current version of chrome as well" This reverts comm...
3d8bf6742d7b65e78b948c5e6716afc3b801df64
manager/templates/parts/footers.html
manager/templates/parts/footers.html
<hr> <div class="pull-left"> <span> <small>Ignition</small><br/> <small><a href="https://github.com/hreeder/ignition"><i class="fa fa-github-square"></i></a></small> </span> </div> {% assets "js_all" %} <script type="text/javascript" src="{{ ASSET_URL }}"></script> {% endassets %}
<hr> <div class="container"> <div class="pull-left"> <span> <small>Ignition</small><br/> <small><a href="https://github.com/hreeder/ignition"><i class="fa fa-github-square"></i></a></small> </span> </div> </div> {% assets "js_all" %} <script type="text/javascript" src="{{...
Add the container around the footer
Add the container around the footer
HTML
mit
hreeder/ignition,hreeder/ignition,hreeder/ignition
html
## Code Before: <hr> <div class="pull-left"> <span> <small>Ignition</small><br/> <small><a href="https://github.com/hreeder/ignition"><i class="fa fa-github-square"></i></a></small> </span> </div> {% assets "js_all" %} <script type="text/javascript" src="{{ ASSET_URL }}"></script> {% endassets %...
21871a255cf465bc1187a7fdcd5646109401728e
80-final-tweaks.sh
80-final-tweaks.sh
eselect editor set /usr/bin/vi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Add git autocompletion and branch name to prompt # This depends on having bash-completion being already installed. cat ${DIR}/service-configs/bashrc.root.append >> ~/.bashrc cat ${DIR}/service-configs/bashrc.vagrant.append >> /ho...
eselect editor set /usr/bin/vi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Add git autocompletion and branch name to prompt # This depends on having bash-completion being already installed. cat ${DIR}/service-configs/bashrc.root.append >> ~/.bashrc cat ${DIR}/service-configs/bashrc.vagrant.append >> /ho...
Stop the attempt to set git bash completion from allowing the script to die.
Stop the attempt to set git bash completion from allowing the script to die.
Shell
mit
courtney-miles/gentoo-web-provision
shell
## Code Before: eselect editor set /usr/bin/vi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Add git autocompletion and branch name to prompt # This depends on having bash-completion being already installed. cat ${DIR}/service-configs/bashrc.root.append >> ~/.bashrc cat ${DIR}/service-configs/bashrc.vagra...