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
3ed9736f59ed1b39d1345fe83763ff1f18fd8834
app/renderers/spree/retail/redcarpet_html_renderer.rb
app/renderers/spree/retail/redcarpet_html_renderer.rb
require 'redcarpet' module Spree module Retail class RedcarpetHTMLRenderer def initialize(options: {}, extensions: {}) @options = options @extensions = extensions @renderer = Redcarpet::Render::HTML.new(default_options) @converter = Redcarpet::Markdown.new(@renderer, defaul...
require 'redcarpet' module Spree module Retail class RedcarpetHTMLRenderer def initialize(options: {}, extensions: {}) @options = options @extensions = extensions @renderer = Redcarpet::Render::HTML.new(default_options) @converter = Redcarpet::Markdown.new(@renderer, defaul...
Return an empty string if product's content is nil
Return an empty string if product's content is nil
Ruby
bsd-3-clause
glossier/solidus_retail,glossier/solidus_retail,glossier/solidus_retail
ruby
## Code Before: require 'redcarpet' module Spree module Retail class RedcarpetHTMLRenderer def initialize(options: {}, extensions: {}) @options = options @extensions = extensions @renderer = Redcarpet::Render::HTML.new(default_options) @converter = Redcarpet::Markdown.new(@...
f263d23ee3fc216027c4ee047778b491766d3647
app/controllers/api/application_controller.rb
app/controllers/api/application_controller.rb
class Api::ApplicationController < ActionController::Base respond_to :json rescue_from ActiveRecord::RecordNotFound, :with => :handle_not_found rescue_from ActionController::ParameterMissing, :with => :handle_unprocessable_entity before_action :verify_api_key def verify_api_key api_user end ...
class Api::ApplicationController < ActionController::Base respond_to :json rescue_from ActiveRecord::RecordNotFound, :with => :handle_not_found rescue_from ActionController::ParameterMissing, :with => :handle_unprocessable_entity before_action :verify_api_key def verify_api_key api_user end ...
Return nil for api_user when api key invalid
Return nil for api_user when api key invalid
Ruby
apache-2.0
Arie/serveme,Arie/serveme,Arie/serveme,Arie/serveme
ruby
## Code Before: class Api::ApplicationController < ActionController::Base respond_to :json rescue_from ActiveRecord::RecordNotFound, :with => :handle_not_found rescue_from ActionController::ParameterMissing, :with => :handle_unprocessable_entity before_action :verify_api_key def verify_api_key ap...
6ee2b75438c9c423a261e0743be5bc09ad1ccbe0
fixture/Lua/input_code/Seed.lua
fixture/Lua/input_code/Seed.lua
i = 0 f() if i == 0 then if j ~= 0 then elseif 2 > j then end elseif 1 < i then end while i ~= 0 do while j == 0 do end end repeat repeat until j ~= 0 until i == 0 for i = 0, 1, 1 do for j = 2, 3, 4 do end end ; ::Label:: i = 0
print(1) print(1, 2) i = 0 f() if i == 0 then if j ~= 0 then elseif 2 > j then end elseif 1 < i then end while i ~= 0 do while j == 0 do end end repeat repeat until j ~= 0 until i == 0 for i = 0, 1, 1 do for j = 2, 3, 4 do end end ; ::Label:: i = 0
Enhance seed code of Lua.
Enhance seed code of Lua.
Lua
apache-2.0
exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests
lua
## Code Before: i = 0 f() if i == 0 then if j ~= 0 then elseif 2 > j then end elseif 1 < i then end while i ~= 0 do while j == 0 do end end repeat repeat until j ~= 0 until i == 0 for i = 0, 1, 1 do for j = 2, 3, 4 do end end ; ::Label:: i = 0 ## Instruction: Enhance seed code of Lua. ## Code After: pr...
4d489c5be7e823e7e5fa1155d84060af47dd613f
src/util/Interrupt.cpp
src/util/Interrupt.cpp
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2012 Sandro Santilli <strk@keybit.net> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Lice...
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2012 Sandro Santilli <strk@keybit.net> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Lice...
Clear interruption request flag just before interrupting
Clear interruption request flag just before interrupting git-svn-id: 6c2b1bd10c324c49ea9d9e6e31006a80e70507cb@3670 5242fede-7e19-0410-aef8-94bd7d2200fb
C++
lgpl-2.1
WillieMaddox/libgeos,rkanavath/libgeos,gtourkas/libgeos,strk/libgeos,WillieMaddox/libgeos,manisandro/libgeos,mwtoews/libgeos,rkanavath/libgeos,libgeos/libgeos,rkanavath/libgeos,mwtoews/libgeos,mwtoews/libgeos,gtourkas/libgeos,manisandro/libgeos,WillieMaddox/libgeos,gtourkas/libgeos,mwtoews/libgeos,libgeos/libgeos,strk/...
c++
## Code Before: /********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2012 Sandro Santilli <strk@keybit.net> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser Gen...
c8ed53166ea9f9cab1f6ef44b19b309024403308
HISTORY.rst
HISTORY.rst
Changelog ========= 0.2.0 - 2013-07-26 ------------------ - Refactor the library a bit and add more tests. - Backwards incompatible with 0.1.x if using ``URIVariable`` directly from ``uritemplate.template`` 0.1.1 - 2013-05-19 ------------------ - Add ability to get set of variable names in the current URI - If ...
Changelog ========= 0.3.0 - 2013-10-22 ------------------ - Add ``#partial`` to partially expand templates and return new instances of ``URITemplate``. 0.2.0 - 2013-07-26 ------------------ - Refactor the library a bit and add more tests. - Backwards incompatible with 0.1.x if using ``URIVariable`` directly fro...
Update history in prep for new version
Update history in prep for new version
reStructuredText
bsd-3-clause
pombredanne/uritemplate
restructuredtext
## Code Before: Changelog ========= 0.2.0 - 2013-07-26 ------------------ - Refactor the library a bit and add more tests. - Backwards incompatible with 0.1.x if using ``URIVariable`` directly from ``uritemplate.template`` 0.1.1 - 2013-05-19 ------------------ - Add ability to get set of variable names in the cu...
5ad06cc851338c6edf8cb49d8c009dc5102ae664
apps/galleries_institutions2/routes.coffee
apps/galleries_institutions2/routes.coffee
PartnerCategories = require '../../collections/partner_categories' Backbone = require 'backbone' Q = require 'bluebird-q' PrimaryCarousel = require './components/primary_carousel/fetch' CategoryCarousel = require './components/partner_cell_carousel/fetch' _ = require 'underscore' fetchCategories = (type) -> categori...
_ = require 'underscore' Q = require 'bluebird-q' Backbone = require 'backbone' PartnerCategories = require '../../collections/partner_categories' PrimaryCarousel = require './components/primary_carousel/fetch' CategoryCarousel = require './components/partner_cell_carousel/fetch' fetchCategories = (type) -> categori...
Fix indentation; bootstrap carousels data
Fix indentation; bootstrap carousels data
CoffeeScript
mit
cavvia/force-1,izakp/force,kanaabe/force,yuki24/force,dblock/force,cavvia/force-1,oxaudo/force,artsy/force-public,anandaroop/force,mzikherman/force,anandaroop/force,erikdstock/force,kanaabe/force,artsy/force,yuki24/force,eessex/force,yuki24/force,oxaudo/force,yuki24/force,eessex/force,cavvia/force-1,cavvia/force-1,oxau...
coffeescript
## Code Before: PartnerCategories = require '../../collections/partner_categories' Backbone = require 'backbone' Q = require 'bluebird-q' PrimaryCarousel = require './components/primary_carousel/fetch' CategoryCarousel = require './components/partner_cell_carousel/fetch' _ = require 'underscore' fetchCategories = (typ...
21e5beee94ad077072a080efd4e14346a2d77b79
lib/recaptcha_mailhide/configuration.rb
lib/recaptcha_mailhide/configuration.rb
module RecaptchaMailhide class Configuration attr_accessor :private_key, :public_key end end
module RecaptchaMailhide class Configuration attr_writer :private_key, :public_key def private_key raise "RecaptchaMailhide's private_key is not set. If you're using Rails add an initializer to config/initializers." unless @private_key @private_key end def public_key raise "Recaptc...
Make private_key and public_key raise exceptions if missing from config.
Make private_key and public_key raise exceptions if missing from config.
Ruby
mit
pilaf/recaptcha-mailhide
ruby
## Code Before: module RecaptchaMailhide class Configuration attr_accessor :private_key, :public_key end end ## Instruction: Make private_key and public_key raise exceptions if missing from config. ## Code After: module RecaptchaMailhide class Configuration attr_writer :private_key, :public_key def...
42d27344488b126f394eb8ee78903bb39166edcc
docker-compose.yml
docker-compose.yml
version: '3' services: mysql: image: ${MYSQL_IMAGE:-percona/percona-server:5.7} ports: - ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3306}:3306 environment: - MYSQL_ALLOW_EMPTY_PASSWORD=yes mongo: image: ${MONGODB_IMAGE:-percona/percona-server-mongodb:3.4} ports: - ${MONGODB_HOST:-1...
version: '3' services: mysql: image: ${MYSQL_IMAGE:-percona/percona-server:5.7} ports: - ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3306}:3306 environment: - MYSQL_ALLOW_EMPTY_PASSWORD=yes # MariaDB doesn't enable Performance Schema by default so we need to do it manually # https://mariadb...
Enable Performance Schema for MariaDB >= 10.0.12
Enable Performance Schema for MariaDB >= 10.0.12
YAML
agpl-3.0
percona/qan-agent,percona/qan-agent
yaml
## Code Before: version: '3' services: mysql: image: ${MYSQL_IMAGE:-percona/percona-server:5.7} ports: - ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3306}:3306 environment: - MYSQL_ALLOW_EMPTY_PASSWORD=yes mongo: image: ${MONGODB_IMAGE:-percona/percona-server-mongodb:3.4} ports: - $...
c47093e82a1814dd421c37fc3cbef9512541d526
test/website.js
test/website.js
var path = require('path'); var _ = require('lodash'); var assert = require('assert'); var fs = require("fs"); var fsUtil = require("../lib/utils/fs"); describe('Website Generator', function () { it('should correctly generate a book to website', function(done) { testGeneration(books[1], "site", function(...
var path = require('path'); var _ = require('lodash'); var assert = require('assert'); var fs = require("fs"); var fsUtil = require("../lib/utils/fs"); describe('Website Generator', function () { it('should correctly generate a book to website', function(done) { testGeneration(books[1], "site", function(...
Add test for generation of multilingual book
Add test for generation of multilingual book
JavaScript
apache-2.0
mautic/documentation,JohnTroony/gitbook,justinleoye/gitbook,alex-dixon/gitbook,mautic/documentation,iamchenxin/gitbook,rohan07/gitbook,ryanswanson/gitbook,youprofit/gitbook,strawluffy/gitbook,a-moses/gitbook,OriPekelman/gitbook,tshoper/gitbook,CN-Sean/gitbook,thelastmile/gitbook,OriPekelman/gitbook,2390183798/gitbook,m...
javascript
## Code Before: var path = require('path'); var _ = require('lodash'); var assert = require('assert'); var fs = require("fs"); var fsUtil = require("../lib/utils/fs"); describe('Website Generator', function () { it('should correctly generate a book to website', function(done) { testGeneration(books[1], "...
f6a37eae5b86b40ee55bbc67401fd24d44647d76
tests/embodiment/Learning/behavior/CMakeLists.txt
tests/embodiment/Learning/behavior/CMakeLists.txt
LINK_LIBRARIES ( Control behavior comboreduct util ${PROJECT_LIBRARIES} ) ADD_CXXTEST(BehaviorDescriptionMatcherUTest) ADD_CXXTEST(CompositeBehaviorDescriptionUTest) ADD_CXXTEST(BehaviorCategoryUTest) ADD_CXXTEST(BDRetrieverUTest) LINK_LIBRARIES( oac lslib Control AvatarComboVocabulary comboreduct ) ADD_...
INCLUDE_DIRECTORIES ( ${PYTHON_INCLUDE_PATH} ) LINK_LIBRARIES ( Control behavior comboreduct util ${PROJECT_LIBRARIES} ) ADD_CXXTEST(BehaviorDescriptionMatcherUTest) ADD_CXXTEST(CompositeBehaviorDescriptionUTest) ADD_CXXTEST(BehaviorCategoryUTest) ADD_CXXTEST(BDRetrieverUTest) LINK_LIBRARIES( oac lslib Co...
Add explicit python include path
Add explicit python include path
Text
agpl-3.0
MarcosPividori/atomspace,rohit12/opencog,ceefour/opencog,shujingke/opencog,Selameab/opencog,kinoc/opencog,kim135797531/opencog,eddiemonroe/atomspace,ceefour/atomspace,eddiemonroe/opencog,kim135797531/opencog,iAMr00t/opencog,gaapt/opencog,shujingke/opencog,ceefour/opencog,misgeatgit/opencog,gavrieltal/opencog,eddiemonro...
text
## Code Before: LINK_LIBRARIES ( Control behavior comboreduct util ${PROJECT_LIBRARIES} ) ADD_CXXTEST(BehaviorDescriptionMatcherUTest) ADD_CXXTEST(CompositeBehaviorDescriptionUTest) ADD_CXXTEST(BehaviorCategoryUTest) ADD_CXXTEST(BDRetrieverUTest) LINK_LIBRARIES( oac lslib Control AvatarComboVocabulary com...
2249452542dee82b463de4870b40f05ff467a99b
list/list.go
list/list.go
package list import "fmt" type List struct { first *Node last *Node size int } type Node struct { next *Node val int } func (l *List) String() string { if l.IsEmpty() { return "List()" } else { return fmt.Sprintf("List(%s)", l.first.Stringl()) } } func (n *Node) String() string { return fmt.Sprintf...
package list import "fmt" type List struct { first *Node last *Node size int } type Node struct { next *Node val int } func (l *List) String() string { if l.IsEmpty() { return "List()" } else { return fmt.Sprintf("List(%s)", l.first.Stringl()) } } func (n *Node) String() string { return fmt.Sprintf...
Add Shift and you've got a Queue going...
Add Shift and you've got a Queue going...
Go
unlicense
neilvallon/alGo
go
## Code Before: package list import "fmt" type List struct { first *Node last *Node size int } type Node struct { next *Node val int } func (l *List) String() string { if l.IsEmpty() { return "List()" } else { return fmt.Sprintf("List(%s)", l.first.Stringl()) } } func (n *Node) String() string { re...
256f4f64c3ba119b9b27537200643bd0879b009d
lib/theme-and-appearance.zsh
lib/theme-and-appearance.zsh
autoload colors; colors; export LSCOLORS="Gxfxcxdxbxegedabagacad" export LS_COLORS # Enable ls colors if [ "$DISABLE_LS_COLORS" != "true" ] then # Find the option for using colors in ls, depending on the version: Linux or BSD ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G' # set...
autoload colors; colors; export LSCOLORS="Gxfxcxdxbxegedabagacad" export LS_COLORS # Enable ls colors if [ "$DISABLE_LS_COLORS" != "true" ]; then # Find the option for using colors in ls, depending on the version: Linux or BSD ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G' # s...
Use LS_COLORS (git submodule) if available.
Use LS_COLORS (git submodule) if available.
Shell
mit
blueyed/oh-my-zsh,blueyed/oh-my-zsh,blueyed/oh-my-zsh
shell
## Code Before: autoload colors; colors; export LSCOLORS="Gxfxcxdxbxegedabagacad" export LS_COLORS # Enable ls colors if [ "$DISABLE_LS_COLORS" != "true" ] then # Find the option for using colors in ls, depending on the version: Linux or BSD ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls...
c695c5b60f638ea803ca82110841ef5bb7b7133c
server/validations/project.js
server/validations/project.js
const Joi = require('joi'); const PARAMS = { name: Joi.string().required() }; const PAYLOAD = { name: Joi.string().required(), maintainers: Joi.array(), description: Joi.string(), hasLicense: Joi.boolean(), hasLinter: Joi.boolean(), hasReadme: Joi.boolean(), engines: { npm: Joi.string(), node:...
const Joi = require('joi'); const PARAMS = { name: Joi.string().required() }; const PAYLOAD = { name: Joi.string().required(), maintainers: Joi.array(), description: Joi.string(), hasLicense: Joi.boolean(), hasLinter: Joi.boolean(), hasReadme: Joi.boolean(), engines: { npm: Joi.string(), node:...
Add validation rules for limit, offset, and sorting
Add validation rules for limit, offset, and sorting
JavaScript
mit
onmodulus/demographics
javascript
## Code Before: const Joi = require('joi'); const PARAMS = { name: Joi.string().required() }; const PAYLOAD = { name: Joi.string().required(), maintainers: Joi.array(), description: Joi.string(), hasLicense: Joi.boolean(), hasLinter: Joi.boolean(), hasReadme: Joi.boolean(), engines: { npm: Joi.str...
5700c905ca156d311f6edb48347f17783f3f4439
test/attr/attr_availability.swift
test/attr/attr_availability.swift
// RUN: %swift %s -parse -verify @availability(*, unavailable) func unavailable_func() {} @availability(*, unavailable, message="message") func unavailable_func_with_message() {} @availability(iOS, unavailable) @availability(OSX, unavailable) func unavailable_multiple_platforms() {} @availability(badPlatform, unava...
// RUN: %swift %s -parse -verify @availability(*, unavailable) func unavailable_func() {} @availability(*, unavailable, message="message") func unavailable_func_with_message() {} @availability(iOS, unavailable) @availability(OSX, unavailable) func unavailable_multiple_platforms() {} @availability // expected-error ...
Add some tests for malformed availability attributes.
Add some tests for malformed availability attributes. This tests a few diagnostics that hadn't ever been tested before (for any attributes). Swift SVN r20029
Swift
apache-2.0
xedin/swift,gottesmm/swift,parkera/swift,CodaFi/swift,calebd/swift,huonw/swift,benlangmuir/swift,felix91gr/swift,amraboelela/swift,kusl/swift,KrishMunot/swift,khizkhiz/swift,zisko/swift,LeoShimonaka/swift,tinysun212/swift-windows,harlanhaskins/swift,LeoShimonaka/swift,LeoShimonaka/swift,glessard/swift,brentdax/swift,kh...
swift
## Code Before: // RUN: %swift %s -parse -verify @availability(*, unavailable) func unavailable_func() {} @availability(*, unavailable, message="message") func unavailable_func_with_message() {} @availability(iOS, unavailable) @availability(OSX, unavailable) func unavailable_multiple_platforms() {} @availability(ba...
57d8ad9d10bc1c122e7fad33d015c9d505c8de56
docs/faqs.rst
docs/faqs.rst
FAQ ======= *Q: Why do I get "Timestamp for this request is not valid"* *A*: This occurs in 2 different cases. The timestamp sent is outside of the serverTime - recvWindow value The timestamp sent is more than 1000ms ahead of the server time Check that your system time is in sync. See `this issue <https://github.co...
FAQ ======= *Q: Why do I get "Timestamp for this request is not valid"* *A*: This occurs in 2 different cases. The timestamp sent is outside of the serverTime - recvWindow value The timestamp sent is more than 1000ms ahead of the server time Check that your system time is in sync. See `this issue <https://github.co...
Add note about regenerating API key if getting signature error
Add note about regenerating API key if getting signature error
reStructuredText
mit
sammchardy/python-binance
restructuredtext
## Code Before: FAQ ======= *Q: Why do I get "Timestamp for this request is not valid"* *A*: This occurs in 2 different cases. The timestamp sent is outside of the serverTime - recvWindow value The timestamp sent is more than 1000ms ahead of the server time Check that your system time is in sync. See `this issue <h...
9c864b5a6af44acd07e5b7f2a2c742dcf8f4aa30
README.md
README.md
PluginUnloadingTest =================== A proof of concept of dynamic plugin unloading.
PluginUnloadingTest =================== A simple example of dynamic plugin unloading in java. 1. Run `mvn package` 2. Run `copy.sh` 3. Run `start.sh` 4. In another terminal check who's using plugin-1.jar `fuser plugin-1.jar`. There shouldn't be anyone. Or at least process id of the JVM running the example shouldn't b...
Put some content in the readme.
Put some content in the readme.
Markdown
mit
Wolf480pl/PluginUnloadingTest,Wolf480pl/PluginUnloadingTest
markdown
## Code Before: PluginUnloadingTest =================== A proof of concept of dynamic plugin unloading. ## Instruction: Put some content in the readme. ## Code After: PluginUnloadingTest =================== A simple example of dynamic plugin unloading in java. 1. Run `mvn package` 2. Run `copy.sh` 3. Run `start.sh`...
27bf208ca665c6ce67296c050ccd7e08e7c106d7
web/public/css/base/_form.less
web/public/css/base/_form.less
input[type='date'], input[type='email'], input[type='number'], input[type='text'], textarea { &.ng-dirty { &.ng-valid { border-color: @success-color; } &.ng-invalid { border-color: @error-color; } } } .timepicker.ng-dirty { &.ng-valid-time input { border: 1px solid @success-colo...
input[type='date'], input[type='email'], input[type='number'], input[type='text'], textarea { &.ng-dirty { &.ng-valid { border-color: @success-color; } &.ng-invalid { border-color: @error-color; } } } .timepicker.ng-dirty { &.ng-valid-time input { border: 1px solid @success-colo...
Fix responsiveness issue for floating element on edit-form
Fix responsiveness issue for floating element on edit-form which was making date unselectable
Less
mit
CoderDojo/cp-zen-platform,CoderDojo/cp-zen-platform
less
## Code Before: input[type='date'], input[type='email'], input[type='number'], input[type='text'], textarea { &.ng-dirty { &.ng-valid { border-color: @success-color; } &.ng-invalid { border-color: @error-color; } } } .timepicker.ng-dirty { &.ng-valid-time input { border: 1px sol...
d380e54a153e8a8b6a6ec72a7ec582a0075430ef
template-2_col-pics.php
template-2_col-pics.php
<?php /* Template Name: 2 Spalten und Bilder */ ?> <div class="row"> <div class="medium-8 small-12 column"> <div class="white-bg vines"> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('templates/page', 'header'); ?> <ul class="large-block-grid-2 med...
<?php /* Template Name: 2 Spalten und Bilder */ ?> <div class="row"> <div class="medium-8 small-12 column"> <div class="white-bg vines"> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('templates/page', 'header'); ?> <ul class="large-block-grid-2 med...
Fix lightbox on two col page.
Fix lightbox on two col page.
PHP
mit
juliabode/anisah,juliabode/anisah,juliabode/anisah
php
## Code Before: <?php /* Template Name: 2 Spalten und Bilder */ ?> <div class="row"> <div class="medium-8 small-12 column"> <div class="white-bg vines"> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('templates/page', 'header'); ?> <ul class="large-...
e6093bc71147e692d25464f4f23842423cda797e
Tests/Loader/GlobFileLoaderTest.php
Tests/Loader/GlobFileLoaderTest.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Tests\Loader; use PHPUnit\Framewo...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Tests\Loader; use PHPUnit\Framewo...
Allow patterns of resources to be excluded from config loading
[Routing][Config] Allow patterns of resources to be excluded from config loading
PHP
mit
symfony/dependency-injection
php
## Code Before: <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Tests\Loader; use...
d8ba2ce7df764a8d4cd542af618ddf757dc6aa65
app/src/js/modules/buic/listing.js
app/src/js/modules/buic/listing.js
/** * Handling of BUIC listings. * * @mixin * @namespace Bolt.buic.listing * * @param {Object} bolt - The Bolt module. * @param {Object} $ - jQuery. */ (function (bolt, $) { 'use strict'; /** * Bolt.buic.listing mixin container. * * @private * @type {Object} */ var listing ...
/** * Handling of BUIC listings. * * @mixin * @namespace Bolt.buic.listing * * @param {Object} bolt - The Bolt module. * @param {Object} $ - jQuery. */ (function (bolt, $) { 'use strict'; /** * Bolt.buic.listing mixin container. * * @private * @type {Object} */ var listing ...
Handle select/unselect of a single row
Handle select/unselect of a single row
JavaScript
mit
GawainLynch/bolt,rarila/bolt,lenvanessen/bolt,rossriley/bolt,joshuan/bolt,romulo1984/bolt,electrolinux/bolt,cdowdy/bolt,one988/cm,GawainLynch/bolt,rarila/bolt,rossriley/bolt,HonzaMikula/masivnipostele,lenvanessen/bolt,Raistlfiren/bolt,GawainLynch/bolt,CarsonF/bolt,rarila/bolt,cdowdy/bolt,bolt/bolt,CarsonF/bolt,Intendit...
javascript
## Code Before: /** * Handling of BUIC listings. * * @mixin * @namespace Bolt.buic.listing * * @param {Object} bolt - The Bolt module. * @param {Object} $ - jQuery. */ (function (bolt, $) { 'use strict'; /** * Bolt.buic.listing mixin container. * * @private * @type {Object} */ ...
e57eb82bba4d6c28dc99f868b8f16b805e0bdade
spec/lib/guard/rspec/formatter_spec.rb
spec/lib/guard/rspec/formatter_spec.rb
require 'spec_helper.rb' require 'guard/rspec/formatter' describe Guard::RSpec::Formatter do let(:formatter) { Guard::RSpec::Formatter.new(StringIO.new) } describe '#dump_summary' do after { File.delete('./tmp/rspec_guard_result') } context 'with failures' do let(:example) { double( execut...
require 'spec_helper.rb' require 'guard/rspec/formatter' describe Guard::RSpec::Formatter do let(:formatter) { Guard::RSpec::Formatter.new(StringIO.new) } describe '#dump_summary' do after { File.delete('./tmp/rspec_guard_result') } context 'with failures' do let(:failed_example) { double( ...
Rename example to failed_example to avoid confusion with implicit example object.
Rename example to failed_example to avoid confusion with implicit example object.
Ruby
mit
kvokka/guard-rspec,mes/guard-rspec,baberthal/guard-rspec,consti/guard-rspec,guard/guard-rspec
ruby
## Code Before: require 'spec_helper.rb' require 'guard/rspec/formatter' describe Guard::RSpec::Formatter do let(:formatter) { Guard::RSpec::Formatter.new(StringIO.new) } describe '#dump_summary' do after { File.delete('./tmp/rspec_guard_result') } context 'with failures' do let(:example) { double...
c9c810e23e9acf93e497aa522e62afef336aa69f
app/views/users/_admin.html.erb
app/views/users/_admin.html.erb
<h1>Admin</h1> <h2>Groups</h2> <ul> <li><a href="/groups/new">Add</a></li> <li><a href="/groups/">List</a></li> </ul> <h2>Parties</h2> <ul> <li><a href="/parties/new">Add</a></li> <li><a href="/parties/">List</a></li> </ul> <h2>Politicians</h2> <ul> <li><a href="/politicians/new">Add</a></li> <li><a href=...
<h1>Admin</h1> <h2>Groups</h2> <ul> <li><a href="/groups/new">Add</a></li> <li><a href="/groups/">List</a></li> </ul> <h2>Parties</h2> <ul> <li><a href="/parties/new">Add</a></li> <li><a href="/parties/">List</a></li> </ul> <h2>Politicians</h2> <ul> <li><a href="/politicians/new">Add</a></li> <li><a href=...
Add a link to statistics in menu.
Add a link to statistics in menu.
HTML+ERB
bsd-3-clause
4bic/politwoops,Saworieza/politwoops,sunlightlabs/politwoops,sunlightlabs/politwoops,4bic/politwoops,4bic/politwoops,Saworieza/politwoops,sunlightlabs/politwoops,Saworieza/politwoops
html+erb
## Code Before: <h1>Admin</h1> <h2>Groups</h2> <ul> <li><a href="/groups/new">Add</a></li> <li><a href="/groups/">List</a></li> </ul> <h2>Parties</h2> <ul> <li><a href="/parties/new">Add</a></li> <li><a href="/parties/">List</a></li> </ul> <h2>Politicians</h2> <ul> <li><a href="/politicians/new">Add</a></li...
9738e87b3e49d4b6ce429413ba37eefa9f506ea5
README.md
README.md
Turn Timer is a simple Javascript file that integrates with the Roll20 API. To use it, enable the script, and type the following commands into the Roll20 chat. General Syntax: ``` !t <seconds> ``` *Note: <seconds> is optional.* To use the default time (60 seconds), type the following into the Roll20 chat: ``` !t ...
All of the code of the API scripts in this repository is released under the MIT license (see LICENSE file for details). If you contribute a new script or help improve an existing script, you agree that your contribution is released under the MIT License as well.
Revert "Adds instructions to the read"
Revert "Adds instructions to the read" This reverts commit 849d736ad5dacb915ddefd694bc5ff270b2f8d3e.
Markdown
mit
JamesMowery/turn-timer,JamesMowery/onward
markdown
## Code Before: Turn Timer is a simple Javascript file that integrates with the Roll20 API. To use it, enable the script, and type the following commands into the Roll20 chat. General Syntax: ``` !t <seconds> ``` *Note: <seconds> is optional.* To use the default time (60 seconds), type the following into the Roll2...
a2faef4d0f9bf2b9268c41cfe0a6f48b9d494f3b
.scrutinizer.yml
.scrutinizer.yml
imports: - php filter: excluded_paths: - 'bin/*' - 'vendor/*' - 'features/*' - 'spec/*' - 'tests/*' before_commands: - composer install --prefer-source --dev --optimize-autoloader --no-interaction tools: php_sim: true php_cpd: false # PHP Code Sniffer php_code_sniffer: conf...
imports: - php filter: excluded_paths: - 'bin/*' - 'vendor/*' - 'features/*' - 'spec/*' - 'tests/*' before_commands: - composer install --prefer-source --dev --optimize-autoloader --no-interaction tools: php_sim: true php_cpd: false # PHP Code Sniffer php_code_sniffer: conf...
Install SPL types when building with scruitinizer
Install SPL types when building with scruitinizer
YAML
mit
jk/RestServer
yaml
## Code Before: imports: - php filter: excluded_paths: - 'bin/*' - 'vendor/*' - 'features/*' - 'spec/*' - 'tests/*' before_commands: - composer install --prefer-source --dev --optimize-autoloader --no-interaction tools: php_sim: true php_cpd: false # PHP Code Sniffer php_code_s...
87aab5305813be396bba83af816ad538851381e1
fix_unity_issues.sh
fix_unity_issues.sh
path=${PWD} unity_location=/Applications/Unity/Unity.app/Contents/MacOS/Unity guisystem_location=/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity echo $path mkdir -p ~/tmp/ mv $guisystem_location/GUISystem ~/tmp $unity_location -projectPath $path -quit mv ~/tmp/GUISystem $guisystem_location
path=${PWD} unity_location=/Applications/Unity/Unity.app/Contents/MacOS/Unity guisystem_location=/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity echo $path mkdir -p ~/tmp/ mv $guisystem_location/GUISystem ~/tmp mv $guisystem_location/Networking ~/tmp mv $guisystem_location/UnityAnalytics ~/tmp $unity_loc...
Improve unity fix-it script to do more improvin'
Improve unity fix-it script to do more improvin'
Shell
apache-2.0
stlgamedev/gateway2dwest,stlgamedev/gateway2dwest,IGDAStl/gateway2dwest,IGDAStl/gateway2dwest,stlgamedev/gateway2dwest,IGDAStl/gateway2dwest
shell
## Code Before: path=${PWD} unity_location=/Applications/Unity/Unity.app/Contents/MacOS/Unity guisystem_location=/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity echo $path mkdir -p ~/tmp/ mv $guisystem_location/GUISystem ~/tmp $unity_location -projectPath $path -quit mv ~/tmp/GUISystem $guisystem_locatio...
e10540a851b34f5b3a8c111786c9fb5b06fea86e
pillars/profile/common/system_features/maven_installation_configuration.sls
pillars/profile/common/system_features/maven_installation_configuration.sls
system_features: maven_installation_configuration: maven_home_dir: '/usr/share/maven' # Specify list of (additionally) activated profiles. # These profiles will be added to `<activeProfiles>` # system-wide (per user) `settings.xml` configuration file. activate_profiles: ...
system_features: maven_installation_configuration: # NOTE: Use custom Maven installation instead of standard one. {% if False %} maven_home_dir: '/usr/share/maven' {% else %} maven_home_dir: '/opt/maven/apache-maven-3.2.5' {% endif %} # Specify list of (a...
Use custom Maven installation for Jenkins
Use custom Maven installation for Jenkins
SaltStack
apache-2.0
uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states
saltstack
## Code Before: system_features: maven_installation_configuration: maven_home_dir: '/usr/share/maven' # Specify list of (additionally) activated profiles. # These profiles will be added to `<activeProfiles>` # system-wide (per user) `settings.xml` configuration file. act...
537d48ef943bfb6dd0dd9996eee5a7c8c0ac3f79
src/main/js/formatter/number.ts
src/main/js/formatter/number.ts
import {Formatter} from './formatter'; /** * @hidden */ export class NumberFormatter implements Formatter<number> { private digits_: number; constructor(digits: number) { this.digits_ = digits; } get digits(): number { return this.digits_; } public format(value: number): string { return value.toFixed(...
import {Formatter} from './formatter'; /** * @hidden */ export class NumberFormatter implements Formatter<number> { private digits_: number; constructor(digits: number) { this.digits_ = digits; } get digits(): number { return this.digits_; } public format(value: number): string { return value.toFixe...
Fix error on Safari: toFixed() argument must be between 0 and 20
Fix error on Safari: toFixed() argument must be between 0 and 20
TypeScript
mit
cocopon/tweakpane,cocopon/tweakpane,cocopon/tweakpane
typescript
## Code Before: import {Formatter} from './formatter'; /** * @hidden */ export class NumberFormatter implements Formatter<number> { private digits_: number; constructor(digits: number) { this.digits_ = digits; } get digits(): number { return this.digits_; } public format(value: number): string { retur...
5c9e9d33113c7fcf49223853abf52f1e91b17687
frappe/integrations/doctype/google_maps_settings/google_maps_settings.py
frappe/integrations/doctype/google_maps_settings/google_maps_settings.py
from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document import googlemaps import datetime class GoogleMapsSettings(Document): def validate(self): if self.enabled: if not self.client_key: frappe.throw(_("Client key is required")) if not self.ho...
from __future__ import unicode_literals import googlemaps import frappe from frappe import _ from frappe.model.document import Document class GoogleMapsSettings(Document): def validate(self): if self.enabled: if not self.client_key: frappe.throw(_("Client key is required")) if not self.home_address: ...
Check if Google Maps is enabled when trying to get the client
Check if Google Maps is enabled when trying to get the client
Python
mit
adityahase/frappe,adityahase/frappe,ESS-LLP/frappe,almeidapaulopt/frappe,StrellaGroup/frappe,yashodhank/frappe,RicardoJohann/frappe,yashodhank/frappe,ESS-LLP/frappe,frappe/frappe,mhbu50/frappe,saurabh6790/frappe,saurabh6790/frappe,adityahase/frappe,vjFaLk/frappe,yashodhank/frappe,mhbu50/frappe,vjFaLk/frappe,almeidapaul...
python
## Code Before: from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document import googlemaps import datetime class GoogleMapsSettings(Document): def validate(self): if self.enabled: if not self.client_key: frappe.throw(_("Client key is required")) ...
ed5ab0523f6550cb8f4730f4f66cf305a4eba26e
index.rst
index.rst
.. Introduction to Virtualization slides file, created by hieroglyph-quickstart on Mon Dec 15 21:52:38 2014. Introduction to Virtualization ============================== Contents: .. toctree:: :maxdepth: 2
.. Introduction to Virtualization slides file, created by hieroglyph-quickstart on Mon Dec 15 21:52:38 2014. .. Copyright {yyyy} {name of copyright owner} .. 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...
Add slides from initial brainstorming session
Add slides from initial brainstorming session
reStructuredText
apache-2.0
finchd/virtualization-dump,finchd/virtualization-dump
restructuredtext
## Code Before: .. Introduction to Virtualization slides file, created by hieroglyph-quickstart on Mon Dec 15 21:52:38 2014. Introduction to Virtualization ============================== Contents: .. toctree:: :maxdepth: 2 ## Instruction: Add slides from initial brainstorming session ## Code After: .. ...
fb852af2fff883dd03037a067929861a8fa786ac
README.md
README.md
openFrameworks Addon For Neuraltalk2
[`openFrameworks`][1], addon for IP Cameras using [Neuralktalk2][2] for automatic captioning. This is using the [`ofxIpVideoGrabber`][3] addon's example code. We've just modified it to read captions from neuraltalk2 and display it. If you haven't seen this [video][4] already, go check it out. It demenonstrates how dee...
Update readme with description of what the addon does
Update readme with description of what the addon does
Markdown
mit
eyedol/ofxIPNeuraltalk2
markdown
## Code Before: openFrameworks Addon For Neuraltalk2 ## Instruction: Update readme with description of what the addon does ## Code After: [`openFrameworks`][1], addon for IP Cameras using [Neuralktalk2][2] for automatic captioning. This is using the [`ofxIpVideoGrabber`][3] addon's example code. We've just modified i...
3fa09fcbce4efc9a21040d70101e12d5325043c1
features/groups/templates/groups/group_filter.html
features/groups/templates/groups/group_filter.html
{% extends 'stadt/list.html' %} {% load crispy_forms_tags rules %} {% block heading_toolbar %} {% has_perm 'groups.create_group' user as can_create_group %} {% if can_create_group %} <a href="{% url 'group-create' %}" class="btn btn-default pull-right">Neue Gruppe</a> {% endif %} {% endblock %} {%...
{% extends 'stadt/list.html' %} {% load crispy_forms_tags rules %} {% block heading_toolbar %} {% has_perm 'groups.create_group' user as can_create_group %} {% if can_create_group %} <a href="{% url 'group-create' %}" class="btn btn-default pull-right">Neue Gruppe</a> {% endif %} {% endblock %} {%...
Add groups sort order hint
Add groups sort order hint
HTML
agpl-3.0
stadtgestalten/stadtgestalten,stadtgestalten/stadtgestalten,stadtgestalten/stadtgestalten
html
## Code Before: {% extends 'stadt/list.html' %} {% load crispy_forms_tags rules %} {% block heading_toolbar %} {% has_perm 'groups.create_group' user as can_create_group %} {% if can_create_group %} <a href="{% url 'group-create' %}" class="btn btn-default pull-right">Neue Gruppe</a> {% endif %} {%...
4cc9368ed686ec9f8bf265aac755c87c52d65bdb
indico/modules/events/agreements/templates/events/agreements/emails/new_signature_email_to_manager.txt
indico/modules/events/agreements/templates/events/agreements/emails/new_signature_email_to_manager.txt
{% extends 'emails/base.txt' %} {% set state = 'accepted' if agreement.accepted else 'rejected' %} {% block subject %}Agreement {{ state }}{% endblock %} {% block footer_title %}Agreements{% endblock %} {% block header_recipient -%} event manager {%- endblock %} {% block body -%} A new agreement has been {{ stat...
{% extends 'emails/base.txt' %} {% set state = 'accepted' if agreement.accepted else 'rejected' %} {% block subject %}Agreement {{ state }}{% endblock %} {% block footer_title %}Agreements{% endblock %} {% block header_recipient -%} event managers {%- endblock %} {% block body -%} A new agreement has been {{ sta...
Improve formatting of agreement signature email
Improve formatting of agreement signature email
Text
mit
indico/indico,mic4ael/indico,DirkHoffmann/indico,OmeGak/indico,mvidalgarcia/indico,ThiefMaster/indico,DirkHoffmann/indico,mvidalgarcia/indico,OmeGak/indico,DirkHoffmann/indico,pferreir/indico,mic4ael/indico,mvidalgarcia/indico,pferreir/indico,ThiefMaster/indico,OmeGak/indico,ThiefMaster/indico,ThiefMaster/indico,indico...
text
## Code Before: {% extends 'emails/base.txt' %} {% set state = 'accepted' if agreement.accepted else 'rejected' %} {% block subject %}Agreement {{ state }}{% endblock %} {% block footer_title %}Agreements{% endblock %} {% block header_recipient -%} event manager {%- endblock %} {% block body -%} A new agreement ...
f0f3dfff69adf75bcc006d6112a00ce4a4ef780d
.github/workflows/main.yml
.github/workflows/main.yml
name: CI on: [push, pull_request] jobs: test: name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Update rustup run: rustup self update - name: Install Rust run: | rustup set profile minimal rustup toolchain install nightly -c rust-docs...
name: CI on: [push, pull_request] jobs: test: name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Update rustup run: rustup self update - name: Install Rust run: | rustup set profile minimal rustup toolchain install nightly -c rust-docs...
Update deprecated GitHub Actions commands.
Update deprecated GitHub Actions commands.
YAML
apache-2.0
rust-lang/reference,rust-lang/reference
yaml
## Code Before: name: CI on: [push, pull_request] jobs: test: name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Update rustup run: rustup self update - name: Install Rust run: | rustup set profile minimal rustup toolchain install nigh...
cffed7b1efa8e318dc134160bf99cf1211824f80
.travis.yml
.travis.yml
language: php php: - 7.0 sudo: false before_install: - composer self-update - rm -rf build - mkdir build install: - travis_retry composer install --no-interaction --prefer-source script: - phpunit --configuration test/phpunit.xml.dist --coverage-clover build/clover.xml after_success: - travis_retry ...
language: php php: - 5.6 - 7.0 - 7.1 - 7.2 sudo: false before_install: - composer self-update - rm -rf build - mkdir build install: - travis_retry composer install --no-interaction --prefer-source script: - phpunit --configuration test/phpunit.xml.dist --coverage-clover build/clover.xml after_su...
Extend versions of PHP cared about
Extend versions of PHP cared about
YAML
bsd-3-clause
allansun/docker-cloud-php-api
yaml
## Code Before: language: php php: - 7.0 sudo: false before_install: - composer self-update - rm -rf build - mkdir build install: - travis_retry composer install --no-interaction --prefer-source script: - phpunit --configuration test/phpunit.xml.dist --coverage-clover build/clover.xml after_success: ...
5766a53fbec9c717c93923a8d291cb0978e7354e
Ants/src/com/ibm/sk/MenuMain.java
Ants/src/com/ibm/sk/MenuMain.java
package com.ibm.sk; import java.util.Arrays; import java.util.stream.Collectors; import com.ibm.sk.ant.AntLoader; import com.ibm.sk.ant.facade.AntFactory; import com.ibm.sk.ff.gui.common.objects.operations.InitMenuData; import com.ibm.sk.handlers.GameMenuHandler; public class MenuMain extends AbstractMain { public...
package com.ibm.sk; import java.util.Arrays; import java.util.stream.Collectors; import com.ibm.sk.ant.AntLoader; import com.ibm.sk.ant.facade.AntFactory; import com.ibm.sk.ff.gui.client.ReplayFileHelper; import com.ibm.sk.ff.gui.common.objects.operations.InitMenuData; import com.ibm.sk.handlers.GameMenuHandler; pub...
Send replay data to menu
Send replay data to menu
Java
epl-1.0
gamefest2017/ants
java
## Code Before: package com.ibm.sk; import java.util.Arrays; import java.util.stream.Collectors; import com.ibm.sk.ant.AntLoader; import com.ibm.sk.ant.facade.AntFactory; import com.ibm.sk.ff.gui.common.objects.operations.InitMenuData; import com.ibm.sk.handlers.GameMenuHandler; public class MenuMain extends Abstrac...
e101bb152a3239b2a7f8040c5ee8d81e7b080870
release-notes.txt
release-notes.txt
New in v.0.1.4: * Default Java version increased to 7. * Update Apache Storm recipes for 1.0.1 release.
New in v.0.1.5: * Added a DICE-H2020 cookbook and included recipes for installing BO4CO. * Added a recipe to the DICE-H2020 cookbook for installing client programs for DICE deployment service. * Added support for Apache Cassandra in the technology library. * Added support for Spark in technology library. At this t...
Add release notes for v.0.1.5
Add release notes for v.0.1.5
Text
apache-2.0
dice-project/DICE-Chef-Repository,dice-project/DICE-Chef-Repository,dice-project/DICE-Chef-Repository,dice-project/DICE-Chef-Repository
text
## Code Before: New in v.0.1.4: * Default Java version increased to 7. * Update Apache Storm recipes for 1.0.1 release. ## Instruction: Add release notes for v.0.1.5 ## Code After: New in v.0.1.5: * Added a DICE-H2020 cookbook and included recipes for installing BO4CO. * Added a recipe to the DICE-H2020 cookbook...
a4ce089d3a4300dcc5b620f1eee8ace2d6681787
configure.sh
configure.sh
mkdir deps cd deps svn checkout http://or-tools.googlecode.com/svn/trunk/ or-tools-read-only cd or-tools-read-only make third_party make cplibs
mkdir -p deps cd deps svn checkout http://or-tools.googlecode.com/svn/trunk/ or-tools-read-only cd or-tools-read-only make third_party make cplibs # remove shared objects to enforce static linking rm -v lib/*.so lib/*.so.* cd dependencies/install/lib rm -v *.so *.so.*
Configure script won't warn if deps directory already exist
Configure script won't warn if deps directory already exist
Shell
lgpl-2.1
Stoeoef/ddt,Stoeoef/ddt,Stoeoef/ddt,Stoeoef/ddt
shell
## Code Before: mkdir deps cd deps svn checkout http://or-tools.googlecode.com/svn/trunk/ or-tools-read-only cd or-tools-read-only make third_party make cplibs ## Instruction: Configure script won't warn if deps directory already exist ## Code After: mkdir -p deps cd deps svn checkout http://or-tools.googlecode.com/s...
dc5bb6c79b03720af5eca903593869c9f7bf2c14
.travis.yml
.travis.yml
language: c++ sudo: required os: linux dist: trusty compiler: - gcc addons: apt: sources: - ubuntu-toolchain-r-test packages: - libsdl2-dev - g++-7 before_install: - eval "CC=gcc-7 && CXX=g++-7" script: - sudo mkdir -p /usr/lib/cmake/SDL2/ - sudo cp sdl2-config.cmake /usr/lib/cmake/SDL2/sdl...
language: c++ sudo: required os: linux dist: trusty compiler: - gcc addons: apt: sources: - ubuntu-toolchain-r-test packages: - libsdl2-dev - g++-7 before_install: - eval "CC=gcc-7 && CXX=g++-7" script: - sudo mkdir -p /usr/lib/cmake/SDL2/ - sudo cp sdl2-config.cmake /usr/lib/cmake/SDL2/sdl...
Use hacky fix for Travis force pushing
Use hacky fix for Travis force pushing
YAML
mit
icecream95/zxtk,icecream95/zxtk
yaml
## Code Before: language: c++ sudo: required os: linux dist: trusty compiler: - gcc addons: apt: sources: - ubuntu-toolchain-r-test packages: - libsdl2-dev - g++-7 before_install: - eval "CC=gcc-7 && CXX=g++-7" script: - sudo mkdir -p /usr/lib/cmake/SDL2/ - sudo cp sdl2-config.cmake /usr/li...
a2900571e7272fad812106fb7430dd6f4b1b19bc
CONTRIBUTING.rst
CONTRIBUTING.rst
D-Wave welcomes contributions to Ocean projects. See how to contribute at `Ocean Contributors <https://github.com/dwavesystems/docs/blob/master/contributing.rst>`_.
D-Wave welcomes contributions to Ocean projects. See how to contribute at `Ocean Contributors <http://dw-docs.readthedocs.io/en/latest/CONTRIBUTING.html>`_.
Fix link to main contributing page
Fix link to main contributing page
reStructuredText
apache-2.0
dwavesystems/dimod,dwavesystems/dimod
restructuredtext
## Code Before: D-Wave welcomes contributions to Ocean projects. See how to contribute at `Ocean Contributors <https://github.com/dwavesystems/docs/blob/master/contributing.rst>`_. ## Instruction: Fix link to main contributing page ## Code After: D-Wave welcomes contributions to Ocean projects. See how to contribut...
e5d67ab9691938cf248547dc48741109843c4efb
.travis.yml
.travis.yml
sudo: required language: ruby services: - docker script: - ls -lah - docker build -f Dockerfile -t apsl/puput . - docker-compose -f docker-compose-demo.yml up -d - docker-compose -f docker-compose-demo.yml ps - sleep 10 - docker exec -ti dockerpuput_web_1 python manage.py migrate - wget http://localhost:8000/blog/ noti...
sudo: required language: ruby services: - docker script: - ls -lah - docker build -f Dockerfile -t apsl/puput . - docker-compose -f docker-compose.yml up -d - docker-compose -f docker-compose.yml ps - sleep 10 - docker exec -ti dockerpuput_web_1 python manage.py migrate - wget http://localhost:8000/blog/ notifications:...
Fix docker-compose reference for CI
Fix docker-compose reference for CI
YAML
mit
APSL/docker-puput,APSL/docker-puput
yaml
## Code Before: sudo: required language: ruby services: - docker script: - ls -lah - docker build -f Dockerfile -t apsl/puput . - docker-compose -f docker-compose-demo.yml up -d - docker-compose -f docker-compose-demo.yml ps - sleep 10 - docker exec -ti dockerpuput_web_1 python manage.py migrate - wget http://localhost...
a6aa980c268f0fc2c2bef1935eec3892136933de
doc/CONTRIBUTING.md
doc/CONTRIBUTING.md
Always provide the following information when submitting an issue: - Output of `bspwm -v`. - Content of `bspwmrc`. - Steps to reproduce the problem. ## Pull Requests ### Requirements You must be comfortable with [C][1], [XCB][2] and [Git][3]. ### Coding Style I follow the [Linux Coding Style][4] with the followin...
Always provide the following information when submitting an issue: - Output of `bspwm -v`. - Content of `bspwmrc`. - Steps to reproduce the problem. ## Pull Requests ### Requirements You must be comfortable with [C][1], [XCB][2] and [Git][3]. ### Coding Style I follow the [Linux Coding Style][4] with the followin...
Fix link to the K&R C book
Fix link to the K&R C book Fixes #512.
Markdown
bsd-2-clause
nfnty/bspwm,baskerville/bspwm,medisun/bspwm,JBouron/bspwm,JBouron/bspwm,nfnty/bspwm,baskerville/bspwm,nfnty/bspwm,medisun/bspwm,medisun/bspwm,JBouron/bspwm
markdown
## Code Before: Always provide the following information when submitting an issue: - Output of `bspwm -v`. - Content of `bspwmrc`. - Steps to reproduce the problem. ## Pull Requests ### Requirements You must be comfortable with [C][1], [XCB][2] and [Git][3]. ### Coding Style I follow the [Linux Coding Style][4] w...
6cd001d5bef42b119a4695058e683e2d0b4495c1
README.md
README.md
This repository contains a working example of public Shopify App using Codeigniter and Embedded App SDK -> Do the following Changes in <strong>config.php</strong> 1-Change API Key<br> 2-Change Secret<br> 3-Change base url <br> 4-Change redirect_url <br>
This repository contains a working example of public Shopify App using Codeigniter and Embedded App SDK -> Do the following Changes in <strong>config.php</strong> 1-Change API Key<br> 2-Change Secret<br> 3-Change base url <br> 4-Change redirect_url <br> 5-Go to Controller Auth -> find $shop, remove $this->input->get...
Update Readme for new shopify development 2018
Update Readme for new shopify development 2018 Its necesary to change this value for your app works with shopify partner account
Markdown
mit
ZoobiDoobi/shopify_codeigniter_working_example,ZoobiDoobi/shopify_codeigniter_working_example
markdown
## Code Before: This repository contains a working example of public Shopify App using Codeigniter and Embedded App SDK -> Do the following Changes in <strong>config.php</strong> 1-Change API Key<br> 2-Change Secret<br> 3-Change base url <br> 4-Change redirect_url <br> ## Instruction: Update Readme for new shopify ...
9155d496eb660fbdd38bcc67051120d5bb9ee5e1
NetBackendWithTableStorage/Readme.md
NetBackendWithTableStorage/Readme.md
The code under this directory was presented in the [blog post about continuation links and table storage in the .NET backend](http://azure.microsoft.com/blog/2014/10/10/better-paging-support-with-table-storage-in-mobile-services-net-backend.aspx).
The code under this directory was presented in the [blog post about continuation links and table storage in the .NET backend](https://azure.microsoft.com/blog/better-support-for-paging-with-table-storage-in-azure-mobile-services-net-backend/).
Fix link to Azure blog post
Fix link to Azure blog post
Markdown
apache-2.0
Azure/mobile-services-samples,Azure/mobile-services-samples,Azure/mobile-services-samples,Azure/mobile-services-samples,Azure/mobile-services-samples,Azure/mobile-services-samples,Azure/mobile-services-samples,Azure/mobile-services-samples
markdown
## Code Before: The code under this directory was presented in the [blog post about continuation links and table storage in the .NET backend](http://azure.microsoft.com/blog/2014/10/10/better-paging-support-with-table-storage-in-mobile-services-net-backend.aspx). ## Instruction: Fix link to Azure blog post ## Code Aft...
a4a312d927429560c18bcf076f9fc3de3fd495df
requirements.txt
requirements.txt
cached-property==1.3.0 coverage==4.3.1 dateutils==0.6.6 requests==2.12.4
cached-property==1.3.1 coverage==4.4.1 python-dateutil==2.6.1 requests==2.18.4
Upgrade packages and replace dateutils by python-dateutil
Upgrade packages and replace dateutils by python-dateutil
Text
mit
indradhanush/dnsimple2-python
text
## Code Before: cached-property==1.3.0 coverage==4.3.1 dateutils==0.6.6 requests==2.12.4 ## Instruction: Upgrade packages and replace dateutils by python-dateutil ## Code After: cached-property==1.3.1 coverage==4.4.1 python-dateutil==2.6.1 requests==2.18.4
d22e0b325cca5d28f7f48d01334d43d82e7fcb95
requirements.txt
requirements.txt
Fabric==1.5.1 Jinja2==2.6 PyYAML==3.10 WebOb==1.2.3 argparse==1.2.1 beautifulsoup4==4.1.3 boto==2.10.0 cloudformation==0.0.0 decorator==3.4.0 distribute==0.6.30 docopt==0.6.1 dogapi==1.2.3 ipython==0.13.1 jenkinsapi==0.1.11 lxml==3.1beta1 newrelic==1.10.2.38 path.py==3.0.1 pingdom==0.2.0 pycrypto==2.6 pyparsing==1.5.6 ...
Fabric==1.5.1 Jinja2==2.6 PyYAML==3.10 WebOb==1.2.3 argparse==1.2.1 beautifulsoup4==4.1.3 boto==2.10.0 cloudformation==0.0.0 decorator==3.4.0 distribute==0.6.30 docopt==0.6.1 dogapi==1.2.3 ipython==0.13.1 jenkinsapi==0.1.11 lxml==3.1beta1 newrelic==1.10.2.38 path.py==3.0.1 pingdom==0.2.0 pycrypto==2.6 pyparsing==1.5.6 ...
Remove dependencies that should come from setup.py because we don't depend on them directly.
Remove dependencies that should come from setup.py because we don't depend on them directly.
Text
agpl-3.0
ovnicraft/evex-configuration,Stanford-Online/configuration,chenshuchuan/configuration,usernamenumber/configuration,jorgeomarmh/configuration,hastexo/edx-configuration,edx/configuration,stvstnfrd/configuration,gashac03/ubuntu,louyihua/configuration,kursitet/configuration,appsembler/configuration,lgfa29/configuration,Uno...
text
## Code Before: Fabric==1.5.1 Jinja2==2.6 PyYAML==3.10 WebOb==1.2.3 argparse==1.2.1 beautifulsoup4==4.1.3 boto==2.10.0 cloudformation==0.0.0 decorator==3.4.0 distribute==0.6.30 docopt==0.6.1 dogapi==1.2.3 ipython==0.13.1 jenkinsapi==0.1.11 lxml==3.1beta1 newrelic==1.10.2.38 path.py==3.0.1 pingdom==0.2.0 pycrypto==2.6 p...
b9a673a20e70b5c949d72f4a963641e8868c75f1
README.md
README.md
_* WARNING: This is an experimental Gem and should not be used in production codebases *_ ## Introduction In an effort to follow [Single Responsibility Principle](http://www.oodesign.com/single-responsibility-principle.html) and combat [Fat Models](http://en.oreilly.com/rails2011/public/schedule/detail/18514), this ...
_Experimental Gem used to keep your models skinny. Don't use it in anything you care about._ ![mugatu](http://www.brobible.com/files/uploads/images/bro-life/mugatu.jpg) ## Introduction In an effort to follow [Single Responsibility Principle](http://www.oodesign.com/single-responsibility-principle.html) and combat [...
Update with pic of mugatu
Update with pic of mugatu
Markdown
mit
harlow/mugatu
markdown
## Code Before: _* WARNING: This is an experimental Gem and should not be used in production codebases *_ ## Introduction In an effort to follow [Single Responsibility Principle](http://www.oodesign.com/single-responsibility-principle.html) and combat [Fat Models](http://en.oreilly.com/rails2011/public/schedule/deta...
9347b445475c99958c0ca5c4ced58532f4d639b1
AppTests/MASErrorTestCase.swift
AppTests/MASErrorTestCase.swift
// // MASErrorTestCase.swift // mas-tests // // Created by Ben Chatelain on 2/11/18. // Copyright © 2018 Andrew Naylor. All rights reserved. // //@testable import mas import XCTest import Foundation class MASErrorTestCase: XCTestCase { var error: MASError! override func setUp() { super.setUp() ...
// // MASErrorTestCase.swift // mas-tests // // Created by Ben Chatelain on 2/11/18. // Copyright © 2018 Andrew Naylor. All rights reserved. // //@testable import mas import XCTest import Foundation class MASErrorTestCase: XCTestCase { private let errorDomain = "MAS" var error: MASError! var nserror: ...
Add sign in failed tests
Add sign in failed tests
Swift
mit
mas-cli/mas,mas-cli/mas,mas-cli/mas,argon/mas,argon/mas,mas-cli/mas,argon/mas,argon/mas,argon/mas
swift
## Code Before: // // MASErrorTestCase.swift // mas-tests // // Created by Ben Chatelain on 2/11/18. // Copyright © 2018 Andrew Naylor. All rights reserved. // //@testable import mas import XCTest import Foundation class MASErrorTestCase: XCTestCase { var error: MASError! override func setUp() { ...
4fa18f7ac77b99cdf53a45b5494497f2ca3ef36f
rkerberos.gemspec
rkerberos.gemspec
require 'rubygems' Gem::Specification.new do |spec| spec.name = 'rkerberos' spec.version = '0.1.2' spec.authors = ['Daniel Berger', 'Dominic Cleal'] spec.license = 'Artistic 2.0' spec.email = ['djberg96@gmail.com', 'dcleal@redhat.com'] spec.homepage = 'http://github.com/domcleal/rkerb...
require 'rubygems' Gem::Specification.new do |spec| spec.name = 'rkerberos' spec.version = '0.1.2' spec.authors = ['Daniel Berger', 'Dominic Cleal'] spec.license = 'Artistic 2.0' spec.email = ['djberg96@gmail.com', 'dcleal@redhat.com'] spec.homepage = 'http://github.com/domcleal/rkerb...
Improve gem file content list to exclude Gemfile.lock
Improve gem file content list to exclude Gemfile.lock
Ruby
artistic-2.0
sonOfRa/rkerberos,domcleal/rkerberos,sonOfRa/rkerberos,domcleal/rkerberos
ruby
## Code Before: require 'rubygems' Gem::Specification.new do |spec| spec.name = 'rkerberos' spec.version = '0.1.2' spec.authors = ['Daniel Berger', 'Dominic Cleal'] spec.license = 'Artistic 2.0' spec.email = ['djberg96@gmail.com', 'dcleal@redhat.com'] spec.homepage = 'http://github.co...
70b1a8e864bc0a27926b29d5d9b033c576883438
cmd/chasmd/README.md
cmd/chasmd/README.md
`chasmd` is a "black hole" InfluxDB imitation using the `chasm` package. Currently, it only supports HTTP writes. `chasmd` is useful to get a sense of how much load an InfluxDB client can generate when there is minimal request processing overhead. When you start `chasmd`, it will log out the number of HTTP requests,...
`chasmd` is a "black hole" InfluxDB imitation using the `chasm` package. It's an HTTP server with a `/write` endpoint, that ​_acts like_​ an InfluxDB server, but actually just discards the data. Currently, it only supports HTTP writes. `chasmd` is useful to get a sense of the theoretical maximum throughput an Influ...
Add some clarification to the readme.
Add some clarification to the readme.
Markdown
mit
mark-rushakoff/mountainflux
markdown
## Code Before: `chasmd` is a "black hole" InfluxDB imitation using the `chasm` package. Currently, it only supports HTTP writes. `chasmd` is useful to get a sense of how much load an InfluxDB client can generate when there is minimal request processing overhead. When you start `chasmd`, it will log out the number o...
ccb5da9c2f40fb3bcfd7b7811305de21561ba3c9
commands/receiveMessage.js
commands/receiveMessage.js
'use strict'; const db = require('../services/db'); const moment = require('moment'); module.exports = { db_required: true, events: ['message', 'join', 'action'], allow: ({isAuthenticated}) => isAuthenticated, response ({bot, author_match: [nick], channel, eventType}) { return db.conn.query( 'SELECT *...
'use strict'; const db = require('../services/db'); const moment = require('moment'); module.exports = { db_required: true, events: ['message', 'join', 'action'], allow: ({isAuthenticated}) => isAuthenticated, response ({author_match: [nick], channel, eventType}) { return db.conn.query( 'SELECT * FROM...
Add PM notifications for messages in another channel
Add PM notifications for messages in another channel Fixes #42
JavaScript
apache-2.0
pokemontrades/porygon-bot
javascript
## Code Before: 'use strict'; const db = require('../services/db'); const moment = require('moment'); module.exports = { db_required: true, events: ['message', 'join', 'action'], allow: ({isAuthenticated}) => isAuthenticated, response ({bot, author_match: [nick], channel, eventType}) { return db.conn.query(...
5c88f210644cbe59cf3b3a71345a3fc64dfc542a
spiff/api/plugins.py
spiff/api/plugins.py
from django.conf import settings import importlib import inspect def find_api_classes(module, superclass, test=lambda x: True): for app in map(lambda x:'%s.%s'%(x, module), settings.INSTALLED_APPS): try: appAPI = importlib.import_module(app) except ImportError, e: continue for name, cls in in...
from django.conf import settings import importlib import inspect def find_api_classes(*args, **kwargs): for app, cls in find_api_implementations(*args, **kwargs): yield cls def find_api_implementations(module, superclass, test=lambda x: True): for app in map(lambda x:'%s.%s'%(x, module), settings.INSTALLED_AP...
Add a method to also easily find what app an api object was found in
Add a method to also easily find what app an api object was found in
Python
agpl-3.0
SYNHAK/spiff,SYNHAK/spiff,SYNHAK/spiff
python
## Code Before: from django.conf import settings import importlib import inspect def find_api_classes(module, superclass, test=lambda x: True): for app in map(lambda x:'%s.%s'%(x, module), settings.INSTALLED_APPS): try: appAPI = importlib.import_module(app) except ImportError, e: continue for...
2d023ef1dc622af086abf3ca52816f29496ab3a2
Examples/MendeleySDKDemoOSX/RunTests.sh
Examples/MendeleySDKDemoOSX/RunTests.sh
cd Examples/MendeleySDKDemoOSX/ xcodebuild -workspace MendeleySDKDemoOSX.xcworkspace/ -scheme MendeleySDKDemoOSX TEST_AFTER_BUILD=YES
cd Examples/MendeleySDKDemoOSX/ xcodebuild -workspace MendeleySDKDemoOSX.xcworkspace/ -scheme MendeleySDKDemoOSX test
Update Run Test script with new action
Update Run Test script with new action
Shell
mit
shazino/MendeleySDK
shell
## Code Before: cd Examples/MendeleySDKDemoOSX/ xcodebuild -workspace MendeleySDKDemoOSX.xcworkspace/ -scheme MendeleySDKDemoOSX TEST_AFTER_BUILD=YES ## Instruction: Update Run Test script with new action ## Code After: cd Examples/MendeleySDKDemoOSX/ xcodebuild -workspace MendeleySDKDemoOSX.xcworkspace/ -scheme Mend...
ef72ce81c2d51cf99e44041a871a82c512badb8c
people/serializers.py
people/serializers.py
from rest_framework import serializers from people.models import Customer from people.models import InternalUser class CustomerSerializer(serializers.ModelSerializer): class Meta: model = Customer fields = '__all__' class InternalUserSerializer(serializers.ModelSerializer): class Meta: ...
from rest_framework import serializers from people.models import Customer from people.models import InternalUser class CustomerSerializer(serializers.ModelSerializer): phone_number = serializers.IntegerField(validators=[lambda x: len(str(x)) == 10]) class Meta: model = Customer fields = '__al...
Make the phone number an int
Make the phone number an int
Python
apache-2.0
rameshgopalakrishnan/v_excel_inventory,rameshgopalakrishnan/v_excel_inventory,rameshgopalakrishnan/v_excel_inventory
python
## Code Before: from rest_framework import serializers from people.models import Customer from people.models import InternalUser class CustomerSerializer(serializers.ModelSerializer): class Meta: model = Customer fields = '__all__' class InternalUserSerializer(serializers.ModelSerializer): ...
dbccda0ed0c07252b95a3672cbdbe7425d70bdcc
spec/end_to_end_spec.rb
spec/end_to_end_spec.rb
require 'spec_helper' module FFSplitter describe "End to end" do before { Dir.mkdir("tmp") unless Dir.exist?("tmp") } describe "split" do before { `bundle exec ruby -Ilib bin/ffsplitter 'spec/fixtures/test video.mp4' -o tmp 2>&1` } let(:file_list) { Dir.glob("tmp/*") } it "creates files" ...
require 'spec_helper' module FFSplitter describe "End to end" do before { Dir.mkdir("tmp") unless Dir.exist?("tmp") } describe "split" do context "with audio and video" do before { `bundle exec ruby -Ilib bin/ffsplitter 'spec/fixtures/test video.mp4' -o tmp 2>&1` } let(:file_list) { Di...
Write end-to-end spec for audio only
Write end-to-end spec for audio only
Ruby
mit
rockwood/ffsplitter
ruby
## Code Before: require 'spec_helper' module FFSplitter describe "End to end" do before { Dir.mkdir("tmp") unless Dir.exist?("tmp") } describe "split" do before { `bundle exec ruby -Ilib bin/ffsplitter 'spec/fixtures/test video.mp4' -o tmp 2>&1` } let(:file_list) { Dir.glob("tmp/*") } it ...
0683fd48b4b243a2a3f91b95b0412249f816df14
src/Index.swift
src/Index.swift
import Foundation class Index { func packPackages(packages: [Package]) { return } }
import Foundation class Index { private let formatter: NSDateFormatter = NSDateFormatter() init() { formatter.dateFormat = "yyyy-mm-dd'T'HH-mm-ss'Z'" } func packPackages(packages: [Package]) { let path = getOutputName() if !fileManager.createFileAtPath(path, contents: nil, attributes: nil)...
Set up basic writing of index file
Set up basic writing of index file
Swift
mit
Roosting/Index
swift
## Code Before: import Foundation class Index { func packPackages(packages: [Package]) { return } } ## Instruction: Set up basic writing of index file ## Code After: import Foundation class Index { private let formatter: NSDateFormatter = NSDateFormatter() init() { formatter.dateFormat = "yyy...
4ed6c20a9e6f1ec5fca9c40b4393d17b726a9723
vim/.aliases.sh
vim/.aliases.sh
_vim () { param_count="${#}" if [ "${param_count}" -ge 1 ]; then for param in "$@"; do if [ ! -d "${param}" ]; then file="${param}" if [ ! -e "${file}" ]; then read -p "File \"${file}\" doesn't exist. Create file? " -n 1 -r ...
_vim () { param_count="${#}" if [ "${param_count}" -ge 1 ]; then for param in "$@"; do if [ ! -d "${param}" ]; then file="${param}" if [ ! -e "${file}" ]; then read -p "File \"${file}\" doesn't exist. Create file? " -n 1 -r ...
Fix gvim closing open file
Fix gvim closing open file
Shell
unlicense
zborboa-g/dot-star,dot-star/dot-star
shell
## Code Before: _vim () { param_count="${#}" if [ "${param_count}" -ge 1 ]; then for param in "$@"; do if [ ! -d "${param}" ]; then file="${param}" if [ ! -e "${file}" ]; then read -p "File \"${file}\" doesn't exist. Create file? " -n 1 -r...
b7e657134c21b62e78453b11f0745e0048e346bf
examples/simple_distribution.py
examples/simple_distribution.py
import sys import time from random import shuffle from vania.fair_distributor import FairDistributor def main(): # User input for the number of targets and objects. users = ['user1', 'user2'] tasks = ['task1', 'task2'] preferences = [ [1, 2], [2, 1], ] # Run solver start_t...
import sys import time from random import shuffle from vania.fair_distributor import FairDistributor def main(): # User input for the number of targets and objects. users = ['user1', 'user2'] tasks = ['task1', 'task2'] preferences = [ [1, 2], [2, 1], ] # Run solver distrib...
Remove time metrics from the simple example
Remove time metrics from the simple example
Python
mit
Hackathonners/vania
python
## Code Before: import sys import time from random import shuffle from vania.fair_distributor import FairDistributor def main(): # User input for the number of targets and objects. users = ['user1', 'user2'] tasks = ['task1', 'task2'] preferences = [ [1, 2], [2, 1], ] # Run so...
ed293268372d82e91cf0022e9a2eca4cf2645b02
tests/unit/utils/group-by-test.js
tests/unit/utils/group-by-test.js
import groupBy from 'dummy/utils/group-by'; import { module, test } from 'qunit'; module('Unit | Utility | group by'); // Replace this with your real tests. test('it works', function(assert) { let result = groupBy(); assert.ok(result); });
import { A as emberA } from '@ember/array'; import groupBy from 'dummy/utils/group-by'; import { module, test } from 'qunit'; module('Unit | Utility | group by'); test('It returns an empty object if array is empty', function (assert) { let group = groupBy(emberA(), ''); assert.equal(typeof group, 'object'); }); ...
Add unit tests for groupBy util function
Add unit tests for groupBy util function
JavaScript
mit
scottwernervt/ember-cli-group-by,scottwernervt/ember-cli-group-by
javascript
## Code Before: import groupBy from 'dummy/utils/group-by'; import { module, test } from 'qunit'; module('Unit | Utility | group by'); // Replace this with your real tests. test('it works', function(assert) { let result = groupBy(); assert.ok(result); }); ## Instruction: Add unit tests for groupBy util function ...
a4693f89cf93784678c91908403f7ec15865a39c
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7.1 install: - brew install carthage - gem install xcpretty script: rake test build:all
language: objective-c osx_image: xcode7.1 install: - brew install carthage - gem install xcpretty before_script: rake setup script: rake test build:all
Add before_script step to setup dependencies
Add before_script step to setup dependencies
YAML
mit
sharplet/Regex,sharplet/Regex,sharplet/Regex,sclukey/Regex,sclukey/Regex
yaml
## Code Before: language: objective-c osx_image: xcode7.1 install: - brew install carthage - gem install xcpretty script: rake test build:all ## Instruction: Add before_script step to setup dependencies ## Code After: language: objective-c osx_image: xcode7.1 install: - brew install carthage - gem install xcp...
9ebed06f1f501a9885700c0e4288b47a98f8508b
src/styles/androidstudio.css
src/styles/androidstudio.css
/* Date: 24 Fev 2015 Author: Pedro Oliveira <kanytu@gmail . com> */ .hljs { color: #A9B7C6; background: #282b2e; display: block; overflow-x: auto; padding: 0.5em; webkit-text-size-adjust: none; } .hljs-number { color: #6897BB; } .hljs-keyword, .hljs-deletion { color: #CC7832; } .hljs-j...
/* Date: 24 Fev 2015 Author: Pedro Oliveira <kanytu@gmail . com> */ .hljs { color: #A9B7C6; background: #282b2e; display: block; overflow-x: auto; padding: 0.5em; webkit-text-size-adjust: none; } .hljs-number { color: #6897BB; } .hljs-keyword, .hljs-deletion { color: #CC7832; } .hljs-javadoc { color...
Use two spaces for indention
Use two spaces for indention
CSS
bsd-3-clause
MakeNowJust/highlight.js,adjohnson916/highlight.js,robconery/highlight.js,yxxme/highlight.js,VoldemarLeGrand/highlight.js,tenbits/highlight.js,taoger/highlight.js,highlightjs/highlight.js,cicorias/highlight.js,0x7fffffff/highlight.js,palmin/highlight.js,isagalaev/highlight.js,ehornbostel/highlight.js,christoffer/highli...
css
## Code Before: /* Date: 24 Fev 2015 Author: Pedro Oliveira <kanytu@gmail . com> */ .hljs { color: #A9B7C6; background: #282b2e; display: block; overflow-x: auto; padding: 0.5em; webkit-text-size-adjust: none; } .hljs-number { color: #6897BB; } .hljs-keyword, .hljs-deletion { color: #C...
65248ef36bcff9b1e3a3f56eeaadcd148263a07f
client/js/app.jsx
client/js/app.jsx
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import Routes from './routes'; import SettingsAction from './actions/settings'; import history from './history'; //Needed for onTouchTap //Can go away when react 1.0 rele...
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import Routes from './routes'; import SettingsAction from './actions/settings'; import history from './history'; // Initialize store singletons SettingsAction.load(window...
Remove the rest of material ui
Remove the rest of material ui
JSX
mit
atomicjolt/adhesion,atomicjolt/react_starter_app,atomicjolt/react_rails_starter_app,atomicjolt/react_rails_starter_app,atomicjolt/adhesion,atomicjolt/react_rails_starter_app,atomicjolt/adhesion,atomicjolt/lti_starter_app,atomicjolt/react_starter_app,atomicjolt/lti_starter_app,atomicjolt/lti_starter_app,atomicjolt/react...
jsx
## Code Before: "use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import Routes from './routes'; import SettingsAction from './actions/settings'; import history from './history'; //Needed for onTouchTap //Can go away whe...
56c9615530443deb569cb3ca9af79e481f95d578
cvrminer/app/templates/branch_base.html
cvrminer/app/templates/branch_base.html
{% extends "base.html" %} {% block navbar %} <div class="navbar navbar-static-top"> <ul class="nav nav-pills"> <li role="presentation"><a href="..">cvrminer</a></li> <li role="presentation" class="active"><a href="./">Branch</a></li> <li role="presentation"><a href="../exchange/">Exchange</a></li> </u...
{% extends "base.html" %} {% block navbar %} <div class="navbar navbar-static-top"> <ul class="nav nav-pills"> <li role="presentation"><a href="..">cvrminer</a></li> <li role="presentation"><a href="../company/">Company</a></li> <li role="presentation" class="active"><a href="./">Branch</a></li> <li...
Add menu item for company
Add menu item for company
HTML
apache-2.0
fnielsen/cvrminer,fnielsen/cvrminer,fnielsen/cvrminer
html
## Code Before: {% extends "base.html" %} {% block navbar %} <div class="navbar navbar-static-top"> <ul class="nav nav-pills"> <li role="presentation"><a href="..">cvrminer</a></li> <li role="presentation" class="active"><a href="./">Branch</a></li> <li role="presentation"><a href="../exchange/">Exchang...
8f4c5b6a4c609e5154dfee432c567e382f69ee88
src/geoserver/layer.py
src/geoserver/layer.py
from urllib2 import HTTPError from geoserver.support import atom_link, get_xml from geoserver.style import Style from geoserver.resource import FeatureType, Coverage class Layer: def __init__(self, node): self.name = node.find("name").text self.href = atom_link(node) self.update() def update(self): ...
from urllib2 import HTTPError from geoserver.support import ResourceInfo, atom_link, get_xml from geoserver.style import Style from geoserver.resource import FeatureType, Coverage class Layer(ResourceInfo): resource_type = "layers" def __init__(self, node): self.name = node.find("name").text self.href = ...
Update Layer to use ResourceInfo support class
Update Layer to use ResourceInfo support class
Python
mit
boundlessgeo/gsconfig,garnertb/gsconfig.py,Geode/gsconfig,cristianzamar/gsconfig,scottp-dpaw/gsconfig,afabiani/gsconfig
python
## Code Before: from urllib2 import HTTPError from geoserver.support import atom_link, get_xml from geoserver.style import Style from geoserver.resource import FeatureType, Coverage class Layer: def __init__(self, node): self.name = node.find("name").text self.href = atom_link(node) self.update() def...
7c02f7f48104c4cccda0c98a31882dc42f32cd1e
lib/ruby-os/hash.rb
lib/ruby-os/hash.rb
class Hash # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 52 def symbolize_keys transform_keys{ |key| key.to_sym rescue key } end # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 57 def symbolize_keys! transform_keys!{ |key| key.to_sym rescue key } end # ...
class Hash # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 52 def symbolize_keys transform_keys{ |key| key.to_sym rescue key } end # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 57 def symbolize_keys! transform_keys!{ |key| key.to_sym rescue key } end # ...
Add transform_values extension from active support
Add transform_values extension from active support
Ruby
mit
wspurgin/ruby-os,wspurgin/ruby-os
ruby
## Code Before: class Hash # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 52 def symbolize_keys transform_keys{ |key| key.to_sym rescue key } end # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 57 def symbolize_keys! transform_keys!{ |key| key.to_sym rescue k...
bf1783695eb4708f129f9c15ebb9c08ebc64885e
tests/JsonApiTest.php
tests/JsonApiTest.php
<?php namespace Tapestry\Tests; class JsonApiTest extends CommandTestBase { public function testJsonBuildFlag() { $this->copyDirectory('assets/build_test_1/src', '_tmp'); $output = $this->runCommand('build', ['--quiet', '--json']); $this->assertEquals(0, $output->getStatusCode()); ...
<?php namespace Tapestry\Tests; class JsonApiTest extends CommandTestBase { public function testJsonBuildFlag() { // $this->copyDirectory('assets/build_test_1/src', '_tmp'); // $output = $this->runCommand('build', '--quiet --json'); // $this->assertEquals(0, $output->getStatusCode()); ...
Disable test for the time being
:construction: Disable test for the time being
PHP
mit
carbontwelve/tapestry,tapestry-cloud/tapestry,tapestry-cloud/tapestry,tapestry-cloud/tapestry,carbontwelve/tapestry,carbontwelve/tapestry,carbontwelve/tapestry,tapestry-cloud/tapestry
php
## Code Before: <?php namespace Tapestry\Tests; class JsonApiTest extends CommandTestBase { public function testJsonBuildFlag() { $this->copyDirectory('assets/build_test_1/src', '_tmp'); $output = $this->runCommand('build', ['--quiet', '--json']); $this->assertEquals(0, $output->getSta...
d9ee51a1ce04dfe0db1f89c34aa21ebc408ad869
input.c
input.c
void read_line(char *p) { if (fgets(p, MAX_SIZE, stdin) == NULL){ p[0] = '\0'; return; } remove_space(p); } int is_exit(const char* p) { const char* exit_words[] = { "exit", "quit", }; int len = (int)(sizeof(exit_words) / sizeof(char*)); int i; if (strl...
void read_line(char *p) { if (fgets(p, MAX_SIZE, stdin) == NULL){ p[0] = '\0'; return; } remove_space(p); } int is_exit(const char* p) { const char* exit_words[] = { "exit", "quit", "bye", }; int len = (int)(sizeof(exit_words) / sizeof(char*)); int i...
Add bye to exit words
Add bye to exit words
C
mit
Roadagain/Calculator,Roadagain/Calculator
c
## Code Before: void read_line(char *p) { if (fgets(p, MAX_SIZE, stdin) == NULL){ p[0] = '\0'; return; } remove_space(p); } int is_exit(const char* p) { const char* exit_words[] = { "exit", "quit", }; int len = (int)(sizeof(exit_words) / sizeof(char*)); int ...
377a21b948090a1248432b00af7f1b130e42b311
zsh/custom/git.zsh
zsh/custom/git.zsh
alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" alias gc="git commit -e -v"
alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" alias gc="git commit -e -v" function gcd { if [[ ! -z $(git branch | grep development) ]]; then git checkout development elif [[ ! -z $(git branch ...
Add a gcd alias that switches to either development or develop branches if they are available
Add a gcd alias that switches to either development or develop branches if they are available
Shell
mit
marcaddeo/dotfiles,marcaddeo/dotfiles,marcaddeo/dotfiles,marcaddeo/dotfiles,marcaddeo/dotfiles
shell
## Code Before: alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" alias gc="git commit -e -v" ## Instruction: Add a gcd alias that switches to either development or develop branches if they are available ## Code ...
f2faad239b0a0d969436807436378cbfbaa34327
lib/js/core/bootstrap.js
lib/js/core/bootstrap.js
(function() { 'use strict'; // Inject SVG icons into the DOM var element = document.createElement('div'); element.id = 'darkroom-icons'; element.style = 'height: 0; width: 0; position: absolute; visibility: hidden'; element.innerHTML = '<!-- inject:svg --><!-- endinject -->'; document.body.appendChild(element); })()...
(function() { 'use strict'; // Inject SVG icons into the DOM var element = document.createElement('div'); element.id = 'darkroom-icons'; element.style.height = 0; element.style.width = 0; element.style.position = 'absolute'; element.style.visibility = 'hidden'; element.innerHTML = '<!-- inject:svg --><!-- endinject --...
Fix write on a read-only property
Fix write on a read-only property
JavaScript
mit
mstevens/darkroomjs,Drooids/darkroomjs,marcelgruber/darkroomjs,Drooids/darkroomjs,shelsonjava/darkroomjs,mstevens/darkroomjs,marcelgruber/darkroomjs,shelsonjava/darkroomjs,MattKetmo/darkroomjs,shelsonjava/darkroomjs,marcelgruber/darkroomjs,MattKetmo/darkroomjs,Drooids/darkroomjs,mstevens/darkroomjs
javascript
## Code Before: (function() { 'use strict'; // Inject SVG icons into the DOM var element = document.createElement('div'); element.id = 'darkroom-icons'; element.style = 'height: 0; width: 0; position: absolute; visibility: hidden'; element.innerHTML = '<!-- inject:svg --><!-- endinject -->'; document.body.appendChild(...
5142aab11e8626bdb5059aee5f2ac474e9215206
.travis.yml
.travis.yml
sudo: false # Choose a lightweight base image; we provide our own build tools. language: c # GHC depends on GMP. You can add other dependencies here as well. addons: apt: packages: - libgmp-dev install: # Download and unpack the stack executable - mkdir -p ~/.local/bin - export PATH=$HOME/.local/bin:$PA...
sudo: false # Choose a lightweight base image; we provide our own build tools. language: c # GHC depends on GMP. You can add other dependencies here as well. addons: apt: packages: - libgmp-dev install: # Download and unpack the stack executable - mkdir -p ~/.local/bin - export PATH=$HOME/.local/bin:$PA...
Add the Stackage curator cache to the Travis cache
Add the Stackage curator cache to the Travis cache
YAML
mit
massysett/stackage,Shimuuar/stackage,fpco/stackage,judah/stackage,k0ral/stackage,garetxe/stackage,codedmart/stackage,michalkonecny/stackage,phadej/stackage,stackbuilders/stackage,simonmichael/stackage,marcinmrotek/stackage,lwm/stackage,spencerjanssen/stackage,wereHamster/stackage,clinty/stackage,DanielG/stackage,peti/s...
yaml
## Code Before: sudo: false # Choose a lightweight base image; we provide our own build tools. language: c # GHC depends on GMP. You can add other dependencies here as well. addons: apt: packages: - libgmp-dev install: # Download and unpack the stack executable - mkdir -p ~/.local/bin - export PATH=$HOM...
c49a4e6be7acc352f4622fd711a6dd4a464b89c3
src/Database/IEntity.php
src/Database/IEntity.php
<?php namespace Stirling\Database; /** * Interface for Entities. * * An Entity is a class created from database data. * * @package Stirling\Database */ interface IEntity { public function getKey(); }
<?php namespace Stirling\Database; /** * Interface for Entities. * * An Entity is a class created from database data. * * @package Stirling\Database */ interface IEntity { public function getKey(); public function getProperties(); }
Add getProperty function to return all properties
Add getProperty function to return all properties
PHP
mit
meandor/stirling-microservice,meandor/stirling-microservice
php
## Code Before: <?php namespace Stirling\Database; /** * Interface for Entities. * * An Entity is a class created from database data. * * @package Stirling\Database */ interface IEntity { public function getKey(); } ## Instruction: Add getProperty function to return all properties ## Code After: <?php names...
1b61268baa1a210f55238146765f0a4565526883
.travis.yml
.travis.yml
sudo: required addons: chrome: stable language: node_js node_js: - '10' cache: directories: - ~/.npm - node_modules before_install: - sudo apt-get update - sudo apt-get install alsa-utils - sudo modprobe snd_bcm2835 - sudo apt-get install avahi-utils install: - npm install script: npm ...
sudo: required addons: chrome: stable language: node_js node_js: - '10' cache: directories: - ~/.npm - node_modules before_install: - sudo apt-get update - sudo apt-get install alsa-utils - sudo apt-get install avahi-utils install: - npm install script: npm start && npm run cy:run
Remove modules that do not exist
Remove modules that do not exist
YAML
mit
omahajs/omahajs.github.io,omahajs/omahajs.github.io
yaml
## Code Before: sudo: required addons: chrome: stable language: node_js node_js: - '10' cache: directories: - ~/.npm - node_modules before_install: - sudo apt-get update - sudo apt-get install alsa-utils - sudo modprobe snd_bcm2835 - sudo apt-get install avahi-utils install: - npm inst...
7fd60f4bb9b99409ababdaf4955b331f20919b55
readthedocs/templates/core/project_list_featured.html
readthedocs/templates/core/project_list_featured.html
{% load i18n %} {% for project in featured_list %} <li class="module-item"> <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a> {% for user in project.users.all %} <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a> {% endfor %} {% if pr...
{% load i18n %} {% for project in featured_list %} <li class="module-item"> <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a> {% for user in project.users.all %} <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a> {% endfor %} {% if pr...
Handle case with no stable
Handle case with no stable
HTML
mit
rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org
html
## Code Before: {% load i18n %} {% for project in featured_list %} <li class="module-item"> <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a> {% for user in project.users.all %} <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a> {% endfor ...
a54980e5e442256981a88bc9cfb5e9125e6782f8
slam.jl
slam.jl
VERSION >= v"0.4.0" && __precompile__(true) module SLAM export # Types Scene, SlamState, EKFSlamState, PFSlamState, Vehicle, # Functions initial_pose, mpi_to_pi, frame_transform, step_vehicle!, steer!, predict, update, add_features, associate, c...
__precompile__(true) module SLAM export # Types Scene, SlamState, EKFSlamState, PFSlamState, Vehicle, # Functions get_waypoints, initial_pose, mpi_to_pi, frame_transform, step_vehicle!, steer!, predict, update, add_features, associate, compu...
Generalize messages containing 2D points
Generalize messages containing 2D points
Julia
mit
andrewadare/SLAM.jl,andrewadare/SLAM.jl
julia
## Code Before: VERSION >= v"0.4.0" && __precompile__(true) module SLAM export # Types Scene, SlamState, EKFSlamState, PFSlamState, Vehicle, # Functions initial_pose, mpi_to_pi, frame_transform, step_vehicle!, steer!, predict, update, add_features, ...
a9a121d5fe595f54ed482ec162dc7a9703a65c13
tp/__init__.py
tp/__init__.py
__import__('pkg_resources').declare_namespace(__name__) try: import modulefinder for p in __path__: modulefinder.AddPackagePath(__name__, p) except Exception, e: import warnings warnings.warn(e, RuntimeWarning)
try: __import__('pkg_resources').declare_namespace(__name__) import modulefinder for p in __path__: modulefinder.AddPackagePath(__name__, p) except Exception, e: import warnings warnings.warn(e, RuntimeWarning)
Fix for people without setuptools.
Fix for people without setuptools.
Python
lgpl-2.1
thousandparsec/libtpproto-py,thousandparsec/libtpproto-py
python
## Code Before: __import__('pkg_resources').declare_namespace(__name__) try: import modulefinder for p in __path__: modulefinder.AddPackagePath(__name__, p) except Exception, e: import warnings warnings.warn(e, RuntimeWarning) ## Instruction: Fix for people without setuptools. ## Code After: try: __import__('p...
013b300883eb4001e079b5772668e8957182c27d
tests/TestCase.php
tests/TestCase.php
<?php namespace Projek\Slim\Tests; use Projek\Slim\Monolog; use PHPUnit_Framework_TestCase; use DateTimeZone; abstract class TestCase extends PHPUnit_Framework_TestCase { /** * @var Projek\Slim\Monolog */ protected $logger; /** * Slim Application settings * * @var array */ ...
<?php namespace Projek\Slim\Tests; use Projek\Slim\Monolog; use PHPUnit_Framework_TestCase; use DateTimeZone; abstract class TestCase extends PHPUnit_Framework_TestCase { /** * @var Projek\Slim\Monolog */ protected $logger; /** * Slim Application settings * * @var array */ ...
Fix broken test in php 5.5
Fix broken test in php 5.5 Signed-off-by: Fery Wardiyanto <bd7846e81d12676baffd10ffe6daf3939680ab52@gmail.com>
PHP
mit
projek-xyz/slim-monolog
php
## Code Before: <?php namespace Projek\Slim\Tests; use Projek\Slim\Monolog; use PHPUnit_Framework_TestCase; use DateTimeZone; abstract class TestCase extends PHPUnit_Framework_TestCase { /** * @var Projek\Slim\Monolog */ protected $logger; /** * Slim Application settings * * @var...
5931c9fa6cca60c58b9a96a128626148dc343d16
tests/vdom_jsx.spec.tsx
tests/vdom_jsx.spec.tsx
import { } from 'jasmine'; import app from '../index-jsx'; const model = 'x'; const view = _ => <div>{_}</div>; const update = { hi: (_, val) => val } describe('vdom-jsx', () => { let element; beforeEach(()=>{ element = document.createElement('div'); document.body.appendChild(element); app.start(el...
import { } from 'jasmine'; import app from '../index-jsx'; const model = 'x'; const view = _ => <div>{_}</div>; const update = { hi: (_, val) => val } describe('vdom-jsx', () => { let element; beforeEach(()=>{ element = document.createElement('div'); document.body.appendChild(element); app.start(el...
Add unit test for custom element
Add unit test for custom element
TypeScript
mit
yysun/apprun,yysun/apprun,yysun/apprun
typescript
## Code Before: import { } from 'jasmine'; import app from '../index-jsx'; const model = 'x'; const view = _ => <div>{_}</div>; const update = { hi: (_, val) => val } describe('vdom-jsx', () => { let element; beforeEach(()=>{ element = document.createElement('div'); document.body.appendChild(element); ...
55c72a5297244ba51fba5ebc5b71efc3001e0dd4
otz/__init__.py
otz/__init__.py
from otz.Timestream import CalibrationTimestream, CapturedTimestream from otz.Calibration import Calibration
from otz.Timestream import CalibrationTimestream, CapturedTimestream from otz.Calibration import Calibration from otz.Beam import Beam, Bead
Add Beam, Bead to main module
Add Beam, Bead to main module
Python
unlicense
ghallsimpsons/optical_tweezers
python
## Code Before: from otz.Timestream import CalibrationTimestream, CapturedTimestream from otz.Calibration import Calibration ## Instruction: Add Beam, Bead to main module ## Code After: from otz.Timestream import CalibrationTimestream, CapturedTimestream from otz.Calibration import Calibration from otz.Beam import Be...
98ffe628a82d459fe7def07f82f524a70d020864
src/Development/Shake/Rule.hs
src/Development/Shake/Rule.hs
-- | This module is used for defining new types of rules for Shake build systems. -- Most users will find the built-in set of rules sufficient. module Development.Shake.Rule( -- * Builtin rules -- ** Defining BuiltinLint, noLint, BuiltinRun, RunChanged(..), RunResult(..), addBuiltinRule, -- ** Runnin...
-- | This module is used for defining new types of rules for Shake build systems. -- Most users will find the built-in set of rules sufficient. module Development.Shake.Rule( -- * Defining builtin rules BuiltinLint, noLint, BuiltinRun, RunChanged(..), RunResult(..), addBuiltinRule, -- * Calling builtin r...
Tweak the module doc headers
Tweak the module doc headers
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
haskell
## Code Before: -- | This module is used for defining new types of rules for Shake build systems. -- Most users will find the built-in set of rules sufficient. module Development.Shake.Rule( -- * Builtin rules -- ** Defining BuiltinLint, noLint, BuiltinRun, RunChanged(..), RunResult(..), addBuiltinRule, ...
467b6c2127851e43aa61bfa51242a1696f45d531
release.nix
release.nix
{ nixpkgs ? (fetchTarball "channel:nixos-20.03") }: with nixpkgs; let # Create an sdist given a derivation. # Should add an sdist and wheel output to buildPythonPackage create-sdist = drv: drv.overridePythonAttrs(oldAttrs: with oldAttrs; rec { name = "${pname}-${version}-sdist"; postBuild = ''...
{ nixpkgs ? (fetchTarball "channel:nixos-20.03") }: with nixpkgs; let # Create an sdist given a derivation. # Should add an sdist and wheel output to buildPythonPackage create-sdist = drv: drv.overridePythonAttrs(oldAttrs: with oldAttrs; rec { name = "${pname}-${version}-sdist"; postBuild = ''...
Allow building with python 3.8 using nix
Allow building with python 3.8 using nix
Nix
bsd-3-clause
python-acoustics/python-acoustics
nix
## Code Before: { nixpkgs ? (fetchTarball "channel:nixos-20.03") }: with nixpkgs; let # Create an sdist given a derivation. # Should add an sdist and wheel output to buildPythonPackage create-sdist = drv: drv.overridePythonAttrs(oldAttrs: with oldAttrs; rec { name = "${pname}-${version}-sdist"; ...
8830b0e726a671fa2b0bbafd1487148ae23fc1d4
admin/forms.py
admin/forms.py
import riak from wtforms.fields import TextField, TextAreaField, SelectField from wtforms.validators import Required from wtforms_tornado import Form class ConnectionForm(Form): name = TextField(validators=[Required()]) conection = TextField(validators=[Required()]) class CubeForm(Form): myClient = ria...
import riak from wtforms.fields import TextField, TextAreaField, SelectField from wtforms.validators import Required from wtforms_tornado import Form def ObjGenerate(bucket, key, value=None, _type=tuple): myClient = riak.RiakClient(protocol='http', http_port=8098, ...
Create new method object generate get riak bucket and generate tuple or list
Create new method object generate get riak bucket and generate tuple or list
Python
mit
chrisdamba/mining,seagoat/mining,avelino/mining,jgabriellima/mining,AndrzejR/mining,jgabriellima/mining,mining/mining,mlgruby/mining,chrisdamba/mining,mlgruby/mining,mlgruby/mining,seagoat/mining,AndrzejR/mining,avelino/mining,mining/mining
python
## Code Before: import riak from wtforms.fields import TextField, TextAreaField, SelectField from wtforms.validators import Required from wtforms_tornado import Form class ConnectionForm(Form): name = TextField(validators=[Required()]) conection = TextField(validators=[Required()]) class CubeForm(Form): ...
1e7b0b9a85bbddc5632738755b57dc2e5ba7bdf3
st2tests/st2tests/fixtures/history_views/filters.yaml
st2tests/st2tests/fixtures/history_views/filters.yaml
--- default: action: - executions.local - executions.chain rule: - st2.person.joe runner: - run-local - action-chain status: - succeeded trigger: - 46f67652-20cd-4bab-94e2-4615baa846d0 trigger_type: - st2.webhook user: - system specific: action: - executions.local - executions.chai...
--- default: action: - executions.local - executions.chain - None rule: - st2.person.joe runner: - run-local - action-chain status: - succeeded trigger: - 46f67652-20cd-4bab-94e2-4615baa846d0 trigger_type: - st2.webhook - None user: - system specific: action: - executions.local ...
Update fixture to include None data.
Update fixture to include None data.
YAML
apache-2.0
Plexxi/st2,tonybaloney/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,StackStorm/st2,tonybaloney/st2,Plexxi/st2,tonybaloney/st2,Plexxi/st2,Plexxi/st2,nzlosh/st2,StackStorm/st2,nzlosh/st2,nzlosh/st2
yaml
## Code Before: --- default: action: - executions.local - executions.chain rule: - st2.person.joe runner: - run-local - action-chain status: - succeeded trigger: - 46f67652-20cd-4bab-94e2-4615baa846d0 trigger_type: - st2.webhook user: - system specific: action: - executions.local -...
860ed996b976794ff6ecf5748875b9bac66933a9
lib/features/settings/presentation/widgets/server_setup_instructions.dart
lib/features/settings/presentation/widgets/server_setup_instructions.dart
import 'package:flutter/material.dart'; class ServerSetupInstructions extends StatelessWidget { const ServerSetupInstructions({Key key}) : super(key: key); @override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Padd...
import 'package:flutter/material.dart'; class ServerSetupInstructions extends StatelessWidget { const ServerSetupInstructions({Key key}) : super(key: key); @override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Padd...
Tweak wording for server setup instructions.
Tweak wording for server setup instructions.
Dart
mit
wcomartin/PlexPy-Remote
dart
## Code Before: import 'package:flutter/material.dart'; class ServerSetupInstructions extends StatelessWidget { const ServerSetupInstructions({Key key}) : super(key: key); @override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widge...
b21e815425e4e295ff03136e1613c2c0c4707af3
frontend/app/views/spree/products/_description.html.erb
frontend/app/views/spree/products/_description.html.erb
<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:description) %></h3> <div id="product-description-short" class="m-0 text-break product-description" data-hook="description"> <%= sanitize product_description(@product).truncate(450) %> </div> <div id="product-description-long" cla...
<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:description) %></h3> <div id="product-description-short" class="m-0 text-break product-description" data-hook="description"> <% if Spree::Config[:show_raw_product_description] %> <%= raw product_description(@product).truncate(4...
Make config :show raw product_description usable in new storefront.
Make config :show raw product_description usable in new storefront.
HTML+ERB
bsd-3-clause
imella/spree,imella/spree,imella/spree
html+erb
## Code Before: <h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:description) %></h3> <div id="product-description-short" class="m-0 text-break product-description" data-hook="description"> <%= sanitize product_description(@product).truncate(450) %> </div> <div id="product-descr...
45806b19b76fdc5e78b56c9e67a5d4c2fb5c7dcc
static/panels.less
static/panels.less
@import "ui-variables"; // Atom panels atom-panel-container.left, atom-panel-container.right { display: flex; } .tool-panel, // deprecated: .tool-panel atom-panel { display: block; position: relative; } atom-panel-container > atom-panel.left, atom-panel-container > atom-panel.right { display: flex; } // So...
@import "ui-variables"; // Atom panels atom-panel-container.left, atom-panel-container.right { display: flex; } atom-panel-container.left { // Align panels to the right of the panel container. The effect of this is // that the left dock's toggle button will appear on the right side of the // empty space when...
Fix positioning of left dock toggle button when panel container has min-width
Fix positioning of left dock toggle button when panel container has min-width
Less
mit
PKRoma/atom,brettle/atom,stinsonga/atom,andrewleverette/atom,AlexxNica/atom,stinsonga/atom,stinsonga/atom,liuderchi/atom,decaffeinate-examples/atom,liuderchi/atom,ardeshirj/atom,FIT-CSE2410-A-Bombs/atom,xream/atom,liuderchi/atom,PKRoma/atom,andrewleverette/atom,xream/atom,AlexxNica/atom,atom/atom,t9md/atom,brettle/atom...
less
## Code Before: @import "ui-variables"; // Atom panels atom-panel-container.left, atom-panel-container.right { display: flex; } .tool-panel, // deprecated: .tool-panel atom-panel { display: block; position: relative; } atom-panel-container > atom-panel.left, atom-panel-container > atom-panel.right { display...
990bdf667f172f42c751464cf31911720961a7b3
index.html
index.html
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="HandheldFriendly" content="True"> <title>Crossword Nexus Solver</title> <link href="css/crosswordnexus.css" rel="stylesheet"> <script src="js/crosswo...
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="HandheldFriendly" content="True"> <title>Crossword Nexus Solver</title> <link href="css/crosswordnexus.css" rel="stylesheet"> <script src="js/crosswo...
Allow URL param to be
Allow URL param to be
HTML
bsd-3-clause
boisvert42/html5-crossword-solver,crosswordnexus/html5-crossword-solver,crosswordnexus/html5-crossword-solver,boisvert42/html5-crossword-solver
html
## Code Before: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="HandheldFriendly" content="True"> <title>Crossword Nexus Solver</title> <link href="css/crosswordnexus.css" rel="stylesheet"> <script...
f165467b5d16dea30e43724bbb65e505bc1d9013
transpiler/javatests/com/google/j2cl/transpiler/integration/selfreferencingnativetype/Foo.java
transpiler/javatests/com/google/j2cl/transpiler/integration/selfreferencingnativetype/Foo.java
/* * Copyright 2017 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2017 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Fix native reference so that it does not violate circularity rules between $impl and header files.
Fix native reference so that it does not violate circularity rules between $impl and header files. PiperOrigin-RevId: 168731186
Java
apache-2.0
google/j2cl,google/j2cl,google/j2cl,google/j2cl,google/j2cl
java
## Code Before: /* * Copyright 2017 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
ca850ead789d642b985187a65df506700bb60a6f
faq.php
faq.php
<?php # Grab the Slack post variables $token = ($_POST['token'] === 'CxPDeOTKKscdX6nkTi3lOn1d' ? $_POST['token'] : false); # Replace with the token from your slash command config $channel = $_POST['channel_name']; $text = $_POST['text']; # Check pre-requisites for the script to run if(!$token){ $msg ...
<?php # Grab the Slack post variables $token = ($_POST['token'] === 'CxPDeOTKKscdX6nkTi3lOn1d' ? $_POST['token'] : false); # Replace with the token from your slash command config $channel = $_POST['channel_name']; $text = $_POST['text']; # Check pre-requisites for the script to run if(!$token){ $msg ...
Add search text to if not found message
Add search text to if not found message
PHP
mit
mledwards/slackbot-faq-slash-command
php
## Code Before: <?php # Grab the Slack post variables $token = ($_POST['token'] === 'CxPDeOTKKscdX6nkTi3lOn1d' ? $_POST['token'] : false); # Replace with the token from your slash command config $channel = $_POST['channel_name']; $text = $_POST['text']; # Check pre-requisites for the script to run if(!$...
f1c45567d1767bf5a3d04b750a91f5b72c093057
RNCryptor/String.swift
RNCryptor/String.swift
// // String.swift // RNCryptor // // Created by Rob Napier on 7/1/15. // Copyright © 2015 Rob Napier. All rights reserved. // import Foundation extension String { init?(UTF8String: UnsafePointer<UInt8>) { self.init(UnsafePointer<Int8>(UTF8String)) } }
// // String.swift // RNCryptor // // Created by Rob Napier on 7/1/15. // Copyright © 2015 Rob Napier. All rights reserved. // import Foundation extension String { init?(UTF8String: UnsafePointer<UInt8>) { self.init(UTF8String: UnsafePointer<Int8>(UTF8String)) } }
Add experimental string bridge (may not be a good idea)
Add experimental string bridge (may not be a good idea)
Swift
mit
RNCryptor/RNCryptor,RNCryptor/RNCryptor
swift
## Code Before: // // String.swift // RNCryptor // // Created by Rob Napier on 7/1/15. // Copyright © 2015 Rob Napier. All rights reserved. // import Foundation extension String { init?(UTF8String: UnsafePointer<UInt8>) { self.init(UnsafePointer<Int8>(UTF8String)) } } ## Instruction: Add experimen...
d076fe6fead38c72a6e0d5b897aba1c82495def6
nixpkgs/emacs/site-lisp/init-avy.el
nixpkgs/emacs/site-lisp/init-avy.el
;;; init-avy.el --- init file for avy ;;; Commentary: ;; Use `C-:` to jump to any position by entering 1 character and ;; use `C-'` to jump to any position by entering 2 characters. ;;; Code: (use-package avy :bind ("C-\"" . avy-goto-char) ("C-'" . avy-goto-char-2) ("M-g f" . avy-goto-line)) (provide 'init...
;;; init-avy.el --- init file for avy ;;; Commentary: ;; Use `C-c SPC` to jump to any position by entering 1 character and ;; use `C-c C-SPC` to jump to any position by entering 2 characters. ;;; Code: (use-package avy :bind ("C-c SPC" . avy-goto-char) ("C-c C-SPC" . avy-goto-char-2) ("M-g f" . avy-goto-lin...
Update key bindings for avo
Update key bindings for avo
Emacs Lisp
mit
hongchangwu/dotfiles,hongchangwu/dotfiles
emacs-lisp
## Code Before: ;;; init-avy.el --- init file for avy ;;; Commentary: ;; Use `C-:` to jump to any position by entering 1 character and ;; use `C-'` to jump to any position by entering 2 characters. ;;; Code: (use-package avy :bind ("C-\"" . avy-goto-char) ("C-'" . avy-goto-char-2) ("M-g f" . avy-goto-line))...
e1cff04080a30ffa369b159930ecf381a7261cfd
modules/atom/settings/config.cson
modules/atom/settings/config.cson
"*": "atom-beautify": css: indent_size: 2 general: _analyticsUserId: "8bfc3dc2-e55f-4b45-93b6-8b516d108dab" html: indent_size: 2 js: indent_size: 2 "atom-package-deps": ignored: [] core: disabledPackages: [ "metrics" "welcome" "language-javascript"...
"*": "atom-beautify": css: indent_size: 2 general: _analyticsUserId: "8bfc3dc2-e55f-4b45-93b6-8b516d108dab" html: indent_size: 2 js: indent_size: 2 "atom-package-deps": ignored: [] core: disabledPackages: [ "metrics" "welcome" "language-javascript"...
Increase font size in Atom
Increase font size in Atom
CoffeeScript
unlicense
guerrero/dotfiles
coffeescript
## Code Before: "*": "atom-beautify": css: indent_size: 2 general: _analyticsUserId: "8bfc3dc2-e55f-4b45-93b6-8b516d108dab" html: indent_size: 2 js: indent_size: 2 "atom-package-deps": ignored: [] core: disabledPackages: [ "metrics" "welcome" "lang...
edeb7a25dc1dd46d8e0bb951970c22b62644960c
_sass/_style.scss
_sass/_style.scss
body { color: black; background-color: white; font-family: monospace; font-size: 1.3rem; line-height: 1.3rem; } .wrapper { width: fit-content; max-width: 640px; margin: 4rem auto; padding: 0 1rem; } h1 { line-height: 2rem; } hr { text-align: center; border: 0; &:before { content: '/////' } ...
body { color: black; background-color: white; font-family: monospace; font-size: 1.3rem; line-height: 1.3rem; } .wrapper { width: fit-content; max-width: 640px; margin: 4rem auto; padding: 0 1rem; } h1 { line-height: 2rem; } hr { text-align: center; border: 0; &:before { content: '/////' } ...
Add style for table element
Add style for table element
SCSS
mit
jashilko/jashilko.github.io,Furkanzmc/furkanzmc.github.io,jashilko/jashilko.github.io,Furkanzmc/furkanzmc.github.io,Furkanzmc/furkanzmc.github.io
scss
## Code Before: body { color: black; background-color: white; font-family: monospace; font-size: 1.3rem; line-height: 1.3rem; } .wrapper { width: fit-content; max-width: 640px; margin: 4rem auto; padding: 0 1rem; } h1 { line-height: 2rem; } hr { text-align: center; border: 0; &:before { cont...
85fcc1e8f0f605fe8db43dfb117ec1ec25d788bd
CMakeLists.txt
CMakeLists.txt
project (ndhcp) cmake_minimum_required (VERSION 2.6) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s -std=gnu99 -pedantic -Wall -Wno-format-extra-args -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -lrt -lcap -D_GNU_SOURCE -DHAVE_CLEARENV -DLINUX") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -s -std=gnu99 -pedantic -...
project (ndhcp) cmake_minimum_required (VERSION 2.6) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s -std=gnu99 -pedantic -Wall -Wextra -Wformat=2 -Wformat-nonliteral -Wformat-security -Wshadow -Wpointer-arith -Wcast-qual -Wmissing-prototypes -lrt -lcap -D_GNU_SOURCE -DHAVE_CLEARENV -DLINUX") set(CMAKE_CXX_FLAGS "${CMAKE_C_FL...
Use stricter gcc warning flags by default.
Use stricter gcc warning flags by default.
Text
mit
niklata/ndhc
text
## Code Before: project (ndhcp) cmake_minimum_required (VERSION 2.6) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s -std=gnu99 -pedantic -Wall -Wno-format-extra-args -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -lrt -lcap -D_GNU_SOURCE -DHAVE_CLEARENV -DLINUX") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -s -std=g...
1c736a5f48b2deb9732c65a5dec7ea47e542f6f4
thinc/neural/_classes/resnet.py
thinc/neural/_classes/resnet.py
from .model import Model from ...api import layerize from .affine import Affine class Residual(Model): def __init__(self, layer): Model.__init__(self) self._layers.append(layer) self.on_data_hooks.append(on_data) def __call__(self, X): return X + self._layers[0](X) def be...
from .model import Model from ...api import layerize from .affine import Affine class Residual(Model): def __init__(self, layer): Model.__init__(self) self._layers.append(layer) self.on_data_hooks.append(on_data) def __call__(self, X): Y = self._layers[0](X) if isinsta...
Make residual connections work for list-valued inputs
Make residual connections work for list-valued inputs
Python
mit
spacy-io/thinc,spacy-io/thinc,explosion/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,explosion/thinc
python
## Code Before: from .model import Model from ...api import layerize from .affine import Affine class Residual(Model): def __init__(self, layer): Model.__init__(self) self._layers.append(layer) self.on_data_hooks.append(on_data) def __call__(self, X): return X + self._layers[0...
215d0dbac3991e52cdadd9db88efd9606b3234cc
src/SoliantConsulting/Apigility/Server/Hydrator/Strategy/Collection.php
src/SoliantConsulting/Apigility/Server/Hydrator/Strategy/Collection.php
<?php namespace SoliantConsulting\Apigility\Server\Hydrator\Strategy; use Zend\Stdlib\Hydrator\Strategy\StrategyInterface; use DoctrineModule\Persistence\ObjectManagerAwareInterface; use DoctrineModule\Persistence\ProvidesObjectManager; use DoctrineModule\Stdlib\Hydrator\Strategy\AbstractCollectionStrategy; use ZF\Ha...
<?php namespace SoliantConsulting\Apigility\Server\Hydrator\Strategy; use Zend\Stdlib\Hydrator\Strategy\StrategyInterface; use DoctrineModule\Persistence\ObjectManagerAwareInterface; use DoctrineModule\Persistence\ProvidesObjectManager; use DoctrineModule\Stdlib\Hydrator\Strategy\AbstractCollectionStrategy; use ZF\Ha...
Return a Link for collection fields
Return a Link for collection fields
PHP
bsd-3-clause
TomHAnderson/zf-doctrine-querybuilder,kusmierz/zf-apigility-doctrine,kusmierz/zf-apigility-doctrine,TomHAnderson/zf-doctrine-querybuilder
php
## Code Before: <?php namespace SoliantConsulting\Apigility\Server\Hydrator\Strategy; use Zend\Stdlib\Hydrator\Strategy\StrategyInterface; use DoctrineModule\Persistence\ObjectManagerAwareInterface; use DoctrineModule\Persistence\ProvidesObjectManager; use DoctrineModule\Stdlib\Hydrator\Strategy\AbstractCollectionStr...
c66b64b5d01381c7ca24a8eaaa958915def5067a
pytest.ini
pytest.ini
[pytest] addopts = --ignore docs/apply_geometry.ipynb --ignore docs/xpd_examples.ipynb --ignore "docs/agipd_geometry.ipynb" --ignore docs/xgm_two_runs.ipynb
[pytest] addopts = --ignore docs/apply_geometry.ipynb --ignore docs/xpd_examples.ipynb --ignore "docs/agipd_geometry.ipynb" --ignore docs/xgm_two_runs.ipynb --ignore docs/parallel_example.ipynb
Add parallel_example notebook to ignore list for nbval
Add parallel_example notebook to ignore list for nbval
INI
bsd-3-clause
European-XFEL/h5tools-py
ini
## Code Before: [pytest] addopts = --ignore docs/apply_geometry.ipynb --ignore docs/xpd_examples.ipynb --ignore "docs/agipd_geometry.ipynb" --ignore docs/xgm_two_runs.ipynb ## Instruction: Add parallel_example notebook to ignore list for nbval ## Code After: [pytest] addopts = --ignore docs/apply_geometry.ipynb --ign...
942ab52d0d1dd31a3c240c48154f185dca50ee20
app/models/channel_observer.rb
app/models/channel_observer.rb
class ChannelObserver < ActiveRecord::Observer def after_destroy(channel) broadcast_data = { :event => "channel#delete", :entity => channel.attributes, :extra => {} } Kandan::Config.broadcaster.broadcast("/app/activities", broadcast_data) end end
class ChannelObserver < ActiveRecord::Observer def after_destroy(channel) broadcast('delete', channel) end def after_create(channel) broadcast('create', channel) end private def broadcast(event, channel) data = { :event => "channel#" << event, :entity => channel.attributes, :...
Send application activity for channel creation as well as deletion.
Send application activity for channel creation as well as deletion.
Ruby
agpl-3.0
ivanoats/uw-ruby-chat,leohmoraes/kandan,sai43/kandan,yfix/kandan,ivanoats/kandan,moss-zc/kandan,cloudstead/kandan,kandanapp/kandan,yfix/kandan,ipmobiletech/kandan,codefellows/kandan,sai43/kandan,codefellows/kandan,ipmobiletech/kandan,codefellows/kandan,leohmoraes/kandan,moss-zc/kandan,yfix/kandan,ych06/kandan,miurahr/k...
ruby
## Code Before: class ChannelObserver < ActiveRecord::Observer def after_destroy(channel) broadcast_data = { :event => "channel#delete", :entity => channel.attributes, :extra => {} } Kandan::Config.broadcaster.broadcast("/app/activities", broadcast_data) end end ## Instruction: Sen...
dc6e9feda519e614df26c294686d61ce7448a7f0
extension/background-fetch.js
extension/background-fetch.js
// /////////////////////////////////////////////////////// // // Load content via window.fetch in a background script, // // from a content script // // /////////////////////////////////////////////////////// // // Load this file as background and content scripts // Use in content_sc...
// /////////////////////////////////////////////////////// // // Load content via window.fetch in a background script, // // from a content script // // /////////////////////////////////////////////////////// // // Load this file as background and content scripts // Use in content_sc...
Remove a redundant line in background page
Remove a redundant line in background page
JavaScript
mit
npmhub/npmhub,npmhub/npmhub,npmhub/npmhub
javascript
## Code Before: // /////////////////////////////////////////////////////// // // Load content via window.fetch in a background script, // // from a content script // // /////////////////////////////////////////////////////// // // Load this file as background and content scripts // U...
8c94ecea3865bfd129ae3e5cf5dc929b40caa493
web/src/js/ads/mockDisplayAd.js
web/src/js/ads/mockDisplayAd.js
export default function (adId) { var mockNetworkDelayMs = 0 const useMockDelay = false if (useMockDelay) { mockNetworkDelayMs = Math.random() * (1500 - 900) + 900 } // Mock returning an ad. setTimeout(() => { const elem = document.getElementById(adId) if (!elem) { return } elem.s...
import { VERTICAL_AD_SLOT_DOM_ID, SECOND_VERTICAL_AD_SLOT_DOM_ID, HORIZONTAL_AD_SLOT_DOM_ID } from 'js/ads/adSettings' export default function (adId) { var mockNetworkDelayMs = 0 const useMockDelay = false if (useMockDelay) { mockNetworkDelayMs = Math.random() * (1500 - 900) + 900 } const mapDOMId...
Fix mock ads for development
Fix mock ads for development
JavaScript
mpl-2.0
gladly-team/tab,gladly-team/tab,gladly-team/tab
javascript
## Code Before: export default function (adId) { var mockNetworkDelayMs = 0 const useMockDelay = false if (useMockDelay) { mockNetworkDelayMs = Math.random() * (1500 - 900) + 900 } // Mock returning an ad. setTimeout(() => { const elem = document.getElementById(adId) if (!elem) { return ...
19aefc5c30c24b5b9d0008be767cab910fb249cf
src/components/posts/regions/ImageRegion.js
src/components/posts/regions/ImageRegion.js
import React from 'react' class ImageRegion extends React.Component { renderAttachment() { const { content } = this.props let size = 'optimized' if (!this.attachment[size].metadata.type.match('gif')) { size = window.innerWidth > 375 ? 'hdpi' : 'mdpi' } return ( <img className="ImageR...
import React from 'react' class ImageRegion extends React.Component { isGif() { const optimized = this.attachment.optimized if (optimized && optimized.metadata) { return optimized.metadata.type === 'image/gif' } return false } renderAttachment() { const { content } = this.props le...
Change how we detect gifs for production data.
Change how we detect gifs for production data.
JavaScript
mit
ello/webapp,ello/webapp,ello/webapp
javascript
## Code Before: import React from 'react' class ImageRegion extends React.Component { renderAttachment() { const { content } = this.props let size = 'optimized' if (!this.attachment[size].metadata.type.match('gif')) { size = window.innerWidth > 375 ? 'hdpi' : 'mdpi' } return ( <img c...
8ec1e6c6df8a8f2c2ba53545f7ce5e3cbecfbf01
src/app/units/states/tasks/inbox/inbox.tpl.html
src/app/units/states/tasks/inbox/inbox.tpl.html
<div class="inbox-panel-full-screen"> <staff-task-list ng-if="taskData" [show-search-options]="showSearchOptions" [filters]="filters" [task-data]="taskData" [unit]="unit" [unit-role]="unitRole" > </staff-task-list> <task-dashboard style="flex-grow: 3; margin-right: 10px; margin-left:...
<div class="inbox-panel-full-screen"> <staff-task-list ng-if="taskData" [show-search-options]="showSearchOptions" [filters]="filters" [task-data]="taskData" [unit]="unit" [unit-role]="unitRole" > </staff-task-list> <task-dashboard style="flex-grow: 3; margin-right: 10px; margin-left:...
Set max-width of inbox task comment viewer
LOOKS: Set max-width of inbox task comment viewer
HTML
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
html
## Code Before: <div class="inbox-panel-full-screen"> <staff-task-list ng-if="taskData" [show-search-options]="showSearchOptions" [filters]="filters" [task-data]="taskData" [unit]="unit" [unit-role]="unitRole" > </staff-task-list> <task-dashboard style="flex-grow: 3; margin-right: 10...