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
b9c5e1f8d4d50da6c05b26482a118878b6c0080b
sonar-project.properties
sonar-project.properties
sonar.organization=evilz-github sonar.projectKey=evilz_vscode-reveal # relative paths to source directories. More details and properties are described # in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ sonar.sources=./src
sonar.organization=evilz-github sonar.projectKey=evilz_vscode-reveal # relative paths to source directories. More details and properties are described # in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ sonar.sources=./src sonar.testExecutionReportPaths=test-report.xml
Add test cover for sonar
Add test cover for sonar
INI
mit
evilz/vscode-reveal,evilz/vscode-reveal,evilz/vscode-reveal
ini
## Code Before: sonar.organization=evilz-github sonar.projectKey=evilz_vscode-reveal # relative paths to source directories. More details and properties are described # in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ sonar.sources=./src ## Instruction: Add test cover for sonar ## C...
8e5af5327fa39ce2a345a58ed87340c52b1378c1
src/Bjoerne/MyAlbumsBundle/Resources/config/routing.yml
src/Bjoerne/MyAlbumsBundle/Resources/config/routing.yml
bjoerne_my_albums_homepage: pattern: /hello/{name} defaults: { _controller: BjoerneMyAlbumsBundle:Default:index }
bjoerne_my_albums_homepage: pattern: /hello/{name} defaults: { _controller: BjoerneMyAlbumsBundle:Default:index } my_albums_controller: resource: "@BjoerneMyAlbumsBundle/Controller" type: annotation
Add routes for BjoerneMyAlbumsBundle/Controller annotations
Add routes for BjoerneMyAlbumsBundle/Controller annotations
YAML
mit
bjoerne2/symfony-myalbums,bjoerne2/symfony-myalbums
yaml
## Code Before: bjoerne_my_albums_homepage: pattern: /hello/{name} defaults: { _controller: BjoerneMyAlbumsBundle:Default:index } ## Instruction: Add routes for BjoerneMyAlbumsBundle/Controller annotations ## Code After: bjoerne_my_albums_homepage: pattern: /hello/{name} defaults: { _controller: Bjo...
95356d7f1bba9cb43f2c1e6bde35f8fa1599312c
README.md
README.md
[![Build Status](https://secure.travis-ci.org/markdalgleish/generator-bespoke.png?branch=master)](https://travis-ci.org/markdalgleish/generator-bespoke) A generator for Yeoman. This is a work in progress. ## License [MIT License](http://markdalgleish.mit-license.org)
[![Build Status](https://secure.travis-ci.org/markdalgleish/generator-bespoke.png?branch=master)](https://travis-ci.org/markdalgleish/generator-bespoke) A generator for Yeoman. This is a work in progress. ## FAQ ### Q: I'm getting `EMFILE, too many open files` EMFILE means you've reached the OS limit of concurrentl...
Add EMFILE solution to FAQ
Add EMFILE solution to FAQ
Markdown
mit
markdalgleish/generator-bespoke,markdalgleish/generator-bespoke,bespokejs/generator-bespoke,mikemaccana/generator-bespoke,bespokejs/generator-bespoke,bguiz/generator-bespoke,pimterry/generator-bespoke,bespokejs/generator-bespoke,markdalgleish/generator-bespoke
markdown
## Code Before: [![Build Status](https://secure.travis-ci.org/markdalgleish/generator-bespoke.png?branch=master)](https://travis-ci.org/markdalgleish/generator-bespoke) A generator for Yeoman. This is a work in progress. ## License [MIT License](http://markdalgleish.mit-license.org) ## Instruction: Add EMFILE soluti...
d708f86f01be4c9a8843283a0d4ea279be6feeaa
Zara4/API/Communication/Config.php
Zara4/API/Communication/Config.php
<?php namespace Zara4\API\Communication; class Config { const VERSION = '1.1.0'; const USER_AGENT = 'Zara 4 PHP-SDK, Version-1.1.0'; const PRODUCTION_API_ENDPOINT = "https://api.zara4.com"; const DEVELOPMENT_API_ENDPOINT = "http://api.zara4.dev"; private static $BASE_URL = self::PRODUCTION_API_ENDPOIN...
<?php namespace Zara4\API\Communication; class Config { const VERSION = '1.2.3'; const USER_AGENT = 'Zara 4 PHP-SDK, Version-1.2.3'; const PRODUCTION_API_ENDPOINT = "https://api.zara4.com"; const DEVELOPMENT_API_ENDPOINT = "http://api.zara4.dev"; public static $BASE_URL = self::PRODUCTION_API_ENDPOINT...
Update communication configuration class to allow the base url to be set for the purpose of testing
Update communication configuration class to allow the base url to be set for the purpose of testing
PHP
mit
zara-4/php-sdk
php
## Code Before: <?php namespace Zara4\API\Communication; class Config { const VERSION = '1.1.0'; const USER_AGENT = 'Zara 4 PHP-SDK, Version-1.1.0'; const PRODUCTION_API_ENDPOINT = "https://api.zara4.com"; const DEVELOPMENT_API_ENDPOINT = "http://api.zara4.dev"; private static $BASE_URL = self::PRODUC...
9132ed970a4425ff8d0dca691de90136c21379c7
packages/strapi-plugin-content-manager/services/utils/configuration/settings.js
packages/strapi-plugin-content-manager/services/utils/configuration/settings.js
'use strict'; const _ = require('lodash'); const { isSortable } = require('./attributes'); const getDefaultMainField = schema => { if (schema.modelType == 'group') { // find first group attribute that is sortable return ( Object.keys(schema.attributes).find(key => isSortable(schema, key)) || 'id...
'use strict'; const _ = require('lodash'); const { isSortable } = require('./attributes'); const getDefaultMainField = schema => Object.keys(schema.attributes).find( key => schema.attributes[key].type === 'string' ) || 'id'; /** * Retunrs a configuration default settings */ async function createDefaultSett...
Set content type mainField to be a string if possible else id
Set content type mainField to be a string if possible else id
JavaScript
mit
wistityhq/strapi,wistityhq/strapi
javascript
## Code Before: 'use strict'; const _ = require('lodash'); const { isSortable } = require('./attributes'); const getDefaultMainField = schema => { if (schema.modelType == 'group') { // find first group attribute that is sortable return ( Object.keys(schema.attributes).find(key => isSortable(schema, ke...
a894c88bb0fdff33b1ab327bea15a12ea90368ef
scripts/steps/06_cleanup.sh
scripts/steps/06_cleanup.sh
if [ "$FUNCTIONS_LOADED" != 'TRUE' ]; then DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${DIR}/../functions.sh" fi cleanup_brew() { brew cleanup --force rm -rf "$(brew --cache)" } final_message() { clear echo "All the automated scripts have now finished." echo "Dotfiles ...
if [ "$FUNCTIONS_LOADED" != 'TRUE' ]; then DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${DIR}/../functions.sh" fi cleanup_brew() { brew cleanup --force rm -rf "$(brew --cache)" } final_message() { clear echo "All the automated scripts have now finished." echo "Dotfiles ...
Kill caffeinate at the end of script execution
Kill caffeinate at the end of script execution Otherwise it won't go sleep.
Shell
unlicense
gabrielalmeida/dotfiles
shell
## Code Before: if [ "$FUNCTIONS_LOADED" != 'TRUE' ]; then DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${DIR}/../functions.sh" fi cleanup_brew() { brew cleanup --force rm -rf "$(brew --cache)" } final_message() { clear echo "All the automated scripts have now finished." ...
7f4e327b4f0d5eed6c60018245c121748896d60c
package.json
package.json
{ "name": "plist", "description": "Mac OS X Plist parser for NodeJS. Convert a Plist file or string into a native JS object", "version": "0.2.0", "author": "Nathan Rajlich <nathan@tootallnate.net>", "contributors": [ "Hans Huebner <hans.huebner@gmail.com>" ], "repository": { "type": "git", "url": "g...
{ "name": "plist", "description": "Mac OS X Plist parser for NodeJS. Convert a Plist file or string into a native JS object", "version": "0.2.0", "author": "Nathan Rajlich <nathan@tootallnate.net>", "contributors": [ "Hans Huebner <hans.huebner@gmail.com>" ], "repository": { "type": "git", "url": "g...
Add an 'npm test' command
Add an 'npm test' command
JSON
mit
vladimir-kotikov/plist.js,Jonahss/plist.js,TooTallNate/plist.js,nathansobo/node-plist
json
## Code Before: { "name": "plist", "description": "Mac OS X Plist parser for NodeJS. Convert a Plist file or string into a native JS object", "version": "0.2.0", "author": "Nathan Rajlich <nathan@tootallnate.net>", "contributors": [ "Hans Huebner <hans.huebner@gmail.com>" ], "repository": { "type": "git...
9b3ca310a0c1192635e5e101eb70c8f2332d0b4e
project.clj
project.clj
(defproject tile-game "1.0.0-SNAPSHOT" :description "A Tile Puzzle Game and Solver" :min-lein-version "2.0.0" :main tile-game.core :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.494"] [reagent "0.6.1"]] :plugins [[lein-figwheel "0.5.9"] ...
(defproject tile-game "1.0.0-SNAPSHOT" :description "A Tile Puzzle Game and Solver" :min-lein-version "2.0.0" :main tile-game.core :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.494"] [reagent "0.6.1"]] :plugins [[lein-figwheel "0.5.9"] ...
Reformat cljsbuild & fighwheel config and specify more
Reformat cljsbuild & fighwheel config and specify more
Clojure
mit
dgtized/tile-game,dgtized/tile-game
clojure
## Code Before: (defproject tile-game "1.0.0-SNAPSHOT" :description "A Tile Puzzle Game and Solver" :min-lein-version "2.0.0" :main tile-game.core :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.494"] [reagent "0.6.1"]] :plugins [[lein-figwheel "0...
1130ea1e6d5542578fe7268cef40954677c8557b
infra/roles/osm/tasks/main.yml
infra/roles/osm/tasks/main.yml
--- - name: Create path for maps file: path=/var/osm/ state=directory owner=root group=root mode=0644 tags: - osm - name: Download OSM map from Geofabrik sudo: yes shell: wget http://download.geofabrik.de/australia-oceania/new-zealand-latest.osm.pbf args: chdir: /var/osm/ creates: /var/osm/new-ze...
--- - name: Create path for maps file: path=/var/osm/ state=directory owner=root group=root mode=0644 tags: - osm - name: Download OSM map from Geofabrik sudo: yes shell: wget http://download.geofabrik.de/australia-oceania/new-zealand-latest.osm.pbf args: chdir: /var/osm/ creates: /var/osm/new-ze...
Remove touch for imposm_coords.cache since it's created by imposm
Remove touch for imposm_coords.cache since it's created by imposm
YAML
mit
kinow/nz-osm-server,kinow/nz-osm-server,kinow/nz-osm-server,kinow/nz-osm-server
yaml
## Code Before: --- - name: Create path for maps file: path=/var/osm/ state=directory owner=root group=root mode=0644 tags: - osm - name: Download OSM map from Geofabrik sudo: yes shell: wget http://download.geofabrik.de/australia-oceania/new-zealand-latest.osm.pbf args: chdir: /var/osm/ creates:...
9c3c7c971dbe3e66c57524f16811b4a2a2577236
src/components/CartItems.jsx
src/components/CartItems.jsx
var React = require('react'); var ItemName = require('./ItemName.jsx'); var RemoveButton = require('./RemoveButton.jsx'); var CartItems = React.createClass({ render: function () { var _this = this; var itemNames = this.props.items.map(function (item, index) { return ( <...
var React = require('react'); var ItemName = require('./ItemName.jsx'); var RemoveButton = require('./RemoveButton.jsx'); var CartItems = React.createClass({ render: function () { var itemNames = this.props.items.map((item, index) => { return ( <li key={index} className="item">...
Use ES6 arrow functions to avoid 'this' binding
Use ES6 arrow functions to avoid 'this' binding
JSX
mit
rahulbaphana/Reactive-Cart,rahulbaphana/Reactive-Cart
jsx
## Code Before: var React = require('react'); var ItemName = require('./ItemName.jsx'); var RemoveButton = require('./RemoveButton.jsx'); var CartItems = React.createClass({ render: function () { var _this = this; var itemNames = this.props.items.map(function (item, index) { return ( ...
e0f837ca87aac19f1cd43f274c18bae11a3f4dae
pages/_app.tsx
pages/_app.tsx
import { Fragment } from "react" import App, { Container } from "next/app" import Head from "next/head" import "normalize.css/normalize.css" // A custom app to support importing CSS files globally class MyApp extends App { public render(): JSX.Element { const { Component, pageProps } = this.props return ( ...
import { Fragment } from "react" import App, { Container } from "next/app" import Head from "next/head" import "normalize.css/normalize.css" // A custom app to support importing CSS files globally class MyApp extends App { public render(): JSX.Element { const { Component, pageProps } = this.props return ( ...
Increase width of content on smaller screens
Increase width of content on smaller screens
TypeScript
mit
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
typescript
## Code Before: import { Fragment } from "react" import App, { Container } from "next/app" import Head from "next/head" import "normalize.css/normalize.css" // A custom app to support importing CSS files globally class MyApp extends App { public render(): JSX.Element { const { Component, pageProps } = this.props...
fb21faaec025a0a6ca2d98c8b2381902f3b1444a
pybug/align/lucaskanade/__init__.py
pybug/align/lucaskanade/__init__.py
import appearance import image from residual import (LSIntensity, ECC, GradientImages, GradientCorrelation)
import appearance import image from residual import (LSIntensity, ECC, GaborFourier, GradientImages, GradientCorrelation)
Add GaborFourier to default import
Add GaborFourier to default import
Python
bsd-3-clause
menpo/menpo,yuxiang-zhou/menpo,grigorisg9gr/menpo,mozata/menpo,mozata/menpo,mozata/menpo,mozata/menpo,grigorisg9gr/menpo,menpo/menpo,menpo/menpo,jabooth/menpo-archive,jabooth/menpo-archive,jabooth/menpo-archive,yuxiang-zhou/menpo,grigorisg9gr/menpo,patricksnape/menpo,yuxiang-zhou/menpo,jabooth/menpo-archive,patricksnap...
python
## Code Before: import appearance import image from residual import (LSIntensity, ECC, GradientImages, GradientCorrelation) ## Instruction: Add GaborFourier to default import ## Code After: import appearance import image from residual import (LSInt...
4c5483125fcd12e111cffe1a1cadf67b8777ff7e
src/nbsp-positions.js
src/nbsp-positions.js
'use strict'; var execall = require('regexp.execall'); module.exports = function (text) { return execall(/ \w{1,2} [^ ]/g, text).map(function (match) { return match.index + match[0].length - 2; }); };
'use strict'; var execall = require('regexp.execall'); module.exports = function (text) { return execall(/(^|\s\W*)(\w{1,2})(?= [^ ])/g, text) .filter(function (match) { return !/\d/.test(match[1]); }) .map(function (match) { return match.index + match[0].length; }); };
Improve regular expression's overlapping and details
Improve regular expression's overlapping and details
JavaScript
mit
eush77/nbsp-advisor
javascript
## Code Before: 'use strict'; var execall = require('regexp.execall'); module.exports = function (text) { return execall(/ \w{1,2} [^ ]/g, text).map(function (match) { return match.index + match[0].length - 2; }); }; ## Instruction: Improve regular expression's overlapping and details ## Code After: 'use s...
18dbcfa13ba598b97b3396f90bef0833954eb5bb
src/Rectangle.js
src/Rectangle.js
import Shape from 'kittik-shape-basic'; /** * Implements rectangle shape with text support. * * @since 1.0.0 * @version 1.0.0 */ export default class Rectangle extends Shape { render(cursor) { let text = this.getText(); let width = this.getWidth(); let height = this.getHeight(); let x1 = this.ge...
import Shape from 'kittik-shape-basic'; /** * Implements rectangle shape with text support. * * @since 1.0.0 * @version 1.0.0 */ export default class Rectangle extends Shape { render(cursor) { let text = this.getText(); let width = this.getWidth(); let height = this.getHeight(); let x1 = this.ge...
Simplify logic where calculates coordinates
fix(shape): Simplify logic where calculates coordinates
JavaScript
mit
kittikjs/shape-rectangle
javascript
## Code Before: import Shape from 'kittik-shape-basic'; /** * Implements rectangle shape with text support. * * @since 1.0.0 * @version 1.0.0 */ export default class Rectangle extends Shape { render(cursor) { let text = this.getText(); let width = this.getWidth(); let height = this.getHeight(); ...
e8f5cc7745c94fc15e80a273705792d4381ace31
CONTRIBUTING.md
CONTRIBUTING.md
We’d love to accept your patches and contributions to this project. Please review the following guidelines you'll need to follow in order to make a contribution. ## Contributor License Agreement All contributors to this project must have a signed Contributor License Agreement (**"CLA"**) on file with us. The CLA gra...
:+1::tada: We’d love to accept your patches and contributions to this project. :+1::tada: Please review the following guidelines you'll need to follow in order to make a contribution. ## Contributor License Agreement All contributors to this project must have a signed Contributor License Agreement (**"CLA"**) on fi...
Add code style expectations for the contributions
Add code style expectations for the contributions
Markdown
apache-2.0
reactor/reactor-netty,reactor/reactor-netty
markdown
## Code Before: We’d love to accept your patches and contributions to this project. Please review the following guidelines you'll need to follow in order to make a contribution. ## Contributor License Agreement All contributors to this project must have a signed Contributor License Agreement (**"CLA"**) on file with...
fc15117588cb1a9d6022e7ffd068e1f6b2b7b38d
lib/happy-helpers/templates.rb
lib/happy-helpers/templates.rb
require 'tilt' module HappyHelpers module Templates def self.render(name, scope = nil, variables = {}, &block) load("views/%s" % name).render(scope, variables, &block) end def self.load(name) if false # Freddie.env.production? @templates ||= {} @templates[name] ||= Tilt.new(n...
require 'tilt' module HappyHelpers module Templates def self.render(name, scope = nil, variables = {}, &block) load(name).render(scope, variables, &block) end def self.load(name) name = File.expand_path(name) if false # Freddie.env.production? @templates ||= {} @templa...
Remove hardcoded "views/" view path.
Remove hardcoded "views/" view path.
Ruby
mit
hmans/happy-helpers
ruby
## Code Before: require 'tilt' module HappyHelpers module Templates def self.render(name, scope = nil, variables = {}, &block) load("views/%s" % name).render(scope, variables, &block) end def self.load(name) if false # Freddie.env.production? @templates ||= {} @templates[name...
c8e99fa4baba7779368ffcbb95a83cd76493a462
_includes/masthead.html
_includes/masthead.html
{% include base_path %} <div class="masthead"> <div class="masthead__inner-wrap"> <img src="{{ base_path }}/images/moosefood-banner-1024x188.jpg"> <div class="masthead__menu"> <nav id="site-nav" class="greedy-nav"> <button><div class="navicon"></div></button> <ul class="visible-links"> ...
{% include base_path %} <div class="masthead"> <div class="masthead__inner-wrap"> <a href="{{ base_path }}/"><img src="{{ base_path }}/images/moosefood-banner-1024x188.jpg"></a> <div class="masthead__menu"> <nav id="site-nav" class="greedy-nav"> <button><div class="navicon"></div></button> ...
Add link to homepage surrounding banner image
Add link to homepage surrounding banner image
HTML
mit
jengalas/thegourmetmoose,jengalas/thegourmetmoose,jengalas/thegourmetmoose
html
## Code Before: {% include base_path %} <div class="masthead"> <div class="masthead__inner-wrap"> <img src="{{ base_path }}/images/moosefood-banner-1024x188.jpg"> <div class="masthead__menu"> <nav id="site-nav" class="greedy-nav"> <button><div class="navicon"></div></button> <ul class="...
4c927b055f5ea0f1095ed5a6eb68253f0c004733
src/Conversation/Conversation.js
src/Conversation/Conversation.js
import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; } componentDidMount...
import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; } componentDidMount...
Stop the interval when all messages have been displadyed
Stop the interval when all messages have been displadyed
JavaScript
mit
sevenleaps/chat-template,sevenleaps/chat-template
javascript
## Code Before: import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; } c...
df4b07c6525a0c40eba4e0043af4e201d08e88e4
src/shogun2-core/shogun2-service/src/main/java/de/terrestris/shogun2/service/AbstractCrudService.java
src/shogun2-core/shogun2-service/src/main/java/de/terrestris/shogun2/service/AbstractCrudService.java
package de.terrestris.shogun2.service; import java.util.List; import org.springframework.transaction.annotation.Transactional; import de.terrestris.shogun2.model.PersistentObject; /** * This abstract service class provides basic CRUD functionality. * * @author Nils Bühner * @see AbstractDaoService * */ publ...
package de.terrestris.shogun2.service; import java.util.List; import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.transaction.annotation.Transactiona...
Add basic security annotations to the CRUD service
Add basic security annotations to the CRUD service
Java
apache-2.0
annarieger/shogun2,annarieger/shogun2,buehner/shogun2,marcjansen/shogun2,terrestris/shogun2,ahennr/shogun2,dnlkoch/shogun2,annarieger/shogun2,buehner/shogun2,terrestris/shogun2,marcjansen/shogun2,dnlkoch/shogun2,ahennr/shogun2,terrestris/shogun2,ahennr/shogun2,marcjansen/shogun2,dnlkoch/shogun2,buehner/shogun2
java
## Code Before: package de.terrestris.shogun2.service; import java.util.List; import org.springframework.transaction.annotation.Transactional; import de.terrestris.shogun2.model.PersistentObject; /** * This abstract service class provides basic CRUD functionality. * * @author Nils Bühner * @see AbstractDaoServ...
8d0243a52d23037045d310beb94e94bd4e25e152
bosh_cli/lib/cli/file_with_progress_bar.rb
bosh_cli/lib/cli/file_with_progress_bar.rb
module Bosh module Cli class FileWithProgressBar < ::File def progress_bar return @progress_bar if @progress_bar out = Bosh::Cli::Config.output || StringIO.new @progress_bar = ProgressBar.new(file_name, size, out) @progress_bar.file_transfer_mode @progress_bar ...
module Bosh module Cli class FileWithProgressBar < ::File def progress_bar return @progress_bar if @progress_bar out = Bosh::Cli::Config.output || StringIO.new @progress_bar = ProgressBar.new(file_name, size, out) @progress_bar.file_transfer_mode @progress_bar ...
Make sure the progress bar goes to 100%
Make sure the progress bar goes to 100% No one likes it when an operation ends and the progress bar never went all the way to 100%. @zachgersh was showing me some concourseci output and the progress bars always ended at 96%. Rather than sort out exactly why the chunks never match up exactly, just set the progress bar ...
Ruby
apache-2.0
barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh
ruby
## Code Before: module Bosh module Cli class FileWithProgressBar < ::File def progress_bar return @progress_bar if @progress_bar out = Bosh::Cli::Config.output || StringIO.new @progress_bar = ProgressBar.new(file_name, size, out) @progress_bar.file_transfer_mode @pro...
7584aafb4732deb0428e07376719ab4140c0cd84
tests/isolate/isolate2_negative_test.dart
tests/isolate/isolate2_negative_test.dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Dart test program for testing that exceptions in other isolates bring down // the program. #library...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Dart test program for testing that exceptions in other isolates bring down // the program. #library...
Fix negative test by not complicating it by using the unit test framework.
Fix negative test by not complicating it by using the unit test framework. R=kasperl@google.com BUG= Review URL: https://chromiumcodereview.appspot.com//10828145 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10215 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lan...
dart
## Code Before: // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Dart test program for testing that exceptions in other isolates bring down // the pr...
0f999232b847b3f4de0d61700303becf87197be5
cmake_has_regex_test.cpp
cmake_has_regex_test.cpp
int main() { std::regex r(R"(\s*(SIGNAL|SLOT)\s*\(\s*(.+)\s*\(.*)"); return 0; }
/* This file is part of the clang-lazy static checker. Copyright (C) 2015 Sergio Martins <smartins@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License...
Add license to this test file so license checkers don't complain
Add license to this test file so license checkers don't complain
C++
lgpl-2.1
nyalldawson/clazy,nyalldawson/clazy,nyalldawson/clazy,nyalldawson/clazy
c++
## Code Before: int main() { std::regex r(R"(\s*(SIGNAL|SLOT)\s*\(\s*(.+)\s*\(.*)"); return 0; } ## Instruction: Add license to this test file so license checkers don't complain ## Code After: /* This file is part of the clang-lazy static checker. Copyright (C) 2015 Sergio Martins <smartins@kde.org> ...
f8a5aa4e2f2d360634b5902882ad8173b57de314
.travis.yml
.travis.yml
language: python python: - "2.7" env: - NUMPY_VERSION=1.8 - NUMPY_VERSION=1.7 before_install: - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # Update conda itself - cond...
language: python python: - "2.7" env: - NUMPY_VERSION=1.8 - NUMPY_VERSION=1.8 USE_CYTHON=True - NUMPY_VERSION=1.7 before_install: - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/anaconda/bin:...
Add another build that regenerates '.c' files from '.pyx'.
TST: Add another build that regenerates '.c' files from '.pyx'.
YAML
bsd-3-clause
jdrudolph/scikit-bio,colinbrislawn/scikit-bio,anderspitman/scikit-bio,jairideout/scikit-bio,wdwvt1/scikit-bio,jensreeder/scikit-bio,gregcaporaso/scikit-bio,xguse/scikit-bio,johnchase/scikit-bio,jensreeder/scikit-bio,colinbrislawn/scikit-bio,johnchase/scikit-bio,corburn/scikit-bio,jairideout/scikit-bio,jdrudolph/scikit-...
yaml
## Code Before: language: python python: - "2.7" env: - NUMPY_VERSION=1.8 - NUMPY_VERSION=1.7 before_install: - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # Update conda...
1bd2883368b0c3d51a1e0b46c3e3da86d8c9295d
recipes/r-dbchip/meta.yaml
recipes/r-dbchip/meta.yaml
package: name: r-dbchip version: "1.1.6" source: fn: DBChIP_1.1.6.tar.gz url: http://pages.cs.wisc.edu/~kliang/DBChIP/DBChIP_1.1.6.tar.gz md5: f4b22bb2051ad6b2d33d4687754e8cee build: number: 0 # This is required to make R link correctly on Linux. rpaths: - lib/R/lib/ - lib/ requirements: b...
package: name: r-dbchip version: "1.1.6" source: fn: DBChIP_1.1.6.tar.gz url: http://pages.cs.wisc.edu/~kliang/DBChIP/DBChIP_1.1.6.tar.gz md5: f4b22bb2051ad6b2d33d4687754e8cee build: number: 1 # This is required to make R link correctly on Linux. rpaths: - lib/R/lib/ - lib/ requirements: b...
Add explicit build/run r requirement
Add explicit build/run r requirement
YAML
mit
acaprez/recipes,ivirshup/bioconda-recipes,jasper1918/bioconda-recipes,daler/bioconda-recipes,jfallmann/bioconda-recipes,gvlproject/bioconda-recipes,rob-p/bioconda-recipes,JenCabral/bioconda-recipes,joachimwolff/bioconda-recipes,phac-nml/bioconda-recipes,JenCabral/bioconda-recipes,saketkc/bioconda-recipes,ivirshup/bioco...
yaml
## Code Before: package: name: r-dbchip version: "1.1.6" source: fn: DBChIP_1.1.6.tar.gz url: http://pages.cs.wisc.edu/~kliang/DBChIP/DBChIP_1.1.6.tar.gz md5: f4b22bb2051ad6b2d33d4687754e8cee build: number: 0 # This is required to make R link correctly on Linux. rpaths: - lib/R/lib/ - lib/ r...
56a23eec7152ea6772923e29288dd7843e93ab4a
core/app/assets/stylesheets/facts/discussion2.css.less
core/app/assets/stylesheets/facts/discussion2.css.less
@discussion-width: 810px; .discussion2 { width: 810px; margin: 90px auto 0; z-index: 0; position: relative; }
@discussion-width: 810px; .discussion2 { width: 810px; margin: 0 auto; padding: 90px 0 0; z-index: 0; position: relative; }
Use padding instead of margin, to make sure the page stays 100% height
Use padding instead of margin, to make sure the page stays 100% height
Less
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
less
## Code Before: @discussion-width: 810px; .discussion2 { width: 810px; margin: 90px auto 0; z-index: 0; position: relative; } ## Instruction: Use padding instead of margin, to make sure the page stays 100% height ## Code After: @discussion-width: 810px; .discussion2 { width: 810px; margin: 0 auto; pad...
4cf25f82046a4c64d2316d55ebf09823aa6925f8
templates/index.html
templates/index.html
<html> <head> <script src="/static/js/index.js"></script> <title>Play Server</title> </head> <body> <div id="track-info"> <span id="song-name"></span> <span id="artist-name"></span> <span id="album-name"></span> </div> <div id="controls"> <button id="previous">Previous</button> <button id="p...
<html> <head> <script src="/static/js/index.js"></script> <title>Play Server</title> </head> <body> <div id="track-info"> <div id="track-line-1"> <span id="song-name"></span> </div> <div id= "track-line-2"> <span id="artist-name"></span> <span id="album-name"></span> </div> </div> <...
Add container divs in preperating for styling
Add container divs in preperating for styling
HTML
mit
ollien/playserver,ollien/playserver,ollien/playserver
html
## Code Before: <html> <head> <script src="/static/js/index.js"></script> <title>Play Server</title> </head> <body> <div id="track-info"> <span id="song-name"></span> <span id="artist-name"></span> <span id="album-name"></span> </div> <div id="controls"> <button id="previous">Previous</button> ...
e883e9f348f9137c79edc6c2cd7ac2a95998e30c
app/views/devise/sessions/new.html.haml
app/views/devise/sessions/new.html.haml
= render 'users/demo' if Rails.env.demo? = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| = f.input :email, :input_html => {'data-autofocus' => true} = f.input :password, :hint => false - if devise_mapping.rememberable? = f.input :remember_me, :as => :boolean ....
= boot_page_title t('devise.sign_in') = render 'users/demo' if Rails.env.demo? = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| = f.input :email, :input_html => {'data-autofocus' => true} = f.input :password, :hint => false - if devise_mapping.rememberable? = f.i...
Add page title to login form.
Add page title to login form.
Haml
agpl-3.0
gaapt/bookyt,xuewenfei/bookyt,huerlisi/bookyt,wtag/bookyt,huerlisi/bookyt,hauledev/bookyt,hauledev/bookyt,silvermind/bookyt,gaapt/bookyt,huerlisi/bookyt,gaapt/bookyt,gaapt/bookyt,wtag/bookyt,hauledev/bookyt,hauledev/bookyt,silvermind/bookyt,xuewenfei/bookyt,xuewenfei/bookyt,silvermind/bookyt,wtag/bookyt,silvermind/book...
haml
## Code Before: = render 'users/demo' if Rails.env.demo? = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| = f.input :email, :input_html => {'data-autofocus' => true} = f.input :password, :hint => false - if devise_mapping.rememberable? = f.input :remember_me, :as ...
4c404bad9fb071b2d72e7051601394cf750961cb
lib/ui/src/components/sidebar/Heading.tsx
lib/ui/src/components/sidebar/Heading.tsx
import React, { FunctionComponent, ComponentProps } from 'react'; import { styled } from '@storybook/theming'; import { Brand } from './Brand'; import { SidebarMenu, MenuList } from './Menu'; export interface HeadingProps { menuHighlighted?: boolean; menu: MenuList; } const BrandArea = styled.div(({ theme }) => ...
import React, { FunctionComponent, ComponentProps } from 'react'; import { styled } from '@storybook/theming'; import { Brand } from './Brand'; import { SidebarMenu, MenuList } from './Menu'; export interface HeadingProps { menuHighlighted?: boolean; menu: MenuList; } const BrandArea = styled.div(({ theme }) => ...
Fix display of sidebar logo
UI: Fix display of sidebar logo
TypeScript
mit
kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
typescript
## Code Before: import React, { FunctionComponent, ComponentProps } from 'react'; import { styled } from '@storybook/theming'; import { Brand } from './Brand'; import { SidebarMenu, MenuList } from './Menu'; export interface HeadingProps { menuHighlighted?: boolean; menu: MenuList; } const BrandArea = styled.div...
b9146bf9079e48dc6b71cdb9854a1797ba4a4a65
CONTRIBUTING.md
CONTRIBUTING.md
Please include the following information to help us reproduce and fix: * What you did * What you expected to happen * What actually happened * Browser and version * Example code that reproduces the problem (if possible) * *(l33t mode)* A failing test ## Making contributions Want to be listed as a *Contributor*? Make ...
Please include the following information to help us reproduce and fix: * What you did * What you expected to happen * What actually happened * Browser and version * Example code that reproduces the problem (if possible) * *(l33t mode)* A failing test ## Making contributions Want to be listed as a *Contributor*? Make ...
Update testing section of Contributing guide.
Update testing section of Contributing guide.
Markdown
mit
stacktracejs/stacktrace.js,auchenberg/stacktrace.js,qiangyee/stacktrace.js,talves/stacktrace.js,oliversalzburg/stacktrace.js
markdown
## Code Before: Please include the following information to help us reproduce and fix: * What you did * What you expected to happen * What actually happened * Browser and version * Example code that reproduces the problem (if possible) * *(l33t mode)* A failing test ## Making contributions Want to be listed as a *Con...
15753fbcf8e1dd6904b26065b70b534f10236f4e
packages/co/collections-api.yaml
packages/co/collections-api.yaml
homepage: http://code.haskell.org/collections/ changelog-type: '' hash: ed9fa09839e364045653ef99ff0cf8c9771ad55df5bfd754f594aa1eb651308e test-bench-deps: {} maintainer: jeanphilippe.bernardy (google mail) synopsis: API for collection data structures. changelog: '' basic-deps: base: ! '>=3 && <5' array: -any Quick...
homepage: http://code.haskell.org/collections/ changelog-type: '' hash: b497904367aafbe7949dfa846aa34eec27b9ee99bc61ee2f665d48fdf83e7d1c test-bench-deps: {} maintainer: jeanphilippe.bernardy (google mail) synopsis: API for collection data structures. changelog: '' basic-deps: base: ! '>=3 && <4.8' array: -any Qui...
Update from Hackage at 2016-12-07T19:52:25Z
Update from Hackage at 2016-12-07T19:52:25Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://code.haskell.org/collections/ changelog-type: '' hash: ed9fa09839e364045653ef99ff0cf8c9771ad55df5bfd754f594aa1eb651308e test-bench-deps: {} maintainer: jeanphilippe.bernardy (google mail) synopsis: API for collection data structures. changelog: '' basic-deps: base: ! '>=3 && <5' arr...
3fe8e1ab9cfede9afe59ec9b0ed303d6ff8ac727
manageiq-appliance-dependencies.rb
manageiq-appliance-dependencies.rb
gem "manageiq-appliance_console", "~>3.2", :require => false gem "manageiq-postgres_ha_admin", "~>2.0", :require => false
gem "manageiq-appliance_console", "~>3.2", :require => false
Remove manageiq-postgres_ha_admin from the appliance dependencies
Remove manageiq-postgres_ha_admin from the appliance dependencies We use the gem from manageiq's core repo now, so we will move the dependency there. https://bugzilla.redhat.com/show_bug.cgi?id=1391095
Ruby
apache-2.0
ManageIQ/manageiq-appliance,ManageIQ/manageiq-appliance,ManageIQ/manageiq-appliance
ruby
## Code Before: gem "manageiq-appliance_console", "~>3.2", :require => false gem "manageiq-postgres_ha_admin", "~>2.0", :require => false ## Instruction: Remove manageiq-postgres_ha_admin from the appliance dependencies We use the gem from manageiq's core repo now, so we will move the dependency there. https://bugzi...
9ac496491fccc1bd1ba55d3302608a0fe34957a1
tests/test_population.py
tests/test_population.py
import os from neat.population import Population from neat.config import Config def test_minimal(): # sample fitness function def eval_fitness(population): for individual in population: individual.fitness = 1.0 # creates the population local_dir = os.path.dirname(__file__) con...
import os from neat.population import Population from neat.config import Config from neat.statistics import get_average_fitness def test_minimal(): # sample fitness function def eval_fitness(population): for individual in population: individual.fitness = 1.0 # creates the population ...
Include statistics usage in existing tests.
Include statistics usage in existing tests.
Python
bsd-3-clause
drallensmith/neat-python,machinebrains/neat-python,CodeReclaimers/neat-python
python
## Code Before: import os from neat.population import Population from neat.config import Config def test_minimal(): # sample fitness function def eval_fitness(population): for individual in population: individual.fitness = 1.0 # creates the population local_dir = os.path.dirname(_...
f32a84458e1d59d755e62f0b24c54b1d3f150846
db/seeds/post_history_types.yml
db/seeds/post_history_types.yml
- name: post_edited - name: post_deleted - name: post_undeleted - name: question_closed - name: question_reopened - name: initial_revision - name: attribution_notice_added - name: attribution_notice_removed - name: attribution_notice_changed
- name: post_edited - name: post_deleted - name: post_undeleted - name: question_closed - name: question_reopened - name: initial_revision - name: attribution_notice_added - name: attribution_notice_removed - name: attribution_notice_changed - name: imported_from_external_source
Add new post history type
Add new post history type
YAML
agpl-3.0
ArtOfCode-/qpixel,ArtOfCode-/qpixel,ArtOfCode-/qpixel,ArtOfCode-/qpixel
yaml
## Code Before: - name: post_edited - name: post_deleted - name: post_undeleted - name: question_closed - name: question_reopened - name: initial_revision - name: attribution_notice_added - name: attribution_notice_removed - name: attribution_notice_changed ## Instruction: Add new post history type ## Code After: - na...
316c885ff2c13a5f333a5cb2bca31407a9011f00
package_test/test_testsuite.sh
package_test/test_testsuite.sh
if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi wd=`pwd` echo Working dir $wd # Get testsuite git clone git@github.com:C2SM-RCM/testsuite cd testsuite git checkout ${BRANCH} echo "Last commit in testsuite repo:" git --no-pager log -1 cd $wd # First, test cosmo-pompa...
if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi if [ -z "${ORGANIZATION}" ] ; then export ORGANIZATION="C2SM-RCM" fi wd=`pwd` echo Working dir $wd # Get testsuite git clone git@github.com:${ORGANIZATION}/testsuite cd testsuite git checkout ${BRANCH} echo "Last c...
Add github ORGANIZATION variable to testsuite_test
Add github ORGANIZATION variable to testsuite_test
Shell
bsd-2-clause
C2SM-RCM/buildenv,C2SM-RCM/buildenv
shell
## Code Before: if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi wd=`pwd` echo Working dir $wd # Get testsuite git clone git@github.com:C2SM-RCM/testsuite cd testsuite git checkout ${BRANCH} echo "Last commit in testsuite repo:" git --no-pager log -1 cd $wd # First, ...
e09214068a12768e9aafd04363d353359ca7e1f3
src/actions/actions/timetracking/__init__.py
src/actions/actions/timetracking/__init__.py
import stathat import time import syslog def action(**kwargs): ''' This method is called to action a reaction ''' updateStathat(kwargs['jdata']) return True def updateStathat(jdata): ''' This method will be called to update a stathat Statistic ''' ez_key = jdata['time_tracking']['ez_key'] st...
import stathat import time def action(**kwargs): ''' This method is called to action a reaction ''' logger = kwargs['logger'] updateStathat(kwargs['jdata'], logger) return True def updateStathat(jdata, logger): ''' This method will be called to update a stathat Statistic ''' ez_key = jdata['...
Convert reactions syslog to logger: timetracking
Convert reactions syslog to logger: timetracking
Python
unknown
dethos/cloudroutes-service,asm-products/cloudroutes-service,rbramwell/runbook,codecakes/cloudroutes-service,codecakes/cloudroutes-service,asm-products/cloudroutes-service,madflojo/cloudroutes-service,Runbook/runbook,codecakes/cloudroutes-service,asm-products/cloudroutes-service,codecakes/cloudroutes-service,madflojo/cl...
python
## Code Before: import stathat import time import syslog def action(**kwargs): ''' This method is called to action a reaction ''' updateStathat(kwargs['jdata']) return True def updateStathat(jdata): ''' This method will be called to update a stathat Statistic ''' ez_key = jdata['time_tracking'][...
fa610209334a53cd29441429609c5b045641b4d7
exp/lib/models/content_node.py
exp/lib/models/content_node.py
from .. import api_utils class ContentNode(object): def __init__(self, document, _isChildrenPopulated=False): self.document = document self._isChildrenPopulated = _isChildrenPopulated def get_url(self): return api_utils.generate_url("/api/delivery" + self.document.get("path")) def get_children(sel...
import urllib from .. import api_utils class ContentNode(object): def __init__(self, document, _isChildrenPopulated=False): self.document = document self._isChildrenPopulated = _isChildrenPopulated def get_url(self): return api_utils.generate_url("/api/delivery" + self.document.get("path")) def g...
Add get_variant_url method to content node.
Add get_variant_url method to content node.
Python
mit
ScalaInc/exp-python2-sdk,ScalaInc/exp-python2-sdk
python
## Code Before: from .. import api_utils class ContentNode(object): def __init__(self, document, _isChildrenPopulated=False): self.document = document self._isChildrenPopulated = _isChildrenPopulated def get_url(self): return api_utils.generate_url("/api/delivery" + self.document.get("path")) def ...
9058174b23f381c57c016bfd929cd89a2e1c92fd
src/main.rs
src/main.rs
extern crate sassers; extern crate docopt; use docopt::Docopt; use std::fs::File; use std::io::Read; use std::path::Path; fn main() { const VERSION: &'static str = env!("CARGO_PKG_VERSION"); static USAGE: &'static str = " Usage: sassers [-t <style>] <inputfile> sassers [-vh] Options: -h, --help ...
extern crate sassers; extern crate docopt; use docopt::Docopt; use std::fs::File; use std::io::Read; use std::path::Path; fn main() { const VERSION: &'static str = env!("CARGO_PKG_VERSION"); static USAGE: &'static str = " Usage: sassers [-t <style>] <inputfile> sassers [-vh] Options: -h, --help ...
Print nicer error messages for myself
Print nicer error messages for myself
Rust
mit
carols10cents/sassers
rust
## Code Before: extern crate sassers; extern crate docopt; use docopt::Docopt; use std::fs::File; use std::io::Read; use std::path::Path; fn main() { const VERSION: &'static str = env!("CARGO_PKG_VERSION"); static USAGE: &'static str = " Usage: sassers [-t <style>] <inputfile> sassers [-vh] Options: ...
5ab9b834c0e45b4ee65a8be7ed30d50aac99c6ec
recipes/r-justifyalpha/build.sh
recipes/r-justifyalpha/build.sh
export DISABLE_AUTOBREW=1 # R refuses to build packages that mark themselves as Priority: Recommended mv DESCRIPTION DESCRIPTION.old grep -va '^Priority: ' DESCRIPTION.old > DESCRIPTION # shellcheck disable=SC2086 ${R} CMD INSTALL --build . ${R_ARGS} # Add more build steps here, if they are necessary. # See # https:...
mv DESCRIPTION DESCRIPTION.old grep -va '^Priority: ' DESCRIPTION.old > DESCRIPTION ${R} CMD INSTALL --build . "${R_ARGS}"
Remove comments and add maintainers
Remove comments and add maintainers
Shell
bsd-3-clause
ocefpaf/staged-recipes,johanneskoester/staged-recipes,johanneskoester/staged-recipes,conda-forge/staged-recipes,conda-forge/staged-recipes,ocefpaf/staged-recipes
shell
## Code Before: export DISABLE_AUTOBREW=1 # R refuses to build packages that mark themselves as Priority: Recommended mv DESCRIPTION DESCRIPTION.old grep -va '^Priority: ' DESCRIPTION.old > DESCRIPTION # shellcheck disable=SC2086 ${R} CMD INSTALL --build . ${R_ARGS} # Add more build steps here, if they are necessary....
14669956edfc39124d740d065ef8ef1634966946
.travis.yml
.travis.yml
language: ruby rvm: - 2.3.1 before_script: - cp .rspec.example .rspec script: - bundle exec thor bronze:ci:default # Travis-CI Configuration cache: bundler sudo: false # Enable containerized builds. services: - mongodb
language: ruby rvm: - 2.3.1 before_script: - cp .rspec.example .rspec script: - bundle exec thor bronze:ci:default # Travis-CI Configuration cache: bundler sudo: false # Enable containerized builds. services: - mongodb addons: apt: sources: - mongodb-3.0-precise packages: - mongodb-org-server
Add MongoDB 3 Haddon to Travis-CI build.
Add MongoDB 3 Haddon to Travis-CI build.
YAML
mit
sleepingkingstudios/bronze
yaml
## Code Before: language: ruby rvm: - 2.3.1 before_script: - cp .rspec.example .rspec script: - bundle exec thor bronze:ci:default # Travis-CI Configuration cache: bundler sudo: false # Enable containerized builds. services: - mongodb ## Instruction: Add MongoDB 3 Haddon to Travis-CI build. ## Code After: language:...
eb6cc542836e3daf41330956f588204730db94e9
cmd/README.md
cmd/README.md
The example of use of Grafana HTTP API. Saves all dashboards to JSON files in the current directory. Requires API key with admin rights. ## backup-datasources The example of use of Grafana HTTP API. Saves all datasources to JSON files in the current directory. Requires API key with admin rights.
The example of use of Grafana HTTP API. Saves all dashboards to JSON files in the current directory. Requires API key with admin rights. ## backup-datasources The example of use of Grafana HTTP API. Saves all datasources to JSON files in the current directory. Requires API key with admin rights. ## import-dashboard...
Add new examples to the doc
Add new examples to the doc
Markdown
apache-2.0
grafov/autograf,grafana-tools/sdk
markdown
## Code Before: The example of use of Grafana HTTP API. Saves all dashboards to JSON files in the current directory. Requires API key with admin rights. ## backup-datasources The example of use of Grafana HTTP API. Saves all datasources to JSON files in the current directory. Requires API key with admin rights. ##...
ffc1b8c83e32f4c2b5454a0ae71b9c30cc8e7596
toolz/tests/test_serialization.py
toolz/tests/test_serialization.py
from toolz import * import pickle def test_compose(): f = compose(str, sum) g = pickle.loads(pickle.dumps(f)) assert f((1, 2)) == g((1, 2)) def test_curry(): f = curry(map)(str) g = pickle.loads(pickle.dumps(f)) assert list(f((1, 2, 3))) == list(g((1, 2, 3))) def test_juxt(): f = juxt(...
from toolz import * import pickle def test_compose(): f = compose(str, sum) g = pickle.loads(pickle.dumps(f)) assert f((1, 2)) == g((1, 2)) def test_curry(): f = curry(map)(str) g = pickle.loads(pickle.dumps(f)) assert list(f((1, 2, 3))) == list(g((1, 2, 3))) def test_juxt(): f = juxt(...
Add serialization test for `complement`
Add serialization test for `complement`
Python
bsd-3-clause
pombredanne/toolz,simudream/toolz,machinelearningdeveloper/toolz,quantopian/toolz,jdmcbr/toolz,bartvm/toolz,jcrist/toolz,cpcloud/toolz,pombredanne/toolz,quantopian/toolz,simudream/toolz,machinelearningdeveloper/toolz,bartvm/toolz,llllllllll/toolz,jdmcbr/toolz,llllllllll/toolz,cpcloud/toolz,jcrist/toolz
python
## Code Before: from toolz import * import pickle def test_compose(): f = compose(str, sum) g = pickle.loads(pickle.dumps(f)) assert f((1, 2)) == g((1, 2)) def test_curry(): f = curry(map)(str) g = pickle.loads(pickle.dumps(f)) assert list(f((1, 2, 3))) == list(g((1, 2, 3))) def test_juxt(...
31f63019c61dcfa851687841e253b3c4e9aef4e5
src/resource.js
src/resource.js
import {Container} from './'; export default class Resource { /** * @param {Object} params */ constructor({service, name, identifierName, collectionRoot, itemRoot}) { this.service = service; this.name = name; this.identifierName = identifierName; this.collectionRoot = collectionRoot; this.itemRoot = it...
import {Container} from './'; export default class Resource { /** * @param {Object} params */ constructor({service, name, identifierName, collectionRoot, itemRoot}) { this.service = service; this.name = name; this.identifierName = identifierName; this.collectionRoot = collectionRoot; this.itemRoot = it...
Add parentResource helpers to Resource
Add parentResource helpers to Resource
JavaScript
mit
jay-ess/restinga-node
javascript
## Code Before: import {Container} from './'; export default class Resource { /** * @param {Object} params */ constructor({service, name, identifierName, collectionRoot, itemRoot}) { this.service = service; this.name = name; this.identifierName = identifierName; this.collectionRoot = collectionRoot; th...
6b0a06489d30c22f529ca7f60c80f93cc7128347
app.js
app.js
/** * Main entrypoint for banknote. * * Copyright 2015 Ethan Smith */ var Backbone = require('backbone'), Marionette = require('backbone.marionette'), $ = require('jquery'), _ = require('underscore'), MainLayout = require('./src/view/MainLayout'), RegionModal = require('./src/common/modal/Regio...
/** * Main entrypoint for banknote. * * Copyright 2015 Ethan Smith */ var Backbone = require('backbone'), Marionette = require('backbone.marionette'), $ = require('jquery'), _ = require('underscore'), MainLayout = require('./src/view/MainLayout'), RegionModal = require('./src/common/modal/Regio...
Remove unneeded map for collection model
Remove unneeded map for collection model
JavaScript
mit
onebytegone/banknote-client,onebytegone/banknote-client
javascript
## Code Before: /** * Main entrypoint for banknote. * * Copyright 2015 Ethan Smith */ var Backbone = require('backbone'), Marionette = require('backbone.marionette'), $ = require('jquery'), _ = require('underscore'), MainLayout = require('./src/view/MainLayout'), RegionModal = require('./src/co...
08ca035de14e927c4fdaa151491ebe9050563f69
examples/IncrementalIndexedBasedDecode.hs
examples/IncrementalIndexedBasedDecode.hs
{-# LANGUAGE BangPatterns, ScopedTypeVariables #-} import Control.Monad import qualified Data.ByteString as B import Data.Csv.Incremental import System.Exit import System.IO main :: IO () main = withFile "salaries.csv" ReadMode $ \ csvFile -> do let loop !_ (Fail _ errMsg) = putStrLn errMsg >> exitFailure ...
{-# LANGUAGE BangPatterns, ScopedTypeVariables #-} import Control.Monad import qualified Data.ByteString as B import Data.Csv.Incremental import System.Exit import System.IO main :: IO () main = withFile "salaries.csv" ReadMode $ \ csvFile -> do let loop !_ (Fail _ errMsg) = putStrLn errMsg >> exitFailure ...
Update examples to follow changes to incremental API
Update examples to follow changes to incremental API
Haskell
bsd-3-clause
hvr/cassava,psibi/cassava,jb55/cassava,ahodgen/cassava,bgamari/cassava,richardfergie/cassava,treeowl/cassava,tibbe/cassava,bergmark/cassava
haskell
## Code Before: {-# LANGUAGE BangPatterns, ScopedTypeVariables #-} import Control.Monad import qualified Data.ByteString as B import Data.Csv.Incremental import System.Exit import System.IO main :: IO () main = withFile "salaries.csv" ReadMode $ \ csvFile -> do let loop !_ (Fail _ errMsg) = putStrLn errMsg >> exi...
3282342652ef367d27a5988e8e5d0c996e3aadbb
app/styles/wysihtml5.scss
app/styles/wysihtml5.scss
a.wysihtml5-command-active, a.wysihtml5-command-dialog-opened { background-color: $darken-3; }
a.wysihtml5-command-active, a.wysihtml5-command-dialog-opened { background-color: $darken-3; } .wysiwyg-font-size-h6 { font-size: .5rem; } .wysiwyg-font-size-h5 { font-size: 1rem; } .wysiwyg-font-size-h4 { font-size: 1.5rem; } .wysiwyg-font-size-h3 { font-size: 2rem; } .wysiwyg-font-size-h2 { font-size: 3rem; } .wys...
Fix put wysihtml heading classes back.
Fix put wysihtml heading classes back.
SCSS
agpl-3.0
nossas/bonde-client,nossas/bonde-client,nossas/bonde-client
scss
## Code Before: a.wysihtml5-command-active, a.wysihtml5-command-dialog-opened { background-color: $darken-3; } ## Instruction: Fix put wysihtml heading classes back. ## Code After: a.wysihtml5-command-active, a.wysihtml5-command-dialog-opened { background-color: $darken-3; } .wysiwyg-font-size-h6 { font-size: .5...
4d003e1600c9aa5963237638ccccf4cbb361c9b7
.github/workflows/build.yml
.github/workflows/build.yml
name: build on: [push] jobs: run: runs-on: ubuntu-latest strategy: matrix: php-versions: ['7.4', '8.0'] name: Testing on PHP ${{ matrix.php-versions }} steps: - uses: actions/checkout@v2 - name: setup uses: shivammathur/setup-php@v2 with: php-versi...
name: Tests on: [push] jobs: run: runs-on: ubuntu-latest strategy: matrix: php: ['7.4', '8.0'] name: Testing on PHP ${{ matrix.php }} steps: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: ...
Rename vars and changed text in test workflow
Rename vars and changed text in test workflow
YAML
mit
Intervention/httpauth
yaml
## Code Before: name: build on: [push] jobs: run: runs-on: ubuntu-latest strategy: matrix: php-versions: ['7.4', '8.0'] name: Testing on PHP ${{ matrix.php-versions }} steps: - uses: actions/checkout@v2 - name: setup uses: shivammathur/setup-php@v2 with: ...
af6c31d09aef686ba896b2a2c74fbb88cc7f1be0
tests/test_utils.py
tests/test_utils.py
__authors__ = [ '"Augie Fackler" <durin42@gmail.com>', ] class MockRequest(object): """Shared dummy request object to mock common aspects of a request. """ def __init__(self, path=None): self.REQUEST = self.GET = self.POST = {} self.path = path
__authors__ = [ '"Augie Fackler" <durin42@gmail.com>', '"Sverre Rabbelier" <sverre@rabbelier.nl>', ] from soc.modules import callback class MockRequest(object): """Shared dummy request object to mock common aspects of a request. Before using the object, start should be called, when done (and before c...
Add a start and end method to MockRequest
Add a start and end method to MockRequest
Python
apache-2.0
SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange
python
## Code Before: __authors__ = [ '"Augie Fackler" <durin42@gmail.com>', ] class MockRequest(object): """Shared dummy request object to mock common aspects of a request. """ def __init__(self, path=None): self.REQUEST = self.GET = self.POST = {} self.path = path ## Instruction: Add a start and end ...
a4d928f45e4b53fc59c17ca5eb1cf36ce305a536
app/controllers/paper_trail_ui/reports_controller.rb
app/controllers/paper_trail_ui/reports_controller.rb
require 'will_paginate/array' require 'yaml' require_dependency "paper_trail_ui/application_controller" module PaperTrailUi class ReportsController < ApplicationController MODEL_NAMES = PaperTrail::Version.select("DISTINCT item_type").map(&:item_type) EVENT_TYPES = PaperTrail::Version.select("DISTINCT event"...
require 'will_paginate/array' require 'yaml' require_dependency "paper_trail_ui/application_controller" module PaperTrailUi class ReportsController < ApplicationController MODEL_NAMES = PaperTrail::Version.select("DISTINCT item_type").map(&:item_type) EVENT_TYPES = PaperTrail::Version.select("DISTINCT event"...
Add method to generate a hash from array to be used in converting model names, events, and actors to filter hashes
Add method to generate a hash from array to be used in converting model names, events, and actors to filter hashes
Ruby
mit
buttercloud/paper_trail_ui,buttercloud/paper_trail_ui,buttercloud/paper_trail_ui
ruby
## Code Before: require 'will_paginate/array' require 'yaml' require_dependency "paper_trail_ui/application_controller" module PaperTrailUi class ReportsController < ApplicationController MODEL_NAMES = PaperTrail::Version.select("DISTINCT item_type").map(&:item_type) EVENT_TYPES = PaperTrail::Version.select(...
72b42470a4ddecb446de32ce98c900d2f5c859b5
CHANGELOG.md
CHANGELOG.md
- Pheanstalk 4.X is required - PHP 7.2+ is required ### Fixed n/a ### Added - `Pheanstalk\Contract\PheanstalkInterface` is aliased to the default Pheanstalk connection so autowiring should work. - `PMG\PheanstalkBundle\ConnectionManager` to provide a way to access all connections outside of the container. ## 1...
- Pheanstalk 4.X is required - PHP 7.2+ is required - Symfony 3.4 or 4.X are required ### Fixed n/a ### Added - `Pheanstalk\Contract\PheanstalkInterface` is aliased to the default Pheanstalk connection so autowiring should work. - `PMG\PheanstalkBundle\ConnectionManager` to provide a way to access all connectio...
Include the Symfony Requirements in the Changelog
Include the Symfony Requirements in the Changelog
Markdown
apache-2.0
AgencyPMG/PheanstalkBundle
markdown
## Code Before: - Pheanstalk 4.X is required - PHP 7.2+ is required ### Fixed n/a ### Added - `Pheanstalk\Contract\PheanstalkInterface` is aliased to the default Pheanstalk connection so autowiring should work. - `PMG\PheanstalkBundle\ConnectionManager` to provide a way to access all connections outside of the ...
e28b49259ce45a40037210fe84a6e8b4ba674c84
resources/assets/js/app/main.js
resources/assets/js/app/main.js
(function($){ $(function(){ $('.tooltipped').tooltip({delay: 50}); // Smooth scroll for links on the current page $(document.body).on('click', 'a[href^="#"]', function (e) { e.preventDefault(); if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname ==...
(function($){ $(function(){ $('.tooltipped').tooltip({delay: 50}); // Smooth scroll for links on the current page $(document.body).on('click', 'a[href^="#"]', function (e) { e.preventDefault(); if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname ==...
Add our meta tag CSRF token to every ajax request
Add our meta tag CSRF token to every ajax request
JavaScript
mit
TheJokersThief/Penance,TheJokersThief/Penance
javascript
## Code Before: (function($){ $(function(){ $('.tooltipped').tooltip({delay: 50}); // Smooth scroll for links on the current page $(document.body).on('click', 'a[href^="#"]', function (e) { e.preventDefault(); if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || loca...
30c59942108a8a78bd666190d9ab61c27ddf95f8
source/_download.markdown
source/_download.markdown
Just include the plugin file, [Coffeescript](https://github.com/camerond/Windoze/blob/master/source/javascripts/jquery.windoze.js.coffee) or [JavaScript](https://github.com/camerond/Windoze/blob/master/source/javascripts/jquery.windoze.plain.js) stylesheet, [SASS](https://github.com/camerond/Windoze/blob/master/sou...
Just include the plugin file, [Coffeescript](https://github.com/camerond/Windoze/blob/master/source/javascripts/jquery.windoze.js.coffee) or [JavaScript](https://github.com/camerond/Windoze/blob/master/build/javascripts/jquery.windoze.js) stylesheet, [SASS](https://github.com/camerond/Windoze/blob/master/source/sty...
Fix links to static files
Fix links to static files
Markdown
mit
camerond/windoze,camerond/windoze,camerond/windoze
markdown
## Code Before: Just include the plugin file, [Coffeescript](https://github.com/camerond/Windoze/blob/master/source/javascripts/jquery.windoze.js.coffee) or [JavaScript](https://github.com/camerond/Windoze/blob/master/source/javascripts/jquery.windoze.plain.js) stylesheet, [SASS](https://github.com/camerond/Windoze...
7c660626f303137d850f96d50f7aec9ed4a3ca13
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.3 before_script: - composer install script: - phpunit --bootstrap=bootstrap.php --coverage-text="php://stdout" --configuration="phpunit.xml" src/Navarr/Socket/Tests
language: php php: - 5.4 - 5.3 before_script: - composer install - composer require phpunit/phpunit 3.7.18 script: - phpunit --bootstrap=bootstrap.php --coverage-text="php://stdout" --configuration="phpunit.xml" src/Navarr/Socket/Tests
Add PHPUnit for Travis-CI Only
Add PHPUnit for Travis-CI Only
YAML
mit
navarr/Sockets
yaml
## Code Before: language: php php: - 5.4 - 5.3 before_script: - composer install script: - phpunit --bootstrap=bootstrap.php --coverage-text="php://stdout" --configuration="phpunit.xml" src/Navarr/Socket/Tests ## Instruction: Add PHPUnit for Travis-CI Only ## Code After: language: php php: - 5.4 - 5.3 befo...
0de4e419ab107ad2ea3d31083ff3210865ade793
README.md
README.md
This is the monorepo for the testdeck packages. ## Packages - [@testdeck/mocha](./packages/mocha) - [@testdeck/jasmine](./packages/jasmine) - [@testdeck/jest](./packages/jest) - [@testdeck/di-typedi](./packages/di-typedi) - [@testdeck/core](./packages/core) ## Build Clone this repository using ``` git clone https...
The JavaScript OOP style tests! ```TypeScript // Use one of the mocha/jest/jasmine test runners: import { suite, test } from "@testdeck/mocha"; import { suite, test } from "@testdeck/jest"; import { suite, test } from "@testdeck/jasmine"; // And write your tests like: import { expect } from 'chai'; @suite class Hel...
Add a short example in the readme
Add a short example in the readme We need this so people randomly landing on the monorepo, will have idea what testdeck is about.
Markdown
apache-2.0
pana-cc/mocha-typescript,pana-cc/mocha-typescript
markdown
## Code Before: This is the monorepo for the testdeck packages. ## Packages - [@testdeck/mocha](./packages/mocha) - [@testdeck/jasmine](./packages/jasmine) - [@testdeck/jest](./packages/jest) - [@testdeck/di-typedi](./packages/di-typedi) - [@testdeck/core](./packages/core) ## Build Clone this repository using ```...
80b75ff473abd05108a4d930ef89e8ebcbc058fa
packages/wr/writer-cps-full.yaml
packages/wr/writer-cps-full.yaml
homepage: https://github.com/minad/writer-cps-full#readme changelog-type: '' hash: 8f2b44a4ea6d59d5f693b0ec73336a0b815e058d9b8a42916a90d6e82a53275b test-bench-deps: {} maintainer: mail@daniel-mendler.de synopsis: WriteT and RWST monad transformers (Reexport with all dependencies) changelog: '' basic-deps: writer-cps-...
homepage: https://github.com/minad/writer-cps-full#readme changelog-type: '' hash: c1184180631618add72cebf1020fc265afeec56d27978df5f8654e333bfcf107 test-bench-deps: {} maintainer: mail@daniel-mendler.de synopsis: WriteT and RWST monad transformers (Reexport with all dependencies) changelog: '' basic-deps: writer-cps-...
Update from Hackage at 2019-03-07T14:26:28Z
Update from Hackage at 2019-03-07T14:26:28Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/minad/writer-cps-full#readme changelog-type: '' hash: 8f2b44a4ea6d59d5f693b0ec73336a0b815e058d9b8a42916a90d6e82a53275b test-bench-deps: {} maintainer: mail@daniel-mendler.de synopsis: WriteT and RWST monad transformers (Reexport with all dependencies) changelog: '' basic-dep...
9b0d5796c1e48a3bf294971dc129499876936a36
send2trash/plat_osx.py
send2trash/plat_osx.py
from platform import mac_ver from sys import version_info # If macOS is 11.0 or newer try to use the pyobjc version to get around #51 # NOTE: pyobjc only supports python >= 3.6 if version_info >= (3, 6) and int(mac_ver()[0].split(".", 1)[0]) >= 11: try: from .plat_osx_pyobjc import send2trash except I...
from platform import mac_ver from sys import version_info # NOTE: version of pyobjc only supports python >= 3.6 and 10.9+ macos_ver = tuple(int(part) for part in mac_ver()[0].split(".")) if version_info >= (3, 6) and macos_ver >= (10, 9): try: from .plat_osx_pyobjc import send2trash except ImportError...
Change conditional for macos pyobjc usage
Change conditional for macos pyobjc usage macOS 11.x will occasionally identify as 10.16, since there was no real reason to prevent on all supported platforms allow.
Python
bsd-3-clause
hsoft/send2trash
python
## Code Before: from platform import mac_ver from sys import version_info # If macOS is 11.0 or newer try to use the pyobjc version to get around #51 # NOTE: pyobjc only supports python >= 3.6 if version_info >= (3, 6) and int(mac_ver()[0].split(".", 1)[0]) >= 11: try: from .plat_osx_pyobjc import send2tr...
3539b935d1d5b70fff1335c04dd320edb3cbe511
lib/setup.js
lib/setup.js
module.exports = function () { var browser = require('openurl'); var config = require('./config'); var REDIRECT_URI = 'https://rogeriopvl.github.com/downstagram'; console.log('\n********** DOWNSTAGRAM OAUTH SETUP **********'); console.log('\n To use downstagram you need to authorize it to access yo...
module.exports = function () { var browser = require('openurl'); var config = require('./config'); var REDIRECT_URI = 'https://rogeriopvl.github.com/downstagram'; console.log('\n********** DOWNSTAGRAM OAUTH SETUP **********'); console.log('\n To use downstagram you need to authorize it to access yo...
Add alternative to browser opening on headless servers
Add alternative to browser opening on headless servers
JavaScript
mit
rogeriopvl/downstagram,afrolov/downstagram
javascript
## Code Before: module.exports = function () { var browser = require('openurl'); var config = require('./config'); var REDIRECT_URI = 'https://rogeriopvl.github.com/downstagram'; console.log('\n********** DOWNSTAGRAM OAUTH SETUP **********'); console.log('\n To use downstagram you need to authorize...
b4b9e6d8d2ac2f4017e32aebd42327d4b5230d18
test/frontend/instant-share/instant_share_test.js
test/frontend/instant-share/instant_share_test.js
/* global sinon, Event, InstantShareApp */ describe("InstantShareApp", function() { "use strict"; var sandbox, xhr; beforeEach(function() { sandbox = sinon.sandbox.create(); xhr = { open: sinon.spy(), setRequestHeader: function() {}, send: function() {} }; sandbox.stub(window,...
/* global sinon, Event, InstantShareApp, chai */ describe("InstantShareApp", function() { "use strict"; var expect = chai.expect; var xhr, request; beforeEach(function() { xhr = sinon.useFakeXMLHttpRequest(); request = undefined; xhr.onCreate = function (req) { request = req; }; }); ...
Switch InstantShare test to use Sinon infrastructure as per review comment
Switch InstantShare test to use Sinon infrastructure as per review comment
JavaScript
mpl-2.0
mozilla/talkilla,mozilla/talkilla,mozilla/talkilla
javascript
## Code Before: /* global sinon, Event, InstantShareApp */ describe("InstantShareApp", function() { "use strict"; var sandbox, xhr; beforeEach(function() { sandbox = sinon.sandbox.create(); xhr = { open: sinon.spy(), setRequestHeader: function() {}, send: function() {} }; sand...
642a56ec1e97af1f7ca5cfa4fe767d33dd0de0cb
zsh/aliases.zsh
zsh/aliases.zsh
[ `which hub` ] && alias git='nocorrect hub' alias trog='trash **/*.orig' alias -g A='|ack' alias -g L='|less' alias -g V='|vim -' alias -g M='|mvim -' alias -g G='|grep' alias -g T='|tail' alias -g H='|head' alias -g N='&>/dev/null&' alias -g W='|wc'
type hub &>/dev/null && alias git='nocorrect hub' alias trog='trash **/*.orig' alias -g A='|ack' alias -g L='|less' alias -g V='|vim -' alias -g M='|mvim -' alias -g G='|grep' alias -g T='|tail' alias -g H='|head' alias -g N='&>/dev/null&' alias -g W='|wc'
Use type to detect presence of `hub`
Use type to detect presence of `hub`
Shell
mit
jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles
shell
## Code Before: [ `which hub` ] && alias git='nocorrect hub' alias trog='trash **/*.orig' alias -g A='|ack' alias -g L='|less' alias -g V='|vim -' alias -g M='|mvim -' alias -g G='|grep' alias -g T='|tail' alias -g H='|head' alias -g N='&>/dev/null&' alias -g W='|wc' ## Instruction: Use type to detect presence of `h...
8711f5cc15bb0ac1fb05dd2975923b7b91e5c313
README.md
README.md
A java port of orb: a library for simple orbital mechanics
A java port of [orb](https://github.com/benelsen/orb): a library for simple orbital mechanics So far only some part of the orb library have been ported to java. Feel free to port other parts! ## Usage Calculate the position and velocity of a celesitial body: ```java double a = 149598261150.0; // semima...
Update readme on how to calculate celestial positions
Update readme on how to calculate celestial positions
Markdown
mit
molp/orbicular
markdown
## Code Before: A java port of orb: a library for simple orbital mechanics ## Instruction: Update readme on how to calculate celestial positions ## Code After: A java port of [orb](https://github.com/benelsen/orb): a library for simple orbital mechanics So far only some part of the orb library have been ported to jav...
d3cb29aa20afd385b746a99741608ab73c8fdd4d
js/mapRequest.control.js
js/mapRequest.control.js
L.Control.MapRequest = L.Control.extend({ options: { position: "topright" }, initialize: function(options) { L.setOptions(this, options); }, onAdd: function(map) { let self = this; let container = L.DomUtil.create("div", "bm-map-request"); container.innerHTM...
L.Control.MapRequest = L.Control.extend({ options: { position: "topright" }, initialize: function(options) { L.setOptions(this, options); }, onAdd: function(map) { let self = this; let container = L.DomUtil.create("div", "bm-map-request"); container.innerHTM...
Add link to home page
Add link to home page
JavaScript
mit
zimmicz/blind-maps,zimmicz/blind-maps
javascript
## Code Before: L.Control.MapRequest = L.Control.extend({ options: { position: "topright" }, initialize: function(options) { L.setOptions(this, options); }, onAdd: function(map) { let self = this; let container = L.DomUtil.create("div", "bm-map-request"); co...
37a155226210640f16018e1033d4769b2fb36909
gitst.c
gitst.c
int main(int argc, char **argv) { char* gitbuff; int out = run_proc(&gitbuff, "git", "branch", "--list", 0); //int out = run_proc(&gitbuff, "ls", "-l", "-h", 0); if (out != 0) { fprintf(stderr, "Error running subprocess:%d\n", out); exit(1); } //printf("run_proc exit code = %d\nresponse= '''%s''...
int main(int argc, char **argv) { char* gitbuff; int out = run_proc(&gitbuff, "git", "branch", "--list", 0); if (out != 0) { exit(1); } char *token; char *sep=" \r\n"; int next = 0; while((token = strsep(&gitbuff, sep)) != NULL) { if (token[0] == '*') { token = strsep(&gitbuff, sep)...
Use strsep to split output
Use strsep to split output
C
bsd-3-clause
wnh/prompt_utils
c
## Code Before: int main(int argc, char **argv) { char* gitbuff; int out = run_proc(&gitbuff, "git", "branch", "--list", 0); //int out = run_proc(&gitbuff, "ls", "-l", "-h", 0); if (out != 0) { fprintf(stderr, "Error running subprocess:%d\n", out); exit(1); } //printf("run_proc exit code = %d\nr...
798bde0536667a6d151835f03b3ef207b250eef6
.travis.yml
.travis.yml
language: csharp install: # Restore nuget packages - nuget restore Pixie.sln script: # Build Pixie. - msbuild /p:Configuration=Release /verbosity:quiet /nologo Pixie.sln # Run the examples. - mono ./Examples/CaretDiagnostics/bin/Release/net45/CaretDiagnostics.exe - mono ./Examples/FormattedList/bin/Rele...
language: csharp matrix: include: - dotnet: 2.1.502 mono: none env: DOTNETCORE=2 env: DOTNET=dotnet env: RESTORE=dotnet restore env: MSBUILD=dotnet build --framework netcoreapp2.0 env: EXE=dll env: TARGET=netcoreapp2.0 - mono: latest env: DOTNET=mono env...
Add a .NET Core Travis configuration
Add a .NET Core Travis configuration
YAML
mit
jonathanvdc/Pixie,jonathanvdc/Pixie
yaml
## Code Before: language: csharp install: # Restore nuget packages - nuget restore Pixie.sln script: # Build Pixie. - msbuild /p:Configuration=Release /verbosity:quiet /nologo Pixie.sln # Run the examples. - mono ./Examples/CaretDiagnostics/bin/Release/net45/CaretDiagnostics.exe - mono ./Examples/Format...
b02a02654b372f066f4acd09e67cfb6e29aa7a48
.travis.yml
.travis.yml
language: julia os: - linux - osx julia: - 0.6 - 0.7 - 1.0 env: - PYTHON=""
language: julia os: - linux - osx julia: - 0.6 - 0.7 - 1.0 env: - PYTHON="" - PYTHON="python3"
Test with Conda python and built-in one.
Test with Conda python and built-in one.
YAML
bsd-3-clause
rawlik/Coils.jl
yaml
## Code Before: language: julia os: - linux - osx julia: - 0.6 - 0.7 - 1.0 env: - PYTHON="" ## Instruction: Test with Conda python and built-in one. ## Code After: language: julia os: - linux - osx julia: - 0.6 - 0.7 - 1.0 env: - PYTHON="" - PYTHON="python3"
412727440beb678ba3beef78ee0b934d412afe64
examples/permissionsexample/views.py
examples/permissionsexample/views.py
from djangorestframework.views import View from djangorestframework.permissions import PerUserThrottling, IsAuthenticated from django.core.urlresolvers import reverse class PermissionsExampleView(View): """ A container view for permissions examples. """ def get(self, request): return [{'name':...
from djangorestframework.views import View from djangorestframework.permissions import PerUserThrottling, IsAuthenticated from django.core.urlresolvers import reverse class PermissionsExampleView(View): """ A container view for permissions examples. """ def get(self, request): return [{'name':...
Add an extra explenation on how to use curl on this view.
Add an extra explenation on how to use curl on this view.
Python
bsd-2-clause
cyberj/django-rest-framework,johnraz/django-rest-framework,dmwyatt/django-rest-framework,ajaali/django-rest-framework,d0ugal/django-rest-framework,adambain-vokal/django-rest-framework,linovia/django-rest-framework,ticosax/django-rest-framework,xiaotangyuan/django-rest-framework,alacritythief/django-rest-framework,akali...
python
## Code Before: from djangorestframework.views import View from djangorestframework.permissions import PerUserThrottling, IsAuthenticated from django.core.urlresolvers import reverse class PermissionsExampleView(View): """ A container view for permissions examples. """ def get(self, request): ...
279a7dfcdd854999d490164da3dc3790430e639a
membership/management/commands/public_memberlist.py
membership/management/commands/public_memberlist.py
from django.db.models import Q from django.core.management.base import NoArgsCommand from django.template.loader import render_to_string from django.conf import settings from membership.models import * from membership.public_memberlist import public_memberlist_data class Command(NoArgsCommand): def handle_noargs...
from django.db.models import Q from django.core.management.base import NoArgsCommand from django.template.loader import render_to_string from django.conf import settings from membership.models import * from membership.public_memberlist import public_memberlist_data class Command(NoArgsCommand): def handle_noargs...
Fix UnicodeDecodeError: Return text string, not bytes
Fix UnicodeDecodeError: Return text string, not bytes
Python
mit
kapsiry/sikteeri,AriMartti/sikteeri,kapsiry/sikteeri,kapsiry/sikteeri,annttu/sikteeri,joneskoo/sikteeri,annttu/sikteeri,AriMartti/sikteeri,kapsiry/sikteeri,joneskoo/sikteeri,AriMartti/sikteeri,annttu/sikteeri,joneskoo/sikteeri,annttu/sikteeri,AriMartti/sikteeri,joneskoo/sikteeri
python
## Code Before: from django.db.models import Q from django.core.management.base import NoArgsCommand from django.template.loader import render_to_string from django.conf import settings from membership.models import * from membership.public_memberlist import public_memberlist_data class Command(NoArgsCommand): d...
8de495abec3b871ecd85c6f723ec3448b971f9a3
css/outer/docs/categories.less
css/outer/docs/categories.less
// Categories view #content > .categories { .container; padding-top: 0; padding-bottom: 60px; } .categories { li { list-style: none; } a { display: block; margin-bottom: 15px; padding: 10px; background-color: #1E598F; // #gradient > .vertical(#115EA6, #0F5391); color: white; ...
// Categories view #content > .categories { .container; padding-top: 0; padding-bottom: 60px; } .categories { ul { padding-left: 0; } li { list-style: none; } a { display: block; margin-bottom: 15px; padding: 10px; background-color: #1E598F; // #gradient > .vertical(#115EA6, #0F5391);...
Remove unneeded left padding from ul Fix spacing
Remove unneeded left padding from ul Fix spacing
Less
epl-1.0
prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend
less
## Code Before: // Categories view #content > .categories { .container; padding-top: 0; padding-bottom: 60px; } .categories { li { list-style: none; } a { display: block; margin-bottom: 15px; padding: 10px; background-color: #1E598F; // #gradient > .vertical(#115EA6, #0F5391); ...
24bb1f52ec6e1a3be30987ecafb0d159b501eeb0
workflowhelpers/as_user.go
workflowhelpers/as_user.go
package workflowhelpers import ( "time" ) type userContext interface { SetCfHomeDir() (string, string) UnsetCfHomeDir(string, string) Login() Logout() TargetSpace() } var AsUser = func(uc userContext, timeout time.Duration, actions func()) { originalCfHomeDir, currentCfHomeDir := uc.SetCfHomeDir() uc.Login()...
package workflowhelpers import ( "time" ) type userContext interface { SetCfHomeDir() (string, string) UnsetCfHomeDir(string, string) Login() Logout() TargetSpace() } func AsUser(uc userContext, timeout time.Duration, actions func()) { originalCfHomeDir, currentCfHomeDir := uc.SetCfHomeDir() uc.Login() defe...
Refactor variable declaration as function
Refactor variable declaration as function Signed-off-by: Alexander Berezovsky <a12e46294a7d630b60bbba114755367d6bafe2fb@pivotal.io>
Go
apache-2.0
cloudfoundry-incubator/cf-test-helpers,cloudfoundry-incubator/cf-test-helpers
go
## Code Before: package workflowhelpers import ( "time" ) type userContext interface { SetCfHomeDir() (string, string) UnsetCfHomeDir(string, string) Login() Logout() TargetSpace() } var AsUser = func(uc userContext, timeout time.Duration, actions func()) { originalCfHomeDir, currentCfHomeDir := uc.SetCfHomeD...
e27156d5631337e86618b201e4e5f473e2ad1eb5
projects.md
projects.md
--- layout: page title: Projects permalink: /projects/ --- - [OSM Parquetizer](https://github.com/adrianulbona/osm-parquetizer) - [Hidden Markov Models Java Library](https://github.com/adrianulbona/hmm) - [JTS-Discretizer](https://github.com/adrianulbona/jts-discretizer)
--- layout: page title: Projects permalink: /projects/ --- - [OSM Parquetizer](https://github.com/adrianulbona/osm-parquetizer) - [Hidden Markov Models Java Library](https://github.com/adrianulbona/hmm) - [jts-discretizer](https://github.com/adrianulbona/jts-discretizer) - [borders](https://github.com/adrianulbona/bo...
Add borders to project list
Add borders to project list
Markdown
apache-2.0
adrianulbona/adrianulbona.github.io,adrianulbona/adrianulbona.github.io
markdown
## Code Before: --- layout: page title: Projects permalink: /projects/ --- - [OSM Parquetizer](https://github.com/adrianulbona/osm-parquetizer) - [Hidden Markov Models Java Library](https://github.com/adrianulbona/hmm) - [JTS-Discretizer](https://github.com/adrianulbona/jts-discretizer) ## Instruction: Add borders to...
14537b8260891f03f478fd0c4ff1736d57bffe5e
src/com/markupartist/crimesweeper/PlayerLocationOverlay.java
src/com/markupartist/crimesweeper/PlayerLocationOverlay.java
package com.markupartist.crimesweeper; import com.google.android.maps.MyLocationOverlay; import com.google.android.maps.MapView; import android.content.Context; import android.location.Location; import java.util.List; public class PlayerLocationOverlay extends MyLocationOverlay { private CrimeLocationHitListener...
package com.markupartist.crimesweeper; import com.google.android.maps.MyLocationOverlay; import com.google.android.maps.MapView; import android.content.Context; import android.location.Location; import java.util.List; public class PlayerLocationOverlay extends MyLocationOverlay { private CrimeLocationHitListener...
Allow the listener to be set to null
Allow the listener to be set to null
Java
apache-2.0
joakimk/CrimeSweeper
java
## Code Before: package com.markupartist.crimesweeper; import com.google.android.maps.MyLocationOverlay; import com.google.android.maps.MapView; import android.content.Context; import android.location.Location; import java.util.List; public class PlayerLocationOverlay extends MyLocationOverlay { private CrimeLoc...
ae7aebf561302e8b494388ac106df6913bc307e3
package.json
package.json
{ "author": { "name": "Michael Benford", "email": "michael@michaelbenford.net" }, "name": "ng-tags-input", "version": "1.0.0", "description": "Tags input directive for AngularJS", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/mben...
{ "author": { "name": "Michael Benford", "email": "michael@michaelbenford.net" }, "name": "ng-tags-input", "version": "1.0.0", "description": "Tags input directive for AngularJS", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/mben...
Update grunt to version 0.4.2
chore(grunt): Update grunt to version 0.4.2
JSON
mit
lejard-h/ngTagsInput,tamtakoe/ngTagsInput,Movideo/ngTagsInput,hyukchan/ngTagsInput,ukitazume/ngTagsInput,Smarp/ngTagsInput,blaskovicz/ngTagsInput,shoutakenaka/ngTagsInput,schinkowitch/ngTagsInput,dlukez/ngTagsInput,carlosmoran092/ngTagsInput,mbenford/ngTagsInput,mbenford/ngTagsInput,igorprado/ngTagsInput,kangkot/ngTags...
json
## Code Before: { "author": { "name": "Michael Benford", "email": "michael@michaelbenford.net" }, "name": "ng-tags-input", "version": "1.0.0", "description": "Tags input directive for AngularJS", "license": "MIT", "repository": { "type": "git", "url": "https:/...
0302fa33e5ded22bc3e7f7b31003e6b5a9124ee3
templates/service.mustache
templates/service.mustache
/* tslint:disable */ import { Injectable } from '@angular/core'; import { HttpClient, HttpRequest, HttpResponse, HttpHeaders, HttpParams } from '@angular/common/http'; import { BaseService } from '../base-service'; import { ApiConfiguration } from '../api-configuration'; import { Observable } from 'rxjs/Observable...
/* tslint:disable */ import { Injectable } from '@angular/core'; import { HttpClient, HttpRequest, HttpResponse, HttpHeaders, HttpParams } from '@angular/common/http'; import { BaseService } from '../base-service'; import { ApiConfiguration } from '../api-configuration'; import { Observable } from 'rxjs'; import {...
Update RxJs operators and inputs to v6
Update RxJs operators and inputs to v6
HTML+Django
mit
cyclosproject/ng-swagger-gen,cyclosproject/ng-swagger-gen
html+django
## Code Before: /* tslint:disable */ import { Injectable } from '@angular/core'; import { HttpClient, HttpRequest, HttpResponse, HttpHeaders, HttpParams } from '@angular/common/http'; import { BaseService } from '../base-service'; import { ApiConfiguration } from '../api-configuration'; import { Observable } from ...
e5c584b5e7a72a191d8456ad7efc80003416b2fb
app/assets/javascripts/backbone/views/chatbox.js.coffee
app/assets/javascripts/backbone/views/chatbox.js.coffee
class Kandan.Views.Chatbox extends Backbone.View template: JST['chatbox'] tagName: 'div' className: 'chatbox' events: "keypress .chat-input": 'postMessageOnEnter' "click .post" : 'postMessage' postMessageOnEnter: (event)-> if event.keyCode == 13 @postMessage(event) even...
class Kandan.Views.Chatbox extends Backbone.View template: JST['chatbox'] tagName: 'div' className: 'chatbox' events: "keypress .chat-input": 'postMessageOnEnter' "click .post" : 'postMessage' postMessageOnEnter: (event)-> if event.keyCode == 13 @postMessage(event) even...
Fix message sender pastie link
Fix message sender pastie link
CoffeeScript
agpl-3.0
cloudstead/kandan,kandanapp/kandan,yfix/kandan,sai43/kandan,kandanapp/kandan,codefellows/kandan,sai43/kandan,cloudstead/kandan,kandanapp/kandan,yfix/kandan,Stackato-Apps/kandan,ipmobiletech/kandan,dz0ny/kandan,ych06/kandan,sai43/kandan,dz0ny/kandan,sai43/kandan,moss-zc/kandan,leohmoraes/kandan,miurahr/kandan,ych06/kand...
coffeescript
## Code Before: class Kandan.Views.Chatbox extends Backbone.View template: JST['chatbox'] tagName: 'div' className: 'chatbox' events: "keypress .chat-input": 'postMessageOnEnter' "click .post" : 'postMessage' postMessageOnEnter: (event)-> if event.keyCode == 13 @postMessage(e...
f8475c04be6d547e975cc05b6c8517a71606df8b
fol.hs
fol.hs
module Main where import FOL.Optimize.Optimize main :: IO () main = interact optimize
module Main where import FOL.Optimize.Optimize main :: IO () main = interact optimize >> putChar '\n'
Print newline at the end of the output.
Print newline at the end of the output.
Haskell
agpl-3.0
axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language
haskell
## Code Before: module Main where import FOL.Optimize.Optimize main :: IO () main = interact optimize ## Instruction: Print newline at the end of the output. ## Code After: module Main where import FOL.Optimize.Optimize main :: IO () main = interact optimize >> putChar '\n'
dc4ef23627636b42ff1235e4fce05cca2a4231dd
appveyor.yml
appveyor.yml
init: - git config --global core.autocrlf true test: off # this turns of AppVeyor automatic searching for test-assemblies, not the actual testing build_script: - ps: .\build.ps1 -target=All -archive artifacts: - path: artifacts/package/*.zip deploy: - provider: GitHub tag: $(APPVEYOR_REPO_TAG_NAME)...
init: - git config --global core.autocrlf true test: off # this turns of AppVeyor automatic searching for test-assemblies, not the actual testing build_script: - ps: .\build.ps1 -target=All -archive artifacts: - path: artifacts/package/*.zip deploy: - provider: GitHub tag: $(APPVEYOR_REPO_TAG_NAME)...
Move slack integration to `integrations`
Move slack integration to `integrations`
YAML
mit
DustinCampbell/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn
yaml
## Code Before: init: - git config --global core.autocrlf true test: off # this turns of AppVeyor automatic searching for test-assemblies, not the actual testing build_script: - ps: .\build.ps1 -target=All -archive artifacts: - path: artifacts/package/*.zip deploy: - provider: GitHub tag: $(APPVEYOR_REPO_TA...
c6ae4a50b9b3a0a8d9f39a3c23d8ae97fcd6be0b
src/settings.rs
src/settings.rs
use encoding::EncodingRef; use encoding::all::UTF_8; use loirc::{MonitorSettings, ReconnectionSettings}; /// Settings for the dispatcher. pub struct Settings<'a> { /// Address of the irc server. pub addr: &'a str, /// Preferred nickname. pub nickname: &'a str, /// Username. pub username: &'a st...
use encoding::EncodingRef; use encoding::all::UTF_8; use loirc::{MonitorSettings, ReconnectionSettings}; /// Settings for the dispatcher. pub struct Settings<'a> { /// Address of the irc server. pub addr: &'a str, /// Preferred nickname. pub nickname: &'a str, /// Username. pub username: &'a st...
Document the default values of Settings::new
Document the default values of Settings::new
Rust
mit
SBSTP/hiirc,SBSTP/hiirc
rust
## Code Before: use encoding::EncodingRef; use encoding::all::UTF_8; use loirc::{MonitorSettings, ReconnectionSettings}; /// Settings for the dispatcher. pub struct Settings<'a> { /// Address of the irc server. pub addr: &'a str, /// Preferred nickname. pub nickname: &'a str, /// Username. pub ...
cebd4d613cc95ef6e775581a6f77f4850e39020a
src/mdformat/_conf.py
src/mdformat/_conf.py
from __future__ import annotations import functools from pathlib import Path from typing import Mapping import tomli DEFAULT_OPTS = { "wrap": "keep", "number": False, "end_of_line": "lf", } class InvalidConfError(Exception): """Error raised given invalid TOML or a key that is not valid for mdfo...
from __future__ import annotations import functools from pathlib import Path from typing import Mapping import tomli DEFAULT_OPTS = { "wrap": "keep", "number": False, "end_of_line": "lf", } class InvalidConfError(Exception): """Error raised given invalid TOML or a key that is not valid for mdfo...
Improve error message on invalid conf key
Improve error message on invalid conf key
Python
mit
executablebooks/mdformat
python
## Code Before: from __future__ import annotations import functools from pathlib import Path from typing import Mapping import tomli DEFAULT_OPTS = { "wrap": "keep", "number": False, "end_of_line": "lf", } class InvalidConfError(Exception): """Error raised given invalid TOML or a key that is not va...
4833af57024e9a6e07b28c0612cf8a1c02fc8098
src/Draw/TabbedWindow.hs
src/Draw/TabbedWindow.hs
module Draw.TabbedWindow ( drawTabbedWindow ) where import Prelude () import Prelude.MH import Brick import Brick.Widgets.Border import Brick.Widgets.Center import Types import Themes tabbedWindowWidth :: Int tabbedWindowWidth = 78 tabbedWin...
module Draw.TabbedWindow ( drawTabbedWindow ) where import Prelude () import Prelude.MH import Brick import Brick.Widgets.Border import Brick.Widgets.Center import Types import Themes tabbedWindowWidth :: Int tabbedWindowWidth = 78 tabbedWin...
Use emphasis attribute in tabbed window title
Use emphasis attribute in tabbed window title
Haskell
bsd-3-clause
matterhorn-chat/matterhorn
haskell
## Code Before: module Draw.TabbedWindow ( drawTabbedWindow ) where import Prelude () import Prelude.MH import Brick import Brick.Widgets.Border import Brick.Widgets.Center import Types import Themes tabbedWindowWidth :: Int tabbedWindowWidth...
e3619a7a6976908c95473b97f191eba1d9184054
travis.sh
travis.sh
set -e # exit on errors set -x # echo each line export PATH=/home/travis/.cabal/bin:$PATH git clone https://github.com/ndmitchell/neil (cd neil && cabal install) echo $PATH ls /home/travis/.cabal/bin neil test
set -e # exit on errors set -x # echo each line export PATH=/home/travis/.cabal/bin:$PATH git clone https://github.com/ndmitchell/neil (cd neil && cabal install) neil test
Remove the debugging stuff, it does now work, just cache issues
Remove the debugging stuff, it does now work, just cache issues
Shell
bsd-3-clause
saep/neil,Daniel-Diaz/neil
shell
## Code Before: set -e # exit on errors set -x # echo each line export PATH=/home/travis/.cabal/bin:$PATH git clone https://github.com/ndmitchell/neil (cd neil && cabal install) echo $PATH ls /home/travis/.cabal/bin neil test ## Instruction: Remove the debugging stuff, it does now work, just cache issues ## Code Afte...
e0acd4d03fce9b4235c5a693923536e8485d221b
package.json
package.json
{ "name": "RBFS", "version": "0.1.0", "private": true, "description": "A RESTful FileSystem API for NodeJS ", "dependencies": { "basic-auth": "^1.1.0", "config": "^1.24.0", "express": "^4.14.0", "express-ipfilter": "^0.2.1", "filesize": "^3.3.0", "find-remove": "^1.0.0", "formidabl...
{ "name": "RBFS", "version": "0.1.0", "private": true, "description": "A RESTful FileSystem API for NodeJS ", "dependencies": { "basic-auth": "^1.1.0", "config": "^1.24.0", "express": "^4.14.0", "express-ipfilter": "^0.2.1", "filesize": "^3.3.0", "find-remove": "^1.0.0", "formidabl...
Add mkdir to npm test
Add mkdir to npm test
JSON
mit
cidrblock/RBFS
json
## Code Before: { "name": "RBFS", "version": "0.1.0", "private": true, "description": "A RESTful FileSystem API for NodeJS ", "dependencies": { "basic-auth": "^1.1.0", "config": "^1.24.0", "express": "^4.14.0", "express-ipfilter": "^0.2.1", "filesize": "^3.3.0", "find-remove": "^1.0.0"...
f0bc01603b491f14e593cc24329c18efc2beaf40
lib/amazon/metadata-config.js
lib/amazon/metadata-config.js
// -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: ...
// -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: ...
Make sure the extractBody is set (not just body)
Make sure the extractBody is set (not just body)
JavaScript
mit
chilts/awssum
javascript
## Code Before: // -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com>...
abb7024f69410852fae10885434f068b89ce50d0
lib/crispy/crispy_internal/class_spy.rb
lib/crispy/crispy_internal/class_spy.rb
module Crispy module CrispyInternal class ClassSpy < ::Module include SpyMixin include WithStubber @registry = {} def initialize klass, stubs_map = {} super() @received_messages = [] initialize_stubber stubs_map prepend_stubber klass sneak_into T...
module Crispy module CrispyInternal class ClassSpy < ::Module include SpyMixin include WithStubber @registry = {} def initialize klass, stubs_map = {} super() @received_messages = [] initialize_stubber stubs_map prepend_stubber klass sneak_into T...
Revert "add more codes to reproduce segfault more."
Revert "add more codes to reproduce segfault more." This reverts commit a56586e48bf3a88dd9d19068d53fdb67f3e2faac.
Ruby
mit
igrep/crispy
ruby
## Code Before: module Crispy module CrispyInternal class ClassSpy < ::Module include SpyMixin include WithStubber @registry = {} def initialize klass, stubs_map = {} super() @received_messages = [] initialize_stubber stubs_map prepend_stubber klass ...
9c0d2c756a6228a448cbf3a4883adfe27e9c7ea1
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.4) set(CMAKE_VERBOSE_MAKEFILE off) project(asio_http) include_directories(include) file(GLOB SOURCE_FILES src/*.cpp src/http/*.cpp) add_executable(asio_http ${SOURCE_FILES}) set_property(TARGET asio_http PROPERTY CXX_STANDARD 11)
cmake_minimum_required(VERSION 2.8.4) set(CMAKE_VERBOSE_MAKEFILE off) project(asio_http) include_directories(include) file(GLOB SOURCE_FILES src/*.cpp src/http/*.cpp) add_executable(asio_http ${SOURCE_FILES}) target_link_libraries(asio_http pthread) set_property(TARGET asio_http PROPERTY CXX_STANDARD 11)
Fix build: link with pthread
Fix build: link with pthread
Text
mit
guoxiao/asio_http
text
## Code Before: cmake_minimum_required(VERSION 2.8.4) set(CMAKE_VERBOSE_MAKEFILE off) project(asio_http) include_directories(include) file(GLOB SOURCE_FILES src/*.cpp src/http/*.cpp) add_executable(asio_http ${SOURCE_FILES}) set_property(TARGET asio_http PROPERTY CXX_STANDARD 11) ## Instruction: Fix build: link with...
17e4ddc2ef99dc4b5ac09ae7c243c5a7e5af4347
roles/shell/tasks/main.yml
roles/shell/tasks/main.yml
--- - file: path=~/.bin state=directory - include: packages.yml sudo: true - include: vim.yml - include: zsh.yml ### Other dotfiles - file: path=~/.config/htop state=directory - copy: dest=~/.{{ item }} src={{ item }} with_items: - gitconfig - hgrc - tmux.conf - tmux.theme.conf - screen...
--- - file: path=~/.bin state=directory - include: packages.yml sudo: true - include: vim.yml - include: zsh.yml ### Other dotfiles - file: path=~/.config/htop state=directory - file: path=~/.config/htop state=directory sudo: true - copy: dest=~/.{{ item }} src={{ item }} with_items: - gitcon...
Add `htop` and `screen` config files for root
Add `htop` and `screen` config files for root
YAML
mit
ryansb/workstation,ryansb/workstation,ryansb/workstation
yaml
## Code Before: --- - file: path=~/.bin state=directory - include: packages.yml sudo: true - include: vim.yml - include: zsh.yml ### Other dotfiles - file: path=~/.config/htop state=directory - copy: dest=~/.{{ item }} src={{ item }} with_items: - gitconfig - hgrc - tmux.conf - tmux.theme...
8e83da29f42e3b0f918779db904fec2274a45092
lib/plugins/console/deploy.js
lib/plugins/console/deploy.js
var term = require('term'), async = require('async'), fs = require('graceful-fs'), extend = require('../../extend'), list = extend.deployer.list(), util = require('../../util'), spawn = util.spawn; /* var generate = function(callback){ spawn({ command: hexo.core_dir + 'bin/hexo', args: ['generate'...
var term = require('term'), async = require('async'), fs = require('graceful-fs'), extend = require('../../extend'), list = extend.deployer.list(), util = require('../../util'), spawn = util.spawn; extend.console.register('deploy', 'Deploy', function(args){ var config = hexo.config.deploy; if (!config...
Use call API to call generate console
Deploy: Use call API to call generate console
JavaScript
mit
glabcn/hexo,elegantwww/hexo,amobiz/hexo,sailtoy/hexo,chenbojian/hexo,JasonMPE/hexo,zhipengyan/hexo,wyfyyy818818/hexo,nextexit/hexo,Richardphp/hexo,lknny/hexo,HiWong/hexo,hugoxia/hexo,0111001101111010/hexo,cjwind/hexx,meaverick/hexo,kennethlyn/hexo,DevinLow/DevinLow.github.io,allengaller/hexo,zoubin/hexo,zongkelong/hexo...
javascript
## Code Before: var term = require('term'), async = require('async'), fs = require('graceful-fs'), extend = require('../../extend'), list = extend.deployer.list(), util = require('../../util'), spawn = util.spawn; /* var generate = function(callback){ spawn({ command: hexo.core_dir + 'bin/hexo', a...
4440c18228fa5f6e8ff9cbaff527dfa7a5f67df4
tox.ini
tox.ini
[tox] envlist = py25,py26,py27,py32,py33,pypy [testenv] deps=nose coverage pyyaml six tempita commands=nosetests --with-coverage --cover-package=depsolver depsolver [testenv:pypy] deps=nose coverage pyyaml six tempita unittest2 [testenv:py25] deps=nose coverage ...
[tox] envlist = py26,py27,py32,py33,pypy [testenv] deps=nose coverage pyyaml six tempita commands=nosetests --with-coverage --cover-package=depsolver depsolver [testenv:pypy] deps=nose coverage pyyaml six tempita unittest2 [testenv:py26] deps=nose coverage pyyam...
Revert "MAINT: let's add 2.5 as well."
Revert "MAINT: let's add 2.5 as well." This reverts commit 5a6dc5467a04666b7cfa2b00efa43c8147957804.
INI
bsd-3-clause
enthought/depsolver,enthought/depsolver
ini
## Code Before: [tox] envlist = py25,py26,py27,py32,py33,pypy [testenv] deps=nose coverage pyyaml six tempita commands=nosetests --with-coverage --cover-package=depsolver depsolver [testenv:pypy] deps=nose coverage pyyaml six tempita unittest2 [testenv:py25] deps=nose ...
db4078b3db30ab7634de87b228ec81cd42e5d372
thinc/linear/avgtron.pxd
thinc/linear/avgtron.pxd
from cymem.cymem cimport Pool from preshed.maps cimport PreshMap from .features cimport ConjunctionExtracter from ..typedefs cimport weight_t, feat_t, class_t from ..structs cimport FeatureC from ..structs cimport ExampleC cdef class AveragedPerceptron: cdef readonly Pool mem cdef readonly PreshMap weights ...
from cymem.cymem cimport Pool from preshed.maps cimport PreshMap from .features cimport ConjunctionExtracter from ..typedefs cimport weight_t, feat_t, class_t from ..structs cimport FeatureC from ..structs cimport ExampleC cdef class AveragedPerceptron: cdef readonly Pool mem cdef readonly PreshMap weights ...
Add nr_out attribute to AveragedPerceptron
Add nr_out attribute to AveragedPerceptron
Cython
mit
explosion/thinc,spacy-io/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc
cython
## Code Before: from cymem.cymem cimport Pool from preshed.maps cimport PreshMap from .features cimport ConjunctionExtracter from ..typedefs cimport weight_t, feat_t, class_t from ..structs cimport FeatureC from ..structs cimport ExampleC cdef class AveragedPerceptron: cdef readonly Pool mem cdef readonly Pr...
1dc2856368e5e6852b526d86a0c78c5fe10b1550
myhronet/models.py
myhronet/models.py
import string from django.db import models class Blacklist(models.Model): domain = models.CharField(max_length=255, unique=True, null=True) def __unicode__(self): return self.domain class URL(models.Model): hashcode = models.CharField(max_length=10, unique=True, ...
import string from django.db import models class Blacklist(models.Model): domain = models.CharField(max_length=255, unique=True, null=True) def __unicode__(self): return self.domain class URL(models.Model): hashcode = models.CharField(max_length=10, unique=True, ...
Fix hashcode generation for existing URLs
Fix hashcode generation for existing URLs
Python
mit
myhro/myhronet,myhro/myhronet
python
## Code Before: import string from django.db import models class Blacklist(models.Model): domain = models.CharField(max_length=255, unique=True, null=True) def __unicode__(self): return self.domain class URL(models.Model): hashcode = models.CharField(max_length=10, unique=True, ...
c00187d8ada14b3de0b0e057e34751d582789857
content/browser/android/devtools_auth.cc
content/browser/android/devtools_auth.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/browser/android/devtools_auth.h" #include "base/logging.h" namespace content { bool CanUserConnectToDevTools(uid_t uid, gi...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/browser/android/devtools_auth.h" #include <unistd.h> #include <sys/types.h> #include "base/logging.h" namespace content { ...
Allow connections from the same user to DevTools server socket
[Android] Allow connections from the same user to DevTools server socket Allow connections to DevTools web debugging socket from the apps that run under the same UID than the browser app process itself. This requires signing the corresponding APK with the same keys than the browser app. BUG=398357 Review URL: https:...
C++
bsd-3-clause
crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,chuan9/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,Jonekee/chromium.src,dus...
c++
## Code Before: // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/browser/android/devtools_auth.h" #include "base/logging.h" namespace content { bool CanUserConnectToDevToo...
cc3f28e74145729c8b572fd9d2ed04d8fb297360
Testing/TestDICOMPython.py
Testing/TestDICOMPython.py
import sys import vtk import vtkDICOMPython # put everything into the vtk namespace for a in dir(vtkDICOMPython): if a[0] != '_': setattr(vtk, a, getattr(vtkDICOMPython, a)) m = vtk.vtkDICOMMetaData() m.SetAttributeValue(vtk.vtkDICOMTag(0x0008, 0x0005), 'ISO_IR 100') v = m.GetAttributeValue(vtk.vtkDICOM...
import sys import vtk import vtkDICOMPython # put everything into the vtk namespace for a in dir(vtkDICOMPython): if a[0] != '_': setattr(vtk, a, getattr(vtkDICOMPython, a)) m = vtk.vtkDICOMMetaData() if vtk.vtkVersion.GetVTKMajorVersion() < 6: sys.stderr.write("This test requires VTK 6 or higher.\n...
Modify python test for VTK 5.
Modify python test for VTK 5.
Python
bsd-3-clause
dgobbi/vtk-dicom,dgobbi/vtk-dicom,hendradarwin/vtk-dicom,dgobbi/vtk-dicom,hendradarwin/vtk-dicom,hendradarwin/vtk-dicom
python
## Code Before: import sys import vtk import vtkDICOMPython # put everything into the vtk namespace for a in dir(vtkDICOMPython): if a[0] != '_': setattr(vtk, a, getattr(vtkDICOMPython, a)) m = vtk.vtkDICOMMetaData() m.SetAttributeValue(vtk.vtkDICOMTag(0x0008, 0x0005), 'ISO_IR 100') v = m.GetAttributeVa...
c2b5f97a24b80a336e0683249a8aab4434c8c8ee
cp4d/vgw/tenantConfig.json
cp4d/vgw/tenantConfig.json
{ "tenants": [{ "tenantURI": "watson", "description": "Sample tenant configuration for CP4D.", "conversation": { "url": "", "workspaceID": "", "bearerToken": "" }, "stt": { "credentials": { "url": "", ...
{ "tenants": [{ "tenantURI": "1234567890", "description": "Voice Gateway Demo US 1", "conversation": { "url": "", "workspaceID": "", "bearerToken": "" }, "stt": { "credentials": { "url": "", "bearerToken": "" } }, "t...
Clarify that tenantURI is usually a phone number
Clarify that tenantURI is usually a phone number
JSON
apache-2.0
WASdev/sample.voice.gateway,WASdev/sample.voice.gateway,WASdev/sample.voice.gateway,WASdev/sample.voice.gateway,WASdev/sample.voice.gateway
json
## Code Before: { "tenants": [{ "tenantURI": "watson", "description": "Sample tenant configuration for CP4D.", "conversation": { "url": "", "workspaceID": "", "bearerToken": "" }, "stt": { "credentials": { "url":...
84015e61d993fb9e453baf0f4df6e1283c6f162f
features/step_definitions/debug_steps.rb
features/step_definitions/debug_steps.rb
And /^I wait for (\d*) seconds$/ do |seconds| sleep seconds.to_i end
And /^I wait for (\d*) seconds$/ do |seconds| sleep seconds.to_i end And /^I take a page screenshot$/ do Capybara::Screenshot.screenshot_and_open_image end
Add capybara screenshot debug step.
Add capybara screenshot debug step.
Ruby
mit
iridakos/duckrails,iridakos/duckrails,iridakos/duckrails,iridakos/duckrails
ruby
## Code Before: And /^I wait for (\d*) seconds$/ do |seconds| sleep seconds.to_i end ## Instruction: Add capybara screenshot debug step. ## Code After: And /^I wait for (\d*) seconds$/ do |seconds| sleep seconds.to_i end And /^I take a page screenshot$/ do Capybara::Screenshot.screenshot_and_open_image end
9dfde68464d1a6cb8e42fc0ba86d4cded346b089
src/app/forms/flatpickr/flatpickr.component.sass
src/app/forms/flatpickr/flatpickr.component.sass
// *************************************# // [flatpickr.component.sass] // *************************************#
// *************************************# // [flatpickr.component.sass] // *************************************# .form-control[readonly] background-color: #FFFFFF
Fix input styling for flatpickr input element
Fix input styling for flatpickr input element
Sass
mit
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps
sass
## Code Before: // *************************************# // [flatpickr.component.sass] // *************************************# ## Instruction: Fix input styling for flatpickr input element ## Code After: // *************************************# // [flatpickr.component.sass] // **********************************...
840b3e47e6a58f800883b1cb6f763eb3f4f99db6
.travis.yml
.travis.yml
language: python python: - "2.7" # command to install dependencies install: "pip install -r requirements.txt" # command to run tests script: python -m unittest discover deploy: provider: releases api_key: secure: FD56NspznFaROwJp9BZycpjVPD9fuy9m25S3lFnQaDS93ztCAiBp1h53SrCKsDIZqY7ah9G9+AXP0/0NTJPMYGTH6W7B6oSe...
language: python python: - "2.7" # command to install dependencies install: "pip install -r requirements.txt" # command to run tests script: python -m unittest discover after_success: - git config --global user.email "tomaszguzialek_flask-api@travis-ci.org" - git config --global user.name "Travis CI" - export ...
Use git to create tag after successful build.
Use git to create tag after successful build.
YAML
apache-2.0
tomaszguzialek/flask-api,tomaszguzialek/flask-api,tomaszguzialek/flask-api
yaml
## Code Before: language: python python: - "2.7" # command to install dependencies install: "pip install -r requirements.txt" # command to run tests script: python -m unittest discover deploy: provider: releases api_key: secure: FD56NspznFaROwJp9BZycpjVPD9fuy9m25S3lFnQaDS93ztCAiBp1h53SrCKsDIZqY7ah9G9+AXP0/0N...
242a53f529f6350c70906069825fd0cf8fc7bd96
features/settings/default-php-version.feature
features/settings/default-php-version.feature
Feature: It is possible to interact with the settings of the generator Scenario: Get the default php version When I run the command "settings:reset" And I run the command "settings:get:default-php-version" Then the output should be """ 7.0 """
Feature: It is possible to interact with the settings of the generator Scenario: Get the default php version When I run the command "settings:reset" And I run the command "settings:get:default-php-version" Then the output should be """ 7.0 """ Scenario: Check if you can change the default...
Check the setting and resetting of the php version
Check the setting and resetting of the php version
Cucumber
mit
carakas/fork-cms-module-generator,carakas/fork-cms-module-generator,carakas/fork-cms-module-generator
cucumber
## Code Before: Feature: It is possible to interact with the settings of the generator Scenario: Get the default php version When I run the command "settings:reset" And I run the command "settings:get:default-php-version" Then the output should be """ 7.0 """ ## Instruction: Check the setti...
f9421ab35aecdede1ca8454e231043e9f94edba6
server/config.js
server/config.js
path = require('path'); module.exports = { mongo: { dbUrl: 'https://api.mongolab.com/api/1', // The base url of the MongoLab DB server apiKey: 'gubV4zs5yN-ItUUQDpgUx0pUA98K3MYH', // Our MongoLab API key dbPath: 'mongodb://root:4DaysKillerDemo@ds029979.mongolab.com:29979/paymymeeting'...
path = require('path'); module.exports = { mongo: { dbUrl: 'https://api.mongolab.com/api/1', // The base url of the MongoLab DB server apiKey: 'gubV4zs5yN-ItUUQDpgUx0pUA98K3MYH', // Our MongoLab API key //dbPath: 'mongodb://root:4DaysKillerDemo@ds029979.mongolab.com:29979/paymymeetin...
Add localhost path for MongoDB
Add localhost path for MongoDB
JavaScript
mit
PythagoreLab/PayMyMeeting
javascript
## Code Before: path = require('path'); module.exports = { mongo: { dbUrl: 'https://api.mongolab.com/api/1', // The base url of the MongoLab DB server apiKey: 'gubV4zs5yN-ItUUQDpgUx0pUA98K3MYH', // Our MongoLab API key dbPath: 'mongodb://root:4DaysKillerDemo@ds029979.mongolab.com:299...
ef404caed4279726cd5d4edf9aca93b318273f54
lib/eventful/performer.rb
lib/eventful/performer.rb
module Eventful class Performer include Resource def self.all(date = nil) feed_for(:performers, :full, date) end def self.updates(date = nil) feed_for(:performers, :updates, date) end def self.find(id, options = {}) options.merge!(id: id) response = get('performers/g...
module Eventful class Performer include Resource def self.all(date = nil) feed_for(:performers, :full, date) end def self.updates(date = nil) feed_for(:performers, :updates, date) end def self.find(id, options = {}) options.merge!(id: id) response = get('performers/g...
Remove with_errors option from Performer
Remove with_errors option from Performer
Ruby
mit
tabeso/eventful-ruby
ruby
## Code Before: module Eventful class Performer include Resource def self.all(date = nil) feed_for(:performers, :full, date) end def self.updates(date = nil) feed_for(:performers, :updates, date) end def self.find(id, options = {}) options.merge!(id: id) response = g...
27573a51540fa24dabf0fffdc10ee4297d981a59
.travis.yml
.travis.yml
language: python python: - 2.7 - 3.2 - 3.3 - 3.4 - nightly - pypy - pypy3 matrix: allow_failures: - python: nightly - python: pypy3 sudo: false install: - pip install coveralls flake8 pep257 - npm install eslint script: - flake8 farcy - pep257 farcy - coverage run --source=farcy setup.py t...
language: python python: - 2.7 - 3.2 - 3.3 - 3.4 - nightly - pypy - pypy3 matrix: allow_failures: - python: nightly - python: pypy3 sudo: false install: - pip install coveralls flake8 pep257 - npm install eslint - gem install rubocop script: - flake8 farcy - pep257 farcy - coverage run -...
Install rubocop before tests run
Install rubocop before tests run
YAML
bsd-2-clause
appfolio/farcy,balloob/farcy,balloob/farcy,appfolio/farcy,balloob/farcy,appfolio/farcy
yaml
## Code Before: language: python python: - 2.7 - 3.2 - 3.3 - 3.4 - nightly - pypy - pypy3 matrix: allow_failures: - python: nightly - python: pypy3 sudo: false install: - pip install coveralls flake8 pep257 - npm install eslint script: - flake8 farcy - pep257 farcy - coverage run --source=...
02d3c60b7f596c188ae6e7d93b10c80f58e1d0c4
src/main/java/space/gatt/magicaproject/managers/BlockManager.java
src/main/java/space/gatt/magicaproject/managers/BlockManager.java
package space.gatt.magicaproject.managers; import org.bukkit.Bukkit; import space.gatt.magicaproject.MagicaMain; import space.gatt.magicaproject.objects.MagicaBlock; import java.util.ArrayList; import java.util.List; public class BlockManager { private List<MagicaBlock> runningBlocks = new ArrayList<>(); public ...
package space.gatt.magicaproject.managers; import org.bukkit.Bukkit; import space.gatt.magicaproject.MagicaMain; import space.gatt.magicaproject.objects.MagicCrafter; import space.gatt.magicaproject.objects.MagicaBlock; import java.util.ArrayList; import java.util.List; public class BlockManager { private List<Mag...
Call for all blocks to save
Call for all blocks to save
Java
mit
RealGatt/MagicaProject
java
## Code Before: package space.gatt.magicaproject.managers; import org.bukkit.Bukkit; import space.gatt.magicaproject.MagicaMain; import space.gatt.magicaproject.objects.MagicaBlock; import java.util.ArrayList; import java.util.List; public class BlockManager { private List<MagicaBlock> runningBlocks = new ArrayLis...
c3a05c1ac23a7120500ff9fb3f0e1d573c7c91d4
app/gem/actions.coffee
app/gem/actions.coffee
'use strict' toggleGem = Reflux.createAction() module.exports = toggleGem: toggleGem
'use strict' actions = Reflux.createActions [ 'toggleGem' ] module.exports = actions
Refactor using Reflux sugar functions
Refactor using Reflux sugar functions Reflux has quite a few sugar functions that prevent coderz from writing down useless boilerplate. - On the actions side, one can simply specify an array of action names - On the store side, one can listen to an array of actions and handle them with CoC methods Beautiful.
CoffeeScript
apache-2.0
IngloriousCoderz/reflux-proto,IngloriousCoderz/reflux-proto
coffeescript
## Code Before: 'use strict' toggleGem = Reflux.createAction() module.exports = toggleGem: toggleGem ## Instruction: Refactor using Reflux sugar functions Reflux has quite a few sugar functions that prevent coderz from writing down useless boilerplate. - On the actions side, one can simply specify an array of ac...
293af0e7172c87bec1ece10c2886ad03117fcdba
app/main/fonts.sass
app/main/fonts.sass
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700|Montserrat:300,500,600|Material+Icons|Lobster') @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css')
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700|Montserrat:300,500,600|Material+Icons|Lobster') @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css') @font-face font-family: Charis font-style: normal font-weight: bold src: local('Charis'), ...
Load Charis font for Arkis logo
Load Charis font for Arkis logo
Sass
mit
controversial/controversial.io,controversial/controversial.io,controversial/controversial.io
sass
## Code Before: @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700|Montserrat:300,500,600|Material+Icons|Lobster') @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css') ## Instruction: Load Charis font for Arkis logo ## Code After: @import url('https...