commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
163d319702ecab6f7fbea4a5275bc590df86f4e8 | README.md | README.md | This project purpose for Udacity nanodegree Assignment
Important!!!
This app need you to create credential in theMovieDB
Please add the api key in MovieDBService.java
on variable API_KEY after the "="
| This project purpose for Udacity nanodegree Assignment
Important!!!
This app need you to create credential in theMovieDB
Please add the api key in Gradle Properties
on variable API_KEY after the "="
| Change API key method for more safety | Change API key method for more safety
| Markdown | apache-2.0 | justdarwin/PopularMovies | markdown | ## Code Before:
This project purpose for Udacity nanodegree Assignment
Important!!!
This app need you to create credential in theMovieDB
Please add the api key in MovieDBService.java
on variable API_KEY after the "="
## Instruction:
Change API key method for more safety
## Code After:
This project purpose for Udac... |
0d4c31dd6d2250cbff73e812ab6416d04e1e465d | .travis.yml | .travis.yml | language: go
go:
- 1.8
- 1.9
- 1.x
- master
install: go get -t ./...
matrix:
fast_finish: true
| language: go
go:
- 1.8
- 1.9
- 1.x
- master
install: go get -t ./...
matrix:
allow_failures:
- go: master
fast_finish: true
| Allow test failures for golang HEAD | Allow test failures for golang HEAD
| YAML | apache-2.0 | deepmind/objecthash-proto,deepmind/objecthash-proto | yaml | ## Code Before:
language: go
go:
- 1.8
- 1.9
- 1.x
- master
install: go get -t ./...
matrix:
fast_finish: true
## Instruction:
Allow test failures for golang HEAD
## Code After:
language: go
go:
- 1.8
- 1.9
- 1.x
- master
install: go get -t ./...
matrix:
allow_failures:
- go: master
fa... |
93f30d314725f13c87383c098cb5032eb5945517 | 1-aug-performance.md | 1-aug-performance.md | ---
title: Performant websites
intro: Making websites load quickly is one of the most critical design constraints. Performance should be considered at every stage of website building.
reviews:
before-after: Before & after pseudo elements
image-formats: Speed of images
performance: Performance
browser-developer... | ---
title: Performant websites
intro: Making websites load quickly is one of the most critical design constraints. Performance should be considered at every stage of website building.
reviews:
before-after: Before & after pseudo elements
image-formats: Speed of images
performance: Performance
browser-developer... | Add CSS Zen Garden assignment details. | Add CSS Zen Garden assignment details.
| Markdown | mit | acgd-summer-reviews/email-newsletters,acgd-summer-reviews/email-newsletters | markdown | ## Code Before:
---
title: Performant websites
intro: Making websites load quickly is one of the most critical design constraints. Performance should be considered at every stage of website building.
reviews:
before-after: Before & after pseudo elements
image-formats: Speed of images
performance: Performance
b... |
3ccbe5b4c89b2365614ebfd26e255166aceccf30 | .travis.yml | .travis.yml | language: java
sudo: false
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
jdk: oraclejdk8
- os: osx
osx_image: xcode8.3
# The 'build' task runs most things, including test, check, & static analysis
install: true
script: ./gradlew -u -i -q -S build jacocoAggregateReport cove... | language: java
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
jdk: oraclejdk8
sudo: required
- os: osx
osx_image: xcode8.3
# The 'build' task runs most things, including test, check, & static analysis
install: true
script: ./gradlew -u -i -q -S build jacocoAggregateRep... | Switch Linux build to sudo required image, which has more memory | UP-4861: Switch Linux build to sudo required image, which has more memory
| YAML | apache-2.0 | phillips1021/uPortal,mgillian/uPortal,ChristianMurphy/uPortal,groybal/uPortal,phillips1021/uPortal,bjagg/uPortal,groybal/uPortal,Jasig/uPortal,stalele/uPortal,ChristianMurphy/uPortal,GIP-RECIA/esco-portail,phillips1021/uPortal,bjagg/uPortal,GIP-RECIA/esup-uportal,cousquer/uPortal,jonathanmtran/uPortal,groybal/uPortal,s... | yaml | ## Code Before:
language: java
sudo: false
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
jdk: oraclejdk8
- os: osx
osx_image: xcode8.3
# The 'build' task runs most things, including test, check, & static analysis
install: true
script: ./gradlew -u -i -q -S build jacocoAggr... |
2d97b9c4cd373d5dc2326db32c8aee6e20ed6c31 | readme.md | readme.md |
It's a small exstension for [mongodb package](https://github.com/christkv/node-mongodb-native).
```javascript
var easymongo = require('easymongo');
var mongo = new easymongo({db: 'test'});
mongo.find('users', {name: 'Alexey'}, function(results) {
console.log(results); // false if not found
});
mongo.save('users'... |
It's a small exstension for [Mongo DB Native NodeJS Driver](https://github.com/mongodb/node-mongodb-native).
```javascript
var easymongo = require('easymongo');
var mongo = new easymongo({db: 'test'});
mongo.find('users', {name: 'Alexey'}, function(results) {
console.log(results); // false if not found
});
mongo... | Update mongodb native driver link | Update mongodb native driver link
| Markdown | mit | meritt/easymongo | markdown | ## Code Before:
It's a small exstension for [mongodb package](https://github.com/christkv/node-mongodb-native).
```javascript
var easymongo = require('easymongo');
var mongo = new easymongo({db: 'test'});
mongo.find('users', {name: 'Alexey'}, function(results) {
console.log(results); // false if not found
});
mo... |
ca1741847d164c6607fba166c1cb33f4bc88d920 | test/detect/javascript/default.txt | test/detect/javascript/default.txt | function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
c... | function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
c... | Add JSX to JavaScript visual tests | Add JSX to JavaScript visual tests
| Text | bsd-3-clause | carlokok/highlight.js,highlightjs/highlight.js,isagalaev/highlight.js,MakeNowJust/highlight.js,highlightjs/highlight.js,isagalaev/highlight.js,highlightjs/highlight.js,carlokok/highlight.js,MakeNowJust/highlight.js,MakeNowJust/highlight.js,carlokok/highlight.js,carlokok/highlight.js,palmin/highlight.js,highlightjs/high... | text | ## Code Before:
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === un... |
69a312575aa412f3df777bde80cf680bcf897151 | CONTRIBUTING.md | CONTRIBUTING.md |
Contributions are always welcome, no matter how large or small.
## Setup
```sh
$ git clone https://github.com/gawkermedia/traverse-dom.git
$ cd traverse-dom
$ npm install # Using yarn over npm is recommended.
```
## Building
```sh
$ npm run build
```
## Testing
```sh
$ npm run test:dev
```
```sh
$ npm run lint
... |
Contributions are always welcome, no matter how large or small.
## Setup
```sh
$ git clone https://github.com/gawkermedia/traverse-dom.git
$ cd traverse-dom
$ npm install # Using yarn over npm is recommended.
```
## Building
```sh
$ npm run build
```
## Testing
```sh
$ npm run test:dev
```
```sh
$ npm run lint
... | Remove obsolete command from the docs | Remove obsolete command from the docs
| Markdown | mit | gawkermedia/traverse-dom,gawkermedia/traverse-dom | markdown | ## Code Before:
Contributions are always welcome, no matter how large or small.
## Setup
```sh
$ git clone https://github.com/gawkermedia/traverse-dom.git
$ cd traverse-dom
$ npm install # Using yarn over npm is recommended.
```
## Building
```sh
$ npm run build
```
## Testing
```sh
$ npm run test:dev
```
```sh... |
f5b6c9013f776a8306d36710269736906d09ff25 | src/test/e2e/support/TestEndpointsHelpers.js | src/test/e2e/support/TestEndpointsHelpers.js | var request = require('request')
var TestEndpointsHelper = function() {
var TestServerBaseURL = 'http://localhost:8081'
function resetTestDB(done) {
request.post(TestServerBaseURL + '/test/resetTestDB', function() { done() })
}
return {
resetTestDB: resetTestDB
}
}
module.exports... | var request = require('request')
var TestEndpointsHelper = function() {
function resetTestDB(done) {
request.post(browser.baseUrl + '/test/resetTestDB', done)
}
return {
resetTestDB: resetTestDB
}
}
module.exports = new TestEndpointsHelper() | Use baseUrl from protractor config | Use baseUrl from protractor config
- Remove duplicate definition of test
base url in e2e tests by using the one
defined in the protractor config
| JavaScript | mit | Jgreub/treeline,Jgreub/treeline,Jgreub/treeline,Jgreub/treeline | javascript | ## Code Before:
var request = require('request')
var TestEndpointsHelper = function() {
var TestServerBaseURL = 'http://localhost:8081'
function resetTestDB(done) {
request.post(TestServerBaseURL + '/test/resetTestDB', function() { done() })
}
return {
resetTestDB: resetTestDB
}
}... |
2d698b1df6da2d5a0b3697891744d3c05e99cb95 | sympy/core/tests/test_compatibility.py | sympy/core/tests/test_compatibility.py | from sympy.core.compatibility import default_sort_key, as_int, ordered
from sympy.core.singleton import S
from sympy.utilities.pytest import raises
from sympy.abc import x
def test_default_sort_key():
func = lambda x: x
assert sorted([func, x, func], key=default_sort_key) == [func, func, x]
def test_as_int... | from sympy.core.compatibility import default_sort_key, as_int, ordered, iterable
from sympy.core.singleton import S
from sympy.utilities.pytest import raises
from sympy.abc import x
def test_default_sort_key():
func = lambda x: x
assert sorted([func, x, func], key=default_sort_key) == [func, func, x]
def t... | Test some basic properties of iterable() | Test some basic properties of iterable()
| Python | bsd-3-clause | Gadal/sympy,jerli/sympy,souravsingh/sympy,Curious72/sympy,wanglongqi/sympy,chaffra/sympy,atsao72/sympy,sahilshekhawat/sympy,moble/sympy,skidzo/sympy,madan96/sympy,atreyv/sympy,lindsayad/sympy,skidzo/sympy,asm666/sympy,beni55/sympy,asm666/sympy,oliverlee/sympy,saurabhjn76/sympy,grevutiu-gabriel/sympy,drufat/sympy,postva... | python | ## Code Before:
from sympy.core.compatibility import default_sort_key, as_int, ordered
from sympy.core.singleton import S
from sympy.utilities.pytest import raises
from sympy.abc import x
def test_default_sort_key():
func = lambda x: x
assert sorted([func, x, func], key=default_sort_key) == [func, func, x]
... |
bb1829f7b6f45c9d8411cce3159cb4008379bb16 | client/app/bundles/course/lesson_plan/components/LessonPlanGroup.jsx | client/app/bundles/course/lesson_plan/components/LessonPlanGroup.jsx | import React, { PropTypes } from 'react';
import Immutable from 'immutable';
import { Element } from 'react-scroll';
import Paper from 'material-ui/Paper';
import LessonPlanItem from '../components/LessonPlanItem';
import LessonPlanMilestone from '../components/LessonPlanMilestone';
const propTypes = {
milestone: Pr... | import React, { PropTypes } from 'react';
import Immutable from 'immutable';
import { Element } from 'react-scroll';
import Paper from 'material-ui/Paper';
import LessonPlanItem from '../components/LessonPlanItem';
import LessonPlanMilestone from '../components/LessonPlanMilestone';
const LessonPlanGroup = ({ mileston... | Fix lesson plan group items proptype | Fix lesson plan group items proptype
| JSX | mit | Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2 | jsx | ## Code Before:
import React, { PropTypes } from 'react';
import Immutable from 'immutable';
import { Element } from 'react-scroll';
import Paper from 'material-ui/Paper';
import LessonPlanItem from '../components/LessonPlanItem';
import LessonPlanMilestone from '../components/LessonPlanMilestone';
const propTypes = {... |
17242e47b00f68fef4216858203eedbd049c4eba | vendor/gems/beacon_control-kontakt_io_extension/lib/beacon_control/kontakt_io_extension/engine.rb | vendor/gems/beacon_control-kontakt_io_extension/lib/beacon_control/kontakt_io_extension/engine.rb |
module BeaconControl
module KontaktIoExtension
class Engine < Rails::Engine
isolate_namespace BeaconControl::KontaktIoExtension
initializer "kontakt_io_extension", before: :load_config_initializers do |_|
config.paths["db/migrate"].expanded.each do |expanded_path|
Rails.application... |
module BeaconControl
module KontaktIoExtension
class Engine < Rails::Engine
isolate_namespace BeaconControl::KontaktIoExtension
initializer "kontakt_io_extension", before: :load_config_initializers do |_|
config.paths["db/migrate"].expanded.each do |expanded_path|
Rails.application... | Remove precompile kontakt io assets | BOS-FF: Remove precompile kontakt io assets
| Ruby | bsd-3-clause | upnext/BeaconCtrl,maxlio/nearmotion,upnext/BeaconControl,ElanII/BeaconControl-master,ElanII/BeaconControl-master,ElanII/BeaconControl-master,upnext/BeaconCtrl,upnext/BeaconControl,upnext/BeaconCtrl,upnext/BeaconControl,upnext/BeaconCtrl,maxlio/nearmotion,maxlio/nearmotion,ElanII/BeaconControl-master,upnext/BeaconContro... | ruby | ## Code Before:
module BeaconControl
module KontaktIoExtension
class Engine < Rails::Engine
isolate_namespace BeaconControl::KontaktIoExtension
initializer "kontakt_io_extension", before: :load_config_initializers do |_|
config.paths["db/migrate"].expanded.each do |expanded_path|
R... |
b2dfe710baf3ecadef58462ba7285ab04abe2508 | .gitlab-ci.yml | .gitlab-ci.yml | image: node:8.11.3
stages:
- test
- publish
test on nodejs lts 6:
stage: test
image: node:6.14.3
script:
- npm install
- npm test
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
test on nodejs lts 8:
stage: test
image: node:8.11.3
script:
- npm install
- npm test
coverage: '/All f... | image: node:latest
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
stages:
- setup
- test
- publish
npm ci:
stage: setup
script:
- npm ci
code quality:
stage: test
script:
- npm run lint
npm outdated:
stage: test
script:
- npm outdated
allow_failure: true
security ... | Enable caching and add quality and security jobs | Enable caching and add quality and security jobs | YAML | mit | demsking/image-downloader | yaml | ## Code Before:
image: node:8.11.3
stages:
- test
- publish
test on nodejs lts 6:
stage: test
image: node:6.14.3
script:
- npm install
- npm test
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
test on nodejs lts 8:
stage: test
image: node:8.11.3
script:
- npm install
- npm test
c... |
0014d16e589aecb8cbaeb5832fa73bc70cf86485 | lib/control/v1/index.js | lib/control/v1/index.js | 'use strict';
const AWS = require('aws-sdk');
const Err = require('./error');
const upload = require('multer')();
const rp = require('request-promise');
// Hit the Vault health check endpoint to see if we're actually working with a Vault server
/**
* Checks whether there is an actual Vault server running at the Va... | 'use strict';
const AWS = require('aws-sdk');
const Err = require('./error');
const upload = require('multer')();
const rp = require('request-promise');
// Hit the Vault health check endpoint to see if we're actually working with a Vault server
/**
* Checks whether there is an actual Vault server running at the Va... | Move KMS key retrieval to its own function. | Move KMS key retrieval to its own function.
| JavaScript | mit | rapid7/acs,rapid7/acs,rapid7/acs | javascript | ## Code Before:
'use strict';
const AWS = require('aws-sdk');
const Err = require('./error');
const upload = require('multer')();
const rp = require('request-promise');
// Hit the Vault health check endpoint to see if we're actually working with a Vault server
/**
* Checks whether there is an actual Vault server r... |
94f33dc56691a8f375918d05dd6fa7ca3cdf998a | reference/shaders-msl/desktop-only/vert/shader-draw-parameters.desktop.vert | reference/shaders-msl/desktop-only/vert/shader-draw-parameters.desktop.vert |
using namespace metal;
struct main0_out
{
float4 gl_Position [[position]];
};
struct main0_in
{
uint gl_BaseVertex [[base_vertex]];
uint gl_BaseInstance [[base_instance]];
};
vertex main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
out.gl_Position = float4(float(in.gl_BaseVertex), ... |
using namespace metal;
struct main0_out
{
float4 gl_Position [[position]];
};
vertex main0_out main0(uint gl_BaseVertex [[base_vertex]], uint gl_BaseInstance [[base_instance]])
{
main0_out out = {};
out.gl_Position = float4(float(gl_BaseVertex), float(gl_BaseInstance), 0.0, 1.0);
return out;
}
| Fix MSL shader_draw_parameters reference output. | Fix MSL shader_draw_parameters reference output.
| GLSL | apache-2.0 | KhronosGroup/SPIRV-Cross,KhronosGroup/SPIRV-Cross,KhronosGroup/SPIRV-Cross,KhronosGroup/SPIRV-Cross,KhronosGroup/SPIRV-Cross,KhronosGroup/SPIRV-Cross | glsl | ## Code Before:
using namespace metal;
struct main0_out
{
float4 gl_Position [[position]];
};
struct main0_in
{
uint gl_BaseVertex [[base_vertex]];
uint gl_BaseInstance [[base_instance]];
};
vertex main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
out.gl_Position = float4(float(in.... |
92e7164cf152700c4ae60013bfbb9536e425a64c | neo/rawio/tests/test_nixrawio.py | neo/rawio/tests/test_nixrawio.py | import unittest
from neo.rawio.nixrawio import NIXRawIO
from neo.rawio.tests.common_rawio_test import BaseTestRawIO
testfname = "neoraw.nix"
class TestNixRawIO(BaseTestRawIO, unittest.TestCase, ):
rawioclass = NIXRawIO
entities_to_test = [testfname]
files_to_download = [testfname]
if __name__ == "__mai... | import unittest
from neo.rawio.nixrawio import NIXRawIO
from neo.rawio.tests.common_rawio_test import BaseTestRawIO
testfname = "nixrawio-1.5.nix"
class TestNixRawIO(BaseTestRawIO, unittest.TestCase):
rawioclass = NIXRawIO
entities_to_test = [testfname]
files_to_download = [testfname]
if __name__ == "... | Change filename for NIXRawIO tests | [nixio] Change filename for NIXRawIO tests
| Python | bsd-3-clause | NeuralEnsemble/python-neo,INM-6/python-neo,JuliaSprenger/python-neo,apdavison/python-neo,rgerkin/python-neo,samuelgarcia/python-neo | python | ## Code Before:
import unittest
from neo.rawio.nixrawio import NIXRawIO
from neo.rawio.tests.common_rawio_test import BaseTestRawIO
testfname = "neoraw.nix"
class TestNixRawIO(BaseTestRawIO, unittest.TestCase, ):
rawioclass = NIXRawIO
entities_to_test = [testfname]
files_to_download = [testfname]
if __... |
816b8ce02bca43d7b7259d4745a7fd3f9aaf3fd3 | test/CMakeLists.txt | test/CMakeLists.txt | set(CONFIGURATIONS zhs2zht zht2zhs mix2zht mix2zhs)
foreach(CONFIG ${CONFIGURATIONS})
add_test(
${CONFIG}_convert
${PROJECT_BINARY_DIR}/src/tools/opencc
-i ${CMAKE_SOURCE_DIR}/test/testcases/${CONFIG}.in
-o ${PROJECT_BINARY_DIR}/test/${CONFIG}.out
-c ${CMAKE_SOURCE_DIR}/data/config/${CONFIG}.ini
)
add_... | set(CONFIGURATIONS zhs2zht zht2zhs mix2zht mix2zhs)
foreach(CONFIG ${CONFIGURATIONS})
add_test(
${CONFIG}_convert
${CMAKE_COMMAND} -E chdir ${PROJECT_BINARY_DIR}/data
${PROJECT_BINARY_DIR}/src/tools/opencc
-i ${CMAKE_SOURCE_DIR}/test/testcases/${CONFIG}.in
-o ${PROJECT_BINARY_DIR}/test/${CONFIG}.out
-c $... | Fix working directory for testing. | Fix working directory for testing. | Text | apache-2.0 | chongwf/OpenCC,PeterCxy/OpenCC,capturePointer/OpenCC,PeterCxy/OpenCC,BYVoid/OpenCC,jakwings/OpenCC,BYVoid/OpenCC,wisperwinter/OpenCC,mxgit1090/OpenCC,chongwf/OpenCC,PeterCxy/OpenCC,capturePointer/OpenCC,Arthur2e5/OpenCC,mxgit1090/OpenCC,j717273419/OpenCC,chongwf/OpenCC,BYVoid/OpenCC,j717273419/OpenCC,BYVoid/OpenCC,mxgi... | text | ## Code Before:
set(CONFIGURATIONS zhs2zht zht2zhs mix2zht mix2zhs)
foreach(CONFIG ${CONFIGURATIONS})
add_test(
${CONFIG}_convert
${PROJECT_BINARY_DIR}/src/tools/opencc
-i ${CMAKE_SOURCE_DIR}/test/testcases/${CONFIG}.in
-o ${PROJECT_BINARY_DIR}/test/${CONFIG}.out
-c ${CMAKE_SOURCE_DIR}/data/config/${CONFIG... |
2e18ba0bd8e36da9d6e6a9e670b93f96a069134e | resources/static/brunch/src/app/styles/main.styl | resources/static/brunch/src/app/styles/main.styl | width 300px
#rules-tree-view li
#rules-list-view li
height 25px
#rules-list-view .ui-draggable
width 300px
padding 5px
margin 10px
border 1px solid black
background-color white
#rules-tree-view .ui-droppable
padding 5px
.dropHover
background-color lightgreen
| width 300px
#rules-tree-view li
#rules-list-view li
height 25px
#rules-list-view .ui-draggable
width 300px
padding 5px
margin 10px
border 1px solid black
background-color white
#rules-tree-view .ui-droppable
padding 5px
.dropHover
background-color lightgreen
.btnDeleteList
float right
| Tweak style to align buttons to the right | Tweak style to align buttons to the right
| Stylus | bsd-3-clause | norm2782/JCU,norm2782/JCU | stylus | ## Code Before:
width 300px
#rules-tree-view li
#rules-list-view li
height 25px
#rules-list-view .ui-draggable
width 300px
padding 5px
margin 10px
border 1px solid black
background-color white
#rules-tree-view .ui-droppable
padding 5px
.dropHover
background-color lightgreen
## Instruction:
Tweak ... |
78cb050afbd289324fea5323f39fef59d8dd13c7 | cdi-injection/src/main/java/pl/dawidstepien/jee/examples/SimpleDateFormatProducer.java | cdi-injection/src/main/java/pl/dawidstepien/jee/examples/SimpleDateFormatProducer.java | package pl.dawidstepien.jee.examples;
import java.text.SimpleDateFormat;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
public class SimpleDateFormatProducer {
@Inject @SimpleDatePattern
private String pattern;
@Produces
public SimpleDateFormat produceSimpleDateFormat() {
return n... | package pl.dawidstepien.jee.examples;
import java.text.SimpleDateFormat;
import java.util.logging.Logger;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
public class SimpleDateFormatProducer {
@Inject
Logger logger;
@Inject @SimpleDatePattern
p... | Add example of a disposer method | Add example of a disposer method
| Java | mit | dstepien/jee7-examples | java | ## Code Before:
package pl.dawidstepien.jee.examples;
import java.text.SimpleDateFormat;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
public class SimpleDateFormatProducer {
@Inject @SimpleDatePattern
private String pattern;
@Produces
public SimpleDateFormat produceSimpleDateFormat(... |
8733cc2823b8f84ac641805a1e1255c8541d093e | app/assets/stylesheets/_card.sass | app/assets/stylesheets/_card.sass | card
min-width: 256px
display: inline-block
margin: 1em
vertical-align: top
sprites > &, tunes > &
width: 256px
@include small
margin: 1em 0 0
width: 100%
> .outline
box-shadow: $item-shadow
border-radius: 4px
overflow: hidden
> a > img
display: block
widt... | card
min-width: 256px
display: inline-block
margin: 1em
vertical-align: top
sprites > &, tunes > &
width: 256px
@include small
margin: 1em 0 0
width: 100%
&:first-child
margin-top: 0
> .outline
box-shadow: $item-shadow
border-radius: 4px
overflow: hidden
... | Reduce extra margin on first card in mobile view | Reduce extra margin on first card in mobile view
| Sass | mit | PixieEngine/pixieengine.com,PixieEngine/pixieengine.com | sass | ## Code Before:
card
min-width: 256px
display: inline-block
margin: 1em
vertical-align: top
sprites > &, tunes > &
width: 256px
@include small
margin: 1em 0 0
width: 100%
> .outline
box-shadow: $item-shadow
border-radius: 4px
overflow: hidden
> a > img
display: ... |
32d32fec17e4b9e165463f5ff601cf2c1658e123 | .travis.yml | .travis.yml | language: android
sudo: false
android:
components:
- tools
- build-tools-23.0.3
- build-tools-22.0.1
- android-23
- android-22
- extra-android-support
- extra-android-m2repository
licenses:
- 'android-sdk-license-.+'
- '.*intel.+'
before_install:
- chmod +x gradlew
- git subm... | language: android
sudo: false
android:
components:
- tools
- build-tools-23.0.3
- build-tools-22.0.1
- android-23
- extra-android-support
- extra-android-m2repository
licenses:
- 'android-sdk-license-.+'
- '.*intel.+'
before_install:
- chmod +x gradlew
- git submodule update --in... | Remove android 22 since we target 23, fix build script | Remove android 22 since we target 23, fix build script
| YAML | apache-2.0 | anthonycr/Bonsai,anthonycr/Bonsai | yaml | ## Code Before:
language: android
sudo: false
android:
components:
- tools
- build-tools-23.0.3
- build-tools-22.0.1
- android-23
- android-22
- extra-android-support
- extra-android-m2repository
licenses:
- 'android-sdk-license-.+'
- '.*intel.+'
before_install:
- chmod +x grad... |
df2ee25679b3dd42ab30d0da48ee743773fa48bd | README.md | README.md |
f1cal parses [formula1.com](http://www.formula1.com/) for each Grand Prix and outputs an iCalendar file with every qualifying, practice, and race session for this year's 2014 Formula One season. All event times are converted to UTC time, allowing most calendar applications to convert the event time to the user's curr... |
f1cal parses [formula1.com](http://www.formula1.com/) for each Grand Prix and outputs an iCalendar file with every qualifying, practice, and race session for this year's 2014 Formula One season. All event times are converted to UTC time, allowing calendars to convert the event time to the user's current timezone.
The... | Add hosted location to readme | Add hosted location to readme
| Markdown | mit | martinbjeldbak/fonecal | markdown | ## Code Before:
f1cal parses [formula1.com](http://www.formula1.com/) for each Grand Prix and outputs an iCalendar file with every qualifying, practice, and race session for this year's 2014 Formula One season. All event times are converted to UTC time, allowing most calendar applications to convert the event time to... |
577fb888436816ede551179e677b75547ecfff14 | app/views/spree/admin/shared/_new_resource_links.html.haml | app/views/spree/admin/shared/_new_resource_links.html.haml | .form-buttons.filter-actions.actions
= button t(:create), 'icon-ok'
%span.or= t(:or)
= button_link_to t(:cancel), collection_url, icon: 'icon-remove'
| .form-buttons.filter-actions.actions
= button t('actions.create'), 'icon-ok'
%span.or= t(:or)
= button_link_to t('actions.cancel'), collection_url, icon: 'icon-remove'
| Move Create and Cancel References to Actions Namespace | Move Create and Cancel References to Actions Namespace
| Haml | agpl-3.0 | Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfound... | haml | ## Code Before:
.form-buttons.filter-actions.actions
= button t(:create), 'icon-ok'
%span.or= t(:or)
= button_link_to t(:cancel), collection_url, icon: 'icon-remove'
## Instruction:
Move Create and Cancel References to Actions Namespace
## Code After:
.form-buttons.filter-actions.actions
= button t('actions.c... |
e0aba854c685610af085da91e25bb3682f20461b | setup.py | setup.py | import setuptools
import codecs
import os.path
# Used to read the file
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
# Used to extract out the __version__
def get_version(rel_path):
for line in read... | import setuptools
import codecs
import os.path
# Used to read the file
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
# Used to extract out the __version__
def get_version(rel_path):
for line in read... | Fix Installation Issues -> missing Boto3 | Fix Installation Issues -> missing Boto3
| Python | mit | robotichead/NearBeach,robotichead/NearBeach,robotichead/NearBeach | python | ## Code Before:
import setuptools
import codecs
import os.path
# Used to read the file
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
# Used to extract out the __version__
def get_version(rel_path):
... |
355a3a34b9a264734c1f5f2ec365a5873f000b77 | open_skin_as_project.py | open_skin_as_project.py | import os
import subprocess
import sublime
import sublime_plugin
from .path.skin_path_provider import get_cached_skin_path
class RainmeterOpenSkinAsProjectCommand(sublime_plugin.ApplicationCommand):
def run(self):
skins_path = get_cached_skin_path()
skins = os.listdir(skins_path)
subli... | import os
import subprocess
import sublime
import sublime_plugin
from .path.skin_path_provider import get_cached_skin_path
class RainmeterOpenSkinAsProjectCommand(sublime_plugin.ApplicationCommand):
def run(self):
skins_path = get_cached_skin_path()
skins = os.listdir(skins_path)
subli... | Handle in case user cancels open skin as project command | Handle in case user cancels open skin as project command
| Python | mit | thatsIch/sublime-rainmeter | python | ## Code Before:
import os
import subprocess
import sublime
import sublime_plugin
from .path.skin_path_provider import get_cached_skin_path
class RainmeterOpenSkinAsProjectCommand(sublime_plugin.ApplicationCommand):
def run(self):
skins_path = get_cached_skin_path()
skins = os.listdir(skins_path... |
eafc2584493e53e1da9049c483485cd1d2caf281 | app/assets/stylesheets/resources/workshifts.scss | app/assets/stylesheets/resources/workshifts.scss | // Place all the styles related to the Workshifts controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
| // Place all the styles related to the Workshifts controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
display: none;
min-width: 160px;
_wi... | Add scss style for ui-autocompletion. | Add scss style for ui-autocompletion.
| SCSS | mit | bsc-networks/workshift-website,bsc-networks/workshift-website,bsc-networks/workshift-website,bsc-networks/workshift-website | scss | ## Code Before:
// Place all the styles related to the Workshifts controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
## Instruction:
Add scss style for ui-autocompletion.
## Code After:
// Place all the styles related to the Workshifts co... |
5fd744504b5c7cf3b0daa92b15cd6235e3a0b982 | packages/bwmon/bwmon_1.3.bb | packages/bwmon/bwmon_1.3.bb | DESCRIPTION = "The Linux bandwidth monitor"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"
DEPENDS = "ncurses"
LICENSE = "Unspecified"
PR = "r0"
SRC_URI = "${SOURCEFORGE_MIRROR}/bwmon/${P}.tar.gz \
file://makefile.patch;patch=1"
EXTRA_OEMAKE = "LDFLAGS=-L${STAGING_LIBDIR}"
inherit autotools
do_install () {
... | DESCRIPTION = "The Linux bandwidth monitor"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"
DEPENDS = "ncurses"
LICENSE = "Unspecified"
PR = "r0"
SRC_URI = "${SOURCEFORGE_MIRROR}/bwmon/${P}.tar.gz \
file://makefile.patch;patch=1"
EXTRA_OEMAKE = "LDFLAGS=-L${STAGING_LIBDIR}"
inherit autotools
do_install () {
... | Make it use , and actually create the dir before installing. (duh) | Make it use , and actually create the dir before installing. (duh) | BitBake | mit | buglabs/oe-buglabs,BlackPole/bp-openembedded,bticino/openembedded,JamesAng/oe,sledz/oe,anguslees/openembedded-android,BlackPole/bp-openembedded,SIFTeam/openembedded,openembedded/openembedded,sampov2/audio-openembedded,BlackPole/bp-openembedded,BlackPole/bp-openembedded,dave-billin/overo-ui-moos-auv,xifengchuo/openembed... | bitbake | ## Code Before:
DESCRIPTION = "The Linux bandwidth monitor"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"
DEPENDS = "ncurses"
LICENSE = "Unspecified"
PR = "r0"
SRC_URI = "${SOURCEFORGE_MIRROR}/bwmon/${P}.tar.gz \
file://makefile.patch;patch=1"
EXTRA_OEMAKE = "LDFLAGS=-L${STAGING_LIBDIR}"
inherit autotools
... |
5695831699651daff3140ba51a3b8fb9e65470d2 | TODO.md | TODO.md | - [ ] Catoms2D Rotations from the menu are sometimes mistakenly authorized, and blocks sometimes perform 2 rotations at a time.
## Improvements
### Meld Interpreter
- [ ] Enable Meld action for generic rotation events (Rotation 2D/3D)
### Configuration Files
- [ ] Camera and Spotlight elements could be automatically... | - [ ] Catoms2D Rotations from the menu are sometimes mistakenly authorized, and blocks sometimes perform 2 rotations at a time.
## Improvements
### Meld Interpreter
- [ ] Enable Meld action for generic rotation events (Rotation 2D/3D)
### Configuration Files
- [ ] Camera and Spotlight elements could be automatically... | Add items in the ToDo list. | Add items in the ToDo list.
| Markdown | apache-2.0 | egartner/MR-maze-exploration,egartner/MR-maze-exploration,egartner/MR-maze-exploration,egartner/MR-maze-exploration,egartner/MR-maze-exploration | markdown | ## Code Before:
- [ ] Catoms2D Rotations from the menu are sometimes mistakenly authorized, and blocks sometimes perform 2 rotations at a time.
## Improvements
### Meld Interpreter
- [ ] Enable Meld action for generic rotation events (Rotation 2D/3D)
### Configuration Files
- [ ] Camera and Spotlight elements could ... |
b7b63b0858c12bd112be8c5090e6ccbe8993a176 | unittests/clangd/CMakeLists.txt | unittests/clangd/CMakeLists.txt | set(LLVM_LINK_COMPONENTS
support
)
get_filename_component(CLANGD_SOURCE_DIR
${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
include_directories(
${CLANGD_SOURCE_DIR}
)
add_extra_unittest(ClangdTests
Annotations.cpp
ClangdTests.cpp
ClangdUnitTests.cpp
CodeCompleteTests.cpp
CodeCompletionStringsT... | set(LLVM_LINK_COMPONENTS
support
)
get_filename_component(CLANGD_SOURCE_DIR
${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
include_directories(
${CLANGD_SOURCE_DIR}
)
add_extra_unittest(ClangdTests
Annotations.cpp
ClangdTests.cpp
ClangdUnitTests.cpp
CodeCompleteTests.cpp
CodeCompletionStringsT... | Fix a link failure in unittests | [clangd] Fix a link failure in unittests
Summary: D46524 (rL332378) introduced a link failure when built with
`-DSHARED_LIB=ON`, which this patch fixes.
Reviewers: ioeric
Subscribers: klimek, mgorny, ilya-biryukov, ioeric, MaskRay, jkorous, cfe-commits
Differential Revision: https://reviews.llvm.org/D46906
git-svn... | Text | apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra | text | ## Code Before:
set(LLVM_LINK_COMPONENTS
support
)
get_filename_component(CLANGD_SOURCE_DIR
${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
include_directories(
${CLANGD_SOURCE_DIR}
)
add_extra_unittest(ClangdTests
Annotations.cpp
ClangdTests.cpp
ClangdUnitTests.cpp
CodeCompleteTests.cpp
CodeCo... |
fcba7b238224719dc5a16c9d20ff83fd97989230 | src/Data/Either/Located.hs | src/Data/Either/Located.hs | {-# LANGUAGE FlexibleContexts #-}
module Data.Either.Located
( module Data.Either
, fromRight, fromLeft
) where
import Data.Either
import qualified GHC.Err.Located as L
fromRight :: L.HasCallStack
=> Either a b -> b
fromRight (Right x) = x
fromRight (Left _) = L.error "Either.fromRight: Left"
fromLe... | {-# LANGUAGE FlexibleContexts #-}
module Data.Either.Located
( module E
, fromRight, fromLeft
) where
import qualified Data.Either as E
import qualified GHC.Err.Located as L
fromRight :: L.HasCallStack
=> Either a b -> b
fromRight (Right x) = x
fromRight (Left _) = L.error "Either.fromRight: Left"
f... | Use a qualified import for GHC 8.2 compatibility | Use a qualified import for GHC 8.2 compatibility
It looks like Data.Either exports its own fromLeft and fromRight as of the base
included in 8.2
| Haskell | bsd-3-clause | gridaphobe/located-base | haskell | ## Code Before:
{-# LANGUAGE FlexibleContexts #-}
module Data.Either.Located
( module Data.Either
, fromRight, fromLeft
) where
import Data.Either
import qualified GHC.Err.Located as L
fromRight :: L.HasCallStack
=> Either a b -> b
fromRight (Right x) = x
fromRight (Left _) = L.error "Either.fromRigh... |
26f1cb370a21fbfdab3be839fd87bb5a45dc09ea | ci/tasks/test-unit.ps1 | ci/tasks/test-unit.ps1 | $ErrorActionPreference='Stop'
trap {
write-error $_
exit 1
}
powershell.exe "./gopath/src/github.com/cloudfoundry/bosh-agent/bin/install-go.ps1"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClien... | $ErrorActionPreference='Stop'
trap {
write-error $_
exit 1
}
$env:GOPATH = Join-Path -Path $PWD "gopath"
$env:PATH = $env:GOPATH + "/bin;" + $env:PATH
cd $env:GOPATH/src/github.com/cloudfoundry/bosh-agent
go.exe install github.com/cloudfoundry/bosh-agent/vendor/github.com/onsi/ginkgo/ginkgo
if ($LASTEXITCODE... | Remove installation of go in windows tests | Remove installation of go in windows tests
Co-authored-by: James Myers <44cbd4b2784f900a6fede6279d0b7fdcbfaa89f5@pivotal.io>
| PowerShell | apache-2.0 | gu-bin/bosh-agent,cloudfoundry/bosh-agent,mattcui/bosh-agent,mattcui/bosh-agent,mattcui/bosh-agent,cloudfoundry/bosh-agent,gu-bin/bosh-agent,gu-bin/bosh-agent | powershell | ## Code Before:
$ErrorActionPreference='Stop'
trap {
write-error $_
exit 1
}
powershell.exe "./gopath/src/github.com/cloudfoundry/bosh-agent/bin/install-go.ps1"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object Sys... |
2685b94838c8ec7ce31da60bc6f28953152c788a | pixelmap/pixelmap.py | pixelmap/pixelmap.py |
from pixel import Pixel
class Pixelmap:
def __init__(self, width, height):
"""Pixelmap constructor
:param width: Width of map in pixels.
:param height: Height of map in pixels.
"""
self.width = width
self.height = height
self.map_matrix = [[0]*self.width ... |
from .pixel import Pixel
class Pixelmap:
def __init__(self, cols, rows, default_val=None):
"""Pixelmap constructor
:param cols: Width of map in pixels.
:param rows: Height of map in pixels.
:param default_val: Default value for pixels.
"""
assert cols >= 0, 'Inva... | Add default value for matrix and methods to get columns and rows. | Add default value for matrix and methods to get columns and rows.
| Python | mit | yebra06/pixelmap | python | ## Code Before:
from pixel import Pixel
class Pixelmap:
def __init__(self, width, height):
"""Pixelmap constructor
:param width: Width of map in pixels.
:param height: Height of map in pixels.
"""
self.width = width
self.height = height
self.map_matrix = ... |
1dec7cc40215a7f692987749e15c05062fe11d4f | delay.h | delay.h |
typedef struct drand48_data delay_t;
static inline void delay_init(delay_t * state, int id)
{
srand48_r(id + 1, state);
}
static inline void delay_exec(delay_t * state)
{
long n;
lrand48_r(state, &n);
int j;
for (j = 50; j < 50 + n % 100; ++j) {
__asm__ ("nop");
}
}
#endif /* end of include guard: ... |
typedef struct drand48_data delay_t;
static inline void delay_init(delay_t * state, int id)
{
srand48_r(time(NULL) + id, state);
}
static inline void delay_exec(delay_t * state)
{
long n;
lrand48_r(state, &n);
int j;
for (j = 50; j < 50 + n % 100; ++j) {
__asm__ ("nop");
}
}
#endif /* end of includ... | Use time based seed for generating random numbers. | Use time based seed for generating random numbers.
| C | mit | chaoran/fast-wait-free-queue,chaoran/fast-wait-free-queue,chaoran/hpc-queue,chaoran/fast-wait-free-queue,chaoran/hpc-queue,chaoran/hpc-queue | c | ## Code Before:
typedef struct drand48_data delay_t;
static inline void delay_init(delay_t * state, int id)
{
srand48_r(id + 1, state);
}
static inline void delay_exec(delay_t * state)
{
long n;
lrand48_r(state, &n);
int j;
for (j = 50; j < 50 + n % 100; ++j) {
__asm__ ("nop");
}
}
#endif /* end of... |
bf811af1cda9dd8c1144279dd9cab978ab07432b | CHANGELOG.md | CHANGELOG.md | All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] - ∞
### Added
- The initial implementation of the `tutil::screen` module.
- The caching of Cargo dependencies on Travis CI.
- Continuous integration for OS X.
- An Ed... | All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] - ∞
### Added
- A provision script for the Vagrant environment.
- A Vagrant environment for testing on FreeBSD locally.
- The initial implementation of the `tutil::sc... | Update the changelog with the latest changes | Update the changelog with the latest changes
| Markdown | mpl-2.0 | SShrike/tutil,SShrike/tutil | markdown | ## Code Before:
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] - ∞
### Added
- The initial implementation of the `tutil::screen` module.
- The caching of Cargo dependencies on Travis CI.
- Continuous integration f... |
27c3ebfee3789de817defc18ac4a3dbc37a7d03f | tests/munge_js_test.py | tests/munge_js_test.py | import os.path
import unittest
import munge_js
class TestCase(unittest.TestCase):
pass
TestCase.assert_false = TestCase.assertFalse
TestCase.assert_equal = TestCase.assertEqual
fixture_root = os.path.join(os.path.dirname(__file__), 'fixtures')
def get_fixtures():
dir = os.path.join(fixture_root, 'input')
... | import os.path
import unittest
import munge_js
class TestCase(unittest.TestCase):
pass
TestCase.assert_false = TestCase.assertFalse
TestCase.assert_equal = TestCase.assertEqual
fixture_root = os.path.join(os.path.dirname(__file__), 'fixtures')
def get_fixtures():
dir = os.path.join(fixture_root, 'input')
... | Use an additional function to scope everything properly | Use an additional function to scope everything properly
| Python | mit | p/munge-js,p/munge-js | python | ## Code Before:
import os.path
import unittest
import munge_js
class TestCase(unittest.TestCase):
pass
TestCase.assert_false = TestCase.assertFalse
TestCase.assert_equal = TestCase.assertEqual
fixture_root = os.path.join(os.path.dirname(__file__), 'fixtures')
def get_fixtures():
dir = os.path.join(fixture_r... |
4b23b45ec3433499aaddd7ab4947c216612374c1 | 101-vm-full-disk-encrypted-rhel/setup_raid.sh | 101-vm-full-disk-encrypted-rhel/setup_raid.sh |
set -e
sudo yum install -y mdadm
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc /dev/sdd
sudo mkdir -p /etc/mdadm
sudo mdadm --detail --scan > /etc/mdadm/mdadm.conf
|
set -e
yum install -y mdadm
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc /dev/sdd
mkdir -p /etc/mdadm
mdadm --detail --scan > /etc/mdadm/mdadm.conf
| Remove sudo, requires interactive terminal | Remove sudo, requires interactive terminal
| Shell | mit | mathieu-benoit/azure-quickstart-templates,singhkays/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,Jaganod/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,knithinc/azure-quickstart-templates,CalCof/azure-quickstart-templates,willhighland/azure-quickstart-templates,mathieu-benoit/... | shell | ## Code Before:
set -e
sudo yum install -y mdadm
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc /dev/sdd
sudo mkdir -p /etc/mdadm
sudo mdadm --detail --scan > /etc/mdadm/mdadm.conf
## Instruction:
Remove sudo, requires interactive terminal
## Code After:
set -e
yum install -y mdadm
mda... |
7bc24c5d146a83dbb0e9560fe121595d15dbea32 | requirements.txt | requirements.txt |
pbr>=1.6 # Apache-2.0
Babel!=2.3.0,!=2.3.1,!=2.3.2,!=2.3.3,>=1.3 # BSD
enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD
iso8601>=0.1.9 # MIT
oslo.config>=3.9.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.utils>=3.5.0 # Apache-2.0
six>=1.9.0 # MIT
fasteners>=0.7 # Apache-2.0
retr... |
pbr>=1.6 # Apache-2.0
enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD
iso8601>=0.1.9 # MIT
oslo.config>=3.9.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.utils>=3.5.0 # Apache-2.0
six>=1.9.0 # MIT
fasteners>=0.7 # Apache-2.0
retrying!=1.3.0,>=1.2.3 # Apache-2.0
| Remove direct dependency on babel | Remove direct dependency on babel
The dependency on oslo.i18n already forces this requirement.
Change-Id: I4839b63ec9c8005f38231ee11f433a4c334e96d5
| Text | apache-2.0 | openstack/oslo.concurrency | text | ## Code Before:
pbr>=1.6 # Apache-2.0
Babel!=2.3.0,!=2.3.1,!=2.3.2,!=2.3.3,>=1.3 # BSD
enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD
iso8601>=0.1.9 # MIT
oslo.config>=3.9.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.utils>=3.5.0 # Apache-2.0
six>=1.9.0 # MIT
fasteners>=0.7 #... |
e0608a893daf492fdfb0c61e6dbd4c1cd7e4d277 | app/views/smart_management/_crud_interface.html.erb | app/views/smart_management/_crud_interface.html.erb | <div ng-controller="sortCtrl" ng-app="smart_management"
data-plural-model-name = "<%= plural_model_name %>">
<div class="modal fade" id="formContainer" tabindex="-1" role="dialog"
aria-labelledby="formModalLabel" aria-hidden="true">
</div>
<%= render 'table' %>
<a href="{{new_path}}" data-remote="true"... | <div ng-controller="sortCtrl" ng-app="smart_management"
data-plural-model-name = "<%= plural_model_name %>">
<h1><%= plural_model_name.capitalize %></h1>
<div class="modal fade" id="formContainer" tabindex="-1" role="dialog"
aria-labelledby="formModalLabel" aria-hidden="true">
</div>
<%= render 'table'... | Add the name of models | Add the name of models
| HTML+ERB | mit | GCorbel/smart_management,GCorbel/smart_management,GCorbel/smart_management | html+erb | ## Code Before:
<div ng-controller="sortCtrl" ng-app="smart_management"
data-plural-model-name = "<%= plural_model_name %>">
<div class="modal fade" id="formContainer" tabindex="-1" role="dialog"
aria-labelledby="formModalLabel" aria-hidden="true">
</div>
<%= render 'table' %>
<a href="{{new_path}}" da... |
e39a1158125f6c1b4b445a71339bf6e1e40f3c02 | controllers/stock-controller.coffee | controllers/stock-controller.coffee | request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send(body)
request: (symbol, callback=->) =>
options =
... | request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send price: parseFloat(body)
request: (symbol, callback=->)... | Return JSON object instead of a primitive | Return JSON object instead of a primitive
| CoffeeScript | mit | octoblu/stock-service,octoblu/stock-service | coffeescript | ## Code Before:
request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send(body)
request: (symbol, callback=->) =... |
a9bca6406f0ec025e8f1d3decf4e9324671ff5e7 | packages/po/polynomial.yaml | packages/po/polynomial.yaml | homepage: https://github.com/mokus0/polynomial
changelog-type: ''
hash: 0238b7df40af98a220110ba5ce365f51128abd683cfd6a33d2d61190445338b1
test-bench-deps: {}
maintainer: James Cook <mokus@deepbondi.net>
synopsis: Polynomials
changelog: ''
basic-deps:
base: ! '>=3 && <5'
vector-space: -any
deepseq: -any
vector-th... | homepage: https://github.com/mokus0/polynomial
changelog-type: ''
hash: 9acba2e7f5f4e3ec6989c9670a92a6b9033ee9331b2c9bc114890b8929f45b35
test-bench-deps: {}
maintainer: James Cook <mokus@deepbondi.net>
synopsis: Polynomials
changelog: ''
basic-deps:
base: ! '>=3 && <4.9'
vector-space: <0.11
deepseq: ! '>=1.1 && <... | Update from Hackage at 2017-03-23T13:52:14Z | Update from Hackage at 2017-03-23T13:52:14Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/mokus0/polynomial
changelog-type: ''
hash: 0238b7df40af98a220110ba5ce365f51128abd683cfd6a33d2d61190445338b1
test-bench-deps: {}
maintainer: James Cook <mokus@deepbondi.net>
synopsis: Polynomials
changelog: ''
basic-deps:
base: ! '>=3 && <5'
vector-space: -any
deepseq: ... |
2c97be648aef988afe8ea20dce7e3b014104a260 | spec/javascripts/helpers/SpecHelper.js | spec/javascripts/helpers/SpecHelper.js | window.lp = {};
window.lp.supports = {};
window.lp.isMobile = false;
require.config({
paths: {
jquery: "vendor/assets/javascripts/jquery/jquery",
lib: "public/assets/javascripts/lib",
jplugs: "vendor/assets/javascripts/jquery-plugins",
pointer: "vendor/assets/javascripts/pointer",
touchwipe: "ven... | window.lp = {};
window.lp.supports = {};
window.lp.isMobile = false;
window.lpUserStatusCallback = function() {};
require.config({
paths: {
jquery: "vendor/assets/javascripts/jquery/jquery",
lib: "public/assets/javascripts/lib",
jplugs: "vendor/assets/javascripts/jquery-plugins",
pointer: "vendor/ass... | Fix 'lpUserStatusCallback' error when running Grunt | Fix 'lpUserStatusCallback' error when running Grunt
| JavaScript | mit | lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,Lostmyname/rizzo | javascript | ## Code Before:
window.lp = {};
window.lp.supports = {};
window.lp.isMobile = false;
require.config({
paths: {
jquery: "vendor/assets/javascripts/jquery/jquery",
lib: "public/assets/javascripts/lib",
jplugs: "vendor/assets/javascripts/jquery-plugins",
pointer: "vendor/assets/javascripts/pointer",
... |
10b6ff51e5c96a8ab08defb35f79ccfabdd44aef | metadata/ivl.android.moneybalance.txt | metadata/ivl.android.moneybalance.txt | Categories:Money
License:Apache2
Web Site:
Source Code:https://github.com/inguin/moneybalance
Issue Tracker:https://github.com/inguin/moneybalance/issues
Auto Name:MoneyBalance
Summary:Track group expenses
Description:
Whenever someone pays something for the group (or part of it) the expense is
entered into this app.
... | Categories:Money
License:Apache2
Web Site:
Source Code:https://github.com/inguin/moneybalance
Issue Tracker:https://github.com/inguin/moneybalance/issues
Auto Name:MoneyBalance
Summary:Track group expenses
Description:
Whenever someone pays something for the group (or part of it) the expense is
entered into this app.
... | Update MoneyBalance to 1.3 (4) | Update MoneyBalance to 1.3 (4)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Money
License:Apache2
Web Site:
Source Code:https://github.com/inguin/moneybalance
Issue Tracker:https://github.com/inguin/moneybalance/issues
Auto Name:MoneyBalance
Summary:Track group expenses
Description:
Whenever someone pays something for the group (or part of it) the expense is
entered... |
f5d913d5276e34b86cfcf46aef11d7dac9e2d9eb | docs/_layouts/home.html | docs/_layouts/home.html | <!DOCTYPE html>
<html>
{% include head.html %}
<style>
body {
margin-top: 100px;
color: white;
text-align: center;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Source Code Pro"
}
img {
margin: auto;
}
div#buttons {
margin-top: 40px;
margin-bottom: 40px;
}
a {
backgro... | <!DOCTYPE html>
<html>
{% include head.html %}
<style>
body {
margin-top: 100px;
color: white;
text-align: center;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Source Code Pro"
}
img {
margin: auto;
}
div#buttons {
margin-top: 40px;
margin-bottom: 40px;
}
a {
backgro... | Change download to link to the Download page. | Change download to link to the Download page.
| HTML | mit | DanilaFe/abacus,DanilaFe/abacus | html | ## Code Before:
<!DOCTYPE html>
<html>
{% include head.html %}
<style>
body {
margin-top: 100px;
color: white;
text-align: center;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Source Code Pro"
}
img {
margin: auto;
}
div#buttons {
margin-top: 40px;
margin-bottom: 40px;
}
... |
823ab3bd23d98ac6d663244075d33df723877d7c | app/angular/controllers/nav_controller.js | app/angular/controllers/nav_controller.js | 'use strict';
module.exports = function(app) {
app.controller('NavController', ['$rootScope', 'AuthService', function($rs, AuthService) {
this.signout = AuthService.signout;
let $window = $(window);
let $hamMenu = $('#hamburger-menu-icon');
let $banner = $('.banner-container');
let $navBar = $('... | 'use strict';
module.exports = function(app) {
app.controller('NavController', ['$rootScope', 'AuthService', function($rs, AuthService) {
this.signout = AuthService.signout;
let $window = $(window);
let $hamMenu = $('#hamburger-menu-icon');
let $banner = $('.banner-container');
let $navBar = $('... | Declare and use normalOffset variable as value of original offset from top. | Declare and use normalOffset variable as value of original offset from top.
| JavaScript | mit | sendjmoon/GolfFourFriends,sendjmoon/GolfFourFriends | javascript | ## Code Before:
'use strict';
module.exports = function(app) {
app.controller('NavController', ['$rootScope', 'AuthService', function($rs, AuthService) {
this.signout = AuthService.signout;
let $window = $(window);
let $hamMenu = $('#hamburger-menu-icon');
let $banner = $('.banner-container');
l... |
1b19a0857495186d42b4bd5c59369776269cda15 | src/mount-share.js | src/mount-share.js | const { exec } = require('child_process');
const mkdirp = require('./mkdir-promise');
const fileExists = (err) => /file exists/i.test(err.message);
const mountShare = ({ username, password, mountPath, sharePath }) =>
new Promise((resolve, reject) => {
mkdirp(mountPath)
.then(() => {
const cmd = `m... | const { exec } = require('child_process');
const os = require('os');
const mkdirp = require('./mkdir-promise');
const fileExists = (err) => /file exists/i.test(err.message);
const mountShare = ({ username, mountPath, sharePath }) =>
new Promise((resolve, reject) => {
mkdirp(mountPath)
.then(() => {
... | Remove password requirement; add support for cifs on linux | Remove password requirement; add support for cifs on linux
| JavaScript | mit | life-corp/ymp-utilities | javascript | ## Code Before:
const { exec } = require('child_process');
const mkdirp = require('./mkdir-promise');
const fileExists = (err) => /file exists/i.test(err.message);
const mountShare = ({ username, password, mountPath, sharePath }) =>
new Promise((resolve, reject) => {
mkdirp(mountPath)
.then(() => {
... |
22319dab97e1f618968794f4cd80505611360582 | metadata/com.fr3ts0n.androbd.plugin.mqtt.txt | metadata/com.fr3ts0n.androbd.plugin.mqtt.txt | Categories:Connectivity
License:GPL-3.0-or-later
Web Site:https://github.com/fr3ts0n/AndrOBD-Plugin/wiki
Source Code:https://github.com/fr3ts0n/AndrOBD-Plugin
Issue Tracker:https://github.com/fr3ts0n/AndrOBD-Plugin/issues
Changelog:https://github.com/fr3ts0n/AndrOBD-Plugin/releases
Bitcoin:19UApzsc5eDJ5VNDNYCA1bpszPnkc... | Categories:Connectivity
License:GPL-3.0-or-later
Web Site:https://github.com/fr3ts0n/AndrOBD-Plugin/wiki
Source Code:https://github.com/fr3ts0n/AndrOBD-Plugin
Issue Tracker:https://github.com/fr3ts0n/AndrOBD-Plugin/issues
Changelog:https://github.com/fr3ts0n/AndrOBD-Plugin/releases
Bitcoin:19UApzsc5eDJ5VNDNYCA1bpszPnkc... | Update MqttPublisher Plugin to V1.0.1 (10001) | Update MqttPublisher Plugin to V1.0.1 (10001)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Connectivity
License:GPL-3.0-or-later
Web Site:https://github.com/fr3ts0n/AndrOBD-Plugin/wiki
Source Code:https://github.com/fr3ts0n/AndrOBD-Plugin
Issue Tracker:https://github.com/fr3ts0n/AndrOBD-Plugin/issues
Changelog:https://github.com/fr3ts0n/AndrOBD-Plugin/releases
Bitcoin:19UApzsc5eDJ5... |
d354559365412a96b1ec55e17f4356268f54d724 | .travis.yml | .travis.yml | language: rust
rust:
- 1.8.0
- 1.15.0
- beta
- nightly
sudo: false
script:
- cargo build --verbose
- ./ci/test_full.sh
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
ssh-agent ./ci/deploy.sh
notifications:
ema... | language: rust
rust:
- 1.15.0
- beta
- nightly
matrix:
include:
- rust: 1.8.0
before_script:
# libc 0.2.34 started using #[deprecated]
- cargo generate-lockfile
- cargo update --package libc --precise 0.2.33
sudo: false
script:
- cargo build --verbose
- ./ci/test_full.sh
... | Downgrade libc for Rust 1.8 CI | Downgrade libc for Rust 1.8 CI
| YAML | apache-2.0 | rust-num/num,rust-num/num-traits,rust-num/num-integer,rust-lang/num,rust-num/num,rust-num/num-bigint,rust-lang/num,rust-num/num-integer,rust-num/num-traits,rust-num/num-bigint | yaml | ## Code Before:
language: rust
rust:
- 1.8.0
- 1.15.0
- beta
- nightly
sudo: false
script:
- cargo build --verbose
- ./ci/test_full.sh
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
ssh-agent ./ci/deploy.sh
noti... |
5c4c4989b6e98a983590c455b1f533d845ddbbc3 | lib/utility/logger.rb | lib/utility/logger.rb | class Logger
def initialize
@file = File.new("logs/#{Time.now.strftime('%Y-%m-%d')}.log", 'a')
end
def log(data)
@file.write("[#{Time.now.strftime('%H:%M:%S')}] #{data}\n")
end
end
| require 'digest/md5'
class Logger
def initialize
@file = File.new("../logs/#{Time.now.strftime('%Y-%m-%d')} - #{Digest::MD5.hexdigest rand.to_s}.log", 'a')
end
def log(data)
@file.write("[#{Time.now.strftime('%H:%M:%S')}] #{data}\n")
end
end
| Add unique IDs to log files | Add unique IDs to log files
| Ruby | mit | Hyftar/TeChris | ruby | ## Code Before:
class Logger
def initialize
@file = File.new("logs/#{Time.now.strftime('%Y-%m-%d')}.log", 'a')
end
def log(data)
@file.write("[#{Time.now.strftime('%H:%M:%S')}] #{data}\n")
end
end
## Instruction:
Add unique IDs to log files
## Code After:
require 'digest/md5'
class Logger
def init... |
4ebf1c4726a3ebcb052f3762bf62df020be9bd62 | tox.ini | tox.ini | [tox]
envlist = docs, py27, py33, py34, py35, py36, pypy, quality-check
# rasterio install crashes if numpy is not already installed see bopen/elevation#17
[testenv]
deps = -r{toxinidir}/requirements-tests.txt
commands = py.test {posargs:tests}
[testenv:docs]
deps = -r{toxinidir}/requirements-docs.txt
commands = sph... | [tox]
envlist = docs, py27, py34, py35, py36, pypy, qc
# rasterio install crashes if numpy is not already installed see bopen/elevation#17
[testenv]
deps = -r{toxinidir}/requirements-tests.txt
commands = py.test {posargs:tests}
[testenv:docs]
deps = -r{toxinidir}/requirements-docs.txt
commands = sphinx-build -W -b h... | Drop python3.3 from CI as it was not advertised as supported in metadata. | Drop python3.3 from CI as it was not advertised as supported in metadata.
| INI | apache-2.0 | bopen/elevation | ini | ## Code Before:
[tox]
envlist = docs, py27, py33, py34, py35, py36, pypy, quality-check
# rasterio install crashes if numpy is not already installed see bopen/elevation#17
[testenv]
deps = -r{toxinidir}/requirements-tests.txt
commands = py.test {posargs:tests}
[testenv:docs]
deps = -r{toxinidir}/requirements-docs.tx... |
167a073dec18a6638cb4997a8fd6275477b12df9 | lib/active_replicas.rb | lib/active_replicas.rb | require 'active_replicas/version'
require 'active_replicas/log_subscriber'
require 'active_replicas/proxying_connection'
require 'active_replicas/proxying_connection_pool'
if defined? ActiveRecord
version = ActiveRecord::VERSION::MAJOR
if version == 4
require 'active_replicas/rails4/helpers'
require 'acti... | require 'active_replicas/version'
require 'active_replicas/log_subscriber'
require 'active_replicas/proxying_connection'
require 'active_replicas/proxying_connection_pool'
if defined? ActiveRecord
version = ActiveRecord::VERSION::MAJOR
if version == 4
require 'active_replicas/rails4/connection_handler'
else... | Remove unnecessary require in gem's entry point | Remove unnecessary require in gem's entry point
| Ruby | bsd-3-clause | dirk/active_replicas,dirk/active_replicas | ruby | ## Code Before:
require 'active_replicas/version'
require 'active_replicas/log_subscriber'
require 'active_replicas/proxying_connection'
require 'active_replicas/proxying_connection_pool'
if defined? ActiveRecord
version = ActiveRecord::VERSION::MAJOR
if version == 4
require 'active_replicas/rails4/helpers'
... |
77c1dcde2676357e0b567a8e46e3613d1f7d6cdd | src/NumberTextSliderInput.qml | src/NumberTextSliderInput.qml | import QtQuick 2.1
import QtQuick.Controls 1.2
Item {
id: root
signal inputValueChanged(real value)
property real value
property color color
property real minValue: 0
property real maxValue: 10
TextInput {
x: 10
id: weightInput
maximumLength: 6
width: 50
validator: DoubleValidator {
... | import QtQuick 2.1
import QtQuick.Controls 1.2
Item {
id: root
signal inputValueChanged(real value)
property real value
property color color: "black"
property real minValue: 0
property real maxValue: 10
TextInput {
x: 10
id: weightInput
maximumLength: 6
width: 50
validator: DoubleVal... | Add default text color black and reduce slider width. | Add default text color black and reduce slider width.
| QML | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller | qml | ## Code Before:
import QtQuick 2.1
import QtQuick.Controls 1.2
Item {
id: root
signal inputValueChanged(real value)
property real value
property color color
property real minValue: 0
property real maxValue: 10
TextInput {
x: 10
id: weightInput
maximumLength: 6
width: 50
validator: Do... |
0fb9666edbf2f43a97f355f6a1921e810c6b501d | src/VBE/system/sdl2/StorageImpl.cpp | src/VBE/system/sdl2/StorageImpl.cpp |
// static
std::unique_ptr<std::istream> StorageImpl::openAsset(const std::string& filename) {
// Open in binary mode so Windows doesn't change LF to CRLF,
// which will corrupt binary files such as images.
return std::unique_ptr<std::istream>(new std::ifstream("assets/"+filename, std::ios::binary));
}
|
// static
std::unique_ptr<std::istream> StorageImpl::openAsset(const std::string& filename) {
// Open in binary mode so Windows doesn't change LF to CRLF,
// which will corrupt binary files such as images.
std::ifstream* stream = new std::ifstream("assets/"+filename, std::ios::binary);
VBE_ASSERT(stream->good(), ... | Check that assets are opened properly. | Check that assets are opened properly.
| C++ | mit | Towerthousand/VBE | c++ | ## Code Before:
// static
std::unique_ptr<std::istream> StorageImpl::openAsset(const std::string& filename) {
// Open in binary mode so Windows doesn't change LF to CRLF,
// which will corrupt binary files such as images.
return std::unique_ptr<std::istream>(new std::ifstream("assets/"+filename, std::ios::binary));... |
7ab500f33653379e7270bd303cd7438aec62c9ad | setup.py | setup.py |
from setuptools import setup
from skal import __version__
setup(
name = "skal",
version = __version__,
description = "Class based command line wrapper",
author = "Max Persson",
author_email = "max@looplab.se",
url = "https://github.com/looplab/skal",
license = "Apache License 2.0",
py... |
from setuptools import setup
import sys
from skal import __version__
requirements = []
if sys.version_info < (2, 7):
requirements.append('argparse')
setup(
name = "skal",
version = __version__,
description = "Class based command line wrapper",
author = "Max Persson",
author_email = "max@loo... | Add requirement of argparse on old python | Add requirement of argparse on old python
| Python | apache-2.0 | looplab/skal | python | ## Code Before:
from setuptools import setup
from skal import __version__
setup(
name = "skal",
version = __version__,
description = "Class based command line wrapper",
author = "Max Persson",
author_email = "max@looplab.se",
url = "https://github.com/looplab/skal",
license = "Apache Lice... |
11ebbcc4522b135616621b75578c06904eb3b175 | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head
- rbx-2
- jruby
gemfile:
- Gemfile
- Gemfile.ActiveSupport
env:
- ""
- "activesupport=3.2.22"
- "activesupport=4.1.12"
- "activesupport=4.2.3"
- "activesupport=master"
matrix:
fast_finish: true
allow_failures:
- rvm: jruby
- r... | language: ruby
sudo: false
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head
- rbx-2
- jruby
gemfile:
- Gemfile
- Gemfile.ActiveSupport
env:
- ""
- "activesupport=3.2.22"
- "activesupport=4.1.12"
- "activesupport=4.2.3"
- "activesupport=master"
matrix:
fast_finish: true
allow_failures:
- rvm: ... | Use new Travis container infrastructure. | Use new Travis container infrastructure.
| YAML | mit | christhekeele/inquisitive,christhekeele/inquisitive | yaml | ## Code Before:
language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head
- rbx-2
- jruby
gemfile:
- Gemfile
- Gemfile.ActiveSupport
env:
- ""
- "activesupport=3.2.22"
- "activesupport=4.1.12"
- "activesupport=4.2.3"
- "activesupport=master"
matrix:
fast_finish: true
allow_failures:
- rv... |
55b7b07986590c4ab519fcda3c973c87ad23596b | flask_admin/model/typefmt.py | flask_admin/model/typefmt.py | from jinja2 import Markup
def null_formatter(value):
"""
Return `NULL` as the string for `None` value
:param value:
Value to check
"""
return Markup('<i>NULL</i>')
def empty_formatter(value):
"""
Return empty string for `None` value
:param value:
... | from jinja2 import Markup
def null_formatter(value):
"""
Return `NULL` as the string for `None` value
:param value:
Value to check
"""
return Markup('<i>NULL</i>')
def empty_formatter(value):
"""
Return empty string for `None` value
:param value:
... | Add extra type formatter for `list` type | Add extra type formatter for `list` type
| Python | bsd-3-clause | mrjoes/flask-admin,janusnic/flask-admin,Kha/flask-admin,wuxiangfeng/flask-admin,litnimax/flask-admin,HermasT/flask-admin,quokkaproject/flask-admin,Kha/flask-admin,flabe81/flask-admin,porduna/flask-admin,Junnplus/flask-admin,ibushong/test-repo,janusnic/flask-admin,jschneier/flask-admin,closeio/flask-admin,chase-seibert/... | python | ## Code Before:
from jinja2 import Markup
def null_formatter(value):
"""
Return `NULL` as the string for `None` value
:param value:
Value to check
"""
return Markup('<i>NULL</i>')
def empty_formatter(value):
"""
Return empty string for `None` value
:para... |
ec4a1dc297eb90dde4c22c682a35606aaa50b4d4 | crates/hir_def/src/nameres/tests/block.rs | crates/hir_def/src/nameres/tests/block.rs | use super::*;
#[test]
fn inner_item_smoke() {
check_at(
r#"
//- /lib.rs
struct inner {}
fn outer() {
$0
fn inner() {}
}
"#,
expect![[r#"
block scope
inner: v
crate
inner: t
outer: v
"#]],
);
}
#[test]
fn use_from_crate... | use super::*;
#[test]
fn inner_item_smoke() {
check_at(
r#"
//- /lib.rs
struct inner {}
fn outer() {
$0
fn inner() {}
}
"#,
expect![[r#"
block scope
inner: v
crate
inner: t
outer: v
"#]],
);
}
#[test]
fn use_from_crate... | Add test that merges inner and outer names | Add test that merges inner and outer names
| Rust | apache-2.0 | rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer | rust | ## Code Before:
use super::*;
#[test]
fn inner_item_smoke() {
check_at(
r#"
//- /lib.rs
struct inner {}
fn outer() {
$0
fn inner() {}
}
"#,
expect![[r#"
block scope
inner: v
crate
inner: t
outer: v
"#]],
);
}
#[test]
f... |
56d2a85aa6065af50853f1c2c8f9baf679d0c0f1 | README.md | README.md | berkeley
========
The Hacker Within at the University of California - Berkeley.
For meeting information and other resources, see the master branch of this
repository or go to our blog at thehackerwithin.github.io/berkeley.
| berkeley
========
The Hacker Within at the University of California - Berkeley.
For meeting information and other resources, see the master branch of this
repository or go to our blog at [thehackerwithin.github.io/berkeley](http://thehackerwithin.github.io/berkeley).
| Add link to make it easier to get to blog | Add link to make it easier to get to blog | Markdown | bsd-3-clause | davclark/berkeley,thehackerwithin/berkeley,rossbar/berkeley,paul-laskowski/berkeley,rossbar/berkeley,matthew-brett/berkeley,thehackerwithin/berkeley,thnguyn2/berkeley,jnaulty/berkeley,jnaulty/berkeley,paul-laskowski/berkeley,davclark/berkeley,jljones/berkeley,davclark/berkeley,jljones/berkeley,thehackerwithin/berkeley,... | markdown | ## Code Before:
berkeley
========
The Hacker Within at the University of California - Berkeley.
For meeting information and other resources, see the master branch of this
repository or go to our blog at thehackerwithin.github.io/berkeley.
## Instruction:
Add link to make it easier to get to blog
## Code After:
ber... |
96f547e50dceedb401668e0b653311f0624c1618 | package.json | package.json | {
"name": "geobork"
,"version": "0.2.0"
,"description": "Geo Borker (Broker) is a server for storing locations through a REST API."
,"author": "Christopher Fredén <christopher.freden@kartena.se>"
,"repository": {
"type": "git"
,"url": "https://github.com/kartena/geobork.git"
}
,"licenses": [{
... | {
"name": "geobork"
,"version": "0.2.0"
,"description": "Geo Borker (Broker) is a server for storing locations through a REST API."
,"author": "Christopher Fredén <christopher.freden@kartena.se>"
,"repository": {
"type": "git"
,"url": "https://github.com/kartena/geobork.git"
}
,"licenses": [{
... | Build Coffee files on publish | Build Coffee files on publish
| JSON | mit | kartena/geobork,kartena/geobork | json | ## Code Before:
{
"name": "geobork"
,"version": "0.2.0"
,"description": "Geo Borker (Broker) is a server for storing locations through a REST API."
,"author": "Christopher Fredén <christopher.freden@kartena.se>"
,"repository": {
"type": "git"
,"url": "https://github.com/kartena/geobork.git"
}
,"li... |
a23712a9fc9f93bd575d7aee95ef5b3fea455347 | jet/static/jet/css/_object-tools.scss | jet/static/jet/css/_object-tools.scss | @import "globals";
/* OBJECT TOOLS */
.object-tools {
display: none;
text-align: right;
padding: 0;
margin: 0 0 20px 0;
position: relative;
z-index: 1;
@include for-mobile {
text-align: left;
}
&.initialized {
display: block;
}
.form-row & {
margin-top: 5px;
margin-bottom: 5px... | @import "globals";
/* OBJECT TOOLS */
.object-tools {
display: none;
text-align: right;
padding: 0;
margin: 0 0 20px 0;
@include for-mobile {
text-align: left;
}
&.initialized {
display: block;
}
.form-row & {
margin-top: 5px;
margin-bottom: 5px;
float: none;
height: 2em;
... | Fix object tools position relative for non changelist views | Fix object tools position relative for non changelist views
| SCSS | agpl-3.0 | geex-arts/django-jet,SalahAdDin/django-jet,rcotrina94/django-jet,pombredanne/django-jet,rcotrina94/django-jet,geex-arts/django-jet,SalahAdDin/django-jet,rcotrina94/django-jet,SalahAdDin/django-jet,pombredanne/django-jet,pombredanne/django-jet,geex-arts/django-jet | scss | ## Code Before:
@import "globals";
/* OBJECT TOOLS */
.object-tools {
display: none;
text-align: right;
padding: 0;
margin: 0 0 20px 0;
position: relative;
z-index: 1;
@include for-mobile {
text-align: left;
}
&.initialized {
display: block;
}
.form-row & {
margin-top: 5px;
ma... |
2cc9947a41bec444a79c588bd5ed5be46052dcff | install.sh | install.sh |
echo "Setting up your Mac..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
bre... |
echo "Setting up your Mac..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
bre... | Add step to set MySQL default root password | Add step to set MySQL default root password
| Shell | mit | driesvints/dotfiles,davosian/dotfiles,neverything/dotfiles,neverything/dotfiles,davosian/dotfiles,driesvints/dotfiles | shell | ## Code Before:
echo "Setting up your Mac..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (S... |
9c486b74c567db96f741bfa199be51e0d02f3eab | frontend/src/components/IconLibrary/index.js | frontend/src/components/IconLibrary/index.js | import { library } from '@fortawesome/fontawesome-svg-core';
import { faMapMarkerAlt } from '@fortawesome/free-solid-svg-icons';
library.add(
faMapMarkerAlt,
);
| import { library } from '@fortawesome/fontawesome-svg-core';
import { faMapMarkerAlt, faCalendarAlt, faBook, faUserFriends,
faTrash, faEdit } from '@fortawesome/free-solid-svg-icons';
library.add(
faMapMarkerAlt,
faCalendarAlt,
faBook,
faUserFriends,
faTrash,
faEdit,
);
| Add icons used in trip card. | Add icons used in trip card.
| JavaScript | apache-2.0 | googleinterns/SLURP,googleinterns/SLURP,googleinterns/SLURP | javascript | ## Code Before:
import { library } from '@fortawesome/fontawesome-svg-core';
import { faMapMarkerAlt } from '@fortawesome/free-solid-svg-icons';
library.add(
faMapMarkerAlt,
);
## Instruction:
Add icons used in trip card.
## Code After:
import { library } from '@fortawesome/fontawesome-svg-core';
import { faMapM... |
0543f0aa136755e5c41eec1b76640d8caf7f22e1 | nbproject/project.properties | nbproject/project.properties | auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_create_2e_tests=false
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_enabled=true
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_path=tests/bootstrap.php
auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_enabled=true
auxiliary.org-netbe... | auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_create_2e_tests=false
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_enabled=true
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_path=tests/bootstrap.php
auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_enabled=true
auxiliary.org-n... | Support für die Smarty Template Engine in NetBeans eingeschaltet | Support für die Smarty Template Engine in NetBeans eingeschaltet | INI | mit | dump3r/dcms | ini | ## Code Before:
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_create_2e_tests=false
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_enabled=true
auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_path=tests/bootstrap.php
auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_enabled=true
aux... |
e26c1381c639dc35d047fa27bdcde14633114d02 | lib/app.js | lib/app.js | var Slack = require('slack-client'),
Kimbot = require('./kimbot'),
Foursquare = require('./clients/foursquare'),
OpenWeather = require('./clients/openweather');
var responses = [
'안녕! It\'s a nice day! Why not head to the market? I recommend the ' +
'Bibbimbap!',
'สวัสดี! A busy day with lots of meetings, b... | var Slack = require('slack-client'),
Kimbot = require('./kimbot'),
Foursquare = require('./clients/foursquare'),
OpenWeather = require('./clients/openweather');
var responses = [
'안녕! It\'s a nice day! Why not head to the market? I recommend the ' +
'Bibbimbap!',
'สวัสดี! A busy day with lots of meetings, b... | Stop kim responding to herself if there are multiple instances running. | Stop kim responding to herself if there are multiple instances running.
| JavaScript | mit | douglaseggleton/slack-kimbot | javascript | ## Code Before:
var Slack = require('slack-client'),
Kimbot = require('./kimbot'),
Foursquare = require('./clients/foursquare'),
OpenWeather = require('./clients/openweather');
var responses = [
'안녕! It\'s a nice day! Why not head to the market? I recommend the ' +
'Bibbimbap!',
'สวัสดี! A busy day with lot... |
cfaee15aaf01c2237b3d72be5cf5522752011443 | .travis.yml | .travis.yml | language: rust
sudo: false
rust:
- 1.15.1
- stable
- beta
- nightly
script: |
cargo build --verbose --features "${FEATURES}"
cargo test --verbose --features "${FEATURES}"
| language: rust
sudo: false
rust:
- stable
- beta
- nightly
matrix:
include:
- rust: 1.15.1
env: DOWNGRADE=1
script: |
if [[ -n $DOWNGRADE ]]; then
cargo generate-lockfile
cargo update --package rand --precise 0.3.10
fi
cargo build --verbose
cargo test --verbose
| Use old version of rand in old CI | Use old version of rand in old CI
| YAML | mit | shepmaster/twox-hash | yaml | ## Code Before:
language: rust
sudo: false
rust:
- 1.15.1
- stable
- beta
- nightly
script: |
cargo build --verbose --features "${FEATURES}"
cargo test --verbose --features "${FEATURES}"
## Instruction:
Use old version of rand in old CI
## Code After:
language: rust
sudo: false
rust:
- stable
- beta
... |
a668a5ebfb15ba543afde9a6a89c3ac5296c5840 | spec/features/users_spec.rb | spec/features/users_spec.rb |
require 'rails_helper'
RSpec.describe "Users", type: :feature do
before do
OauthProvider.create! name: 'facebook', key: 'dummy_key', secret: 'dummy_secret'
end
describe "redirect to the last page after login" do
before do
@project = create(:project)
visit project_by_slug_path(permalink: @pr... |
require 'rails_helper'
RSpec.describe "Users", type: :feature do
before do
OauthProvider.create! name: 'facebook', key: 'dummy_key', secret: 'dummy_secret'
end
describe "redirect to the last page after login" do
let!(:project) { create(:project) }
before do
visit project_by_slug_path(permalin... | Enable feature test for redirect after login | Enable feature test for redirect after login
| Ruby | mit | juntos-com-vc/juntos.com.vc,engageis/juntos.com.vc,juntos-com-vc/juntos.com.vc,engageis/juntos.com.vc,juntos-com-vc/juntos.com.vc,engageis/juntos.com.vc | ruby | ## Code Before:
require 'rails_helper'
RSpec.describe "Users", type: :feature do
before do
OauthProvider.create! name: 'facebook', key: 'dummy_key', secret: 'dummy_secret'
end
describe "redirect to the last page after login" do
before do
@project = create(:project)
visit project_by_slug_pat... |
5996e0a5f13d4cb02ea51dc5469d3f6837ba9270 | .travis.yml | .travis.yml | language: java
matrix:
include:
- jdk: oraclejdk8
- name: "Flowable 5 tests"
jdk: oraclejdk8
install: true
script:
cd scripts && ./run-flowable5-tests.sh
- jdk: oraclejdk9
- jdk: openjdk10
dist: xenial
- jdk: openjdk11
dist: xenial
- jdk: openjdk-ea
branches:
only:
... | language: java
matrix:
include:
- jdk: oraclejdk8
- name: "Flowable 5 tests"
jdk: oraclejdk8
install: true
script:
cd scripts && ./run-flowable5-tests.sh
- jdk: oraclejdk9
- jdk: openjdk10
dist: xenial
- jdk: openjdk11
dist: xenial
- jdk: openjdk12
- jdk: openjdk-ea
branch... | Add Java 12 build (openjdk-ea is now Java 13). | Travis: Add Java 12 build (openjdk-ea is now Java 13).
| YAML | apache-2.0 | yvoswillens/flowable-engine,flowable/flowable-engine,yvoswillens/flowable-engine,dbmalkovsky/flowable-engine,paulstapleton/flowable-engine,yvoswillens/flowable-engine,paulstapleton/flowable-engine,flowable/flowable-engine,flowable/flowable-engine,flowable/flowable-engine,paulstapleton/flowable-engine,dbmalkovsky/flowab... | yaml | ## Code Before:
language: java
matrix:
include:
- jdk: oraclejdk8
- name: "Flowable 5 tests"
jdk: oraclejdk8
install: true
script:
cd scripts && ./run-flowable5-tests.sh
- jdk: oraclejdk9
- jdk: openjdk10
dist: xenial
- jdk: openjdk11
dist: xenial
- jdk: openjdk-ea
branches:... |
737acb6a446a8f8199bb5fbe982c6a136f2258dd | package.json | package.json | {
"name": "OptimalTinder",
"main": "index.html",
"window": {
"toolbar": true,
"resizable": true,
"fullscreen": false,
"width": 700,
"height": 800
},
"dependencies": {
"bootstrap": "^3.3.2",
"fluxxor": "^1.5.1",
"lodash": "^2.4.1",
"react": "^0.12.2",
"tinderjs": "^1.0.8... | {
"name": "OptimalTinder",
"main": "index.html",
"window": {
"toolbar": true,
"resizable": true,
"fullscreen": false,
"width": 700,
"height": 800
},
"dependencies": {
"bootstrap": "^3.3.2",
"fluxxor": "^1.5.1",
"lodash": "^2.4.1",
"react": "^0.12.2",
"tinderjs": "^1.0.8... | Switch to babel and es6 for builds. | Switch to babel and es6 for builds.
| JSON | mit | Kobold/OptimalTinder,Kobold/OptimalTinder | json | ## Code Before:
{
"name": "OptimalTinder",
"main": "index.html",
"window": {
"toolbar": true,
"resizable": true,
"fullscreen": false,
"width": 700,
"height": 800
},
"dependencies": {
"bootstrap": "^3.3.2",
"fluxxor": "^1.5.1",
"lodash": "^2.4.1",
"react": "^0.12.2",
"ti... |
a2d4da609ac43e9edcc3453ca60d2c49dbb8e547 | pkg/util/file.go | pkg/util/file.go | package util
import (
"os"
)
// FileExists returns true if path exists
func FileExists(path string) (bool, error) {
_, err := os.Stat(path)
if err != nil {
if os.IsNotExist(err) {
return false, nil
}
return false, err
}
return true, nil
}
func DirExists(path string) (bool, error) {
fileInfo, err := os... | package util
import (
"os"
"strings"
)
// FileExists returns true if path exists
func FileExists(path string) (bool, error) {
_, err := os.Stat(path)
if err != nil {
if isNotExistError(err) {
return false, nil
}
return false, err
}
return true, nil
}
func DirExists(path string) (bool, error) {
file... | Fix FileExists does not take into account "not a directory" error | [util] Fix FileExists does not take into account "not a directory" error
| Go | apache-2.0 | flant/dapp,flant/dapp,flant/dapp | go | ## Code Before:
package util
import (
"os"
)
// FileExists returns true if path exists
func FileExists(path string) (bool, error) {
_, err := os.Stat(path)
if err != nil {
if os.IsNotExist(err) {
return false, nil
}
return false, err
}
return true, nil
}
func DirExists(path string) (bool, error) {
fil... |
fdc0bb75271b90a31072f79b95283e1156d50181 | waffle/decorators.py | waffle/decorators.py | from functools import wraps
from django.http import Http404
from django.utils.decorators import available_attrs
from waffle import is_active
def waffle(flag_name):
def decorator(view):
if flag_name.startswith('!'):
active = is_active(request, flag_name[1:])
else:
active =... | from functools import wraps
from django.http import Http404
from django.utils.decorators import available_attrs
from waffle import is_active
def waffle(flag_name):
def decorator(view):
@wraps(view, assigned=available_attrs(view))
def _wrapped_view(request, *args, **kwargs):
if flag_n... | Make the decorator actually work again. | Make the decorator actually work again.
| Python | bsd-3-clause | isotoma/django-waffle,TwigWorld/django-waffle,rlr/django-waffle,webus/django-waffle,groovecoder/django-waffle,JeLoueMonCampingCar/django-waffle,crccheck/django-waffle,safarijv/django-waffle,paulcwatts/django-waffle,JeLoueMonCampingCar/django-waffle,11craft/django-waffle,festicket/django-waffle,styleseat/django-waffle,m... | python | ## Code Before:
from functools import wraps
from django.http import Http404
from django.utils.decorators import available_attrs
from waffle import is_active
def waffle(flag_name):
def decorator(view):
if flag_name.startswith('!'):
active = is_active(request, flag_name[1:])
else:
... |
ad5da2c31b4321694d5cd12528d227f6a794fbd1 | .github/workflows/default-tests.yml | .github/workflows/default-tests.yml | name: Default Tests
on:
pull_request:
push:
branches: [master]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v... | name: Default Tests
on:
pull_request:
push:
branches: [master]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v... | Revert "`source activate` invocation changed to `conda activate`" | Revert "`source activate` invocation changed to `conda activate`"
This reverts commit 6d68af8493efcecf96bfa41577c5fb0ad743b5df.
| YAML | apache-2.0 | aodn/compliance-checker,ioos/compliance-checker | yaml | ## Code Before:
name: Default Tests
on:
pull_request:
push:
branches: [master]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: ac... |
e0d8b2aa93bf72a99893e6aaccb8dfbb23085dc2 | components/ProgramLine/index.js | components/ProgramLine/index.js | import React from 'react'
import PropTypes from 'prop-types'
import Moment from 'react-moment'
import Link from 'next/link'
import generateUrl from 'utils/urlGenerator'
import EditButton from 'containers/EditButton'
import stylesheet from './style.scss'
const ProgramLine = (props) => (
<div className='program-line... | import React from 'react'
import PropTypes from 'prop-types'
import Moment from 'react-moment'
import Link from 'next/link'
import Head from 'next/head'
import generateUrl from 'utils/urlGenerator'
import EditButton from 'containers/EditButton'
import stylesheet from './style.scss'
const ProgramLine = (props) => (
... | Move ProgramLine style into head | Move ProgramLine style into head
| JavaScript | mit | bmagic/acdh-client | javascript | ## Code Before:
import React from 'react'
import PropTypes from 'prop-types'
import Moment from 'react-moment'
import Link from 'next/link'
import generateUrl from 'utils/urlGenerator'
import EditButton from 'containers/EditButton'
import stylesheet from './style.scss'
const ProgramLine = (props) => (
<div classNa... |
0f2ec88a50b6668fc662600f1fad3d5c9489579e | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode8.3
script:
make install test
| language: objective-c
osx_image: xcode8.3
script:
make install test
after_success:
- bash <(curl -s https://codecov.io/bash)
| Add codecov step after a successful build | Add codecov step after a successful build
| YAML | mit | Liquidsoul/Sourcery-AutoJSONSerializable,Liquidsoul/Sourcery-AutoJSONSerializable,Liquidsoul/Sourcery-AutoJSONSerializable,Liquidsoul/Sourcery-AutoJSONSerializable,Liquidsoul/Sourcery-AutoJSONSerializable,Liquidsoul/Sourcery-AutoJSONSerializable | yaml | ## Code Before:
language: objective-c
osx_image: xcode8.3
script:
make install test
## Instruction:
Add codecov step after a successful build
## Code After:
language: objective-c
osx_image: xcode8.3
script:
make install test
after_success:
- bash <(curl -s https://codecov.io/bash)
|
4b16c0cc7cc8c7b879ec4e050e107b8a1b01fb9a | guides/source/overview.html.erb | guides/source/overview.html.erb | <% content_for :header_section do %>
<h2>Spree Guides</h2>
<p>
These guides are designed to make you immediately productive with Spree, and to help you understand how all of the pieces fit together. They are written by the authors of Spree as well as members of the Spree community.
</p>
<ul>
<li>
... | <% content_for :header_section do %>
<h2>Spree Guides</h2>
<p>
These guides are designed to make you immediately productive with Spree, and to help you understand how all of the pieces fit together. They are written by the authors of Spree as well as members of the Spree community.
</p>
<ul>
<li>
... | Drop legacy guide links for now | Drop legacy guide links for now
| HTML+ERB | bsd-3-clause | gautamsawhney/spree,Ropeney/spree,Migweld/spree,xuewenfei/solidus,ujai/spree,madetech/spree,progsri/spree,delphsoft/spree-store-ballchair,PhoenixTeam/spree_phoenix,degica/spree,mleglise/spree,zamiang/spree,brchristian/spree,alvinjean/spree,FadliKun/spree,pervino/spree,DarkoP/spree,siddharth28/spree,rajeevriitm/spree,za... | html+erb | ## Code Before:
<% content_for :header_section do %>
<h2>Spree Guides</h2>
<p>
These guides are designed to make you immediately productive with Spree, and to help you understand how all of the pieces fit together. They are written by the authors of Spree as well as members of the Spree community.
</p>
<ul>... |
bf416d982f9036a360e6737cc89e0c8d9bd8913e | toolkit/diary/templates/widgets/htmltextarea.html | toolkit/diary/templates/widgets/htmltextarea.html | <div class='ckeditor_django_wrapper'>
<textarea name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
</div>
<script type='text/javascript'>
CKEDITOR.replace('{{ widget.attrs.id }}',{
{% if widget.height %}height:'{{ widget.height }}',{% en... | <div class='ckeditor_django_wrapper'>
<textarea name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
</div>
<script type='text/javascript'>
CKEDITOR.replace('{{ widget.attrs.id }}',{
{% if widget.height %}height:'{{ widget.height }}',{% en... | Make sure images carry on working | Make sure images carry on working
| HTML | agpl-3.0 | BenMotz/cubetoolkit,BenMotz/cubetoolkit,BenMotz/cubetoolkit,BenMotz/cubetoolkit | html | ## Code Before:
<div class='ckeditor_django_wrapper'>
<textarea name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
</div>
<script type='text/javascript'>
CKEDITOR.replace('{{ widget.attrs.id }}',{
{% if widget.height %}height:'{{ widget.... |
b086c4a38b391d9490b44803e5d3746c095a23f7 | spec/acceptance/support/test_ui.rb | spec/acceptance/support/test_ui.rb | class TestUI < Vagrant::UI::Interface
attr_reader :messages
METHODS = [:clear_line, :report_progress, :warn, :error, :info, :success]
def initialize(resource = nil)
super
@messages = METHODS.each_with_object({}) { |m, h| h[m] = [] }
end
def ask(*args)
super
# Automated tests should not depe... | class TestUI < Vagrant::UI::Interface
attr_reader :messages
METHODS = [:clear_line, :report_progress, :warn, :error, :info, :success]
def initialize
super
@messages = METHODS.each_with_object({}) { |m, h| h[m] = [] }
end
def ask(*args)
super
# Automated tests should not depend on user input... | Fix TestUI to work with Vagrant 1.2+ | Fix TestUI to work with Vagrant 1.2+
| Ruby | mit | turbosquid/vagrant-lxc-squid,Val/vagrant-lxc,necrose99/vagrant-lxc,Val/vagrant-lxc,ccope/vagrant-lxc,globin/vagrant-lxc,danielhodder/vagrant-lxc,fgrehm/vagrant-lxc,globin/vagrant-lxc,spheresh/vagrant-lxc,terceiro/vagrant-lxc,turbosquid/vagrant-lxc-squid,Val/vagrant-lxc,ccope/vagrant-lxc,spheresh/vagrant-lxc,fpletz/vagr... | ruby | ## Code Before:
class TestUI < Vagrant::UI::Interface
attr_reader :messages
METHODS = [:clear_line, :report_progress, :warn, :error, :info, :success]
def initialize(resource = nil)
super
@messages = METHODS.each_with_object({}) { |m, h| h[m] = [] }
end
def ask(*args)
super
# Automated tests... |
ff6a1d88d17e1db4754ab4c4c5f0ba13f89fffd8 | lib/control/v1/kms.js | lib/control/v1/kms.js | 'use strict';
const KMSProvider = require('../../providers/kms');
/**
* AWS-SDK gives out weirdly formatted keys, so make them
* consistent with formatting across the rest of Tokend
*
* @param {Object} obj
* @returns {Object}
*/
const normalizeKeys = (obj) => Object.keys(obj).reduce((acc, key) => {
acc[key.to... | 'use strict';
const KMSProvider = require('../../providers/kms');
/**
* AWS-SDK gives out weirdly formatted keys, so make them
* consistent with formatting across the rest of Tokend
*
* @param {Object} obj
* @returns {Object}
*/
const normalizeKeys = (obj) => Object.keys(obj).reduce((acc, key) => {
acc[key.to... | Maintain the previous behavior where if there was no result set we'd attempt to pass it to res.json and have express handle the exception and bubble it up. | Maintain the previous behavior where if there was no result set we'd attempt to pass it to res.json and have express handle the exception and bubble it up.
| JavaScript | mit | rapid7/tokend,rapid7/tokend,rapid7/tokend | javascript | ## Code Before:
'use strict';
const KMSProvider = require('../../providers/kms');
/**
* AWS-SDK gives out weirdly formatted keys, so make them
* consistent with formatting across the rest of Tokend
*
* @param {Object} obj
* @returns {Object}
*/
const normalizeKeys = (obj) => Object.keys(obj).reduce((acc, key) =... |
a83a4c7be7bba8bc020d08b299be12d2892e5969 | app/controllers/manuals_controller.rb | app/controllers/manuals_controller.rb | class ManualsController < ApplicationController
def index
manual = ManualsRepository.new.fetch(params["manual_id"])
error_not_found unless manual
@manual = ManualPresenter.new(manual)
end
def show
manual = ManualsRepository.new.fetch(params["manual_id"])
document = ManualsRepository.new.fe... | class ManualsController < ApplicationController
before_filter :set_manual
def index; end
def show
document = ManualsRepository.new.fetch(params["manual_id"], params["section_id"])
error_not_found unless document
@document = DocumentPresenter.new(document, @manual)
end
private
def error_not_... | Refactor Manual fetching to before_filter | Refactor Manual fetching to before_filter
| Ruby | mit | alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend | ruby | ## Code Before:
class ManualsController < ApplicationController
def index
manual = ManualsRepository.new.fetch(params["manual_id"])
error_not_found unless manual
@manual = ManualPresenter.new(manual)
end
def show
manual = ManualsRepository.new.fetch(params["manual_id"])
document = ManualsR... |
57e89ac1ee955201ad3e3abe9001bb70b3e5427a | css/bbplayer.css | css/bbplayer.css | /*
Optional styling for bbplayer elements.
*/
.bbplayer .bb-playing {
background: #6666FF;
border: 1px solid gray;
border-radius: 9px;
} | /*
Optional styling for bbplayer elements.
*/
.bbplayer .bb-playing {
color: green;
}
| Simplify css for simple example | Simplify css for simple example
| CSS | mit | 73rhodes/bbplayer,73rhodes/bbplayer | css | ## Code Before:
/*
Optional styling for bbplayer elements.
*/
.bbplayer .bb-playing {
background: #6666FF;
border: 1px solid gray;
border-radius: 9px;
}
## Instruction:
Simplify css for simple example
## Code After:
/*
Optional styling for bbplayer elements.
*/
.bbplayer .bb-playing {
color: green;
}
|
06a19b5c693b2b5b808f8e7b00136bef6b1a04c3 | base/relengapi/app.py | base/relengapi/app.py | from flask import current_app
from flask import Flask
from flask import g
from flask import jsonify
from flask import redirect
from flask import url_for
from relengapi import celery
from relengapi import db
import pkg_resources
def create_app(cmdline=False):
app = Flask('relengapi')
app.config.from_envvar('REL... | import os
from flask import current_app
from flask import Flask
from flask import g
from flask import jsonify
from flask import redirect
from flask import url_for
from relengapi import celery
from relengapi import db
import pkg_resources
def create_app(cmdline=False):
app = Flask('relengapi')
app.config.from_e... | Set a random session key if none is configured | Set a random session key if none is configured
| Python | mpl-2.0 | mozilla-releng/services,andrei987/services,srfraser/services,andrei987/services,srfraser/services,lundjordan/services,mozilla/build-relengapi,garbas/mozilla-releng-services,garbas/mozilla-releng-services,lundjordan/services,andrei987/services,andrei987/services,garbas/mozilla-releng-services,srfraser/services,hwine/bui... | python | ## Code Before:
from flask import current_app
from flask import Flask
from flask import g
from flask import jsonify
from flask import redirect
from flask import url_for
from relengapi import celery
from relengapi import db
import pkg_resources
def create_app(cmdline=False):
app = Flask('relengapi')
app.config.... |
0b7b47ff7a26e88459b7579ba6ce6b60fe95c121 | dev/phpunit.xml | dev/phpunit.xml | <?xml version="1.0"?>
<phpunit bootstrap="PHPUnit/bootstrap.php">
<testsuites>
<testsuite name="Enject Test Suite">
<directory>PHPUnit</directory>
</testsuite>
</testsuites>
</phpunit>
| <?xml version="1.0"?>
<phpunit
bootstrap="PHPUnit/bootstrap.php"
strict="true">
<testsuites>
<testsuite name="Enject Test Suite">
<directory>PHPUnit</directory>
</testsuite>
</testsuites>
</phpunit>
| Update Unit Tests to report tests with no assertions as incomplete | Update Unit Tests to report tests with no assertions as incomplete
| XML | lgpl-2.1 | alreece45/Enject | xml | ## Code Before:
<?xml version="1.0"?>
<phpunit bootstrap="PHPUnit/bootstrap.php">
<testsuites>
<testsuite name="Enject Test Suite">
<directory>PHPUnit</directory>
</testsuite>
</testsuites>
</phpunit>
## Instruction:
Update Unit Tests to report tests with no assertions as incomplete
## Code After:
<?xml vers... |
8e0e47dee42e3f016edb5ebe38dd50754cdacd30 | webapp/init.json | webapp/init.json | {
"conferences": "https://latest.dukecon.org/rest/conference/jl2017",
"events": "https://latest.dukecon.org/rest/events/jl2017",
"admin": "https://latest.dukecon.org/rest/admin/jl2017"
}
| {
"conferences": "https://latest.dukecon.org/javaland/2017/rest/conferences/jl2017",
"events": "https://latest.dukecon.org/javaland/2017/rest/events/jl2017",
"admin": "https://latest.dukecon.org/javaland/2017/rest/admin/jl2017"
}
| Fix URLs with internal/external URIs | Fix URLs with internal/external URIs
| JSON | mit | dukecon/dukecon_admin,dukecon/dukecon_admin | json | ## Code Before:
{
"conferences": "https://latest.dukecon.org/rest/conference/jl2017",
"events": "https://latest.dukecon.org/rest/events/jl2017",
"admin": "https://latest.dukecon.org/rest/admin/jl2017"
}
## Instruction:
Fix URLs with internal/external URIs
## Code After:
{
"conferences": "https://latest.dukeco... |
322e3a370f3064a1b1f8e585797fb1c155212889 | ladder/templates/ladder/head_to_head/index.html | ladder/templates/ladder/head_to_head/index.html | {% extends 'base.html' %}
{% block container %}
<h2>{{ player }} Vs {{ opponent }}</h2>
<a href="javascript:history.go(-1)">Back</a>
{% if not results %}
No results for match up.
{% else %}
<h4>Played: {{ stats.played }} Won: {{ stats.won }} Lost: {{ stats.lost }}</h4>
<div class="span12... | {% extends 'base.html' %}
{% block container %}
<h2>{{ player }} Vs {{ opponent }}</h2>
<a href="javascript:history.go(-1)">Back</a>
{% if not results %}
No results for match up.
{% else %}
<h4>Played: {{ stats.played }} Won: {{ stats.won }} Lost: {{ stats.lost }}</h4>
<div class="span12... | Add division link to head-to-head | Add division link to head-to-head
| HTML | mit | jzahedieh/django-tennis-ladder,jzahedieh/django-tennis-ladder,jzahedieh/django-tennis-ladder | html | ## Code Before:
{% extends 'base.html' %}
{% block container %}
<h2>{{ player }} Vs {{ opponent }}</h2>
<a href="javascript:history.go(-1)">Back</a>
{% if not results %}
No results for match up.
{% else %}
<h4>Played: {{ stats.played }} Won: {{ stats.won }} Lost: {{ stats.lost }}</h4>
<d... |
bd9b3d04d2a711ccbd4172483c2a4dd5463cb6e1 | recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb | recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb | DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"
PV = "1.9.2"
PR = "r0"
SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c"
BRANCH ?= "ti-v4.1.y"
SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-fir... | DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"
PV = "1.9.2"
PR = "r0"
SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c"
BRANCH ?= "ti-v4.1.y"
SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-fir... | Use COMPATIBLE_MACHINE instead of COMPATIBLE_HOST | amx3-cm3: Use COMPATIBLE_MACHINE instead of COMPATIBLE_HOST
This represents it correctly in package arch as well
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>
| BitBake | mit | rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti | bitbake | ## Code Before:
DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"
PV = "1.9.2"
PR = "r0"
SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c"
BRANCH ?= "ti-v4.1.y"
SRC_URI = "git://git.ti.com/processor-firmware/ti... |
c7c62e9ffe5fe529e0e54c873381254bca872acc | .travis.yml | .travis.yml |
language: python
python:
- "3.3"
- "2.7"
install: pip install -r requirements/dev.txt
script: py.test tests
|
language: python
python:
- "3.3"
- "2.7"
install: pip install -r requirements/dev.txt
script: py.test tests
addons:
postgresql: "9.3"
env:
global:
- SQLALCHEMY_DATABASE_URI=postgres://postgres@localhost/clearstate
| Add env variable for Travis test | Add env variable for Travis test
| YAML | bsd-3-clause | sharoonthomas/clearstate,sharoonthomas/clearstate,sharoonthomas/clearstate | yaml | ## Code Before:
language: python
python:
- "3.3"
- "2.7"
install: pip install -r requirements/dev.txt
script: py.test tests
## Instruction:
Add env variable for Travis test
## Code After:
language: python
python:
- "3.3"
- "2.7"
install: pip install -r requirements/dev.txt
script: py.test tests
addon... |
5d7e0a0e397339b7a587f3963eb9440c27d26715 | src/main/kotlin/org/purescript/ide/formatting/PSBlock.kt | src/main/kotlin/org/purescript/ide/formatting/PSBlock.kt | package org.purescript.ide.formatting
import com.intellij.formatting.*
import com.intellij.formatting.Spacing.getReadOnlySpacing
import com.intellij.lang.ASTNode
import com.intellij.psi.TokenType.WHITE_SPACE
import com.intellij.psi.formatter.common.AbstractBlock
class PSBlock(
node: ASTNode,
wrap: Wrap?,
... | package org.purescript.ide.formatting
import com.intellij.formatting.*
import com.intellij.formatting.Spacing.getReadOnlySpacing
import com.intellij.lang.ASTNode
import com.intellij.psi.TokenType.WHITE_SPACE
import com.intellij.psi.formatter.common.AbstractBlock
class PSBlock(
node: ASTNode,
wrap: Wrap?,
... | Use spacing builder and don't have any indentation | Use spacing builder and don't have any indentation
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | kotlin | ## Code Before:
package org.purescript.ide.formatting
import com.intellij.formatting.*
import com.intellij.formatting.Spacing.getReadOnlySpacing
import com.intellij.lang.ASTNode
import com.intellij.psi.TokenType.WHITE_SPACE
import com.intellij.psi.formatter.common.AbstractBlock
class PSBlock(
node: ASTNode,
... |
e1897c60ee73956f776e32a43ad48e49e9f0d9ae | lib/dm-sqlserver-adapter/spec/setup.rb | lib/dm-sqlserver-adapter/spec/setup.rb | require 'dm-sqlserver-adapter'
require 'dm-core/spec/setup'
module DataMapper
module Spec
module Adapters
class SqlserverAdapter < Adapter
def connection_uri
"#{super};instance=SQLEXPRESS"
end
end
use SqlserverAdapter
end
end
end
| require 'dm-sqlserver-adapter'
require 'dm-core/spec/setup'
module DataMapper
module Spec
module Adapters
class SqlserverAdapter < Adapter
def connection_uri
if instance_name.size > 0
"#{super};instance=#{instance_name}"
else
super
end
... | Make SQL Server instance name configurable via DM_DB_SQLSERVER_INSTANCE. | Make SQL Server instance name configurable via DM_DB_SQLSERVER_INSTANCE.
| Ruby | mit | datamapper/dm-sqlserver-adapter | ruby | ## Code Before:
require 'dm-sqlserver-adapter'
require 'dm-core/spec/setup'
module DataMapper
module Spec
module Adapters
class SqlserverAdapter < Adapter
def connection_uri
"#{super};instance=SQLEXPRESS"
end
end
use SqlserverAdapter
end
end
end
## Instructio... |
5168a28ff8a268b5e01c336fa162730c4ac9bafb | AndroidRequestLoaders/src/main/java/ru/nixan/android/requestloaders/IRequest.java | AndroidRequestLoaders/src/main/java/ru/nixan/android/requestloaders/IRequest.java | package ru.nixan.android.requestloaders;
import android.content.Context;
/**
* Created by nixan on 11/26/13.
*/
public interface IRequest {
/**
* Executes the request. In case of any error in implemented protocol or actual implementation
* of network stack please throw an exception.
... | package ru.nixan.android.requestloaders;
import android.content.Context;
/**
* Created by nixan on 11/26/13.
*/
public interface IRequest {
/**
* Executes the request.
*/
public void execute(Context context);
/**
* Cancel the executing request
*/
public void ca... | Change comment about Exceptions in execute | Change comment about Exceptions in execute
| Java | mit | qiwi/java-android-network-request-loader | java | ## Code Before:
package ru.nixan.android.requestloaders;
import android.content.Context;
/**
* Created by nixan on 11/26/13.
*/
public interface IRequest {
/**
* Executes the request. In case of any error in implemented protocol or actual implementation
* of network stack please throw an exception.
... |
a49ce682441924e9e095e4a2dcce45523d302732 | packages/components/containers/overview/IndexSection.tsx | packages/components/containers/overview/IndexSection.tsx | import React from 'react';
import { Icon } from '../../components';
import { usePermissions } from '../../hooks';
import { classnames } from '../../helpers';
import Sections from './Sections';
import { SectionConfig } from '../../components/layout';
const IndexSection = ({ pages, limit = 4 }: { pages: SectionConfig[... | import React from 'react';
import { Icon } from '../../components';
import { usePermissions } from '../../hooks';
import { classnames } from '../../helpers';
import Sections from './Sections';
import { SectionConfig } from '../../components/layout';
const IndexSection = ({ pages, limit = 4 }: { pages: SectionConfig[... | Fix - icon alignment for overview | Fix - icon alignment for overview
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | typescript | ## Code Before:
import React from 'react';
import { Icon } from '../../components';
import { usePermissions } from '../../hooks';
import { classnames } from '../../helpers';
import Sections from './Sections';
import { SectionConfig } from '../../components/layout';
const IndexSection = ({ pages, limit = 4 }: { pages... |
8d833532f279cfa7ef1a6585da933f6b5b0e5eca | app/models/ahoy/visit.rb | app/models/ahoy/visit.rb | class Ahoy::Visit < ApplicationRecord
self.table_name = "ahoy_visits"
has_many :events, class_name: "Ahoy::Event"
belongs_to :user, optional: true
end
| class Ahoy::Visit < ApplicationRecord
self.table_name = "ahoy_visits"
has_many :events, class_name: "Ahoy::Event"
belongs_to :user, optional: true
belongs_to :site, optional: true
end
| Add association of Ahoy::Visit model with Site | Add association of Ahoy::Visit model with Site
| Ruby | agpl-3.0 | PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto | ruby | ## Code Before:
class Ahoy::Visit < ApplicationRecord
self.table_name = "ahoy_visits"
has_many :events, class_name: "Ahoy::Event"
belongs_to :user, optional: true
end
## Instruction:
Add association of Ahoy::Visit model with Site
## Code After:
class Ahoy::Visit < ApplicationRecord
self.table_name = "ahoy_vi... |
5190344c7fe41a84ad11cbcaa576eeabe6ac3861 | packages/he/hein.yaml | packages/he/hein.yaml | homepage: https://github.com/khanage/heineken
changelog-type: ''
hash: c8051d22122e9490a62f5d0daeece1a9f853161523d8a03f499544039c6252e4
test-bench-deps: {}
maintainer: khanage@gmail.com
synopsis: An extensible build helper for haskell, in the vein of leiningen.
changelog: ''
basic-deps:
ghc: ! '>=7.8.3'
bytestring:... | homepage: https://github.com/khanage/heineken
changelog-type: ''
hash: b00a3fa17cf2aca335c51844189072410351eb698cc073ae330bca0d0e1e5fb1
test-bench-deps: {}
maintainer: khanage@gmail.com
synopsis: An extensible build helper for haskell, in the vein of leiningen.
changelog: ''
basic-deps:
bytestring: ! '>=0.10.4.0'
b... | Update from Hackage at 2015-05-30T07:20:17+0000 | Update from Hackage at 2015-05-30T07:20:17+0000
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/khanage/heineken
changelog-type: ''
hash: c8051d22122e9490a62f5d0daeece1a9f853161523d8a03f499544039c6252e4
test-bench-deps: {}
maintainer: khanage@gmail.com
synopsis: An extensible build helper for haskell, in the vein of leiningen.
changelog: ''
basic-deps:
ghc: ! '>=7.8.... |
1d3d20b0c6546d74a366341c7a26d156918aa452 | .travis.yml | .travis.yml | language: bash
before_script:
- curl -L https://github.com/bmizerany/roundup/tarball/v0.0.6 | tar xvzf -
- cd bmizerany-roundup-f526c39 && ./configure && make && sudo make install
- cd -
script:
- ./test | language: bash
sudo: false
before_script:
- curl -L https://github.com/bmizerany/roundup/tarball/v0.0.6 | tar xvzf -
- cd bmizerany-roundup-f526c39 && ./configure && make && sudo make install
- cd -
script:
- ./test | Enable container-based tests for Travis. | Enable container-based tests for Travis.
| YAML | mit | michaelhue/diceypass | yaml | ## Code Before:
language: bash
before_script:
- curl -L https://github.com/bmizerany/roundup/tarball/v0.0.6 | tar xvzf -
- cd bmizerany-roundup-f526c39 && ./configure && make && sudo make install
- cd -
script:
- ./test
## Instruction:
Enable container-based tests for Travis.
## Code After:
language: bash
su... |
4036dc7bc9712b46ae12691a4dea46f3881e6675 | lib/tasks/roles.rake | lib/tasks/roles.rake | namespace :roles do
desc 'Create Role::DEFAULTS roles'
task :create => :environment do
Role::DEFAULTS.each do |name, title|
role = Role.new
role.name = name
if role.valid?
role.save
puts '-'*10
puts "Role '#{name}' created."
else
puts '-'*10
puts ... | namespace :roles do
desc 'Create Role::DEFAULTS roles'
task :create => :environment do
Role::DEFAULTS.each do |name, title|
role = Role.new
role.name = name
if role.valid?
role.save
puts '-'*10
puts "Role '#{name}' created."
else
puts '-'*10
puts ... | Add rake task for adding admin to a user | Add rake task for adding admin to a user
| Ruby | isc | OpenCampaign/opencampaign,OpenCampaign/opencampaign,OpenCampaign/opencampaign | ruby | ## Code Before:
namespace :roles do
desc 'Create Role::DEFAULTS roles'
task :create => :environment do
Role::DEFAULTS.each do |name, title|
role = Role.new
role.name = name
if role.valid?
role.save
puts '-'*10
puts "Role '#{name}' created."
else
puts '-'*... |
e399bc41856ad31e2e0937ac381f755bfde4e9e0 | subprojects/docs/src/samples/userguide/dependencyManagement/managingTransitiveDependencies/constraintsFromBOM/kotlin/build.gradle.kts | subprojects/docs/src/samples/userguide/dependencyManagement/managingTransitiveDependencies/constraintsFromBOM/kotlin/build.gradle.kts | plugins {
`java-library`
}
repositories {
mavenCentral()
}
// tag::dependency-on-bom[]
dependencies {
// import a BOM
implementation("org.springframework.boot:spring-boot-dependencies:1.5.8.RELEASE")
// define dependencies without versions
implementation("com.google.code.gson:gson")
imple... | plugins {
`java-library`
}
repositories {
mavenCentral()
}
// tag::dependency-on-bom[]
dependencies {
// import a BOM
implementation(dependencies.platform("org.springframework.boot:spring-boot-dependencies:1.5.8.RELEASE"))
// define dependencies without versions
implementation("com.google.cod... | Fix managingTransitiveDependencies/constraintsFromBOM Kotlin DSL sample | Fix managingTransitiveDependencies/constraintsFromBOM Kotlin DSL sample
Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
| Kotlin | apache-2.0 | robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle... | kotlin | ## Code Before:
plugins {
`java-library`
}
repositories {
mavenCentral()
}
// tag::dependency-on-bom[]
dependencies {
// import a BOM
implementation("org.springframework.boot:spring-boot-dependencies:1.5.8.RELEASE")
// define dependencies without versions
implementation("com.google.code.gson:... |
cf431dcb586665bad274808c5d3087c4e14b2265 | src/main/java/com/easternedgerobotics/rov/io/CpuInformation.java | src/main/java/com/easternedgerobotics/rov/io/CpuInformation.java | package com.easternedgerobotics.rov.io;
import com.easternedgerobotics.rov.value.CpuValue;
import com.pi4j.system.SystemInfo;
import rx.Observable;
import rx.exceptions.Exceptions;
import rx.schedulers.Schedulers;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public final class CpuInformation {
... | package com.easternedgerobotics.rov.io;
import com.easternedgerobotics.rov.value.CpuValue;
import com.pi4j.system.SystemInfo;
import rx.Observable;
import rx.exceptions.Exceptions;
import rx.schedulers.Schedulers;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public final class CpuInformation {
... | Remove call to observeOn Schedulers.immediate | Remove call to observeOn Schedulers.immediate
| Java | mit | EasternEdgeRobotics/2016,EasternEdgeRobotics/2016,EasternEdgeRobotics/2016,EasternEdgeRobotics/2016 | java | ## Code Before:
package com.easternedgerobotics.rov.io;
import com.easternedgerobotics.rov.value.CpuValue;
import com.pi4j.system.SystemInfo;
import rx.Observable;
import rx.exceptions.Exceptions;
import rx.schedulers.Schedulers;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public final class C... |
eb3cef16b49e878b9e2eedad387ee7642b705d01 | pb/generate-go.sh | pb/generate-go.sh |
dir_resolve()
{
cd "$1" 2>/dev/null || return $? # cd to desired directory; if fail, quell any error $package but return exit status
echo "`pwd -P`" # output full, link-resolved path
}
set -e
TARGET=`dirname $0`
TARGET=`dir_resolve $TARGET`
cd $TARGET
go get github.com/gogo/protobuf/{proto,protoc-gen-gogo,... |
dir_resolve()
{
cd "$1" 2>/dev/null || return $? # cd to desired directory; if fail, quell any error $package but return exit status
echo "`pwd -P`" # output full, link-resolved path
}
set -e
TARGET=`dirname $0`
TARGET=`dir_resolve $TARGET`
cd $TARGET
go get github.com/gogo/protobuf/{proto,protoc-gen-gogo,... | Update pb script to delete package directory first | Update pb script to delete package directory first
| Shell | mit | apoydence/talaria,apoydence/talaria | shell | ## Code Before:
dir_resolve()
{
cd "$1" 2>/dev/null || return $? # cd to desired directory; if fail, quell any error $package but return exit status
echo "`pwd -P`" # output full, link-resolved path
}
set -e
TARGET=`dirname $0`
TARGET=`dir_resolve $TARGET`
cd $TARGET
go get github.com/gogo/protobuf/{proto,... |
a940cf44619828cb47554217bb3706344a826ff9 | composer.json | composer.json | {
"name": "adamlundrigan/ldc-oauth2-crypto-token",
"description": "JWT CryptoToken configuration for zf-oauth2",
"keywords": [ "zf-oauth2", "apigility", "jwt" ],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Adam Lundrigan",
"email": "adam@lundrigan.ca"
}... | {
"name": "adamlundrigan/ldc-oauth2-crypto-token",
"description": "JWT CryptoToken configuration for zf-oauth2",
"keywords": [ "zf-oauth2", "apigility", "jwt" ],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Adam Lundrigan",
"email": "adam@lundrigan.ca"
}... | Set proper restriction on the version of oauth2-server-php | Set proper restriction on the version of oauth2-server-php
| JSON | bsd-3-clause | adamlundrigan/LdcOAuth2CryptoToken | json | ## Code Before:
{
"name": "adamlundrigan/ldc-oauth2-crypto-token",
"description": "JWT CryptoToken configuration for zf-oauth2",
"keywords": [ "zf-oauth2", "apigility", "jwt" ],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Adam Lundrigan",
"email": "adam@lundrig... |
0ff336db36006a6c64d75f8e0d4e29f79f4d37e1 | lib/cide_template.erb | lib/cide_template.erb | FROM <%= from %>
RUN useradd -m -U -d <%= CIDE_DIR %> cide
# Install system build dependencies here
<% as_root.each do |cmd| %>
RUN <%= cmd %>
<% end %>
# Add project data
ADD . <%= CIDE_SRC_DIR %>
RUN chown -R cide:cide <%= CIDE_DIR %>
# Switch to cide user
USER cide
WORKDIR <%= CIDE_SRC_DIR %>
ENV HOME <%= CID... | FROM <%= from %>
USER root
RUN useradd -m -U -d <%= CIDE_DIR %> cide
# Install system build dependencies here
<% as_root.each do |cmd| %>
RUN <%= cmd %>
<% end %>
# Add project data
ADD . <%= CIDE_SRC_DIR %>
RUN chown -R cide:cide <%= CIDE_DIR %>
# Switch to cide user
USER cide
WORKDIR <%= CIDE_SRC_DIR %>
ENV HO... | Make sure we first run as root | Make sure we first run as root
| HTML+ERB | mit | zimbatm/cide,zimbatm/cide,zimbatm/cide | html+erb | ## Code Before:
FROM <%= from %>
RUN useradd -m -U -d <%= CIDE_DIR %> cide
# Install system build dependencies here
<% as_root.each do |cmd| %>
RUN <%= cmd %>
<% end %>
# Add project data
ADD . <%= CIDE_SRC_DIR %>
RUN chown -R cide:cide <%= CIDE_DIR %>
# Switch to cide user
USER cide
WORKDIR <%= CIDE_SRC_DIR %>
... |
096cf2812f93d5a7e0567ba04bdaf39a4d4bad82 | src/DMS/Bundle/TwigExtensionBundle/Twig/Text/PadStringExtension.php | src/DMS/Bundle/TwigExtensionBundle/Twig/Text/PadStringExtension.php | <?php
namespace DMS\Bundle\TwigExtensionBundle\Twig\Date;
/**
* Adds support for Padding a String in Twig
*/
class PadStringExtension extends \Twig_Extension
{
/**
* Name of Extension
*
* @return string
*/
public function getName()
{
return 'PadStringExtension';
}
/**... | <?php
namespace DMS\Bundle\TwigExtensionBundle\Twig\Date;
/**
* Adds support for Padding a String in Twig
*/
class PadStringExtension extends \Twig_Extension
{
/**
* Name of Extension
*
* @return string
*/
public function getName()
{
return 'PadStringExtension';
}
/**... | Add check to ensure second argument is an integer | Add check to ensure second argument is an integer
| PHP | mit | oscherler/DMS,oscherler/DMS,rdohms/DMS,rdohms/DMS | php | ## Code Before:
<?php
namespace DMS\Bundle\TwigExtensionBundle\Twig\Date;
/**
* Adds support for Padding a String in Twig
*/
class PadStringExtension extends \Twig_Extension
{
/**
* Name of Extension
*
* @return string
*/
public function getName()
{
return 'PadStringExtension'... |
ec4a5b5ac931306e520f3a75da029a57e49be1d9 | lib/facebooker/mobile.rb | lib/facebooker/mobile.rb | module Facebooker
class Mobile
def initialize(session)
@session = session
end
# Used to determine whether the user identified by "uid" has enabled SMS for this application.
def can_send(user)
@session.post('facebook.sms.canSend', :uid => User.cast_to_facebook_id(user))
end
... | module Facebooker
class Mobile
def initialize(session)
@session = session
end
# Used to determine whether the user identified by "uid" has enabled SMS for this application.
def can_send(user)
@session.post('facebook.sms.canSend', :uid => User.cast_to_facebook_id(user))
end
... | Remove unused (for now) parameters on the SMS send and add a link to docs | Remove unused (for now) parameters on the SMS send and add a link to docs
| Ruby | mit | mmangino/facebooker,phallstrom/facebooker,Flameeyes/facebooker,Flameeyes/facebooker,rmatei/facebooker,mmangino/facebooker,codeodor/facebooker,phallstrom/facebooker,rmatei/facebooker,codeodor/facebooker | ruby | ## Code Before:
module Facebooker
class Mobile
def initialize(session)
@session = session
end
# Used to determine whether the user identified by "uid" has enabled SMS for this application.
def can_send(user)
@session.post('facebook.sms.canSend', :uid => User.cast_to_facebook_id(user))
... |
45d9664c1bfb07f5b74c0ee2f5a190e64d245881 | app/models/coursewareable/asset.rb | app/models/coursewareable/asset.rb | module Coursewareable
# Asset/Upload STI model
class Asset < ActiveRecord::Base
attr_accessible :description
# Relationships
belongs_to :user
belongs_to :classroom
belongs_to :assetable, :polymorphic => true
delegate :url, :to => :attachment
# Validations
validates_presence_of :use... | module Coursewareable
# Asset/Upload STI model
class Asset < ActiveRecord::Base
attr_accessible :description
# Relationships
belongs_to :user
belongs_to :classroom
belongs_to :assetable, :polymorphic => true
delegate :url, :to => :attachment
# Validations
validates_presence_of :use... | Refactor file upload limits due to latest gem updates. | Refactor file upload limits due to latest gem updates. | Ruby | mit | Courseware/coursewareable | ruby | ## Code Before:
module Coursewareable
# Asset/Upload STI model
class Asset < ActiveRecord::Base
attr_accessible :description
# Relationships
belongs_to :user
belongs_to :classroom
belongs_to :assetable, :polymorphic => true
delegate :url, :to => :attachment
# Validations
validates_... |
5f9cefdd4194b577484a5d7dca9c2cd1c6a826ab | config_example.yaml | config_example.yaml | ---
:server: irc.freenode.net
:port: 6667
:serverpass:
:username: bot
:nickname: bot
:realname: Bot
:userpass:
:channels:
- "#channel_one"
- "#channel_two"
:plugins:
- :Help
- :Clock
- :Example
- :Loader
- :Translate
- :Mnemonic
- :NumberSpell
- :Language
- :Converter
| ---
:server: irc.freenode.net
:port: 6667
:serverpass:
:username: bot
:nickname: bot
:realname: Bot
:userpass:
:channels:
- "#channel_one"
- "#channel_two"
:plugins:
- :Help
- :Clock
- :Example
- :Loader
- :Translate
- :Mnemonic
- :NumberSpell
- :Language
- :EDICT
- :KANJIDIC
- :Converter
| Add EDICT and KANJIDIC to config example | Add EDICT and KANJIDIC to config example
| YAML | agpl-3.0 | k5bot/k5bot,k5bot/k5bot,k5bot/k5bot | yaml | ## Code Before:
---
:server: irc.freenode.net
:port: 6667
:serverpass:
:username: bot
:nickname: bot
:realname: Bot
:userpass:
:channels:
- "#channel_one"
- "#channel_two"
:plugins:
- :Help
- :Clock
- :Example
- :Loader
- :Translate
- :Mnemonic
- :NumberSpell
- :Language
- :Converter
## Instruction:
Add EDICT and KANJ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.