commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4213899b01d41487a188ca9f5b30f01c9bd861d7 | modules/ui/treemacs/autoload.el | modules/ui/treemacs/autoload.el | ;;; ui/treemacs/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +treemacs/toggle ()
"Initialize or toggle treemacs.
* If the treemacs window is visible hide it.
* If a treemacs buffer exists, but is not visible show it.
* If no treemacs buffer exists for the current frame create and show it.
* If the w... | ;;; ui/treemacs/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +treemacs/toggle ()
"Initialize or toggle treemacs.
* If the treemacs window is visible hide it.
* If a treemacs buffer exists, but is not visible show it.
* If no treemacs buffer exists for the current frame create and show it.
* If the w... | Refactor out -pcase in +treemacs/toggle | Refactor out -pcase in +treemacs/toggle
| Emacs Lisp | mit | UndeadKernel/emacs_doom,hlissner/.emacs.d,UndeadKernel/emacs_doom,hlissner/.emacs.d,hlissner/.emacs.d,UndeadKernel/emacs_doom,UndeadKernel/emacs_doom,hlissner/.emacs.d,UndeadKernel/emacs_doom,hlissner/.emacs.d,hlissner/doom-emacs,UndeadKernel/emacs_doom,hlissner/.emacs.d,UndeadKernel/emacs_doom,hlissner/doom-emacs,hlis... | emacs-lisp | ## Code Before:
;;; ui/treemacs/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +treemacs/toggle ()
"Initialize or toggle treemacs.
* If the treemacs window is visible hide it.
* If a treemacs buffer exists, but is not visible show it.
* If no treemacs buffer exists for the current frame create and sho... | ;;; ui/treemacs/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +treemacs/toggle ()
"Initialize or toggle treemacs.
* If the treemacs window is visible hide it.
* If a treemacs buffer exists, but is not visible show it.
* If no treemacs buffer exists for the current frame create and sho... | 10 | 0.454545 | 5 | 5 |
be15f350522d522d9a8eeaf1c214f6257adc055b | README.md | README.md |
[](https://gitter.im/daryllabar/XrmUnitTest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://... |
[](https://gitter.im/daryllabar/XrmUnitTest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Xrm Unit Testing Framework Provides a long list of features that makes developing Unit Tests in ... | Test with Branches and merging by adding a link to the wiki | Test with Branches and merging by adding a link to the wiki
| Markdown | mit | daryllabar/XrmUnitTest | markdown | ## Code Before:
[](https://gitter.im/daryllabar/XrmUnitTest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://gitter.im/daryllabar/XrmUnitTest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
- [](... | 4 | 0.571429 | 2 | 2 |
9b04b3ca1184556181562ce79e23cf3dfb572396 | includes/libft_trm.h | includes/libft_trm.h | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft_trm.h :+: :+: :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft_trm.h :+: :+: :+: ... | Change on_key term event to on_key_press | Change on_key term event to on_key_press
| C | apache-2.0 | ncoden/libft | c | ## Code Before:
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft_trm.h :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft_trm.h :+: :+: ... | 4 | 0.125 | 2 | 2 |
0b8d55b196164dc7dfdef644ee95806f2d5dac59 | packages/kolibri-tools/jest.conf/setup.js | packages/kolibri-tools/jest.conf/setup.js | import 'intl';
import 'intl/locale-data/jsonp/en.js';
import * as Aphrodite from 'aphrodite';
import * as AphroditeNoImportant from 'aphrodite/no-important';
import Vue from 'vue';
import VueMeta from 'vue-meta';
import VueRouter from 'vue-router';
import Vuex from 'vuex';
import { i18nSetup } from 'kolibri.utils.i18n... | import 'intl';
import 'intl/locale-data/jsonp/en.js';
import * as Aphrodite from 'aphrodite';
import * as AphroditeNoImportant from 'aphrodite/no-important';
import Vue from 'vue';
import VueMeta from 'vue-meta';
import VueRouter from 'vue-router';
import Vuex from 'vuex';
import { i18nSetup } from 'kolibri.utils.i18n... | Add extra logging for node promises | Add extra logging for node promises
| JavaScript | mit | indirectlylit/kolibri,learningequality/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,mrpau/kolibri,mrpau/kolibri,learningequality/kolibri,mrpau/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,learningequality/kolibri | javascript | ## Code Before:
import 'intl';
import 'intl/locale-data/jsonp/en.js';
import * as Aphrodite from 'aphrodite';
import * as AphroditeNoImportant from 'aphrodite/no-important';
import Vue from 'vue';
import VueMeta from 'vue-meta';
import VueRouter from 'vue-router';
import Vuex from 'vuex';
import { i18nSetup } from 'ko... | import 'intl';
import 'intl/locale-data/jsonp/en.js';
import * as Aphrodite from 'aphrodite';
import * as AphroditeNoImportant from 'aphrodite/no-important';
import Vue from 'vue';
import VueMeta from 'vue-meta';
import VueRouter from 'vue-router';
import Vuex from 'vuex';
import { i18nSetup } from... | 6 | 0.171429 | 6 | 0 |
561060423d0979e51b92a7209482e76680734d51 | dallinger/dev_server/app.py | dallinger/dev_server/app.py | import codecs
import os
import gevent.monkey
from dallinger.experiment_server.experiment_server import app
gevent.monkey.patch_all()
app.config["EXPLAIN_TEMPLATE_LOADING"] = True
os.environ["FLASK_SECRET_KEY"] = codecs.encode(os.urandom(16), "hex").decode("ascii")
| import codecs
import os
import gevent.monkey
gevent.monkey.patch_all() # Patch before importing app and all its dependencies
from dallinger.experiment_server.experiment_server import app # noqa: E402
app.config["EXPLAIN_TEMPLATE_LOADING"] = True
os.environ["FLASK_SECRET_KEY"] = codecs.encode(os.urandom(16), "hex"... | Apply gevent patch earlier based on output of `flask run` | Apply gevent patch earlier based on output of `flask run`
| Python | mit | Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger | python | ## Code Before:
import codecs
import os
import gevent.monkey
from dallinger.experiment_server.experiment_server import app
gevent.monkey.patch_all()
app.config["EXPLAIN_TEMPLATE_LOADING"] = True
os.environ["FLASK_SECRET_KEY"] = codecs.encode(os.urandom(16), "hex").decode("ascii")
## Instruction:
Apply gevent patch... | import codecs
import os
import gevent.monkey
- from dallinger.experiment_server.experiment_server import app
+ gevent.monkey.patch_all() # Patch before importing app and all its dependencies
+ from dallinger.experiment_server.experiment_server import app # noqa: E402
- gevent.monkey.patch_all()
ap... | 4 | 0.363636 | 2 | 2 |
23ab68d9c14f72076cb1c3cbf00e15630f3fb461 | lib/bandwidth-chart.js | lib/bandwidth-chart.js | const chart = require('ascii-chart');
function pointsFromBandwidthData(values, numPoints) {
// Define vars
const len = values.length;
const points = [];
let i = 0;
let size;
// Split values into n points
if(numPoints < 2) {
points.push(values);
} else {
if(len % numPoints === 0) {
size ... | const chart = require('ascii-chart');
function pointsFromBandwidthData(values, numPoints) {
// Define vars
const len = values.length;
const points = [];
let i = 0;
let size;
// Split values into n points
if(numPoints < 2) {
points.push(values);
} else {
if(len % numPoints === 0) {
size ... | Reformat bandwidth data return section | Reformat bandwidth data return section
| JavaScript | mit | lukechilds/tor-explorer,lukechilds/tor-explorer | javascript | ## Code Before:
const chart = require('ascii-chart');
function pointsFromBandwidthData(values, numPoints) {
// Define vars
const len = values.length;
const points = [];
let i = 0;
let size;
// Split values into n points
if(numPoints < 2) {
points.push(values);
} else {
if(len % numPoints === ... | const chart = require('ascii-chart');
function pointsFromBandwidthData(values, numPoints) {
// Define vars
const len = values.length;
const points = [];
let i = 0;
let size;
// Split values into n points
if(numPoints < 2) {
points.push(values);
} else {
if(len % ... | 4 | 0.076923 | 1 | 3 |
bb3ec131261f0619a86f21f549d6b1cb47f2c9ad | graph/serializers.py | graph/serializers.py | from rest_framework import serializers
from measurement.models import Measurement
from threshold_value.models import ThresholdValue
from calendar import timegm
from alarm.models import Alarm
class GraphSeriesSerializer(serializers.ModelSerializer):
x = serializers.SerializerMethodField('get_time')
y = seriali... | from rest_framework import serializers
from measurement.models import Measurement
from threshold_value.models import ThresholdValue
from calendar import timegm
from alarm.models import Alarm
class GraphSeriesSerializer(serializers.ModelSerializer):
x = serializers.SerializerMethodField('get_time')
y = seriali... | Simplify SimpleAlarmSerializer to improve the performance of the graph_data endpoint | Simplify SimpleAlarmSerializer to improve the performance of the graph_data endpoint
| Python | mit | sigurdsa/angelika-api | python | ## Code Before:
from rest_framework import serializers
from measurement.models import Measurement
from threshold_value.models import ThresholdValue
from calendar import timegm
from alarm.models import Alarm
class GraphSeriesSerializer(serializers.ModelSerializer):
x = serializers.SerializerMethodField('get_time')... | from rest_framework import serializers
from measurement.models import Measurement
from threshold_value.models import ThresholdValue
from calendar import timegm
from alarm.models import Alarm
class GraphSeriesSerializer(serializers.ModelSerializer):
x = serializers.SerializerMethodField('get_time... | 2 | 0.039216 | 1 | 1 |
87790a85c68d3dad91679fcf9d28a4acb878a50f | README.md | README.md | Dexter's Lab
============
[Try it now](http://dexters-lab.io/) or clone and run:
```
nvm use 6
npm i
gulp build
open docs/index.html
```
| Dexter's Lab
============

[Try it now](http://dexters-lab.io/) or clone and run:
```
nvm use 6
npm i
gulp build
open docs/index.html
```
| Add Travis CI badge buildstatus | Add Travis CI badge buildstatus
| Markdown | mit | frakti/dexters-lab | markdown | ## Code Before:
Dexter's Lab
============
[Try it now](http://dexters-lab.io/) or clone and run:
```
nvm use 6
npm i
gulp build
open docs/index.html
```
## Instruction:
Add Travis CI badge buildstatus
## Code After:
Dexter's Lab
============

... | Dexter's Lab
============
+ 
[Try it now](http://dexters-lab.io/) or clone and run:
```
nvm use 6
npm i
gulp build
open docs/index.html
``` | 1 | 0.090909 | 1 | 0 |
52a60130d2c757266d127e4ac8bb9e4d5edbc94a | README.md | README.md |
Coulr is a color box to help developers and designers. Currently, it allows to:
- convert RGB color its Hexadeciaml value and vice versa
- copy selected color
### Screenshots

### Version
Coulr is currently in version 0.1
### Tech
Coulr uses open-source projects to work prope... |
[](https://www.codacy.com/app/hugo-posnic/Coulr?utm_source=github.com&utm_medium=referral&utm_content=Huluti/Coulr&utm_campaign=Badge_Grade)
[
### Version
Coulr is currently in version 0.1
### Tech
Coulr uses open-source projec... | +
+ [](https://www.codacy.com/app/hugo-posnic/Coulr?utm_source=github.com&utm_medium=referral&utm_content=Huluti/Coulr&utm_campaign=Badge_Grade)
+ [ {
return inString.replace(/^\s+|\s+$/g,"");
},
/** return string with leading and trailing quote characters removed, e.g. <code>"foo"</code> becomes <code>foo</code> */
stripQuotes: function(inSt... | //* @public
enyo.string = {
/** return string with white space at start and end removed */
trim: function(inString) {
return inString.replace(/^\s+|\s+$/g,"");
},
/** return string with leading and trailing quote characters removed, e.g. <code>"foo"</code> becomes <code>foo</code> */
stripQuotes: function(inSt... | Remove base64 methods from extras, not used in any Enyo team code, seems buggy, and outside our competency | Remove base64 methods from extras, not used in any Enyo team code, seems buggy, and outside our competency
| JavaScript | apache-2.0 | enyojs/extra,enyojs/extra,MAMISHO/extra,MAMISHO/extra | javascript | ## Code Before:
//* @public
enyo.string = {
/** return string with white space at start and end removed */
trim: function(inString) {
return inString.replace(/^\s+|\s+$/g,"");
},
/** return string with leading and trailing quote characters removed, e.g. <code>"foo"</code> becomes <code>foo</code> */
stripQuote... | //* @public
enyo.string = {
/** return string with white space at start and end removed */
trim: function(inString) {
return inString.replace(/^\s+|\s+$/g,"");
},
/** return string with leading and trailing quote characters removed, e.g. <code>"foo"</code> becomes <code>foo</code> */
stripQuo... | 13 | 0.419355 | 1 | 12 |
72cc4b987a809a4d2e86c9c65bdefc81cecd2750 | lib/poms/api/pagination_client.rb | lib/poms/api/pagination_client.rb | require 'poms/api/json_client'
module Poms
module Api
# Creates lazy Enumerators to handle pagination of the Poms API and performs
# the request on demand.
module PaginationClient
module_function
def get(uri, config)
execute(uri) { |page_uri| Api::JsonClient.get(page_uri, config) }
... | require 'poms/api/json_client'
module Poms
module Api
# Creates lazy Enumerators to handle pagination of the Poms API and performs
# the request on demand.
module PaginationClient
module_function
def get(uri, config)
execute(uri) { |page_uri| Api::JsonClient.get(page_uri, config) }
... | Remove offset since it is no longer used in this place | Remove offset since it is no longer used in this place
| Ruby | mit | brightin/poms | ruby | ## Code Before:
require 'poms/api/json_client'
module Poms
module Api
# Creates lazy Enumerators to handle pagination of the Poms API and performs
# the request on demand.
module PaginationClient
module_function
def get(uri, config)
execute(uri) { |page_uri| Api::JsonClient.get(page_... | require 'poms/api/json_client'
module Poms
module Api
# Creates lazy Enumerators to handle pagination of the Poms API and performs
# the request on demand.
module PaginationClient
module_function
def get(uri, config)
execute(uri) { |page_uri| Api::JsonClient.get... | 3 | 0.046875 | 1 | 2 |
7e5217907e52a354a14a177fb1f843c9d0822cdf | app/views/partial/post.html | app/views/partial/post.html | <div id="newMessage">
<input type="text" id="message" size="45" autocomplete="off" autofocus>
<div id="stamp-container-horizontal"></div>
<input type="submit" value="send" id="send" style="display:none">
{{if .env.IsMobile}}
<div id="つらいスペース" style="height:10px"></div>
{{else}}
<input type="submit" val... | <div id="newMessage">
{{if .env.IsMobile}}
<input type="text" id="message" size="38" autocomplete="off" autofocus>
{{else}}
<input type="text" id="message" size="60" autocomplete="off" autofocus>
{{end}}
<div id="stamp-container-horizontal"></div>
<input type="submit" value="send" id="send" style="dis... | Fix input width a bit | Fix input width a bit
| HTML | mit | otiai10/chant,otiai10/chant,otiai10/chant | html | ## Code Before:
<div id="newMessage">
<input type="text" id="message" size="45" autocomplete="off" autofocus>
<div id="stamp-container-horizontal"></div>
<input type="submit" value="send" id="send" style="display:none">
{{if .env.IsMobile}}
<div id="つらいスペース" style="height:10px"></div>
{{else}}
<input t... | <div id="newMessage">
+ {{if .env.IsMobile}}
- <input type="text" id="message" size="45" autocomplete="off" autofocus>
? ^^
+ <input type="text" id="message" size="38" autocomplete="off" autofocus>
? ++ ^^
+ {{else}}
+ <inp... | 6 | 0.545455 | 5 | 1 |
6e05ed3d47ab2e98b68ee284ab68cf1b0fc4e2af | www/tests/test_aio.py | www/tests/test_aio.py | from browser import console
import asyncio
from async_manager import AsyncTestManager
aio = AsyncTestManager()
async def wait_secs(s, result):
await asyncio.sleep(s)
console.log("Returning result", result)
return result
@aio.async_test(0.5)
def test_simple_coroutine():
console.log("coro_wait_secs")... | from browser import console, aio
async def wait_secs(s, result):
await aio.sleep(s)
console.log("Returning result", result)
return result
async def test_simple_coroutine():
console.log("coro_wait_secs")
coro_wait_secs = wait_secs(0.1, 10)
console.log("ensuring future")
fut = await coro_wai... | Replace asyncio tests by browser.aio tests | Replace asyncio tests by browser.aio tests
| Python | bsd-3-clause | brython-dev/brython,kikocorreoso/brython,kikocorreoso/brython,brython-dev/brython,kikocorreoso/brython,brython-dev/brython | python | ## Code Before:
from browser import console
import asyncio
from async_manager import AsyncTestManager
aio = AsyncTestManager()
async def wait_secs(s, result):
await asyncio.sleep(s)
console.log("Returning result", result)
return result
@aio.async_test(0.5)
def test_simple_coroutine():
console.log("... | - from browser import console
+ from browser import console, aio
? +++++
- import asyncio
-
- from async_manager import AsyncTestManager
-
- aio = AsyncTestManager()
async def wait_secs(s, result):
- await asyncio.sleep(s)
? ----
+ await aio.sleep(s)
console.... | 29 | 0.935484 | 9 | 20 |
4121dc4b67d198b7aeea16a4c46d7fc85e359190 | presentation/models.py | presentation/models.py | from django.db import models
from model_utils.models import TimeStampedModel
from warp.users.models import User
class Presentation(TimeStampedModel):
subject = models.CharField(max_length=50)
author = models.ForeignKey(User, on_delete=models.CASCADE)
views = models.IntegerField(default=0)
markdown = ... | from django.db import models
from model_utils.models import TimeStampedModel
from warp.users.models import User
class Presentation(TimeStampedModel):
subject = models.CharField(max_length=50)
author = models.ForeignKey(User, on_delete=models.CASCADE)
views = models.IntegerField(default=0)
markdown = ... | Add 'is_public' field for checking the whether or not presentation is public | Add 'is_public' field for checking the whether or not presentation is public
| Python | mit | SaturDJang/warp,SaturDJang/warp,SaturDJang/warp,SaturDJang/warp | python | ## Code Before:
from django.db import models
from model_utils.models import TimeStampedModel
from warp.users.models import User
class Presentation(TimeStampedModel):
subject = models.CharField(max_length=50)
author = models.ForeignKey(User, on_delete=models.CASCADE)
views = models.IntegerField(default=0)... | from django.db import models
from model_utils.models import TimeStampedModel
from warp.users.models import User
class Presentation(TimeStampedModel):
subject = models.CharField(max_length=50)
author = models.ForeignKey(User, on_delete=models.CASCADE)
views = models.IntegerField(defaul... | 1 | 0.083333 | 1 | 0 |
9e7862b6e401f621847803b0f880ec7f3a5c5985 | README.md | README.md | DuckDuckGo Goodie Plugins
=================================
See [the tutorial](https://github.com/duckduckgo/duckduckgo/wiki/Open-Source-Plugin-Tutorial) for documentation (including step by step instructions).
We maintain a list of [requested goodie plugins](https://duckduckgo.uservoice.com/forums/5168-plugins/categ... | DuckDuckGo Goodie Plugins
=================================
See [DuckDuckHack](http://duckduckhack.com/) for documentation (including a tutorial and step by step instructions).
Contributing
------------
First off, thank you!
### Process
1) Pick [a goodie project](https://duckduckgo.uservoice.com/forums/5168-plug... | Update for upcoming documentation site. | Update for upcoming documentation site. | Markdown | apache-2.0 | JamyGolden/zeroclickinfo-goodies,codenirvana/zeroclickinfo-goodies,NateBrune/zeroclickinfo-goodies,ssrey/zeroclickinfo-goodies,anistark/zeroclickinfo-goodies,ACMASU/zeroclickinfo-goodies,kavithaRajagopalan/zeroclickinfo-goodies,yati-sagade/zeroclickinfo-goodies,shyamalschandra/zeroclickinfo-goodies,anistark/zeroclickin... | markdown | ## Code Before:
DuckDuckGo Goodie Plugins
=================================
See [the tutorial](https://github.com/duckduckgo/duckduckgo/wiki/Open-Source-Plugin-Tutorial) for documentation (including step by step instructions).
We maintain a list of [requested goodie plugins](https://duckduckgo.uservoice.com/forums/51... | DuckDuckGo Goodie Plugins
=================================
+ See [DuckDuckHack](http://duckduckhack.com/) for documentation (including a tutorial and step by step instructions).
- See [the tutorial](https://github.com/duckduckgo/duckduckgo/wiki/Open-Source-Plugin-Tutorial) for documentation (including step by s... | 14 | 0.608696 | 7 | 7 |
3c1357627bf1921fdee114b60f96f42c328120b4 | caramel/__init__.py | caramel/__init__.py | from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import (
init_session,
)
def main(global_config, **settings):
"""This function returns a Pyramid WSGI application."""
engine = engine_from_config(settings, "sqlalchemy.")
init_session(engine)
config = C... | from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import (
init_session,
)
def main(global_config, **settings):
"""This function returns a Pyramid WSGI application."""
engine = engine_from_config(settings, "sqlalchemy.")
init_session(engine)
config = C... | Move pyramid_tm include to caramel.main | Caramel: Move pyramid_tm include to caramel.main
Move the setting to include pyramid_tm to caramel.main from ini files.
This is a vital setting that should never be changed by the user.
| Python | agpl-3.0 | ModioAB/caramel,ModioAB/caramel | python | ## Code Before:
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import (
init_session,
)
def main(global_config, **settings):
"""This function returns a Pyramid WSGI application."""
engine = engine_from_config(settings, "sqlalchemy.")
init_session(engine... | from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import (
init_session,
)
def main(global_config, **settings):
"""This function returns a Pyramid WSGI application."""
engine = engine_from_config(settings, "sqlalchemy.")
init_sessio... | 1 | 0.052632 | 1 | 0 |
3dcd577810a623d15327a07a589a232a9e8dc355 | .travis.yml | .travis.yml | language: android
android:
components:
- build-tools-20.0.0
- android-16
licenses:
- android-sdk-license-5be876d5
branches:
except:
- gh-pages
notifications:
email: false
| language: android
jdk:
- oraclejdk7
- oraclejdk8
android:
components:
- build-tools-20.0.0
- android-16
licenses:
- android-sdk-license-5be876d5
branches:
except:
- gh-pages
notifications:
email: false
| Include JDK 8 in CI compilation in addition to 7 (current implicit default). | Include JDK 8 in CI compilation in addition to 7 (current implicit default).
| YAML | apache-2.0 | rajyvan/butterknife,newtonker/butterknife,ChristianBecker/butterknife,SOFTPOWER1991/butterknife,GeekHades/butterknife,rajyvan/butterknife,dance609195946/butterknife,JackLeeMing/butterknife,KoMinkyu/butterknife,wuseal/butterknife,lukaciko/butterknife,nabishpaul/butterknife,dreamseekerkun/butterknife,krumman/butterknife,... | yaml | ## Code Before:
language: android
android:
components:
- build-tools-20.0.0
- android-16
licenses:
- android-sdk-license-5be876d5
branches:
except:
- gh-pages
notifications:
email: false
## Instruction:
Include JDK 8 in CI compilation in addition to 7 (current implicit default).
## Code Aft... | language: android
+
+ jdk:
+ - oraclejdk7
+ - oraclejdk8
android:
components:
- build-tools-20.0.0
- android-16
licenses:
- android-sdk-license-5be876d5
branches:
except:
- gh-pages
notifications:
email: false | 4 | 0.266667 | 4 | 0 |
4cf41f5b834e91eaf3c2348295f1bea9090719d9 | src/oe/packet/PacketHandler.java | src/oe/packet/PacketHandler.java | package oe.packet;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet250CustomPayload;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.Player;
public class PacketHandler implements IPacketHandler {
@Override
public void onPacketData(IN... | package oe.packet;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet250CustomPayload;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.Player;
public class PacketHandler implements IPacketHandler {
@Override
public void onPacketData(IN... | Remove Debug code in packet handler | Remove Debug code in packet handler
| Java | mit | ictrobot/Open-Exchange | java | ## Code Before:
package oe.packet;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet250CustomPayload;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.Player;
public class PacketHandler implements IPacketHandler {
@Override
public void... | package oe.packet;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet250CustomPayload;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.Player;
public class PacketHandler implements IPacketHandler {
@Override
publi... | 1 | 0.055556 | 0 | 1 |
09fde3ea31b753527919baca4401401b15e3efc7 | k8s/base/deployments/deployment.yaml | k8s/base/deployments/deployment.yaml |
kind: Deployment
apiVersion: apps/v1
metadata:
name: sample-app
spec:
selector:
matchLabels:
app: sample-app
env: base
template:
metadata:
name: sample-app
labels:
app: sample-app
env: base
spec:
containers:
- name: sample-app
image: sample-... |
kind: Deployment
apiVersion: apps/v1
metadata:
name: sample-app
spec:
selector:
matchLabels:
app: sample-app
env: base
template:
metadata:
name: sample-app
labels:
app: sample-app
env: base
spec:
containers:
- name: sample-app
image: sample-... | Add liveness probe to shutdown app if unhealthy | Add liveness probe to shutdown app if unhealthy
| YAML | apache-2.0 | google/golden-path-for-app-delivery,google/golden-path-for-app-delivery,google/golden-path-for-app-delivery | yaml | ## Code Before:
kind: Deployment
apiVersion: apps/v1
metadata:
name: sample-app
spec:
selector:
matchLabels:
app: sample-app
env: base
template:
metadata:
name: sample-app
labels:
app: sample-app
env: base
spec:
containers:
- name: sample-app
... |
kind: Deployment
apiVersion: apps/v1
metadata:
name: sample-app
spec:
selector:
matchLabels:
app: sample-app
env: base
template:
metadata:
name: sample-app
labels:
app: sample-app
env: base
spec:
containers:
- n... | 6 | 0.15 | 6 | 0 |
1d3abf94f912d1fc3edc8836ddcaf9a5bc725764 | schema_gen.go | schema_gen.go | package cloudformation
//go:generate go run ./scraper/scrape.go -format=go -out=schema.go
//go:generate go run ./scraper/scrape.go -format=json -out=schema.json
| package cloudformation
//go:generate go test -v ./scraper/.
| Update scraper to use new script | Update scraper to use new script
| Go | bsd-2-clause | crewjam/go-cloudformation,crewjam/go-cloudformation | go | ## Code Before:
package cloudformation
//go:generate go run ./scraper/scrape.go -format=go -out=schema.go
//go:generate go run ./scraper/scrape.go -format=json -out=schema.json
## Instruction:
Update scraper to use new script
## Code After:
package cloudformation
//go:generate go test -v ./scraper/.
| package cloudformation
+ //go:generate go test -v ./scraper/.
- //go:generate go run ./scraper/scrape.go -format=go -out=schema.go
- //go:generate go run ./scraper/scrape.go -format=json -out=schema.json | 3 | 0.75 | 1 | 2 |
b561932577bc34f46b86b1af420e1c176518be9f | .travis.yml | .travis.yml | sudo: false
dist: trusty
language: php
matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
- php: hhvm-3.24
sudo: required
fast_finish: true
allow_failures:
... | sudo: false
dist: trusty
language: php
matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
- php: nightly
sudo: required
fast_finish: true
allo... | Add support for builds with PHP 7.3 and 7.4, dropped support for hhvm-3.24 | Add support for builds with PHP 7.3 and 7.4, dropped support for hhvm-3.24
| YAML | mit | Facturama/facturama-php-sdk | yaml | ## Code Before:
sudo: false
dist: trusty
language: php
matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
- php: hhvm-3.24
sudo: required
fast_finish: true
a... | sudo: false
dist: trusty
language: php
matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
+ - php: 7.3
+ - php: 7.4
- php: nightly
- - php: hhvm-3.2... | 4 | 0.117647 | 2 | 2 |
dbd774250bcc44c73a614b52fdcf5da0bfbb85bd | languages/plumhead/lib/Parrot/Test/Plumhead/Yacc.pm | languages/plumhead/lib/Parrot/Test/Plumhead/Yacc.pm |
package Parrot::Test::Plumhead::Yacc;
# pragmata
use strict;
use warnings;
use base 'Parrot::Test::Plumhead';
sub get_out_fn {
my $self = shift;
my ( $count, $options ) = @_;
return Parrot::Test::per_test( '_yacc.out', $count );
}
# Use PHP on the command line
sub get_test_prog {
my $self = shift;... |
package Parrot::Test::Plumhead::Yacc;
# pragmata
use strict;
use warnings;
use base 'Parrot::Test::Plumhead';
# Generate output_is(), output_isnt() and output_like() in current package.
Parrot::Test::generate_languages_functions();
sub get_out_fn {
my $self = shift;
my ( $count, $options ) = @_;
retu... | Add missing Parrot::Test::generate_languages_functions(). All tests failing for 'make test-yacc' as variant 'yacc' is not implemented. | [Plumhead]
Add missing Parrot::Test::generate_languages_functions().
All tests failing for 'make test-yacc' as variant 'yacc'
is not implemented.
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@22252 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| Perl | artistic-2.0 | ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot | perl | ## Code Before:
package Parrot::Test::Plumhead::Yacc;
# pragmata
use strict;
use warnings;
use base 'Parrot::Test::Plumhead';
sub get_out_fn {
my $self = shift;
my ( $count, $options ) = @_;
return Parrot::Test::per_test( '_yacc.out', $count );
}
# Use PHP on the command line
sub get_test_prog {
m... |
package Parrot::Test::Plumhead::Yacc;
# pragmata
use strict;
use warnings;
use base 'Parrot::Test::Plumhead';
+
+ # Generate output_is(), output_isnt() and output_like() in current package.
+ Parrot::Test::generate_languages_functions();
sub get_out_fn {
my $self = shift;
my ( $cou... | 5 | 0.119048 | 4 | 1 |
c1e4dcb6896b0255edf43a8b5af9d3ffdafeaddd | app/views/users/passwords/new.html.haml | app/views/users/passwords/new.html.haml | .auth__form
%h2= I18n.t 'auth.forgot.link'
= simple_form_for resource, as: resource_name, url: password_path(resource_name) do |f|
= devise_error_messages!
= f.input :email, autofocus: true, required: true
= f.button :submit, I18n.t('auth.forgot.submit'), class: 'btn-primary'
= render "users/shared/... | .auth__form
%h2= I18n.t 'auth.forgot.link'
= simple_form_for resource, as: resource_name, url: password_path(resource_name) do |f|
= f.input :email, autofocus: true, required: true
= f.button :submit, I18n.t('auth.forgot.submit'), class: 'btn-primary'
= render "users/shared/links"
| Remove generic devise error message | Remove generic devise error message | Haml | mit | aninder/rails4-starterkit,mwahmed/picxel,kbarre123/starterkits_rails4,nfelix/mvmt,rememberlenny/email-newsletter-stand,kbarre123/starterkits_rails4,nfelix/mvmt,girlIT/Weekend,jocelyndrean/glowing-avenger,yogadog/rails-project,rememberlenny/newsletterstand,mwahmed/picxel,ak15/beshare_ak15,Gerstep/cine,MonikaMahanthappa/... | haml | ## Code Before:
.auth__form
%h2= I18n.t 'auth.forgot.link'
= simple_form_for resource, as: resource_name, url: password_path(resource_name) do |f|
= devise_error_messages!
= f.input :email, autofocus: true, required: true
= f.button :submit, I18n.t('auth.forgot.submit'), class: 'btn-primary'
= rende... | .auth__form
%h2= I18n.t 'auth.forgot.link'
= simple_form_for resource, as: resource_name, url: password_path(resource_name) do |f|
- = devise_error_messages!
= f.input :email, autofocus: true, required: true
= f.button :submit, I18n.t('auth.forgot.submit'), class: 'btn-primary'
= ren... | 1 | 0.111111 | 0 | 1 |
b52441dbdd7e3145a5a450fce7734d399d1ffd9b | lib/tasks/comments.rake | lib/tasks/comments.rake | namespace :comments do
desc "Move posts to polymophic subject"
task move_posts_to_subject: :environment do
Comment.all.each do |comment|
next unless comment.post.present?
comment.subject = comment.post
comment.post = nil
comment.save
end
end
end
| namespace :comments do
desc "Move posts to polymophic subject"
task copy_posts_to_subject: :environment do
Comment.all.each do |comment|
next unless comment.post.present?
comment.subject = comment.post
comment.save
end
end
end
| Update rake to not clear post from comment | Update rake to not clear post from comment
| Ruby | mit | fantasygame/campaigns,fantasygame/campaigns,fantasygame/campaigns | ruby | ## Code Before:
namespace :comments do
desc "Move posts to polymophic subject"
task move_posts_to_subject: :environment do
Comment.all.each do |comment|
next unless comment.post.present?
comment.subject = comment.post
comment.post = nil
comment.save
end
end
end
## Instruction:
Upd... | namespace :comments do
desc "Move posts to polymophic subject"
- task move_posts_to_subject: :environment do
? ^ ^^
+ task copy_posts_to_subject: :environment do
? ^ ^^
Comment.all.each do |comment|
next unless comment.post.present?
comment.subject = comment.post
- ... | 3 | 0.272727 | 1 | 2 |
1d851a859ca3ebf6a40fb49388998275c57e4096 | cucumber.js | cucumber.js | module.exports = {
"default": "--compiler ls:livescript -r features --strict --snippet-syntax node_modules/cucumber-snippets-livescript"
}
| module.exports = {
"default": "--compiler ls:livescript -r features --fail-fast --strict --snippet-syntax node_modules/cucumber-snippets-livescript"
}
| Stop Cucumber at the first error | Stop Cucumber at the first error | JavaScript | mit | Originate/exosphere,Originate/exosphere,Originate/exosphere,Originate/exosphere | javascript | ## Code Before:
module.exports = {
"default": "--compiler ls:livescript -r features --strict --snippet-syntax node_modules/cucumber-snippets-livescript"
}
## Instruction:
Stop Cucumber at the first error
## Code After:
module.exports = {
"default": "--compiler ls:livescript -r features --fail-fast --strict --snipp... | module.exports = {
- "default": "--compiler ls:livescript -r features --strict --snippet-syntax node_modules/cucumber-snippets-livescript"
+ "default": "--compiler ls:livescript -r features --fail-fast --strict --snippet-syntax node_modules/cucumber-snippets-livescript"
? ... | 2 | 0.666667 | 1 | 1 |
e26f7e5b824ff9cfe21b1ea81e599942cc8b9cf3 | test/authorized-keys-test.js | test/authorized-keys-test.js | var assert = require('assert'),
vows = require('vows'),
AuthorizedKeys = require('../');
var testKey = { type: 'ssh-rsa', content: 'mykey', name: 'maciej' };
vows.describe('authorized-keys').addBatch({
'When using `authorized-keys`': {
'with a new `AuthorizedKeys` object': {
topic: new AuthorizedK... | var assert = require('assert'),
vows = require('vows'),
AuthorizedKeys = require('../');
var testKey = { type: 'ssh-rsa', content: 'mykey', name: 'maciej' };
vows.describe('authorized-keys').addBatch({
'When using `authorized-keys`': {
'with a new `AuthorizedKeys` object': {
topic: new AuthorizedK... | Add test for searching by name | [test] Add test for searching by name
| JavaScript | mit | mmalecki/node-authorized-keys | javascript | ## Code Before:
var assert = require('assert'),
vows = require('vows'),
AuthorizedKeys = require('../');
var testKey = { type: 'ssh-rsa', content: 'mykey', name: 'maciej' };
vows.describe('authorized-keys').addBatch({
'When using `authorized-keys`': {
'with a new `AuthorizedKeys` object': {
topic:... | var assert = require('assert'),
vows = require('vows'),
AuthorizedKeys = require('../');
var testKey = { type: 'ssh-rsa', content: 'mykey', name: 'maciej' };
vows.describe('authorized-keys').addBatch({
'When using `authorized-keys`': {
'with a new `AuthorizedKeys` object': {
to... | 5 | 0.185185 | 5 | 0 |
ba22b270a60e6815400300d8180e13cb2ceea358 | config/webpack/environment.js | config/webpack/environment.js | const { environment } = require('@rails/webpacker')
const ConcatPlugin = require('webpack-concat-plugin')
environment.plugins.append('ConcatPlugin', new ConcatPlugin({
uglify: true,
sourceMap: true,
outputPath: 'js',
fileName: 'application.bundle.js',
filesToConcat: [
'jquery',
'jquery-ujs',
'jqu... | const { environment } = require('@rails/webpacker')
const ConcatPlugin = require('webpack-concat-plugin')
environment.plugins.append('ConcatPlugin', new ConcatPlugin({
uglify: true,
sourceMap: true,
outputPath: 'js',
fileName: 'application.bundle.js',
filesToConcat: [
'jquery',
'jquery-ujs',
'jqu... | Resolve webpack-dev-server output filename error | Resolve webpack-dev-server output filename error
```
ERROR in chunk [file] [entry]
Cannot use [chunkhash] or [contenthash] for chunk in 'js/[name]-[contenthash].js' (use [hash] instead)
```
Override the base config output filename and resolve the above error in chunk
| JavaScript | mit | ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments | javascript | ## Code Before:
const { environment } = require('@rails/webpacker')
const ConcatPlugin = require('webpack-concat-plugin')
environment.plugins.append('ConcatPlugin', new ConcatPlugin({
uglify: true,
sourceMap: true,
outputPath: 'js',
fileName: 'application.bundle.js',
filesToConcat: [
'jquery',
'jquer... | const { environment } = require('@rails/webpacker')
const ConcatPlugin = require('webpack-concat-plugin')
environment.plugins.append('ConcatPlugin', new ConcatPlugin({
uglify: true,
sourceMap: true,
outputPath: 'js',
fileName: 'application.bundle.js',
filesToConcat: [
'jquery',
... | 6 | 0.214286 | 6 | 0 |
f96b2ca6612083db679a47303c6d3779c6c4ba5a | app/views/crops/_index_card.html.haml | app/views/crops/_index_card.html.haml | .well
.row
.col-md-4
= link_to image_tag(crop_image_path(crop),
alt: '',
class: 'img crop-image'),
crop
.col-md-8
%h3{ style: 'padding-top: 0px; margin-top: 0px' }
= link_to crop, crop
%p
%b Scient... | .well
.row
.col
= link_to image_tag(crop_image_path(crop),
alt: '',
class: 'img crop-image'),
crop
.col
%h3{ style: 'padding-top: 0px; margin-top: 0px' }
= link_to crop, crop
%p
%b Scientific name:... | Tidy columns on crops index card | Tidy columns on crops index card
| Haml | agpl-3.0 | Growstuff/growstuff,Br3nda/growstuff,Br3nda/growstuff,Br3nda/growstuff,cesy/growstuff,Growstuff/growstuff,yez/growstuff,cesy/growstuff,Growstuff/growstuff,yez/growstuff,Br3nda/growstuff,cesy/growstuff,yez/growstuff,yez/growstuff,Growstuff/growstuff,cesy/growstuff | haml | ## Code Before:
.well
.row
.col-md-4
= link_to image_tag(crop_image_path(crop),
alt: '',
class: 'img crop-image'),
crop
.col-md-8
%h3{ style: 'padding-top: 0px; margin-top: 0px' }
= link_to crop, crop
%p
... | .well
.row
- .col-md-4
? -----
+ .col
= link_to image_tag(crop_image_path(crop),
alt: '',
class: 'img crop-image'),
crop
- .col-md-8
? -----
+ .col
%h3{ style: 'padding-top: 0px; m... | 4 | 0.111111 | 2 | 2 |
fbadf23356b40c36378cef8f3a9c8b382bce9e32 | comics/core/admin.py | comics/core/admin.py | from django.contrib import admin
from comics.core import models
class ComicAdmin(admin.ModelAdmin):
list_display = ('slug', 'name', 'language', 'url', 'rights')
prepopulated_fields = {
'slug': ('name',)
}
class ReleaseAdmin(admin.ModelAdmin):
list_display = ('__unicode__', 'comic', 'pub_dat... | from django.contrib import admin
from comics.core import models
class ComicAdmin(admin.ModelAdmin):
list_display = ('slug', 'name', 'language', 'url', 'rights', 'start_date',
'end_date', 'active')
prepopulated_fields = {
'slug': ('name',)
}
class ReleaseAdmin(admin.ModelAdmin):
list... | Include start date, end date, and active flag in comics list | Include start date, end date, and active flag in comics list
| Python | agpl-3.0 | jodal/comics,jodal/comics,jodal/comics,datagutten/comics,datagutten/comics,datagutten/comics,jodal/comics,datagutten/comics | python | ## Code Before:
from django.contrib import admin
from comics.core import models
class ComicAdmin(admin.ModelAdmin):
list_display = ('slug', 'name', 'language', 'url', 'rights')
prepopulated_fields = {
'slug': ('name',)
}
class ReleaseAdmin(admin.ModelAdmin):
list_display = ('__unicode__', '... | from django.contrib import admin
from comics.core import models
class ComicAdmin(admin.ModelAdmin):
- list_display = ('slug', 'name', 'language', 'url', 'rights')
? ^
+ list_display = ('slug', 'name', 'language', 'url', 'rights', 'st... | 3 | 0.107143 | 2 | 1 |
ac7a156cf7f6f78425d85f5a08cfa302de46d362 | spec/features/admin/promotion_rule_store_spec.rb | spec/features/admin/promotion_rule_store_spec.rb | require 'spec_helper'
RSpec.describe "Store promotion rule", js: true do
stub_authorization!
let!(:store) { create(:store, name: "Real fake doors") }
let!(:promotion) { create(:promotion) }
it "Can add a store rule to a promotion" do
visit spree.edit_admin_promotion_path(promotion)
if SolidusSupport... | require 'spec_helper'
RSpec.describe "Store promotion rule", js: true do
stub_authorization!
let!(:store) { create(:store, name: "Real fake doors") }
let!(:promotion) { create(:promotion) }
it "Can add a store rule to a promotion" do
visit spree.edit_admin_promotion_path(promotion)
if SolidusSupport... | Fix failing test that used incorrect select ID | Fix failing test that used incorrect select ID
| Ruby | bsd-3-clause | solidusio/solidus_multi_domain,solidusio/solidus_multi_domain,solidusio/solidus_multi_domain | ruby | ## Code Before:
require 'spec_helper'
RSpec.describe "Store promotion rule", js: true do
stub_authorization!
let!(:store) { create(:store, name: "Real fake doors") }
let!(:promotion) { create(:promotion) }
it "Can add a store rule to a promotion" do
visit spree.edit_admin_promotion_path(promotion)
i... | require 'spec_helper'
RSpec.describe "Store promotion rule", js: true do
stub_authorization!
let!(:store) { create(:store, name: "Real fake doors") }
let!(:promotion) { create(:promotion) }
it "Can add a store rule to a promotion" do
visit spree.edit_admin_promotion_path(promotion)
... | 3 | 0.125 | 2 | 1 |
1a31c2a5f69e979e75061dfd1fc4e884a230072a | PrehensilePonyTail/PPTail/Properties/launchSettings.json | PrehensilePonyTail/PPTail/Properties/launchSettings.json | {
"profiles": {
"PPTail": {
"commandName": "Project",
"commandLineArgs": "C:\\SourceDataLocation C:\\OutputDataLocation"
}
}
} | {
"profiles": {
"PPTail": {
"commandName": "Project",
"commandLineArgs": "Provider=PPTail.Data.FileSystem.Repository;Filepath=C:\\SourceDataLocation Provider=PPTail.Output.FileSystem.Repository;FilePath=C:\\OutputDataLocation C:\\TemplateFolderPath"
}
}
} | Update launch setting parameters to new provider style | Update launch setting parameters to new provider style
| JSON | mit | bsstahl/PPTail,bsstahl/PPTail | json | ## Code Before:
{
"profiles": {
"PPTail": {
"commandName": "Project",
"commandLineArgs": "C:\\SourceDataLocation C:\\OutputDataLocation"
}
}
}
## Instruction:
Update launch setting parameters to new provider style
## Code After:
{
"profiles": {
"PPTail": {
"commandName": "Project",
... | {
"profiles": {
"PPTail": {
"commandName": "Project",
- "commandLineArgs": "C:\\SourceDataLocation C:\\OutputDataLocation"
+ "commandLineArgs": "Provider=PPTail.Data.FileSystem.Repository;Filepath=C:\\SourceDataLocation Provider=PPTail.Output.FileSystem.Repository;FilePath=C:\\OutputData... | 2 | 0.25 | 1 | 1 |
70ab020d94875f5cdcd4d3b95ce600bd420ef641 | src/singleton/singleton.php | src/singleton/singleton.php | <?php
namespace Nectary;
abstract class Singleton {
protected static $instances = array();
protected function __construct() {}
protected function __clone() {}
public function __wakeup() {
throw new \Exception( 'Cannot unserialize singleton' );
}
public static function get_instance() {
$cls = get_... | <?php
namespace Nectary;
abstract class Singleton {
protected static $instances = array();
protected function __construct() {}
protected function __clone() {}
public static function get_instance() {
$cls = get_called_class(); // late-static-bound class name
if ( ! isset( self::$instances[ $cls ] ) ) ... | Remove wakeup exception until further notice | Remove wakeup exception until further notice
| PHP | mit | gios-asu/nectary,gios-asu/nectary | php | ## Code Before:
<?php
namespace Nectary;
abstract class Singleton {
protected static $instances = array();
protected function __construct() {}
protected function __clone() {}
public function __wakeup() {
throw new \Exception( 'Cannot unserialize singleton' );
}
public static function get_instance() {... | <?php
namespace Nectary;
abstract class Singleton {
protected static $instances = array();
protected function __construct() {}
protected function __clone() {}
- public function __wakeup() {
- throw new \Exception( 'Cannot unserialize singleton' );
- }
public static function get_in... | 3 | 0.111111 | 0 | 3 |
0f0531c8e4f62f5c6b4ff74f0059cf0238b5bf1c | src/main/AndroidManifest.xml | src/main/AndroidManifest.xml | <manifest
android:versionName="0.1" android:versionCode="1" package="org.positronicnet" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7"></uses-sdk>
</manifest>
| <manifest
android:versionName="0.1" android:versionCode="1" package="org.positronicnet.libresources" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7"></uses-sdk>
</manifest>
| Move dummy R and TR classes for the library itself to their own package. | Move dummy R and TR classes for the library itself to their own package.
Done mainly to keep from cluttering up the docs.
| XML | bsd-3-clause | rst/positronic_net | xml | ## Code Before:
<manifest
android:versionName="0.1" android:versionCode="1" package="org.positronicnet" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7"></uses-sdk>
</manifest>
## Instruction:
Move dummy R and TR classes for the library itself to their own package.
... | <manifest
- android:versionName="0.1" android:versionCode="1" package="org.positronicnet" xmlns:android="http://schemas.android.com/apk/res/android">
+ android:versionName="0.1" android:versionCode="1" package="org.positronicnet.libresources" xmlns:android="http://schemas.android.com/apk/res/android">
? ... | 2 | 0.5 | 1 | 1 |
1ac2f38f3d9cf9cb331890a2a69e960da2aafa3c | templates/course.json | templates/course.json | {
"id": "local",
"isEditable": true,
"title": "local course",
"shortDesc": "",
"longDesc": "",
"authorBio": "",
"tags": [],
"catalogs": [],
"lessons": [
{
"id": "1",
"title": "Lesson 1",
"gadgets": []
}
],
"progress": { "lesson": 0 },
"assetUrlTemplate": "//localhost:30... | {
"id": "local",
"isEditable": true,
"title": "local course",
"shortDesc": "",
"longDesc": "",
"authorBio": "",
"tags": [],
"catalogs": [],
"lessons": [
{
"id": "1",
"title": "Lesson 1",
"gadgets": []
}
],
"progress": { "lesson": 0 },
"assetUrlTemplate": "/api/assets/<%... | Use relative asset url path | Use relative asset url path
| JSON | mit | Versal/sdk,Versal/sdk | json | ## Code Before:
{
"id": "local",
"isEditable": true,
"title": "local course",
"shortDesc": "",
"longDesc": "",
"authorBio": "",
"tags": [],
"catalogs": [],
"lessons": [
{
"id": "1",
"title": "Lesson 1",
"gadgets": []
}
],
"progress": { "lesson": 0 },
"assetUrlTemplate":... | {
"id": "local",
"isEditable": true,
"title": "local course",
"shortDesc": "",
"longDesc": "",
"authorBio": "",
"tags": [],
"catalogs": [],
"lessons": [
{
"id": "1",
"title": "Lesson 1",
"gadgets": []
}
],
"progress": { "lesson": 0 },
- ... | 2 | 0.105263 | 1 | 1 |
3537792cb832cdf5283ee356070637198a0393f1 | recipes/distro/meta.yaml | recipes/distro/meta.yaml | {% set name = "distro" %}
{% set version = "1.1.0" %}
{% set sha256 = "722054925f339a39ca411a8c7079f390a41d42c422697bedf228f1a9c46ac1ee" %}
package:
name: '{{ name|lower }}'
version: '{{ version }}'
source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ na... | {% set name = "distro" %}
{% set version = "1.1.0" %}
{% set sha256 = "722054925f339a39ca411a8c7079f390a41d42c422697bedf228f1a9c46ac1ee" %}
package:
name: '{{ name|lower }}'
version: '{{ version }}'
source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ na... | Make package linux only [skip appveyor] [skip travis] | Make package linux only [skip appveyor] [skip travis]
| YAML | bsd-3-clause | cpaulik/staged-recipes,rmcgibbo/staged-recipes,dschreij/staged-recipes,shadowwalkersb/staged-recipes,ocefpaf/staged-recipes,guillochon/staged-recipes,patricksnape/staged-recipes,synapticarbors/staged-recipes,igortg/staged-recipes,Cashalow/staged-recipes,barkls/staged-recipes,chrisburr/staged-recipes,sodre/staged-recipe... | yaml | ## Code Before:
{% set name = "distro" %}
{% set version = "1.1.0" %}
{% set sha256 = "722054925f339a39ca411a8c7079f390a41d42c422697bedf228f1a9c46ac1ee" %}
package:
name: '{{ name|lower }}'
version: '{{ version }}'
source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/... | {% set name = "distro" %}
{% set version = "1.1.0" %}
{% set sha256 = "722054925f339a39ca411a8c7079f390a41d42c422697bedf228f1a9c46ac1ee" %}
package:
name: '{{ name|lower }}'
version: '{{ version }}'
source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[... | 5 | 0.119048 | 4 | 1 |
eb31a1684a2df7fe8c1e6bf338fbf3cb772e8c78 | config/locales/en.yml | config/locales/en.yml |
en:
MENU: "Menu"
ACTIVITY: "Activity"
BEGIN_ACTIVITY: "Begin activity"
BEGIN_NEXT_ACTIVITY: "Begin activity"
TAKE_SNAPSHOT: "Take snapshot"
REPLACE_SNAPSHOT: "Replace snapshot"
QUESTION: "Question"
TYPE_ANSWER_HERE: "Type answer here"
NEXT: "Next >"
BACK: "< Back"
PICK_ONE: "Pick one"
GENERATE... |
en:
MENU: "Menu"
ACTIVITY: "Activity"
BEGIN_ACTIVITY: "Begin activity"
BEGIN_NEXT_ACTIVITY: "Begin activity"
TAKE_SNAPSHOT: "Take snapshot"
REPLACE_SNAPSHOT: "Replace snapshot"
QUESTION: "Question"
TYPE_ANSWER_HERE: "Type answer here"
NEXT: "Next >"
BACK: "< Back"
PICK_ONE: "Pick one"
GENERATE... | Change ANSWER_IS_FINAL text to "Your answer is now locked" | Change ANSWER_IS_FINAL text to "Your answer is now locked"
| YAML | mit | concord-consortium/lara,concord-consortium/lara,concord-consortium/lara,concord-consortium/lara,concord-consortium/lara | yaml | ## Code Before:
en:
MENU: "Menu"
ACTIVITY: "Activity"
BEGIN_ACTIVITY: "Begin activity"
BEGIN_NEXT_ACTIVITY: "Begin activity"
TAKE_SNAPSHOT: "Take snapshot"
REPLACE_SNAPSHOT: "Replace snapshot"
QUESTION: "Question"
TYPE_ANSWER_HERE: "Type answer here"
NEXT: "Next >"
BACK: "< Back"
PICK_ONE: "Pick... |
en:
MENU: "Menu"
ACTIVITY: "Activity"
BEGIN_ACTIVITY: "Begin activity"
BEGIN_NEXT_ACTIVITY: "Begin activity"
TAKE_SNAPSHOT: "Take snapshot"
REPLACE_SNAPSHOT: "Replace snapshot"
QUESTION: "Question"
TYPE_ANSWER_HERE: "Type answer here"
NEXT: "Next >"
BACK: "< Back"
PICK_... | 2 | 0.083333 | 1 | 1 |
dd6eb92da87382c082bb86109f11947cfeb8c222 | packages/te/text-lens.yaml | packages/te/text-lens.yaml | homepage: https://github.com/ChrisPenner/rasa
changelog-type: ''
hash: 764fbbb5d04e609973d779069c26075afc0330b796102f50450d792acbad6a97
test-bench-deps:
text-lens: -any
base: -any
hspec: -any
lens: -any
maintainer: christopher.penner@gmail.com
synopsis: Lenses for operating over text
changelog: ''
basic-deps:
... | homepage: https://github.com/ChrisPenner/rasa
changelog-type: ''
hash: aa49360b3eed02fb144acd4eb691b6c165c9c03e9e09861599fbbc4248287b21
test-bench-deps:
text-lens: ! '>=0.1.1 && <0.2'
base: ! '>=4.9.0.0 && <4.10'
hspec: ! '>=2.2.4 && <2.3'
lens: ==4.14.*
maintainer: christopher.penner@gmail.com
synopsis: Lenses... | Update from Hackage at 2017-01-29T18:42:06Z | Update from Hackage at 2017-01-29T18:42:06Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/ChrisPenner/rasa
changelog-type: ''
hash: 764fbbb5d04e609973d779069c26075afc0330b796102f50450d792acbad6a97
test-bench-deps:
text-lens: -any
base: -any
hspec: -any
lens: -any
maintainer: christopher.penner@gmail.com
synopsis: Lenses for operating over text
changelog: ... | homepage: https://github.com/ChrisPenner/rasa
changelog-type: ''
- hash: 764fbbb5d04e609973d779069c26075afc0330b796102f50450d792acbad6a97
+ hash: aa49360b3eed02fb144acd4eb691b6c165c9c03e9e09861599fbbc4248287b21
test-bench-deps:
- text-lens: -any
- base: -any
- hspec: -any
- lens: -any
+ text-lens: ! '>=... | 23 | 1 | 12 | 11 |
9d07f2f9c7b71c82ecacf0adf5b99e530d3dc65e | locales/ms/faq.properties | locales/ms/faq.properties | faq_header=Penderma FAQ
faq_donate_link=derma sekarang
faq_intro=Berikut ialah soalan lazim perihal derma untuk Yayasan Mozilla. Jika soalan dan jawapan anda tidak tersenarai di sini, sila hubungi kami di <a href="mailto:donate@mozilla.org">donate@mozilla.org</a>.
faq_item_5_header=Bolehkah saya derma bitcoin?
faq_item... | faq_header=Penderma FAQ
faq_donate_link=derma sekarang
faq_intro=Berikut ialah soalan lazim perihal derma untuk Yayasan Mozilla. Jika soalan dan jawapan anda tidak tersenarai di sini, sila hubungi kami di <a href="mailto:donate@mozilla.org">donate@mozilla.org</a>.
faq_item_4_header=Ke mana saya boleh hantar cek/cheque?... | Update Malay (ms) localization of Fundraising | Pontoon: Update Malay (ms) localization of Fundraising
Localization authors:
- manxmensch <manxmensch@gmail.com>
| INI | mpl-2.0 | mozilla/donate.mozilla.org | ini | ## Code Before:
faq_header=Penderma FAQ
faq_donate_link=derma sekarang
faq_intro=Berikut ialah soalan lazim perihal derma untuk Yayasan Mozilla. Jika soalan dan jawapan anda tidak tersenarai di sini, sila hubungi kami di <a href="mailto:donate@mozilla.org">donate@mozilla.org</a>.
faq_item_5_header=Bolehkah saya derma b... | faq_header=Penderma FAQ
faq_donate_link=derma sekarang
faq_intro=Berikut ialah soalan lazim perihal derma untuk Yayasan Mozilla. Jika soalan dan jawapan anda tidak tersenarai di sini, sila hubungi kami di <a href="mailto:donate@mozilla.org">donate@mozilla.org</a>.
+ faq_item_4_header=Ke mana saya boleh hantar cek... | 2 | 0.285714 | 2 | 0 |
51cf7436188936c195c7fe13a74eac28c10f4873 | .todo.txt | .todo.txt | Add;
Version 1.x:
- ./droopescan scan -u drupal.org fails
- better error for empty file when `scan`
- SIGINT capture for new scanning.
- Add composer.json to interesting URLs for all CMS.
Version 2.x:
- Break API to remove finds, isempty. Instead, simply return finds.
- Break API to replace 'i... | Add;
Version 1.x:
- ./droopescan scan -u drupal.org fails
- better error for empty file when `scan`
- SIGINT capture for new scanning.
- relative paths for --error-log
- Add "output to file" functionality.
- resume when -U and "output to file"
- Add composer.json to interesting URLs for... | Add notes of issues that were raised due to testing. | Add notes of issues that were raised due to testing.
| Text | agpl-3.0 | droope/droopescan,VielSoft/droopescan,fu3kingt3pe/droopescan,VielSoft/droopescan,fu3kingt3pe/droopescan,srkdos/droopescan,srkdos/droopescan,droope/droopescan | text | ## Code Before:
Add;
Version 1.x:
- ./droopescan scan -u drupal.org fails
- better error for empty file when `scan`
- SIGINT capture for new scanning.
- Add composer.json to interesting URLs for all CMS.
Version 2.x:
- Break API to remove finds, isempty. Instead, simply return finds.
- Break A... | Add;
Version 1.x:
- ./droopescan scan -u drupal.org fails
- better error for empty file when `scan`
- SIGINT capture for new scanning.
+ - relative paths for --error-log
+ - Add "output to file" functionality.
+ - resume when -U and "output to file"
- Add composer.json to ... | 3 | 0.166667 | 3 | 0 |
397bb32f8c74ffe6b0ed6afab90a29e56bbbd8b6 | sonar-project.properties | sonar-project.properties | sonar.junit.reportsPath=./reports/
sonar.junit.include=*.junit
sonar.swift.lizard.report=./reports/lizard-report.xml
sonar.swift.coverage.reportPattern=./reports/cobertura.xml
sonar.swift.swiftlint.report=./reports/*swiftlint.txt
sonar.projectName=Trakt-Swift
sonar.projectKey=io.github.pietrocaselani.traktswift
sonar.s... | sonar.junit.reportsPath=./reports/
sonar.junit.include=*.junit
sonar.swift.lizard.report=./reports/lizard-report.xml
sonar.swift.coverage.reportPattern=./reports/cobertura.xml
sonar.swift.swiftlint.report=./reports/*swiftlint.txt
sonar.projectName=Trakt-Swift
sonar.projectKey=io.github.pietrocaselani.traktswift
sonar.s... | Exclude `vendor` folder from sonar | Exclude `vendor` folder from sonar
| INI | unlicense | pietrocaselani/Trakt-Swift,pietrocaselani/Trakt-Swift,pietrocaselani/Trakt-Swift | ini | ## Code Before:
sonar.junit.reportsPath=./reports/
sonar.junit.include=*.junit
sonar.swift.lizard.report=./reports/lizard-report.xml
sonar.swift.coverage.reportPattern=./reports/cobertura.xml
sonar.swift.swiftlint.report=./reports/*swiftlint.txt
sonar.projectName=Trakt-Swift
sonar.projectKey=io.github.pietrocaselani.tr... | sonar.junit.reportsPath=./reports/
sonar.junit.include=*.junit
sonar.swift.lizard.report=./reports/lizard-report.xml
sonar.swift.coverage.reportPattern=./reports/cobertura.xml
sonar.swift.swiftlint.report=./reports/*swiftlint.txt
sonar.projectName=Trakt-Swift
sonar.projectKey=io.github.pietrocaselani.trak... | 2 | 0.133333 | 1 | 1 |
d610e4d86defa39a052a21ad75908cb0ad0bf570 | set-version.sh | set-version.sh | VERSION=$1
jq_in_place() {
tmp=$(mktemp)
jq $1 $2 > ${tmp}
mv ${tmp} $2
}
# Update version placeholders
FILES=$(grep -r SEED_VERSION spec | cut -d ':' -f 1 | sort | uniq)
for FILE in ${FILES}
do
sed -i "" -e "s/SEED_VERSION/"$1"/g" ${FILE}
done
# Update schemas
jq_in_place .properties.seedVersion.p... | VERSION=$1
jq_in_place() {
tmp=$(mktemp)
jq $1 $2 > ${tmp}
mv ${tmp} $2
}
# Update version placeholders
FILES=$(grep -r SEED_VERSION spec | cut -d ':' -f 1 | sort | uniq)
for FILE in ${FILES}
do
sed -i "" -e "s/SEED_VERSION/"$1"/g" ${FILE}
done
# Update schemas
VERSION_PATTERN=$(echo ${VERSION} | s... | Update to set schema pattern properly | Update to set schema pattern properly
| Shell | apache-2.0 | ngageoint/seed,ngageoint/seed,ngageoint/seed | shell | ## Code Before:
VERSION=$1
jq_in_place() {
tmp=$(mktemp)
jq $1 $2 > ${tmp}
mv ${tmp} $2
}
# Update version placeholders
FILES=$(grep -r SEED_VERSION spec | cut -d ':' -f 1 | sort | uniq)
for FILE in ${FILES}
do
sed -i "" -e "s/SEED_VERSION/"$1"/g" ${FILE}
done
# Update schemas
jq_in_place .properti... | VERSION=$1
jq_in_place() {
tmp=$(mktemp)
jq $1 $2 > ${tmp}
mv ${tmp} $2
}
# Update version placeholders
FILES=$(grep -r SEED_VERSION spec | cut -d ':' -f 1 | sort | uniq)
for FILE in ${FILES}
do
sed -i "" -e "s/SEED_VERSION/"$1"/g" ${FILE}
done
# Update schemas
+... | 5 | 0.178571 | 3 | 2 |
800503e891a9ee87641f0a4d1e45074bf8dd98b6 | metadata/io.rebble.charon.yml | metadata/io.rebble.charon.yml | Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin.com/project/charon
... | Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin.com/project/charon
... | Update CurrentVersion of Sideloader to 1.3 (4) | Update CurrentVersion of Sideloader to 1.3 (4)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin.com... | Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin... | 4 | 0.142857 | 3 | 1 |
0515f71d861529262aada1ad416c626277e11d9e | django_excel_to_model/forms.py | django_excel_to_model/forms.py | from django.utils.translation import ugettext_lazy as _
from django import forms
from models import ExcelImportTask
from django.forms import ModelForm
class ExcelFormatTranslateForm(forms.Form):
# title = forms.CharField(max_length=50)
import_file = forms.FileField(
label=_('File to import')
)
... | from django.contrib.contenttypes.models import ContentType
from django.utils.translation import ugettext_lazy as _
from django import forms
from models import ExcelImportTask
from django.forms import ModelForm
class ExcelFormatTranslateForm(forms.Form):
# title = forms.CharField(max_length=50)
import_file = f... | Sort content for data import. | Sort content for data import.
| Python | bsd-3-clause | weijia/django-excel-to-model,weijia/django-excel-to-model | python | ## Code Before:
from django.utils.translation import ugettext_lazy as _
from django import forms
from models import ExcelImportTask
from django.forms import ModelForm
class ExcelFormatTranslateForm(forms.Form):
# title = forms.CharField(max_length=50)
import_file = forms.FileField(
label=_('File to im... | + from django.contrib.contenttypes.models import ContentType
from django.utils.translation import ugettext_lazy as _
from django import forms
from models import ExcelImportTask
from django.forms import ModelForm
class ExcelFormatTranslateForm(forms.Form):
# title = forms.CharField(max_length=50)
... | 5 | 0.217391 | 4 | 1 |
2925dd45827f8f9a8c8df38cb0554f1c285737b1 | src/amethyst/http/params.cr | src/amethyst/http/params.cr | class Params
getter :hash
def initialize(default="")
@params = Hash(String, String).new(default)
end
def hash
@params
end
def merge(other : Params)
merged_hash = @params.merge other.hash
merged_params = Params.new
merged_params.from_hash(merged_hash)
merged_params
end
def [](key)
@params[key.t... | class Params
getter :hash
def initialize(default="")
@params = Hash(String, String).new(default)
end
def hash
@params
end
def merge(other : Params)
merged_hash = @params.merge other.hash
merged_params = Params.new
merged_params.from_hash(merged_hash)
merged_params
end
def [](key)
@params[key.t... | Add to_s method for Params | Add to_s method for Params
| Crystal | mit | trapped/amethyst | crystal | ## Code Before:
class Params
getter :hash
def initialize(default="")
@params = Hash(String, String).new(default)
end
def hash
@params
end
def merge(other : Params)
merged_hash = @params.merge other.hash
merged_params = Params.new
merged_params.from_hash(merged_hash)
merged_params
end
def [](key)... | class Params
getter :hash
def initialize(default="")
@params = Hash(String, String).new(default)
end
def hash
@params
end
def merge(other : Params)
merged_hash = @params.merge other.hash
merged_params = Params.new
merged_params.from_hash(merged_hash)
merged_params
... | 8 | 0.166667 | 8 | 0 |
7af7e49f5de3048e0322d585cb658ff34436b904 | circle.yml | circle.yml | machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker-apt-cacher-ng"
override:
- docker info
- if [[ -e ~/docker-apt-cacher-ng/image.tar ]]; then docker load --input ~/docker-apt-cacher-ng/image.tar; fi
- docker build -t sameersbn/apt-cacher-ng .
- mkdir -p ~/docker-apt-... | machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker-apt-cacher-ng"
override:
- docker info
- if [[ -e ~/docker-apt-cacher-ng/image.tar ]]; then docker load --input ~/docker-apt-cacher-ng/image.tar; fi
- docker build -t sameersbn/apt-cacher-ng .
- mkdir -p ~/docker-apt-... | Revert "ci: test apt-cacher-ng from within the apt-cacher-ng container" | Revert "ci: test apt-cacher-ng from within the apt-cacher-ng container"
This reverts commit 16028df9a87cb542c8698e6e9304b4c788e553f8.
circleci does not support `exec`.. FUCK IT!
| YAML | mit | sameersbn/docker-apt-cacher-ng | yaml | ## Code Before:
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker-apt-cacher-ng"
override:
- docker info
- if [[ -e ~/docker-apt-cacher-ng/image.tar ]]; then docker load --input ~/docker-apt-cacher-ng/image.tar; fi
- docker build -t sameersbn/apt-cacher-ng .
- mkdir ... | machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker-apt-cacher-ng"
override:
- docker info
- if [[ -e ~/docker-apt-cacher-ng/image.tar ]]; then docker load --input ~/docker-apt-cacher-ng/image.tar; fi
- docker build -t sameersbn/apt-cacher-ng .
- ... | 4 | 0.266667 | 2 | 2 |
258c31c3b3f9cbeca6904c7785785d767821886e | lib/App/Happyman/Action.pm | lib/App/Happyman/Action.pm | package App::Happyman::Action;
use v5.18;
use Moose;
use namespace::autoclean;
has [qw(text sender_nick)] => (
is => 'ro',
isa => 'Str',
required => 1,
);
sub BUILDARGS {
my ( $self, %args ) = @_;
$args{text} =~ s/^\s+|\s+$//g;
return \%args;
}
1;
| package App::Happyman::Action;
use v5.18;
use Moose;
use namespace::autoclean;
use Moose::Util::TypeConstraints;
subtype 'TrimmedStr'
=> as 'Str'
=> where { /^\S .* \S$/x };
coerce 'TrimmedStr'
=> from 'Str'
=> via { s/^\s+ | \s+$//gxr };
has 'sender_nick' => (
is => 'ro',
isa =>... | Use subtype for trimming text | Hug: Use subtype for trimming text
| Perl | mit | skyshaper/happyman,skyshaper/happyman,skyshaper/happyman | perl | ## Code Before:
package App::Happyman::Action;
use v5.18;
use Moose;
use namespace::autoclean;
has [qw(text sender_nick)] => (
is => 'ro',
isa => 'Str',
required => 1,
);
sub BUILDARGS {
my ( $self, %args ) = @_;
$args{text} =~ s/^\s+|\s+$//g;
return \%args;
}
1;
## Instructi... | package App::Happyman::Action;
use v5.18;
use Moose;
use namespace::autoclean;
+ use Moose::Util::TypeConstraints;
+
+ subtype 'TrimmedStr'
+ => as 'Str'
+ => where { /^\S .* \S$/x };
+
+ coerce 'TrimmedStr'
+ => from 'Str'
+ => via { s/^\s+ | \s+$//gxr };
+
+
- has [qw(text sender_nick)]... | 26 | 1.368421 | 18 | 8 |
2a471afe3d1a215fdc9be75d3e73889a571e822e | scripts/platform-identifier.sh | scripts/platform-identifier.sh | set -euo pipefail
IFS=$'\n\t'
SUPPORT_FILE="/etc/protonet/support_identifier"
get_mac() {
local INTERFACE=$(netstat -nr | awk '/^0\.0\.0\.0/ { print $8 }')
local MAC=$(ip link show ${INTERFACE} | awk '/link/ { gsub(/:/, "", $2); print toupper($2)}')
echo -n "${MAC}"
}
get_hw() {
echo -n "U"
}
if [[... | set -euo pipefail
IFS=$'\n\t'
SUPPORT_FILE="/etc/protonet/support_identifier"
get_mac() {
local interfaces=$(ip link show | awk '/^[0-9]+:\s+[ew][a-z0-9]+/ { gsub(/:/, "", $2); print $2 }')
local mac
local result=""
local iface
for iface in ${interfaces}; do
mac=$(ip link show ${iface} | a... | Make the support identifier great again. | Make the support identifier great again.
| Shell | apache-2.0 | experimental-platform/platform-configure,experimental-platform/platform-configure | shell | ## Code Before:
set -euo pipefail
IFS=$'\n\t'
SUPPORT_FILE="/etc/protonet/support_identifier"
get_mac() {
local INTERFACE=$(netstat -nr | awk '/^0\.0\.0\.0/ { print $8 }')
local MAC=$(ip link show ${INTERFACE} | awk '/link/ { gsub(/:/, "", $2); print toupper($2)}')
echo -n "${MAC}"
}
get_hw() {
echo ... | set -euo pipefail
IFS=$'\n\t'
SUPPORT_FILE="/etc/protonet/support_identifier"
get_mac() {
- local INTERFACE=$(netstat -nr | awk '/^0\.0\.0\.0/ { print $8 }')
+ local interfaces=$(ip link show | awk '/^[0-9]+:\s+[ew][a-z0-9]+/ { gsub(/:/, "", $2); print $2 }')
+ local mac
+ local result=""
... | 49 | 2.333333 | 37 | 12 |
ec1a9f8988686dafc768338fc69cbf99c4f82860 | etc/schema-image.json | etc/schema-image.json | {}
| {
"kernel_id": {
"type": "string",
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
"description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image."
},
"ramdisk_id": {
"type":... | Add kernel/ramdisk_id, instance_uuid to v2 schema | Add kernel/ramdisk_id, instance_uuid to v2 schema
Nova depends on a few properties to be able to interact with
images in Glance effectively. The three added in this patch
are kernel_id, ramdisk_id and instance_uuid. These properties
are just being added to the default v2 schema, so they can
be overwritten if a consume... | JSON | apache-2.0 | klmitch/glance,rajalokan/glance,akash1808/glance,cloudbau/glance,citrix-openstack-build/glance,SUSE-Cloud/glance,JioCloud/glance,rajalokan/glance,SUSE-Cloud/glance,ozamiatin/glance,wkoathp/glance,darren-wang/gl,ntt-sic/glance,dims/glance,takeshineshiro/glance,kfwang/Glance-OVA-OVF,saeki-masaki/glance,vuntz/glance,redha... | json | ## Code Before:
{}
## Instruction:
Add kernel/ramdisk_id, instance_uuid to v2 schema
Nova depends on a few properties to be able to interact with
images in Glance effectively. The three added in this patch
are kernel_id, ramdisk_id and instance_uuid. These properties
are just being added to the default v2 schema, so ... | - {}
+ {
+ "kernel_id": {
+ "type": "string",
+ "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
+ "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image."
+ },
+ "ramdisk_id"... | 17 | 17 | 16 | 1 |
0104016e78f9f7d3b535386c6455701bed4bdade | cmake/modules/CPackConfig.cmake | cmake/modules/CPackConfig.cmake | set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantti12@gmai... | set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantti12@gmai... | Fix CPack creating -qtX packages | Fix CPack creating -qtX packages
| CMake | bsd-3-clause | cutelyst/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,buschmann23/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst | cmake | ## Code Before:
set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_CONTACT "Daniel Nicolett... | set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantt... | 2 | 0.105263 | 1 | 1 |
30b2faf8f6159e2aaffb5a792b92bcbd7afb1193 | lib/util/OrderBook.js | lib/util/OrderBook.js |
/*
*
* poloniex-unofficial
* https://git.io/polonode
*
* Yet another unofficial Node.js wrapper for the Poloniex cryptocurrency
* exchange APIs.
*
* Copyright (c) 2016 Tyler Filla
*
* This software may be modified and distributed under the terms of the MIT
* license. See the LICENSE file for details.
*
*/... |
/*
*
* poloniex-unofficial
* https://git.io/polonode
*
* Yet another unofficial Node.js wrapper for the Poloniex cryptocurrency
* exchange APIs.
*
* Copyright (c) 2016 Tyler Filla
*
* This software may be modified and distributed under the terms of the MIT
* license. See the LICENSE file for details.
*
*/... | Add getters and setters to order book util | Add getters and setters to order book util
| JavaScript | mit | tylerfilla/node-poloniex-unofficial | javascript | ## Code Before:
/*
*
* poloniex-unofficial
* https://git.io/polonode
*
* Yet another unofficial Node.js wrapper for the Poloniex cryptocurrency
* exchange APIs.
*
* Copyright (c) 2016 Tyler Filla
*
* This software may be modified and distributed under the terms of the MIT
* license. See the LICENSE file for... |
/*
*
* poloniex-unofficial
* https://git.io/polonode
*
* Yet another unofficial Node.js wrapper for the Poloniex cryptocurrency
* exchange APIs.
*
* Copyright (c) 2016 Tyler Filla
*
* This software may be modified and distributed under the terms of the MIT
* license. See the LICENS... | 46 | 2 | 46 | 0 |
771c5a86ea0e871b6805f0653b37f6bbd98df16b | src/coffee/run.coffee | src/coffee/run.coffee | Config = require '../config'
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret')
.demand(['projectKey','clientId', 'clientSecret'])
.argv
MarketPlaceStockUpdater = require('../main').MarketPlaceStockUpdater
Config.timeout = 60000
Config.showProgress = true
updater... | Config = require '../config'
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret')
.demand(['projectKey','clientId', 'clientSecret'])
.argv
MarketPlaceStockUpdater = require('../main').MarketPlaceStockUpdater
updater = new MarketPlaceStockUpdater(Config, argv.project... | Remove config as it shoud be set outside. | Remove config as it shoud be set outside.
| CoffeeScript | mit | sphereio/sphere-stock-sync,sphereio/sphere-stock-sync | coffeescript | ## Code Before:
Config = require '../config'
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret')
.demand(['projectKey','clientId', 'clientSecret'])
.argv
MarketPlaceStockUpdater = require('../main').MarketPlaceStockUpdater
Config.timeout = 60000
Config.showProgress... | Config = require '../config'
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret')
.demand(['projectKey','clientId', 'clientSecret'])
.argv
MarketPlaceStockUpdater = require('../main').MarketPlaceStockUpdater
- Config.timeout = 60000
- Config.showProgre... | 3 | 0.214286 | 0 | 3 |
b19ba07d987b24b1d6a065654c07601ac1667cba | app/models/spree/page.rb | app/models/spree/page.rb | module Spree
class Page < ActiveRecord::Base
validates :title, :presence => true
validates :permalink, :uniqueness => true
scope :published, where(:published => true)
paginates_per 50
end
end
| module Spree
class Page < ActiveRecord::Base
attr_accessible :title, :meta_keywords, :meta_description, :body, :permalink, :published
validates :title, :presence => true
validates :permalink, :uniqueness => true
scope :published, where(:published => true)
paginates_per 50
end
end
| Add attr_accessible to be compatible with rails 3.2.6+ | Add attr_accessible to be compatible with rails 3.2.6+
| Ruby | bsd-3-clause | gdsn13/spree_pages,sebastyuiop/spree_pages,gdsn13/spree_pages | ruby | ## Code Before:
module Spree
class Page < ActiveRecord::Base
validates :title, :presence => true
validates :permalink, :uniqueness => true
scope :published, where(:published => true)
paginates_per 50
end
end
## Instruction:
Add attr_accessible to be compatible with rails 3.2.6+
## Code After:
... | module Spree
class Page < ActiveRecord::Base
+ attr_accessible :title, :meta_keywords, :meta_description, :body, :permalink, :published
validates :title, :presence => true
validates :permalink, :uniqueness => true
scope :published, where(:published => true)
paginates_per 50
... | 1 | 0.1 | 1 | 0 |
f93a2dd65df78ec50f694e1c5a7c35dd53206821 | README.md | README.md |
Package keygen is a helper to generate symmetric key(Ex: HMAC).
#### Create Symmetric Algorithm Key for HMAC SHA-256
var err error
size := 256 // Key size = 256 bits.
key := make([]byte, size)
if key, err = keygen.GenSymmetricKey(size); err != nil {
fmt.Printf("GenSymmetricKey(%v) error: %v... |
keygen is a [Golang](http://golang.org) package which provides helper functions to generate symmetric key(Ex: HMAC).
#### Create Symmetric Algorithm Key for HMAC SHA-256
var err error
size := 256 // Key size = 256 bits.
key := make([]byte, size)
if key, err = keygen.GenSymmetricKey(size); err != ni... | Make it easy to understand what keygen is | Make it easy to understand what keygen is
| Markdown | mit | northbright/keygen | markdown | ## Code Before:
Package keygen is a helper to generate symmetric key(Ex: HMAC).
#### Create Symmetric Algorithm Key for HMAC SHA-256
var err error
size := 256 // Key size = 256 bits.
key := make([]byte, size)
if key, err = keygen.GenSymmetricKey(size); err != nil {
fmt.Printf("GenSymmetricK... |
- Package keygen is a helper to generate symmetric key(Ex: HMAC).
+ keygen is a [Golang](http://golang.org) package which provides helper functions to generate symmetric key(Ex: HMAC).
#### Create Symmetric Algorithm Key for HMAC SHA-256
var err error
size := 256 // Key size = 256 bits.
ke... | 2 | 0.060606 | 1 | 1 |
078d8c8f591b7bb82287c61635ae0e048e2af4ed | CONTRIBUTING.rst | CONTRIBUTING.rst | If you would like to contribute to the development of OpenStack,
you must follow the steps documented at:
https://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
https://bugs.launchpad.n... | If you would like to contribute to the development of OpenStack,
you must follow the steps documented at:
https://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed in StoryBoard, not GitHub:
https://storyboard.open... | Change launchpad references to storyboard | Change launchpad references to storyboard
Change-Id: I438236e9f46987f985a2e7c103ce1bef88e8fb04
| reStructuredText | apache-2.0 | openstack/ironic-lib | restructuredtext | ## Code Before:
If you would like to contribute to the development of OpenStack,
you must follow the steps documented at:
https://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
https://... | If you would like to contribute to the development of OpenStack,
you must follow the steps documented at:
https://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
- Bugs should be filed on Launchpad, not GitHub:
? ... | 4 | 0.4 | 2 | 2 |
0495f5171afdbf5b067a65f08c502f40c2de320d | README.md | README.md | microsoft.github.io
===================
A simple redirector to point onto the Microsoft Openness Site.
Note, if the Microsoft Open Source project you are looking for isn't here then
we have several other Organizations on GitHub:
- https://github.com/MSOpenTech
- https://github.com/aspnet
- https://github.com/Azur... | microsoft.github.io
===================
A simple redirector to point onto the Microsoft Openness Site.
Note, if the Microsoft Open Source project you are looking for isn't here then
we have several other Organizations on GitHub:
- https://github.com/MSOpenTech
- https://github.com/aspnet
- https://github.com/Azur... | Add Nuget org to other Microsoft org list. | Add Nuget org to other Microsoft org list. | Markdown | mit | isathish/microsoft.github.io,pythonvietnam/microsoft.github.io,erlend-sh/misoftest,isathish/microsoft.github.io,KnowNo/microsoft.github.io,MaizerGomes/microsoft.github.io,wicky-info/microsoft.github.io,KnowNo/microsoft.github.io,jmarti326/microsoft.github.io,erlend-sh/misoftest,MaizerGomes/microsoft.github.io,jmarti326... | markdown | ## Code Before:
microsoft.github.io
===================
A simple redirector to point onto the Microsoft Openness Site.
Note, if the Microsoft Open Source project you are looking for isn't here then
we have several other Organizations on GitHub:
- https://github.com/MSOpenTech
- https://github.com/aspnet
- https:/... | microsoft.github.io
===================
A simple redirector to point onto the Microsoft Openness Site.
Note, if the Microsoft Open Source project you are looking for isn't here then
we have several other Organizations on GitHub:
- https://github.com/MSOpenTech
- https://github.com/aspnet
- h... | 1 | 0.045455 | 1 | 0 |
fd10a748b7777d57e3de24d2af40bcb0359db213 | bower.json | bower.json | {
"name": "wow-guild-recruit",
"dependencies": {
"angular": "1.4.8",
"angular-moment": "^1.0.0-beta.5",
"angular-ranger": "~0.1.4",
"angular-ui-router": "~1.0.0-alpha.1",
"angular-socket-io": "~0.7.0",
"angular-translate": "~2.11.0",
"bootstrap": "~3.3.6",
"font-awesome": "~4.5.0",
... | {
"name": "wow-guild-recruit",
"dependencies": {
"angular": "1.4.8",
"angular-moment": "^1.0.0-beta.5",
"angular-ranger": "~0.1.4",
"angular-ui-router": "~0.3.0",
"angular-socket-io": "~0.7.0",
"angular-translate": "~2.11.0",
"bootstrap": "~3.3.6",
"font-awesome": "~4.5.0",
"jque... | Fix Google Analytics bug - ui router version bug | Fix Google Analytics bug - ui router version bug
| JSON | agpl-3.0 | warcraftlfg/warcraft-lfg,warcraftlfg/warcraft-lfg | json | ## Code Before:
{
"name": "wow-guild-recruit",
"dependencies": {
"angular": "1.4.8",
"angular-moment": "^1.0.0-beta.5",
"angular-ranger": "~0.1.4",
"angular-ui-router": "~1.0.0-alpha.1",
"angular-socket-io": "~0.7.0",
"angular-translate": "~2.11.0",
"bootstrap": "~3.3.6",
"font-aweso... | {
"name": "wow-guild-recruit",
"dependencies": {
"angular": "1.4.8",
"angular-moment": "^1.0.0-beta.5",
"angular-ranger": "~0.1.4",
- "angular-ui-router": "~1.0.0-alpha.1",
? ^ ----------
+ "angular-ui-router": "~0.3.0",
? ^^^
... | 2 | 0.074074 | 1 | 1 |
7848ca7714e2e23e3098f32ed64233037b11290e | pytest.ini | pytest.ini | [pytest]
addopts = --pep8 -rsx --cov src/purkinje --cov-report term-missing
#addopts = --pep8 -rsx --cov src/purkinje --cov-report html
norecursedirs = venv bower_components build testdata | [pytest]
addopts = --pep8 -rsx --cov src/purkinje --cov-report term-missing --cov-report html
norecursedirs = venv bower_components build testdata | Create terminal and HTML coverage report | Create terminal and HTML coverage report
| INI | mit | bbiskup/purkinje,bbiskup/purkinje,bbiskup/purkinje,bbiskup/purkinje | ini | ## Code Before:
[pytest]
addopts = --pep8 -rsx --cov src/purkinje --cov-report term-missing
#addopts = --pep8 -rsx --cov src/purkinje --cov-report html
norecursedirs = venv bower_components build testdata
## Instruction:
Create terminal and HTML coverage report
## Code After:
[pytest]
addopts = --pep8 -rsx --cov src/... | [pytest]
- addopts = --pep8 -rsx --cov src/purkinje --cov-report term-missing
+ addopts = --pep8 -rsx --cov src/purkinje --cov-report term-missing --cov-report html
? ++++++++++++++++++
- #addopts = --pep8 -rsx --cov src/purkinje --cov-report html
... | 3 | 0.75 | 1 | 2 |
2f35cc1dad8ef23ebb2f0cfe4a0a919aa7936478 | posh/Settings/PSReadLine.ps1 | posh/Settings/PSReadLine.ps1 | if (Get-Module -Name PSReadLine -ListAvailable) {
if ($Host.Name -eq 'ConsoleHost') {
Write-Verbose -Message '[dotfiles] Loading PSReadLine settings ...'
Import-Module -Name PSReadLine
# Move the cursor to end of line while cycling through history
Set-PSReadLineOption -HistorySearch... | if (Get-Module -Name PSReadLine -ListAvailable) {
if ($Host.Name -eq 'ConsoleHost') {
Write-Verbose -Message '[dotfiles] Loading PSReadLine settings ...'
Import-Module -Name PSReadLine
# Move the cursor to end of line while cycling through history
Set-PSReadLineOption -HistorySearch... | Add PSReadline handler for inserting paired parenthesis | Add PSReadline handler for inserting paired parenthesis
| PowerShell | unlicense | ralish/dotfiles,ralish/dotfiles,ralish/dotfiles | powershell | ## Code Before:
if (Get-Module -Name PSReadLine -ListAvailable) {
if ($Host.Name -eq 'ConsoleHost') {
Write-Verbose -Message '[dotfiles] Loading PSReadLine settings ...'
Import-Module -Name PSReadLine
# Move the cursor to end of line while cycling through history
Set-PSReadLineOptio... | if (Get-Module -Name PSReadLine -ListAvailable) {
if ($Host.Name -eq 'ConsoleHost') {
Write-Verbose -Message '[dotfiles] Loading PSReadLine settings ...'
Import-Module -Name PSReadLine
# Move the cursor to end of line while cycling through history
Set-PSReadLineOption ... | 27 | 1.35 | 27 | 0 |
7f3a9dd375f30906ff06b51b20d2a964f9e8a949 | _protected/app/system/modules/payment/views/base/tpl/main/error.tpl | _protected/app/system/modules/payment/views/base/tpl/main/error.tpl | <div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact', 'contact', 'ind... | <div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please contact your payment provider or <a href="%0%">contact us</a>.', Framework\Mvc\Router\Ur... | Add more details into payment failure message | Add more details into payment failure message
| Smarty | mit | pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS | smarty | ## Code Before:
<div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact',... | <div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
- {lang 'If the problem persists, please <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact', '... | 2 | 0.222222 | 1 | 1 |
5118050141ea1d1c98f888185161330c6dc23a6d | .travis.yml | .travis.yml | language: python
python:
- "2.7"
jdk:
- openjdk6
install: pip install -r REQUIREMENTS --use-mirrors && pip install Fabric==1.4.0 --use-mirrors
#script: python manage.py harvest --apps=storybase_user --settings=settings.travis
script: python manage.py test storybase_messaging storybase_asset storybase_geo storybas... | language: python
python:
- "2.7"
jdk:
- openjdk6
install: pip install -r REQUIREMENTS --use-mirrors && pip install Fabric==1.4.0 --use-mirrors
script: python manage.py test storybase_messaging storybase_asset storybase_geo storybase_help storybase_story storybase_user storybase_taxonomy cmsplugin_storybase --setti... | Add cmsplugin_storybase tests to Travis run | Add cmsplugin_storybase tests to Travis run
| YAML | mit | denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase | yaml | ## Code Before:
language: python
python:
- "2.7"
jdk:
- openjdk6
install: pip install -r REQUIREMENTS --use-mirrors && pip install Fabric==1.4.0 --use-mirrors
#script: python manage.py harvest --apps=storybase_user --settings=settings.travis
script: python manage.py test storybase_messaging storybase_asset storyb... | language: python
python:
- "2.7"
jdk:
- openjdk6
install: pip install -r REQUIREMENTS --use-mirrors && pip install Fabric==1.4.0 --use-mirrors
- #script: python manage.py harvest --apps=storybase_user --settings=settings.travis
- script: python manage.py test storybase_messaging storybase_asset storyb... | 3 | 0.166667 | 1 | 2 |
9bcabeb64d3ffe31ff427564361a6222b7887b97 | src/Tgstation.Server.Host/appsettings.Docker.json | src/Tgstation.Server.Host/appsettings.Docker.json | {
"General": {
"LogFileDirectory": "/tgs_logs",
"MinimumPasswordLength": 15,
"GitHubAccessToken": null
},
"Database": {
"DatabaseType": "SqlServer or MySQL or MariaDB",
"ConnectionString": "<Your connection string>",
"MySqlServerVersion": "<Set if using MySQL/MariaDB i.e. 10.2.7>"
}
}
| {
"General": {
"LogFileDirectory": "/tgs_logs",
"MinimumPasswordLength": 15,
"GitHubAccessToken": null
},
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:5000"
}
}
},
"Database": {
"DatabaseType": "SqlServer or MySQL or MariaDB",
"ConnectionStrin... | Add kestrel config to docker json | Add kestrel config to docker json | JSON | agpl-3.0 | tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools | json | ## Code Before:
{
"General": {
"LogFileDirectory": "/tgs_logs",
"MinimumPasswordLength": 15,
"GitHubAccessToken": null
},
"Database": {
"DatabaseType": "SqlServer or MySQL or MariaDB",
"ConnectionString": "<Your connection string>",
"MySqlServerVersion": "<Set if using MySQL/MariaDB i.e. ... | {
"General": {
"LogFileDirectory": "/tgs_logs",
"MinimumPasswordLength": 15,
"GitHubAccessToken": null
+ },
+ "Kestrel": {
+ "Endpoints": {
+ "Http": {
+ "Url": "http://localhost:5000"
+ }
+ }
},
"Database": {
"DatabaseType": "SqlServer or MySQL or ... | 7 | 0.583333 | 7 | 0 |
2e040a249bed30d0e844c56401f03ba4cdf49e18 | froide_campaign/templates/froide_campaign/plugins/campaign_map.html | froide_campaign/templates/froide_campaign/plugins/campaign_map.html | {% load static %}
{% load sekizai_tags %}
<campaign-map
id="campaign-map-component"
:config="{{ config }}"
>
</campaign-map>
{% addtoblock 'js' %}
<script src="{% static 'js/common.js' %}" charset="utf-8"></script>
<script src="{% static 'js/campaign_map.js' %}" charset="utf-8"></script>
{% endaddtobl... | {% load static %}
{% load sekizai_tags %}
<campaign-map
id="campaign-map-component"
:config="{{ config }}"
>
</campaign-map>
{% addtoblock 'js' %}
<script src="{% static 'js/common.js' %}" charset="utf-8"></script>
{% endaddtoblock %}
{% addtoblock 'js' %}
<script src="{% static 'js/campaign_map.js' %}"... | Add css to campaign map, split addtoblocks | Add css to campaign map, split addtoblocks | HTML | mit | okfde/froide-campaign,okfde/froide-campaign,okfde/froide-campaign | html | ## Code Before:
{% load static %}
{% load sekizai_tags %}
<campaign-map
id="campaign-map-component"
:config="{{ config }}"
>
</campaign-map>
{% addtoblock 'js' %}
<script src="{% static 'js/common.js' %}" charset="utf-8"></script>
<script src="{% static 'js/campaign_map.js' %}" charset="utf-8"></scrip... | {% load static %}
{% load sekizai_tags %}
<campaign-map
id="campaign-map-component"
:config="{{ config }}"
>
</campaign-map>
{% addtoblock 'js' %}
<script src="{% static 'js/common.js' %}" charset="utf-8"></script>
- <script src="{% static 'js/campaign_map.js' %}" charset="utf-8"... | 11 | 0.846154 | 10 | 1 |
76a41203854506ef38cb1c6d327f2b207a284248 | lib/lyricfy/providers/metro_lyrics.rb | lib/lyricfy/providers/metro_lyrics.rb | module Lyricfy
class MetroLyrics < Lyricfy::LyricProvider
include URIHelper
def initialize(parameters)
super(parameters)
self.base_url = "http://m.metrolyrics.com/"
self.url = URI.escape(self.base_url + format_parameters)
end
def search
begin
html = Nokogiri::HTML(ope... | module Lyricfy
class MetroLyrics < Lyricfy::LyricProvider
include URIHelper
def initialize(parameters)
super(parameters)
self.base_url = "http://m.metrolyrics.com/"
self.url = URI.escape(self.base_url + format_parameters)
end
def search
if data = super
html = Nokogir... | Change Lyricfy::MetroLyrics to pass tests | Change Lyricfy::MetroLyrics to pass tests
| Ruby | mit | javichito/Lyricfy | ruby | ## Code Before:
module Lyricfy
class MetroLyrics < Lyricfy::LyricProvider
include URIHelper
def initialize(parameters)
super(parameters)
self.base_url = "http://m.metrolyrics.com/"
self.url = URI.escape(self.base_url + format_parameters)
end
def search
begin
html = No... | module Lyricfy
class MetroLyrics < Lyricfy::LyricProvider
include URIHelper
def initialize(parameters)
super(parameters)
self.base_url = "http://m.metrolyrics.com/"
self.url = URI.escape(self.base_url + format_parameters)
end
def search
- begin
+ i... | 26 | 0.565217 | 6 | 20 |
7aff5878747c000c5868e3a5ddd8b205d74770b0 | thinc/extra/load_nlp.py | thinc/extra/load_nlp.py | import numpy
try:
import spacy
except ImportError:
spacy = None
SPACY_MODELS = {}
VECTORS = {}
def get_spacy(lang, **kwargs):
global SPACY_MODELS
if spacy is None:
raise ImportError("Could not import spacy. Is it installed?")
if lang not in SPACY_MODELS:
SPACY_MODELS[lang] = spacy... | import numpy
SPACY_MODELS = {}
VECTORS = {}
def get_spacy(lang, **kwargs):
global SPACY_MODELS
import spacy
if lang not in SPACY_MODELS:
SPACY_MODELS[lang] = spacy.load(lang, **kwargs)
return SPACY_MODELS[lang]
def get_vectors(ops, lang):
global VECTORS
key = (ops.device, lang)
... | Improve import of spaCy, to prevent cycles | Improve import of spaCy, to prevent cycles
| Python | mit | explosion/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,explosion/thinc,spacy-io/thinc,spacy-io/thinc | python | ## Code Before:
import numpy
try:
import spacy
except ImportError:
spacy = None
SPACY_MODELS = {}
VECTORS = {}
def get_spacy(lang, **kwargs):
global SPACY_MODELS
if spacy is None:
raise ImportError("Could not import spacy. Is it installed?")
if lang not in SPACY_MODELS:
SPACY_MODE... | import numpy
- try:
- import spacy
- except ImportError:
- spacy = None
SPACY_MODELS = {}
VECTORS = {}
def get_spacy(lang, **kwargs):
global SPACY_MODELS
+ import spacy
- if spacy is None:
- raise ImportError("Could not import spacy. Is it installed?")
if lang not in... | 7 | 0.21875 | 1 | 6 |
61c2cbbdd7f785690c6d8ec8df45cf5c0c92e914 | Union/Union.swift | Union/Union.swift | //
// Union.swift
// Union
//
// Created by Hirohisa Kawasaki on 2/19/15.
// Copyright (c) 2015 Hirohisa Kawasaki. All rights reserved.
//
import UIKit
public enum Error: ErrorType {
case AnimationPreviousNotIncludedInAnimations
}
public protocol Delegate {
func animationsBeforeTransitionTo(viewControlle... | //
// Union.swift
// Union
//
// Created by Hirohisa Kawasaki on 2/19/15.
// Copyright (c) 2015 Hirohisa Kawasaki. All rights reserved.
//
import UIKit
public enum Error: ErrorType {
case AnimationPreviousNotIncludedInAnimations
}
public protocol Delegate {
func animationsBeforeTransition(from fromViewCo... | Add arguments from and to viewControllers in Delegate | Add arguments from and to viewControllers in Delegate
| Swift | mit | TransitionKit/Union,TransitionKit/Union | swift | ## Code Before:
//
// Union.swift
// Union
//
// Created by Hirohisa Kawasaki on 2/19/15.
// Copyright (c) 2015 Hirohisa Kawasaki. All rights reserved.
//
import UIKit
public enum Error: ErrorType {
case AnimationPreviousNotIncludedInAnimations
}
public protocol Delegate {
func animationsBeforeTransition... | //
// Union.swift
// Union
//
// Created by Hirohisa Kawasaki on 2/19/15.
// Copyright (c) 2015 Hirohisa Kawasaki. All rights reserved.
//
import UIKit
public enum Error: ErrorType {
case AnimationPreviousNotIncludedInAnimations
}
public protocol Delegate {
- func animations... | 8 | 0.285714 | 4 | 4 |
35e6d5cf29edeab3f4d3ac47a445c15c369203fa | index.js | index.js | module.exports = function (dest, src) {
Object.getOwnPropertyNames(src).forEach(function (name) {
var descriptor = Object.getOwnPropertyDescriptor(src, name)
Object.defineProperty(dest, name, descriptor)
})
return dest
} | /*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
/**
* Module exports.
* @public
*/
module.exports = merge
/**
* Merge the property descriptors of `src` into `dest`
*
* @param {object} dest Object to add descriptors to
* @param {object} src Object to clone descriptors from
* @re... | Add jsdoc to source file | Add jsdoc to source file
| JavaScript | mit | nooks/merge-descriptors,component/merge-descriptors | javascript | ## Code Before:
module.exports = function (dest, src) {
Object.getOwnPropertyNames(src).forEach(function (name) {
var descriptor = Object.getOwnPropertyDescriptor(src, name)
Object.defineProperty(dest, name, descriptor)
})
return dest
}
## Instruction:
Add jsdoc to source file
## Code After:
/*!
* merg... | - module.exports = function (dest, src) {
+ /*!
+ * merge-descriptors
+ * Copyright(c) 2014 Jonathan Ong
+ * MIT Licensed
+ */
+
+ /**
+ * Module exports.
+ * @public
+ */
+
+ module.exports = merge
+
+ /**
+ * Merge the property descriptors of `src` into `dest`
+ *
+ * @param {object} dest Object to add d... | 26 | 3.25 | 24 | 2 |
5fbcce3feffb63dbd50623f8d6cb0e354bce7add | fedora/release.py | fedora/release.py | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | Fix the URL in the metadata of the package | Fix the URL in the metadata of the package
Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr>
| Python | lgpl-2.1 | fedora-infra/python-fedora | python | ## Code Before:
'''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, ... | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new prog... | 2 | 0.105263 | 1 | 1 |
0e85bd392a0a262c80968e069753797a85f1e9d9 | lib/puppetfiler/cli.rb | lib/puppetfiler/cli.rb | require 'thor'
require 'puppetfiler/puppetfile'
require 'puppetfiler/version'
module Puppetfiler
class CLI < Thor
desc 'check [puppetfile]', 'Check forge for newer versions of used forge modules'
def check(puppetfile = 'Puppetfile')
pf = Puppetfiler::Puppetfile.new(puppetfile)
... | require 'thor'
require 'puppetfiler/puppetfile'
require 'puppetfiler/version'
module Puppetfiler
class CLI < Thor
desc 'check [puppetfile]', 'Check forge for newer versions of used forge modules'
def check(puppetfile = 'Puppetfile')
pf = Puppetfiler::Puppetfile.new(puppetfile)
... | Write to file by default, stdout on flag | fixture: Write to file by default, stdout on flag
| Ruby | mit | ntnn/puppetfiler,ntnn/puppetfiler | ruby | ## Code Before:
require 'thor'
require 'puppetfiler/puppetfile'
require 'puppetfiler/version'
module Puppetfiler
class CLI < Thor
desc 'check [puppetfile]', 'Check forge for newer versions of used forge modules'
def check(puppetfile = 'Puppetfile')
pf = Puppetfiler::Puppetfile.new(puppe... | require 'thor'
require 'puppetfiler/puppetfile'
require 'puppetfiler/version'
module Puppetfiler
class CLI < Thor
desc 'check [puppetfile]', 'Check forge for newer versions of used forge modules'
def check(puppetfile = 'Puppetfile')
pf = Puppetfiler::Puppetfile.new(pup... | 9 | 0.310345 | 8 | 1 |
71f26c3cf34d4e1c598908309f97869536baf1e2 | app/javascript/consent/ConsentComponent.css | app/javascript/consent/ConsentComponent.css | .ConsentComponent {
clear: both;
padding-top: 1px;
}
.ConsentComponent--opt-in-reason {
margin: 20px 0;
}
.ConsentComponent--opt-out-warn {
margin: 15px 0;
padding: 10px;
color: red;
border: 2px solid red;
}
.ConsentComponent--opt-out-warn-title {
font-weight: bold;
}
.ConsentComponent--opt-out-warn-... | .ConsentComponent {
clear: both;
padding-top: 1px;
margin-top: 20px;
}
.ConsentComponent--opt-in-reason {
margin: 20px 0;
}
.ConsentComponent--opt-out-warn {
margin: 15px 0;
padding: 10px;
color: red;
border: 2px solid red;
}
.ConsentComponent--opt-out-warn-title {
font-weight: bold;
}
.ConsentComp... | Add some space above consent options | :lipstick: Add some space above consent options
| CSS | mit | SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign | css | ## Code Before:
.ConsentComponent {
clear: both;
padding-top: 1px;
}
.ConsentComponent--opt-in-reason {
margin: 20px 0;
}
.ConsentComponent--opt-out-warn {
margin: 15px 0;
padding: 10px;
color: red;
border: 2px solid red;
}
.ConsentComponent--opt-out-warn-title {
font-weight: bold;
}
.ConsentComponen... | .ConsentComponent {
clear: both;
padding-top: 1px;
+ margin-top: 20px;
}
.ConsentComponent--opt-in-reason {
margin: 20px 0;
}
.ConsentComponent--opt-out-warn {
margin: 15px 0;
padding: 10px;
color: red;
border: 2px solid red;
}
.ConsentComponent--opt-out-warn-title {
... | 1 | 0.034483 | 1 | 0 |
61fb2f693d93e8f56fae405e2372029e093aa157 | test/gh.fish | test/gh.fish | test "prints help when given -h option"
"Usage: gh [--help] USER REPO" \
"" \
"Description:" \
" Quickly navigate across git repositories cloned from GitHub." \
" Searches within $HOME/github.com/. Clones repo if not found." \
"" \
"Examples:" \
" gh dideler fish-cd-git" = (gh -h)
end
| test "prints help when given -h option"
"Usage: gh [--help] USER REPO" \
"" \
"Description:" \
" Quickly navigate across git repositories cloned from GitHub." \
" Searches within $HOME/github.com/. Clones repo if not found." \
"" \
"Examples:" \
" gh dideler fish-cd-git" = (gh -h)
end
test "pr... | Add test for --help option | :white_check_mark: Add test for --help option
| fish | mit | dideler/fish-cd-git | fish | ## Code Before:
test "prints help when given -h option"
"Usage: gh [--help] USER REPO" \
"" \
"Description:" \
" Quickly navigate across git repositories cloned from GitHub." \
" Searches within $HOME/github.com/. Clones repo if not found." \
"" \
"Examples:" \
" gh dideler fish-cd-git" = (gh -... | test "prints help when given -h option"
"Usage: gh [--help] USER REPO" \
"" \
"Description:" \
" Quickly navigate across git repositories cloned from GitHub." \
" Searches within $HOME/github.com/. Clones repo if not found." \
"" \
"Examples:" \
" gh dideler fish-cd-git" = (gh... | 11 | 1.1 | 11 | 0 |
8d20035df56fcc1d40c6d28ad8e7a4ff30900636 | script.js | script.js | var ctx = document.getElementById("chart").getContext("2d");
var myLineChart = new Chart(ctx).Line(data, {
tooltipTemplate = function(valuesObject){
var label = valuesObject.label;
var idx = data.labels.indexOf(label);
var result = data.datasets[0].time[idx];
if (data.datasets[0].languages[i... | var data = {"labels": ["12 December", "13 December", "14 December", "15 December", "16 December", "17 December", "18 December"], "datasets": [{"languages": [[], [], [], [], [], ["Python", "Other"], ["Python", "JavaScript", "Bash"]], "pointHighlightFill": "#fff", "fillColor": "rgba(151,187,205,0.2)", "pointHighlightStro... | Update dashboard at Fri Dec 18 02:17:47 NPT 2015 | Update dashboard at Fri Dec 18 02:17:47 NPT 2015
| JavaScript | mit | switchkiller/HaloTracker,switchkiller/HaloTracker,switchkiller/HaloTracker | javascript | ## Code Before:
var ctx = document.getElementById("chart").getContext("2d");
var myLineChart = new Chart(ctx).Line(data, {
tooltipTemplate = function(valuesObject){
var label = valuesObject.label;
var idx = data.labels.indexOf(label);
var result = data.datasets[0].time[idx];
if (data.dataset... | + var data = {"labels": ["12 December", "13 December", "14 December", "15 December", "16 December", "17 December", "18 December"], "datasets": [{"languages": [[], [], [], [], [], ["Python", "Other"], ["Python", "JavaScript", "Bash"]], "pointHighlightFill": "#fff", "fillColor": "rgba(151,187,205,0.2)", "pointHighlightSt... | 3 | 0.25 | 3 | 0 |
04d86995aa2750bf6fc9b5e9ab1133e167084d1c | .travis.yml | .travis.yml | rvm: 2.6.1
sudo: required
branches:
only:
- master
cache: bundler
before_script:
- echo -e "[mysqld]\ninnodb_file_format = Barracuda\ninnodb_file_per_table = 1\ninnodb_large_prefix = 1" | sudo sh -c "cat >> /etc/mysql/my.cnf"
- sudo service mysql restart
- bundle exec rake db:create db:migrate
- mkdir -p ... | rvm: 2.6.1
node_js: 8
sudo: required
branches:
only:
- master
cache: bundler
before_script:
- echo -e "[mysqld]\ninnodb_file_format = Barracuda\ninnodb_file_per_table = 1\ninnodb_large_prefix = 1" | sudo sh -c "cat >> /etc/mysql/my.cnf"
- sudo service mysql restart
- bundle exec rake db:create db:migrate
... | Use node_js: 8 on Travis | Use node_js: 8 on Travis
| YAML | mit | k0kubun/githubranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/githubranking,k0kubun/github-ranking | yaml | ## Code Before:
rvm: 2.6.1
sudo: required
branches:
only:
- master
cache: bundler
before_script:
- echo -e "[mysqld]\ninnodb_file_format = Barracuda\ninnodb_file_per_table = 1\ninnodb_large_prefix = 1" | sudo sh -c "cat >> /etc/mysql/my.cnf"
- sudo service mysql restart
- bundle exec rake db:create db:migra... | rvm: 2.6.1
+ node_js: 8
sudo: required
branches:
only:
- master
cache: bundler
before_script:
- echo -e "[mysqld]\ninnodb_file_format = Barracuda\ninnodb_file_per_table = 1\ninnodb_large_prefix = 1" | sudo sh -c "cat >> /etc/mysql/my.cnf"
- sudo service mysql restart
- bundle exec rake d... | 1 | 0.071429 | 1 | 0 |
82fe0c4d03652463916146d9d707383f4f360f22 | webpack.config.js | webpack.config.js | var path = require("path");
var webpack = require("webpack");
var ParallelEsPlugin = require("parallel-es-webpack-plugin");
module.exports = {
devtool: "#inline-source-map",
entry: {
examples: "./src/browser-example.ts",
"performance-measurements": "./src/performance-measurement.ts"
},
... | var path = require("path");
var webpack = require("webpack");
var ParallelEsPlugin = require("parallel-es-webpack-plugin");
module.exports = {
devtool: "#inline-source-map",
entry: {
examples: "./src/browser-example.ts",
"performance-measurements": "./src/performance-measurement.ts"
},
... | Fix webpack setup for linked parallel-es | Fix webpack setup for linked parallel-es
If the parallel-es module is linked, dependencies imported from transpiled functions can no longer be resolved.
Requires to set resolve.modules to the project directory
| JavaScript | mit | MichaReiser/parallel-es-example,MichaReiser/parallel-es-example,MichaReiser/parallel-es-example,MichaReiser/parallel-es-example,MichaReiser/parallel-es-example | javascript | ## Code Before:
var path = require("path");
var webpack = require("webpack");
var ParallelEsPlugin = require("parallel-es-webpack-plugin");
module.exports = {
devtool: "#inline-source-map",
entry: {
examples: "./src/browser-example.ts",
"performance-measurements": "./src/performance-measurement... | var path = require("path");
var webpack = require("webpack");
var ParallelEsPlugin = require("parallel-es-webpack-plugin");
module.exports = {
devtool: "#inline-source-map",
entry: {
examples: "./src/browser-example.ts",
"performance-measurements": "./src/performance-measureme... | 9 | 0.169811 | 6 | 3 |
a484a3efb48f55133fca7c0f38ad65b6a576ba2b | gulpfile.js | gulpfile.js | /* === PLUGINS === */
const gulp = require('gulp'),
rimraf = require('gulp-rimraf'),
webpack = require('webpack-stream'),
sequence = require('run-sequence');
/* === CONFIG === */
const config = {
src: {
js: 'src/main/js/**/*',
},
target: 'dist/',
cfg: {
webpack: './webpack.c... | /* === PLUGINS === */
const gulp = require('gulp'),
rimraf = require('gulp-rimraf'),
webpack = require('webpack-stream'),
sequence = require('run-sequence');
/* === CONFIG === */
const config = {
src: 'src/main/**/*',
target: 'dist/',
cfg: {
webpack: './webpack.config.js',
jshin... | Fix Gulp config due to latest evolutions | Fix Gulp config due to latest evolutions
| JavaScript | unknown | cyChop/beverages-js,cyChop/beverages-js,cyChop/teas-js,cyChop/beverages-js,cyChop/teas-js | javascript | ## Code Before:
/* === PLUGINS === */
const gulp = require('gulp'),
rimraf = require('gulp-rimraf'),
webpack = require('webpack-stream'),
sequence = require('run-sequence');
/* === CONFIG === */
const config = {
src: {
js: 'src/main/js/**/*',
},
target: 'dist/',
cfg: {
webpa... | /* === PLUGINS === */
const gulp = require('gulp'),
rimraf = require('gulp-rimraf'),
webpack = require('webpack-stream'),
sequence = require('run-sequence');
/* === CONFIG === */
const config = {
- src: {
- js: 'src/main/js/**/*',
? ----- ---
+ src: 'src/mai... | 8 | 0.205128 | 3 | 5 |
3532a955c1e08114b1937550999c53a7a5da676f | src/Milax/Mconsole/Providers/ViewComposersServiceProvider.php | src/Milax/Mconsole/Providers/ViewComposersServiceProvider.php | <?php
namespace Milax\Mconsole\Providers;
use Illuminate\Support\ServiceProvider;
class ViewComposersServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the service... | <?php
namespace Milax\Mconsole\Providers;
use Illuminate\Support\ServiceProvider;
class ViewComposersServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the service... | Add uploads form laguage composer | Add uploads form laguage composer
| PHP | mit | misterpaladin/mconsole,misterpaladin/mconsole,misterpaladin/mconsole | php | ## Code Before:
<?php
namespace Milax\Mconsole\Providers;
use Illuminate\Support\ServiceProvider;
class ViewComposersServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
//
}
/**
* Regi... | <?php
namespace Milax\Mconsole\Providers;
use Illuminate\Support\ServiceProvider;
class ViewComposersServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
//
}
... | 2 | 0.057143 | 1 | 1 |
6c5822c7c29026708f1d33df125e1e45c6080a72 | package.json | package.json | {
"name": "nscale-client",
"description": "nearForm's nscale command line client",
"keywords": [
"nearForm",
"nscale",
"deployer",
"command",
"line",
"client"
],
"version": "0.4.0",
"license": "Artistic License 2.0",
"author": "Peter Elger (http://nearform.com/)",
"contributors":... | {
"name": "nscale-client",
"description": "nearForm's nscale command line client",
"keywords": [
"nearForm",
"nscale",
"deployer",
"command",
"line",
"client"
],
"version": "0.4.0",
"license": "Artistic License 2.0",
"author": "Peter Elger (http://nearform.com/)",
"contributors":... | Use `error-handling` branch of `nscale-sdk` | Use `error-handling` branch of `nscale-sdk`
| JSON | artistic-2.0 | nearform/nscale-client,nearform/nscale-client | json | ## Code Before:
{
"name": "nscale-client",
"description": "nearForm's nscale command line client",
"keywords": [
"nearForm",
"nscale",
"deployer",
"command",
"line",
"client"
],
"version": "0.4.0",
"license": "Artistic License 2.0",
"author": "Peter Elger (http://nearform.com/)",
... | {
"name": "nscale-client",
"description": "nearForm's nscale command line client",
"keywords": [
"nearForm",
"nscale",
"deployer",
"command",
"line",
"client"
],
"version": "0.4.0",
"license": "Artistic License 2.0",
"author": "Peter Elger (http://nearfo... | 2 | 0.047619 | 1 | 1 |
f0523d5c5c0ce7401d57fdf3b5f27c18393a46ce | templates/index.html | templates/index.html | {% extends "base.html" %}
{% block body %}
<div class="pure-g">
{# <div class="pure-u-1-3"></div> #}
<div class="pure-u-1-4"></div>
<div class="pure-u-1-4">
<p><img class="pure-img" src="hexagram/110011.png"></p>
<p>Call <pre>/hexagrams/nnnnnn.png</pre>Where <em>n</em> is 1 (a solid bar), or... | {% extends "base.html" %}
{% block body %}
<div class="pure-g">
{# <div class="pure-u-1-3"></div> #}
<div class="pure-u-1-4"></div>
<div class="pure-u-1-4">
<p><img class="pure-img" src="{{ url_for('hex_out', hexagram='110011') }}"></p>
<p>Call <a href="{{ url_for('hex_out', hexagram='110011... | Index links are dynamic now | Index links are dynamic now
| HTML | mit | urschrei/hexagrams,urschrei/hexagrams | html | ## Code Before:
{% extends "base.html" %}
{% block body %}
<div class="pure-g">
{# <div class="pure-u-1-3"></div> #}
<div class="pure-u-1-4"></div>
<div class="pure-u-1-4">
<p><img class="pure-img" src="hexagram/110011.png"></p>
<p>Call <pre>/hexagrams/nnnnnn.png</pre>Where <em>n</em> is 1 (... | {% extends "base.html" %}
{% block body %}
<div class="pure-g">
{# <div class="pure-u-1-3"></div> #}
<div class="pure-u-1-4"></div>
<div class="pure-u-1-4">
- <p><img class="pure-img" src="hexagram/110011.png"></p>
? ^ ^^^^
+ <p... | 8 | 0.5 | 4 | 4 |
d8f7c70c5d6544fd819e2dc120b8603ec80c1e49 | apps/show/components/related_shows/index.coffee | apps/show/components/related_shows/index.coffee | _ = require 'underscore'
{ Cities, FeaturedCities } = require 'places'
PartnerShows = require '../../../../collections/partner_shows.coffee'
RelatedShowsView = require './view.coffee'
module.exports = (type, show) ->
el = $('.js-related-shows')
city = _.findWhere(Cities, name: show.formatCity())
criteria =
... | _ = require 'underscore'
{ Cities, FeaturedCities } = require 'places'
PartnerShows = require '../../../../collections/partner_shows.coffee'
RelatedShowsView = require './view.coffee'
module.exports = (type, show) ->
el = $('.js-related-shows')
city = _.findWhere(Cities, name: show.formatCity())
criteria =
... | Include past shows in related shows on gallery pages | Include past shows in related shows on gallery pages
| CoffeeScript | mit | izakp/force,kanaabe/force,oxaudo/force,yuki24/force,erikdstock/force,cavvia/force-1,xtina-starr/force,anandaroop/force,dblock/force,joeyAghion/force,yuki24/force,damassi/force,artsy/force-public,cavvia/force-1,yuki24/force,joeyAghion/force,mzikherman/force,mzikherman/force,yuki24/force,kanaabe/force,erikdstock/force,db... | coffeescript | ## Code Before:
_ = require 'underscore'
{ Cities, FeaturedCities } = require 'places'
PartnerShows = require '../../../../collections/partner_shows.coffee'
RelatedShowsView = require './view.coffee'
module.exports = (type, show) ->
el = $('.js-related-shows')
city = _.findWhere(Cities, name: show.formatCity())
... | _ = require 'underscore'
{ Cities, FeaturedCities } = require 'places'
PartnerShows = require '../../../../collections/partner_shows.coffee'
RelatedShowsView = require './view.coffee'
module.exports = (type, show) ->
el = $('.js-related-shows')
city = _.findWhere(Cities, name: show.formatCity... | 1 | 0.017544 | 0 | 1 |
b78164e3ed6ddca895047d5b0e042e7074e192c3 | examples/logging_aspect.rb | examples/logging_aspect.rb | class A
def test input
input.upcase
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class LoggingAspect < Aspector::Base
around /.*/, :except => [:class], :context_arg => true do |context, *args, &block|
class_method = "#{... | class A
def test input
input.upcase
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class LoggingAspect < Aspector::Base
ALL_METHODS = /.*/
around ALL_METHODS, :except => :class, :context_arg => true do |context, *args, &blo... | Make aspect more readable by defining constants for all methods pattern | Make aspect more readable by defining constants for all methods pattern
| Ruby | mit | tmster/aspector,gcao/aspector,tmster/aspector | ruby | ## Code Before:
class A
def test input
input.upcase
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class LoggingAspect < Aspector::Base
around /.*/, :except => [:class], :context_arg => true do |context, *args, &block|
cl... | class A
def test input
input.upcase
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class LoggingAspect < Aspector::Base
+ ALL_METHODS = /.*/
- around /.*/, :except => [:class], :context_arg =... | 3 | 0.090909 | 2 | 1 |
cd9eda24ad40b23344cf3cced5a6f6bc80064c7b | docs/EXERCISE_README_INSERT.md | docs/EXERCISE_README_INSERT.md | * * * *
For installation and learning resources, refer to the
[exercism help page](http://exercism.io/languages/ruby).
For running the tests provided, you will need the Minitest gem. Open a
terminal window and run the following command to install minitest:
gem install minitest
If you would like color output, yo... | * * * *
For installation and learning resources, refer to the
[exercism help page](http://exercism.io/languages/ruby).
For running the tests provided, you will need the Minitest gem. Open a
terminal window and run the following command to install minitest:
gem install minitest
If you would like color output, yo... | Remove instructions for direct test execution. | Remove instructions for direct test execution.
| Markdown | mit | NeimadTL/ruby,exercism/xruby,Insti/exercism-ruby,Insti/exercism-ruby,NeimadTL/ruby,Insti/exercism-ruby,Insti/xruby,Insti/xruby,exercism/xruby,NeimadTL/ruby | markdown | ## Code Before:
* * * *
For installation and learning resources, refer to the
[exercism help page](http://exercism.io/languages/ruby).
For running the tests provided, you will need the Minitest gem. Open a
terminal window and run the following command to install minitest:
gem install minitest
If you would like ... | * * * *
For installation and learning resources, refer to the
[exercism help page](http://exercism.io/languages/ruby).
For running the tests provided, you will need the Minitest gem. Open a
terminal window and run the following command to install minitest:
gem install minitest
If you would... | 5 | 0.172414 | 0 | 5 |
36aa49935a2f936eeccf603d970f9135ba50ae6e | ivy.xml | ivy.xml | <?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
<info organisation="net.filebot" module="java-installer" />
<dependencies>
<dependency org="org.apache.ant" name="ant" rev="latest.release" />
<dependency org="org.codehaus.groovy" name="groovy-ant" rev="latest.release" />
<dependency org="net.fi... | <?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
<info organisation="net.filebot" module="java-installer" />
<dependencies>
<dependency org="org.apache.ant" name="ant" rev="1.10.3" />
<dependency org="org.codehaus.groovy" name="groovy-ant" rev="2.4.15" />
<dependency org="net.filebot" name="ant... | Use fixed version numbers to improve build time | Use fixed version numbers to improve build time
| XML | apache-2.0 | rednoah/java-installer | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
<info organisation="net.filebot" module="java-installer" />
<dependencies>
<dependency org="org.apache.ant" name="ant" rev="latest.release" />
<dependency org="org.codehaus.groovy" name="groovy-ant" rev="latest.release" />
<depend... | <?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
<info organisation="net.filebot" module="java-installer" />
<dependencies>
- <dependency org="org.apache.ant" name="ant" rev="latest.release" />
? ^^^^^^ ^^^^^^^
+ <dependency org="org.apa... | 6 | 0.666667 | 3 | 3 |
011db4c2de258e08e6d547f1dfe89f28f08fa714 | src/edu/stuy/commands/AutonSetting6.java | src/edu/stuy/commands/AutonSetting6.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.stuy.commands;
/**
* Shoots from key at 2 point hoop
* @author admin
*/
import edu.stuy.subsystems.Flywheel;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class AutonSetting6 extends CommandG... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.stuy.commands;
/**
* Shoots from key at 2 point hoop
* @author admin
*/
import edu.stuy.subsystems.Flywheel;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class AutonSetting6 extends CommandG... | Use top hoop for autonsettin6 instead of two-point shot | Use top hoop for autonsettin6 instead of two-point shot
| Java | bsd-3-clause | Team694/joebot | java | ## Code Before:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.stuy.commands;
/**
* Shoots from key at 2 point hoop
* @author admin
*/
import edu.stuy.subsystems.Flywheel;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class AutonSetting6 ... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.stuy.commands;
/**
* Shoots from key at 2 point hoop
* @author admin
*/
import edu.stuy.subsystems.Flywheel;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class Au... | 2 | 0.1 | 1 | 1 |
d8e453ee8f6b6ea67847844a44f67d854b8daa9b | .travis.yml | .travis.yml | language:
- node_js
- python
node_js:
- "10"
- "8"
- "6"
- "node"
- "lts/*"
services: rabbitmq
before_script:
- sudo pip install pre-commit
| language:
- node_js
- python
node_js:
- "10"
- "8"
- "6"
- "node"
- "lts/*"
addons:
apt:
packages:
- rabbitmq-server
services: rabbitmq
before_script:
- sudo pip install pre-commit
| Add rabbitmq-server to apt addons for new ubuntu versions | Add rabbitmq-server to apt addons for new ubuntu versions
| YAML | mit | bakkerthehacker/bramqp | yaml | ## Code Before:
language:
- node_js
- python
node_js:
- "10"
- "8"
- "6"
- "node"
- "lts/*"
services: rabbitmq
before_script:
- sudo pip install pre-commit
## Instruction:
Add rabbitmq-server to apt addons for new ubuntu versions
## Code After:
language:
- node_js
- python
node_js:
- "10"
- "8... | language:
- node_js
- python
node_js:
- "10"
- "8"
- "6"
- "node"
- "lts/*"
+ addons:
+ apt:
+ packages:
+ - rabbitmq-server
services: rabbitmq
before_script:
- sudo pip install pre-commit | 4 | 0.333333 | 4 | 0 |
9a39d3b95887e1dd1acb9722b7d05b3eba7fc3f6 | package.json | package.json | {
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
"test": "yarn build && jest",
"lint": "tslint --project tsconfig.json --type-check",
"build": "tsc",
"build:watch": "tsc --watch"
},
"jest":... | {
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
"android": "node node_modules/react-native/local-cli/cli.js run-android",
"ios": "node node_modules/react-native/local-cli/cli.js run-ios",
"test": ... | Add android and ios npm script for development | Add android and ios npm script for development
| JSON | mit | y0za/trumpet,y0za/trumpet,y0za/trumpet,y0za/trumpet | json | ## Code Before:
{
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
"test": "yarn build && jest",
"lint": "tslint --project tsconfig.json --type-check",
"build": "tsc",
"build:watch": "tsc --watch... | {
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
+ "android": "node node_modules/react-native/local-cli/cli.js run-android",
+ "ios": "node node_modules/react-native/local-cli/cli.js run-io... | 2 | 0.064516 | 2 | 0 |
06701a2fa969f461f476522609e94f065fb97e0e | usr.bin/du/Makefile | usr.bin/du/Makefile |
PROG= du
DPADD= ${LIBM}
LDADD= -lm
.include <bsd.prog.mk>
|
PROG= du
WARNS?= 6
DPADD= ${LIBM}
LDADD= -lm
.include <bsd.prog.mk>
| Mark du(1) as WARNS6 clean. | Mark du(1) as WARNS6 clean.
Tested on: alpha, amd64, i386, ia64, sparc64
| unknown | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | unknown | ## Code Before:
PROG= du
DPADD= ${LIBM}
LDADD= -lm
.include <bsd.prog.mk>
## Instruction:
Mark du(1) as WARNS6 clean.
Tested on: alpha, amd64, i386, ia64, sparc64
## Code After:
PROG= du
WARNS?= 6
DPADD= ${LIBM}
LDADD= -lm
.include <bsd.prog.mk>
|
PROG= du
+ WARNS?= 6
DPADD= ${LIBM}
LDADD= -lm
.include <bsd.prog.mk> | 1 | 0.166667 | 1 | 0 |
7953158641cf348aedb09d663fbdb227adb06ebc | share/spice/xkcd/display/content.handlebars | share/spice/xkcd/display/content.handlebars | <div class="xkcd--container">
<div style="" class="xkcd--information">
<h3 class="zci__caption zci__result">{{title}}</h3>
<h4 class="zci__subheader xkcd--date">{{month}} {{day}}, {{year}}</h4>
<div class="xkcd--buttons">
{{#xkcd_previousNum num}}
<a href="/?q=xkcd+{{num}}">Prev</a>
{{/... | <div class="xkcd--container">
<div style="" class="xkcd--information">
<h3 class="zci__header">{{title}}</h3>
<h4 class="zci__subheader xkcd--date">{{month}} {{day}}, {{year}}</h4>
<div class="xkcd--buttons">
{{#xkcd_previousNum num}}
<a href="/?q=xkcd+{{num}}">Prev</a>
{{/xkcd_previousN... | Change Title to use zci__header CSS class | Change Title to use zci__header CSS class
| Handlebars | apache-2.0 | ppant/zeroclickinfo-spice,rmad17/zeroclickinfo-spice,deserted/zeroclickinfo-spice,stennie/zeroclickinfo-spice,Faiz7412/zeroclickinfo-spice,GrandpaCardigan/zeroclickinfo-spice,Faiz7412/zeroclickinfo-spice,imwally/zeroclickinfo-spice,ColasBroux/zeroclickinfo-spice,Kr1tya3/zeroclickinfo-spice,AcriCAA/zeroclickinfo-spice,s... | handlebars | ## Code Before:
<div class="xkcd--container">
<div style="" class="xkcd--information">
<h3 class="zci__caption zci__result">{{title}}</h3>
<h4 class="zci__subheader xkcd--date">{{month}} {{day}}, {{year}}</h4>
<div class="xkcd--buttons">
{{#xkcd_previousNum num}}
<a href="/?q=xkcd+{{num}}">Pr... | <div class="xkcd--container">
<div style="" class="xkcd--information">
- <h3 class="zci__caption zci__result">{{title}}</h3>
? ^ ^^^^^^^^^^^^ -----
+ <h3 class="zci__header">{{title}}</h3>
? ^^ ^^
<h4 class="zci__subheader xkcd--date">{{month}} {{day}}, {{y... | 2 | 0.095238 | 1 | 1 |
7ac2abeb2b4ccc5ff776ece6f02dd5261f6e7f72 | app/config/environments/production.js | app/config/environments/production.js | module.exports = {
database: process.env.MONGOLAB_URI
, server_port: '80'
} | module.exports = {
database: process.env.MONGOLAB_URI
, server_port: process.env.PORT || 3000;
} | Fix port config for Heroku | Fix port config for Heroku
| JavaScript | apache-2.0 | rrodrigu3z/ospriet_example,rrodrigu3z/ospriet_example | javascript | ## Code Before:
module.exports = {
database: process.env.MONGOLAB_URI
, server_port: '80'
}
## Instruction:
Fix port config for Heroku
## Code After:
module.exports = {
database: process.env.MONGOLAB_URI
, server_port: process.env.PORT || 3000;
} | module.exports = {
database: process.env.MONGOLAB_URI
- , server_port: '80'
+ , server_port: process.env.PORT || 3000;
} | 2 | 0.5 | 1 | 1 |
07aaf9a942082e6b105755bd9e386167b89e1d88 | static/view.js | static/view.js | if (document.body.className.indexOf("no-contains-view")>-1) {
console.log("No view detected");
} else {
var cvbtn = document.querySelector(".view-buttons .cards");
var lvbtn = document.querySelector(".view-buttons .list");
var vlst = document.querySelector(".view");
var listView = function () {
... | if (document.body.className.indexOf("no-contains-view")>-1) {
console.log("No view detected");
} else {
var cvbtn = document.querySelector(".view-buttons .cards");
var lvbtn = document.querySelector(".view-buttons .list");
var vlst = document.querySelector(".view");
var listView = function () {
... | Fix bug in web UI | Fix bug in web UI
| JavaScript | mit | dontpanicgr/BookBrowser,geek1011/BookBrowser,geek1011/BookBrowser,dontpanicgr/BookBrowser,dontpanicgr/BookBrowser,dontpanicgr/BookBrowser,geek1011/BookBrowser | javascript | ## Code Before:
if (document.body.className.indexOf("no-contains-view")>-1) {
console.log("No view detected");
} else {
var cvbtn = document.querySelector(".view-buttons .cards");
var lvbtn = document.querySelector(".view-buttons .list");
var vlst = document.querySelector(".view");
var listView = f... | if (document.body.className.indexOf("no-contains-view")>-1) {
console.log("No view detected");
} else {
var cvbtn = document.querySelector(".view-buttons .cards");
var lvbtn = document.querySelector(".view-buttons .list");
var vlst = document.querySelector(".view");
var listView = f... | 2 | 0.044444 | 1 | 1 |
f3c4eb0a94502c072efec4acbe80c89416586aba | db/migrate/041_index_requests_with_solr.rb | db/migrate/041_index_requests_with_solr.rb | class IndexRequestsWithSolr < ActiveRecord::Migration
def self.up
add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false
end
def self.down
remove_column :info_requests, :solr_up_to_date
end
end
| class IndexRequestsWithSolr < ActiveRecord::Migration
def self.up
add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false
add_index :info_requests, :solr_up_to_date
end
def self.down
remove_index :info_requests, :solr_up_to_date
remove_column... | Index the solr freshness boolean | Index the solr freshness boolean
| Ruby | agpl-3.0 | nzherald/alaveteli,petterreinholdtsen/alaveteli,nzherald/alaveteli,codeforcroatia/alaveteli,nzherald/alaveteli,datauy/alaveteli,andreicristianpetcu/alaveteli_old,TEDICpy/QueremoSaber,4bic/alaveteli,hasadna/alaveteli,4bic/alaveteli,nzherald/alaveteli,10layer/alaveteli,andreicristianpetcu/alaveteli,10layer/alaveteli,hasa... | ruby | ## Code Before:
class IndexRequestsWithSolr < ActiveRecord::Migration
def self.up
add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false
end
def self.down
remove_column :info_requests, :solr_up_to_date
end
end
## Instruction:
Index the solr freshness b... | class IndexRequestsWithSolr < ActiveRecord::Migration
def self.up
add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false
+ add_index :info_requests, :solr_up_to_date
end
def self.down
+ remove_index :info_requests, :solr_up_to_date
... | 2 | 0.222222 | 2 | 0 |
01bd62a56a7c9cda77cccfb1d94dfd6c786bf1d5 | models/user-model.js | models/user-model.js | 'use strict';
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var jwt = require('jwt-simple');
var moment = require('moment');
/**
* Define basic schema for a new user: for now, email, password, and domain to track
*/
var UserSchema = mongoose.Schema({
id: String,
sites: Array,
basic:... | 'use strict';
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var jwt = require('jwt-simple');
var moment = require('moment');
/**
* Define basic schema for a new user: for now, email, password, and domain to track
*/
var UserSchema = mongoose.Schema({
id: String,
sites: Array,
jwt: S... | Add JWT as an attribute, so we can return it with the db response | Add JWT as an attribute, so we can return it with the db response
| JavaScript | mit | Sextant-WDB/sextant-ng | javascript | ## Code Before:
'use strict';
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var jwt = require('jwt-simple');
var moment = require('moment');
/**
* Define basic schema for a new user: for now, email, password, and domain to track
*/
var UserSchema = mongoose.Schema({
id: String,
sites... | 'use strict';
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var jwt = require('jwt-simple');
var moment = require('moment');
/**
* Define basic schema for a new user: for now, email, password, and domain to track
*/
var UserSchema = mongoose.Schema({
id: Stri... | 1 | 0.018519 | 1 | 0 |
2e449712aba43dc0f0fb1184f24557ce07f12b3e | tests/CMakeLists.txt | tests/CMakeLists.txt | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/..
)
set(model_view_SRCS
model-view.cpp
roles-proxy-model.cpp
)
kde4_add_ui_files(model_view_SRCS model-view.ui)
###
kde4_add_executable(ktp_... | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/..
)
set(model_view_SRCS
model-view.cpp
roles-proxy-model.cpp
)
kde4_add_ui_files(model_view_SRCS model-view.ui)
###
kde4_add_executable(ktp_... | Add if kpeople guard around building kpeople test | Add if kpeople guard around building kpeople test
Reviewed-by: David Edmundson
| Text | lgpl-2.1 | KDE/ktp-common-internals,KDE/ktp-common-internals,KDE/ktp-common-internals | text | ## Code Before:
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/..
)
set(model_view_SRCS
model-view.cpp
roles-proxy-model.cpp
)
kde4_add_ui_files(model_view_SRCS model-view.ui)
###
kde4_add... | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/..
)
set(model_view_SRCS
model-view.cpp
roles-proxy-model.cpp
)
kde4_add_ui_files(model_view_SRCS model-view.ui)
... | 7 | 0.148936 | 7 | 0 |
b995eb1092996c85e67a5b43b421d6cf62dfaaa9 | inonemonth/templates/challenge/detail/detail_base.html | inonemonth/templates/challenge/detail/detail_base.html | {% extends "challenge/challenge_base.html" %}
{% load staticfiles %}
{% load markdown_deux_tags %}
{% load crispy_forms_tags %}
{% block left-column %}
{% block left-column-top %}
<h2><span class="text-warning">In one month</span> I want to attain the following:</h1>
<div class="panel panel-default">
<div c... | {% extends "challenge/challenge_base.html" %}
{% load staticfiles %}
{% load markdown_deux_tags %}
{% load crispy_forms_tags %}
{% block left-column %}
{% block left-column-top %}
<h2><span class="text-warning">In one month</span> I want to attain the following:</h1>
<div class="panel panel-default">
<div c... | Implement git comparison link in detail pages | Implement git comparison link in detail pages
| HTML | mit | robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth | html | ## Code Before:
{% extends "challenge/challenge_base.html" %}
{% load staticfiles %}
{% load markdown_deux_tags %}
{% load crispy_forms_tags %}
{% block left-column %}
{% block left-column-top %}
<h2><span class="text-warning">In one month</span> I want to attain the following:</h1>
<div class="panel panel-defa... | {% extends "challenge/challenge_base.html" %}
{% load staticfiles %}
{% load markdown_deux_tags %}
{% load crispy_forms_tags %}
{% block left-column %}
{% block left-column-top %}
<h2><span class="text-warning">In one month</span> I want to attain the following:</h1>
<div class="panel panel-... | 13 | 0.541667 | 12 | 1 |
b3f8b98b015a8dadb1eae8e7d646b558b0b45eae | salmon/extract-salmon_quant.sh | salmon/extract-salmon_quant.sh | for SF in $(ls */quant.sf)
do
OUT=${SF/\/quant.sf/}".sf"
echo $SF $OUT
cp $SF $OUT
done
| for SF in $(ls */quant.sf)
do
SF_OUT=${SF/\/quant.sf/}".sf"
echo $SF $SF_OUT
cp $SF $OUT
LOG=${SF/\/quant.sf/}"/logs/salmon_quant.log"
LOG_OUT=${SF/\/quant.sf/}".log"
echo $LOG $LOG_OUT
cp $LOG $LOG_OUT
done
| Copy the log file from salmon run. | Copy the log file from salmon run.
| Shell | apache-2.0 | taejoonlab/NuevoTx,marcottelab/NuevoTx,marcottelab/NuevoTx,taejoonlab/NuevoTx | shell | ## Code Before:
for SF in $(ls */quant.sf)
do
OUT=${SF/\/quant.sf/}".sf"
echo $SF $OUT
cp $SF $OUT
done
## Instruction:
Copy the log file from salmon run.
## Code After:
for SF in $(ls */quant.sf)
do
SF_OUT=${SF/\/quant.sf/}".sf"
echo $SF $SF_OUT
cp $SF $OUT
LOG=${SF/\/quant.sf/}"/logs/salmon_quant.log... | for SF in $(ls */quant.sf)
do
- OUT=${SF/\/quant.sf/}".sf"
+ SF_OUT=${SF/\/quant.sf/}".sf"
? +++
- echo $SF $OUT
+ echo $SF $SF_OUT
? +++
cp $SF $OUT
+
+ LOG=${SF/\/quant.sf/}"/logs/salmon_quant.log"
+ LOG_OUT=${SF/\/quant.sf/}".log"
+ echo $LOG $LOG_OUT
+ cp $LOG $LOG_OUT
don... | 10 | 1.666667 | 8 | 2 |
52ed7a0eb7f036d4971cc725d179460d95aae03f | src/components/PatchBay/PatchBay.scss | src/components/PatchBay/PatchBay.scss | $bay-width: 890px;
$row-padding: 5px;
$input-width: ($bay-width - ($row-padding * 2)) / 24;
.patch-bay {
width: $bay-width;
border: 5px solid #ccc;
border-radius: 10px;
background-color: #fff;
padding: $row-padding 0;
}
.row {
padding: $row-padding;
display: flex;
}
.label {
width: $input-width;
te... | $row-padding: 5px;
$input-width: 40px;
.patch-bay {
width: auto;
border: 5px solid #ccc;
border-radius: 10px;
background-color: #fff;
padding: $row-padding 0;
}
.row {
padding: $row-padding;
display: flex;
}
.label {
width: $input-width;
text-align: center;
}
.number {
background-color: #43c9ff;... | Update patchbay css to not stipulate a width of patchbay | Update patchbay css to not stipulate a width of patchbay
| SCSS | mit | dbalatero/patchbay,dbalatero/patchbay | scss | ## Code Before:
$bay-width: 890px;
$row-padding: 5px;
$input-width: ($bay-width - ($row-padding * 2)) / 24;
.patch-bay {
width: $bay-width;
border: 5px solid #ccc;
border-radius: 10px;
background-color: #fff;
padding: $row-padding 0;
}
.row {
padding: $row-padding;
display: flex;
}
.label {
width: $i... | - $bay-width: 890px;
$row-padding: 5px;
- $input-width: ($bay-width - ($row-padding * 2)) / 24;
+ $input-width: 40px;
.patch-bay {
- width: $bay-width;
+ width: auto;
border: 5px solid #ccc;
border-radius: 10px;
background-color: #fff;
padding: $row-padding 0;
}
.row {
padding: $ro... | 5 | 0.108696 | 2 | 3 |
f53f09cea517e2ccce61afb95cc1b0288777e4b2 | blog/content/README.md | blog/content/README.md |
This folder contains the content for the _"Writing an OS in Rust"_ blog.
## License
This folder is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, available in [LICENSE-CC-BY-NC](LICENSE-CC-BY-NC) or under <http://creativecommons.org/licenses/by-nc/4.0/>.
All _code examples_ b... |
This folder contains the content for the _"Writing an OS in Rust"_ blog.
## License
This folder is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, available in [LICENSE-CC-BY-NC](LICENSE-CC-BY-NC) or under <http://creativecommons.org/licenses/by-nc/4.0/>.
All _code examples_ b... | Clarify licensing of contributions to blog/content | Clarify licensing of contributions to blog/content
| Markdown | apache-2.0 | phil-opp/blogOS,phil-opp/blog_os,phil-opp/blog_os,phil-opp/blog_os,phil-opp/blogOS,phil-opp/blog_os | markdown | ## Code Before:
This folder contains the content for the _"Writing an OS in Rust"_ blog.
## License
This folder is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, available in [LICENSE-CC-BY-NC](LICENSE-CC-BY-NC) or under <http://creativecommons.org/licenses/by-nc/4.0/>.
All _... |
This folder contains the content for the _"Writing an OS in Rust"_ blog.
## License
This folder is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, available in [LICENSE-CC-BY-NC](LICENSE-CC-BY-NC) or under <http://creativecommons.org/licenses/by-nc/4.0/>.
All _... | 4 | 0.285714 | 4 | 0 |
fed2a44f04b78914b39a630e169af500f9b35474 | examples/http/centos6-ks.cfg | examples/http/centos6-ks.cfg | install
cdrom
lang en_US.UTF-8
keyboard us
unsupported_hardware
network --bootproto=dhcp
rootpw --iscrypted $1$DIlig7gp$FuhFdeHj.R1VrEzZsI4uo0
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --permissive
timezone UTC
bootloader --location=mbr
text
skipx
zerombr
clearpart --all --initlabel
autopa... | install
cdrom
lang en_US.UTF-8
keyboard us
unsupported_hardware
network --bootproto=dhcp
rootpw --iscrypted $1$DIlig7gp$FuhFdeHj.R1VrEzZsI4uo0
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --permissive
timezone UTC
bootloader --location=mbr
text
skipx
zerombr
clearpart --all --initlabel
autopa... | Update CentOS to reboot instead of poweroff | Update CentOS to reboot instead of poweroff
| INI | mpl-2.0 | dongyuzheng/packer-builder-xenserver,june07/packer-builder-xenserver,xenserverarmy/packer,simonfuhrer/packer-builder-xenserver-1,fr34k8/packer-builder-xenserver,conceptboard/packer,conceptboard/packer,xenserverarmy/packer,june07/packer-builder-xenserver,makunterry/packer-builder-xenserver,rdobson/packer-builder-xenserv... | ini | ## Code Before:
install
cdrom
lang en_US.UTF-8
keyboard us
unsupported_hardware
network --bootproto=dhcp
rootpw --iscrypted $1$DIlig7gp$FuhFdeHj.R1VrEzZsI4uo0
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --permissive
timezone UTC
bootloader --location=mbr
text
skipx
zerombr
clearpart --all --... | install
cdrom
lang en_US.UTF-8
keyboard us
unsupported_hardware
network --bootproto=dhcp
rootpw --iscrypted $1$DIlig7gp$FuhFdeHj.R1VrEzZsI4uo0
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --permissive
timezone UTC
bootloader --location=mbr
text
skipx
zerombr
cl... | 3 | 0.061224 | 1 | 2 |
241441143da746fb9a23150cb1d0a22c61153402 | README.rst | README.rst | Overview
========
Based on the `Neo <http://packages.python.org/neo/>`_ framework, spykeutils
is a Python library for analyzing and plotting data from neurophysiological
recordings. It can be used by itself or in conjunction with Spyke Viewer,
a multi-platform GUI application for navigating electrophysiological datase... | Overview
========
.. image:: https://secure.travis-ci.org/rproepp/spykeutils.png?branch=develop
Based on the `Neo <http://packages.python.org/neo/>`_ framework, spykeutils
is a Python library for analyzing and plotting data from neurophysiological
recordings. It can be used by itself or in conjunction with Spyke View... | Add Travis CI status image | Add Travis CI status image
| reStructuredText | bsd-3-clause | rproepp/spykeutils | restructuredtext | ## Code Before:
Overview
========
Based on the `Neo <http://packages.python.org/neo/>`_ framework, spykeutils
is a Python library for analyzing and plotting data from neurophysiological
recordings. It can be used by itself or in conjunction with Spyke Viewer,
a multi-platform GUI application for navigating electrophys... | Overview
========
+
+ .. image:: https://secure.travis-ci.org/rproepp/spykeutils.png?branch=develop
Based on the `Neo <http://packages.python.org/neo/>`_ framework, spykeutils
is a Python library for analyzing and plotting data from neurophysiological
recordings. It can be used by itself or in conjunction... | 2 | 0.095238 | 2 | 0 |
cf21441576c215d9d93a0bfa086b6c57d748ec57 | app.json | app.json | {
"name": "Baby Buddy",
"description": "Helps caregivers track baby's habits to learn about and predict needs without (as much) guess work.",
"keywords": [
"baby",
"baby buddy",
"dashboard",
"django",
"infant",
"newborn",
"python",
"self-host"
... | {
"name": "Baby Buddy",
"description": "Helps caregivers track baby's habits to learn about and predict needs without (as much) guess work.",
"keywords": [
"baby",
"baby buddy",
"dashboard",
"django",
"infant",
"newborn",
"python",
"self-host"
... | Use Heroku generator for DISABLE_COLLECTSTATIC | Use Heroku generator for DISABLE_COLLECTSTATIC
Heroku's attempts to run collectstatic automatically but Baby Buddy never
wants that. Instead of offering a user-editable environment variable this
change uses Heroku's secret generator to set the variable so the user cannot
change it during deploy.
| JSON | bsd-2-clause | cdubz/babybuddy,cdubz/babybuddy,cdubz/babybuddy | json | ## Code Before:
{
"name": "Baby Buddy",
"description": "Helps caregivers track baby's habits to learn about and predict needs without (as much) guess work.",
"keywords": [
"baby",
"baby buddy",
"dashboard",
"django",
"infant",
"newborn",
"python",
... | {
"name": "Baby Buddy",
"description": "Helps caregivers track baby's habits to learn about and predict needs without (as much) guess work.",
"keywords": [
"baby",
"baby buddy",
"dashboard",
"django",
"infant",
"newborn",
"python"... | 14 | 0.333333 | 5 | 9 |
459a52c1b4312362f276a561f1c0e1d7cb716777 | README.md | README.md | beertrade
=========
an app used by the /r/beertrade reddit community to keep track of beer trades and the corresponding reputation and flair for users.
Contributing
------------
1. Fork this repository
2. [Contact the moderators](https://www.reddit.com/message/compose?to=%2Fr%2Fbeertrade&subject=&message=) to... | beertrade
=========
an app used by the /r/beertrade reddit community to keep track of beer trades and the corresponding reputation and flair for users.
Contributing
------------
1. Fork this repository
2. [Contact the moderators](https://www.reddit.com/message/compose?to=%2Fr%2Fbeertrade&subject=&message=) to... | Update to proper code formatting | Update to proper code formatting
| Markdown | mit | patrickomatic/beertrade,patrickomatic/beertrade,patrickomatic/beertrade | markdown | ## Code Before:
beertrade
=========
an app used by the /r/beertrade reddit community to keep track of beer trades and the corresponding reputation and flair for users.
Contributing
------------
1. Fork this repository
2. [Contact the moderators](https://www.reddit.com/message/compose?to=%2Fr%2Fbeertrade&subje... | beertrade
=========
an app used by the /r/beertrade reddit community to keep track of beer trades and the corresponding reputation and flair for users.
Contributing
------------
1. Fork this repository
2. [Contact the moderators](https://www.reddit.com/message/compose?to=%2Fr%2Fbeertrade&s... | 6 | 0.193548 | 2 | 4 |
e2e2b7d767e3f8ab9ae3aeb40a75e992c1631edc | test/data/sql/infrastructure/config.js | test/data/sql/infrastructure/config.js | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// we can expand this to provide different configurations for different environments
var configura... | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// we can expand this to provide different configurations for different environments
var configura... | Fix for unit test issue | Fix for unit test issue
| JavaScript | mit | christopheranderson/azure-mobile-apps-node-old | javascript | ## Code Before:
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// we can expand this to provide different configurations for different environmen... | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// we can expand this to provide different configurations for different environments
v... | 2 | 0.117647 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.