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
57080c84390d9a994586c55e473e45dac480002f
lib/mongomodel/railtie.rb
lib/mongomodel/railtie.rb
module MongoModel class Railtie < Rails::Railtie initializer "mongomodel.logger" do MongoModel.logger ||= ::Rails.logger end initializer "mongomodel.rescue_responses" do ActionDispatch::ShowExceptions.rescue_responses['MongoModel::DocumentNotFound'] = :not_found end initializ...
module MongoModel class Railtie < Rails::Railtie initializer "mongomodel.logger" do MongoModel.logger ||= ::Rails.logger end initializer "mongomodel.rescue_responses" do ActionDispatch::ShowExceptions.rescue_responses['MongoModel::DocumentNotFound'] = :not_found end initializ...
Check for existence of mongomodel.yml in Railtie
Check for existence of mongomodel.yml in Railtie
Ruby
mit
spohlenz/mongomodel
ruby
## Code Before: module MongoModel class Railtie < Rails::Railtie initializer "mongomodel.logger" do MongoModel.logger ||= ::Rails.logger end initializer "mongomodel.rescue_responses" do ActionDispatch::ShowExceptions.rescue_responses['MongoModel::DocumentNotFound'] = :not_found end ...
69ee1e8219b57f66abd1f97dcc9bacc6a36fd79f
C++/pure_desctructors.cpp
C++/pure_desctructors.cpp
// http://www.geeksforgeeks.org/pure-virtual-destructor-c/ // 1) C++ Accepts pure virtual destructors, a Base class needs to provide definition for pure // virtual destructor as well because it is being called in reverse order and compiler // looks for its definition // 2) class contains abstract class if it contains a...
// http://www.geeksforgeeks.org/pure-virtual-destructor-c/ // 1) C++ Accepts pure virtual destructors, a Base class needs to provide definition for pure // virtual destructor as well because it is being called in reverse order and compiler // looks for its definition // 2) class contains abstract class if it contains a...
Add explaination to why virtual destructors are needed
Add explaination to why virtual destructors are needed Signed-off-by: WajahatSiddiqui <3c3ea4adfdf19decee174766aef6add34b32b7f0@gmail.com>
C++
apache-2.0
WajahatSiddiqui/Workspace,WajahatSiddiqui/Workspace,WajahatSiddiqui/Workspace
c++
## Code Before: // http://www.geeksforgeeks.org/pure-virtual-destructor-c/ // 1) C++ Accepts pure virtual destructors, a Base class needs to provide definition for pure // virtual destructor as well because it is being called in reverse order and compiler // looks for its definition // 2) class contains abstract class ...
036c7b37229f9dc8fca639d92225e2ed43aadf38
product/varna/catalog/native/stack.yaml
product/varna/catalog/native/stack.yaml
resolver: nightly-2016-10-05 compiler: ghcjs-0.2.1.820161005_ghc-8.0.1 compiler-check: match-exact setup-info: ghcjs: source: ghcjs-0.2.1.820161005_ghc-8.0.1: url: "http://ghcjs.tolysz.org/ghc-8.0-2016-10-05-nightly-2016-10-05-820161005.tar.gz" sha1: d5eaa1fd34080c3102bbad5343d01fd066d387b...
resolver: lts-7.19 compiler: ghcjs-0.2.1.9007019_ghc-8.0.1 compiler-check: match-exact setup-info: ghcjs: source: ghcjs-0.2.1.9007019_ghc-8.0.1: url: http://ghcjs.tolysz.org/ghc-8.0-2017-02-05-lts-7.19-9007019.tar.gz sha1: d2cfc25f9cda32a25a87d9af68891b2186ee52f9 allow-newer: true p...
Update to newest ghcjs compiler
Update to newest ghcjs compiler
YAML
mit
wereHamster/nauva,wereHamster/nauva,wereHamster/nauva
yaml
## Code Before: resolver: nightly-2016-10-05 compiler: ghcjs-0.2.1.820161005_ghc-8.0.1 compiler-check: match-exact setup-info: ghcjs: source: ghcjs-0.2.1.820161005_ghc-8.0.1: url: "http://ghcjs.tolysz.org/ghc-8.0-2016-10-05-nightly-2016-10-05-820161005.tar.gz" sha1: d5eaa1fd34080c3102bbad5...
3c064a8962cd35dda2963bf6fc88a0d387b7c49a
.travis-ci.sh
.travis-ci.sh
if [ "$TRAVIS_OS_NAME" = "linux" ]; then z3_version="z3-4.7.1-x64-ubuntu-14.04" install_dir="/usr/bin/z3" elif [ "$TRAVIS_OS_NAME" = "osx" ]; then z3_version="z3-4.7.1-x64-osx-10.11.6" install_dir="/usr/local/bin/z3" fi wget "https://github.com/Z3Prover/z3/releases/download/z3-4.7.1/${z3_version}.zip" unzip "...
if [ "$TRAVIS_OS_NAME" = "linux" ]; then z3_version="z3-4.7.1-x64-ubuntu-14.04" install_dir="/usr/bin/z3" elif [ "$TRAVIS_OS_NAME" = "osx" ]; then z3_version="z3-4.7.1-x64-osx-10.11.6" install_dir="/usr/local/bin/z3" fi wget "https://github.com/Z3Prover/z3/releases/download/z3-4.7.1/${z3_version}.zip" unzip "...
Revert last changes in Travis script
Revert last changes in Travis script
Shell
apache-2.0
daniel-larraz/kind2,kind2-mc/kind2
shell
## Code Before: if [ "$TRAVIS_OS_NAME" = "linux" ]; then z3_version="z3-4.7.1-x64-ubuntu-14.04" install_dir="/usr/bin/z3" elif [ "$TRAVIS_OS_NAME" = "osx" ]; then z3_version="z3-4.7.1-x64-osx-10.11.6" install_dir="/usr/local/bin/z3" fi wget "https://github.com/Z3Prover/z3/releases/download/z3-4.7.1/${z3_versi...
91bd1bb7e0c2e3d4cdc32a5c13e870c08b026338
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: machine: true steps: - checkout - run: name: Build Environment command: docker build -t build_image . - run: name: Start Build Environment command: docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" --tty --detach build_imag...
version: 2 jobs: build: machine: true steps: - checkout - run: name: Construct Build Environment command: docker build -t build_image . - run: name: Start Build Environment command: docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" --tty --detach ...
Fix up build step names
circleci: Fix up build step names
YAML
unlicense
AndreRenaud/PDFGen,AndreRenaud/PDFGen,AndreRenaud/PDFGen
yaml
## Code Before: version: 2 jobs: build: machine: true steps: - checkout - run: name: Build Environment command: docker build -t build_image . - run: name: Start Build Environment command: docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" --tty --d...
b94d6a9d60781f0eeb58122151867468952a4d78
models/SignupForm.php
models/SignupForm.php
<?php namespace app\models; use yii\base\Model; /** * Signup form */ class SignupForm extends Model { public $email; public $signup_token; public $password; /** * @inheritdoc */ public function rules() { return [ ['signup_token', 'trim'], ['email',...
<?php namespace app\models; use yii\base\Model; /** * Signup form */ class SignupForm extends Model { public $email; public $signup_token; public $password; /** * @inheritdoc */ public function rules() { return [ ['signup_token', 'trim'], ['email',...
Save user role when signing up
Save user role when signing up
PHP
bsd-3-clause
nkmathew/intern-portal,nkmathew/intern-portal
php
## Code Before: <?php namespace app\models; use yii\base\Model; /** * Signup form */ class SignupForm extends Model { public $email; public $signup_token; public $password; /** * @inheritdoc */ public function rules() { return [ ['signup_token', 'trim'], ...
a7ea8927e8645dc27a5006b102e46e8331b0d90e
lib/tasks/scan-paths-handler.coffee
lib/tasks/scan-paths-handler.coffee
async = require 'async' fs = require 'fs' VariableScanner = require '../variable-scanner' class PathScanner constructor: (@path) -> @scanner = new VariableScanner load: (done) -> currentChunk = '' currentLine = 0 currentOffset = 0 lastIndex = 0 results = [] readStream = fs.createRea...
async = require 'async' fs = require 'fs' VariableScanner = require '../variable-scanner' class PathScanner constructor: (@path) -> @scanner = new VariableScanner load: (done) -> currentChunk = '' currentLine = 0 currentOffset = 0 lastIndex = 0 line = 0 results = [] readStream = f...
Increment results line when scanning using a stream
Increment results line when scanning using a stream
CoffeeScript
mit
peter1000/atom-pigments,peter1000/atom-pigments
coffeescript
## Code Before: async = require 'async' fs = require 'fs' VariableScanner = require '../variable-scanner' class PathScanner constructor: (@path) -> @scanner = new VariableScanner load: (done) -> currentChunk = '' currentLine = 0 currentOffset = 0 lastIndex = 0 results = [] readStrea...
5ef0bb3e218afd96cdbc370a2266be3e7e155687
packages/setting-spacings/scss/_settings.scss
packages/setting-spacings/scss/_settings.scss
//// /// @group Setting: spacings /// @author Markus Oberlehner //// /// Spacing sizes. /// @type Map $spacings: ( xs: 0.5em, s: 0.75em, m: 1em, l: 1.5em, xl: 2em, xxl: 3.5em, xxxl: 6em, ) !default;
//// /// @group Setting: spacings /// @author Markus Oberlehner //// /// Spacing sizes. /// @type Map $spacings: ( xxs: 0.25em, xs: 0.5em, s: 0.75em, m: 1em, l: 1.5em, xl: 2em, xxl: 3.5em, xxxl: 6em, ) !default;
Add a new xxs spacing setting
Add a new xxs spacing setting
SCSS
mit
avalanchesass/avalanche,avalanchesass/avalanche,avalanchesass/avalanche
scss
## Code Before: //// /// @group Setting: spacings /// @author Markus Oberlehner //// /// Spacing sizes. /// @type Map $spacings: ( xs: 0.5em, s: 0.75em, m: 1em, l: 1.5em, xl: 2em, xxl: 3.5em, xxxl: 6em, ) !default; ## Instruction: Add a new xxs spacing setting ## Code After: //// /// @group Setting: sp...
54918079efb61bb8232865f83f9d29144e58ab2f
bin/url2pdf.sh
bin/url2pdf.sh
OUTPUTFILE=$1 URL=$2 STDERR=`mktemp` if [ ! -f "$STDERR" ]; then echo "Error creating tempfile, aborting" exit 1 fi if [ -z $OUTPUTFILE ]; then echo "Usage: $0 <outputfilename>" exit 1 else /usr/local/bin/wkhtmltopdf --title "$URL" "$URL" $OUTPUTFILE 2>"$STDERR" grep -q 'Failed loading page' "$STDE...
OUTPUTFILE=$1 URL=$2 ARGS="$3" STDERR=`mktemp` PROXY="" if [ ! -f "$STDERR" ]; then echo "Error creating tempfile, aborting" exit 1 fi if [ -z $OUTPUTFILE ]; then echo "Usage: $0 <outputfilename>" exit 1 else if [ -z "$ARGS" ]; then /usr/local/bin/wkhtmltopdf $PROXY --title "$URL" "$URL" $OUTPUT...
Add support for optional arguments, and handling url requests via a proxy
Add support for optional arguments, and handling url requests via a proxy
Shell
mit
thunderkeys/pdfconvertme-public,thunderkeys/pdfconvertme-public,thunderkeys/pdfconvertme-public
shell
## Code Before: OUTPUTFILE=$1 URL=$2 STDERR=`mktemp` if [ ! -f "$STDERR" ]; then echo "Error creating tempfile, aborting" exit 1 fi if [ -z $OUTPUTFILE ]; then echo "Usage: $0 <outputfilename>" exit 1 else /usr/local/bin/wkhtmltopdf --title "$URL" "$URL" $OUTPUTFILE 2>"$STDERR" grep -q 'Failed load...
6163e667f8c7e69af4d0009a29cc7b896700c20b
server/collections/contacts.js
server/collections/contacts.js
Contacts.allow(Server.allow.owner); Contacts.after.remove(function (userId, doc) { Server.upload.delete(doc.imageFile); }); Contacts.before.update(function(userId, doc, fieldNames, modifier, options){ var mset = modifier['$set']; if (mset && doc.imageFile && (mset.imageFile !== doc.imageFile)){ Server.uploa...
Contacts.allow(Server.allow.owner); Contacts.after.remove(function (userId, doc) { Server.upload.delete(doc._id, doc.imageFile); }); Contacts.before.update(function(userId, doc, fieldNames, modifier, options){ var mset = modifier['$set']; if (mset && doc.imageFile && (mset.imageFile !== doc.imageFile)){ Ser...
Fix calls to delete image files
Fix calls to delete image files
JavaScript
mit
ManuelDeLeon/phonebook,ManuelDeLeon/phonebook
javascript
## Code Before: Contacts.allow(Server.allow.owner); Contacts.after.remove(function (userId, doc) { Server.upload.delete(doc.imageFile); }); Contacts.before.update(function(userId, doc, fieldNames, modifier, options){ var mset = modifier['$set']; if (mset && doc.imageFile && (mset.imageFile !== doc.imageFile)){ ...
88934971d5148f9cb7245612c4415e46357f3930
CHANGELOG.md
CHANGELOG.md
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ## [0.3.1] ### Fixed - Axios version to `0.18.1` due the CVE-2019-10742 - Fix the `subject` attribute unmarshal error: issue [#32](https://github.com/c...
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ### Fixed - Axios version to `0.18.1` due the CVE-2019-10742 - Fix the `subject` attribute unmarshal error: issue [#32](https://github.com/cloudevents/s...
Fix changelog semantics for unreleased
Fix changelog semantics for unreleased Signed-off-by: Fabio José <34f3a7e4e4d9fe971c99ebc4af947a5309eca653@gmail.com>
Markdown
apache-2.0
cloudevents/sdk-javascript,cloudevents/sdk-javascript
markdown
## Code Before: All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ## [0.3.1] ### Fixed - Axios version to `0.18.1` due the CVE-2019-10742 - Fix the `subject` attribute unmarshal error: issue [#32](http...
6c182dfe5d7d2de8e1957370c016fe71d8d1edb4
README.md
README.md
The coolest flask application for your bucket list.
[![Build Status](https://travis-ci.org/JoshuaOndieki/buckylist.svg?branch=master)](https://travis-ci.org/JoshuaOndieki/buckylist) [![Coverage Status](https://coveralls.io/repos/github/JoshuaOndieki/buckylist/badge.svg?branch=master)](https://coveralls.io/github/JoshuaOndieki/buckylist?branch=master) The coolest flask...
Add travis and coveralls badges
Add travis and coveralls badges
Markdown
mit
JoshuaOndieki/buckylist,JoshuaOndieki/buckylist
markdown
## Code Before: The coolest flask application for your bucket list. ## Instruction: Add travis and coveralls badges ## Code After: [![Build Status](https://travis-ci.org/JoshuaOndieki/buckylist.svg?branch=master)](https://travis-ci.org/JoshuaOndieki/buckylist) [![Coverage Status](https://coveralls.io/repos/github/Jo...
97878d9883ad6f489fb2d0883bd6de522abfd0d9
webkit/GHCJS/DOM/EventTargetClosures.hs
webkit/GHCJS/DOM/EventTargetClosures.hs
{-# LANGUAGE CPP #-} module GHCJS.DOM.EventTargetClosures (eventTargetAddEventListener) where import GHCJS.DOM.Types eventTargetAddEventListener :: (GObjectClass self, IsEvent event) => self -> String -> Bool -> (self -> event -> IO ()) -> IO Bool eventTarget...
module GHCJS.DOM.Events ( module Graphics.UI.Gtk.WebKit.DOM.EventTargetClosures ) where import Graphics.UI.Gtk.WebKit.DOM.EventTargetClosures
Fix missing ConstraintKinds on EventTargetClosure.hs error
Fix missing ConstraintKinds on EventTargetClosure.hs error
Haskell
mit
manyoo/ghcjs-dom,plow-technologies/ghcjs-dom,manyoo/ghcjs-dom,plow-technologies/ghcjs-dom
haskell
## Code Before: {-# LANGUAGE CPP #-} module GHCJS.DOM.EventTargetClosures (eventTargetAddEventListener) where import GHCJS.DOM.Types eventTargetAddEventListener :: (GObjectClass self, IsEvent event) => self -> String -> Bool -> (self -> event -> IO ()) -> IO ...
1a598aea610d2753e4dee7567efaaab2e07d86fd
src/package.json
src/package.json
{ "name": "axis-discovery-ssdp", "version": "0.0.1", "description": "Node module capable of searching for Axis video cameras using SSDP.", "main": "index.js", "scripts": { "build": "tsc -p .", "prestart": "npm run build", "start": "node index.js", "pretest": "npm run build", "test": "moch...
{ "name": "axis-discovery-ssdp", "version": "0.0.1", "description": "Node module capable of searching for Axis video cameras using SSDP.", "main": "index.js", "scripts": { "postinstall": "npm install -g typescript", "build": "tsc -p .", "prestart": "npm run build", "start": "node index.js", ...
Install TypeScript now part of project.json
Install TypeScript now part of project.json
JSON
apache-2.0
FantasticFiasco/axis-discovery-ssdp
json
## Code Before: { "name": "axis-discovery-ssdp", "version": "0.0.1", "description": "Node module capable of searching for Axis video cameras using SSDP.", "main": "index.js", "scripts": { "build": "tsc -p .", "prestart": "npm run build", "start": "node index.js", "pretest": "npm run build", ...
d9065387a1414b7f863391d9d6ad02401b826dd8
config/introscope_agent.yml
config/introscope_agent.yml
--- version: + repository_root: https://ca.bintray.com/apm-agents default_agent_name: $(jq -r -n "$VCAP_APPLICATION | .application_name")
--- version: + repository_root: https://packages.broadcom.com/artifactory/apm-agents default_agent_name: $(jq -r -n "$VCAP_APPLICATION | .application_name")
Update CA APM artifact location
Update CA APM artifact location Broadcom is migrating CA APM agents from Bintray to JFrog. Bintray will be discontinued May 1 2021 Signed-off-by: Emily Casey <2c35f9c4cdfaa4fb4d9df91b23e294fe59051836@vmware.com>
YAML
apache-2.0
cloudfoundry/java-buildpack,cloudfoundry/java-buildpack
yaml
## Code Before: --- version: + repository_root: https://ca.bintray.com/apm-agents default_agent_name: $(jq -r -n "$VCAP_APPLICATION | .application_name") ## Instruction: Update CA APM artifact location Broadcom is migrating CA APM agents from Bintray to JFrog. Bintray will be discontinued May 1 2021 Signed-off-by: E...
cc52754ad5a3049f7034a7b876fa6427f5572d71
test/process.js
test/process.js
var Process = require("../lib/Process"); var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); var expect = chai.expect; describe("Testing Process class", function () { it("echo hello", function () { var process = new Process({ command: "echo", ...
var Process = require("../lib/Process"); var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); var expect = chai.expect; describe("Testing Process class", function () { this.timeout(5000); it("echo hello", function () { var process = new Process({ ...
Increase timeout so that the large stdout test won't fail on slow machine.
Increase timeout so that the large stdout test won't fail on slow machine.
JavaScript
mit
sarosia/proceger,sarosia/proceger
javascript
## Code Before: var Process = require("../lib/Process"); var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); var expect = chai.expect; describe("Testing Process class", function () { it("echo hello", function () { var process = new Process({ c...
8bdc07bb700fd2577a1c171a579b94dc0278b7d1
README.md
README.md
[![Build Status](https://travis-ci.org/deverton/rarathon.svg?branch=master)](https://travis-ci.org/deverton/rarathon) Client crate for the [Marathon](https://github.com/mesosphere/marathon) scheduler written in [Rust](http://www.rust-lang.org/).
[![Build Status](https://travis-ci.org/deverton/rarathon.svg?branch=master)](https://travis-ci.org/deverton/rarathon) Client crate for the [Marathon](https://github.com/mesosphere/marathon) scheduler written in [Rust](http://www.rust-lang.org/). Includes a command line tool with similar functions to [marathon_client]...
Include link to original marathon_client
Include link to original marathon_client
Markdown
mit
deverton/rarathon
markdown
## Code Before: [![Build Status](https://travis-ci.org/deverton/rarathon.svg?branch=master)](https://travis-ci.org/deverton/rarathon) Client crate for the [Marathon](https://github.com/mesosphere/marathon) scheduler written in [Rust](http://www.rust-lang.org/). ## Instruction: Include link to original marathon_clien...
0a2475655fc8f11a848b7a2c948a9bffad1c4c91
src/browser/shared/workspace.service.ts
src/browser/shared/workspace.service.ts
import { Inject, Injectable, InjectionToken, OnDestroy, Optional } from '@angular/core'; import { from, Observable } from 'rxjs'; import { GEEKS_DIARY_DIR_PATH, NOTES_DIR_PATH, WORKSPACE_DIR_PATH } from '../../core/workspace'; import { IpcActionClient } from '../../libs/ipc'; export class WorkspaceConfig { rootDi...
import { Inject, Injectable, InjectionToken, OnDestroy, Optional } from '@angular/core'; import { from, Observable } from 'rxjs'; import { ASSETS_DIR_PATH, GEEKS_DIARY_DIR_PATH, NOTES_DIR_PATH, WORKSPACE_DIR_PATH } from '../../core/workspace'; import { IpcActionClient } from '../../libs/ipc'; export class WorkspaceCo...
Add assets directory path config option
Add assets directory path config option
TypeScript
mit
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
typescript
## Code Before: import { Inject, Injectable, InjectionToken, OnDestroy, Optional } from '@angular/core'; import { from, Observable } from 'rxjs'; import { GEEKS_DIARY_DIR_PATH, NOTES_DIR_PATH, WORKSPACE_DIR_PATH } from '../../core/workspace'; import { IpcActionClient } from '../../libs/ipc'; export class WorkspaceCon...
6faea4325868edbba42f8d80b34cd048648d174a
core/lib/generators/spree/dummy/templates/rails/database.yml
core/lib/generators/spree/dummy/templates/rails/database.yml
login: &login <% if database == 'mysql' %> adapter: mysql2 encoding: utf8 reconnect: false pool: 5 username: root password: #socket: /tmp/mysql.sock <% else %> adapter: sqlite3 pool: 5 timeout: 5000 <% end %> development: <<: *login database: db/dummy_dev test: <<: *login database: db/dumm...
login: &login <% if database == 'mysql' %> adapter: mysql2 encoding: utf8 reconnect: false pool: 5 username: root password: #socket: /tmp/mysql.sock <% else %> adapter: sqlite3 pool: 5 timeout: 5000 <% end %> development: <<: *login database: db/dummy_dev test: <<: *login database: db/dumm...
Remove cucumber from dummy test config
Remove cucumber from dummy test config
YAML
bsd-3-clause
pervino/spree,bjornlinder/Spree,lyzxsc/spree,vmatekole/spree,vinayvinsol/spree,vulk/spree,grzlus/spree,TimurTarasenko/spree,TrialGuides/spree,camelmasa/spree,Engeltj/spree,surfdome/spree,radarseesradar/spree,vinayvinsol/spree,DynamoMTL/spree,moneyspyder/spree,nooysters/spree,Hawaiideveloper/shoppingcart,kewaunited/spre...
yaml
## Code Before: login: &login <% if database == 'mysql' %> adapter: mysql2 encoding: utf8 reconnect: false pool: 5 username: root password: #socket: /tmp/mysql.sock <% else %> adapter: sqlite3 pool: 5 timeout: 5000 <% end %> development: <<: *login database: db/dummy_dev test: <<: *login d...
ef0e099d20ddbc352fe5b1dfb5770fba0a08f5b1
metadata/com.nagopy.android.disablemanager2.txt
metadata/com.nagopy.android.disablemanager2.txt
Categories:System License:Apache2 Web Site:http://blog.nagopy.com/ Source Code:https://github.com/75py/DisableManager/ Issue Tracker:https://github.com/75py/DisableManager/issues Auto Name:Disable Manager Summary:Assists the disabling of pre-installed apps Description: Assists in the disabling of pre-installed apps. Y...
Categories:System License:Apache2 Web Site:http://blog.nagopy.com/ Source Code:https://github.com/75py/DisableManager/ Issue Tracker:https://github.com/75py/DisableManager/issues Auto Name:Disable Manager Summary:Assists the disabling of pre-installed apps Description: Assists in the disabling of pre-installed apps. Y...
Disable Manager: Don't change deployed builds.
Disable Manager: Don't change deployed builds.
Text
agpl-3.0
f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata
text
## Code Before: Categories:System License:Apache2 Web Site:http://blog.nagopy.com/ Source Code:https://github.com/75py/DisableManager/ Issue Tracker:https://github.com/75py/DisableManager/issues Auto Name:Disable Manager Summary:Assists the disabling of pre-installed apps Description: Assists in the disabling of pre-i...
9c7fd609d041a75c578e180c2fd46251f8b81dc4
packages/core/src/classes/http-request.ts
packages/core/src/classes/http-request.ts
export class HttpRequest { params: { [key: string]: any } = {}; body: any = undefined; query: { [key: string]: any } = {}; constructor(private expressRequest?) { if (expressRequest) { this.query = expressRequest.query; this.params = expressRequest.params; this.body = expressRequest.body; ...
import { HttpMethod } from '../interfaces'; export class HttpRequest { params: { [key: string]: any } = {}; body: any = undefined; query: { [key: string]: any } = {}; method: HttpMethod = 'GET'; path: string = ''; constructor(private expressRequest?) { if (expressRequest) { this.query = expressR...
Add path and method to HttpRequest.
Add path and method to HttpRequest.
TypeScript
mit
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
typescript
## Code Before: export class HttpRequest { params: { [key: string]: any } = {}; body: any = undefined; query: { [key: string]: any } = {}; constructor(private expressRequest?) { if (expressRequest) { this.query = expressRequest.query; this.params = expressRequest.params; this.body = expre...
106833059bc2dad8a284de50e153bf673d2e3b4b
premis_event_service/urls.py
premis_event_service/urls.py
from django.conf.urls.defaults import * urlpatterns = patterns( 'premis_event_service.views', # begin CODA Family url structure > (r'^APP/$', 'app'), # node urls # (r'^APP/node/$', 'node'), # (r'^APP/node/(?P<identifier>.+?)/$', 'node'), # event urls (r'^APP/event/$', 'app_event'), ...
try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import * # In case of Django<=1.3 urlpatterns = patterns( 'premis_event_service.views', # begin CODA Family url structure > (r'^APP/$', 'app'), # node urls # (r'^APP/node/$', 'node'), # (...
Support new and old Django urlconf imports
Support new and old Django urlconf imports
Python
bsd-3-clause
unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service
python
## Code Before: from django.conf.urls.defaults import * urlpatterns = patterns( 'premis_event_service.views', # begin CODA Family url structure > (r'^APP/$', 'app'), # node urls # (r'^APP/node/$', 'node'), # (r'^APP/node/(?P<identifier>.+?)/$', 'node'), # event urls (r'^APP/event/$', 'a...
9ba6b4bff661ebed70e93b7c08d448c17c7f74da
README.md
README.md
This is a PyTorch implementation of Asynchronous Advantage Actor Critic (A3C) from ["Asynchronous Methods for Deep Reinforcement Learning"](https://arxiv.org/pdf/1602.01783v1.pdf). This implementation is inspired by [Universe Starter Agent](https://github.com/openai/universe-starter-agent). In contrast to the starter...
This is a PyTorch implementation of Asynchronous Advantage Actor Critic (A3C) from ["Asynchronous Methods for Deep Reinforcement Learning"](https://arxiv.org/pdf/1602.01783v1.pdf). This implementation is inspired by [Universe Starter Agent](https://github.com/openai/universe-starter-agent). In contrast to the starter...
Install recent pytorch version to reduce leak
Install recent pytorch version to reduce leak
Markdown
mit
ikostrikov/pytorch-a3c
markdown
## Code Before: This is a PyTorch implementation of Asynchronous Advantage Actor Critic (A3C) from ["Asynchronous Methods for Deep Reinforcement Learning"](https://arxiv.org/pdf/1602.01783v1.pdf). This implementation is inspired by [Universe Starter Agent](https://github.com/openai/universe-starter-agent). In contras...
56f15da64edcc1e9b6ef8e5c2b0dbc55a3e9c3a9
settings.gradle.kts
settings.gradle.kts
rootProject.name = "SpongeAPI" pluginManagement { repositories { mavenLocal() mavenCentral() gradlePluginPortal() maven("https://repo-new.spongepowered.org/repository/maven-public") maven("https://repo.spongepowered.org/maven") } resolutionStrategy { eachPlug...
rootProject.name = "SpongeAPI" pluginManagement { repositories { mavenLocal() mavenCentral() gradlePluginPortal() maven("https://repo-new.spongepowered.org/repository/maven-public") maven("https://repo.spongepowered.org/maven") } resolutionStrategy { eachPlug...
Fix resolving the licenser plugin.
Fix resolving the licenser plugin.
Kotlin
mit
SpongePowered/SpongeAPI,SpongePowered/SpongeAPI,SpongePowered/SpongeAPI
kotlin
## Code Before: rootProject.name = "SpongeAPI" pluginManagement { repositories { mavenLocal() mavenCentral() gradlePluginPortal() maven("https://repo-new.spongepowered.org/repository/maven-public") maven("https://repo.spongepowered.org/maven") } resolutionStrategy { ...
34f0ace4f781059be100d74e5f99f905df322e89
demo/protected/controllers/SiteController.php
demo/protected/controllers/SiteController.php
<?php class SiteController extends Controller { public $layout = 'column1'; /** * Displays the front page. */ public function actionIndex() { $this->redirect(array('/auth/assignment/index')); } /** * Resets the database for the demo application. */ public function actionReset() { /* @var $db CDbC...
<?php class SiteController extends Controller { public $layout = 'column1'; /** * Displays the front page. */ public function actionIndex() { $this->redirect(array('/auth/assignment/index')); } /** * Resets the database for the demo application. */ public function actionReset() { /* @var $db CDbC...
Change to use dirname instead of __DIR__
Change to use dirname instead of __DIR__
PHP
bsd-3-clause
smartapps-fr/yii-auth,forex-formula/yii-auth,crisu83/yii-auth
php
## Code Before: <?php class SiteController extends Controller { public $layout = 'column1'; /** * Displays the front page. */ public function actionIndex() { $this->redirect(array('/auth/assignment/index')); } /** * Resets the database for the demo application. */ public function actionReset() { ...
75d66dfa4ddbb8bdd7903194feff1b69805f8d0d
index.html
index.html
--- layout: default --- <div class="jumbotron"> <h1>{{ site.data.config.title | escape }}</h1> <p>Ride Dallas.</p> <a class="btn btn-primary btn-lg" href="https://www.facebook.com/fixed.touring" role="button"> <i class="fa fa-facebook"></i> Fixed Touring </a> <a class="btn btn-info btn-lg" href="https...
--- layout: default --- <div class="jumbotron"> <h1>{{ site.data.config.title | escape }}</h1> <p>Ride Dallas.</p> <a class="btn btn-primary btn-lg" href="https://www.facebook.com/fixed.touring" role="button"> <i class="fa fa-facebook"></i> Fixed Touring </a> <a class="btn btn-info btn-lg" href="https...
Move icons to other side
Move icons to other side
HTML
mit
fixedtouring/fixedtouring.github.io,fixedtouring/fixedtouring.github.io
html
## Code Before: --- layout: default --- <div class="jumbotron"> <h1>{{ site.data.config.title | escape }}</h1> <p>Ride Dallas.</p> <a class="btn btn-primary btn-lg" href="https://www.facebook.com/fixed.touring" role="button"> <i class="fa fa-facebook"></i> Fixed Touring </a> <a class="btn btn-info btn...
7c85e2b278667e7340c7c6bf57c3c0c91210c471
coolfig/__init__.py
coolfig/__init__.py
from .schema import Value, Settings __version__ = '0.2.0' __url__ = 'https://github.com/GaretJax/coolfig' __all__ = ['Value', 'Settings']
from .schema import Value, Settings from .providers import EnvConfig, DictConfig from .django import load_django_settings __version__ = '0.2.0' __url__ = 'https://github.com/GaretJax/coolfig' __all__ = ['Value', 'Settings', 'EnvConfig', 'DictConfig', 'load_django_settings']
Add some more importing shortcuts
Add some more importing shortcuts
Python
mit
GaretJax/coolfig
python
## Code Before: from .schema import Value, Settings __version__ = '0.2.0' __url__ = 'https://github.com/GaretJax/coolfig' __all__ = ['Value', 'Settings'] ## Instruction: Add some more importing shortcuts ## Code After: from .schema import Value, Settings from .providers import EnvConfig, DictConfig from .django imp...
e9e090d4c79a63f2b27a6d981f71ebec05dab80f
packages/gitignore/src/test/ls.test.js
packages/gitignore/src/test/ls.test.js
import ls from '../ls' const dir = process.cwd() describe('ls', () => { it('lists all files', async () => { const files = await ls(dir) expect(files).not.toEqual([]) }) it('ignores given patterns', async () => { const files = await ls(dir, ['package.json']) expect(files.indexOf('node_modules/jes...
import ls from '../ls' import { join } from 'path' const dir = join(__dirname, '..', '..') describe('ls', () => { it('lists all files', async () => { const files = await ls(dir) expect(files).not.toEqual([]) }) it('ignores given patterns', async () => { const files = await ls(dir, ['package.json']) ...
Use __dirname instead of process.cwd()
[core] Use __dirname instead of process.cwd()
JavaScript
mit
ahmed-taj/handy-gi
javascript
## Code Before: import ls from '../ls' const dir = process.cwd() describe('ls', () => { it('lists all files', async () => { const files = await ls(dir) expect(files).not.toEqual([]) }) it('ignores given patterns', async () => { const files = await ls(dir, ['package.json']) expect(files.indexOf('...
bcd76779699d9f18244739db4c86596045e39ff8
lib/travis/api/v3/services/repository/activate.rb
lib/travis/api/v3/services/repository/activate.rb
require 'travis/api/v3/services/repository/deactivate' module Travis::API::V3 class Services::Repository::Activate < Service def run! repository = check_login_and_find(:repository) check_access(repository) check_repo_key(repository) return repo_migrated if migrated?(repository) adm...
require 'travis/api/v3/services/repository/deactivate' module Travis::API::V3 class Services::Repository::Activate < Service def run! repository = check_login_and_find(:repository) check_access(repository) check_repo_key(repository) return repo_migrated if migrated?(repository) adm...
Add user vcs_type query param
Add user vcs_type query param
Ruby
mit
travis-ci/travis-api,travis-ci/travis-api,travis-ci/travis-api
ruby
## Code Before: require 'travis/api/v3/services/repository/deactivate' module Travis::API::V3 class Services::Repository::Activate < Service def run! repository = check_login_and_find(:repository) check_access(repository) check_repo_key(repository) return repo_migrated if migrated?(reposi...
6d1b39acbc439ab38e6a9e18603b5303bcf5d07b
functions/man.fish
functions/man.fish
function man --description 'Format and display manual pages' set -lx MANPATH $__fish_datadir/man $MANPATH "" set -q man_blink; and set blink (set_color $man_blink); or set blink (set_color -o red) set -q man_bold; and set bold (set_color $man_bold); or set bold (set_color -o 5fafd7) set -q man_standout...
function man --description 'Format and display manual pages' set -lx MANPATH $__fish_datadir/man $MANPATH "" set -q man_blink; and set -l blink (set_color $man_blink); or set -l blink (set_color -o red) set -q man_bold; and set -l bold (set_color $man_bold); or set -l bold (set_color -o 5fafd7) set -q ...
Add `-l` option to `set`
Add `-l` option to `set`
fish
mit
decors/fish-colored-man-pages
fish
## Code Before: function man --description 'Format and display manual pages' set -lx MANPATH $__fish_datadir/man $MANPATH "" set -q man_blink; and set blink (set_color $man_blink); or set blink (set_color -o red) set -q man_bold; and set bold (set_color $man_bold); or set bold (set_color -o 5fafd7) set...
cf0b42464f87240ca6826b70d71a9b70acc2f8ef
layouts/partials/article/contribute.html
layouts/partials/article/contribute.html
{{ if and .IsSection (ne .Page.Params.generated true) }} <br/> <footer class="well"> <i class="fa fa-heart text-primary"></i> Help expand the docs! Add <input id="github-add-name" type="text" value="Your Content" size=18> as a {{ $File := .File }} {{ $Site := .Site }} {{with $File.Path }} <button class="gi...
{{ if and .IsSection (ne .Page.Params.generated true) }} <br/> <footer class="well"> <i class="fa fa-heart text-primary"></i> Help expand the docs! Add <input id="github-add-name" type="text" value="Your Content" size=18> as a {{ $File := .File }} {{ $Site := .Site }} {{with $File.Path }} <button class="gi...
Fix GitHub new page and new section links in Contribute partial
Fix GitHub new page and new section links in Contribute partial
HTML
mit
SKuipers/hugo-theme-gibbon,SKuipers/hugo-theme-gibbon
html
## Code Before: {{ if and .IsSection (ne .Page.Params.generated true) }} <br/> <footer class="well"> <i class="fa fa-heart text-primary"></i> Help expand the docs! Add <input id="github-add-name" type="text" value="Your Content" size=18> as a {{ $File := .File }} {{ $Site := .Site }} {{with $File.Path }} <...
de7687b4ebcfc9760a13f0b191e3b56857ed6ec9
icons/sox_search.svg
icons/sox_search.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9...
<svg xmlns="http://www.w3.org/2000/svg" class="svg-icon s-input-icon s-input-icon__search iconSearch" aria-hidden="true" viewBox="0 0 18 18" width="18" height="18"><path d="M 18 16.5 l -5.14 -5.18 h -0.35 a 7 7 0 1 0 -1.19 1.19 v 0.35 L 16.5 18 l 1.5 -1.5 Z M 12 7 A 5 5 0 1 1 2 7 a 5 5 0 0 1 10 0 Z" /></svg>
Update to SE search icon
Update to SE search icon
SVG
mit
soscripted/sox,soscripted/sox
svg
## Code Before: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 1...
192def661baa17b4a0ee21ec82bb4efb8f228e42
tests/suites/BasicObject/RelationsTest.php
tests/suites/BasicObject/RelationsTest.php
<?php class RelationTest extends DatabaseTestCase { public function testGetOtherModel() { } public function testSetOtherModel() { } }
<?php class RelationTest extends DatabaseTestCase { public function testGetOtherModel() { $m1 = Blueprint::make('Model1'); $m2 = Blueprint::make('Model2'); $m1->model2_id = $m2->id; $m1->commit(); $m2_ret = $m1->Model2(); $this->assertEquals($m2, $m2_ret); } /** * @depends testGetOtherModel */ p...
Add test for relation options
Add test for relation options
PHP
mit
NitroXy/BasicObject,NitroXy/BasicObject
php
## Code Before: <?php class RelationTest extends DatabaseTestCase { public function testGetOtherModel() { } public function testSetOtherModel() { } } ## Instruction: Add test for relation options ## Code After: <?php class RelationTest extends DatabaseTestCase { public function testGetOtherModel() { $...
7ba8d4fe43f2c2739c632258be76399865cdb7c4
app/controllers/styleguide_controller.rb
app/controllers/styleguide_controller.rb
class StyleguideController < ApplicationController def show end def css @sections ||= Styleguide.new.sections.inject({}) do |h, (k, v)| h[k] = StyleguideSectionDecorator.new(v); h end end end
class StyleguideController < ApplicationController def css @sections ||= Styleguide.new.sections.inject({}) do |h, (k, v)| h[k] = StyleguideSectionDecorator.new(v); h end end end
Remove empty styleguide controller action
Remove empty styleguide controller action
Ruby
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
ruby
## Code Before: class StyleguideController < ApplicationController def show end def css @sections ||= Styleguide.new.sections.inject({}) do |h, (k, v)| h[k] = StyleguideSectionDecorator.new(v); h end end end ## Instruction: Remove empty styleguide controller action ## Code After: class Styleguid...
53306b3183a306c3c99be99e389ef0377e7ccf1d
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController def after_update_path_for(_resource) edit_user_registration_path end def update_resource(resource, params) if current_user.provider == 'google_oauth2' params.delete('current_password') resource.update_without_password(params) ...
class RegistrationsController < Devise::RegistrationsController protected def after_update_path_for(_resource) edit_user_registration_path end def update_resource(resource, params) if current_user.provider == 'google_oauth2' params.delete('current_password') resource.update_without_passwor...
Make methods in RegistrationsController protected
Make methods in RegistrationsController protected
Ruby
agpl-3.0
julianguyen/ifme,julianguyen/ifme,julianguyen/ifme,cartothemax/ifme,cartothemax/ifme,cartothemax/ifme,cartothemax/ifme,julianguyen/ifme
ruby
## Code Before: class RegistrationsController < Devise::RegistrationsController def after_update_path_for(_resource) edit_user_registration_path end def update_resource(resource, params) if current_user.provider == 'google_oauth2' params.delete('current_password') resource.update_without_pas...
8b0df1c72381b314090935410cf6aa75eb7e2c47
setup/create_symlinks.sh
setup/create_symlinks.sh
source ./setup/header.sh echo "Creating symlinks..." # Symlink Atom configuration mkdir -p ~/.atom ln -sf "$PWD"/atom/* ~/.atom # Symlink Bash configuration ln -snf "$PWD"/terminal/.bashrc ~/.bashrc ln -snf "$PWD"/terminal/.bashrc ~/.bash_profile # Symlink custom completions and remove overridden completions ln -s...
source ./setup/header.sh echo "Creating symlinks..." # Symlink Atom configuration mkdir -p ~/.atom ln -sf "$PWD"/atom/* ~/.atom # Symlink Bash configuration ln -snf "$PWD"/terminal/.bashrc ~/.bashrc ln -snf "$PWD"/terminal/.bashrc ~/.bash_profile # Symlink custom completions and remove overridden completions ln -s...
Reduce GPG config symlink creation to one line
Reduce GPG config symlink creation to one line
Shell
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
shell
## Code Before: source ./setup/header.sh echo "Creating symlinks..." # Symlink Atom configuration mkdir -p ~/.atom ln -sf "$PWD"/atom/* ~/.atom # Symlink Bash configuration ln -snf "$PWD"/terminal/.bashrc ~/.bashrc ln -snf "$PWD"/terminal/.bashrc ~/.bash_profile # Symlink custom completions and remove overridden c...
6ae09e1ca7567bab291b9b114593e7f201c4dfb5
terraform/ecs/task-definition.tf
terraform/ecs/task-definition.tf
resource "aws_ecs_task_definition" "ecs-pace-task-definition" { family = "pace-task-definition" container_definitions = <<EOF [{ "name": "pace", "image": "lplotni/pace-app", "cpu": 1024, "memory": 512, "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-regio...
resource "aws_ecs_task_definition" "ecs-pace-task-definition" { family = "pace-task-definition" container_definitions = <<EOF [{ "name": "pace", "image": "lplotni/pace-app", "cpu": 1024, "memory": 512, "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-regio...
Revert "migrate db on startup"
Revert "migrate db on startup" This reverts commit bf73a6690c42ab81d020b6db85b51c456f329b4d.
HCL
apache-2.0
lplotni/pace,lplotni/pace,cz8s/pace,cz8s/pace,lplotni/pace,cz8s/pace
hcl
## Code Before: resource "aws_ecs_task_definition" "ecs-pace-task-definition" { family = "pace-task-definition" container_definitions = <<EOF [{ "name": "pace", "image": "lplotni/pace-app", "cpu": 1024, "memory": 512, "logConfiguration": { "logDriver": "awslogs", "options": { ...
0cb48b8b7fe8b44e369abf213ffc2909bf978159
lib/json/api.rb
lib/json/api.rb
require "json/api/version" require 'json' require 'json-schema' module JSON module Api def self.parse(source, opts={}) json = JSON.parse(source, opts) validate(json, opts) json # rescue # nil end def self.validate(source, opts={}) source = JSON.parse(source) if source.k...
require "json/api/version" require 'json' require 'json-schema' module JSON module Api def self.parse(source, opts={}) json = JSON.parse(source, opts) validate(json, opts) json # rescue # nil end def self.validate(source, opts={}) source = JSON.parse(source) if source.k...
Fix file paths outside gem
Fix file paths outside gem
Ruby
mit
json-api/parser-ruby,davidtrogers/parser-ruby,janusnic/parser-ruby
ruby
## Code Before: require "json/api/version" require 'json' require 'json-schema' module JSON module Api def self.parse(source, opts={}) json = JSON.parse(source, opts) validate(json, opts) json # rescue # nil end def self.validate(source, opts={}) source = JSON.parse(sou...
ea30c74f6049849510b8722da4cfbf6e6894e3cb
spec/factories/systems.rb
spec/factories/systems.rb
FactoryGirl.define do factory :system, class: System do name 'stack-12345678' template_parameters '{}' parameters '{}' pattern { create(:pattern) } after(:build) do System.skip_callback :save, :before, :create_stack end after(:create) do System.set_callback :save, :before, :c...
FactoryGirl.define do factory :system, class: System do sequence(:name) { |n| "stack-#{n}" } template_parameters '{}' parameters '{}' pattern { create(:pattern) } after(:build) do System.skip_callback :save, :before, :create_stack end after(:create) do System.set_callback :sa...
Change the system name to be unique
Change the system name to be unique
Ruby
apache-2.0
cloudconductor/cloud_conductor,cloudconductor/cloud_conductor,cloudconductor/cloud_conductor
ruby
## Code Before: FactoryGirl.define do factory :system, class: System do name 'stack-12345678' template_parameters '{}' parameters '{}' pattern { create(:pattern) } after(:build) do System.skip_callback :save, :before, :create_stack end after(:create) do System.set_callback :s...
077b35eac4fca4535dc84e9bc636e8d9098c1781
scripts/install_sccache.sh
scripts/install_sccache.sh
set -ex # https://stackoverflow.com/a/34676160/2489366 # the directory of the script DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # the temp directory used, within $DIR # omit the -p parameter to create a temporal directory in the default location WORK_DIR=`mktemp -d -p "$DIR"` # check if tmp dir was cre...
set -ex # https://stackoverflow.com/a/34676160/2489366 # the directory of the script DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # the temp directory used, within $DIR # omit the -p parameter to create a temporal directory in the default location WORK_DIR=`mktemp -d "$DIR.XXXXXXXX"` # check if tmp dir w...
Fix sccache installation on OSX
Fix sccache installation on OSX
Shell
mit
gluon-lang/gluon,Marwes/embed_lang,gluon-lang/gluon,Marwes/embed_lang
shell
## Code Before: set -ex # https://stackoverflow.com/a/34676160/2489366 # the directory of the script DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # the temp directory used, within $DIR # omit the -p parameter to create a temporal directory in the default location WORK_DIR=`mktemp -d -p "$DIR"` # check if...
55112fd0169b941a0d6fab21d4a11ddfcdc0c577
unittests/mixer_test.cpp
unittests/mixer_test.cpp
int main(int argc, char *argv[]) { warnx("Host execution started"); char* args[] = {argv[0], "../../ROMFS/px4fmu_common/mixers/IO_pass.mix", "../../ROMFS/px4fmu_common/mixers/FMU_quad_w.mix"}; test_mixer(3, args); test_conv(1, args); }
int main(int argc, char *argv[]) { int ret; warnx("Host execution started"); char* args[] = {argv[0], "../ROMFS/px4fmu_common/mixers/IO_pass.mix", "../ROMFS/px4fmu_common/mixers/FMU_quad_w.mix"}; if (ret = test_mixer(3, args)); test_conv(1, args); return 0; }
Improve mixer test, no firm checks yet
Improve mixer test, no firm checks yet
C++
bsd-3-clause
jlecoeur/Firmware,PX4/Firmware,jlecoeur/Firmware,mje-nz/PX4-Firmware,PX4/Firmware,jlecoeur/Firmware,mje-nz/PX4-Firmware,acfloria/Firmware,PX4/Firmware,dagar/Firmware,Aerotenna/Firmware,krbeverx/Firmware,acfloria/Firmware,Aerotenna/Firmware,krbeverx/Firmware,mcgill-robotics/Firmware,mcgill-robotics/Firmware,dagar/Firmwa...
c++
## Code Before: int main(int argc, char *argv[]) { warnx("Host execution started"); char* args[] = {argv[0], "../../ROMFS/px4fmu_common/mixers/IO_pass.mix", "../../ROMFS/px4fmu_common/mixers/FMU_quad_w.mix"}; test_mixer(3, args); test_conv(1, args); } ## Instruction: Improve mixer test, no firm checks yet...
aa5e3418ffa359197eeea0334982925b4bf38218
commands.js
commands.js
// Commands are called in the following manner: // commands[command](message, config, msg, ...parameters) // msg is the message content without the prefix or command module.exports = { 'ping': (message) => { message.edit("pong!"); }, // _ denotes arguments we don't care about 'selfbot_off': (m...
// Commands are called in the following manner: // commands[command](message, config, msg, ...parameters) // msg is the message content without the prefix or command module.exports = { 'ping': (message) => { message.edit("pong!"); }, // _ denotes arguments we don't care about 'selfbot_off': (m...
Remove unnecessary msg use in hideyourshame
Remove unnecessary msg use in hideyourshame
JavaScript
unlicense
Rafer45/Warhol
javascript
## Code Before: // Commands are called in the following manner: // commands[command](message, config, msg, ...parameters) // msg is the message content without the prefix or command module.exports = { 'ping': (message) => { message.edit("pong!"); }, // _ denotes arguments we don't care about '...
cab7f80534c70cbd3afe77af8868bd656112a2f6
.travis.yml
.travis.yml
language: node_js node_js: - 0.8
language: node_js node_js: - 0.8 language: ruby rvm: - 1.8.7 install: - gem update --system - gem install sass
Update Travis file with Ruby and Sass info
Update Travis file with Ruby and Sass info
YAML
mit
freeyiyi1993/grunt-contrib-sass,kentendo/grunt-contrib-sass,cvrebert/grunt-contrib-sass,gruntjs/grunt-contrib-sass,konder/grunt-contrib-sass,linemanjs/grunt-contrib-sass,liquidmetal/grunt-contrib-sass,vladikoff/grunt-contrib-sass,craigweston/grunt-contrib-sass,cvrebert/grunt-contrib-sass,matsumos/grunt-slim
yaml
## Code Before: language: node_js node_js: - 0.8 ## Instruction: Update Travis file with Ruby and Sass info ## Code After: language: node_js node_js: - 0.8 language: ruby rvm: - 1.8.7 install: - gem update --system - gem install sass
e58853dfdef416ee98ff7a032415f47799be7f6d
install-salt.sh
install-salt.sh
apt-get update apt-get install -y python-software-properties add-apt-repository -y ppa:saltstack/salt apt-get update apt-get install -y salt-minion sed -i 's/#master: salt/master: '$MASTERIP'/g' /etc/salt/minion service salt-minion restart exit 0
apt-get update echo 'deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main' > /etc/apt/sources.list.d/saltstack.list curl https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add - apt-get update apt-get install -y salt-minion sed -i 's/#master: salt/master: '...
Update the minion installer to use the real repository.
Update the minion installer to use the real repository.
Shell
mit
ZacharyDuBois/Random-Scripts
shell
## Code Before: apt-get update apt-get install -y python-software-properties add-apt-repository -y ppa:saltstack/salt apt-get update apt-get install -y salt-minion sed -i 's/#master: salt/master: '$MASTERIP'/g' /etc/salt/minion service salt-minion restart exit 0 ## Instruction: Update the minion installer to use the...
f6fedc4284a2b85b9acfdbe3b0d7b48293ac0df5
README.md
README.md
SheetMusicViewer ================ Simple sheet music PDF viewer implemented in Qt (and thus for Linux, Embedded Linux, Android, Windows, probably Mac...) Build instructions ------------------ Clone the repository using the git command line utility (or a tool of your choice). Make sure the submodules are (recursively...
SheetMusicViewer ================ Simple sheet music PDF viewer implemented in Qt (and thus for Linux, Embedded Linux, Android, Windows, probably Mac...) Build instructions ------------------ Clone the repository using the git command line utility (or a tool of your choice). Make sure the submodules are (recursively...
Add mupdf file generation hint for Windows / MSVC
Add mupdf file generation hint for Windows / MSVC
Markdown
agpl-3.0
felixhaedicke/SheetMusicViewer
markdown
## Code Before: SheetMusicViewer ================ Simple sheet music PDF viewer implemented in Qt (and thus for Linux, Embedded Linux, Android, Windows, probably Mac...) Build instructions ------------------ Clone the repository using the git command line utility (or a tool of your choice). Make sure the submodules ...
81fecc378da0a39ea87b75be0323b028349de792
app/views/downloads/download_linux.html.erb
app/views/downloads/download_linux.html.erb
<%- @section = "downloads" %> <%- @subsection = "" %> <div id="main"> <h1>Download for Linux and Unix</h1> <p>It is easiest to install Git on Linux using the preferred package manager of your Linux distribution.</p> <h3>Debian/Ubuntu</h3> <code>$ apt-get install git</code> <h3>Fedora</h3> <code>$ yum ins...
<%- @section = "downloads" %> <%- @subsection = "" %> <div id="main"> <h1>Download for Linux and Unix</h1> <p>It is easiest to install Git on Linux using the preferred package manager of your Linux distribution.</p> <h3>Debian/Ubuntu</h3> <code>$ apt-get install git</code> <h3>Fedora</h3> <code>$ yum ins...
Add install instructions for Slitaz
Add install instructions for Slitaz
HTML+ERB
mit
Mokolea/git-scm.com,mosoft521/gitscm-next,jasonlong/git-scm.com,mosoft521/gitscm-next,git/git-scm.com,git/git-scm.com,jasonlong/git-scm.com,jasonlong/git-scm.com,Mokolea/git-scm.com,Mokolea/git-scm.com,git/git-scm.com,git/git-scm.com,mosoft521/gitscm-next,mosoft521/gitscm-next,Mokolea/git-scm.com,jasonlong/git-scm.com
html+erb
## Code Before: <%- @section = "downloads" %> <%- @subsection = "" %> <div id="main"> <h1>Download for Linux and Unix</h1> <p>It is easiest to install Git on Linux using the preferred package manager of your Linux distribution.</p> <h3>Debian/Ubuntu</h3> <code>$ apt-get install git</code> <h3>Fedora</h3> ...
4cb96edfec89f243aea063bb09ebdfb8b173fc3c
src/app/core/errorhandler/error-handler.service.ts
src/app/core/errorhandler/error-handler.service.ts
import {Injectable, ErrorHandler} from '@angular/core'; import {Response} from "@angular/http"; import {Observable} from "rxjs"; @Injectable() export class ErrorHandlerService implements ErrorHandler { constructor() { } /* * @description: handler for http-request catch-clauses */ handleError(error: Respo...
import {Injectable, ErrorHandler} from '@angular/core'; import {Response} from "@angular/http"; import {Observable} from "rxjs"; @Injectable() export class ErrorHandlerService implements ErrorHandler { constructor() { } /* * @description: handler for http-request catch-clauses */ handleError(error: Respo...
Handle errors as plain text
Handle errors as plain text
TypeScript
mit
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
typescript
## Code Before: import {Injectable, ErrorHandler} from '@angular/core'; import {Response} from "@angular/http"; import {Observable} from "rxjs"; @Injectable() export class ErrorHandlerService implements ErrorHandler { constructor() { } /* * @description: handler for http-request catch-clauses */ handleEr...
e95097a7580946db105802ed283d821b1c61186a
templates/blocks/home_slider.html
templates/blocks/home_slider.html
<dl class="tabs"> <dd><a href="#simple1">Geographical Map</a></dd> <dd><a href="#simple2">List of committees</a></dd> <dd><a href="#simple3">European Parliament hemicycle</a></dd> </dl> <ul class="tabs-content"> <li id="simple1Tab"> {% include "map-eu.html" %} </li> <li id="simple2Tab"> {% include ...
<dl class="tabs"> <dd class="active"><a href="#simple1">Geographical Map</a></dd> <dd><a href="#simple2">List of committees</a></dd> <dd><a href="#simple3">European Parliament hemicycle</a></dd> </dl> <ul class="tabs-content"> <li class="active" id="simple1Tab"> {% include "map-eu.html" %} </li> <li id...
Add a default tab on home page (still a bug on the third tab...)
[fix] Add a default tab on home page (still a bug on the third tab...)
HTML
agpl-3.0
yohanboniface/memopol-core,yohanboniface/memopol-core,yohanboniface/memopol-core
html
## Code Before: <dl class="tabs"> <dd><a href="#simple1">Geographical Map</a></dd> <dd><a href="#simple2">List of committees</a></dd> <dd><a href="#simple3">European Parliament hemicycle</a></dd> </dl> <ul class="tabs-content"> <li id="simple1Tab"> {% include "map-eu.html" %} </li> <li id="simple2Tab">...
b04d0e863c4387c147ef8e9e7d067f3b0e302148
src/app/views/sessions/session/session.component.less
src/app/views/sessions/session/session.component.less
.session-view { position: fixed; width: 100%; height: calc(~"100vh - 85px"); } .close-well-button { position: relative; right: -10px; top: -15px; } .split-1 { padding-left: 15px; } .split-2 { padding-right: 15px; padding-bottom: 15px; } :host ::ng-deep split-gutter { background-color: white !imp...
.session-view { position: fixed; width: 100%; height: calc(~"100vh - 85px"); } .close-well-button { position: relative; right: -10px; top: -15px; } .split-1 { padding-left: 15px; } .split-2 { padding-right: 15px; } :host ::ng-deep split-gutter { background-color: white !important; }
Remove bottom padding from split2
Remove bottom padding from split2
Less
mit
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
less
## Code Before: .session-view { position: fixed; width: 100%; height: calc(~"100vh - 85px"); } .close-well-button { position: relative; right: -10px; top: -15px; } .split-1 { padding-left: 15px; } .split-2 { padding-right: 15px; padding-bottom: 15px; } :host ::ng-deep split-gutter { background-c...
30a4281f2602bd6b9d90d89375785a2645854a0d
enthought/enable2/pyglet_backend/pyglet_app.py
enthought/enable2/pyglet_backend/pyglet_app.py
from enthought.enable.pyglet_backend.pyglet_app import *
__all__ = ["get_app", "PygletApp"] from enthought.enable.pyglet_backend.pyglet_app import * # Import the objects which are not declared in __all__, # but are still defined in the real module, such that people # can import them explicitly when needed, just as they could # with the real module. # # It is unlikely tha...
Improve the proxy module which maps to a module which uses __all__.
Improve the proxy module which maps to a module which uses __all__. The notes I made in the code apply to all proxy modules which map to a module which uses __all__.
Python
bsd-3-clause
tommy-u/enable,tommy-u/enable,tommy-u/enable,tommy-u/enable
python
## Code Before: from enthought.enable.pyglet_backend.pyglet_app import * ## Instruction: Improve the proxy module which maps to a module which uses __all__. The notes I made in the code apply to all proxy modules which map to a module which uses __all__. ## Code After: __all__ = ["get_app", "PygletApp"] from enth...
e5fe61936977bbad43dfeabb56df6da768ac3580
app/views/welcome/index.html.erb
app/views/welcome/index.html.erb
<br /> <p> <%=t('hyrax.product_name') %> is a secure application that enables <%=t('hyrax.institution.name') %> to efficiently carry out varied and complex workflows related to digitization while adhereing to standards and best practices which ensure that our content will be preserved and accessible to our co...
<br /> <p> <%=t('hyrax.product_name') %> is a secure application that enables <%=t('hyrax.institution.name') %> to efficiently carry out varied and complex workflows related to digitization while adhereing to standards and best practices which ensure that our content will be preserved and accessible to our co...
Add Scanned Documents to scanned resource and multi-volume work heading on welcome page
Add Scanned Documents to scanned resource and multi-volume work heading on welcome page
HTML+ERB
apache-2.0
pulibrary/plum,pulibrary/plum,pulibrary/plum,pulibrary/plum
html+erb
## Code Before: <br /> <p> <%=t('hyrax.product_name') %> is a secure application that enables <%=t('hyrax.institution.name') %> to efficiently carry out varied and complex workflows related to digitization while adhereing to standards and best practices which ensure that our content will be preserved and acce...
14778ffe45dfa5fe89914f1161ada0e7f20a8f43
Source/CoreData/Entities/DPerk.swift
Source/CoreData/Entities/DPerk.swift
import Foundation extension DPerk { }
import Foundation extension DPerk { var type:DPerkType { get { guard let type:DPerkType = DPerkType( rawValue:rawType) else { return DPerkType.error } ...
Add computed property for perk type
Add computed property for perk type
Swift
mit
velvetroom/columbus
swift
## Code Before: import Foundation extension DPerk { } ## Instruction: Add computed property for perk type ## Code After: import Foundation extension DPerk { var type:DPerkType { get { guard let type:DPerkType = DPerkType( rawV...
644660b6c41f029f271a0b8866387f358f8fdf54
frappe/patches/v4_0/enable_scheduler_in_system_settings.py
frappe/patches/v4_0/enable_scheduler_in_system_settings.py
from __future__ import unicode_literals import frappe from frappe.utils.scheduler import disable_scheduler, enable_scheduler def execute(): frappe.reload_doc("core", "doctype", "system_settings") if frappe.db.get_global("disable_scheduler"): disable_scheduler() else: enable_scheduler()
from __future__ import unicode_literals import frappe from frappe.utils.scheduler import disable_scheduler, enable_scheduler from frappe.utils import cint def execute(): frappe.reload_doc("core", "doctype", "system_settings") if cint(frappe.db.get_global("disable_scheduler")): disable_scheduler() else: enable_...
Fix in enable scheduler patch
Fix in enable scheduler patch
Python
mit
BhupeshGupta/frappe,letzerp/framework,saurabh6790/frappe,rmehta/frappe,elba7r/builder,suyashphadtare/sajil-frappe,rohitw1991/frappe,saguas/frappe,indictranstech/tele-frappe,nerevu/frappe,indictranstech/omnitech-frappe,vCentre/vFRP-6233,gangadharkadam/saloon_frappe,aboganas/frappe,indictranstech/phr-frappe,gangadharkada...
python
## Code Before: from __future__ import unicode_literals import frappe from frappe.utils.scheduler import disable_scheduler, enable_scheduler def execute(): frappe.reload_doc("core", "doctype", "system_settings") if frappe.db.get_global("disable_scheduler"): disable_scheduler() else: enable_scheduler() ## Inst...
2d8a3b8c9ca6196317758e58cefc76163b88607f
falcom/table.py
falcom/table.py
class Table: class InputStrContainsCarriageReturn (RuntimeError): pass def __init__ (self, tab_separated_text = None): if tab_separated_text and "\r" in tab_separated_text: raise self.InputStrContainsCarriageReturn self.text = tab_separated_text if self.text: ...
class Table: class InputStrContainsCarriageReturn (RuntimeError): pass def __init__ (self, tab_separated_text = None): if tab_separated_text: if "\r" in tab_separated_text: raise self.InputStrContainsCarriageReturn self.text = tab_separated_text.rstrip...
Move assignments in Table.__init__ around
Move assignments in Table.__init__ around
Python
bsd-3-clause
mlibrary/image-conversion-and-validation,mlibrary/image-conversion-and-validation
python
## Code Before: class Table: class InputStrContainsCarriageReturn (RuntimeError): pass def __init__ (self, tab_separated_text = None): if tab_separated_text and "\r" in tab_separated_text: raise self.InputStrContainsCarriageReturn self.text = tab_separated_text i...
972a4760f10299cb2a5e2e7969665e4665ff3bcc
deploy/GetFiles.ps1
deploy/GetFiles.ps1
$binPath = "..\src\RoslynPad\bin\Release" $exclude = @( "Xceed.Wpf.AvalonDock.Themes.Aero.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "Xceed.Wpf.AvalonDock.Themes.VS2010.dll", "Xceed.Wpf.DataGrid.dll" ); $files = get-childitem "$location\$binPath\*.dll" | select -ExpandProperty Name | where { $exclude -notcontai...
$binPath = "..\src\RoslynPad\bin\Release" $exclude = @( "Xceed.Wpf.AvalonDock.Themes.Aero.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "Xceed.Wpf.AvalonDock.Themes.VS2010.dll", "Xceed.Wpf.DataGrid.dll" ); $files = get-childitem "$location\$binPath\*.dll" | select -ExpandProperty Name | where { $exclude -notcontai...
Add config files to deployment
Add config files to deployment
PowerShell
apache-2.0
aelij/roslynpad
powershell
## Code Before: $binPath = "..\src\RoslynPad\bin\Release" $exclude = @( "Xceed.Wpf.AvalonDock.Themes.Aero.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "Xceed.Wpf.AvalonDock.Themes.VS2010.dll", "Xceed.Wpf.DataGrid.dll" ); $files = get-childitem "$location\$binPath\*.dll" | select -ExpandProperty Name | where { $ex...
0ce14be170e09530b225f2f7526ad68ee1758095
peering/migrations/0027_auto_20190105_1600.py
peering/migrations/0027_auto_20190105_1600.py
import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ] operations = [ migrations.AlterFi...
import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ] def forwards_func(apps, schema_editor): ...
Fix issue with migrations introduced lately.
Fix issue with migrations introduced lately.
Python
apache-2.0
respawner/peering-manager,respawner/peering-manager,respawner/peering-manager,respawner/peering-manager
python
## Code Before: import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ] operations = [ mi...
b6402d6116fbea0d9368931db3e3415028ac9035
presets/node.js
presets/node.js
const baseRules = [ 'eslint:recommended', ].concat([ '../src/rules/ava', '../src/rules/best-practices', '../src/rules/errors', '../src/rules/es6', '../src/rules/imports', '../src/rules/jsdoc', '../src/rules/node', '../src/rules/react', '../src/rules/strict', '../src/rules/sty...
const baseRules = [ 'eslint:recommended', ].concat([ '../src/rules/ava', '../src/rules/best-practices', '../src/rules/errors', '../src/rules/es6', '../src/rules/imports', '../src/rules/jsdoc', '../src/rules/node', '../src/rules/react', '../src/rules/strict', '../src/rules/sty...
Add env browser for browser globals support
Add env browser for browser globals support
JavaScript
mit
labs42/eslint-config-labs42
javascript
## Code Before: const baseRules = [ 'eslint:recommended', ].concat([ '../src/rules/ava', '../src/rules/best-practices', '../src/rules/errors', '../src/rules/es6', '../src/rules/imports', '../src/rules/jsdoc', '../src/rules/node', '../src/rules/react', '../src/rules/strict', '...
7b9f5a209e5d51378143a8bf1aa0c22b1790bcaa
data/fedora-update.yaml
data/fedora-update.yaml
python: status: dropped note: | This is the Python 2 package. Please port to Python 3. python-kerberos: status: dropped note: | Suggested replacement: `python-gssapi` python-krbV: status: dropped note: | Suggested replacement: `python-gssapi` m2crypto: status: dropped...
python: status: dropped note: | This is the Python 2 package. Please port to Python 3. python-kerberos: status: dropped note: | Suggested replacement: `python-gssapi` python-krbV: status: dropped note: | Suggested replacement: `python-gssapi` m2crypto: status: dropped...
Add several more packages as dropped
Add several more packages as dropped
YAML
mit
ari3s/portingdb,irushchyshyn/portingdb,sYnfo/portingdb,sYnfo/portingdb,fedora-python/portingdb,irushchyshyn/portingdb,ari3s/portingdb,fedora-python/portingdb,sYnfo/portingdb,irushchyshyn/portingdb,irushchyshyn/portingdb,fedora-python/portingdb,ari3s/portingdb,ari3s/portingdb
yaml
## Code Before: python: status: dropped note: | This is the Python 2 package. Please port to Python 3. python-kerberos: status: dropped note: | Suggested replacement: `python-gssapi` python-krbV: status: dropped note: | Suggested replacement: `python-gssapi` m2crypto: ...
d54150b9a86c3cc0a08376e3b1cf9c223a7c0096
index.js
index.js
;(_ => { 'use strict'; var tagContent = 'router2-content'; function matchHash() { var containers = document.querySelectorAll(`${tagContent}:not([hidden])`); var container; for (var i = 0; i < containers.length; i++) { containers[i].hidden = true; } var hash = window.location.hash.slice...
;(_ => { 'use strict'; var tagContent = 'router2-content'; function matchHash(parent, hash) { var containers; var container; var _hash = hash || window.location.hash; if (!parent) { containers = document.querySelectorAll(`${tagContent}:not([hidden])`); for (var i = 0; i < containers....
Complete the test for case 3
Complete the test for case 3
JavaScript
isc
m3co/router3,m3co/router3
javascript
## Code Before: ;(_ => { 'use strict'; var tagContent = 'router2-content'; function matchHash() { var containers = document.querySelectorAll(`${tagContent}:not([hidden])`); var container; for (var i = 0; i < containers.length; i++) { containers[i].hidden = true; } var hash = window.loc...
ba6d4125830adb7308588947a5e91cfbdb49c00a
DataCollector/MemcachedDataCollector.php
DataCollector/MemcachedDataCollector.php
<?php namespace Blablacar\MemcachedBundle\DataCollector; use Symfony\Component\HttpKernel\DataCollector\DataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Blablacar\MemcachedBundle\Memcached\ClientLogger; class MemcachedDataCollector extends DataCollector ...
<?php namespace Blablacar\MemcachedBundle\DataCollector; use Symfony\Component\HttpKernel\DataCollector\DataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Blablacar\MemcachedBundle\Memcached\ClientLogger; class MemcachedDataCollector extends DataCollector ...
Correct duration when no commands is logged
Correct duration when no commands is logged
PHP
mit
odolbeau/BlablacarMemcachedBundle,odolbeau/BlablacarMemcachedBundle,blablacar/BlablacarMemcachedBundle,blablacar/BlablacarMemcachedBundle
php
## Code Before: <?php namespace Blablacar\MemcachedBundle\DataCollector; use Symfony\Component\HttpKernel\DataCollector\DataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Blablacar\MemcachedBundle\Memcached\ClientLogger; class MemcachedDataCollector extend...
a760b00c88476d2d0f1822baff7ada18d59edb0f
test/project/html/partials/erb.html.erb
test/project/html/partials/erb.html.erb
<h1>Partials in document</h1> <h2>ERB</h2> <%= partial "test/erb", :locals => {:value => "value"} %> <h2>MD</h2> <%= partial "test/markdown" %> <h2>Mockup</h2> <%= partial "test/mockup" %>
<h1>Partials in document</h1> <h2>ERB</h2> <%= partial "test/erb", :locals => {:value => "value"} %> <h2>MD</h2> <%= partial "test/markdown" %> <h2>Mockup</h2> <%= partial "test/mockup", :locals => {:value => "value"} %>
Test rendering of old style partials with locals
Test rendering of old style partials with locals
HTML+ERB
mit
DigitPaint/html_mockup,DigitPaint/roger,DigitPaint/roger
html+erb
## Code Before: <h1>Partials in document</h1> <h2>ERB</h2> <%= partial "test/erb", :locals => {:value => "value"} %> <h2>MD</h2> <%= partial "test/markdown" %> <h2>Mockup</h2> <%= partial "test/mockup" %> ## Instruction: Test rendering of old style partials with locals ## Code After: <h1>Partials in document</h1> ...
67220449f36b92de9b8d86524fa4dc4a24c3311b
piface/test_piface.sh
piface/test_piface.sh
python /usr/share/doc/python-pifacedigitalio/examples/blink.py
piface_examples_dir=/usr/share/doc/python-pifacedigitalio/examples echo "available examples - run with python:" find $piface_examples_dir -type f echo "\nAn LED should now blink - hit CTRL+C to stop it" python $piface_examples_dir/blink.py
Add more info to the output when testing piface
Add more info to the output when testing piface
Shell
mit
claremacrae/raspi_code,claremacrae/raspi_code,claremacrae/raspi_code
shell
## Code Before: python /usr/share/doc/python-pifacedigitalio/examples/blink.py ## Instruction: Add more info to the output when testing piface ## Code After: piface_examples_dir=/usr/share/doc/python-pifacedigitalio/examples echo "available examples - run with python:" find $piface_examples_dir -type f echo "\...
e93d77ad5fa75c04ddd38172d051d62111e0f88f
challenge_1/solution.rb
challenge_1/solution.rb
require 'test/unit' extend Test::Unit::Assertions def getInfo(test=false) puts "What's your name?" name = test ? "max" : gets.chomp() puts "What's your age?" age = test ? 26 : gets.chomp() puts "What's your reddit username?" redditUsername = test ? "iammax" : gets.chomp() result = "Your name is #{name}, your...
require 'test/unit' extend Test::Unit::Assertions def get_info(test = false) puts "What's your name?" name = test ? 'max' : gets.chomp puts "What's your age?" age = test ? 26 : gets.chomp puts "What's your reddit username?" reddit_username = test ? 'iammax' : gets.chomp result = 'Your name is #{name}...
Save files before refreshing line endings
Save files before refreshing line endings
Ruby
apache-2.0
maxArturo/programmerDaily
ruby
## Code Before: require 'test/unit' extend Test::Unit::Assertions def getInfo(test=false) puts "What's your name?" name = test ? "max" : gets.chomp() puts "What's your age?" age = test ? 26 : gets.chomp() puts "What's your reddit username?" redditUsername = test ? "iammax" : gets.chomp() result = "Your name ...
18dc92ad8283b22d803c5a4ae717db80492e5c17
sauce-connect.rb
sauce-connect.rb
require "formula" class SauceConnect < Formula homepage "https://docs.saucelabs.com/reference/sauce-connect/" url "https://saucelabs.com/downloads/sc-4.3.11-osx.zip" sha1 "5d0aa851d21f3d4a21f298b6a921761c6aa15217" def install bin.install 'bin/sc' end test do system "#{bin}/sc", "--version" end...
require "formula" class SauceConnect < Formula homepage "https://docs.saucelabs.com/reference/sauce-connect/" url "https://saucelabs.com/downloads/sc-4.3.13-osx.zip" sha1 "d29ce847880ece5ea8c7cfa94b0c89de5a4f328c" def install bin.install 'bin/sc' end test do system "#{bin}/sc", "--version" end...
Upgrade to Sauce Connect 4.3.13
Upgrade to Sauce Connect 4.3.13
Ruby
unlicense
retornam/homebrew-saucelabs
ruby
## Code Before: require "formula" class SauceConnect < Formula homepage "https://docs.saucelabs.com/reference/sauce-connect/" url "https://saucelabs.com/downloads/sc-4.3.11-osx.zip" sha1 "5d0aa851d21f3d4a21f298b6a921761c6aa15217" def install bin.install 'bin/sc' end test do system "#{bin}/sc", "...
9e3219996121608647195df5386a19a94ff430f2
.github/workflows/push.yml
.github/workflows/push.yml
on: push name: Test jobs: buildImage: name: Build Image runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Build Image uses: actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6 with: args: build -t veryhappythings/discord-gather:${{ github.sha }} . ...
on: push name: Test jobs: buildImage: name: Build Image runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Build Image run: docker build -t veryhappythings/discord-gather:${{ github.sha }} . - name: Run tests env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERAL...
Switch over to using the run command
Switch over to using the run command
YAML
mit
veryhappythings/discord-gather
yaml
## Code Before: on: push name: Test jobs: buildImage: name: Build Image runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Build Image uses: actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6 with: args: build -t veryhappythings/discord-gather:${{ gi...
10d170fa4b12345c2450bb3d83f92c2abc0eab3c
app/src/main/java/org/zeropage/apps/zeropage/database/notification/NotificationHistory.java
app/src/main/java/org/zeropage/apps/zeropage/database/notification/NotificationHistory.java
package org.zeropage.apps.zeropage.database.notification; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import org.zeropage.apps.zeropage.notification.Notification; import java.util.ArrayList; import java.util.List...
package org.zeropage.apps.zeropage.database.notification; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import org.zeropage.apps.zeropage.notification.Notification; import java.util.ArrayList; import java.util.List...
Add Helper singleton class for querying/adding notification to db.
Add Helper singleton class for querying/adding notification to db.
Java
mit
ZeroPage/i_have_no_apps
java
## Code Before: package org.zeropage.apps.zeropage.database.notification; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import org.zeropage.apps.zeropage.notification.Notification; import java.util.ArrayList; impor...
e69520b11402b32d1cdfc0f58eb6a9ed2b659707
tenacity-testing/src/main/java/com/yammer/tenacity/testing/TenacityTest.java
tenacity-testing/src/main/java/com/yammer/tenacity/testing/TenacityTest.java
package com.yammer.tenacity.testing; import com.netflix.config.ConfigurationManager; import com.netflix.hystrix.Hystrix; import com.netflix.hystrix.contrib.yammermetricspublisher.HystrixYammerMetricsPublisher; import com.netflix.hystrix.strategy.HystrixPlugins; import org.junit.After; import java.util.concurrent.Time...
package com.yammer.tenacity.testing; import com.netflix.config.ConfigurationManager; import com.netflix.hystrix.Hystrix; import com.netflix.hystrix.contrib.yammermetricspublisher.HystrixYammerMetricsPublisher; import com.netflix.hystrix.strategy.HystrixPlugins; import org.junit.After; import org.junit.Before; import ...
Reset the ConfigurationManager when testing Tenacity
Reset the ConfigurationManager when testing Tenacity
Java
apache-2.0
skinzer/tenacity,yonglehou/tenacity,yammer/tenacity,jplock/tenacity,mauricionr/tenacity,samaitra/tenacity,Trundle/tenacity
java
## Code Before: package com.yammer.tenacity.testing; import com.netflix.config.ConfigurationManager; import com.netflix.hystrix.Hystrix; import com.netflix.hystrix.contrib.yammermetricspublisher.HystrixYammerMetricsPublisher; import com.netflix.hystrix.strategy.HystrixPlugins; import org.junit.After; import java.util...
f00a3026f43a9dee33bbb6de3080cc36e5c4a759
scripts/cleanup.sh
scripts/cleanup.sh
/usr/bin/yes | /usr/bin/pacman -Scc # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync
/usr/bin/yes | /usr/bin/pacman -Scc /usr/bin/pacman-optimize # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync
Optimize the pacman database before zeroing the drive
Optimize the pacman database before zeroing the drive
Shell
isc
agt-the-walker/packer-arch,aidanharris/packer-arch,slash170/packer-arch,elasticdog/packer-arch,tomaspapan/packer-arch,cosmo0920/packer-arch,tomswartz07/packer-arch,appleby/Lisp-In-Small-Pieces-VM
shell
## Code Before: /usr/bin/yes | /usr/bin/pacman -Scc # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) /usr/bin/dd if=/dev/zero of="$zerofile" bs=1M /usr/bin/rm -f "$zerofile" /usr/bin/sync ## Instruction: Optimize the pacman database before zeroing the drive ## Code After:...
9c531f2324773e4922d37761059edccb8d7b74e4
lib/organic-sitemap/redis_manager.rb
lib/organic-sitemap/redis_manager.rb
module OrganicSitemap class RedisManager def self.add(key) return unless key OrganicSitemap.configuration. redis_connection. zadd(OrganicSitemap.configuration.storage_key, (DateTime.now + OrganicSitemap.configuration.expiry_time.to_i).to...
module OrganicSitemap class RedisManager def self.add(key) return unless key redis_connection.zadd(storage_key, (DateTime.now + expiry_time).to_time.to_i, key) end def self.clean_set(time = Time.now) redis_connection.zremrangebyscore(storage_key, "-inf", time.to_i) end def self...
Add remove_key and remove_keys functions on redis manager
Add remove_key and remove_keys functions on redis manager
Ruby
mit
abelardogilm/organic-sitemap,abelardogilm/organic-sitemap
ruby
## Code Before: module OrganicSitemap class RedisManager def self.add(key) return unless key OrganicSitemap.configuration. redis_connection. zadd(OrganicSitemap.configuration.storage_key, (DateTime.now + OrganicSitemap.configuration.expi...
f3ab09ab817e7df0c1e1cdc9400d85de5be64919
css/brainwallet.css
css/brainwallet.css
body { padding-top: 72px; padding-bottom: 32px; } .form-control[disabled], .form-control[readonly] { cursor: auto; } .dropdown-menu-two-column { -moz-column-count: 2; -webkit-column-count: 2; column-count:2; width: 360px; padding: 7px 0px; }
body { padding-top: 72px; padding-bottom: 32px; } .form-control { font-family: monospace; } .form-control[disabled], .form-control[readonly] { cursor: auto; } .dropdown-menu-two-column { -moz-column-count: 2; -webkit-column-count: 2; column-count:2; width: 360px; padding: 7px 0px; }
Use monospace font for form text boxes.
Use monospace font for form text boxes.
CSS
mit
jamescarter-le/brainwallet.github.io,Colored-Coins/brainwallet.github.io,sipak/brainwallet,2XL/brainwallet.github.io,brainwallet/brainwallet.github.io,sipak/brainwallet,Colored-Coins/brainwallet.github.io,brainwalletX/brainwalletX.github.io,Taiiwo/bitcoin-signature-tool,nvoron23/brainwallet.github.io,jhoenicke/brainwal...
css
## Code Before: body { padding-top: 72px; padding-bottom: 32px; } .form-control[disabled], .form-control[readonly] { cursor: auto; } .dropdown-menu-two-column { -moz-column-count: 2; -webkit-column-count: 2; column-count:2; width: 360px; padding: 7px 0px; } ## Instruction: Use monospace font for form t...
fe9779d294a1ed6de411e672ccb2f0c7e742d628
_data/categories.yml
_data/categories.yml
toplevel: - url: government name: "Government" description: "Blah blah" - url: jobs name: "Jobs" description: "Blah blah" - url: public-safety name: "Public Safety" description: "Blah blah" - url: licensing-permits name: "Licensing &amp; Permits" description: "Blah blah" - url: utilities-streets name:...
toplevel: - url: government name: "Government" description: "City Departments and council members & meetings and history" - url: jobs name: "Jobs" description: "Finding jobs with the City of Oakland and general employment services" - url: public-safety name: "Public Safety" description: "Includes emergency ...
Add some proper starter descriptions
Add some proper starter descriptions
YAML
isc
codeforamerica/ceviche-starter,codeforamerica/ceviche-starter,ceviche/shoop-a-doop,ceviche/shoop-a-doop
yaml
## Code Before: toplevel: - url: government name: "Government" description: "Blah blah" - url: jobs name: "Jobs" description: "Blah blah" - url: public-safety name: "Public Safety" description: "Blah blah" - url: licensing-permits name: "Licensing &amp; Permits" description: "Blah blah" - url: utilities...
95bed5b5f45e77d8de864a2c5e5aa156f2e5a50e
src/gui.js
src/gui.js
var app = require('app') var dialog = require('dialog') var menu = require('menu') /* Build the application menu for the current platform. */ exports.application_menu = function(window) { var template = [ { label: 'File', submenu: [ { label: 'Quit...
var app = require('app') var dialog = require('dialog') var menu = require('menu') /* Build the application menu for the current platform. */ exports.application_menu = function(window) { var file = { label: 'File', submenu: [ { label: 'Quit', accelerator...
Restructure menus to match mac patterns
Restructure menus to match mac patterns
JavaScript
mit
jreese/apollo,jreese/apollo
javascript
## Code Before: var app = require('app') var dialog = require('dialog') var menu = require('menu') /* Build the application menu for the current platform. */ exports.application_menu = function(window) { var template = [ { label: 'File', submenu: [ { ...
ccf74e0e790bba5065e7f510324c599023a36f39
Argo/Operators/Argo.swift
Argo/Operators/Argo.swift
import Runes precedencegroup DecodePrecedence { associativity: left higherThan: ApplicativeSequencePrecedence lowerThan: NilCoalescingPrecedence } infix operator <| : DecodePrecedence infix operator <|? : DecodePrecedence infix operator <|| : DecodePrecedence infix operator <||? : DecodePrecedence
import Runes precedencegroup ArgoDecodePrecedence { associativity: left higherThan: RunesApplicativeSequencePrecedence lowerThan: NilCoalescingPrecedence } infix operator <| : ArgoDecodePrecedence infix operator <|? : ArgoDecodePrecedence infix operator <|| : ArgoDecodePrecedence infix operator <||? : ArgoDecod...
Reduce the risk of conflicts with precedence group
Reduce the risk of conflicts with precedence group Turns out, these need to be globally unique! Fun stuff. To work around this we can fall back to our good old friend "Explicit Prefix"! We'll just tack on a quick package name to the front of this precedence group and voila! No conflicts! ![photo of a fire in a dumpst...
Swift
mit
thoughtbot/Argo,thoughtbot/Argo,thoughtbot/Argo
swift
## Code Before: import Runes precedencegroup DecodePrecedence { associativity: left higherThan: ApplicativeSequencePrecedence lowerThan: NilCoalescingPrecedence } infix operator <| : DecodePrecedence infix operator <|? : DecodePrecedence infix operator <|| : DecodePrecedence infix operator <||? : DecodePreceden...
2893be2bf242f8d40078bbc5146ac62a92b974a1
.travis.yml
.travis.yml
language: android android: components: - android-22 - build-tools-22.0.1 licenses: - 'android-sdk-license.*' sudo: false script: 'travis_retry ./gradlew clean build'
language: android android: components: - android-22 - build-tools-22.0.1 - extra-android-m2repository - extra-android-support licenses: - 'android-sdk-license.*' sudo: false script: 'travis_retry ./gradlew clean build'
Add Android repos to Travis-CI configuration
Add Android repos to Travis-CI configuration
YAML
apache-2.0
Mukul-Sharma/Spyglass,linkedin/Spyglass,bpappin/Spyglass,RyanTech/Spyglass-1,senorcris/Spyglass,RacZo/Spyglass,conx2share/Spyglass,xiangwei/Spyglass
yaml
## Code Before: language: android android: components: - android-22 - build-tools-22.0.1 licenses: - 'android-sdk-license.*' sudo: false script: 'travis_retry ./gradlew clean build' ## Instruction: Add Android repos to Travis-CI configuration ## Code After: language: android android: components: - an...
44266f29f4f84fa239c6c79887b58a2d07c78afd
api/README.md
api/README.md
API contains the controllers and rabl views implementing the REST API of Solidus. ## Testing Run the API tests: ```bash bundle exec rspec ``` ## Documentation The API documentation is in the [openapi](https://github.com/solidusio/solidus/tree/master/api/openapi) directory. It follows the OpenAPI specification and...
API contains the controllers and rabl views implementing the REST API of Solidus. ## Testing Run the API tests: ```bash bundle exec rspec ``` ## Documentation The API documentation is in the [openapi][docs-dir] directory. It follows the OpenAPI specification and it is hosted on [Stoplight Docs][live-docs]. If yo...
Document contribution guidelines for API docs
Document contribution guidelines for API docs Because Stoplight Docs is not directly compatible with the output from Stoplight Studio, there are some intermediate steps and gotchas users need to be aware of when contributing to our API.
Markdown
bsd-3-clause
pervino/solidus,pervino/solidus,pervino/solidus,pervino/solidus
markdown
## Code Before: API contains the controllers and rabl views implementing the REST API of Solidus. ## Testing Run the API tests: ```bash bundle exec rspec ``` ## Documentation The API documentation is in the [openapi](https://github.com/solidusio/solidus/tree/master/api/openapi) directory. It follows the OpenAPI s...
f0f5e8c8be1f0ccc538340886f765da266ec4590
RELEASE-NOTES.rst
RELEASE-NOTES.rst
============= Release Notes ============= Production ========== The *production* configuration is contained in the *alaska-prod* branch. The following tagged releases of this configuration have been made: 1.1.0 ----- Tag: ``alaska-prod-1.1.0`` Based on the kayobe 1.1.0 release. * Adds configuration of fluentd mon...
============= Release Notes ============= Production ========== The *production* configuration is contained in the *alaska-prod* branch. The following tagged releases of this configuration have been made: 2.0.0 ----- Tag: ``alaska-prod-2.0.0`` Based on the kayobe 2.0.0 release (Ocata). * Enables the OpenStack mur...
Update release notes for alaska-kayobe-config 2.0.0 releases
Update release notes for alaska-kayobe-config 2.0.0 releases
reStructuredText
apache-2.0
SKA-ScienceDataProcessor/alaska-kayobe-config
restructuredtext
## Code Before: ============= Release Notes ============= Production ========== The *production* configuration is contained in the *alaska-prod* branch. The following tagged releases of this configuration have been made: 1.1.0 ----- Tag: ``alaska-prod-1.1.0`` Based on the kayobe 1.1.0 release. * Adds configuratio...
f8eb6683db888e1bf1f2f45d8d7bd10075720349
bin/lazy_quotes.pl
bin/lazy_quotes.pl
use utf8; use open ':std', ':encoding(UTF-8)'; # Convert lazy double quote entry styles to something sane while (<>) { s#(?<!\s)['‘’`]{3}#'"#g; s#['‘’`]{3}(?!\s)#"'#g; s#['‘’`]{2}#"#g; print; }
use utf8; use open ':std', ':encoding(UTF-8)'; # Convert lazy double quote entry styles to something sane while (<>) { s#(?<!\s)['‘’`]{3}#'"#g; s#['‘’`]{3}(?!\s)#"'#g; s#['‘’`]{2}#"#g; s#\\`#'#g; print; }
Add fix for one more bogus quote type
Add fix for one more bogus quote type
Perl
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
perl
## Code Before: use utf8; use open ':std', ':encoding(UTF-8)'; # Convert lazy double quote entry styles to something sane while (<>) { s#(?<!\s)['‘’`]{3}#'"#g; s#['‘’`]{3}(?!\s)#"'#g; s#['‘’`]{2}#"#g; print; } ## Instruction: Add fix for one more bogus quote type ## Code After: use utf8; use open ':std', '...
303d256bd6615bfef7d26a1b5dadf474dbbb26af
cortex/main.py
cortex/main.py
'''Main file for running experiments. ''' import logging from cortex._lib import (config, data, exp, optimizer, setup_cortex, setup_experiment, train) from cortex._lib.utils import print_section import torch __author__ = 'R Devon Hjelm' __author_email__ = 'erroneus@gmail.com' logger = l...
'''Main file for running experiments. ''' import logging from cortex._lib import (config, data, exp, optimizer, setup_cortex, setup_experiment, train) from cortex._lib.utils import print_section import torch __author__ = 'R Devon Hjelm' __author_email__ = 'erroneus@gmail.com' logger = l...
Terminate viz process at end of experiment.
Terminate viz process at end of experiment.
Python
bsd-3-clause
rdevon/cortex,rdevon/cortex
python
## Code Before: '''Main file for running experiments. ''' import logging from cortex._lib import (config, data, exp, optimizer, setup_cortex, setup_experiment, train) from cortex._lib.utils import print_section import torch __author__ = 'R Devon Hjelm' __author_email__ = 'erroneus@gmail.c...
8cd11782d4b3558d204f438accdc15b3b702839b
unn/cli.py
unn/cli.py
import sys commands = {} args = [] kwargs = {} def EXIT(msg, code=1): print(msg) sys.exit(code) def command(fn): commands[fn.__name__] = fn return fn def run(): if len(sys.argv) < 2: EXIT('No command provided') cmd = sys.argv[1] if cmd not in commands: EXIT('Unkown co...
import sys commands = {} args = [] kwargs = {} def EXIT(msg, code=1): print(msg) sys.exit(code) def command(fn): commands[fn.__name__] = fn return fn def run(): if len(sys.argv) < 2: EXIT('Valid commands are:\n ' + '\n '.join(commands)) cmd = sys.argv[1] if cmd not in command...
Add a helpful message if no command given
Add a helpful message if no command given
Python
mit
runningskull/unn
python
## Code Before: import sys commands = {} args = [] kwargs = {} def EXIT(msg, code=1): print(msg) sys.exit(code) def command(fn): commands[fn.__name__] = fn return fn def run(): if len(sys.argv) < 2: EXIT('No command provided') cmd = sys.argv[1] if cmd not in commands: ...
397ffa609c9d9da521fc2532ee3886cab6ba876c
app/templates/files/component.mustache.html
app/templates/files/component.mustache.html
<!-- Since AngularJS use the same bracket notation as mustache we ask mustache nicely to use square brackets instead. --> {{=[[ ]]=}} <!-- Try to have one enclosing tag around your component and add the components name as a class to it. --> <div <%= componentName %>></div>
<!-- Since AngularJS use the same bracket notation as mustache we ask mustache nicely to use square brackets instead. --> {{=[[ ]]=}} <!-- Try to have one enclosing tag around your component and add the components name as a class to it. --> <div <%= componentName %> class="<% componentName %>"></div>
Add the components "wrapper" class automatically
Add the components "wrapper" class automatically
HTML
mit
kornosaurus/generator-diversity-component,kornosaurus/generator-diversity-component
html
## Code Before: <!-- Since AngularJS use the same bracket notation as mustache we ask mustache nicely to use square brackets instead. --> {{=[[ ]]=}} <!-- Try to have one enclosing tag around your component and add the components name as a class to it. --> <div <%= componentName %>></div> ## Instruction: Add ...
48c3aff478b6277d58305f92b5d3825fcf25ada1
src/console/twentyfortyeight.cpp
src/console/twentyfortyeight.cpp
int main() { std::cout << "hello world" << std::endl; return 0; }
//#include <stdio.h> enum MoveDirection { LEFT, UP, RIGHT, DOWN }; class ConsoleMoveDirectionReader { public: MoveDirection next() { while (true) { int keyCode = std::cin.get(); if (keyCode == 97) { return MoveDirection::LEFT; break; } ...
Move direction reader from console.
Move direction reader from console.
C++
mit
joshjcarrier/2048-cpp
c++
## Code Before: int main() { std::cout << "hello world" << std::endl; return 0; } ## Instruction: Move direction reader from console. ## Code After: //#include <stdio.h> enum MoveDirection { LEFT, UP, RIGHT, DOWN }; class ConsoleMoveDirectionReader { public: MoveDirection next() { while (tru...
05e68b98a7d38efb95cca834e95ae35387bba730
static/js/entity.js
static/js/entity.js
(function () { var $specContainer = $('#spec-container'); if (!isMobile) { $('.section-tabs a').click(function () { var href = $(this).attr('href'); gotoTab(href); return false; }); $specContainer.scrollspy({ 'data-spy': 'scroll', 'data-target': '.section-t...
(function () { var $body = $('body'); if (!isMobile) { $('.section-tabs a').click(function () { var href = $(this).attr('href'); gotoTab(href); return false; }); $body.scrollspy({ 'data-spy': 'scroll', 'data-target': '.section-tabs', 'offset': 1...
Fix scrollspy bug occured by layout changes
Fix scrollspy bug occured by layout changes
JavaScript
apache-2.0
teampopong/pokr.kr,teampopong/pokr.kr,teampopong/pokr.kr,teampopong/pokr.kr
javascript
## Code Before: (function () { var $specContainer = $('#spec-container'); if (!isMobile) { $('.section-tabs a').click(function () { var href = $(this).attr('href'); gotoTab(href); return false; }); $specContainer.scrollspy({ 'data-spy': 'scroll', 'data-targ...
b1d73df29598cb3df43425377a395c1e4cafc1db
src/canard.c
src/canard.c
void canardInitPoolAllocator(CanardPoolAllocator* allocator, CanardPoolAllocatorBlock* buf, unsigned int buf_len) { unsigned int current_index = 0; CanardPoolAllocatorBlock** current_block = &(allocator->free_list); while (current_index < buf_len) { *current_block = &buf[current_index]; ...
CANARD_INTERNAL void canardInitPoolAllocator(CanardPoolAllocator* allocator, CanardPoolAllocatorBlock* buf, unsigned int buf_len) { unsigned int current_index = 0; CanardPoolAllocatorBlock** current_block = &(allocator->free_list); while (current_index < buf_len) { *current_block = &buf[current...
Apply internal API marker to declarations too
Apply internal API marker to declarations too
C
mit
UAVCAN/libcanard,UAVCAN/libcanard,antoinealb/libcanard,UAVCAN/libcanard,antoinealb/libcanard
c
## Code Before: void canardInitPoolAllocator(CanardPoolAllocator* allocator, CanardPoolAllocatorBlock* buf, unsigned int buf_len) { unsigned int current_index = 0; CanardPoolAllocatorBlock** current_block = &(allocator->free_list); while (current_index < buf_len) { *current_block = &buf[current...
c8e6e3a0b871bbfcd7e6db1b18ceac56a540d7b8
index.js
index.js
var WindowUtils = require("sdk/window/utils"); var windows = require("sdk/windows").browserWindows; windows.on("open", function() { var window = WindowUtils.getMostRecentBrowserWindow() if (WindowUtils.isBrowser(window) && !window.fullScreen) { window.BrowserFullScreen(); } });
var WindowUtils = require("sdk/window/utils"); var windows = require("sdk/windows").browserWindows; var { viewFor } = require("sdk/view/core"); windows.on("open", function(browserWindow) { var chromeWindow = viewFor(browserWindow); if (WindowUtils.isBrowser(chromeWindow) && !chromeWindow.fullScreen) { chromeWindow...
Convert the BrowserWindow object to a chrome window object instead of using getMostRecentBrowserWindow
Convert the BrowserWindow object to a chrome window object instead of using getMostRecentBrowserWindow
JavaScript
mpl-2.0
Phoenix09/firefox-startfullscreen
javascript
## Code Before: var WindowUtils = require("sdk/window/utils"); var windows = require("sdk/windows").browserWindows; windows.on("open", function() { var window = WindowUtils.getMostRecentBrowserWindow() if (WindowUtils.isBrowser(window) && !window.fullScreen) { window.BrowserFullScreen(); } }); ## Instruction: Co...
626a301449dc771d4445a673b9f4dfe93228e9a8
app/assets/stylesheets/reports_kit/reports.css.sass
app/assets/stylesheets/reports_kit/reports.css.sass
.reports_kit_report width: 100% padding: 1px canvas width: 100% .date_range_picker width: 180px
.reports_kit_report width: 100% padding: 1px canvas width: 100% max-height: 500px .date_range_picker width: 180px
Fix issue with canvas height with `maintainAspectRatio: false`
Fix issue with canvas height with `maintainAspectRatio: false`
Sass
mit
tombenner/reports_kit,tombenner/reports_kit
sass
## Code Before: .reports_kit_report width: 100% padding: 1px canvas width: 100% .date_range_picker width: 180px ## Instruction: Fix issue with canvas height with `maintainAspectRatio: false` ## Code After: .reports_kit_report width: 100% padding: 1px canvas width: 100% max-height: 500px ...
e5d037c01ac0b9be2bec4b8921f93ea273b49327
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
<!--- See what makes a good Pull Request at : https://github.com/terraform-providers/terraform-provider-aws/blob/master/.github/CONTRIBUTING.md#pull-requests ---> <!--- Please keep this note for the community ---> ### Community Note * Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com...
<!--- See what makes a good Pull Request at : https://github.com/terraform-providers/terraform-provider-aws/blob/master/.github/CONTRIBUTING.md#pull-requests ---> <!--- Please keep this note for the community ---> ### Community Note * Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com...
Change the wording for related issues
Change the wording for related issues To hopefully make it more clear when a related issue will be automatically closed versus left open.
Markdown
mpl-2.0
terraform-providers/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,kjmkznr/terraform-provider-aws
markdown
## Code Before: <!--- See what makes a good Pull Request at : https://github.com/terraform-providers/terraform-provider-aws/blob/master/.github/CONTRIBUTING.md#pull-requests ---> <!--- Please keep this note for the community ---> ### Community Note * Please vote on this pull request by adding a 👍 [reaction](https:/...
6b61b01367ea660f46e54945074a587f820cd1f9
index.android.js
index.android.js
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { AppRegistry, Component, StyleSheet } from 'react-native'; import Router from 'react-native-simple-router'; import ContestListScreen from './ContestListScreen'; class JumuNordost extends Component { ren...
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { AppRegistry, Component, StyleSheet } from 'react-native'; import Router from 'react-native-simple-router'; import ContestListScreen from './ContestListScreen'; class JumuNordost extends Component { ren...
Add listener for hardware back button
Add listener for hardware back button
JavaScript
mit
richeterre/jumu-nordost-react-native,richeterre/jumu-nordost-react-native,richeterre/jumu-nordost-react-native,richeterre/jumu-nordost-react-native
javascript
## Code Before: /** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { AppRegistry, Component, StyleSheet } from 'react-native'; import Router from 'react-native-simple-router'; import ContestListScreen from './ContestListScreen'; class JumuNordost extends C...
48c49a3b8076e6f3543aa1596f0f771bef8921e3
resources/port_options.rb
resources/port_options.rb
actions :create default_action :create attribute :name, kind_of: String, name_attribute: true attribute :source, kind_of: String attribute :options, kind_of: Hash attribute :dir_path, kind_of: String attribute :full_path, kind_of: String attribute :default_options, kind_of: Hash, default: {} attribute :current_option...
actions :create default_action :create attribute :name, kind_of: String, name_attribute: true attribute :source, kind_of: String attribute :options, kind_of: Hash attribute :dir_path, kind_of: String, default: lazy { |r| '/var/db/ports/' + r.name } attribute :full_path, kind_of: String, default: lazy { |r| r.dir_path...
Use lazy for the default values instead of the initializer
Use lazy for the default values instead of the initializer Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
Ruby
apache-2.0
opscode-cookbooks/freebsd,chef-cookbooks/freebsd
ruby
## Code Before: actions :create default_action :create attribute :name, kind_of: String, name_attribute: true attribute :source, kind_of: String attribute :options, kind_of: Hash attribute :dir_path, kind_of: String attribute :full_path, kind_of: String attribute :default_options, kind_of: Hash, default: {} attribute...
d3db522ed34d877353ef72a31021b1401e0a117d
cea/interfaces/dashboard/plots/static/css/map_layout.css
cea/interfaces/dashboard/plots/static/css/map_layout.css
.row.display-flex { display: flex; flex-wrap: wrap; } .row.display-flex > [class*='col-'] { display: flex; flex-direction: column; padding: 0px 5px; } @media (min-width: 1200px) { #map-container { min-width: 1000px; } } .plot-widget { min-width: 500px; } .plot-widget .x_panel { height: 100%; ...
.row.display-flex { display: flex; flex-wrap: wrap; } .row.display-flex > [class*='col-'] { display: flex; flex-direction: column; padding: 0px 5px; flex-grow: 1; } @media (min-width: 1200px) { #map-container { min-width: 1000px; } } .plot-widget { min-width: 500px; } .plot-widget .x_panel { ...
Allow plot widget to grow
Allow plot widget to grow
CSS
mit
architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst
css
## Code Before: .row.display-flex { display: flex; flex-wrap: wrap; } .row.display-flex > [class*='col-'] { display: flex; flex-direction: column; padding: 0px 5px; } @media (min-width: 1200px) { #map-container { min-width: 1000px; } } .plot-widget { min-width: 500px; } .plot-widget .x_panel { ...
912eb7950cc93d984d2c29149c29775de3a0e234
Editor/CMakeLists.txt
Editor/CMakeLists.txt
cmake_minimum_required(VERSION 3.10) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) find_package(Qt5Widgets) find_package(Qt5Network) find_package(Qt5Xml) add_subdirectory(platforms/freedesktop) declare_qticon_target() list(APPEND PLAT_SRCS mainicon_qt.cpp) add_executable(amuse-gui WI...
cmake_minimum_required(VERSION 3.10) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) find_package(Qt5Widgets) find_package(Qt5Network) find_package(Qt5Xml) if(WIN32) list(APPEND PLAT_SRCS platforms/win/amuse-gui.rc platforms/win/amuse-gui.manifest) elseif(APPLE) list(APPEND PLAT_SRC...
Add amuse-gui .rc in CMake
Add amuse-gui .rc in CMake
Text
mit
AxioDL/amuse,AxioDL/amuse,AxioDL/amuse
text
## Code Before: cmake_minimum_required(VERSION 3.10) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) find_package(Qt5Widgets) find_package(Qt5Network) find_package(Qt5Xml) add_subdirectory(platforms/freedesktop) declare_qticon_target() list(APPEND PLAT_SRCS mainicon_qt.cpp) add_executa...
8ba6415fe1cb55001ae589970f08612e4de7631c
kernel/common/codeloader19.rb
kernel/common/codeloader19.rb
module Rubinius class CodeLoader # Searches $LOAD_PATH for a file named +name+. Does not append any file # extension to +name+ while searching. Used by #load to resolve the name # to a full path to load. Also used by #require when the file extension is # provided. def search_load_path(name, loadi...
module Rubinius class CodeLoader # Searches $LOAD_PATH for a file named +name+. Does not append any file # extension to +name+ while searching. Used by #load to resolve the name # to a full path to load. Also used by #require when the file extension is # provided. def search_load_path(name, loadi...
Add back load code lost in require_relative commit.
Add back load code lost in require_relative commit.
Ruby
bsd-3-clause
dblock/rubinius,ngpestelos/rubinius,jemc/rubinius,heftig/rubinius,Azizou/rubinius,ngpestelos/rubinius,pH14/rubinius,Azizou/rubinius,travis-repos/rubinius,heftig/rubinius,dblock/rubinius,digitalextremist/rubinius,sferik/rubinius,ngpestelos/rubinius,travis-repos/rubinius,pH14/rubinius,heftig/rubinius,benlovell/rubinius,j...
ruby
## Code Before: module Rubinius class CodeLoader # Searches $LOAD_PATH for a file named +name+. Does not append any file # extension to +name+ while searching. Used by #load to resolve the name # to a full path to load. Also used by #require when the file extension is # provided. def search_load_...
bf39ed4ed9d58d1734f715fd08bb62ba65127254
NaPTAN-Rail/04-Model-05-iNterpret/run.sh
NaPTAN-Rail/04-Model-05-iNterpret/run.sh
echo "Type Count" > StopTypes.tsv < StopPoint.ndjson jq -c -r '.StopClassification.StopType' | ./suniq.sh >> StopTypes.tsv < StopPoint.ndjson jq -c '{AtcoCode} + (.Descriptor | {CommonName, Street, Indicator} ) + (.Place.Location.Translation | {lat: .Latitude, lon: .Longitude}) + (.Place | {node: .NptgLocalityRef}) +...
echo "Type Count" > StopTypes.tsv < StopPoint.ndjson jq -c -r '.StopClassification.StopType' | sort - | uniq -c | sort -rn | sed 's/^ *\([0-9][0-9]*\) \(.*\)$/\2\t\1/' >> StopTypes.tsv < StopPoint.ndjson jq -c '{AtcoCode} + (.Descriptor | {CommonName, Street, Indicator} ) + (.Place.Location.Translation | {lat: .Lati...
Update to remove reference to suniq.sh script
Update to remove reference to suniq.sh script
Shell
mit
anisotropi4/wren,anisotropi4/wren,anisotropi4/wren,anisotropi4/wren
shell
## Code Before: echo "Type Count" > StopTypes.tsv < StopPoint.ndjson jq -c -r '.StopClassification.StopType' | ./suniq.sh >> StopTypes.tsv < StopPoint.ndjson jq -c '{AtcoCode} + (.Descriptor | {CommonName, Street, Indicator} ) + (.Place.Location.Translation | {lat: .Latitude, lon: .Longitude}) + (.Place | {node: .Npt...
83365dc3fd1d21c43dabb43ffb8c2101a8335ac9
docs/getting_started/ssh_users.rst
docs/getting_started/ssh_users.rst
Adding SSH Users ================ If you want to add more users to the servers, update the ``inventory/groups_vars/all/users.yml`` file. Below is an example. Each public ssh key should be on a single line. .. warning:: All users added in this file will have root access via ``sudo``. .. code-block:: yaml --- use...
Adding SSH Users ================ If you want to add more users to the servers, create a file (e.g. ``users.yml``). Below is an example. Each public ssh key should be on a single line. The ``users.yml`` file will need to be passed to ``ansible-playbook`` with ``-e @users.yml``. .. warning:: All users added in this fi...
Update docs for adding SSH users
Update docs for adding SSH users
reStructuredText
apache-2.0
kindlyops/microservices-infrastructure,revpoint/microservices-infrastructure,eirslett/microservices-infrastructure,ilboud/microservices-infrastructure,mantl/mantl,chrislovecnm/microservices-infrastructure,phnmnl/mantl,huodon/microservices-infrastructure,z00223295/microservices-infrastructure,liangyali/microservices-inf...
restructuredtext
## Code Before: Adding SSH Users ================ If you want to add more users to the servers, update the ``inventory/groups_vars/all/users.yml`` file. Below is an example. Each public ssh key should be on a single line. .. warning:: All users added in this file will have root access via ``sudo``. .. code-block:: y...
5a1ffe1724805dc5be52d283e335e08e5770ffaf
examples/consumer-group.rb
examples/consumer-group.rb
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__)) require "kafka" logger = Logger.new(STDOUT) brokers = ENV.fetch("KAFKA_BROKERS", "localhost:9092").split(",") # Make sure to create this topic in your Kafka cluster or configure the # cluster to auto-create topics. topic = "text" kafka = Kafka.new( seed_...
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__)) require "kafka" logger = Logger.new(STDOUT) brokers = ENV.fetch("KAFKA_BROKERS", "localhost:9092").split(",") # Make sure to create this topic in your Kafka cluster or configure the # cluster to auto-create topics. topic = "text" kafka = Kafka.new( seed_...
Handle processing errors in the consumer example
Handle processing errors in the consumer example
Ruby
apache-2.0
zendesk/ruby-kafka,zendesk/ruby-kafka
ruby
## Code Before: $LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__)) require "kafka" logger = Logger.new(STDOUT) brokers = ENV.fetch("KAFKA_BROKERS", "localhost:9092").split(",") # Make sure to create this topic in your Kafka cluster or configure the # cluster to auto-create topics. topic = "text" kafka = Ka...
40d18da4f722a2b0749863be39ba92d4e439e4c4
.travis.yml
.travis.yml
dist: bionic language: - generic before_install: - docker-compose up -d - docker ps - docker images script: - CHTSH_URL=http://localhost:8002 bash tests/run-tests.sh
dist: bionic language: - generic before_install: - docker-compose up -d - docker ps - docker images script: - curl http://localhost:8002 - CHTSH_URL=http://localhost:8002 bash tests/run-tests.sh
Test server is up with `curl` before running tests
Test server is up with `curl` before running tests
YAML
mit
chubin/cheat.sh,chubin/cheat.sh,chubin/cheat.sh,chubin/cheat.sh
yaml
## Code Before: dist: bionic language: - generic before_install: - docker-compose up -d - docker ps - docker images script: - CHTSH_URL=http://localhost:8002 bash tests/run-tests.sh ## Instruction: Test server is up with `curl` before running tests ## Code After: dist: bionic language: - generic befo...
9bb1ec0b3d519e44ee6d83130bdca7c6a7388d62
appveyor.yml
appveyor.yml
version: 2.5.1.0-extended.{build} branches: only: - extended assembly_info: patch: true file: AssemblyInfo.* assembly_version: "2.5.1.{build}" assembly_file_version: "{version}" assembly_informational_version: "{version}" build: project: ElectronicObserver.sln before_build: -...
version: 2.5.1.0-extended.{build} branches: only: - extended assembly_info: patch: true file: AssemblyInfo.* assembly_version: "2.5.1.{build}" assembly_file_version: "{version}" assembly_informational_version: "{version}" build: project: ElectronicObserver.sln before_build: -...
Package license files with CI output
Package license files with CI output
YAML
mit
CAWAS/ElectronicObserverExtended,CNA-Bld/EOE-Sandbox
yaml
## Code Before: version: 2.5.1.0-extended.{build} branches: only: - extended assembly_info: patch: true file: AssemblyInfo.* assembly_version: "2.5.1.{build}" assembly_file_version: "{version}" assembly_informational_version: "{version}" build: project: ElectronicObserver.sln bef...
058809cb25c088ea22aad3b69156efc0b183fa13
app/assets/stylesheets/_ukhpi-header.scss
app/assets/stylesheets/_ukhpi-header.scss
/* Styles for UKHPI header component */ .c-hmlr-header-colours { color: $black; background-color: white; } #global-header { &.c-hmlr-header { @extend .c-hmlr-header-colours; a, nav { @extend .c-hmlr-header-colours; } } .header-wrapper { @extend .c-hmlr-header-colours; padding-bot...
/* Styles for UKHPI header component */ .c-hmlr-header-colours { color: $black; background-color: white; } #global-header { &.c-hmlr-header { @extend .c-hmlr-header-colours; a, nav { @extend .c-hmlr-header-colours; } } .header-wrapper { @extend .c-hmlr-header-colours; padding-bot...
Fix right-alignment of language selector
Fix right-alignment of language selector
SCSS
mit
epimorphics/ukhpi,epimorphics/ukhpi,epimorphics/ukhpi,epimorphics/ukhpi
scss
## Code Before: /* Styles for UKHPI header component */ .c-hmlr-header-colours { color: $black; background-color: white; } #global-header { &.c-hmlr-header { @extend .c-hmlr-header-colours; a, nav { @extend .c-hmlr-header-colours; } } .header-wrapper { @extend .c-hmlr-header-colours;...
85d13bf21dbbf1f4e196477bdcda85c8d7e55da1
app/assets/stylesheets/components/_footer_site_links.scss
app/assets/stylesheets/components/_footer_site_links.scss
// Internal links section of the site-wide footer. // // Styleguide Footer Site Links .footer-site-links { // height: $bl*33; padding: $bl*5 0 $bl*6 0; background-color: $color-footer-bg; li { font-family: MuseoSlab; font-weight: 700; } a { @extend %link-nav; } }
// Internal links section of the site-wide footer. // // Styleguide Footer Site Links .footer-site-links { padding: $bl*5 0 $bl*6 0; background-color: $color-footer-bg; li { font-family: MuseoSlab; font-weight: 700; } a { @extend %link-nav; } }
Clean up footer site links file.
Clean up footer site links file.
SCSS
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
scss
## Code Before: // Internal links section of the site-wide footer. // // Styleguide Footer Site Links .footer-site-links { // height: $bl*33; padding: $bl*5 0 $bl*6 0; background-color: $color-footer-bg; li { font-family: MuseoSlab; font-weight: 700; } a { @extend %link-nav; } } ## Instructi...
8fd27f72135c90b45fb1aca0e989cf04b17a8416
app/assets/sass/global/_color-schemes.scss
app/assets/sass/global/_color-schemes.scss
//----------------------------------*\ // COLOR SCHEMES //----------------------------------*/ // Light Scheme //----------------------------------*/ .color-scheme--light { // Light scheme is not ready for now. } // Dark Scheme //----------------------------------*/ .color-scheme--dark { %colorTxtCurrent ...
//----------------------------------*\ // COLOR SCHEMES //----------------------------------*/ // Light Scheme //----------------------------------*/ .color-scheme--light { // Light scheme is not ready for now. } // Dark Scheme //----------------------------------*/ .color-scheme--dark { %colorTxtCurrent ...
Add transition + color var name.
Add transition + color var name.
SCSS
agpl-3.0
openstack/bansho,stackforge/bansho,openstack/bansho,stackforge/bansho,Freddrickk/adagios-frontend,stackforge/bansho,openstack/bansho,Freddrickk/adagios-frontend
scss
## Code Before: //----------------------------------*\ // COLOR SCHEMES //----------------------------------*/ // Light Scheme //----------------------------------*/ .color-scheme--light { // Light scheme is not ready for now. } // Dark Scheme //----------------------------------*/ .color-scheme--dark { %...
b57f78155cdc6ceaae9d82ceb1452636b41c0171
client/app/components/settings-screen.html
client/app/components/settings-screen.html
<page-header title="Settings"> </page-header> <div class="container"> <div class="container bg-white p-5"> <ul class="tab-nav"> <li ng-class="{'active': dsPage }" ng-if="showDsLink"><a href="data_sources">Data Sources</a></li> <li ng-class="{'active': usersPage }" ng-if="showUsersLink"><a href="users...
<div class="container"> <page-header title="Settings"> </page-header> <div class="container"> <div class="container bg-white p-5"> <ul class="tab-nav"> <li ng-class="{'active': dsPage }" ng-if="showDsLink"><a href="data_sources">Data Sources</a></li> <li ng-class="{'active': usersPage }...
Add container for Settings to resolve vertical scroll issue
Add container for Settings to resolve vertical scroll issue
HTML
bsd-2-clause
getredash/redash,hudl/redash,moritz9/redash,44px/redash,crowdworks/redash,getredash/redash,alexanderlz/redash,moritz9/redash,moritz9/redash,alexanderlz/redash,chriszs/redash,crowdworks/redash,44px/redash,chriszs/redash,crowdworks/redash,denisov-vlad/redash,moritz9/redash,crowdworks/redash,44px/redash,denisov-vlad/redas...
html
## Code Before: <page-header title="Settings"> </page-header> <div class="container"> <div class="container bg-white p-5"> <ul class="tab-nav"> <li ng-class="{'active': dsPage }" ng-if="showDsLink"><a href="data_sources">Data Sources</a></li> <li ng-class="{'active': usersPage }" ng-if="showUsersLink...