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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
88ec6dc5bfa4c6c6e66f0034b4860fda021cb391 | demo/graphics/frame.js | demo/graphics/frame.js | 'use strict';
var PIXI = window.PIXI,
Point = require('../data/point'),
Rect = require('../data/rect');
function Frame(position, url, options) {
this.pos = position;
this.dir = options.direction || new Point(1, 1);
this.offset = options.offset || new Point(0, 0);
var base = PIXI.BaseTexture.fromImage... | 'use strict';
var PIXI = window.PIXI,
Point = require('../data/point'),
Rect = require('../data/rect');
function Frame(position, url, options) {
this.pos = position;
this.dir = options.direction || new Point(1, 1);
this.offset = options.offset || new Point(0, 0);
var base = PIXI.BaseTexture.fromImage... | Remove deoptimized calls based on profiling | Remove deoptimized calls based on profiling
| JavaScript | mit | reissbaker/gamekernel,reissbaker/gamekernel | javascript | ## Code Before:
'use strict';
var PIXI = window.PIXI,
Point = require('../data/point'),
Rect = require('../data/rect');
function Frame(position, url, options) {
this.pos = position;
this.dir = options.direction || new Point(1, 1);
this.offset = options.offset || new Point(0, 0);
var base = PIXI.BaseT... |
65bfe55ca0448dc941739deea117347798807fc9 | app/assets/javascripts/patient_auto_complete.js | app/assets/javascripts/patient_auto_complete.js | $(document).ready(function() {
$("[data-autocomplete-source]").each(function() {
var url = $(this).data("autocomplete-source");
var target = $(this).data("autocomplete-rel");
$(this).autocomplete({
minLength: 2,
source: function(request,response) {
var path = url + "?term=" + request.t... | $(document).ready(function() {
$("[data-autocomplete-source]").each(function() {
var url = $(this).data("autocomplete-source");
var target = $(this).data("autocomplete-rel");
$(this).autocomplete({
minLength: 2,
source: function(request,response) {
$.ajax({
url: url,
... | Handle error if autocomplete query fails | Handle error if autocomplete query fails
| JavaScript | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | javascript | ## Code Before:
$(document).ready(function() {
$("[data-autocomplete-source]").each(function() {
var url = $(this).data("autocomplete-source");
var target = $(this).data("autocomplete-rel");
$(this).autocomplete({
minLength: 2,
source: function(request,response) {
var path = url + "?te... |
c9d8c2c202bd9e6706cb094cd49f3c26e2232341 | Assets/Shaders/MW_Standard_Blended.shader | Assets/Shaders/MW_Standard_Blended.shader | Shader "TES Unity/Standard Blended"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
[HideInInspector] _SrcBlend("__src", Float) = 1.0
[HideInInspector] _DstBlend("__dst", F... | Shader "TES Unity/Standard Blended"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
[HideInInspector] _SrcBlend("__src", Float) = 1.0
[HideInInspector] _DstBlend("__dst", F... | Fix for transparent material shadows. Alpha blended material + alpha tested shadows | Fix for transparent material shadows. Alpha blended material + alpha tested shadows
| GLSL | mit | demonixis/TESUnity,ColeDeanShepherd/TESUnity | glsl | ## Code Before:
Shader "TES Unity/Standard Blended"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
[HideInInspector] _SrcBlend("__src", Float) = 1.0
[HideInInspector] _Dst... |
be927e17787bd722f4974fdde50ca615522fb51d | README.md | README.md | * Add Polymer
* Create some components
* Create comic layout with components
| * Try to get Heroku to build the app upon code check-in
* Add Polymer
* Create some components
* Create comic layout with components
| Add todo item for build system | Add todo item for build system | Markdown | mit | megafatsquirrel/RainbowScratch,megafatsquirrel/RainbowScratch | markdown | ## Code Before:
* Add Polymer
* Create some components
* Create comic layout with components
## Instruction:
Add todo item for build system
## Code After:
* Try to get Heroku to build the app upon code check-in
* Add Polymer
* Create some components
* Create comic layout with components
|
6065e7833fcce06b3f6ba5a9c159e533cab33efa | pubspec.yaml | pubspec.yaml | name: dartcoin
version: 0.0.0
author: Steven Roose <stevenroose@gmail.com>
description: A Bitcoin library for Dart. Pub-test release.
homepage: http://www.dartcoin.org/
dependencies:
bignum: '>=0.0.4'
cipher:
path: /Users/steven/git/cipher
collection: any
crypto: any
json: any
json_rpc: any
asn1lib:
... | name: dartcoin
version: 0.0.0
author: Steven Roose <stevenroose@gmail.com>
description: A Bitcoin library for Dart. Pub-test release.
homepage: http://www.dartcoin.org/
dependencies:
bignum: '>=0.0.4'
cipher:
path: /home/steven/git/cipher
collection: any
crypto: any
json: any
json_rpc: any
asn1lib: '>... | Set minimum version of asn1lib to 0.3.1 | Set minimum version of asn1lib to 0.3.1
| YAML | mit | stevenroose/dartcoin-lib,dartcoin/dartcoin-lib | yaml | ## Code Before:
name: dartcoin
version: 0.0.0
author: Steven Roose <stevenroose@gmail.com>
description: A Bitcoin library for Dart. Pub-test release.
homepage: http://www.dartcoin.org/
dependencies:
bignum: '>=0.0.4'
cipher:
path: /Users/steven/git/cipher
collection: any
crypto: any
json: any
json_rpc: ... |
e02f59c9abde988058f4b2745ddc392bed4bb94d | README.rst | README.rst | Flask-MongoKit
==============
Flask-MongoKit simplifies to use `MongoKit`_, a powerful `MongoDB`_ ORM
in Flask applications.
.. _MongoKit: http://namlook.github.com/mongokit/
.. _MongoDB: http://www.mongodb.org/
.. _here: http://bitbucket.org/Jarus/flask-mongokit/
Installation
------------
The installation is thank... | Flask-MongoKit
==============
.. image:: https://secure.travis-ci.org/jarus/flask-mongokit.png
:target: http://travis-ci.org/jarus/flask-mongokit
Flask-MongoKit simplifies to use `MongoKit`_, a powerful `MongoDB`_ ORM
in Flask applications.
.. _MongoKit: http://namlook.github.com/mongokit/
.. _MongoDB: http://ww... | Add Travis CI status image to readme | Add Travis CI status image to readme
| reStructuredText | bsd-3-clause | jarus/flask-mongokit,VishvajitP/flask-mongokit,VishvajitP/flask-mongokit,jarus/flask-mongokit | restructuredtext | ## Code Before:
Flask-MongoKit
==============
Flask-MongoKit simplifies to use `MongoKit`_, a powerful `MongoDB`_ ORM
in Flask applications.
.. _MongoKit: http://namlook.github.com/mongokit/
.. _MongoDB: http://www.mongodb.org/
.. _here: http://bitbucket.org/Jarus/flask-mongokit/
Installation
------------
The insta... |
3a0ab52bbab3ffea86ae51f189159dda47634572 | app/controllers/pantry_items.js | app/controllers/pantry_items.js | var PantryItemsController = Em.ArrayController.extend({
actions: {
incrementQuantity: function(item) {
item.incrementProperty('quantity', 1);
},
decrementQuantity: function(item) {
if (item.get('quantity') > 0) {
item.incrementProperty('quantity', -1);
}
},
createNewItem:... | var PantryItemsController = Em.ArrayController.extend({
actions: {
incrementQuantity: function(item) {
item.incrementProperty('quantity', 1);
},
decrementQuantity: function(item) {
if (item.get('quantity') > 0) {
item.incrementProperty('quantity', -1);
}
},
createNewItem:... | Add feature to only add new items when title is unique and non-empty. | Add feature to only add new items when title is unique and non-empty.
| JavaScript | mit | wukkuan/inventory | javascript | ## Code Before:
var PantryItemsController = Em.ArrayController.extend({
actions: {
incrementQuantity: function(item) {
item.incrementProperty('quantity', 1);
},
decrementQuantity: function(item) {
if (item.get('quantity') > 0) {
item.incrementProperty('quantity', -1);
}
},
... |
816a2a33c5dea8870cfdf106922cf665d8f1714e | README.md | README.md |
The ``warpdrive`` project provide the scripts for implementing a build and
deployment system for Python web applications using Docker. The scripts can
be integrated into a suitable Docker base image to provide a more
structured way for incorporating a Python web application into a Docker
image, with ``warpdrive`` doin... |
The ``warpdrive`` project provide the scripts for implementing a build and
deployment system for Python web applications using Docker. The scripts can
be integrated into a suitable Docker base image to provide a more
structured way for incorporating a Python web application into a Docker
image, with ``warpdrive`` doin... | Fix up Docker image references. | Fix up Docker image references.
| Markdown | bsd-2-clause | GrahamDumpleton/warpdrive-python,GrahamDumpleton/warpdrive-python,GrahamDumpleton/warpdrive,GrahamDumpleton/warpdrive | markdown | ## Code Before:
The ``warpdrive`` project provide the scripts for implementing a build and
deployment system for Python web applications using Docker. The scripts can
be integrated into a suitable Docker base image to provide a more
structured way for incorporating a Python web application into a Docker
image, with ``... |
39680d46b55b25b04e1cb3b30d00f0403dc0f636 | README.md | README.md |
Docker container for Vim.
## Quickstart
Assuming you have docker installed, add this to your `~/.bash_profile`.
```bash
alias vim="docker run --rm -it -v \"$PWD:/workspace\" bcbcarl/vim"
```
Happy Vimming!
## License
The MIT License (MIT)
Copyright (c) 2014 Carl X. Su
|
* [`7.4`, `latest` (7.4/Dockerfile)](https://github.com/bcbcarl/docker-vim/blob/master/7.4/Dockerfile)
Docker container for Vim.
## Quickstart
Assuming you have docker installed, add this to your `~/.bash_profile`.
```bash
alias vim="docker run --rm -it -v \"$PWD:/workspace\" bcbcarl/vim"
```
Happy Vimming!
## L... | Add info about supported tags | Add info about supported tags
| Markdown | mit | cdinu/docker-vim,bcbcarl/docker-vim | markdown | ## Code Before:
Docker container for Vim.
## Quickstart
Assuming you have docker installed, add this to your `~/.bash_profile`.
```bash
alias vim="docker run --rm -it -v \"$PWD:/workspace\" bcbcarl/vim"
```
Happy Vimming!
## License
The MIT License (MIT)
Copyright (c) 2014 Carl X. Su
## Instruction:
Add info a... |
ac2f484c3ac210decac9f351bea5e9415cf8c30b | src/gox_build.sh | src/gox_build.sh | export GOPATH=$GOPATH:/Users/jemy/QiniuCloud/Projects/qshell
gox -os="windows"
gox -os="darwin"
| export GOPATH=$GOPATH:/Users/jemy/QiniuCloud/Projects/qshell
gox -os="darwin" -arch="386"
gox -os="darwin" -arch="amd64"
gox -os="windows" -arch="386"
gox -os="windows" -arch="amd64"
gox -os="linux" -arch="386"
gox -os="linux" -arch="amd64"
mv src_* ../bin/
| Add new gox build script. | Add new gox build script.
| Shell | mit | qiniu-lab/qshell,qiniu/qshell,jemygraw/qshell,liangchao07115/qshell,liangchao07115/qshell,jemygraw/qshell,qiniu-lab/qshell | shell | ## Code Before:
export GOPATH=$GOPATH:/Users/jemy/QiniuCloud/Projects/qshell
gox -os="windows"
gox -os="darwin"
## Instruction:
Add new gox build script.
## Code After:
export GOPATH=$GOPATH:/Users/jemy/QiniuCloud/Projects/qshell
gox -os="darwin" -arch="386"
gox -os="darwin" -arch="amd64"
gox -os="windows" -arch=... |
c493a7d58878f0c86d1cd5521a04637f6f3abcd9 | src/cljs/word_finder/actions/call_server.cljs | src/cljs/word_finder/actions/call_server.cljs | (ns ^:figwheel-load word-finder.actions.call-server
(:require [ajax.core :refer [GET]]))
(def server "http://localhost:8080/api/words/")
;;FIXME: the string interpolation can be easily broken.
(defn find-words [input-string callback]
(GET (str server "find" "?find=" input-string)
{:handler callback
... | (ns ^:figwheel-load word-finder.actions.call-server
(:require [ajax.core :refer [GET]]))
(def server "http://localhost:8080/api/words/")
(defn find-words
"Call the server-side find-words, returning JSON"
[input-string callback]
(GET (str server "find")
{:params {:find input-string}
:format... | Fix the cljs server calls to use ajax.core :params | Fix the cljs server calls to use ajax.core :params
Instead of doing poor string interpolation, just use the library.
| Clojure | epl-1.0 | davidjameshumphreys/clojure-word-finder | clojure | ## Code Before:
(ns ^:figwheel-load word-finder.actions.call-server
(:require [ajax.core :refer [GET]]))
(def server "http://localhost:8080/api/words/")
;;FIXME: the string interpolation can be easily broken.
(defn find-words [input-string callback]
(GET (str server "find" "?find=" input-string)
{:handler ... |
1bd83af7657592772f8291f2dd49c09f588ae839 | README.rst | README.rst | geoportailv3 project
===================
geoportailv3 is the implementation of the v3 of the map viewer of the luxembourgish geoportal.
Read the `Documentation <http://docs.camptocamp.net/c2cgeoportal/>`_
System-level dependencies
-------------------------
The following must be installed on the system:
* ``git``
... | geoportailv3 project
===================
[](https://travis-ci.org/Geoportail-Luxembourg/geoportailv3)
geoportailv3 is the implementation of the v3 of the map viewer of the luxembourgish geoportal.
Read the `Documentation <http... | Add badge to display current travis build status in github | Add badge to display current travis build status in github
| reStructuredText | mit | Geoportail-Luxembourg/geoportailv3,geoportallux/geoportailv3-gisgr,geoportallux/geoportailv3-gisgr,geoportallux/geoportailv3-gisgr,Geoportail-Luxembourg/geoportailv3,geoportallux/geoportailv3-gisgr,Geoportail-Luxembourg/geoportailv3,Geoportail-Luxembourg/geoportailv3,Geoportail-Luxembourg/geoportailv3 | restructuredtext | ## Code Before:
geoportailv3 project
===================
geoportailv3 is the implementation of the v3 of the map viewer of the luxembourgish geoportal.
Read the `Documentation <http://docs.camptocamp.net/c2cgeoportal/>`_
System-level dependencies
-------------------------
The following must be installed on the sys... |
a0320ff6a143eeb2b523bb1a046a8568823438ab | tests/run-tests.sh | tests/run-tests.sh | cd "$(dirname "$0")"
if [ ! -d ./bin ]; then
mkdir -p ./bin
fi
# Ensure we fail immediately if any command fails.
set -e
pushd ./bin > /dev/null
cmake -DUSE_OS_MESA=ON ..
make -j4
./batch-testing
popd
| cd "$(dirname "$0")"
if [ ! -d ./bin ]; then
mkdir -p ./bin
fi
# Ensure we fail immediately if any command fails.
set -e
pushd ./bin > /dev/null
cmake -DCPM_MODULE_CACHE_DIR=${HOME}/.cpm_cache -DUSE_OS_MESA=ON ..
make -j4
./batch-testing
popd
| Add default module cache directory for tests. | Add default module cache directory for tests.
| Shell | mit | iauns/cpm-gl-batch-testing,iauns/cpm-gl-batch-testing | shell | ## Code Before:
cd "$(dirname "$0")"
if [ ! -d ./bin ]; then
mkdir -p ./bin
fi
# Ensure we fail immediately if any command fails.
set -e
pushd ./bin > /dev/null
cmake -DUSE_OS_MESA=ON ..
make -j4
./batch-testing
popd
## Instruction:
Add default module cache directory for tests.
## Code After:
cd "$(dirnam... |
081ad2792d333bf01efdfa7cee9e599a591c3dc4 | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
branches:
only:
- master
- composer
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
script:
- phpunit -c tests/phpunit.xml.dist tests/small
- phpunit -c tests/phpunit.xml.dist tests/medium
notifications:
email:
... | language: php
php:
- 5.3
- 5.4
branches:
only:
- master
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
script:
- phpunit -c tests/phpunit.xml.dist tests/small
- phpunit -c tests/phpunit.xml.dist tests/medium
notifications:
email:
- mjs@beebo.o... | Remove "composer" branch from CI tests | Remove "composer" branch from CI tests
| YAML | mit | ithinkihaveacat/byron,ithinkihaveacat/byron | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
branches:
only:
- master
- composer
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
script:
- phpunit -c tests/phpunit.xml.dist tests/small
- phpunit -c tests/phpunit.xml.dist tests/medium
notificati... |
55ad629f0fc469f705556b66d16e194b243586bb | templates/audiotracks/user_index.html | templates/audiotracks/user_index.html | {% extends "audiotracks/base_listing.html" %}
{% load i18n %}
{% block head_title %}{% trans 'Your Tracks' %}{% endblock %}
{% block body_title %}{% trans 'Your Tracks' %}{% endblock %}
| {% extends "audiotracks/base_listing.html" %}
{% load i18n %}
{% block head_title %}
{% blocktrans %}Tracks from {{ username }}{% endblocktrans %}
{% endblock %}
{% block body_title %}
{% blocktrans %}Tracks from {{ username }}{% endblocktrans %}
{% endblock %}
| Update tracks user index title | Update tracks user index title
| HTML | mit | fgirault/smeuhsocial,amarandon/smeuhsocial,fgirault/smeuhsocial,fgirault/smeuhsocial,amarandon/smeuhsocial,amarandon/smeuhsocial | html | ## Code Before:
{% extends "audiotracks/base_listing.html" %}
{% load i18n %}
{% block head_title %}{% trans 'Your Tracks' %}{% endblock %}
{% block body_title %}{% trans 'Your Tracks' %}{% endblock %}
## Instruction:
Update tracks user index title
## Code After:
{% extends "audiotracks/base_listing.html" %}
{% load... |
383e35a1d8a13896abf6e8c8e1789713dfc3d1c8 | lib/app/views/setup/clojure.erb | lib/app/views/setup/clojure.erb | <h3>Clojure</h3>
<h4>Installation:</h4>
<ul>
<li>
Homebrew for Mac OS X
<ul>
<li>Update your homebrew to latest: <code>brew update</code></li>
<li>Install Clojure: <code>brew install clojure</code></li>
</ul>
</li>
<li>
Other
<ul>
<li>Download the latest table release jar f... | <h3>Clojure</h3>
<h4>Installation:</h4>
<ul>
<li>
Homebrew for Mac OS X
<ul>
<li>Update your homebrew to latest: <code>brew update</code></li>
<li>Install Leiningen: <code>brew install leiningen</code></li>
<li>Install lein-exec: edit <code>~/.lein/profiles.clj</code> and add <code>{:user ... | Add lein-exec instructions for Clojure on OSX | Add lein-exec instructions for Clojure on OSX
| HTML+ERB | agpl-3.0 | colinrubbert/exercism.io,MBGeoff/Exercism.io-mbgeoff,nathanbwright/exercism.io,hanumakanthvvn/exercism.io,beni55/exercism.io,copiousfreetime/exercism.io,bmulvihill/exercism.io,tejasbubane/exercism.io,Tonkpils/exercism.io,k4rtik/exercism.io,mscoutermarsh/exercism_coveralls,exercistas/exercism.io,praveenpuglia/exercism.i... | html+erb | ## Code Before:
<h3>Clojure</h3>
<h4>Installation:</h4>
<ul>
<li>
Homebrew for Mac OS X
<ul>
<li>Update your homebrew to latest: <code>brew update</code></li>
<li>Install Clojure: <code>brew install clojure</code></li>
</ul>
</li>
<li>
Other
<ul>
<li>Download the latest tab... |
1ea208934307fccf4c93389bff536a442667b28c | Config/core.php | Config/core.php | <?php
if (file_exists(APP . 'Config' . DS . 'croogo.php')) {
require APP . 'Config' . DS . 'croogo.php';
} else {
if (!defined('LOG_ERROR')) {
define('LOG_ERROR', LOG_ERR);
}
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
'level' => E_ALL & ~E_DEPRECATED,
'trace' => true
));
... | <?php
if (file_exists(APP . 'Config' . DS . 'croogo.php')) {
require APP . 'Config' . DS . 'croogo.php';
} else {
if (!defined('LOG_ERROR')) {
define('LOG_ERROR', LOG_ERR);
}
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
'level' => E_ALL & ~E_DEPRECATED,
'trace' => true
));
... | Fix missing default session settings prior to the installation process | Fix missing default session settings prior to the installation process
Closes #440
Cherry-picked from: croogo/croogo@f51f0852abbf
| PHP | mit | sitex/croogo-app-expander,sitex/heroku-croogo-app,sitex/heroku-croogo-app,rchavik/croogo-app,elbakai/app,elbakai/app,sitex/croogo-app-expander,rchavik/croogo-app,elbakai/app,elbakai/app,sitex/croogo-app-expander,sitex/heroku-croogo-app,rchavik/croogo-app | php | ## Code Before:
<?php
if (file_exists(APP . 'Config' . DS . 'croogo.php')) {
require APP . 'Config' . DS . 'croogo.php';
} else {
if (!defined('LOG_ERROR')) {
define('LOG_ERROR', LOG_ERR);
}
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
'level' => E_ALL & ~E_DEPRECATED,
'trace... |
af90cf6febfceb7bee28265a1db7fc89071d415e | src/test/scala/persistence/dal/SuppliersDAATest.scala | src/test/scala/persistence/dal/SuppliersDAATest.scala | package persistence.dal
import persistence.dal.SuppliersDAA.{GetSupplierById, Save, CreateTables}
import persistence.entities.{Supplier}
import scala.concurrent.Future
import org.junit.runner.RunWith
import org.scalatest.{BeforeAndAfterAll, FunSuite}
import org.scalatest.junit.JUnitRunner
import akka.pattern.ask
impor... | package persistence.dal
import persistence.dal.SuppliersDAA.{GetSupplierById, Save, CreateTables}
import persistence.entities.{Supplier}
import scala.concurrent.Future
import org.junit.runner.RunWith
import org.scalatest.{BeforeAndAfterAll, FunSuite}
import org.scalatest.junit.JUnitRunner
import akka.pattern.ask
impor... | Test for get supplier by id that should return an empty sequence | Test for get supplier by id that should return an empty sequence
| Scala | apache-2.0 | edvorkin/simple-docker-scala-app,Kanris826/spray-slick-swagger,cdiniz/spray-slick-swagger,cdiniz/spray-slick-swagger,Kanris826/spray-slick-swagger,edvorkin/simple-docker-scala-app | scala | ## Code Before:
package persistence.dal
import persistence.dal.SuppliersDAA.{GetSupplierById, Save, CreateTables}
import persistence.entities.{Supplier}
import scala.concurrent.Future
import org.junit.runner.RunWith
import org.scalatest.{BeforeAndAfterAll, FunSuite}
import org.scalatest.junit.JUnitRunner
import akka.p... |
4b79cf6107910b6e4d88a1b6a35aa20f128aac19 | software/hermit.md | software/hermit.md | ---
layout: page
title: The Haskell Equational Reasoning Model-to-Implementation Tunnel (HERMIT)
redirect_from:
- /Tools/HERMIT/
---
The **Haskell Equational Reasoning Model-to-Implementation Tunnel**
(HERMIT) is a GHC plugin that allows post-hoc transformations
to be applied to Haskell programs, after compilation has... | ---
layout: page
title: The Haskell Equational Reasoning Model-to-Implementation Tunnel (HERMIT)
redirect_from:
- /Tools/HERMIT/
---
The **Haskell Equational Reasoning Model-to-Implementation Tunnel**
(HERMIT) is a GHC plugin that allows post-hoc transformations
to be applied to Haskell programs, after compilation has... | Add a couple cites to HERMIT software page | Add a couple cites to HERMIT software page
| Markdown | bsd-3-clause | ku-fpg/ku-fpg.github.io,ku-fpg/ku-fpg.github.io,ku-fpg/ku-fpg.github.io | markdown | ## Code Before:
---
layout: page
title: The Haskell Equational Reasoning Model-to-Implementation Tunnel (HERMIT)
redirect_from:
- /Tools/HERMIT/
---
The **Haskell Equational Reasoning Model-to-Implementation Tunnel**
(HERMIT) is a GHC plugin that allows post-hoc transformations
to be applied to Haskell programs, after... |
e651536983ac91e333aae8b4c680427f4cfd888f | media/css/pliny.css | media/css/pliny.css | article > div:last-child > div > span {
border-bottom: 1px solid black
}
body {
padding-top: 70px;
}
footer {
text-align: center;
font-size: 50%;
}
#main-content {
padding-bottom: 100px;
}
#nav_nomina {
width: 200px;
}
| article > div:last-child > div > span {
border-bottom: 1px solid black
}
body {
padding-top: 70px;
}
footer {
text-align: center;
font-size: 50%;
}
#main-content {
padding-bottom: 100px;
}
#nav_nomina {
width: 200px;
}
#id_nomina {
width: 200px;
}
| Fix search form input too | Fix search form input too
| CSS | mit | bwhicks/PlinyProject,bwhicks/PlinyProject,bwhicks/PlinyProject,bwhicks/PlinyProject | css | ## Code Before:
article > div:last-child > div > span {
border-bottom: 1px solid black
}
body {
padding-top: 70px;
}
footer {
text-align: center;
font-size: 50%;
}
#main-content {
padding-bottom: 100px;
}
#nav_nomina {
width: 200px;
}
## Instruction:
Fix search form input too
## Code After:
article > ... |
cb8d8bdf4b8431fccb7e40dcd6a0c733bc74e4e9 | index.js | index.js | "use strict";
var TypeDecorator = require( "./lib/type/decorator" );
var TypeHelper = require( "./lib/type/helper" );
var TypeInfo = require( "./lib/type/info" );
module.exports = {
DecoratorError : require( "./lib/error/decorator" ),
HelperError : require( "./lib/error/helper" ),
ChangeSet : require( ... | "use strict";
var TypeDecorator = require( "./lib/type/decorator" );
var TypeHelper = require( "./lib/type/helper" );
var TypeInfo = require( "./lib/type/info" );
module.exports = {
DecoratorError : require( "./lib/error/decorator" ),
HelperError : require( "./lib/error/helper" ),
ChangeSet : require( ... | Put commonly used constants on main export | [FEATURE] Put commonly used constants on main export
| JavaScript | mit | oliversalzburg/sanitizr | javascript | ## Code Before:
"use strict";
var TypeDecorator = require( "./lib/type/decorator" );
var TypeHelper = require( "./lib/type/helper" );
var TypeInfo = require( "./lib/type/info" );
module.exports = {
DecoratorError : require( "./lib/error/decorator" ),
HelperError : require( "./lib/error/helper" ),
Chang... |
c3a3f57e501c828f88f30ab0b49a57c5e305d383 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
# CSRF protection
protect_from_forgery
# Abilities checking
check_authorization
# Setup locale
before_filter :set_gettext_locale
# Ask users to authenticate
before_filter :require_login
# Handle errors
rescue_from CanCan::AccessDenied, :with =... | class ApplicationController < ActionController::Base
# CSRF protection
protect_from_forgery
# Abilities checking
check_authorization
# Setup locale
before_filter :set_gettext_locale
# Ask users to authenticate
before_filter :require_login
# Handle errors
rescue_from CanCan::AccessDenied, :with =... | Handle 404 rails way (static). | Handle 404 rails way (static). | Ruby | mit | Courseware/coursewa.re,Courseware/coursewa.re | ruby | ## Code Before:
class ApplicationController < ActionController::Base
# CSRF protection
protect_from_forgery
# Abilities checking
check_authorization
# Setup locale
before_filter :set_gettext_locale
# Ask users to authenticate
before_filter :require_login
# Handle errors
rescue_from CanCan::Acces... |
bbd0d87faade33d2a072b012ad163aa8ac1973c2 | src/util/reactify.js | src/util/reactify.js | import Bit from '../components/Bit'
import { createElement } from 'react'
const COMMENT_TAG = '--'
const DEFAULT_TAG = Bit
// eslint-disable-next-line max-params
function parse (buffer, doc, options, key) {
switch (doc.type) {
case 'text':
return [...buffer, doc.content]
case 'tag': {
if (doc.na... | import Bit from '../components/Bit'
import { createElement } from 'react'
const COMMENT_TAG = '--'
const DEFAULT_TAG = Bit
// eslint-disable-next-line max-params
function parse (buffer, doc, options, key) {
switch (doc.type) {
case 'text':
return [...buffer, doc.content]
case 'tag': {
let childr... | Fix bug that caused HTML comments to halt all additional parsing | Fix bug that caused HTML comments to halt all additional parsing
| JavaScript | mit | dlindahl/stemcell,dlindahl/stemcell | javascript | ## Code Before:
import Bit from '../components/Bit'
import { createElement } from 'react'
const COMMENT_TAG = '--'
const DEFAULT_TAG = Bit
// eslint-disable-next-line max-params
function parse (buffer, doc, options, key) {
switch (doc.type) {
case 'text':
return [...buffer, doc.content]
case 'tag': {
... |
645e68ceb451226177fb4b1f1b03083b6d66c045 | .forestry/front_matter/templates/review.yml | .forestry/front_matter/templates/review.yml | ---
label: review
hide_body: false
is_partial: false
fields:
- type: text
name: title
label: Title
- type: include
name: date
label: date
template: partial-date
- name: attribution
label: Attribution
type: text
hidden: false
default: ''
- type: select
name: book
config:
source:
type: pag... | ---
label: review
hide_body: false
is_partial: false
fields:
- type: text
name: title
label: Title
default: on Before You Sleep
- type: datetime
name: date
label: Date
default: 1999-10-04 00:00:00 -0400
- name: attribution
label: Attribution
type: text
hidden: false
default: ''
- type: select
name... | Update from Forestry.io - Updated Forestry configuration | Update from Forestry.io - Updated Forestry configuration | YAML | mit | sonnetmedia/linnullmann,sonnetmedia/linnullmann,sonnetmedia/linnullmann | yaml | ## Code Before:
---
label: review
hide_body: false
is_partial: false
fields:
- type: text
name: title
label: Title
- type: include
name: date
label: date
template: partial-date
- name: attribution
label: Attribution
type: text
hidden: false
default: ''
- type: select
name: book
config:
source:... |
b9c4888d1105318c79c4692937ab2d12a0dd5d28 | lib/yard/rake/yardoc_task.rb | lib/yard/rake/yardoc_task.rb | require 'rake'
require 'rake/tasklib'
module YARD
module Rake
class YardocTask < ::Rake::TaskLib
attr_accessor :name
attr_accessor :options
attr_accessor :files
def initialize(name = :yardoc)
@name = name
@options = []
@files = []
yield self ... | require 'rake'
require 'rake/tasklib'
module YARD
module Rake
class YardocTask < ::Rake::TaskLib
attr_accessor :name
attr_accessor :options
attr_accessor :files
def initialize(name = :yardoc)
@name = name
@options = []
@files = []
yield self ... | Allow comma delimitation in OPTS and space delimitation in FILES | Allow comma delimitation in OPTS and space delimitation in FILES
| Ruby | mit | thomthom/yard,herosky/yard,thomthom/yard,ohai/yard,jreinert/yard,herosky/yard,ohai/yard,alexdowad/yard,alexdowad/yard,amclain/yard,lsegal/yard,jreinert/yard,thomthom/yard,travis-repos/yard,iankronquist/yard,jreinert/yard,travis-repos/yard,amclain/yard,iankronquist/yard,lsegal/yard,alexdowad/yard,iankronquist/yard,amcla... | ruby | ## Code Before:
require 'rake'
require 'rake/tasklib'
module YARD
module Rake
class YardocTask < ::Rake::TaskLib
attr_accessor :name
attr_accessor :options
attr_accessor :files
def initialize(name = :yardoc)
@name = name
@options = []
@files = []
... |
29be0ccaa9deb0ced229d2e49b238702769cddb4 | spec/support/helper_methods.rb | spec/support/helper_methods.rb | module RSpecHelpers
def relative_path(path)
RSpec::Core::Metadata.relative_path(path)
end
def ignoring_warnings
original = $VERBOSE
$VERBOSE = nil
result = yield
$VERBOSE = original
result
end
def with_safe_set_to_level_that_triggers_security_errors
Thread.new do
ignoring_w... | module RSpecHelpers
SAFE_LEVEL_THAT_TRIGGERS_SECURITY_ERRORS = RUBY_VERSION >= '2.3' ? 1 : 3
def relative_path(path)
RSpec::Core::Metadata.relative_path(path)
end
def ignoring_warnings
original = $VERBOSE
$VERBOSE = nil
result = yield
$VERBOSE = original
result
end
def with_safe_s... | Fix failing specs caused by $SAFE incompatibility on MRI 2.3 | Fix failing specs caused by $SAFE incompatibility on MRI 2.3
ArgumentError:
$SAFE=2 to 4 are obsolete
| Ruby | mit | xmik/rspec-core,rspec/rspec-core,rspec/rspec-core,azbshiri/rspec-core,rspec/rspec-core,xmik/rspec-core,xmik/rspec-core,azbshiri/rspec-core,azbshiri/rspec-core | ruby | ## Code Before:
module RSpecHelpers
def relative_path(path)
RSpec::Core::Metadata.relative_path(path)
end
def ignoring_warnings
original = $VERBOSE
$VERBOSE = nil
result = yield
$VERBOSE = original
result
end
def with_safe_set_to_level_that_triggers_security_errors
Thread.new do
... |
135f45c68d94038014b0bf4dfe55458e156accbd | metadata/uk.ac.swansea.eduroamcat.yml | metadata/uk.ac.swansea.eduroamcat.yml | Categories:
- Internet
License: Apache-2.0
SourceCode: https://github.com/GEANT/CAT-Android
IssueTracker: https://github.com/GEANT/CAT-Android/issues
Changelog: https://github.com/GEANT/CAT-Android/releases
AutoName: eduroamCAT
Description: |-
''EduroamCAT'' is an eduroam Configuration Assistant Tool correspondi... | Categories:
- Internet
License: Apache-2.0
SourceCode: https://github.com/GEANT/CAT-Android
IssueTracker: https://github.com/GEANT/CAT-Android/issues
Changelog: https://github.com/GEANT/CAT-Android/releases
AutoName: eduroamCAT
Description: |-
''EduroamCAT'' is an eduroam Configuration Assistant Tool correspondi... | Update eduroamCAT to 1.2.14 (59) | Update eduroamCAT to 1.2.14 (59)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Internet
License: Apache-2.0
SourceCode: https://github.com/GEANT/CAT-Android
IssueTracker: https://github.com/GEANT/CAT-Android/issues
Changelog: https://github.com/GEANT/CAT-Android/releases
AutoName: eduroamCAT
Description: |-
''EduroamCAT'' is an eduroam Configuration Assistant ... |
e412a68afe691913525245d2a8a3a8e9e3ba532d | python/xicore.py | python/xicore.py |
import sys
import struct
import json
def sendraw(buf):
sys.stdout.write(struct.pack("<q", len(buf)))
sys.stdout.write(buf)
sys.stdout.flush()
def send(obj):
sendraw(json.dumps(obj))
def mainloop():
text = ''
while True:
sizebuf = sys.stdin.read(8)
if len(sizebuf) == 0:
ret... |
import sys
import struct
import json
def sendraw(buf):
sys.stdout.write(struct.pack("<q", len(buf)))
sys.stdout.write(buf)
sys.stdout.flush()
def send(obj):
sendraw(json.dumps(obj))
def mainloop():
text = ''
while True:
sizebuf = sys.stdin.read(8)
if len(sizebuf) == 0:
... | Replace tab indentation with 4 spaces | Replace tab indentation with 4 spaces | Python | apache-2.0 | google/xi-editor,google/xi-editor,fuchsia-mirror/third_party-xi-editor,modelorganism/xi-editor,modelorganism/xi-editor,fuchsia-mirror/third_party-xi-editor,fuchsia-mirror/third_party-xi-editor,google/xi-editor,google/xi-editor,fuchsia-mirror/third_party-xi-editor,modelorganism/xi-editor | python | ## Code Before:
import sys
import struct
import json
def sendraw(buf):
sys.stdout.write(struct.pack("<q", len(buf)))
sys.stdout.write(buf)
sys.stdout.flush()
def send(obj):
sendraw(json.dumps(obj))
def mainloop():
text = ''
while True:
sizebuf = sys.stdin.read(8)
if len(sizebuf) == 0:... |
bed569476cfc65be024019920db776ae2a669ce5 | CHANGELOG.md | CHANGELOG.md |
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 1.0.0 - 2015-08-28
Initial version
|
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased][unreleased]
## 1.0.0 - 2015-08-28
Initial version
[unreleased]: https://github.com/JoeBengalen/Assert/compare/1.0.0...master
| Add unreleased section to the changelog | Add unreleased section to the changelog
| Markdown | mit | JoeBengalen/Assert | markdown | ## Code Before:
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 1.0.0 - 2015-08-28
Initial version
## Instruction:
Add unreleased section to the changelog
## Code After:
All notable changes to this project will be documente... |
b405aa7441999ca60ee64eb55b8d04ba983ed677 | tasks/build.js | tasks/build.js | var log = require('color-log'),
runSequenceGenerator = require('run-sequence'),
createBundleTasks = require('./utils/createBundleTasks');
module.exports = function(gulp, options) {
var tasks;
tasks = createBundleTasks(gulp, options);
/* Full build */
gulp.task(options.taskPrefix + 'build', function(ca... | var log = require('color-log'),
runSequenceGenerator = require('run-sequence'),
createBundleTasks = require('./utils/createBundleTasks');
function build(callback) {
var runSequence = runSequenceGenerator.use(gulp),
buildTasks = [],
browserifyCompleteFn = function() {
log.mark('[BROWSERIFY... | Fix task def for gulp 4 | Fix task def for gulp 4
| JavaScript | mit | vecnatechnologies/quick-sip | javascript | ## Code Before:
var log = require('color-log'),
runSequenceGenerator = require('run-sequence'),
createBundleTasks = require('./utils/createBundleTasks');
module.exports = function(gulp, options) {
var tasks;
tasks = createBundleTasks(gulp, options);
/* Full build */
gulp.task(options.taskPrefix + 'bui... |
4ed4ff81180c1e9ee497e17e35955a935c8df760 | layouts/partials/shell-content.html | layouts/partials/shell-content.html | <div class="shell-intro shell-content">
<div class="shell-title">Try NumPy</div>
<div class="shell-content-message">Enable the interactive shell</div>
</div>
<div class="shell-wait shell-content" style="display: none;">
<div class="shell-title">While we wait...</div>
<div class="shell-content-message">... | <div class="shell-intro shell-content">
<div class="shell-title">Try NumPy</div>
<div class="shell-content-message">Enable the interactive shell</div>
</div>
<div class="shell-wait shell-content" style="display: none;">
<div class="shell-title">While we wait...</div>
<div class="shell-content-message">... | Add message to interactive shell about mybinder.org on launch | Add message to interactive shell about mybinder.org on launch
Addresses comment on gh-316
| HTML | bsd-3-clause | numpy/numpy.org,numpy/numpy.org,numpy/numpy.org,numpy/numpy.org | html | ## Code Before:
<div class="shell-intro shell-content">
<div class="shell-title">Try NumPy</div>
<div class="shell-content-message">Enable the interactive shell</div>
</div>
<div class="shell-wait shell-content" style="display: none;">
<div class="shell-title">While we wait...</div>
<div class="shell-c... |
2dc3288fca2c67207dcca0690ec7ea460bf58a31 | README.md | README.md | 
This library aims to be a fully fledged environment for functional programming in JavaScript. It provides a number of functions common to functional programming, ranging from low-level constructs to high-level abstractions.
Funkis is work in p... | 
This library aims to be a fully fledged environment for functional programming in JavaScript. It provides a number of functions common to functional programming, ranging from low-level constructs to high-level abstractions.
Funkis is work in p... | Update shields to nice flat style | Update shields to nice flat style | Markdown | mit | mstade/funkis | markdown | ## Code Before:

This library aims to be a fully fledged environment for functional programming in JavaScript. It provides a number of functions common to functional programming, ranging from low-level constructs to high-level abstractions.
Fun... |
421f66077373d10704f05b2b441abf3014456f23 | lib/node_modules/@stdlib/utils/eval/lib/index.js | lib/node_modules/@stdlib/utils/eval/lib/index.js | 'use strict';
// EXPORTS //
module.exports = eval;
| 'use strict';
/**
* Alias for `eval` global.
*
* @module @stdlib/utils/eval
*
* @example
* var evil = require( '@stdlib/utils/@stdlib/utils/eval' );
*
* var v = evil( '5*4*3*2*1' );
* // returns 120
*/
// MODULES //
var evil = eval;
// EXPORTS //
module.exports = evil;
| Add JSDoc annotations with examples | Add JSDoc annotations with examples
| JavaScript | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | javascript | ## Code Before:
'use strict';
// EXPORTS //
module.exports = eval;
## Instruction:
Add JSDoc annotations with examples
## Code After:
'use strict';
/**
* Alias for `eval` global.
*
* @module @stdlib/utils/eval
*
* @example
* var evil = require( '@stdlib/utils/@stdlib/utils/eval' );
*
* var v = evil( '5*4*3*2*1' );... |
6cb3b9ee4d0773ff2daccf663a2962bbf593b5cf | test/battle_server.coffee | test/battle_server.coffee | {BattleServer} = require '../server'
{Engine} = require '../engine'
sinon = require 'sinon'
describe 'BattleServer', ->
describe '#queuePlayer', ->
it "adds a new player to the server's queue", ->
server = new BattleServer()
server.queuePlayer({})
server.queuedPlayers().should.have.length 1
... | {BattleServer} = require '../server'
{Engine} = require '../engine'
sinon = require 'sinon'
describe 'BattleServer', ->
describe '#queuePlayer', ->
it "adds a new player to the server's queue", ->
server = new BattleServer()
server.queuePlayer({})
server.queuedPlayers().should.have.length 1
... | Add test for whether players get an emitted event. | Add test for whether players get an emitted event.
| CoffeeScript | mit | 6/battletower,sarenji/pokebattle-sim,pepijndevos/battletower,sarenji/pokebattle-sim,sarenji/pokebattle-sim,askii93/battletower | coffeescript | ## Code Before:
{BattleServer} = require '../server'
{Engine} = require '../engine'
sinon = require 'sinon'
describe 'BattleServer', ->
describe '#queuePlayer', ->
it "adds a new player to the server's queue", ->
server = new BattleServer()
server.queuePlayer({})
server.queuedPlayers().should.h... |
10627ddd98f6b26668c00e041c76094ffa00fe8a | app/views/groups/_people.erb | app/views/groups/_people.erb | <h2><%= I18n.t('people.person', :count => @group.people.count) %></h2>
<% if group_people_count > 25 and params[:action] == 'show' %>
<p>
(<%= I18n.t('groups.25_of') %> <%= group_people_count %>)
<%= link_to I18n.t('groups.show_all'), group_memberships_path(@group) %>
</p>
<% end %>
<table>
<% @group.me... | <h2><%= I18n.t('people.person', :count => group_people_count = @group.people.count) %></h2>
<% if group_people_count > 25 and params[:action] == 'show' %>
<p>
(<%= I18n.t('groups.25_of') %> <%= group_people_count %>)
<%= link_to I18n.t('groups.show_all'), group_memberships_path(@group) %>
</p>
<% end %>
<... | Fix bug showing group people. | Fix bug showing group people.
| HTML+ERB | agpl-3.0 | AVee/onebody,pgmcgee/onebody,nerdnorth/remote-workers-app,ferdinandrosario/onebody,moss-zc/sns_shop,fadiwissa/onebody,hooray4me/onebody,davidleach/onebody,dorman/onebody,ebennaga/onebody,klarkc/onebody,Capriatto/onebody,mattraykowski/onebody,cessien/onebody,pgmcgee/onebody,hooray4me/onebody2,kevinjqiu/onebody,tochman/o... | html+erb | ## Code Before:
<h2><%= I18n.t('people.person', :count => @group.people.count) %></h2>
<% if group_people_count > 25 and params[:action] == 'show' %>
<p>
(<%= I18n.t('groups.25_of') %> <%= group_people_count %>)
<%= link_to I18n.t('groups.show_all'), group_memberships_path(@group) %>
</p>
<% end %>
<table... |
a18045740433895def8e827e4af669a7ea507ae3 | components/spacer/inner-row-spacer.html | components/spacer/inner-row-spacer.html | <tr>
<td class="spacer" height="40" style="font-size: 40px; line-height: 40px; margin: 0; padding: 0;"> </td>
</tr>
| <tr>
<td class="spacer" height="40" style="font-size: 40px; line-height: 40px; mso-line-height-rule: exactly; padding: 0;"> </td>
</tr>
| Fix Outlook line-height for inner row spacer. | Fix Outlook line-height for inner row spacer.
| HTML | mit | ThemeMountain/tm-pine | html | ## Code Before:
<tr>
<td class="spacer" height="40" style="font-size: 40px; line-height: 40px; margin: 0; padding: 0;"> </td>
</tr>
## Instruction:
Fix Outlook line-height for inner row spacer.
## Code After:
<tr>
<td class="spacer" height="40" style="font-size: 40px; line-height: 40px; mso-line-height-rule:... |
bc0ea691835aee4ae8542c65fb0c8361c6b93393 | src/legacy/js/functions/_loadCreateScreen.js | src/legacy/js/functions/_loadCreateScreen.js | function loadCreateScreen(parentUrl, collectionId, type, collectionData) {
var isDataVis = false; // Flag for template to show correct options in select
// Load data vis creator or ordinary publisher creator
if (collectionData && collectionData.collectionOwner == "DATA_VISUALISATION") {
isDataVis =... | function loadCreateScreen(parentUrl, collectionId, type, collectionData) {
var isDataVis = type === "visualisation"; // Flag for template to show correct options in select
var html = templates.workCreate({"dataVis": isDataVis});
$('.workspace-menu').html(html);
loadCreator(parentUrl, collectionId, type... | Fix create screen for visualisation | Fix create screen for visualisation
| JavaScript | mit | ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence | javascript | ## Code Before:
function loadCreateScreen(parentUrl, collectionId, type, collectionData) {
var isDataVis = false; // Flag for template to show correct options in select
// Load data vis creator or ordinary publisher creator
if (collectionData && collectionData.collectionOwner == "DATA_VISUALISATION") {
... |
64f479ca73a666835902828315114c560b48e9f1 | README.md | README.md |
Cloud CNC is an online CNC lathe simulator. It lets you edit and simulate CNC lathe code
online. This is an HTML5 application with no server side interaction. The code is parsed in
JS and simulation is performed using HTML5 Canvas and web workers for multithreading.
Other features include simulation speed control, pau... |
Cloud CNC is an online CNC lathe simulator. It lets you edit and simulate CNC lathe code
online. This is an HTML5 application with no server side interaction. The code is parsed in
JS and simulation is performed using HTML5 Canvas and web workers for multithreading.
Other features include simulation speed control, pau... | Add details about the video link | Add details about the video link | Markdown | apache-2.0 | parambirs/cloudcnc,parambirs/cloudcnc,parambirs/cloudcnc,parambirs/cloudcnc | markdown | ## Code Before:
Cloud CNC is an online CNC lathe simulator. It lets you edit and simulate CNC lathe code
online. This is an HTML5 application with no server side interaction. The code is parsed in
JS and simulation is performed using HTML5 Canvas and web workers for multithreading.
Other features include simulation sp... |
4e6e3ad0809bcc7bb538450d9953b6c4162d8907 | app/views/newsletter/subscriptions/_form.html.erb | app/views/newsletter/subscriptions/_form.html.erb | <%= form_tag(subscription_path, class: 'newsletter', remote: true) do %>
<h3 class="newsletter__heading"><%= t('newsletter.heading') %></h3>
<ul class="list-benefits list-benefits--sm">
<% t('newsletter.benefits').each do |benefit| %>
<li><%= benefit %></li>
<% end %>
</ul>
<%= label_tag('subscrip... | <%= form_tag(subscription_path, class: 'newsletter', remote: true) do %>
<%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
<h3 class="newsletter__heading"><%= t('newsletter.heading') %></h3>
<ul class="list-benefits list-benefits--sm">
<% t('newsletter.benefits').each do |benefit| %>
... | Add authenticity token to newsletter sign up form. | Add authenticity token to newsletter sign up form.
| HTML+ERB | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | html+erb | ## Code Before:
<%= form_tag(subscription_path, class: 'newsletter', remote: true) do %>
<h3 class="newsletter__heading"><%= t('newsletter.heading') %></h3>
<ul class="list-benefits list-benefits--sm">
<% t('newsletter.benefits').each do |benefit| %>
<li><%= benefit %></li>
<% end %>
</ul>
<%= lab... |
537e9b1e749f9d198a85b1b4b0303975542753f1 | static/templates/confirm_dialog/confirm_deactivate_bot.hbs | static/templates/confirm_dialog/confirm_deactivate_bot.hbs | <p>
{{#tr}}
When you deactivate <z-user></z-user>.
{{#*inline "z-user"}}<strong>{{username}}</strong>{{#if email}} <{{email}}>{{/if}}{{/inline}}
{{/tr}}
</p>
<p>{{t "They will not send messages or take any other actions." }}</p>
| <p>
{{#tr}}
When you deactivate <z-user></z-user>.
{{#*inline "z-user"}}<strong>{{username}}</strong>{{#if email}} <{{email}}>{{/if}}{{/inline}}
{{/tr}}
</p>
<p>{{t "A deactivated bot cannot send messages, access data, or take any other action." }}</p>
| Improve wording for deactivate bot modal. | settings: Improve wording for deactivate bot modal.
| Handlebars | apache-2.0 | zulip/zulip,rht/zulip,rht/zulip,zulip/zulip,andersk/zulip,andersk/zulip,zulip/zulip,andersk/zulip,rht/zulip,zulip/zulip,zulip/zulip,zulip/zulip,rht/zulip,andersk/zulip,andersk/zulip,andersk/zulip,rht/zulip,andersk/zulip,zulip/zulip,rht/zulip,rht/zulip | handlebars | ## Code Before:
<p>
{{#tr}}
When you deactivate <z-user></z-user>.
{{#*inline "z-user"}}<strong>{{username}}</strong>{{#if email}} <{{email}}>{{/if}}{{/inline}}
{{/tr}}
</p>
<p>{{t "They will not send messages or take any other actions." }}</p>
## Instruction:
settings: Improve wording fo... |
72fa8d372f8603f0175bf54b88a86a4e92c1f8e7 | .travis.yml | .travis.yml | language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "3.5"
# - "3.6"
install:
- source libs/travis-conda-scripts/scripts/config.sh
- bash -ex libs/travis-conda-scripts/scripts/travis_install.sh
script:
- source libs/travis-conda-scripts/scripts/config.sh
- bas... | language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "3.5"
# - "3.6"
install:
- source libs/travis-conda-scripts/scripts/config.sh
- bash -ex libs/travis-conda-scripts/scripts/travis_install.sh
script:
- source libs/travis-conda-scripts/scripts/config.sh
- bas... | Move upload to script to alert on upload failures | Move upload to script to alert on upload failures
| YAML | mit | CINPLA/exdir,CINPLA/exdir,CINPLA/exdir | yaml | ## Code Before:
language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "3.5"
# - "3.6"
install:
- source libs/travis-conda-scripts/scripts/config.sh
- bash -ex libs/travis-conda-scripts/scripts/travis_install.sh
script:
- source libs/travis-conda-scripts/scripts/c... |
d916d064a3ba52b4c8e6f4a3c082fd52ccf2681a | doc/phonopy/external-tools.rst | doc/phonopy/external-tools.rst | .. _external_tools:
External tools
===============
Here external tools related to phonopy but supported by the groups out
of the phonopy project are listed.
Each of the tools is not supported by the phonopy project because of
the difficulties of the maintainance and the test by main developers
of phonopy under curre... | .. _external_tools:
External tools
===============
Here external tools related to phonopy but supported by the groups out
of the phonopy project are listed.
Each of the tools is not supported by the phonopy project because of
the difficulties of the maintainance and the test by main developers
of phonopy under curre... | Update manual for an external tool | Update manual for an external tool
| reStructuredText | bsd-3-clause | atztogo/phonopy,atztogo/phonopy,atztogo/phonopy,atztogo/phonopy | restructuredtext | ## Code Before:
.. _external_tools:
External tools
===============
Here external tools related to phonopy but supported by the groups out
of the phonopy project are listed.
Each of the tools is not supported by the phonopy project because of
the difficulties of the maintainance and the test by main developers
of pho... |
7f5f353897b48bf6f9c30787989cf03c229127a3 | app/templates/src/test/javascript/spec/helpers/_httpBackend.js | app/templates/src/test/javascript/spec/helpers/_httpBackend.js | function mockApiAccountCall() {
inject(function($httpBackend) {
$httpBackend.whenGET(/api\/account.*/).respond({});
});
}
function mockI18nCalls() {
inject(function($httpBackend) {
$httpBackend.whenGET(/i18n\/[a-z][a-z]\/.+\.json/).respond({});
});
}
| function mockApiAccountCall() {
inject(function($httpBackend) {
$httpBackend.whenGET(/api\/account.*/).respond({});
});
}
function mockI18nCalls() {
inject(function($httpBackend) {
$httpBackend.whenGET(/i18n\/.*\/.+\.json/).respond({});
});
}
| Fix build issue for adding Chinese Simplified ("zh-cn") language | Fix build issue for adding Chinese Simplified ("zh-cn") language
| JavaScript | apache-2.0 | stevehouel/generator-jhipster,rifatdover/generator-jhipster,gzsombor/generator-jhipster,danielpetisme/generator-jhipster,atomfrede/generator-jhipster,sendilkumarn/generator-jhipster,vivekmore/generator-jhipster,eosimosu/generator-jhipster,liseri/generator-jhipster,erikkemperman/generator-jhipster,Tcharl/generator-jhips... | javascript | ## Code Before:
function mockApiAccountCall() {
inject(function($httpBackend) {
$httpBackend.whenGET(/api\/account.*/).respond({});
});
}
function mockI18nCalls() {
inject(function($httpBackend) {
$httpBackend.whenGET(/i18n\/[a-z][a-z]\/.+\.json/).respond({});
});
}
## Instruction:
Fix... |
d5d92cef19ea0f2d723c394fed09643b0e9cd9a5 | Deployment/CSF.Zpt.Documentation/Website/css/manpage_exports.css | Deployment/CSF.Zpt.Documentation/Website/css/manpage_exports.css | .main_page_content .manpage_export h2 {
border-bottom: 1px solid #CDC998;
text-transform: lowercase;
}
.main_page_content .manpage_export h2::first-letter {
text-transform: uppercase;
}
.main_page_content .manpage_export a {
display: none;
}
.main_page_content .manpage_export b {
font-weight: bold;
font-sty... | .main_page_content .manpage_export h2 {
border-bottom: 1px solid #CDC998;
text-transform: lowercase;
}
.main_page_content .manpage_export h2::first-letter {
text-transform: uppercase;
}
.main_page_content .manpage_export a {
display: none;
}
.main_page_content .manpage_export b {
font-weight: bold;
font-sty... | Improve styling for HTML exports of manpages | Improve styling for HTML exports of manpages
| CSS | mit | csf-dev/ZPT-Sharp,csf-dev/ZPT-Sharp | css | ## Code Before:
.main_page_content .manpage_export h2 {
border-bottom: 1px solid #CDC998;
text-transform: lowercase;
}
.main_page_content .manpage_export h2::first-letter {
text-transform: uppercase;
}
.main_page_content .manpage_export a {
display: none;
}
.main_page_content .manpage_export b {
font-weight: ... |
48352e09b418cf4cce6629210208536375aa4837 | packages.txt | packages.txt | advanced-new-file@0.4.3
advanced-open-file@0.8.1
atomatigit@1.5.3
block-travel@1.0.2
color-picker@2.0.11
expand-region@0.2.2
find-and-till@1.0.2
git-plus@5.2.2
language-babel@0.10.2
language-haml@0.21.0
lazy-motion@0.1.11
linter@1.2.4
linter-eslint@3.0.0
pigments@0.8.4
react@0.12.5
tabularize@0.2.4
toggle-quotes@0.11.0... | advanced-new-file@0.4.3
advanced-open-file@0.8.1
block-travel@1.0.2
color-picker@2.0.11
expand-region@0.2.2
find-and-till@1.0.2
git-plus@5.2.2
language-babel@0.10.2
language-haml@0.21.0
lazy-motion@0.1.11
linter@1.2.4
linter-eslint@3.0.0
pigments@0.8.4
react@0.12.5
tabularize@0.2.4
toggle-quotes@0.11.0
| Remove atomatigit in favor of git plus | Remove atomatigit in favor of git plus
| Text | mit | substantial/atomfiles,substantial/atomfiles | text | ## Code Before:
advanced-new-file@0.4.3
advanced-open-file@0.8.1
atomatigit@1.5.3
block-travel@1.0.2
color-picker@2.0.11
expand-region@0.2.2
find-and-till@1.0.2
git-plus@5.2.2
language-babel@0.10.2
language-haml@0.21.0
lazy-motion@0.1.11
linter@1.2.4
linter-eslint@3.0.0
pigments@0.8.4
react@0.12.5
tabularize@0.2.4
togg... |
e09f5854f072e84dbda9e0f4ef2705b4a46373bf | src/clients/lib/perl/pm/XMMSClient/Sync.pm | src/clients/lib/perl/pm/XMMSClient/Sync.pm | package Audio::XMMSClient::Sync;
use strict;
use warnings;
use Audio::XMMSClient;
use Scalar::Util qw/blessed/;
sub new {
my $base = shift;
my $c = Audio::XMMSClient->new( @_ );
return $base->new_from( $c );
}
sub new_from {
my ($base, $c) = @_;
my $self = bless \$c, $base;
return $self;
... | package Audio::XMMSClient::Sync;
use strict;
use warnings;
use Audio::XMMSClient;
use Scalar::Util qw/blessed/;
sub new {
my $base = shift;
my $c = Audio::XMMSClient->new( @_ );
return $base->new_from( $c );
}
sub new_from {
my ($base, $c) = @_;
my $self = bless \$c, $base;
return $self;
... | Fix error handling in the sync wrapper of the perl bindings. | OTHER: Fix error handling in the sync wrapper of the perl bindings.
| Perl | lgpl-2.1 | dreamerc/xmms2,xmms2/xmms2-stable,six600110/xmms2,chrippa/xmms2,oneman/xmms2-oneman-old,dreamerc/xmms2,oneman/xmms2-oneman-old,krad-radio/xmms2-krad,theeternalsw0rd/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman-old,oneman/xmms2-oneman,mantaraya36/xmms2-mantaraya36,krad-radio/xmms2-krad,chrippa/xmms2,krad-radi... | perl | ## Code Before:
package Audio::XMMSClient::Sync;
use strict;
use warnings;
use Audio::XMMSClient;
use Scalar::Util qw/blessed/;
sub new {
my $base = shift;
my $c = Audio::XMMSClient->new( @_ );
return $base->new_from( $c );
}
sub new_from {
my ($base, $c) = @_;
my $self = bless \$c, $base;
... |
e8e326fe39623ea04082553d1293b1e79c3611f6 | proto/ho.py | proto/ho.py |
import sys
from board import Board, BoardView
from utils import clear, getch
def main():
board = Board(19, 19)
view = BoardView(board)
def move():
board.move(*view.cursor)
view.redraw()
def exit():
sys.exit(0)
KEYS = {
'w': view.cursor_up,
'r': view.cur... |
import sys
from board import Board, BoardView
from utils import clear, getch
def main():
board = Board(19, 19)
view = BoardView(board)
err = None
def move():
board.move(*view.cursor)
view.redraw()
def exit():
sys.exit(0)
KEYS = {
'w': view.cursor_up,
... | Add error handling to main game loop | Add error handling to main game loop
| Python | mit | davesque/go.py | python | ## Code Before:
import sys
from board import Board, BoardView
from utils import clear, getch
def main():
board = Board(19, 19)
view = BoardView(board)
def move():
board.move(*view.cursor)
view.redraw()
def exit():
sys.exit(0)
KEYS = {
'w': view.cursor_up,
... |
081be4ec2ed0d13f26bf00891255a9af31756cf0 | codecov.yml | codecov.yml | ignore:
- "Example"
- "test-server"
- "docs"
- "Pods"
comment:
layout: "header, reach, diff, flags, files, footer"
behavior: default
require_changes: no
branches: null
paths: null
coverage:
notify:
slack:
default:
url: "https://hooks.slack.com/services/T02BHE0G7/B9FETM8FN/QEmW5AVi... | ignore:
- "Example"
- "test-server"
- "docs"
- "Pods"
comment:
layout: "header, reach, diff, flags, files, footer"
behavior: default
require_changes: no
branches: null
paths: null
coverage:
notify:
slack:
default:
threshold: 1%
only_pulls: false
branches: null
... | Remove Slack URL and set up with ENV variables from CI | Remove Slack URL and set up with ENV variables from CI
| YAML | mit | Qminder/swift-api,Qminder/swift-api,Qminder/swift-api | yaml | ## Code Before:
ignore:
- "Example"
- "test-server"
- "docs"
- "Pods"
comment:
layout: "header, reach, diff, flags, files, footer"
behavior: default
require_changes: no
branches: null
paths: null
coverage:
notify:
slack:
default:
url: "https://hooks.slack.com/services/T02BHE0G7/B9... |
323aa0e62342a4268f8a88de8a5e4f7376c37ee3 | package.json | package.json | {
"name": "timevirtualizer",
"version": "0.0.5",
"author": "Eugene Batalov <eabatalov89@gmail.com>",
"contributors": [{
"name": "Alexandr Yanenko",
"email": "yanenkoalexandr@gmail.com"
}],
"description": "Allows to manually manipulate time flow inside JavaScript program",
"main": "./lib/TimeVirtuali... | {
"name": "timevirtualizer",
"version": "0.0.5",
"author": "Eugene Batalov <eabatalov89@gmail.com>",
"contributors": [{
"name": "Alexandr Yanenko",
"email": "yanenkoalexandr@gmail.com"
}],
"description": "Allows to manually manipulate time flow inside JavaScript program",
"main": "./lib/TimeVirtuali... | Add 'webworkify' and 'browserify' to 'dependencies' | Add 'webworkify' and 'browserify' to 'dependencies'
| JSON | mit | yanenkoa/jstimevirtualizer,eabatalov/jstimevirtualizer,eabatalov/jstimevirtualizer,yanenkoa/jstimevirtualizer | json | ## Code Before:
{
"name": "timevirtualizer",
"version": "0.0.5",
"author": "Eugene Batalov <eabatalov89@gmail.com>",
"contributors": [{
"name": "Alexandr Yanenko",
"email": "yanenkoalexandr@gmail.com"
}],
"description": "Allows to manually manipulate time flow inside JavaScript program",
"main": "./... |
dd39bca37562f7871893088a712be197d6457d4e | app/serializers/sessions_serializer.rb | app/serializers/sessions_serializer.rb | class SessionsSerializer
attr_accessor :sessions
def initialize(sessions)
@sessions = sessions
end
def type(session)
# handle DUBLADO3DDUBLADO and DUBLADODUBLADO3D
return session.type unless session.type.include?('DUBLADO')
"DUBLADO#{session.type.gsub('DUBLADO', '')}"
end
def to_message
... | class SessionsSerializer
attr_accessor :sessions
def initialize(sessions)
@sessions = sessions
end
def type(session)
# handle DUBLADO3DDUBLADO and DUBLADODUBLADO3D
return session.type unless session.type.include?('DUBLADO')
"DUBLADO#{session.type.gsub('DUBLADO', '')}"
end
def to_message
... | Add empty message for sessions | Add empty message for sessions
| Ruby | mit | tegon/ingresso-bot,tegon/cineminha-bot | ruby | ## Code Before:
class SessionsSerializer
attr_accessor :sessions
def initialize(sessions)
@sessions = sessions
end
def type(session)
# handle DUBLADO3DDUBLADO and DUBLADODUBLADO3D
return session.type unless session.type.include?('DUBLADO')
"DUBLADO#{session.type.gsub('DUBLADO', '')}"
end
... |
db04f2d7fa0797092a9829a73fca50ce83fcb01e | client/components/Avatar.jsx | client/components/Avatar.jsx | import React from 'react';
import PropTypes from 'prop-types';
import webpackConfig from '../../config/webpack';
import './components.less';
const env = process.env.NODE_ENV === 'development' ? 'dev' : 'build';
const publishPath = webpackConfig[env].assetsPublicPath + webpackConfig[env].assetsSubDirectory;
const avat... | import React from 'react';
import PropTypes from 'prop-types';
import './components.less';
const avatarFallback = 'https://cdn.suisuijiang.com/fiora/avatar/0.jpg';
const failTimes = new Map();
function noop() { }
function handleError(e) {
const times = failTimes.get(e.target) || 0;
if (times >= 2) {
... | Modify the wrong default avatar address | fix: Modify the wrong default avatar address
| JSX | mit | yinxin630/fiora,yinxin630/fiora,yinxin630/fiora | jsx | ## Code Before:
import React from 'react';
import PropTypes from 'prop-types';
import webpackConfig from '../../config/webpack';
import './components.less';
const env = process.env.NODE_ENV === 'development' ? 'dev' : 'build';
const publishPath = webpackConfig[env].assetsPublicPath + webpackConfig[env].assetsSubDirec... |
071f8a407e86e3bb95b5497fe99f12d7cced4396 | install.sh | install.sh | add-apt-repository -y ppa:fkrull/deadsnakes
apt-get update
apt-get install -y libxml2 libxml2-dev libxslt1.1 libxslt1-dev libffi-dev libssl-dev libpq-dev
#!/bin/bash
for file in /u12pytpls/version/*;
do
$file
done
| add-apt-repository -y ppa:fkrull/deadsnakes
apt-get update
apt-get install -y libxml2 libxml2-dev libxslt1.1 libxslt1-dev libffi-dev libssl-dev libpq-dev libmysqlclient-dev
#!/bin/bash
for file in /u12pytpls/version/*;
do
$file
done
| Add libmysqlclient-dev to get mysql_config | Add libmysqlclient-dev to get mysql_config
| Shell | mit | balavignesh-s/u12pytpls,dry-dock/u12pytpls | shell | ## Code Before:
add-apt-repository -y ppa:fkrull/deadsnakes
apt-get update
apt-get install -y libxml2 libxml2-dev libxslt1.1 libxslt1-dev libffi-dev libssl-dev libpq-dev
#!/bin/bash
for file in /u12pytpls/version/*;
do
$file
done
## Instruction:
Add libmysqlclient-dev to get mysql_config
## Code After:
add-apt-rep... |
1ff1e21097895fe76ee54e19e1516dba355b0d9a | client/home/home.tpl.html | client/home/home.tpl.html | <div class="off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<!-- Off Canvas Menu -->
<aside class="left-off-canvas-menu">
<!-- whatever you want goes here -->
<div ui-view="sidebar"></div>
</aside>
<!-- main content goes here -->
<div ui-view="graph"></div>
<!-- close ... | <div class="off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<!-- Off Canvas Menu -->
<aside class="left-off-canvas-menu">
<!-- whatever you want goes here -->
<div ui-view="sidebar"></div>
</aside>
<!-- main content goes here -->
<div ui-view="graph"></div>
<div cla... | Change bottom bar a bit | Change bottom bar a bit
| HTML | mit | mojsart/mojsart,jammiemountz/mojsart,jammiemountz/mojsart,jammiemountz/mojsart,mojsart/mojsart | html | ## Code Before:
<div class="off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<!-- Off Canvas Menu -->
<aside class="left-off-canvas-menu">
<!-- whatever you want goes here -->
<div ui-view="sidebar"></div>
</aside>
<!-- main content goes here -->
<div ui-view="graph"></di... |
20a08561bc1e08e4637aab7a0cd8cb54807a817c | config/database.yml | config/database.yml | development:
prepared_statements: false
adapter: postgresql
database: discourse_development
min_messages: warning
pool: 5
timeout: 5000
host_names:
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
### If you change this setting you will need ... | development:
prepared_statements: false
adapter: postgresql
database: discourse_development
min_messages: warning
pool: 5
timeout: 5000
host_names:
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
### If you change this setting you will need ... | Make PgSQL happy ("ActiveRecord::StatementInvalid: PG::ProtocolViolation"). | Make PgSQL happy ("ActiveRecord::StatementInvalid: PG::ProtocolViolation").
See https://meta.discourse.org/t/install-error-protocol-violation-with-postgresql/35160
| YAML | mit | natefinch/discourse,natefinch/discourse | yaml | ## Code Before:
development:
prepared_statements: false
adapter: postgresql
database: discourse_development
min_messages: warning
pool: 5
timeout: 5000
host_names:
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
### If you change this settin... |
1fa980a3a0ac518948d69e273c1ff501ff3f23b6 | app/views/hub/topics/_topic.html.erb | app/views/hub/topics/_topic.html.erb | <%= render partial: 'topic_common', locals: { topic: topic, refresh_heads_bar: true } -%>
| <%= render partial: 'topic_common', locals: { topic: topic, refresh_heads_bar: refresh_heads_bar } -%>
| Refresh heads bar are required to get from index and show page. | Refresh heads bar are required to get from index and show page.
| HTML+ERB | mit | bayetech/hubs,bayetech/hubs,bayetech/hubs,bayetech/hubs | html+erb | ## Code Before:
<%= render partial: 'topic_common', locals: { topic: topic, refresh_heads_bar: true } -%>
## Instruction:
Refresh heads bar are required to get from index and show page.
## Code After:
<%= render partial: 'topic_common', locals: { topic: topic, refresh_heads_bar: refresh_heads_bar } -%>
|
5970b784543cfedc8aa09dd405ab79d50e327bdb | index.js | index.js | 'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var Parser = this.Parser;
var Compiler = this.Compiler;
var block = Parser && Parser.prototype.blockTokenizers;
var inlin... | 'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var proto = this.Parser && this.Parser.prototype;
var Compiler = this.Compiler;
var block = proto && proto.blockTokenizers;... | Fix for non-remark parsers or compilers | Fix for non-remark parsers or compilers
| JavaScript | mit | wooorm/mdast-comment-config,wooorm/remark-comment-config | javascript | ## Code Before:
'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var Parser = this.Parser;
var Compiler = this.Compiler;
var block = Parser && Parser.prototype.blockTokeniz... |
e4c288af36bf36188e5c1c25513877718883adb6 | tests/integration/components/license-picker/component-test.js | tests/integration/components/license-picker/component-test.js | import Ember from 'ember';
import FakeServer, { stubRequest } from 'ember-cli-fake-server';
import config from 'ember-get-config';
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('license-picker', 'Integration | Component | license picker', {
integration: true
});
function render(ctx, ... | import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('license-picker', 'Integration | Component | license picker', {
integration: true
});
function render(ctx, args) {
ctx.set('currentValues', {});
ctx.set('noop', () => {});
ctx.set('licenses', [{
... | Fix linting, remove tests dependent on observables | Fix linting, remove tests dependent on observables
| JavaScript | apache-2.0 | binoculars/ember-osf,CenterForOpenScience/ember-osf,binoculars/ember-osf,jamescdavis/ember-osf,baylee-d/ember-osf,crcresearch/ember-osf,jamescdavis/ember-osf,chrisseto/ember-osf,CenterForOpenScience/ember-osf,baylee-d/ember-osf,chrisseto/ember-osf,crcresearch/ember-osf | javascript | ## Code Before:
import Ember from 'ember';
import FakeServer, { stubRequest } from 'ember-cli-fake-server';
import config from 'ember-get-config';
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('license-picker', 'Integration | Component | license picker', {
integration: true
});
funct... |
9618969bc90d3e375b9535e9444ac8593ea80e20 | Technotes/RestoreToFactory.md | Technotes/RestoreToFactory.md |
Here’s how to start over with untouched preferences and default feeds:
1. Quit Evergreen if it’s running.
2. Delete the application support folder. On the command line, do: `rm -rf ~/Library/Application\ Support/Evergreen/`
3. Delete the preferences. Just deleting the file won’t do the trick — it’s necessary to use... |
Here’s how to start over with untouched preferences and default feeds:
1. Quit Evergreen if it’s running.
2. Delete the application support folder. On the command line, do: `rm -rf ~/Library/Application\ Support/Evergreen/`
3. Delete the preferences. Just deleting the file won’t do the trick — it’s necessary to use... | Add note about the cleanPrefsAndData script. | Add note about the cleanPrefsAndData script.
| Markdown | mit | brentsimmons/Evergreen,brentsimmons/Evergreen,brentsimmons/Evergreen,brentsimmons/Evergreen | markdown | ## Code Before:
Here’s how to start over with untouched preferences and default feeds:
1. Quit Evergreen if it’s running.
2. Delete the application support folder. On the command line, do: `rm -rf ~/Library/Application\ Support/Evergreen/`
3. Delete the preferences. Just deleting the file won’t do the trick — it’s ... |
e09f1665645814d15c55f85370c40ac9ac57827d | spec/rubocop/cop/force_spec.rb | spec/rubocop/cop/force_spec.rb |
RSpec.describe RuboCop::Cop::Force do
subject(:force) { described_class.new(cops) }
let(:cops) { [double('cop1'), double('cop2')] }
describe '.force_name' do
it 'returns the class name without namespace' do
expect(RuboCop::Cop::VariableForce.force_name).to eq('VariableForce')
end
end
describ... |
RSpec.describe RuboCop::Cop::Force do
subject(:force) { described_class.new(cops) }
let(:cops) do
[
instance_double(RuboCop::Cop::Cop),
instance_double(RuboCop::Cop::Cop)
]
end
describe '.force_name' do
it 'returns the class name without namespace' do
expect(RuboCop::Cop::Variab... | Use verifying doubles in Force spec | Use verifying doubles in Force spec
| Ruby | mit | petehamilton/rubocop,deivid-rodriguez/rubocop,bquorning/rubocop,palkan/rubocop,petehamilton/rubocop,jmks/rubocop,meganemura/rubocop,jfelchner/rubocop,panthomakos/rubocop,bbatsov/rubocop,bquorning/rubocop,bbatsov/rubocop,rrosenblum/rubocop,mikegee/rubocop,vergenzt/rubocop,maxjacobson/rubocop,maxjacobson/rubocop,deivid-r... | ruby | ## Code Before:
RSpec.describe RuboCop::Cop::Force do
subject(:force) { described_class.new(cops) }
let(:cops) { [double('cop1'), double('cop2')] }
describe '.force_name' do
it 'returns the class name without namespace' do
expect(RuboCop::Cop::VariableForce.force_name).to eq('VariableForce')
end
... |
771d430f93104d9b1b28665ec790bd9e0535f9a1 | build/10-deps-apt.sh | build/10-deps-apt.sh | set -o errexit
# Coffee counter
#
# LICENSE: MIT
#
# @project coffee
# @package deployment
# @author André Lademann <vergissberlin@googlemail.com>
# Directories
mkdir -p ~/.ssh
# Install dependencies
apt-get update &&\
apt-get install \
curl \
git-core \
firmware-ralink \
festival \
fest... | set -o errexit
# Coffee counter
#
# LICENSE: MIT
#
# @project coffee
# @package deployment
# @author André Lademann <vergissberlin@googlemail.com>
# Directories
mkdir -p ~/.ssh
# Install dependencies
apt-get update &&\
apt-get install \
curl \
git-core \
firmware-ralink \
festival \
fest... | Upgrade node to version 6 | Upgrade node to version 6
| Shell | mit | vergissberlin/coffee-bin,vergissberlin/coffee-bin,vergissberlin/raspberry-coffee,vergissberlin/raspberry-coffee,vergissberlin/raspberry-coffee,vergissberlin/coffee-bin | shell | ## Code Before:
set -o errexit
# Coffee counter
#
# LICENSE: MIT
#
# @project coffee
# @package deployment
# @author André Lademann <vergissberlin@googlemail.com>
# Directories
mkdir -p ~/.ssh
# Install dependencies
apt-get update &&\
apt-get install \
curl \
git-core \
firmware-ralink \
fes... |
7febb61addd29f2159f90d126714d78388350cba | lib/capistrano-deploy/newrelic.rb | lib/capistrano-deploy/newrelic.rb | require 'new_relic/recipes'
module CapistranoDeploy
module Newrelic
def self.load_into(configuration)
configuration.load do
set(:new_relic_user) { (%x(git config user.name)).chomp }
set(:current_revision) { capture("cd #{deploy_to} && git rev-parse HEAD").chomp }
set(:link) { "https... | require 'new_relic/recipes'
module CapistranoDeploy
module Newrelic
def self.load_into(configuration)
configuration.load do
set(:new_relic_user) { (%x(git config user.name)).chomp }
set(:current_revision) { capture("cd #{deploy_to} && git rev-parse HEAD").chomp }
set(:link) { "https... | Add description to deployment hook | Add description to deployment hook
* Add description variable that will
hold the stage of the project on deploy.
| Ruby | mit | amaabca/capistrano-amadeploy | ruby | ## Code Before:
require 'new_relic/recipes'
module CapistranoDeploy
module Newrelic
def self.load_into(configuration)
configuration.load do
set(:new_relic_user) { (%x(git config user.name)).chomp }
set(:current_revision) { capture("cd #{deploy_to} && git rev-parse HEAD").chomp }
set... |
a96c345f57a957284ff7db0bfafdfc6c1c72a68e | salt/reactors/mitxpro/edxapp_highstate.sls | salt/reactors/mitxpro/edxapp_highstate.sls | edxapp_highstate:
local.state.apply:
- tgt: 'edx-*mitxpro-production-xpro-production-*'
- queue: True
- kwargs:
pillar:
edx:
ansible_flags: '--tags install:configuration'
| {% set payload = data['message']|load_json %}
{% set instanceid = payload['Message']|load_json %}
{% set ENVIRONMENT = 'mitxpro-production' %}
edxapp_highstate:
local.state.sls:
- tgt: 'edx-{{ ENVIRONMENT }}-xpro-production-{{ instanceid['EC2InstanceId'].strip('i-') }}'
- queue: True
- arg:
- edx... | Replace highstate with call to edx.deploy | Replace highstate with call to edx.deploy
| SaltStack | bsd-3-clause | mitodl/salt-ops,mitodl/salt-ops | saltstack | ## Code Before:
edxapp_highstate:
local.state.apply:
- tgt: 'edx-*mitxpro-production-xpro-production-*'
- queue: True
- kwargs:
pillar:
edx:
ansible_flags: '--tags install:configuration'
## Instruction:
Replace highstate with call to edx.deploy
## Code After:
{% set payload... |
bc76461a2e78f6a3ccd09e66cccd6bcef526b92e | .bumpversion.cfg | .bumpversion.cfg | [bumpversion]
current_version = 1.30.0
commit = True
tag = True
[bumpversion:file:setup.cfg]
[bumpversion:file:pyglui/__init__.py]
[bumpversion:file:pyglui/graph.pyx]
[bumpversion:file:pyglui/ui.pyx]
| [bumpversion]
current_version = 1.30.0
commit = True
tag = True
[bumpversion:file:setup.cfg]
[bumpversion:file:src/pyglui/__init__.py]
[bumpversion:file:src/pyglui/graph.pyx]
[bumpversion:file:src/pyglui/ui.pyx]
| Fix file paths after module has been moved into src directory | .bump2version.cfg: Fix file paths after module has been moved into src directory
| INI | mit | pupil-labs/pyglui,pupil-labs/pyglui | ini | ## Code Before:
[bumpversion]
current_version = 1.30.0
commit = True
tag = True
[bumpversion:file:setup.cfg]
[bumpversion:file:pyglui/__init__.py]
[bumpversion:file:pyglui/graph.pyx]
[bumpversion:file:pyglui/ui.pyx]
## Instruction:
.bump2version.cfg: Fix file paths after module has been moved into src directory
#... |
e859feaed2e814ea26b19179f706f365323523d7 | conda.recipe/build.sh | conda.recipe/build.sh | if [ "$(uname)" == "Darwin" ]; then
# C++11 finagling for Mac OSX
export CC=clang
export CXX=clang++
export MACOSX_VERSION_MIN="10.9"
CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
CXXFLAGS="${CXXFLAGS} -Wno-error=unused-command-line-argument"
export LDFLAGS="${LDFLAGS} -mmacosx-versio... | if [ "$(uname)" == "Darwin" ]; then
# C++11 finagling for Mac OSX
export CC=clang
export CXX=clang++
export MACOSX_VERSION_MIN="10.9"
CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
CXXFLAGS="${CXXFLAGS} -Wno-error=unused-command-line-argument"
export LDFLAGS="${LDFLAGS} -mmacosx-versio... | Add the deepdive util dir to PATH for the conda env | Add the deepdive util dir to PATH for the conda env
| Shell | apache-2.0 | sky-xu/deepdive,sky-xu/deepdive,HazyResearch/deepdive,HazyResearch/deepdive,HazyResearch/deepdive,shahin/deepdive,shahin/deepdive,HazyResearch/deepdive | shell | ## Code Before:
if [ "$(uname)" == "Darwin" ]; then
# C++11 finagling for Mac OSX
export CC=clang
export CXX=clang++
export MACOSX_VERSION_MIN="10.9"
CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
CXXFLAGS="${CXXFLAGS} -Wno-error=unused-command-line-argument"
export LDFLAGS="${LDFLAGS}... |
e538186d1c9d71b160dbde070ce5cefdcea7cc62 | lib/olaf/tasks/test_task.rb | lib/olaf/tasks/test_task.rb | require 'ci/reporter/rake/minitest'
require 'rake/testtask'
OL_TEST_HELPER = File.join(File.dirname(__FILE__), "..", "test_helpers")
Rake::TestTask.new do |t|
t.libs << "test"
t.ruby_opts.concat ["-r", OL_TEST_HELPER] # Helper FIRST
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
|
require 'ci/reporter/rake/minitest'
require 'rake/testtask'
OL_TEST_HELPER = File.join(File.dirname(__FILE__), "..", "test_helpers")
Rake::TestTask.new do |t|
t.libs << "test"
t.ruby_opts.concat ["-r", OL_TEST_HELPER] # Helper FIRST
t.test_files = FileList['test/**/*_test.rb'] - FileList['test/integration/*_te... | Add test:integration to all Olaf Rakefiles, currently unused. VAL-232 | Add test:integration to all Olaf Rakefiles, currently unused. VAL-232
| Ruby | mit | onlive/olaf,onlive/olaf | ruby | ## Code Before:
require 'ci/reporter/rake/minitest'
require 'rake/testtask'
OL_TEST_HELPER = File.join(File.dirname(__FILE__), "..", "test_helpers")
Rake::TestTask.new do |t|
t.libs << "test"
t.ruby_opts.concat ["-r", OL_TEST_HELPER] # Helper FIRST
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true... |
34ce387f6cf3b06beb7edab6376f98a0b6e2aae1 | src/test/java/org/jstanier/InputParserTest.java | src/test/java/org/jstanier/InputParserTest.java | package org.jstanier;
import static org.mockito.Mockito.when;
import java.io.StringReader;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import com.jstanier.InputParser;
impo... | package org.jstanier;
import static org.mockito.Mockito.when;
import java.io.StringReader;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import com.jstanier.InputParser;
impo... | Add tests for incorrect input | Add tests for incorrect input
| Java | mit | jstanier/tweet-scheduler | java | ## Code Before:
package org.jstanier;
import static org.mockito.Mockito.when;
import java.io.StringReader;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import com.jstanier.I... |
cde748dd75abf5979d2c36b54d3a585184fddddd | README.md | README.md | Run Your passenger nginx postgres ruby the simple way
## Cron/whenever is not working
It's probably because bundler command is not found. To ensure that env path is included in cron add
`env :PATH, ENV['PATH']` to `schedule.rb`
## Customize image
```Dockerfile
FROM ipepe/pnpr:v2-ruby-2.7.5-staging
RUN /home/webapp... | Run Your passenger nginx postgres ruby the simple way
## Cron/whenever is not working
It's probably because bundler command is not found. To ensure that env path is included in cron add
`env :PATH, ENV['PATH']` to `schedule.rb`
## Customize image
### Other (second) ruby version
```Dockerfile
FROM ipepe/pnpr:v2-ruby... | Add example how to customize image | Add example how to customize image
| Markdown | apache-2.0 | ipepe/pnpr | markdown | ## Code Before:
Run Your passenger nginx postgres ruby the simple way
## Cron/whenever is not working
It's probably because bundler command is not found. To ensure that env path is included in cron add
`env :PATH, ENV['PATH']` to `schedule.rb`
## Customize image
```Dockerfile
FROM ipepe/pnpr:v2-ruby-2.7.5-staging
... |
fa42824209a89bc8fd731f4605738b9fc8738e52 | git_hooks/prepare-commit-msg/jira.sh | git_hooks/prepare-commit-msg/jira.sh |
id=`git rev-parse --abbrev-ref HEAD | grep -e "^\(feature\|hotfix\)\{1\}" | sed "s/\(feature\|hotfix\)\///g"`
if [[ "$id" != "" ]]; then
sed -i "1s/^/$id:/" $1
fi;
|
if [[ `grep -iE "[A-Z]{3,}-[0-9]{1,}:\s+.*" "$1"` != "" ]]; then
exit 0
fi
id=`git rev-parse --abbrev-ref HEAD | grep -e "^\(feature\|hotfix\)\{1\}" | sed "s/\(feature\|hotfix\)\/\([A-Z]\+\-[0-9]\+\)\(-[0-9]\+\)*/\2/g"`
if [[ "$id" != "" ]]; then
sed -i "1s/^/$id: /" $1
fi;
| Update hook to do not add ticket id when it is already present | Update hook to do not add ticket id when it is already present
| Shell | mit | dbestevez/dotfiles | shell | ## Code Before:
id=`git rev-parse --abbrev-ref HEAD | grep -e "^\(feature\|hotfix\)\{1\}" | sed "s/\(feature\|hotfix\)\///g"`
if [[ "$id" != "" ]]; then
sed -i "1s/^/$id:/" $1
fi;
## Instruction:
Update hook to do not add ticket id when it is already present
## Code After:
if [[ `grep -iE "[A-Z]{3,}-[0-9]{1,}:... |
d209020be5369345e04ba5d5cdd30cd8538409a1 | tt/utils.py | tt/utils.py | def without_spaces(the_str):
return "".join(the_str.split()) | def without_spaces(the_str):
return "".join(the_str.split())
def listwise_to_str(the_list):
return list(map(str, the_list)) | Add utility method for converting all elements in list to string. | Add utility method for converting all elements in list to string.
| Python | mit | welchbj/tt,welchbj/tt,welchbj/tt | python | ## Code Before:
def without_spaces(the_str):
return "".join(the_str.split())
## Instruction:
Add utility method for converting all elements in list to string.
## Code After:
def without_spaces(the_str):
return "".join(the_str.split())
def listwise_to_str(the_list):
return list(map(str, the_list)) |
63b24aed01d8cc566c983f547f087557ece2f7d5 | README.md | README.md | OpenIRC
========
IRC for everyone!
### Project Goal
Making open source alternative of [IRCCloud]
### Intructions
```bash
# Building client-side codes
cd client
npm install # Install dependencies
npm test # Static type checking (flow)
npm run build # Build everything in production mode (flow + webpack)
npm ru... | OpenIRC
========
IRC for everyone!
### Project Goal
Making open source alternative of [IRCCloud]
### Intructions
```bash
# Building client-side codes
cd client
yarn # Install dependencies
yarn test # Static type checking (flow)
yarn build # Build everything in production mode (flow ... | Replace instructions with yarn package manager | Replace instructions with yarn package manager
| Markdown | agpl-3.0 | openirc/openirc,openirc/openirc,openirc/openirc,openirc/openirc | markdown | ## Code Before:
OpenIRC
========
IRC for everyone!
### Project Goal
Making open source alternative of [IRCCloud]
### Intructions
```bash
# Building client-side codes
cd client
npm install # Install dependencies
npm test # Static type checking (flow)
npm run build # Build everything in production mode (flow + ... |
115438d4ea6dde1eeaf68054b8f7606a28e13009 | challenges-completed.js | challenges-completed.js | var ipc = require('ipc')
var userData = require('./user-data.js')
document.addEventListener('DOMContentLoaded', function (event) {
var data = userData.getData()
updateIndex(data.contents)
ipc.on('confirm-clear-response', function (response) {
if (response === 1) return
else clearAllChallenges()
})
... | var ipc = require('ipc')
var fs = require('fs')
var userData = require('./user-data.js')
document.addEventListener('DOMContentLoaded', function (event) {
var data = userData.getData()
var clearAllButton = document.getElementById('clear-all-challenges')
updateIndex(data.contents)
ipc.on('confirm-clear-respon... | Fix all the bugs in writing data and confirming clear | Fix all the bugs in writing data and confirming clear
| JavaScript | bsd-2-clause | dice/git-it-electron,countryoven/git-it-electron,countryoven/git-it-electron,dice/git-it-electron,rets5s/git-it-electron,IonicaBizauKitchen/git-it-electron,jlord/git-it-electron,IonicaBizauKitchen/git-it-electron,countryoven/git-it-electron,shiftkey/git-it-electron,rets5s/git-it-electron,countryoven/git-it-electron,cou... | javascript | ## Code Before:
var ipc = require('ipc')
var userData = require('./user-data.js')
document.addEventListener('DOMContentLoaded', function (event) {
var data = userData.getData()
updateIndex(data.contents)
ipc.on('confirm-clear-response', function (response) {
if (response === 1) return
else clearAllChall... |
9dbf361770ad62a2fbcc0a30bab7d9fb0d54b189 | _config.yml | _config.yml | ---
url: http://www.lesliebeesleylmsw.com
baseurl: ''
compass:
logo: "/images/officetree.png"
author: Leslie Beesley, LMSW
tagline: Adults · Children · Family
description:
include_content: true
include_analytics: false
markdown: kramdown
highlighter: rouge
permalink: pretty
| ---
url: http://lesliebeesleylmsw.github.io
baseurl: ''
compass:
logo: "/images/officetree.png"
author: Leslie Beesley, LMSW
tagline: Adults · Children · Family
description:
include_content: true
include_analytics: false
markdown: kramdown
highlighter: rouge
permalink: pretty
| Change site url for github testing | Change site url for github testing
| YAML | mit | lesliebeesleylmsw/lesliebeesleylmsw.github.io,lesliebeesleylmsw/lesliebeesleylmsw.github.io | yaml | ## Code Before:
---
url: http://www.lesliebeesleylmsw.com
baseurl: ''
compass:
logo: "/images/officetree.png"
author: Leslie Beesley, LMSW
tagline: Adults · Children · Family
description:
include_content: true
include_analytics: false
markdown: kramdown
highlighter: rouge
permalink: pretty
## Instruction:... |
d0d28f6d00f855e9d6ba4f0c261802acce6456bc | test/lib/catissue/domain/address_test.rb | test/lib/catissue/domain/address_test.rb | require File.dirname(__FILE__) + '/../helpers/test_case'
require 'caruby/helpers/uniquifier'
class AddressTest < Test::Unit::TestCase
include CaTissue::TestCase
def setup
super
# make the unique test address
@user = defaults.tissue_bank.coordinator
@addr = @user.address
end
def test_defaults
... | require File.dirname(__FILE__) + '/../helpers/test_case'
require 'caruby/helpers/uniquifier'
class AddressTest < Test::Unit::TestCase
include CaTissue::TestCase
def setup
super
# make the unique test address
@user = defaults.tissue_bank.coordinator
@addr = @user.address
end
def test_defaults
... | Address identifier is not set by caTissue in save result. | Address identifier is not set by caTissue in save result.
| Ruby | mit | caruby/tissue,caruby/tissue,caruby/tissue | ruby | ## Code Before:
require File.dirname(__FILE__) + '/../helpers/test_case'
require 'caruby/helpers/uniquifier'
class AddressTest < Test::Unit::TestCase
include CaTissue::TestCase
def setup
super
# make the unique test address
@user = defaults.tissue_bank.coordinator
@addr = @user.address
end
de... |
0907821993482c6f482dd6c8f710bb28475042aa | client/view/posts/posts_list.js | client/view/posts/posts_list.js | var postsData = [
{
title: 'Introducing Julie',
author: 'JulesWiz',
url: 'http://ngjulie.meteor.com'
},
{
title: 'Verybite',
author: 'Jules Verybite',
url: 'http://verybite.com'
},
{
title: 'Julie Ng',
author: 'Linked in',
url: 'http://linkedin.com/julieasia'
}
];
Templat... | var postsData = [
{
title: 'Introducing Julie',
author: 'JulesWiz',
url: 'http://ngjulie.meteor.com'
},
{
title: 'Verybite',
author: 'Jules Verybite',
url: 'http://verybite.com'
},
{
title: 'Julie Ng',
author: 'Linked in',
url: 'http://linkedin.com/julieasia'
}
];
Templat... | Sort posts by submitted timestamp | Sort posts by submitted timestamp
| JavaScript | mit | JulesWiz/microscope | javascript | ## Code Before:
var postsData = [
{
title: 'Introducing Julie',
author: 'JulesWiz',
url: 'http://ngjulie.meteor.com'
},
{
title: 'Verybite',
author: 'Jules Verybite',
url: 'http://verybite.com'
},
{
title: 'Julie Ng',
author: 'Linked in',
url: 'http://linkedin.com/julieasia... |
b215f92205a518d949a21f2658a23ab666f3b539 | getbinaries.sh | getbinaries.sh | brew install mas
# Install XCode
mas install 497799835
sudo xcodebuild -license accept
# Install gh command line
brew install gh
# Install zsh
brew install zsh zsh-completions
# Make zsh default shell
chsh -s $(which zsh)
# Install ohmyszsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/mast... | brew install mas
# Install XCode
mas install 497799835
sudo xcodebuild -license accept
# Install gh command line
brew install gh
# Install zsh
brew install zsh zsh-completions
# Make zsh default shell
chsh -s $(which zsh)
# Install ohmyszsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/mast... | Add python fix for nvim | Add python fix for nvim
| Shell | mit | pmarsceill/dotfiles | shell | ## Code Before:
brew install mas
# Install XCode
mas install 497799835
sudo xcodebuild -license accept
# Install gh command line
brew install gh
# Install zsh
brew install zsh zsh-completions
# Make zsh default shell
chsh -s $(which zsh)
# Install ohmyszsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmy... |
65b4d3fcda2207e9913292621929d533be0ce33b | xgds_planner2/templates/handlebars/tabnav.handlebars | xgds_planner2/templates/handlebars/tabnav.handlebars | <ul id="tab-nav" class="row nav nav-tabs">
<li class="active" data-target="meta"><a>Meta</a></li>
<li data-target="sequence"><a>Sequence</a></li>
<li data-target="layers"><a>Layers</a></li>
<li data-target="tools"><a>Tools</a></li>
</ul>
<div id="tab-content" class="row tab-content" style="margin-left:... | <ul id="tab-nav" class="row nav nav-tabs">
<li class="active" data-target="meta"><a>Meta</a></li>
<li data-target="sequence"><a>Sequence</a></li>
<li data-target="layers"><a>Layers</a></li>
<!--
<li data-target="tools"><a>Tools</a></li>
-->
</ul>
<div id="tab-content" class="row tab-content" s... | Disable tools tab ( since it has no content right now.) | Disable tools tab ( since it has no content right now.)
| Handlebars | apache-2.0 | xgds/xgds_planner2,xgds/xgds_planner2,xgds/xgds_planner2,xgds/xgds_planner2 | handlebars | ## Code Before:
<ul id="tab-nav" class="row nav nav-tabs">
<li class="active" data-target="meta"><a>Meta</a></li>
<li data-target="sequence"><a>Sequence</a></li>
<li data-target="layers"><a>Layers</a></li>
<li data-target="tools"><a>Tools</a></li>
</ul>
<div id="tab-content" class="row tab-content" sty... |
7b3189817a3cb7729b67cbd216f55345872d5f8f | CMakeLists.txt | CMakeLists.txt | project(Strain)
itk_module_impl()
| cmake_minimum_required(VERSION 2.8.9)
project(Strain)
if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
itk_module_impl()
endif()
| Allow the module to be built externally. | ENH: Allow the module to be built externally.
| Text | apache-2.0 | KitwareMedical/ITKStrain,KitwareMedical/ITKStrain | text | ## Code Before:
project(Strain)
itk_module_impl()
## Instruction:
ENH: Allow the module to be built externally.
## Code After:
cmake_minimum_required(VERSION 2.8.9)
project(Strain)
if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else(... |
50a084e7894ae1b3586709cf488bd2260cbeb615 | packages/eslint-config-eventbrite/rules/style.js | packages/eslint-config-eventbrite/rules/style.js | // The rules ultimately override any rules defined in legacy/rules/style.js
module.exports = {
rules: {
// Enforce function expressions
// http://eslint.org/docs/rules/func-style
'func-style': ['error', 'expression'],
// enforce that `let` & `const` declarations are declared togethe... | // The rules ultimately override any rules defined in legacy/rules/style.js
module.exports = {
rules: {
// Enforce function expressions
// http://eslint.org/docs/rules/func-style
'func-style': ['error', 'expression'],
// enforce that `let` & `const` declarations are declared togethe... | Add new rule for spacing around infix operators | Add new rule for spacing around infix operators
| JavaScript | mit | eventbrite/javascript | javascript | ## Code Before:
// The rules ultimately override any rules defined in legacy/rules/style.js
module.exports = {
rules: {
// Enforce function expressions
// http://eslint.org/docs/rules/func-style
'func-style': ['error', 'expression'],
// enforce that `let` & `const` declarations are ... |
70b5e67b9e02092318fbc06d20424cc64bbfc82f | main/resources/extraterm.desktop | main/resources/extraterm.desktop | [Desktop Entry]
Categories=System;TerminalEmulator;
Comment[en_US]=Command line access
Comment=Command line access
Exec=bash -c '"$(dirname "%k")/extratermqt"'
GenericName[en_US]=Terminal
GenericName=Terminal
Icon=extratermqt
MimeType=
Name[en_US]=ExtratermQt
Name=ExtratermQt
Terminal=false
Type=Application
X-DBUS-Serv... | [Desktop Entry]
Name=ExtratermQt
Exec=/opt/extratermqt/extratermqt
Terminal=false
Type=Application
Comment=The swiss army chainsaw of terminal emulators
Categories=System;TerminalEmulator;X-GNOME-Utilities;
Icon=extratermqt
| Use the correct .desktop file in the Debian package | Use the correct .desktop file in the Debian package
| desktop | mit | sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm | desktop | ## Code Before:
[Desktop Entry]
Categories=System;TerminalEmulator;
Comment[en_US]=Command line access
Comment=Command line access
Exec=bash -c '"$(dirname "%k")/extratermqt"'
GenericName[en_US]=Terminal
GenericName=Terminal
Icon=extratermqt
MimeType=
Name[en_US]=ExtratermQt
Name=ExtratermQt
Terminal=false
Type=Applica... |
02e8bcd20805747c4b3add9d05d407a185d50764 | app/src/main/java/info/zamojski/soft/towercollector/utils/NotificationHelperBase.java | app/src/main/java/info/zamojski/soft/towercollector/utils/NotificationHelperBase.java | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package info.zamojski.soft.towercollector.utils;
import android.content.Context;
import android.os.Build;
import ... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package info.zamojski.soft.towercollector.utils;
import android.content.Context;
import android.os.Build;
import ... | Fix incorrect notification channel ids, | Fix incorrect notification channel ids, | Java | mpl-2.0 | zamojski/TowerCollector,zamojski/TowerCollector | java | ## Code Before:
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package info.zamojski.soft.towercollector.utils;
import android.content.Context;
import android.o... |
df35acc291e2ab617c579037c19f36bb8ec8ec6f | app/views/people/show.html.erb | app/views/people/show.html.erb | <% content_for :title, person.title %>
<%= render partial: "header", locals: { person: person } %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-third">
<%= render "govuk_publishing_components/components/image_card", {
href: "#",
image_src: person.image_url,
image_alt: person.... | <% content_for :title, person.title %>
<%= render partial: "header", locals: { person: person } %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-third">
<%= render "govuk_publishing_components/components/image_card", {
href: "#",
image_src: person.image_url,
image_alt: person.... | Use contents_list component for page contents | Use contents_list component for page contents
This is a better component to use than the image card links.
| HTML+ERB | mit | alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections | html+erb | ## Code Before:
<% content_for :title, person.title %>
<%= render partial: "header", locals: { person: person } %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-third">
<%= render "govuk_publishing_components/components/image_card", {
href: "#",
image_src: person.image_url,
im... |
994bf99b2f454b08960a7d1dcab0a4855b01416a | circle.yml | circle.yml | machine:
node:
version: 4.0.0
dependencies:
override:
- npm install
deployment:
production:
branch: master
commands:
- npm start
- npm run deploy
| machine:
node:
version: 4.0.0
dependencies:
override:
- npm install
deployment:
prod:
branch: master
commands:
- npm start
- aws s3 sync build s3://chocolate-free.com --delete
| Change the deploy to s3 | Change the deploy to s3
| YAML | apache-2.0 | Khaledgarbaya/chocolate-free-website,Khaledgarbaya/chocolate-free-website | yaml | ## Code Before:
machine:
node:
version: 4.0.0
dependencies:
override:
- npm install
deployment:
production:
branch: master
commands:
- npm start
- npm run deploy
## Instruction:
Change the deploy to s3
## Code After:
machine:
node:
version: 4.0.0
dependencies:
override:
-... |
11393ce7d187e81c944a049ef04964eb461869ab | doc/contributing/build-commands.rst | doc/contributing/build-commands.rst | Build commands
==============
Here are the commands you will find useful as a contributor:
test
----
Runs all the tests, then all the test suites separately::
$ npm run test
dev
---
Builds ``remotestorage.js`` in the ``release/`` directory every time you change
a file, using webpack in watch mode. This is usef... | Build commands
==============
Here are the commands you will find useful as a contributor:
test
----
Runs all the tests, then all the test suites separately::
$ npm run test
Run a specific test file::
$ node_modules/jaribu/bin/jaribu test/unit/remotestorage-suite.js
dev
---
Builds ``remotestorage.js`` in ... | Document how to run a specific test suite | Document how to run a specific test suite
| reStructuredText | mit | remotestorage/remotestorage.js,remotestorage/remotestorage.js,theWebalyst/remotestorage.js,theWebalyst/remotestorage.js,remotestorage/remotestorage.js | restructuredtext | ## Code Before:
Build commands
==============
Here are the commands you will find useful as a contributor:
test
----
Runs all the tests, then all the test suites separately::
$ npm run test
dev
---
Builds ``remotestorage.js`` in the ``release/`` directory every time you change
a file, using webpack in watch mo... |
a7e50ae3176e5871907bfcb12eae24745768e61f | package.json | package.json | {
"name": "louisville.io",
"version": "0.0.0",
"description": "Louisville Tech Calendar",
"main": "index.js",
"scripts": {
"download": "node download.js",
"process": "node index.js",
"unfold": "unfold site.json",
"build": "npm run download && npm run process && npm run unfold"
},
"author":... | {
"name": "louisville.io",
"version": "0.0.0",
"description": "Louisville Tech Calendar",
"main": "index.js",
"scripts": {
"download": "node download.js",
"process": "node index.js",
"unfold": "unfold site.json",
"build": "npm run download && npm run process && npm run unfold"
},
"author":... | Use fork of ical module until bugfix is merged. | Use fork of ical module until bugfix is merged.
Close #11
| JSON | mit | louisvilletech/louisvilletech.org,louisvilleio/louisville.io,louisvilletech/louisvilletech.org,louisvilleio/louisville.io,veronicarivera/louisville.io | json | ## Code Before:
{
"name": "louisville.io",
"version": "0.0.0",
"description": "Louisville Tech Calendar",
"main": "index.js",
"scripts": {
"download": "node download.js",
"process": "node index.js",
"unfold": "unfold site.json",
"build": "npm run download && npm run process && npm run unfold"
... |
c92a56dc937dc414139e2bff958190cfb18de5d9 | tests/basics/try2.py | tests/basics/try2.py |
try:
print("try 1")
try:
print("try 2")
foo()
except:
print("except 2")
bar()
except:
print("except 1")
try:
print("try 1")
try:
print("try 2")
foo()
except TypeError:
print("except 2")
bar()
except NameError:
print("except 1")
|
try:
print("try 1")
try:
print("try 2")
foo()
except:
print("except 2")
bar()
except:
print("except 1")
try:
print("try 1")
try:
print("try 2")
foo()
except TypeError:
print("except 2")
bar()
except NameError:
print("except 1")
#... | Add testcase with exception handler spread across functions. | Add testcase with exception handler spread across functions.
| Python | mit | SHA2017-badge/micropython-esp32,skybird6672/micropython,vriera/micropython,SHA2017-badge/micropython-esp32,jimkmc/micropython,cnoviello/micropython,cloudformdesign/micropython,emfcamp/micropython,dhylands/micropython,xuxiaoxin/micropython,AriZuu/micropython,cloudformdesign/micropython,selste/micropython,ryannathans/mic... | python | ## Code Before:
try:
print("try 1")
try:
print("try 2")
foo()
except:
print("except 2")
bar()
except:
print("except 1")
try:
print("try 1")
try:
print("try 2")
foo()
except TypeError:
print("except 2")
bar()
except NameError:
prin... |
0b035cc68a9bf7f7ac8431b551a6c53fe881c24d | app/AppKernel.php | app/AppKernel.php | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | Add bundles to the kernel | Add bundles to the kernel
| PHP | mit | aMarcireau/balloscope,aMarcireau/balloscope | php | ## Code Before:
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\Se... |
00f9645de09737da9e1862c5604087a65b3bdafa | _wiki/Main_Page.md | _wiki/Main_Page.md | ---
title: Main Page
---

## About Wurst
The Wurst Client is a Minecraft hacked client made by Alexander01998. It contains a large variety of cheats that allow you to do things that you couldn't do... | ---
title: Main Page
labels:
- stub
---

## About Wurst
The Wurst Client is a Minecraft hacked client made by Alexander01998. It contains a large variety of cheats that allow you to do things tha... | Add stub label to main page | :book: Add stub label to main page
| Markdown | mpl-2.0 | Voldemart/voldemart.github.io | markdown | ## Code Before:
---
title: Main Page
---

## About Wurst
The Wurst Client is a Minecraft hacked client made by Alexander01998. It contains a large variety of cheats that allow you to do things that... |
cf16c64e378f64d2267f75444c568aed895f940c | setup.py | setup.py | import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd",
autho... | import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd",
autho... | Add csblog to installed scripts. | Add csblog to installed scripts.
| Python | mit | mhils/countershape,samtaufa/countershape,cortesi/countershape,cortesi/countershape,samtaufa/countershape,mhils/countershape | python | ## Code Before:
import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd... |
f70dc45b36782c3cd27abec11df608b5826d429a | footer.php | footer.php | <?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package socket.io-website
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<span class="footer-left">SOCKET.IO IS ... | <?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package socket.io-website
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<span class="footer-left">SOCKET.IO IS ... | Add link to contributors graph | Add link to contributors graph
| PHP | mit | Automattic/socket.io-website,davidcelis/socket.io-website,davidcelis/socket.io-website,Automattic/socket.io-website,Automattic/socket.io-website | php | ## Code Before:
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package socket.io-website
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<span class="footer-lef... |
3ddd22e1ade2716f96439e7d1e3b044217c44b2a | src/adts/adts_list.h | src/adts/adts_list.h |
/**
**************************************************************************
* \details
*
**************************************************************************
*/
#define ADTS_LIST_BYTES (32)
#define ADTS_LIST_ELEM_BYTES (32)
/**
*********************************************************************... |
/**
**************************************************************************
* \details
*
**************************************************************************
*/
#define ADTS_LIST_BYTES (32)
#define ADTS_LIST_ELEM_BYTES (32)
/**
*********************************************************************... | Make list.h non-modifiabe in ADT | Make list.h non-modifiabe in ADT
| C | mit | 78613/sample,78613/sample | c | ## Code Before:
/**
**************************************************************************
* \details
*
**************************************************************************
*/
#define ADTS_LIST_BYTES (32)
#define ADTS_LIST_ELEM_BYTES (32)
/**
*****************************************************... |
dcf625e2d65d965838f4081cedc1cc60678c99ef | lib/xregexp.js | lib/xregexp.js | const xRegExp = require('xregexp');
module.exports = function(regexp, flags) {
const lines = regexp.split('\n');
return xRegExp(
lines.map((line) => line.replace(/\s+#.+/, '')).join('\n'),
flags
);
};
| const xRegExp = require('xregexp');
module.exports = (regexp, flags) => {
const lines = regexp.split('\n');
return xRegExp(
lines.map((line) => line.replace(/\s+#.+/, ' ')).join('\n'),
flags
);
};
| Use a single space in xRegExp wrapper | Use a single space in xRegExp wrapper
Removing all whitespace here is dangerous and could cause bugs if it
ends up removing spaces between a numbered backreference (e.g. \1) and a
literal number (e.g. 1). To make this safer, I am replacing it with a
single space, which will then be converted by xRegExp to `(?:)` if we... | JavaScript | mit | trotzig/import-js,trotzig/import-js,trotzig/import-js,Galooshi/import-js | javascript | ## Code Before:
const xRegExp = require('xregexp');
module.exports = function(regexp, flags) {
const lines = regexp.split('\n');
return xRegExp(
lines.map((line) => line.replace(/\s+#.+/, '')).join('\n'),
flags
);
};
## Instruction:
Use a single space in xRegExp wrapper
Removing all whitespace here is ... |
0477c534180e91a679215be7e1f15c8e801ba583 | install/install.sh | install/install.sh | set -e
# Update package list
apk upgrade -q -U -a
# Default server RAM
if [ -z "$RAM" ]; then
memory_limit=$(expr $(cat /sys/fs/cgroup/memory/memory.limit_in_bytes) / 1024 / 1024)
memory_free=$(free -m | awk 'NR==2{printf $2}')
export RAM=$(($memory_limit > $memory_free ? $memory_free : $memory_limit))
fi
# Call ... | set -e
# Update package list
apk upgrade -q -U -a
# Default server RAM
if [ -z "$RAM" ]; then
memory_limit=$(expr $(cat /sys/fs/cgroup/memory/memory.limit_in_bytes) / 1024 / 1024)
memory_free=$(free -m | awk 'NR==2{printf $2}')
export RAM=$(($memory_limit > $memory_free ? $memory_free : $memory_limit))
fi
# Fix d... | Allow [,; ] as domains separator | Allow [,; ] as domains separator
| Shell | mit | blunt1337/docker-alpine-nginx-php7,blunt1337/docker-alpine-nginx-php7 | shell | ## Code Before:
set -e
# Update package list
apk upgrade -q -U -a
# Default server RAM
if [ -z "$RAM" ]; then
memory_limit=$(expr $(cat /sys/fs/cgroup/memory/memory.limit_in_bytes) / 1024 / 1024)
memory_free=$(free -m | awk 'NR==2{printf $2}')
export RAM=$(($memory_limit > $memory_free ? $memory_free : $memory_lim... |
6ea06013e45f2a3c87c06011e30992cd30f32276 | lib/ey-core/models/server_usage.rb | lib/ey-core/models/server_usage.rb | class Ey::Core::Client::ServerUsage < Ey::Core::Model
extend Ey::Core::Associations
attribute :start_at, type: :time
attribute :end_at, type: :time
attribute :report_time, type: :time
attribute :flavor
attribute :dedicated
attribute :location
attribute :deis
has_one :environment
has_one :p... | class Ey::Core::Client::ServerUsage < Ey::Core::Model
extend Ey::Core::Associations
attribute :start_at, type: :time
attribute :end_at, type: :time
attribute :report_time, type: :time
attribute :flavor
attribute :dedicated
attribute :location
attribute :deis
attribute :provisioned_id
has_o... | Add provisioned_id attribute to ServerUsage | Add provisioned_id attribute to ServerUsage
| Ruby | mit | engineyard/core-client-rb | ruby | ## Code Before:
class Ey::Core::Client::ServerUsage < Ey::Core::Model
extend Ey::Core::Associations
attribute :start_at, type: :time
attribute :end_at, type: :time
attribute :report_time, type: :time
attribute :flavor
attribute :dedicated
attribute :location
attribute :deis
has_one :environm... |
a497e5747530941cec420c19eeed90f07ddb9398 | app/helpers/milestones_helper.rb | app/helpers/milestones_helper.rb | module MilestonesHelper
def progress_tag_for(progress_bar)
text = number_to_percentage(progress_bar.percentage, precision: 0)
content_tag :span do
content_tag(:span, "", "data-text": text, style: "width: #{progress_bar.percentage}%;") +
content_tag(:progress,
text,
... | module MilestonesHelper
def progress_tag_for(progress_bar)
text = number_to_percentage(progress_bar.percentage, precision: 0)
content_tag :div, class: "progress",
role: "progressbar",
"aria-valuenow": "#{progress_bar.percentage}",
"aria-value... | Replace progress tag to div class progress | Replace progress tag to div class progress
| Ruby | agpl-3.0 | AyuntamientoPuertoReal/decidePuertoReal,usabi/consul_san_borondon,consul/consul,consul/consul,consul/consul,usabi/consul_san_borondon,consul/consul,AyuntamientoMadrid/participacion,AyuntamientoMadrid/participacion,consul/consul,AyuntamientoPuertoReal/decidePuertoReal,AyuntamientoMadrid/participacion,usabi/consul_san_bo... | ruby | ## Code Before:
module MilestonesHelper
def progress_tag_for(progress_bar)
text = number_to_percentage(progress_bar.percentage, precision: 0)
content_tag :span do
content_tag(:span, "", "data-text": text, style: "width: #{progress_bar.percentage}%;") +
content_tag(:progress,
tex... |
97262b2abc361150f1e5a7b286433d53e3eb5b8e | .travis.yml | .travis.yml | language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
global:
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR/source
- CPLUS_INCLUDE_PATH=/usr/include/gdal
- C_INCLUDE_PATH=/usr/include/gdal
cache:
directories:
- $GDALINST
- ~/.cache/pip
addons:
apt:
packag... | language: python
python:
- "3.8"
- "3.7"
- "3.6"
env:
global:
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR/source
- CPLUS_INCLUDE_PATH=/usr/include/gdal
- C_INCLUDE_PATH=/usr/include/gdal
cache:
directories:
- $GDALINST
- ~/.cache/pip
addons:
apt:
packages:
... | Remove Py3.5 from test configuration | Remove Py3.5 from test configuration | YAML | bsd-3-clause | consbio/ncdjango,consbio/ncdjango | yaml | ## Code Before:
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
global:
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR/source
- CPLUS_INCLUDE_PATH=/usr/include/gdal
- C_INCLUDE_PATH=/usr/include/gdal
cache:
directories:
- $GDALINST
- ~/.cache/pip
addons:
... |
af73b1ab0db173737c2d8b6f0e8e3c2a09bdaed0 | plugins/fstab.rb | plugins/fstab.rb | Ohai.plugin(:Fstab) do
provides 'fstab'
collect_data(:linux) do
fstab Mash.new
fstab_entries = Array.new
f = File.open('/etc/fstab')
f.each_line do |line|
fstab_entries.push(line) unless line.start_with?('#')
end
fstab_return = Hash.new
entry_hash = Hash.new
fstab_entries.each... | Ohai.plugin(:Fstab) do
provides 'fstab'
collect_data(:linux) do
fstab Mash.new
fstab_entries = Array.new
f = File.open('/etc/fstab')
f.each_line do |line|
fstab_entries.push(line) unless line.start_with?('#')
end
fstab_return = Hash.new
entry_hash = Hash.new
fstab_entries.each... | Use next to skip iteration per rubocop | Use next to skip iteration per rubocop
| Ruby | apache-2.0 | jarosser06/ohai-plugins,rackerlabs/ohai-plugins,rackerlabs/ohai-plugins,jarosser06/ohai-plugins | ruby | ## Code Before:
Ohai.plugin(:Fstab) do
provides 'fstab'
collect_data(:linux) do
fstab Mash.new
fstab_entries = Array.new
f = File.open('/etc/fstab')
f.each_line do |line|
fstab_entries.push(line) unless line.start_with?('#')
end
fstab_return = Hash.new
entry_hash = Hash.new
fs... |
e2520735a0b6afcee7d54f0f6a085ef7999f7d43 | lib/runtime/runtimes/base.js | lib/runtime/runtimes/base.js | const stack = require('../stack');
const evaluate = require('../evaluate');
const stdlib = require('../../stdlib');
const parse = require('../../parser/parse');
class BaseRuntime {
constructor() {
this.stack = stack();
this.lexicon = stdlib;
}
loadWords(words) {
this.lexicon = Object.assign(this.lex... | const stack = require('../stack');
const evaluate = require('../evaluate');
const stdlib = require('../../stdlib');
const parse = require('../../parser/parse');
class BaseRuntime {
constructor() {
this.stack = stack();
this.lexicon = stdlib;
}
loadWords(words) {
this.lexicon = Object.assign(this.lex... | Add a condition to throw parse error on empty AST | Add a condition to throw parse error on empty AST
| JavaScript | mit | mollerse/ait-lang | javascript | ## Code Before:
const stack = require('../stack');
const evaluate = require('../evaluate');
const stdlib = require('../../stdlib');
const parse = require('../../parser/parse');
class BaseRuntime {
constructor() {
this.stack = stack();
this.lexicon = stdlib;
}
loadWords(words) {
this.lexicon = Object... |
8e27bc18a6fe3f59b067a1fbb7cc92649a4270af | RateMyTalkAtMobOS/Classes/Model/RMTRating.swift | RateMyTalkAtMobOS/Classes/Model/RMTRating.swift | @objc(RMTRating)
class RMTRating: _RMTRating {
class func deleteAllExceptMyRatings(finishedCallback: () -> Void) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), { () -> Void in
let userUUID = NSUserDefaults.standardUserDefaults().userUUID
let... | @objc(RMTRating)
class RMTRating: _RMTRating {
class func deleteAllExceptMyRatings(finishedCallback: () -> Void) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), { () -> Void in
let userUUID = NSUserDefaults.standardUserDefaults().userUUID
let... | Use thread context for deleting the ratings. | Use thread context for deleting the ratings.
| Swift | bsd-3-clause | grigaci/RateMyTalkAtMobOS,grigaci/RateMyTalkAtMobOS,grigaci/RateMyTalkAtMobOS | swift | ## Code Before:
@objc(RMTRating)
class RMTRating: _RMTRating {
class func deleteAllExceptMyRatings(finishedCallback: () -> Void) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), { () -> Void in
let userUUID = NSUserDefaults.standardUserDefaults().userUUID... |
b1382a56b1a85b58ac204cc73a755df8520672e4 | helpers/fs.ts | helpers/fs.ts | import * as fs from "fs-extra";
import * as recursiveReaddir from "recursive-readdir";
export default class HelperFS {
/**
* Provides functionality of deprecated fs.exists()
* See https://github.com/nodejs/node/issues/1592
*/
public static async exists(filename: string): Promise<boolean> {
... | import * as fs from "fs-extra";
import * as recursiveReaddir from "recursive-readdir";
export default class HelperFS {
/**
* DEPRECATED: use `fs-extra`.pathExists()
* Provides functionality of deprecated fs.exists()
* See https://github.com/nodejs/node/issues/1592
*/
public static async exi... | Mark FS helpers as deprecated | Mark FS helpers as deprecated
| TypeScript | mit | crossroads-education/eta,crossroads-education/eta | typescript | ## Code Before:
import * as fs from "fs-extra";
import * as recursiveReaddir from "recursive-readdir";
export default class HelperFS {
/**
* Provides functionality of deprecated fs.exists()
* See https://github.com/nodejs/node/issues/1592
*/
public static async exists(filename: string): Promise<... |
a34920c4f7952421729148eebb9009b2a1722a9a | .travis.yml | .travis.yml | branches:
only:
- 'master'
- 'develop'
language: ruby
rvm:
- 2.1
- 2.0
env:
- DB=postgres BUILD_TYPE=other
- DB=mysql BUILD_TYPE=other
- DB=postgres BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=cucumber
bundler_args: "--without development production heroku"
script: "./script/ci/build.sh"
notifi... | language: ruby
rvm:
- 2.1
- 2.0
env:
- DB=postgres BUILD_TYPE=other
- DB=mysql BUILD_TYPE=other
- DB=postgres BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=cucumber
sudo: false
branches:
only:
- 'master'
- 'develop'
bundler_args: "--without development production heroku --jobs 3 --retry 3"
scrip... | Use the new build env on Travis | Use the new build env on Travis
faster better stronger | YAML | agpl-3.0 | Flaburgan/diaspora,jhass/diaspora,geraspora/diaspora,despora/diaspora,Amadren/diaspora,KentShikama/diaspora,Flaburgan/diaspora,jhass/diaspora,spixi/diaspora,diaspora/diaspora,spixi/diaspora,spixi/diaspora,jhass/diaspora,Flaburgan/diaspora,KentShikama/diaspora,SuperTux88/diaspora,Muhannes/diaspora,despora/diaspora,diasp... | yaml | ## Code Before:
branches:
only:
- 'master'
- 'develop'
language: ruby
rvm:
- 2.1
- 2.0
env:
- DB=postgres BUILD_TYPE=other
- DB=mysql BUILD_TYPE=other
- DB=postgres BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=cucumber
bundler_args: "--without development production heroku"
script: "./script/ci/b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.