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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9fab463fa727d096bc1cead3ba228fa81f059fdb | cookiecutter.json | cookiecutter.json | {
"app_name": "Name of your app",
"repo_name":"Name of the repo for your app",
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"year": "2014",
"domain_name": "example.com",
"copyright": "Your name or company"
}
| {
"app_name": "django-fancy-app",
"repo_name":"fancy_app",
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"year": "2014",
"copyright": "Your name or that of your company"
}
| Remove domain and improve default values | Remove domain and improve default values
| JSON | bsd-3-clause | elbaschid/cc-django-app,elbaschid/cc-django-app | json | ## Code Before:
{
"app_name": "Name of your app",
"repo_name":"Name of the repo for your app",
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"year": "2014",
"domain_name": "example.com",
"copyright": "Your name or company"
}
## ... |
167abdba066a9188189e033a9fc48dbf3a57b365 | src/main/scala/nimrod/util/DiskCounter.scala | src/main/scala/nimrod/util/DiskCounter.scala | package nimrod.util
import org.mapdb.DB
import scala.collection.JavaConversions._
import java.lang.Integer
/**
* An implementation of a counter that is disk-based and increments (and is thread-safe)
*/
class DiskCounter[A](sorted : Boolean = false, db : DB = DiskCounter.createDB()) {
private val theMap = if(sorte... | package nimrod.util
import org.mapdb.DB
import scala.collection.JavaConversions._
import java.lang.Integer
/**
* An implementation of a counter that is disk-based and increments (and is thread-safe)
*/
class DiskCounter[A](sorted : Boolean = false, db : DB = DiskCounter.createDB()) {
private val name = math.abs(m... | Fix bug in disk counter | Fix bug in disk counter
| Scala | apache-2.0 | jmccrae/nimrod,jmccrae/nimrod | scala | ## Code Before:
package nimrod.util
import org.mapdb.DB
import scala.collection.JavaConversions._
import java.lang.Integer
/**
* An implementation of a counter that is disk-based and increments (and is thread-safe)
*/
class DiskCounter[A](sorted : Boolean = false, db : DB = DiskCounter.createDB()) {
private val t... |
eb7185ec14ddccf24ee5d8e9215d7569ecb92d03 | build/appveyor.sh | build/appveyor.sh |
set -e
declare -r ROOT=$(realpath $(dirname $0)/..)
dotnet --info
dotnet build -c Release src/NodaTime-All.sln
# Run just the net451 tests under dotCover
$ROOT/build/coverage.sh
dotnet run --no-build -c Release -f netcoreapp1.0 -p src/NodaTime.Test -- --where=cat!=Slow
dotnet run --no-build -c Release -f netcorea... |
set -e
declare -r ROOT=$(realpath $(dirname $0)/..)
cd $ROOT
dotnet --info
dotnet build -c Release src/NodaTime-All.sln
# Run just the net451 tests under dotCover
build/coverage.sh
dotnet run --no-build -c Release -f netcoreapp1.0 -p src/NodaTime.Test -- --where=cat!=Slow
dotnet run --no-build -c Release -f netco... | Change to the root directory before running anything | Change to the root directory before running anything | Shell | apache-2.0 | nodatime/nodatime,malcolmr/nodatime,malcolmr/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,jskeet/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,jskeet/nodatime,nodatime/nodatime | shell | ## Code Before:
set -e
declare -r ROOT=$(realpath $(dirname $0)/..)
dotnet --info
dotnet build -c Release src/NodaTime-All.sln
# Run just the net451 tests under dotCover
$ROOT/build/coverage.sh
dotnet run --no-build -c Release -f netcoreapp1.0 -p src/NodaTime.Test -- --where=cat!=Slow
dotnet run --no-build -c Rel... |
00792493ef65da150ce5d3e4cc7c15660ce1b54a | tests/run-pass/file_manipulation.rs | tests/run-pass/file_manipulation.rs | // ignore-windows: File handling is not implemented yet
// compile-flags: -Zmiri-disable-isolation
use std::fs::{File, remove_file};
use std::io::{Read, Write};
fn main() {
let path = "./tests/hello.txt";
let bytes = b"Hello, World!\n";
// Test creating, writing and closing a file (closing is tested when ... | // ignore-windows: File handling is not implemented yet
// compile-flags: -Zmiri-disable-isolation
use std::fs::{File, remove_file};
use std::io::{Read, Write};
fn main() {
let path = "./tests/hello.txt";
let bytes = b"Hello, World!\n";
// Test creating, writing and closing a file (closing is tested when ... | Add tests for non-existing files | Add tests for non-existing files
| Rust | apache-2.0 | rust-lang/miri,rust-lang/miri,rust-lang/miri,rust-lang/miri,tsion/miri | rust | ## Code Before:
// ignore-windows: File handling is not implemented yet
// compile-flags: -Zmiri-disable-isolation
use std::fs::{File, remove_file};
use std::io::{Read, Write};
fn main() {
let path = "./tests/hello.txt";
let bytes = b"Hello, World!\n";
// Test creating, writing and closing a file (closing... |
34325f9785cc58c4fd01107d136361892a9bc05c | package.json | package.json | {
"name": "window-listing",
"description": "NodeJS package for listing windows (window id, window title, process id, process name) on OS X.",
"version": "0.1.0",
"main": "window_listing.js",
"gypfile": true,
"author": "Vegard Deila",
"scripts": {
"test": "node ./test/test.js"
},
"dependencies": {}... | {
"name": "window-listing",
"description": "NodeJS package for listing windows (window id, window title, process id, process name) on OS X.",
"version": "0.1.0",
"main": "window_listing.js",
"gypfile": true,
"author": "Vegard Deila",
"os" : [ "darwin" ],
"scripts": {
"test": "node ./test/test.js"
... | Add "os" attributes to packge.json | Add "os" attributes to packge.json
| JSON | mit | Vegard-/node-window-listing | json | ## Code Before:
{
"name": "window-listing",
"description": "NodeJS package for listing windows (window id, window title, process id, process name) on OS X.",
"version": "0.1.0",
"main": "window_listing.js",
"gypfile": true,
"author": "Vegard Deila",
"scripts": {
"test": "node ./test/test.js"
},
"d... |
20d9ab7a1f1b6c4a8c26b535e92a6f3d3d7a2042 | swagger-models/src/test/groovy/com/mangofactory/swagger/models/property/bean/BeanModelPropertyProviderSpec.groovy | swagger-models/src/test/groovy/com/mangofactory/swagger/models/property/bean/BeanModelPropertyProviderSpec.groovy | package com.mangofactory.swagger.models.property.bean
import com.fasterxml.classmate.ResolvedType
import com.fasterxml.classmate.TypeResolver
import com.fasterxml.jackson.databind.ObjectMapper
import com.mangofactory.swagger.mixins.ModelPropertyLookupSupport
import com.mangofactory.swagger.mixins.TypesForTestingSuppor... | package com.mangofactory.swagger.models.property.bean
import com.fasterxml.classmate.ResolvedType
import com.fasterxml.classmate.TypeResolver
import com.fasterxml.jackson.databind.ObjectMapper
import com.mangofactory.swagger.mixins.ModelPropertyLookupSupport
import com.mangofactory.swagger.mixins.TypesForTestingSuppor... | Add propertiesForDeserialization to the test | Add propertiesForDeserialization to the test
| Groovy | apache-2.0 | ammmze/swagger-springmvc,maksimu/springfox,zhiqinghuang/springfox,jlstrater/springfox,cbornet/springfox,jlstrater/springfox,arshadalisoomro/springfox,thomsonreuters/springfox,maksimu/springfox,vmarusic/springfox,arshadalisoomro/springfox,kevinconaway/springfox,RobWin/springfox,cbornet/springfox,zorosteven/springfox,tho... | groovy | ## Code Before:
package com.mangofactory.swagger.models.property.bean
import com.fasterxml.classmate.ResolvedType
import com.fasterxml.classmate.TypeResolver
import com.fasterxml.jackson.databind.ObjectMapper
import com.mangofactory.swagger.mixins.ModelPropertyLookupSupport
import com.mangofactory.swagger.mixins.Types... |
7923489ce1041e237cc284f0ef6c1a9d6daf65e6 | README.md | README.md |
Generate node module API markdown with dox
[](https://travis-ci.org/codeactual/gitemplate-dox)
## Example
```js
```
## Installation
### [NPM](https://npmjs.org/package/gitemplate-dox)
npm install gitemplate-dox
## GitemplateDox API
[Docume... |
Generate node module API markdown with dox
[](https://travis-ci.org/codeactual/gitemplate-dox)
## Example
gitemplate-dox \
--input lib/gitemplate-dox/index.js \
--output docs/GitemplateDox.md
## Installation
### [NPM](https://npmj... | Update example, API docs link | docs(readme): Update example, API docs link
| Markdown | mit | codeactual/apidox | markdown | ## Code Before:
Generate node module API markdown with dox
[](https://travis-ci.org/codeactual/gitemplate-dox)
## Example
```js
```
## Installation
### [NPM](https://npmjs.org/package/gitemplate-dox)
npm install gitemplate-dox
## Gitemplate... |
be9f414c1c4371bf69d6b05de184057faa1a6304 | _layouts/presentation.html | _layouts/presentation.html | <!DOCTYPE html>
<html>
<head>
<title>{{page.title}}</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.... | <!DOCTYPE html>
<html>
<head>
<title>{{page.title}}</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.... | Update slide ratio to 16:9 | Update slide ratio to 16:9
| HTML | mit | z-jason/z-jason-pages,z-jason/z-jason.github.io,z-jason/z-jason.github.io,z-jason/z-jason-pages | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>{{page.title}}</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://f... |
263ac3dce49e512f0fc95ff249792a435f08f232 | src/scripts/javarun.sh | src/scripts/javarun.sh | java -classpath $DEVBASE/exec/DEV/java/classes:$DEVBASE/../RemoteTea/classes $* | java -classpath $DEVBASE/exec/DEV/java/classes:$DEVBASE/external/RemoteTea/oncrpc.jar $*
| Use RemoteTea included in TSP tree | Use RemoteTea included in TSP tree
| Shell | lgpl-2.1 | deweerdt/TSP,deweerdt/TSP,deweerdt/TSP,deweerdt/TSP,deweerdt/TSP | shell | ## Code Before:
java -classpath $DEVBASE/exec/DEV/java/classes:$DEVBASE/../RemoteTea/classes $*
## Instruction:
Use RemoteTea included in TSP tree
## Code After:
java -classpath $DEVBASE/exec/DEV/java/classes:$DEVBASE/external/RemoteTea/oncrpc.jar $*
|
6c0d35d8a6466ac0f5b0d3d3db063fe0d2446984 | features/unique/support/unique.fixture.js | features/unique/support/unique.fixture.js | /**
* Dependencies
*/
var Waterline = require('waterline');
module.exports = Waterline.Collection.extend({
identity: 'unique',
tableName: 'uniqueTable',
connection: 'uniqueConn',
primaryKey: 'id',
attributes: {
name: {
type: 'string',
autoMigrations: {
columnType: 'varchar' ... | /**
* Dependencies
*/
var Waterline = require('waterline');
module.exports = Waterline.Collection.extend({
identity: 'unique',
tableName: 'uniqueTable',
connection: 'uniqueConn',
primaryKey: 'id',
attributes: {
name: {
type: 'string',
autoMigrations: {
columnType: 'varchar' ... | Make unique attribute required, to please sails-disk | Make unique attribute required, to please sails-disk
| JavaScript | mit | balderdashy/waterline-adapter-tests | javascript | ## Code Before:
/**
* Dependencies
*/
var Waterline = require('waterline');
module.exports = Waterline.Collection.extend({
identity: 'unique',
tableName: 'uniqueTable',
connection: 'uniqueConn',
primaryKey: 'id',
attributes: {
name: {
type: 'string',
autoMigrations: {
columnType:... |
291ce34aef60b48d4661a2a8f4afbfabf3cafd45 | config/secrets.yml | config/secrets.yml | development:
secret_key_base: 6ba3543e41089e927342bf4fa48d2cb695a08087f2431b7ee5a17857b4a010c6b831a598406631e49c223da7924f00b3ff4911e130c13a962b7fd7d722cdb9a0
test:
secret_key_base: feb8b387ecb54f93a2d34c5be13283e043bbe34412c35c919ac8e1fe9e60131fc2f320d55700f89c5f0abf14bbfda345c93ed3e9f5d0c9683282f25938e190fc
pro... | development:
secret_key_base: 6ba3543e41089e927342bf4fa48d2cb695a08087f2431b7ee5a17857b4a010c6b831a598406631e49c223da7924f00b3ff4911e130c13a962b7fd7d722cdb9a0
test:
secret_key_base: feb8b387ecb54f93a2d34c5be13283e043bbe34412c35c919ac8e1fe9e60131fc2f320d55700f89c5f0abf14bbfda345c93ed3e9f5d0c9683282f25938e190fc
pro... | Read the secret token in production off the environment | Read the secret token in production off the environment
| YAML | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | yaml | ## Code Before:
development:
secret_key_base: 6ba3543e41089e927342bf4fa48d2cb695a08087f2431b7ee5a17857b4a010c6b831a598406631e49c223da7924f00b3ff4911e130c13a962b7fd7d722cdb9a0
test:
secret_key_base: feb8b387ecb54f93a2d34c5be13283e043bbe34412c35c919ac8e1fe9e60131fc2f320d55700f89c5f0abf14bbfda345c93ed3e9f5d0c9683282f... |
3881aa6cbdbc7e4f642e50e03fe4d94f2bfa7e96 | config/tresor-broker/config/settings/production.yml | config/tresor-broker/config/settings/production.yml | pdp_url: 'http://pdp:8080/policy/:client_id/:service_id'
pdp_username: 'broker'
pdp_password: 'broker'
demo_services:
'broker':
:uuid: '5d64d146-1d24-426b-9f3c-c75932ebb03e'
:url: 'http://broker:3000'
:name: 'TRESOR Broker'
'pap':
:uuid: 'ddd99540-18b4-455c-b98d-b70f7d8588d2'
:url: 'http://pap'
... | pdp_url: 'http://pdp:8080/policy/:client_id/:service_id'
pdp_username: 'broker'
pdp_password: 'broker'
demo_services:
'broker':
:uuid: '5d64d146-1d24-426b-9f3c-c75932ebb03e'
:url: 'http://broker:3000'
:name: 'TRESOR Broker'
'pap':
:uuid: 'ddd99540-18b4-455c-b98d-b70f7d8588d2'
:url: 'http://pap'
... | Change Kibana backend URL in example Broker services | Change Kibana backend URL in example Broker services
| YAML | apache-2.0 | TU-Berlin-SNET/tresor-ecosystem,TU-Berlin-SNET/tresor-ecosystem,TU-Berlin-SNET/tresor-ecosystem,TU-Berlin-SNET/tresor-ecosystem | yaml | ## Code Before:
pdp_url: 'http://pdp:8080/policy/:client_id/:service_id'
pdp_username: 'broker'
pdp_password: 'broker'
demo_services:
'broker':
:uuid: '5d64d146-1d24-426b-9f3c-c75932ebb03e'
:url: 'http://broker:3000'
:name: 'TRESOR Broker'
'pap':
:uuid: 'ddd99540-18b4-455c-b98d-b70f7d8588d2'
:ur... |
df09aef88add12e844097563a6e67ae949610b9e | githubpub.js | githubpub.js | var express = require('express'),
pubnub = require('pubnub');
pubnub = pubnub.init({
publish_key: process.env.PUBNUB_PUBLISH_KEY || 'demo',
subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY || 'demo',
secret_key: process.env.PUBNUB_SECRET_KEY || '',
ssl: false
});
var app = express.createServer();
app.confi... | var express = require('express'),
pubnub = require('pubnub');
pubnub = pubnub.init({
publish_key: process.env.PUBNUB_PUBLISH_KEY || 'demo',
subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY || 'demo',
secret_key: process.env.PUBNUB_SECRET_KEY || '',
ssl: false
});
var app = express.createServer();
app.confi... | Update for github payload structure | Update for github payload structure | JavaScript | bsd-3-clause | kpdecker/githubpub | javascript | ## Code Before:
var express = require('express'),
pubnub = require('pubnub');
pubnub = pubnub.init({
publish_key: process.env.PUBNUB_PUBLISH_KEY || 'demo',
subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY || 'demo',
secret_key: process.env.PUBNUB_SECRET_KEY || '',
ssl: false
});
var app = express.createSer... |
fc118fd11b4384bf1babd1e4f4db22b2714d750b | package.json | package.json | {
"name": "@rowno/sparkline",
"version": "1.0.0",
"description": "Lightweight React sparkline ✨ 📈",
"author": "Roland Warmerdam (https://roland.codes)",
"keywords": ["react", "sparkline"],
"repository": "Rowno/sparkline",
"license": "ISC",
"private": true,
"main": "lib/index.js",
"scripts": {
"... | {
"name": "@rowno/sparkline",
"version": "1.0.0",
"description": "Lightweight React sparkline ✨ 📈",
"author": "Roland Warmerdam (https://roland.codes)",
"keywords": ["react", "sparkline"],
"repository": "Rowno/sparkline",
"license": "ISC",
"private": true,
"main": "lib/index.js",
"scripts": {
"... | Remove redundant xo esnext config | Remove redundant xo esnext config
| JSON | isc | Rowno/sparkline | json | ## Code Before:
{
"name": "@rowno/sparkline",
"version": "1.0.0",
"description": "Lightweight React sparkline ✨ 📈",
"author": "Roland Warmerdam (https://roland.codes)",
"keywords": ["react", "sparkline"],
"repository": "Rowno/sparkline",
"license": "ISC",
"private": true,
"main": "lib/index.js",
"s... |
3389dee62bcf24b67c0c1c83d2866431dad3df24 | binary-search-tree.js | binary-search-tree.js | // Program that creates a binary search tree: each node has up to two children, and all left descendants of a node is less than or equal to the node and all right descendants are greater than the node
// create node class
function Node(val) {
this.value = val;
this.left = null;
this.right = null;
}
// create const... | // Program that creates a binary search tree: each node has up to two children, and all left descendants of a node is less than or equal to the node and all right descendants are greater than the node
// create node class
function Node(val) {
this.value = val;
this.left = null;
this.right = null;
}
// create const... | Add push function to binary search tree program | Add push function to binary search tree program
| JavaScript | mit | derekmpham/interview-prep,derekmpham/interview-prep | javascript | ## Code Before:
// Program that creates a binary search tree: each node has up to two children, and all left descendants of a node is less than or equal to the node and all right descendants are greater than the node
// create node class
function Node(val) {
this.value = val;
this.left = null;
this.right = null;
}
... |
a8004c7c8325c13fb59f35e38e3cc0010e8e52a0 | src/de/fhdw/wipbank/server/model/Transaction.java | src/de/fhdw/wipbank/server/model/Transaction.java | package de.fhdw.wipbank.server.model;
import java.math.BigDecimal;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import com.sun.jmx.snmp.Timestamp;
@XmlRootElement
public class Transaction {
private int id;
private Account sender;
... | package de.fhdw.wipbank.server.model;
import java.math.BigDecimal;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
@XmlRootElement
public class Transaction {
private int id;
private Account sender;
private Account receiver;
privat... | Revert "transactionDate : Date -> Timestamp" | Revert "transactionDate : Date -> Timestamp"
This reverts commit 439a81ea91d50f4fec21ff9964698daa08a4f09a.
| Java | apache-2.0 | wip-bank/server | java | ## Code Before:
package de.fhdw.wipbank.server.model;
import java.math.BigDecimal;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import com.sun.jmx.snmp.Timestamp;
@XmlRootElement
public class Transaction {
private int id;
private Acco... |
f213c73980909af6972d65a6a64793e58f9ad410 | features/directory.feature | features/directory.feature | Feature: Output
In order to open gems in my favorite editor
As a developer using gemedit
I want my editor started from the gem's directory
Scenario: echoing pwd and editor args
When I run "bundle exec gem edit bundler --editor='echo echo $(pwd)'"
Then the output should contain "bundler"
Scenario: e... | Feature: Output
In order to open gems in an editor
As a developer using gemedit
I want my editor started from the gem's directory
Scenario: echoing pwd and editor args
When I run "bundle exec gem edit bundler --editor='echo echo MYPWD-$(pwd)-MYPWD'"
Then the output should match / MYPWD-.*bundler.*-MYP... | Make the pwd output more noticeable | Make the pwd output more noticeable
| Cucumber | mit | lmarlow/gemedit | cucumber | ## Code Before:
Feature: Output
In order to open gems in my favorite editor
As a developer using gemedit
I want my editor started from the gem's directory
Scenario: echoing pwd and editor args
When I run "bundle exec gem edit bundler --editor='echo echo $(pwd)'"
Then the output should contain "bundler... |
1733c1ce87109dfdf41412332b53180c41f6cafb | lib/activator.js | lib/activator.js | 'use strict';
class Activator {
/**
*
* @param _super
* @param constructorArgs
*/
constructor(_super, constructorArgs) {
let Class = Object.create(_super.__proto__);
return new Class.constructor(...constructorArgs);
}
}
module.exports = Activator;
| 'use strict';
class Activator {
/**
*
* @param classDef
* @param constructorArgs
* @returns {Activator}
*/
constructor(classDef, constructorArgs) {
let Class = Object.create(classDef.__proto__);
return new Class.constructor(...constructorArgs);
}
/**
*
... | Add methods to the api | Add methods to the api
| JavaScript | mit | Yontih/node-activator | javascript | ## Code Before:
'use strict';
class Activator {
/**
*
* @param _super
* @param constructorArgs
*/
constructor(_super, constructorArgs) {
let Class = Object.create(_super.__proto__);
return new Class.constructor(...constructorArgs);
}
}
module.exports = Activator;
## Ins... |
bac3921197ce7e0598a1e8f5dcbd03b234111959 | lib/web/auth/gitlab/index.js | lib/web/auth/gitlab/index.js | 'use strict'
const Router = require('express').Router
const passport = require('passport')
const GitlabStrategy = require('passport-gitlab2').Strategy
const config = require('../../../config')
const response = require('../../../response')
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
... | 'use strict'
const Router = require('express').Router
const passport = require('passport')
const GitlabStrategy = require('passport-gitlab2').Strategy
const config = require('../../../config')
const response = require('../../../response')
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
... | Add https_proxy support to gitlab oauth | Add https_proxy support to gitlab oauth
Signed-off-by: Ruben ten Hove <46f1a0bd5592a2f9244ca321b129902a06b53e03@rhtenhove.nl> | JavaScript | unknown | hackmdio/hackmd,hackmdio/hackmd,jackycute/HackMD,jackycute/HackMD,jackycute/HackMD,hackmdio/hackmd | javascript | ## Code Before:
'use strict'
const Router = require('express').Router
const passport = require('passport')
const GitlabStrategy = require('passport-gitlab2').Strategy
const config = require('../../../config')
const response = require('../../../response')
const { setReturnToFromReferer, passportGeneralCallback } = requ... |
de4b0a50fdc7c0ea368c9a5c0238ae11bbc638e9 | README.md | README.md | rsf
===
A high-performance access control system for Java designed to provide fine grained permissions based access control for application objects. It has support for hierarchical domains, super users, permission inheritance and impersonation.
| rsf
===
Resource Security Framework (RSF) is a high-performance access control system for Java designed to provide fine grained permissions based access control for application objects. It has support for hierarchical domains, super users, permission inheritance and impersonation.
| Add what the RSF acronym expands to | Add what the RSF acronym expands to
| Markdown | apache-2.0 | fspinnenhirn/oacc-core-ci,acciente/oacc-core | markdown | ## Code Before:
rsf
===
A high-performance access control system for Java designed to provide fine grained permissions based access control for application objects. It has support for hierarchical domains, super users, permission inheritance and impersonation.
## Instruction:
Add what the RSF acronym expands to
## C... |
5e35a0649e5bd9923f38f840ed9b620ec92e6ae3 | appengine/test/test_helper.rb | appengine/test/test_helper.rb |
module TestHelper
# Execute the given command in a shell.
def execute_cmd(cmd)
puts cmd
system cmd
end
# Assert that execution of the given command produces a zero exit code.
def assert_cmd_succeeds(cmd)
puts cmd
system cmd
exit_code = $?.exitstatus
if exit_code != 0
flunk "Go... |
module TestHelper
# Execute the given command in a shell.
def execute_cmd(cmd)
puts cmd
system cmd
end
# Assert that execution of the given command produces a zero exit code.
def assert_cmd_succeeds(cmd)
puts cmd
system cmd
exit_code = $?.exitstatus
if exit_code != 0
flunk "Go... | Update assert_cmd_output helper to use Integer.upto instead of Kernel.loop | Update assert_cmd_output helper to use Integer.upto instead of Kernel.loop
| Ruby | apache-2.0 | GoogleCloudPlatform/ruby-docker,dazuma/ruby-docker,dazuma/ruby-docker,dazuma/ruby-docker,dazuma/ruby-docker,GoogleCloudPlatform/ruby-docker,GoogleCloudPlatform/ruby-docker,GoogleCloudPlatform/ruby-docker,remi/ruby-docker | ruby | ## Code Before:
module TestHelper
# Execute the given command in a shell.
def execute_cmd(cmd)
puts cmd
system cmd
end
# Assert that execution of the given command produces a zero exit code.
def assert_cmd_succeeds(cmd)
puts cmd
system cmd
exit_code = $?.exitstatus
if exit_code != 0... |
7574a89fc37fa5231ebd249da1ea12fde28fd64d | Source/SwiftCovFramework/Xcodebuild.swift | Source/SwiftCovFramework/Xcodebuild.swift | //
// Xcodebuild.swift
// swiftcov
//
// Created by Kishikawa Katsumi on 2015-05-26.
// Copyright (c) 2015 Realm. All rights reserved.
//
import Foundation
import Result
public struct Xcodebuild {
public var arguments: [String]
public init(argments args: [String]) {
arguments = Array(split(args, ... | //
// Xcodebuild.swift
// swiftcov
//
// Created by Kishikawa Katsumi on 2015-05-26.
// Copyright (c) 2015 Realm. All rights reserved.
//
import Foundation
import Result
public struct Xcodebuild {
public var arguments: [String]
public init(argments args: [String]) {
arguments = Array(split(args, ... | Set ONLY_ACTIVE_ARCH to NO because that settings is default YES on Debug configuration | Set ONLY_ACTIVE_ARCH to NO because that settings is default YES on Debug configuration
| Swift | mit | realm/SwiftCov,colemancda/SwiftCov,colemancda/SwiftCov,kishikawakatsumi/SwiftCov,domenicosolazzo/SwiftCov,colemancda/SwiftCov,domenicosolazzo/SwiftCov,kishikawakatsumi/SwiftCov,kishikawakatsumi/SwiftCov,realm/SwiftCov,kishikawakatsumi/SwiftCov,ikesyo/SwiftCov,kishikawakatsumi/SwiftCov,ikesyo/SwiftCov,hejunbinlan/SwiftC... | swift | ## Code Before:
//
// Xcodebuild.swift
// swiftcov
//
// Created by Kishikawa Katsumi on 2015-05-26.
// Copyright (c) 2015 Realm. All rights reserved.
//
import Foundation
import Result
public struct Xcodebuild {
public var arguments: [String]
public init(argments args: [String]) {
arguments = Ar... |
477d92566c028808599fd391bdc83542d3da9076 | circle.yml | circle.yml | machine:
pre:
- export DEBIAN_FRONTEND=noninteractive && sudo apt-get remove -y --purge mysql-server mysql-community-server
environment:
PATH: "~/qcert/bin/:~/spark-2.1.0-bin-hadoop2.7/bin/:$PATH"
dependencies:
cache_directories:
- "~/.opam"
- "~/spark-2.1.0-bin-hadoop2.7"
pre:
- sudo add-ap... | machine:
pre:
- export DEBIAN_FRONTEND=noninteractive && sudo apt-get remove -y --purge mysql-server mysql-community-server
environment:
PATH: "~/qcert/bin/:~/spark-2.1.0-bin-hadoop2.7/bin/:$PATH"
general:
artifacts:
- "tests/spark2/test01_nnrc/irs"
dependencies:
cache_directories:
- "~/.opam"... | Save IRs as build artifacts for easy access | Save IRs as build artifacts for easy access
| YAML | apache-2.0 | querycert/qcert,querycert/qcert,querycert/qcert,querycert/qcert,querycert/qcert | yaml | ## Code Before:
machine:
pre:
- export DEBIAN_FRONTEND=noninteractive && sudo apt-get remove -y --purge mysql-server mysql-community-server
environment:
PATH: "~/qcert/bin/:~/spark-2.1.0-bin-hadoop2.7/bin/:$PATH"
dependencies:
cache_directories:
- "~/.opam"
- "~/spark-2.1.0-bin-hadoop2.7"
pre:
... |
0d46ea74ed5c90e166019e8208506c79fdb5a9ab | _layouts/default.html | _layouts/default.html | {% include head.html %}
<div id="mainbody">
<div id="topbar">
<img src="images/SidebarLogo.png" style="float: left;" />
<h1 style="float: left; margin: 10px 1em 0 1em; font-size: 200%;">{{ page.title }}</h1>
<div class="dropdown" style="float: right; margin-top: 1em;">
<a href="in... | {% include head.html %}
<div id="mainbody">
<div id="topbar">
<a href="./"><img src="images/SidebarLogo.png" style="float: left;" /></a>
<h1 style="float: left; margin: 10px 1em 0 1em; font-size: 200%;">{{ page.title }}</h1>
<div class="dropdown" style="float: right; margin-top: 1em;">
... | Add a link for the logo image to the main page | Add a link for the logo image to the main page
Signed-off-by: Jordan Justen <ab3d56373f2461770fa8feb620844a5acfe35e29@gmail.com>
| HTML | bsd-2-clause | Teino1978-Corp/Teino1978-Corp-tianocore.github.io,Teino1978-Corp/Teino1978-Corp-tianocore.dashboard,tianocore/tianocore.github.io,jljusten/tianocore,Teino1978-Corp/Teino1978-Corp-tianocore.github.io,tianocore/tianocore.github.io,jljusten/tianocore,Teino1978-Corp/Teino1978-Corp-tianocore.dashboard | html | ## Code Before:
{% include head.html %}
<div id="mainbody">
<div id="topbar">
<img src="images/SidebarLogo.png" style="float: left;" />
<h1 style="float: left; margin: 10px 1em 0 1em; font-size: 200%;">{{ page.title }}</h1>
<div class="dropdown" style="float: right; margin-top: 1em;">
... |
d3a66d299d329bd5520fe64b6c88481a4bc41b99 | README.md | README.md |
Clone the repo and run the install script:
git clone https://github.com/Casecommons/vim-config.git ~/.vim
cd ~/.vim
./install
## Updating
Provided your working copy is clean, updating is simple:
cd ~/.vim
./update
|
Clone the repo and run the install script:
git clone https://github.com/Casecommons/vim-config.git ~/.vim
cd ~/.vim
./install
## Updating
Provided your working copy is clean, updating is simple:
cd ~/.vim
./update
## Plugin installation
### YouCompleteMe
The YouCompleteMe plugin can be a bit... | Update docs for help installing YouCompleteMe plugin | Update docs for help installing YouCompleteMe plugin
...because it really is a pain. Goddamn compiled language things ;)
| Markdown | mit | buildgroundwork/vim-config,Casecommons/vim-config | markdown | ## Code Before:
Clone the repo and run the install script:
git clone https://github.com/Casecommons/vim-config.git ~/.vim
cd ~/.vim
./install
## Updating
Provided your working copy is clean, updating is simple:
cd ~/.vim
./update
## Instruction:
Update docs for help installing YouCompleteMe pl... |
387861a39d49c06ca4184694f7823bd92850404c | apiClasses.properties | apiClasses.properties | apiClasses=\
org/mozilla/javascript/ClassDefinitionException.java,\
org/mozilla/javascript/ClassOutput.java,\
org/mozilla/javascript/Context.java,\
org/mozilla/javascript/ContextListener.java,\
org/mozilla/javascript/EcmaError.java,\
org/mozilla/javascript/ErrorReporter.java,\
org/mozilla/javascript/Function.jav... | apiClasses=\
src/org/mozilla/javascript/ClassDefinitionException.java,\
src/org/mozilla/javascript/ClassOutput.java,\
src/org/mozilla/javascript/Context.java,\
src/org/mozilla/javascript/ContextListener.java,\
src/org/mozilla/javascript/EcmaError.java,\
src/org/mozilla/javascript/ErrorReporter.java,\
src/org/moz... | Fix javadoc with new directory structure. | Fix javadoc with new directory structure.
| INI | mpl-2.0 | swannodette/rhino,rasmuserik/rhino,sainaen/rhino,Angelfirenze/rhino,lv7777/egit_test,tuchida/rhino,sam/htmlunit-rhino-fork,qhanam/rhino,tejassaoji/RhinoCoarseTainting,jsdoc3/rhino,tntim96/rhino-jscover-repackaged,tejassaoji/RhinoCoarseTainting,Angelfirenze/rhino,ashwinrayaprolu1984/rhino,tejassaoji/RhinoCoarseTainting,... | ini | ## Code Before:
apiClasses=\
org/mozilla/javascript/ClassDefinitionException.java,\
org/mozilla/javascript/ClassOutput.java,\
org/mozilla/javascript/Context.java,\
org/mozilla/javascript/ContextListener.java,\
org/mozilla/javascript/EcmaError.java,\
org/mozilla/javascript/ErrorReporter.java,\
org/mozilla/javascr... |
cf33ed06689dfc6724e7f4caa3f9de4e8d1ba877 | connectivity/FEATURE_BLE/source/generic/CMakeLists.txt | connectivity/FEATURE_BLE/source/generic/CMakeLists.txt |
target_include_directories(mbed-ble
INTERFACE
.
)
target_sources(mbed-ble
INTERFACE
FileSecurityDb.cpp
GapImpl.cpp
GattClientImpl.cpp
KVStoreSecurityDb.cpp
PrivateAddressController.cpp
SecurityManagerImpl.cpp
)
|
target_include_directories(mbed-ble
INTERFACE
.
)
target_sources(mbed-ble
INTERFACE
FileSecurityDb.cpp
GapImpl.cpp
GattClientImpl.cpp
KVStoreSecurityDb.cpp
MemorySecurityDb.cpp
PrivateAddressController.cpp
SecurityDb.cpp
SecurityManagerIm... | Add MemorySecurityDb.cpp and SecurityDb.cpp to CMake. | BLE: Add MemorySecurityDb.cpp and SecurityDb.cpp to CMake.
| Text | apache-2.0 | mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed | text | ## Code Before:
target_include_directories(mbed-ble
INTERFACE
.
)
target_sources(mbed-ble
INTERFACE
FileSecurityDb.cpp
GapImpl.cpp
GattClientImpl.cpp
KVStoreSecurityDb.cpp
PrivateAddressController.cpp
SecurityManagerImpl.cpp
)
## Instruction:
BLE: Add M... |
8cbf8709146004cb297a15b0cd242d59826d1b7c | lib/rom/repository/changeset/associated.rb | lib/rom/repository/changeset/associated.rb | require 'rom/initializer'
module ROM
class Changeset
class Associated
extend Initializer
param :left
param :right
# @!attribute [r] association
# @return [Symbol] Association identifier from relation schema
option :association, reader: true
# Commit changeset's comp... | require 'rom/initializer'
module ROM
class Changeset
# Associated changesets automatically set up FKs
#
# @api public
class Associated
extend Initializer
# @!attribute [r] left
# @return [Changeset::Create] Child changeset
param :left
# @!attribute [r] right
# ... | Add YARD docs to Changeset::Associated | Add YARD docs to Changeset::Associated
| Ruby | mit | rom-rb/rom-repository,rom-rb/rom,rom-rb/rom,rom-rb/rom | ruby | ## Code Before:
require 'rom/initializer'
module ROM
class Changeset
class Associated
extend Initializer
param :left
param :right
# @!attribute [r] association
# @return [Symbol] Association identifier from relation schema
option :association, reader: true
# Commit ... |
de66fe28d2bd3e118a468257601d2bdfcc4341ed | niche_vlaanderen/__init__.py | niche_vlaanderen/__init__.py | from .acidity import Acidity # noqa
from .niche import Niche, NicheDelta # noqa
from .nutrient_level import NutrientLevel # noqa
from .vegetation import Vegetation # noqa
from .version import __version__ # noqa
| from .acidity import Acidity # noqa
from .niche import Niche, NicheDelta # noqa
from .nutrient_level import NutrientLevel # noqa
from .vegetation import Vegetation # noqa
from .version import __version__ # noqa
from .floodplain import FloodPlain | Add FloodPlain class to module namespace | Add FloodPlain class to module namespace
| Python | mit | johanvdw/niche_vlaanderen | python | ## Code Before:
from .acidity import Acidity # noqa
from .niche import Niche, NicheDelta # noqa
from .nutrient_level import NutrientLevel # noqa
from .vegetation import Vegetation # noqa
from .version import __version__ # noqa
## Instruction:
Add FloodPlain class to module namespace
## Code After:
from .acidity impor... |
d3d9412ec9d670e9f202e7c42adcac5a64c087da | web.js | web.js | var http = require('http');
var urlparse = require('url').parse;
// simple page that acts as the OAuth endpoint
http.createServer(function(request, response) {
var url = urlparse(request.url, true);
if (url.query.code) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.write('<h... | var http = require('http');
var urlparse = require('url').parse;
// simple page that acts as the OAuth endpoint
http.createServer(function(request, response) {
var url = urlparse(request.url, true);
if (url.path == '/jira') {
response.writeHead(200, {'Content-Type': 'text/html'});
response.writ... | Add 200 response for jira | Add 200 response for jira
| JavaScript | mit | metaodi/cabdriver | javascript | ## Code Before:
var http = require('http');
var urlparse = require('url').parse;
// simple page that acts as the OAuth endpoint
http.createServer(function(request, response) {
var url = urlparse(request.url, true);
if (url.query.code) {
response.writeHead(200, {'Content-Type': 'text/html'});
re... |
d32837b33266d1947f595b80a10555897aaffca2 | ReadMe.md | ReadMe.md |
This module extends the
[Unexpected](https://github.com/unexpectedjs/unexpected) assertion
library with integration for the [Sinonjs](http://sinonjs.org/)
mocking library.
[](https://github.com/unexpectedjs/unexpected-sinon)
R... |
This module extends the
[Unexpected](https://github.com/unexpectedjs/unexpected) assertion
library with integration for the [Sinonjs](http://sinonjs.org/)
mocking library.
[](http://badge.fury.io/js/unexpected-sinon)
[ assertion
library with integration for the [Sinonjs](http://sinonjs.org/)
mocking library.
[](https://github.com/unexpectedjs/unex... |
f20b40a1cb7678b6c299f951e2960404640ebf68 | src/wirecloud/defaulttheme/static/css/wiring/wiring_behaviours.scss | src/wirecloud/defaulttheme/static/css/wiring/wiring_behaviours.scss | @import 'wiring/defaults';
@import 'compass/css3/user-interface';
@import "utils";
// ======================================================================================
// WIRING - BEHAVIOUR
// ======================================================================================
.behaviour {
cursor: pointer... | @import 'wiring/defaults';
@import 'compass/css3/user-interface';
@import "utils";
// ======================================================================================
// WIRING - BEHAVIOUR
// ======================================================================================
.behaviour {
cursor: pointer... | Fix minor bug in the behaviuor list style | Fix minor bug in the behaviuor list style
| SCSS | agpl-3.0 | jpajuelo/wirecloud,rockneurotiko/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud,jpajuelo/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud,rockneurotiko/wirecloud | scss | ## Code Before:
@import 'wiring/defaults';
@import 'compass/css3/user-interface';
@import "utils";
// ======================================================================================
// WIRING - BEHAVIOUR
// ======================================================================================
.behaviour {
... |
e70b6bcd42802fa3f2dcc6a7bf4c1337bc3c63e2 | Server/Models/usersModel.js | Server/Models/usersModel.js | const mongoose = require('mongoose');
const Schema = mongoose.Schema
var userSchema = new Schema({
name: {type: String, required: true},
photo: {type: String, required: true},
email: {type: String, required: true, unique: true},
fbId: {type: String},
fbAccessToken: {type: String},
googleId: {t... | const mongoose = require('mongoose');
const Schema = mongoose.Schema
var userSchema = new Schema({
name: {type: String, required: true},
photo: {type: String, required: true},
email: {type: String, required: true, unique: true},
fbId: {type: String},
fbAccessToken: {type: String},
googleId: {t... | Adjust User Model by removing unused fields createdSpots and savedSpots | Adjust User Model by removing unused fields createdSpots and savedSpots
| JavaScript | mit | JabroniZambonis/pLot | javascript | ## Code Before:
const mongoose = require('mongoose');
const Schema = mongoose.Schema
var userSchema = new Schema({
name: {type: String, required: true},
photo: {type: String, required: true},
email: {type: String, required: true, unique: true},
fbId: {type: String},
fbAccessToken: {type: String},
... |
0011648728f6aa93a4e7a9d90ff4f6345be7ed75 | modules/cluster-cloud-controller-manager-operator.adoc | modules/cluster-cloud-controller-manager-operator.adoc | // Module included in the following assemblies:
//
// * operators/operator-reference.adoc
[id="cluster-cloud-controller-manager-operator_{context}"]
= Cluster Cloud Controller Manager Operator
[discrete]
== Purpose
[NOTE]
====
This Operator is only fully supported for Alibaba Cloud, Microsoft Azure Stack Hub, and IB... | // Module included in the following assemblies:
//
// * operators/operator-reference.adoc
[id="cluster-cloud-controller-manager-operator_{context}"]
= Cluster Cloud Controller Manager Operator
[discrete]
== Purpose
[NOTE]
====
This Operator is only fully supported for Microsoft Azure Stack Hub and IBM Cloud.
It is ... | Update to reflect Ali Cloud TP status in 4.10 | Update to reflect Ali Cloud TP status in 4.10
| AsciiDoc | apache-2.0 | vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs | asciidoc | ## Code Before:
// Module included in the following assemblies:
//
// * operators/operator-reference.adoc
[id="cluster-cloud-controller-manager-operator_{context}"]
= Cluster Cloud Controller Manager Operator
[discrete]
== Purpose
[NOTE]
====
This Operator is only fully supported for Alibaba Cloud, Microsoft Azure S... |
b2d018688a05e74b51a43cb7fd996e3b7d012609 | test/sorting/merge_test.rb | test/sorting/merge_test.rb | require 'test_helper'
module Algs4ruby
class Sorting
class MergeTest < MiniTest::Unit::TestCase
include SortingTestHelper
def test_sort_stability
assert_stable(:merge)
end
end
end
end
| require 'test_helper'
module Algs4ruby
class Sorting
class MergeTest < MiniTest::Unit::TestCase
include SortingTestHelper
attr_reader :sorting, :array, :origin_array
def setup
@sorting = Sorting::Merge.new
@array = [9, 3, 5, 2, 0, 6, 4, 5, 3, 5]
@origin_ar... | Add merge test for bottom_up strategy | sorting: Add merge test for bottom_up strategy
| Ruby | mit | ifyouseewendy/algs4ruby | ruby | ## Code Before:
require 'test_helper'
module Algs4ruby
class Sorting
class MergeTest < MiniTest::Unit::TestCase
include SortingTestHelper
def test_sort_stability
assert_stable(:merge)
end
end
end
end
## Instruction:
sorting: Add merge test for bottom_up strategy
## Code After:
... |
361f78acf24ffdfa78105256a3c4f3f78c6bae09 | source/manual/alerts/reboot-required-by-apt.html.md | source/manual/alerts/reboot-required-by-apt.html.md | ---
owner_slack: "#2ndline"
title: reboot required by apt
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-03-12
review_in: 6 months
---
This check indicates that some packages have been installed but cannot
be activated without rebooting the machines.
See the [rebooting mach... | ---
owner_slack: "#2ndline"
title: reboot required by apt
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-03-12
review_in: 6 months
---
This check indicates that some packages have been installed but cannot
be activated without rebooting the machines.
See the [rebooting mach... | Fix 'reboot required by apt' instruction | Fix 'reboot required by apt' instruction
| Markdown | mit | alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs | markdown | ## Code Before:
---
owner_slack: "#2ndline"
title: reboot required by apt
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-03-12
review_in: 6 months
---
This check indicates that some packages have been installed but cannot
be activated without rebooting the machines.
See the... |
d0355635f13e739b4cacab8c6ddbf5584844f8a9 | src/test/java/com/codicesoftware/plugins/hudson/util/SelectorParametersResolverTest.java | src/test/java/com/codicesoftware/plugins/hudson/util/SelectorParametersResolverTest.java | package com.codicesoftware.plugins.hudson.util;
import hudson.model.BooleanParameterValue;
import hudson.model.ParameterValue;
import hudson.model.StringParameterValue;
import org.junit.Test;
import java.util.LinkedList;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class SelectorParame... | package com.codicesoftware.plugins.hudson.util;
import hudson.model.BooleanParameterValue;
import hudson.model.ParameterValue;
import hudson.model.StringParameterValue;
import org.junit.Test;
import java.util.LinkedList;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class SelectorParame... | Cover the legacy-style parameter resolution with tests | Cover the legacy-style parameter resolution with tests
| Java | mit | jenkinsci/plasticscm-plugin,jenkinsci/plasticscm-plugin | java | ## Code Before:
package com.codicesoftware.plugins.hudson.util;
import hudson.model.BooleanParameterValue;
import hudson.model.ParameterValue;
import hudson.model.StringParameterValue;
import org.junit.Test;
import java.util.LinkedList;
import java.util.List;
import static org.junit.Assert.assertEquals;
public clas... |
c9bd95fe47bbb9a34292ed8ff23400f48da3aa1a | metadata/com.sputnik.wispr.txt | metadata/com.sputnik.wispr.txt | Categories:Internet
License:GPLv3
Web Site:https://code.google.com/p/androidwisprclient
Source Code:https://code.google.com/p/androidwisprclient/source
Issue Tracker:https://code.google.com/p/androidwisprclient/issues
Summary:Auto connect to FON network
Description:
The FON network is made up of routers that share the... | Categories:Internet
License:GPLv3
Web Site:https://code.google.com/p/androidwisprclient
Source Code:https://code.google.com/p/androidwisprclient/source
Issue Tracker:https://code.google.com/p/androidwisprclient/issues
Auto Name:FON Access
Summary:Auto connect to FON network
Description:
The FON network is made up of r... | Set autoname of FON Access | Set autoname of FON Access
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Internet
License:GPLv3
Web Site:https://code.google.com/p/androidwisprclient
Source Code:https://code.google.com/p/androidwisprclient/source
Issue Tracker:https://code.google.com/p/androidwisprclient/issues
Summary:Auto connect to FON network
Description:
The FON network is made up of router... |
71e936386443d7e71382dc6d0b9cfeccf47a89ea | base/sha1.h | base/sha1.h | // LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SHA1_H_INCLUDED
#define BASE_SHA1_H_INCLUDED
#pragma once
#include <vector>
#include <string>
extern "C" struct SHA1Context;
namespace b... | // LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SHA1_H_INCLUDED
#define BASE_SHA1_H_INCLUDED
#pragma once
#include <vector>
#include <string>
extern "C" struct SHA1Context;
namespace b... | Add Sha1 class methods digest() and size() | Add Sha1 class methods digest() and size()
| C | mit | aseprite/laf,aseprite/laf | c | ## Code Before:
// LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SHA1_H_INCLUDED
#define BASE_SHA1_H_INCLUDED
#pragma once
#include <vector>
#include <string>
extern "C" struct SHA1Conte... |
8f10ccf2b6ec77449e0070ea2927b65b3c4ebfc7 | bokehjs/src/coffee/node_main.coffee | bokehjs/src/coffee/node_main.coffee | path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must be a string')
... | path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must be a string')
... | Allow to optionally load widgets in node.js package | Allow to optionally load widgets in node.js package
| CoffeeScript | bsd-3-clause | aiguofer/bokeh,stonebig/bokeh,rs2/bokeh,rs2/bokeh,jakirkham/bokeh,philippjfr/bokeh,timsnyder/bokeh,aavanian/bokeh,mindriot101/bokeh,schoolie/bokeh,jakirkham/bokeh,aiguofer/bokeh,philippjfr/bokeh,bokeh/bokeh,aavanian/bokeh,azjps/bokeh,rs2/bokeh,Karel-van-de-Plassche/bokeh,bokeh/bokeh,bokeh/bokeh,bokeh/bokeh,dennisobrien... | coffeescript | ## Code Before:
path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must ... |
68c70e10e48e394c55877bfb60c7922a56363f40 | maven-resources-plugin/pom.xml | maven-resources-plugin/pom.xml | <?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>maven</groupId>
<artifactId>maven-plugin-parent</artifactId>
<version>2.0-SNAPSHOT</version>
</parent>
<groupId>maven</groupId>
<artifactId>maven-resources-plugin</artifactId>
<type>plugin... | <?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>maven</groupId>
<artifactId>maven-plugin-parent</artifactId>
<version>2.0-SNAPSHOT</version>
</parent>
<groupId>maven</groupId>
<artifactId>maven-resources-plugin</artifactId>
<type>plugin... | Fix test classname to exclude | Fix test classname to exclude
git-svn-id: 1b1bd56198eea75e2feaddfcf5144d1f89605d86@162887 13f79535-47bb-0310-9956-ffa450edef68
| XML | apache-2.0 | hgschmie/apache-maven-plugins,criteo-forks/maven-plugins,kidaa/maven-plugins,PressAssociation/maven-plugins,sonatype/maven-plugins,restlet/maven-plugins,criteo-forks/maven-plugins,zigarn/maven-plugins,omnidavesz/maven-plugins,hazendaz/maven-plugins,edwardmlyte/maven-plugins,zigarn/maven-plugins,kikinteractive/maven-plu... | xml | ## Code Before:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>maven</groupId>
<artifactId>maven-plugin-parent</artifactId>
<version>2.0-SNAPSHOT</version>
</parent>
<groupId>maven</groupId>
<artifactId>maven-resources-plugin</artifactId... |
75981661ce5870d5579d569023b9250ecab7d12c | install/deploy.sh | install/deploy.sh | sudo apt-get remove lighttpd php5-cgi php5-mysql
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install lighttpd php5-cgi php5-mysql
sudo lighttpd-enable-mod fastcgi
sudo lighttpd-enable-mod fastcgi-php
sudo service lighttpd force-reload
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_passw... | sudo apt-get remove lighttpd php5-cgi php5-mysql
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install lighttpd php5-cgi php5-mysql debconf-utils
sudo lighttpd-enable-mod fastcgi
sudo lighttpd-enable-mod fastcgi-php
sudo service lighttpd force-reload
sudo debconf-set-selections <<< 'mysql-server mysql-ser... | Add debconf-utils to be installed | Add debconf-utils to be installed
| Shell | apache-2.0 | zahari/99h.info,zahari/99h.info | shell | ## Code Before:
sudo apt-get remove lighttpd php5-cgi php5-mysql
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install lighttpd php5-cgi php5-mysql
sudo lighttpd-enable-mod fastcgi
sudo lighttpd-enable-mod fastcgi-php
sudo service lighttpd force-reload
sudo debconf-set-selections <<< 'mysql-server mysql-s... |
999c3899b0603c1ffffdc9d1a2347bb4f7f38882 | tests/CMakeLists.txt | tests/CMakeLists.txt | set(TESTS
TestDns
)
foreach(_test ${TESTS})
add_executable(${_test} ${_test}.cpp)
set_target_properties(${_test} PROPERTIES
CXX_STANDARD 11
)
target_include_directories(${_test} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries(${_test} qmdnsengine Qt5::Test)
add_test(NAME... | set(TESTS
TestDns
)
foreach(_test ${TESTS})
add_executable(${_test} ${_test}.cpp)
set_target_properties(${_test} PROPERTIES
CXX_STANDARD 11
)
target_include_directories(${_test} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries(${_test} qmdnsengine Qt5::Test)
add_test(NAME... | Copy DLL to current directory for running the tests on Windows. | Copy DLL to current directory for running the tests on Windows.
| Text | mit | nitroshare/qmdnsengine,nitroshare/qmdnsengine | text | ## Code Before:
set(TESTS
TestDns
)
foreach(_test ${TESTS})
add_executable(${_test} ${_test}.cpp)
set_target_properties(${_test} PROPERTIES
CXX_STANDARD 11
)
target_include_directories(${_test} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries(${_test} qmdnsengine Qt5::Test)
... |
481299c748bb7d692cd9da4971a7879c17234e35 | scripts/windows/apktool.bat | scripts/windows/apktool.bat | @echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar -Duser.language=en "%~dp0\apktool.jar" %*
| @echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
chcp 65001 2>nul >nul
java -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0\apktool.jar" %*
| Update Windows scripts for unicode support | Update Windows scripts for unicode support
- fixes #1595
| Batchfile | apache-2.0 | pwelyn/Apktool,iBotPeaches/Apktool,Benjamin-Dobell/Apktool,pwelyn/Apktool,Benjamin-Dobell/Apktool,iBotPeaches/Apktool | batchfile | ## Code Before:
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar -Duser.language=en "%~dp0\apktool.jar" %*
## Instruction:
Update Windows scripts for unicode support
- fixes #1595
## Code After:
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%... |
86d1a4176b5156c187df7f8b8715fd1d4fe0cb8d | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.3.0
before_install: gem install bundler -v 1.11.2
notifications:
email: false | language: ruby
rvm:
- 1.9.3-p551
- 2.1.8
- 2.2.4
- 2.3.0
- jruby-1.7.24
- jruby-9.0.5.0
- rbx-3.14
before_install: gem install bundler -v 1.11.2
notifications:
email: false | Add additional ruby versions to test upon | Add additional ruby versions to test upon
| YAML | mit | yukas/traver,yukas/traver | yaml | ## Code Before:
language: ruby
rvm:
- 2.3.0
before_install: gem install bundler -v 1.11.2
notifications:
email: false
## Instruction:
Add additional ruby versions to test upon
## Code After:
language: ruby
rvm:
- 1.9.3-p551
- 2.1.8
- 2.2.4
- 2.3.0
- jruby-1.7.24
- jruby-9.0.5.0
- rbx-3.14
before_ins... |
e5af701eee65a8c1927bdf0ad87160321de787a4 | lib/ext/basic.js | lib/ext/basic.js | var sys = require("sys");
function log(what) {
sys.log("[ext:basic] " + what);
};
exports.init_extension = function (options, context) {
log("initializing.");
context.dispatch.add_handler({
on_QUIT: function (client, request, callback) {
client.respond("bye!");
client.socket.end();
callb... | var sys = require("sys");
function log(what) {
sys.log("[ext:basic] " + what);
};
exports.init_extension = function (options, context) {
log("initializing.");
context.dispatch.add_handler({
on_QUIT: function (client, request, callback) {
client.notify({ quit: true });
client.socket.end();
... | Add PING-PONG for WebSockets keepalive | Add PING-PONG for WebSockets keepalive
| JavaScript | mit | fictorial/nodered | javascript | ## Code Before:
var sys = require("sys");
function log(what) {
sys.log("[ext:basic] " + what);
};
exports.init_extension = function (options, context) {
log("initializing.");
context.dispatch.add_handler({
on_QUIT: function (client, request, callback) {
client.respond("bye!");
client.socket.en... |
c0f43c362ce53eca12f755822970c84518e99e6b | plugins/provisioners/docker/cap/debian/docker_configure_auto_start.rb | plugins/provisioners/docker/cap/debian/docker_configure_auto_start.rb | module VagrantPlugins
module DockerProvisioner
module Cap
module Debian
module DockerConfigureAutoStart
def self.docker_configure_auto_start(machine)
machine.communicate.tap do |comm|
if !comm.test('grep -q \'\-r=true\' /etc/default/docker')
comm.s... | module VagrantPlugins
module DockerProvisioner
module Cap
module Debian
module DockerConfigureAutoStart
def self.docker_configure_auto_start(machine)
machine.communicate.tap do |comm|
if !comm.test('grep -q \'\-r=true\' /etc/default/docker')
comm.s... | Use service command to restart docker, not upstart. | Use service command to restart docker, not upstart.
upstart ships by default on Ubuntu, but not on Debian, and service works
everywhere. Fixes #5245.
| Ruby | mit | Avira/vagrant,wangfakang/vagrant,jtopper/vagrant,chrisroberts/vagrant,myrjola/vagrant,Chhed13/vagrant,genome21/vagrant,jmanero/vagrant,mwarren/vagrant,fnewberg/vagrant,bryson/vagrant,gpkfr/vagrant,tbriggs-curse/vagrant,teotihuacanada/vagrant,vamegh/vagrant,bryson/vagrant,tomfanning/vagrant,dhoer/vagrant,lonniev/vagrant... | ruby | ## Code Before:
module VagrantPlugins
module DockerProvisioner
module Cap
module Debian
module DockerConfigureAutoStart
def self.docker_configure_auto_start(machine)
machine.communicate.tap do |comm|
if !comm.test('grep -q \'\-r=true\' /etc/default/docker')
... |
e1bbaeccd1807b81b63afd732b272798b67b4cdf | src/App.js | src/App.js | // @flow
import type { TodoItem } from "./model/TodoItem";
import React from "react";
import ContentAdd from "material-ui/svg-icons/content/add";
import TextField from "material-ui/TextField";
import Paper from "material-ui/Paper";
import FloatingActionButton from "material-ui/FloatingActionButton";
import logo from ... | // @flow
import type { TodoItem } from "./model/TodoItem";
import React from "react";
import ContentAdd from "material-ui/svg-icons/content/add";
import TextField from "material-ui/TextField";
import Paper from "material-ui/Paper";
import FloatingActionButton from "material-ui/FloatingActionButton";
import logo from ... | Save note on Enter key press, autofocus the input field | Save note on Enter key press, autofocus the input field
| JavaScript | mit | tomas-milata/react-redux-todo,tomas-milata/react-redux-todo | javascript | ## Code Before:
// @flow
import type { TodoItem } from "./model/TodoItem";
import React from "react";
import ContentAdd from "material-ui/svg-icons/content/add";
import TextField from "material-ui/TextField";
import Paper from "material-ui/Paper";
import FloatingActionButton from "material-ui/FloatingActionButton";
i... |
96eb6175692e0bf0ed860c64c9ad50303c89d4fa | .buildkite/pipeline.release.yml | .buildkite/pipeline.release.yml | steps:
- block: ":rocket: Release ${VERSION}?"
- label: ":s3:"
command: ".buildkite/steps/github-release.sh"
branches: master
agents:
queue: "deploy"
concurrency: 1
concurrency_group: 'release_github'
| steps:
- block: ":rocket: Release ${VERSION}?"
- label: ":s3:"
command: ".buildkite/steps/github-release.sh"
branches: master
| Use default agent for deploy | Use default agent for deploy
| YAML | mit | lox/parfait,lox/parfait | yaml | ## Code Before:
steps:
- block: ":rocket: Release ${VERSION}?"
- label: ":s3:"
command: ".buildkite/steps/github-release.sh"
branches: master
agents:
queue: "deploy"
concurrency: 1
concurrency_group: 'release_github'
## Instruction:
Use default agent for deploy
## Code After:
steps:
... |
932ee2737b822742996f234c90b715771fb876bf | tests/functional/api/view_pdf_test.py | tests/functional/api/view_pdf_test.py | import pytest
from tests.conftest import assert_cache_control
class TestViewPDFAPI:
def test_caching_is_disabled(self, test_app):
response = test_app.get("/pdf?url=http://example.com/foo.pdf")
assert_cache_control(
response.headers, ["max-age=0", "must-revalidate", "no-cache", "no-st... | from tests.conftest import assert_cache_control
class TestViewPDFAPI:
def test_caching_is_disabled(self, test_app):
response = test_app.get("/pdf?url=http://example.com/foo.pdf")
assert_cache_control(
response.headers, ["max-age=0", "must-revalidate", "no-cache", "no-store"]
)... | Fix lint errors after adding missing __init__ files | Fix lint errors after adding missing __init__ files
| Python | bsd-2-clause | hypothesis/via,hypothesis/via,hypothesis/via | python | ## Code Before:
import pytest
from tests.conftest import assert_cache_control
class TestViewPDFAPI:
def test_caching_is_disabled(self, test_app):
response = test_app.get("/pdf?url=http://example.com/foo.pdf")
assert_cache_control(
response.headers, ["max-age=0", "must-revalidate", "n... |
a4b7d991594c202866d30e1a17e4d4c3e8b15276 | package.json | package.json | {
"name": "jxml-editor",
"version": "0.0.1",
"description": "Live editing for JXML components / applications",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jxml/jxml-editor.git"
},
"keyw... | {
"name": "jxml-editor",
"version": "0.0.1",
"description": "Live editing for JXML components / applications",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jxml/jxml-editor.git"
},
"keyw... | Use JXML master until things settle down | Use JXML master until things settle down
| JSON | apache-2.0 | jxml/jxml-editor,jxml/jxml-editor | json | ## Code Before:
{
"name": "jxml-editor",
"version": "0.0.1",
"description": "Live editing for JXML components / applications",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jxml/jxml-editor.g... |
4228a70529c58dd2848121493837ae11a323a645 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "2.6"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
# Setup of Git environment
- git config --global user.email \<\>
- git config --global user.name "Travis CI"
# Setup of Python environment
- pip install -r dev-requireme... | language: python
python:
- "2.7"
- "2.6"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
# Setup of Git environment
- git config --global user.email \<\>
- git config --global user.name "Travis CI"
# Setup of Python environment
- pip install -r dev-requireme... | Fix pip warning on Travis CI | Fix pip warning on Travis CI
| YAML | mit | christer155/PyGitUp,msiemens/PyGitUp,christer155/PyGitUp | yaml | ## Code Before:
language: python
python:
- "2.7"
- "2.6"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
# Setup of Git environment
- git config --global user.email \<\>
- git config --global user.name "Travis CI"
# Setup of Python environment
- pip install ... |
bd4aba3a6604b9cc12af95b911f0a53541523ba7 | app/views/rubygems/show.html.erb | app/views/rubygems/show.html.erb | <h2><%= @gem.name %></h2>
<p>Ready for Rails 4? <span class="<%= @gem.status.gsub " ", "-" %>"><%= @gem.status %></span>.</p>
<% if @gem.notes.present? %>
<p><%= markdown @gem.notes %></p>
<% end %>
<p>Please comment if you know the current status of this gem, or want to add extra info. We'll update the info accor... | <h2>
<%= @gem.name %>
</h2>
<p>Ready for Rails 4? <span class="<%= @gem.status.gsub " ", "-" %>"><%= @gem.status %></span>.</p>
<% if @gem.notes.present? %>
<p><%= markdown @gem.notes %></p>
<% end %>
<p>
Please comment if you know the current status of this gem, or want
to add extra info. We'll update the ... | Add link to edit gem page | Add link to edit gem page
| HTML+ERB | mit | rubyperu/ready4rails,rubyperu/ready4rails,rubyperu/ready4rails | html+erb | ## Code Before:
<h2><%= @gem.name %></h2>
<p>Ready for Rails 4? <span class="<%= @gem.status.gsub " ", "-" %>"><%= @gem.status %></span>.</p>
<% if @gem.notes.present? %>
<p><%= markdown @gem.notes %></p>
<% end %>
<p>Please comment if you know the current status of this gem, or want to add extra info. We'll updat... |
f6596240ba68ce13c08254cb864f0f353320e313 | application/widgets/source/class/widgets/view/Start.js | application/widgets/source/class/widgets/view/Start.js | /* ************************************************************************
widgets
Copyright:
2009 Deutsche Telekom AG, Germany, http://telekom.com
************************************************************************ */
/**
* Start View
*/
qx.Class.define("widgets.view.Start", {
extend : unify.vie... | /* ************************************************************************
widgets
Copyright:
2009 Deutsche Telekom AG, Germany, http://telekom.com
************************************************************************ */
/**
* Start View
*/
qx.Class.define("widgets.view.Start", {
extend : unify.vie... | Add scroll area to test application | Add scroll area to test application
| JavaScript | mit | unify/unify,unify/unify,unify/unify,unify/unify,unify/unify,unify/unify | javascript | ## Code Before:
/* ************************************************************************
widgets
Copyright:
2009 Deutsche Telekom AG, Germany, http://telekom.com
************************************************************************ */
/**
* Start View
*/
qx.Class.define("widgets.view.Start", {
ex... |
ff5f87f69104a22e18e76fec7f9047debc9cc21e | lib/adhearsion/ldap/plugin.rb | lib/adhearsion/ldap/plugin.rb | module Adhearsion
module LDAP
##
# Adhearsion Plugin that defines the LDAP configuration options
# and includes a hook to start the LDAP service in Adhearsion initialization process
class Plugin < Adhearsion::Plugin
extend ActiveSupport::Autoload
autoload :Service
# Default config... | module Adhearsion
module LDAP
##
# Adhearsion Plugin that defines the LDAP configuration options
# and includes a hook to start the LDAP service in Adhearsion initialization process
class Plugin < Adhearsion::Plugin
extend ActiveSupport::Autoload
autoload :Service
# Default config... | Fix check when setting comes from environment var | Fix check when setting comes from environment var | Ruby | lgpl-2.1 | adhearsion/adhearsion-ldap | ruby | ## Code Before:
module Adhearsion
module LDAP
##
# Adhearsion Plugin that defines the LDAP configuration options
# and includes a hook to start the LDAP service in Adhearsion initialization process
class Plugin < Adhearsion::Plugin
extend ActiveSupport::Autoload
autoload :Service
... |
28de8a43d80a258f87d559a8521017023ac3656e | app/controllers/embassies_controller.rb | app/controllers/embassies_controller.rb | class EmbassiesController < ApplicationController
def index
@embassies_by_location = WorldLocation.order(:slug).map do |location|
Embassy.new(location)
end
end
end
| class EmbassiesController < ApplicationController
def index
@embassies_by_location = WorldLocation.geographical.order(:slug).map do |location|
Embassy.new(location)
end
end
end
| Remove international delegations from embassy finder | Remove international delegations from embassy finder
| Ruby | mit | askl56/whitehall,ggoral/whitehall,robinwhittleton/whitehall,ggoral/whitehall,YOTOV-LIMITED/whitehall,alphagov/whitehall,alphagov/whitehall,YOTOV-LIMITED/whitehall,askl56/whitehall,ggoral/whitehall,robinwhittleton/whitehall,ggoral/whitehall,alphagov/whitehall,askl56/whitehall,robinwhittleton/whitehall,YOTOV-LIMITED/whit... | ruby | ## Code Before:
class EmbassiesController < ApplicationController
def index
@embassies_by_location = WorldLocation.order(:slug).map do |location|
Embassy.new(location)
end
end
end
## Instruction:
Remove international delegations from embassy finder
## Code After:
class EmbassiesController < Applicat... |
fc346cf5958f310e5d55effcb5228fbcc895a3d1 | lib/node_modules/@stdlib/utils/is-array/lib/is_array.js | lib/node_modules/@stdlib/utils/is-array/lib/is_array.js | 'use strict';
/**
* Tests if a value is an array.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is an array
*
* @example
* var v = isArray( [] );
* // returns true
* @example
* var v = isArray( {} );
* // returns false
*/
function isArray( value ) {
return Object.prototype... | 'use strict';
// MODULES //
var nativeClass = require( '@stdlib/utils/native-class' );
// IS ARRAY //
/**
* Tests if a value is an array.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is an array
*
* @example
* var v = isArray( [] );
* // returns true
* @example
* var v... | Use utility to get a value's native class | Use utility to get a value's native class
| JavaScript | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | javascript | ## Code Before:
'use strict';
/**
* Tests if a value is an array.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is an array
*
* @example
* var v = isArray( [] );
* // returns true
* @example
* var v = isArray( {} );
* // returns false
*/
function isArray( value ) {
return ... |
c31b75d69d7b6645890dcb37fea0cc1f04e3de57 | lib/git_find_committer/repository.rb | lib/git_find_committer/repository.rb | module GitFindCommitter
class Repository
def initialize(config)
@config = config
end
def prepare_repo
if File.exist?(@config.tmp_repo_path)
`cd #{@config.tmp_repo_path} && git fetch`
else
`git clone #{generate_url} #{@config.tmp_repo_path}`
end
self
end
... | module GitFindCommitter
class Repository
def initialize(config)
@config = config
end
def prepare_repo
if File.exist?(@config.tmp_repo_path)
`cd #{@config.tmp_repo_path} && git fetch`
else
`git clone #{generate_url} #{@config.tmp_repo_path}`
end
self
end
... | Change directory before git pull origin master | Change directory before git pull origin master
| Ruby | mit | shoyan/git_find_committer,shoyan/git_find_committer | ruby | ## Code Before:
module GitFindCommitter
class Repository
def initialize(config)
@config = config
end
def prepare_repo
if File.exist?(@config.tmp_repo_path)
`cd #{@config.tmp_repo_path} && git fetch`
else
`git clone #{generate_url} #{@config.tmp_repo_path}`
end
... |
49e2d55ed75a7f091b89ddfab02551a7c67b62f3 | hephaestus/lib/resque/base.rb | hephaestus/lib/resque/base.rb | class Base
def self.before_perform(*args)
logging('start', args)
store_status('start', args.first)
end
def self.after_perform(*args)
logging('end', args)
store_status('end', args.first)
Resque.enqueue(DocumentProcessBootstrapTask, *args)
end
def self.on_failure(e, *args)
id = args[0]... | class Base
def self.before_perform(*args)
logging('start', args)
store_status('start', args.first)
end
def self.after_perform(*args)
logging('end', args)
store_status('end', args.first)
update_history(args.first)
Resque.enqueue(DocumentProcessBootstrapTask, *args)
end
def self.on_fai... | Update status history and percentage | [aphrodite] Update status history and percentage
| Ruby | mit | analiceme/chaos | ruby | ## Code Before:
class Base
def self.before_perform(*args)
logging('start', args)
store_status('start', args.first)
end
def self.after_perform(*args)
logging('end', args)
store_status('end', args.first)
Resque.enqueue(DocumentProcessBootstrapTask, *args)
end
def self.on_failure(e, *args)
... |
7c2650c6a0b1daf563823f720223f5d6d9510905 | metadata/ch.famoser.mensa.yml | metadata/ch.famoser.mensa.yml | AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Sports & Health
License: MIT
AuthorName: Florian Moser
AuthorWebSite: https://famoser.ch/
SourceCode: https://github.com/famoser/Mensa
IssueTracker: https://github.com/famoser/Mensa/issues
AutoName: Mensa
RepoType: git
Repo: https://github.com/famoser/Mensa
B... | AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Sports & Health
License: MIT
AuthorName: Florian Moser
AuthorWebSite: https://famoser.ch/
SourceCode: https://github.com/famoser/Mensa
IssueTracker: https://github.com/famoser/Mensa/issues
AutoName: Mensa
RepoType: git
Repo: https://github.com/famoser/Mensa
B... | Update Mensa to 1.5.7 (17) | Update Mensa to 1.5.7 (17)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Sports & Health
License: MIT
AuthorName: Florian Moser
AuthorWebSite: https://famoser.ch/
SourceCode: https://github.com/famoser/Mensa
IssueTracker: https://github.com/famoser/Mensa/issues
AutoName: Mensa
RepoType: git
Repo: https://github.com/... |
230bdc7c426383b471308bc1c6e9b869d121a50e | README.md | README.md | [](https://travis-ci.org/GLO3102/UBeat)
[](https://david-dm.org/GLO3102/UBeat)
[](https://codeclimate.com/github/wfortin/UBea... | <!--
[](https://travis-ci.org/GLO3102/UBeat)
[](https://david-dm.org/GLO3102/UBeat)
[](https://codeclimate.com/github/wfortin... | Change reference from old repo owner to new repo owner | Change reference from old repo owner to new repo owner | Markdown | mit | freud14/UBeat,freud14/UBeat,freud14/UBeat | markdown | ## Code Before:
[](https://travis-ci.org/GLO3102/UBeat)
[](https://david-dm.org/GLO3102/UBeat)
[](https://codeclimate.com/git... |
c6b018b07121f83e5598f556bd1ba97a59285004 | app/js/home/Page.jsx | app/js/home/Page.jsx | import React from 'react';
import asyncComponent from 'common/components/AsyncComponent';
import Hero from 'home/components/Hero';
import 'scss/home.scss';
// Load the events list async from the Events Chunck
const HomeEvents = asyncComponent(() => import(/* webpackChunkName: "Events" */ 'events/containers/HomeEvents... | import React from 'react';
import asyncComponent from 'common/components/AsyncComponent';
import Hero from 'home/components/Hero';
import 'scss/home.scss';
// Load the events list async from the Events Chunck
const HomeEvents = asyncComponent(() => import(/* webpackChunkName: "Events" */ 'events/containers/HomeEvents... | Add link to the mentor schedule on the homepage | Add link to the mentor schedule on the homepage
| JSX | mit | rit-sse/OneRepoToRuleThemAll | jsx | ## Code Before:
import React from 'react';
import asyncComponent from 'common/components/AsyncComponent';
import Hero from 'home/components/Hero';
import 'scss/home.scss';
// Load the events list async from the Events Chunck
const HomeEvents = asyncComponent(() => import(/* webpackChunkName: "Events" */ 'events/conta... |
e3ba8fcee10730c903f6a30dab1035dc70a466ed | lib/tasks/server/middleware/tests-server/package.json | lib/tasks/server/middleware/tests-server/package.json | {
"name": "tests-server-middleware",
"keywords": [
"ember-addon"
],
"ember-addon": {
"before": "history-support-middleware"
},
"dependencies": {
"clean-base-url": "*",
"exists-sync": "*",
"heimdalljs-logger": "*"
}
}
| {
"name": "tests-server-middleware",
"keywords": [
"ember-addon"
],
"ember-addon": {
"before": "history-support-middleware"
},
"dependencies": {
"clean-base-url": "*",
"heimdalljs-logger": "*"
}
}
| Remove obsolete `exists-sync` dependency declaration | tasks/server: Remove obsolete `exists-sync` dependency declaration
| JSON | mit | raycohen/ember-cli,mike-north/ember-cli,ember-cli/ember-cli,fpauser/ember-cli,ember-cli/ember-cli,buschtoens/ember-cli,buschtoens/ember-cli,Turbo87/ember-cli,thoov/ember-cli,fpauser/ember-cli,jgwhite/ember-cli,thoov/ember-cli,elwayman02/ember-cli,balinterdi/ember-cli,thoov/ember-cli,HeroicEric/ember-cli,thoov/ember-cli... | json | ## Code Before:
{
"name": "tests-server-middleware",
"keywords": [
"ember-addon"
],
"ember-addon": {
"before": "history-support-middleware"
},
"dependencies": {
"clean-base-url": "*",
"exists-sync": "*",
"heimdalljs-logger": "*"
}
}
## Instruction:
tasks/server: Remove obsolete `exist... |
90a3bbef253ea2ecdf6dc54fe11c088f95491174 | README.md | README.md |
Hides the number of likes received on Facebook posts so you can stop comparing yourself to everyone else.
Facebook is not a popularity contest. When you share something, share it because you care about your friends, and not because you just want to have the most number of likes on your post. Hiding the likes and shar... |
Hides the number of likes received on Facebook posts so you can stop comparing yourself to everyone else.
Facebook is not a popularity contest. When you share something, share it because you care about your friends, and not because you just want to have the most number of likes on your post. Hiding the likes and shar... | Update install instructions without Chrome Webstore | Update install instructions without Chrome Webstore
| Markdown | mit | Kortaggio/HideTheLikes | markdown | ## Code Before:
Hides the number of likes received on Facebook posts so you can stop comparing yourself to everyone else.
Facebook is not a popularity contest. When you share something, share it because you care about your friends, and not because you just want to have the most number of likes on your post. Hiding th... |
fe44318bd697dd813b2339d6162dc0e3320b1a27 | awx/ui/static/js/main-menu/menu-toggle.block.less | awx/ui/static/js/main-menu/menu-toggle.block.less | /** @define MenuToggle */
.MenuToggle {
align-self: center;
&-icon {
// Override settings (on svg tag) from nv.d3.css that really
// shouldn't be there, but are, so meh.
display: inherit;
width: inherit;
height: inherit;
// border: solid thin white;
}
&... | /** @define MenuToggle */
.MenuToggle {
align-self: center;
// Width & height hardcoded for IE
width: 12px;
height: 10px;
&-icon {
// Override settings (on svg tag) from nv.d3.css that really
// shouldn't be there, but are, so meh.
display: inherit;
width: inheri... | Fix sizing of hamburger icon in IE11 | Fix sizing of hamburger icon in IE11
| Less | apache-2.0 | wwitzel3/awx,snahelou/awx,wwitzel3/awx,wwitzel3/awx,snahelou/awx,wwitzel3/awx,snahelou/awx,snahelou/awx | less | ## Code Before:
/** @define MenuToggle */
.MenuToggle {
align-self: center;
&-icon {
// Override settings (on svg tag) from nv.d3.css that really
// shouldn't be there, but are, so meh.
display: inherit;
width: inherit;
height: inherit;
// border: solid thin whi... |
c6839e149442c7a9999e0ba1085b4df06db90841 | app/controllers/shipit/webhooks_controller.rb | app/controllers/shipit/webhooks_controller.rb | module Shipit
class WebhooksController < ActionController::Base
skip_before_action :verify_authenticity_token, raise: false
before_action :check_if_ping, :verify_signature
respond_to :json
def create
params = JSON.parse(request.raw_post)
Shipit::Webhooks.for_event(event).each { |handler|... | module Shipit
class WebhooksController < ActionController::Base
skip_before_action :verify_authenticity_token, raise: false
before_action :check_if_ping, :verify_signature
respond_to :json
def create
params = JSON.parse(request.raw_post)
Shipit::Webhooks.for_event(event).each { |handler|... | Handle more payload types in WebhookController calls | Handle more payload types in WebhookController calls
| Ruby | mit | Shopify/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine | ruby | ## Code Before:
module Shipit
class WebhooksController < ActionController::Base
skip_before_action :verify_authenticity_token, raise: false
before_action :check_if_ping, :verify_signature
respond_to :json
def create
params = JSON.parse(request.raw_post)
Shipit::Webhooks.for_event(event).... |
bd2c905dff10a9f3463b3f6314d4fc4eae844a71 | spec/notification_spec.rb | spec/notification_spec.rb | require 'spec_helper'
describe Notifiable::Notification do
it "stores a message" do
Notifiable::Notification.create :message => "Test message"
Notifiable::Notification.first.provider_value(:mock, :message).should eql "Test message"
end
it "overrides a message" do
Notifiable::Notifi... | require 'spec_helper'
describe Notifiable::Notification do
it "stores a message" do
Notifiable::Notification.create :message => "Test message"
Notifiable::Notification.first.provider_value(:mock, :message).should eql "Test message"
end
it "overrides a message" do
Notifiable::Notifi... | Add a new test to ensure hashes are stored correctly | Add a new test to ensure hashes are stored correctly
| Ruby | apache-2.0 | FutureWorkshops/notifiable-rails | ruby | ## Code Before:
require 'spec_helper'
describe Notifiable::Notification do
it "stores a message" do
Notifiable::Notification.create :message => "Test message"
Notifiable::Notification.first.provider_value(:mock, :message).should eql "Test message"
end
it "overrides a message" do
No... |
661927291fd0f516c922a0e23872566edeacae66 | tox.ini | tox.ini | [tox]
envlist = py
[testenv]
deps=pytest
commands=pytest tests/test_block.py
pytest tests/test_frame.py
| [tox]
envlist = py
[testenv]
deps=pytest
commands=pytest tests/test_block.py
pytest --no-print-logs tests/test_frame.py
| Add --no-print-logs to pytest to reduce memory usage | Add --no-print-logs to pytest to reduce memory usage
| INI | bsd-3-clause | python-lz4/python-lz4,python-lz4/python-lz4 | ini | ## Code Before:
[tox]
envlist = py
[testenv]
deps=pytest
commands=pytest tests/test_block.py
pytest tests/test_frame.py
## Instruction:
Add --no-print-logs to pytest to reduce memory usage
## Code After:
[tox]
envlist = py
[testenv]
deps=pytest
commands=pytest tests/test_block.py
pytest --no-print-logs test... |
2d6894d3b02aed22bd60f8188d97447763f7a4e9 | benchmarks/vanilla/raf/benchmarks.json | benchmarks/vanilla/raf/benchmarks.json | {
"variants": [
{
"name": "10 frames",
"config": {
"frames": 10
}
}
]
}
| {
"variants": [
{
"name": "1",
"config": {
"frames": 1
}
},
{
"name": "5",
"config": {
"frames": 5
}
},
{
"name": "10",
"config": {
"frames": 10
}
}
]
}
| Add more variants to RAF benchmark | Add more variants to RAF benchmark
| JSON | bsd-3-clause | google/tachometer,PolymerLabs/tachometer,PolymerLabs/tachometer,google/tachometer,google/tachometer,PolymerLabs/tachometer,Polymer/tachometer,Polymer/tachometer,Polymer/tachometer | json | ## Code Before:
{
"variants": [
{
"name": "10 frames",
"config": {
"frames": 10
}
}
]
}
## Instruction:
Add more variants to RAF benchmark
## Code After:
{
"variants": [
{
"name": "1",
"config": {
"frames": 1
}
},
{
"name": "5",
... |
64c1000318b1b34c1e254741345b30101952820e | README.md | README.md |
Spin up an environment for building images with [diskimage-builder](https://github.com/openstack/diskimage-builder).
## Supported Platforms
Tested And Validated On
- CentOS 7.0
CentOS 6.x fails when attempting to untar base img so it will not be supported.
## Usage
Spin up configured VM:
```
bundle exec kitchen co... |
Spin up an environment for building images with [diskimage-builder](https://github.com/openstack/diskimage-builder).
## Supported Platforms
Tested And Validated On
- CentOS 7.0
CentOS 6.x fails when attempting to untar base img so it will not be supported.
## Usage
Spin up configured VM:
```
bundle exec kitchen co... | Add note on ability to save image to sync_folder for access from host | Add note on ability to save image to sync_folder for access from host
| Markdown | apache-2.0 | jmccann/diskimage-builder-env-cookbook,jmccann/diskimage-builder-env-cookbook | markdown | ## Code Before:
Spin up an environment for building images with [diskimage-builder](https://github.com/openstack/diskimage-builder).
## Supported Platforms
Tested And Validated On
- CentOS 7.0
CentOS 6.x fails when attempting to untar base img so it will not be supported.
## Usage
Spin up configured VM:
```
bundle... |
866f102d0d793d26df7bf49150e32c93aa7aa417 | apps/ello_grandstand/lib/ello_grandstand/client/http.ex | apps/ello_grandstand/lib/ello_grandstand/client/http.ex | defmodule Ello.Grandstand.Client.HTTP do
alias Ello.Grandstand.{Impression, Client}
@behaviour Client
use HTTPoison.Base
@doc """
Get %Impressions{} from grandstand api.
"""
def fetch_impressions(path, params) do
params = Enum.map(params, fn({k, v}) -> {Atom.to_string(k), v} end)
opts = [
p... | defmodule Ello.Grandstand.Client.HTTP do
alias Ello.Grandstand.{Impression, Client}
@behaviour Client
use HTTPoison.Base
@doc """
Get %Impressions{} from grandstand api.
"""
def fetch_impressions(path, params) do
params = Enum.map(params, fn({k, v}) -> {Atom.to_string(k), v} end)
opts = [
p... | Handle 204 responses for daily impressions | Handle 204 responses for daily impressions
| Elixir | mit | ello/apex,ello/apex,ello/apex | elixir | ## Code Before:
defmodule Ello.Grandstand.Client.HTTP do
alias Ello.Grandstand.{Impression, Client}
@behaviour Client
use HTTPoison.Base
@doc """
Get %Impressions{} from grandstand api.
"""
def fetch_impressions(path, params) do
params = Enum.map(params, fn({k, v}) -> {Atom.to_string(k), v} end)
... |
336b352d6fe4de90392691d892557d5fa2cd07d4 | scripts/gogetcookie.sh | scripts/gogetcookie.sh |
touch ~/.gitcookies
chmod 0600 ~/.gitcookies
git config --global http.cookiefile ~/.gitcookies
tr , \\t <<\__END__ >>~/.gitcookies
.googlesource.com,TRUE,/,TRUE,2147483647,o,git-paul.hashicorp.com=1/z7s05EYPudQ9qoe6dMVfmAVwgZopEkZBb1a2mA5QtHE
__END__
| touch ~/.gitcookies
chmod 0600 ~/.gitcookies
git config --global http.cookiefile ~/.gitcookies
tr , \\t <<\__END__ >>~/.gitcookies
go.googlesource.com,FALSE,/,TRUE,2147483647,o,git-admin.hashicorptest.com=1/F-KiU2h0C3CsGR-W37nUzB2LOSfI24YXa71rjfd4qUI
__END__
| Update our go.googlesource.com rate-limit cookie | Update our go.googlesource.com rate-limit cookie
We have a generated cookie for googlesource.com so that we don't get so rate-limited when cloning Google-hosted Go libraries.
The previous credential was invalidated, so this is a newly-generated one. This credential does nothing except allow us to fetch git reposito... | Shell | mpl-2.0 | HotelsDotCom/terraform,brandontosch/terraform,iljaskevic/terraform,kl4w/terraform,iansheridan/terraform,youhong316/terraform,lusis/terraform,yanndegat/terraform,huydinhle/terraform,VladRassokhin/terraform,ColinHebert/terraform,tommynsong/terraform,mattray/terraform,lusis/terraform,chrisjharding/terraform,paultyng/terra... | shell | ## Code Before:
touch ~/.gitcookies
chmod 0600 ~/.gitcookies
git config --global http.cookiefile ~/.gitcookies
tr , \\t <<\__END__ >>~/.gitcookies
.googlesource.com,TRUE,/,TRUE,2147483647,o,git-paul.hashicorp.com=1/z7s05EYPudQ9qoe6dMVfmAVwgZopEkZBb1a2mA5QtHE
__END__
## Instruction:
Update our go.googlesource.com ra... |
02cce54a6ae17aedea1533379a3507839d882e7d | depends/packages/packages.mk | depends/packages/packages.mk | packages:=boost openssl
native_packages := native_ccache native_comparisontool
qt_native_packages = native_protobuf
qt_packages = qrencode protobuf
qt46_linux_packages = qt46 expat dbus libxcb xcb_proto libXau xproto freetype libX11 xextproto libXext xtrans libICE libSM
qt5_linux_packages= qt expat dbus libxcb xcb_pr... | packages:=boost openssl
native_packages := native_ccache native_comparisontool
qt_native_packages = native_protobuf
qt_packages = qrencode protobuf
qt5_linux_packages= qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans
qt_darwin_packages=qt
qt_mingw32_packages=qt
qt_lin... | Remove old qt46 support, use qt5 only. | Remove old qt46 support, use qt5 only. | Makefile | mit | unobtanium-official/Unobtanium,unobtanium-official/Unobtanium,unobtanium-official/Unobtanium,unobtanium-official/Unobtanium,unobtanium-official/Unobtanium,unobtanium-official/Unobtanium | makefile | ## Code Before:
packages:=boost openssl
native_packages := native_ccache native_comparisontool
qt_native_packages = native_protobuf
qt_packages = qrencode protobuf
qt46_linux_packages = qt46 expat dbus libxcb xcb_proto libXau xproto freetype libX11 xextproto libXext xtrans libICE libSM
qt5_linux_packages= qt expat db... |
c91822cbb0aee5afe6d46763b2c4be41bffc52f9 | app/Commands/PushBatondUpdatedContainer.php | app/Commands/PushBatondUpdatedContainer.php | <?php namespace App\Commands;
use App\Commands\Command;
use App\Models\Container;
use DroneMill\EventsocketClient\Client;
use Log;
use Config;
use Illuminate\Contracts\Bus\SelfHandling;
class PushBatondUpdatedContainer extends Command implements SelfHandling {
/**
* Create a new command instance.
*
* @retur... | <?php namespace App\Commands;
use App;
use App\Commands\Command;
use App\Models\Container;
use DroneMill\EventsocketClient\Client;
use Log;
use Config;
use Illuminate\Contracts\Bus\SelfHandling;
class PushBatondUpdatedContainer extends Command implements SelfHandling {
/**
* Create a new command instance.
*
... | Use some additional refined logic | Portal.Push: Use some additional refined logic
| PHP | mit | dronemill/harmony-api,dronemill/harmony-api,dronemill/harmony-api | php | ## Code Before:
<?php namespace App\Commands;
use App\Commands\Command;
use App\Models\Container;
use DroneMill\EventsocketClient\Client;
use Log;
use Config;
use Illuminate\Contracts\Bus\SelfHandling;
class PushBatondUpdatedContainer extends Command implements SelfHandling {
/**
* Create a new command instance... |
200345db77dcf8ed35c43465a140264d3ec609db | Cargo.toml | Cargo.toml | [package]
name = "pvm"
version = "0.1.0"
authors = ["Andrew Marmaduke <marmaduke.andrew@gmail.com>"]
description = "A parsing virtual machine with a focus on expressibility of grammars."
repository = "https://github.com/amarmaduke/pvm"
readme = "README.md"
keywords = ["parser", "parsing", "left-recursion", "mutual-re... | [package]
name = "pvm"
version = "0.1.0"
authors = ["Andrew Marmaduke <marmaduke.andrew@gmail.com>"]
description = "A parsing virtual machine with a focus on expressibility of grammars."
repository = "https://github.com/amarmaduke/pvm"
readme = "README.md"
keywords = ["parser", "parsing", "left-recursion", "mutual-re... | Fix include directories for package | Fix include directories for package
| TOML | mit | amarmaduke/pvm | toml | ## Code Before:
[package]
name = "pvm"
version = "0.1.0"
authors = ["Andrew Marmaduke <marmaduke.andrew@gmail.com>"]
description = "A parsing virtual machine with a focus on expressibility of grammars."
repository = "https://github.com/amarmaduke/pvm"
readme = "README.md"
keywords = ["parser", "parsing", "left-recurs... |
27dc5ec7fdd989d64c0dc23602cb064f3d1b8c5f | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pinewood</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVn... | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pinewood</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVn... | Add Div container for non-menu code | Add Div container for non-menu code
| HTML | mit | jessemillar/pinewood,jessemillar/pinewood | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pinewood</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJ... |
277513ffa948483330b538c1fba408ed5c6aeeb3 | docs/databases/create-models-and-queries.md | docs/databases/create-models-and-queries.md |
```shell
foal generate entity my-entity
```
FoalTS uses [TypeORM](http://typeorm.io/#/) as ORM which is based on the concept of *entities*. An entity can be seen of a simple model. You can generate one with the above command.
Entity files should always be named following this pattern: `*.entity.ts`.
|
```shell
foal generate entity my-entity
```
## Entities
Simple models are called *entities* in TypeORM. You can generate one with the above command.
*Example:*
```typescript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class Product {
@PrimaryGeneratedColumn()
id: number;... | Add more docs on models and queries | [Docs] Add more docs on models and queries
| Markdown | mit | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | markdown | ## Code Before:
```shell
foal generate entity my-entity
```
FoalTS uses [TypeORM](http://typeorm.io/#/) as ORM which is based on the concept of *entities*. An entity can be seen of a simple model. You can generate one with the above command.
Entity files should always be named following this pattern: `*.entity.ts`.
... |
baf3ef0ddcb7b59973750443f4c0a3732dd0f12a | spacy/cli/__init__.py | spacy/cli/__init__.py | from .download import download
from .info import info
from .link import link
from .package import package
from .train import train, train_config
from .model import model
from .convert import convert
| from .download import download
from .info import info
from .link import link
from .package import package
from .train import train
from .model import model
from .convert import convert
| Remove import of removed train_config script | Remove import of removed train_config script
| Python | mit | spacy-io/spaCy,explosion/spaCy,aikramer2/spaCy,explosion/spaCy,recognai/spaCy,explosion/spaCy,explosion/spaCy,recognai/spaCy,aikramer2/spaCy,aikramer2/spaCy,honnibal/spaCy,spacy-io/spaCy,recognai/spaCy,honnibal/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,aikramer2/spaCy,recognai/spaCy,aikramer2/spaCy,recognai/... | python | ## Code Before:
from .download import download
from .info import info
from .link import link
from .package import package
from .train import train, train_config
from .model import model
from .convert import convert
## Instruction:
Remove import of removed train_config script
## Code After:
from .download import downl... |
e200f103d294eb86a7da1c866b80299f2b93c269 | lib/foundry/configurator.rb | lib/foundry/configurator.rb | module Foundry
class Configurator
class << self
def configure(opts={})
structify(
load_yaml(
evaluate_erb(
load_by_filename_or_uri(opts)
)
)
)
end
private
def evaluate_erb(str)
ERB.new(str).result
end... | module Foundry
class Configurator
class << self
def configure(opts={})
structify(
load_yaml(
evaluate_erb(
load_by_filename_or_uri(opts)
)
)
)
end
private
def evaluate_erb(str)
ERB.new(str).result
end... | Fix Ruby "1.9.3" issue with "OpenStruct" | Fix Ruby "1.9.3" issue with "OpenStruct"
| Ruby | mit | jzaleski/foundry | ruby | ## Code Before:
module Foundry
class Configurator
class << self
def configure(opts={})
structify(
load_yaml(
evaluate_erb(
load_by_filename_or_uri(opts)
)
)
)
end
private
def evaluate_erb(str)
ERB.new(str).... |
fdfbe6c2e2db83ef947fa50c44222079977dd62e | _includes/author-share.html | _includes/author-share.html | <div class="circle-line-image center mt1">
<a href="{{ site.baseurl }}">
{% include image.html path=site.thumbnail_path alt=site.name class="border bg-white border-light-gray circle square-100" %}
</a>
</div>
<div class="clearfix">
<div class="sm-col sm-col-7">
<a href="{{ site.baseurl }} "><h3>{{ site.na... | <div class="circle-line-image center mt1">
<a href="{{ site.baseurl }}">
{% include image.html path=site.thumbnail_path alt=site.name class="border bg-white border-light-gray circle square-100" %}
</a>
</div>
<div class="clearfix">
<div class="sm-col sm-col-7">
<a href="{{ site.baseurl }} "><h3>{{ site.na... | Update text at bottom of posts | Update text at bottom of posts
| HTML | mit | dpdearing/dpdearing-homepage,brikis98/yevgeniy-brikman-homepage,dpdearing/dpdearing-homepage,brikis98/yevgeniy-brikman-homepage,dpdearing/dpdearing-homepage,dpdearing/dpdearing.github.io,brikis98/yevgeniy-brikman-homepage,dpdearing/dpdearing.github.io,dpdearing/dpdearing.github.io | html | ## Code Before:
<div class="circle-line-image center mt1">
<a href="{{ site.baseurl }}">
{% include image.html path=site.thumbnail_path alt=site.name class="border bg-white border-light-gray circle square-100" %}
</a>
</div>
<div class="clearfix">
<div class="sm-col sm-col-7">
<a href="{{ site.baseurl }} ... |
402a2c82c24fe22f5b4717bad6e50ae14723c91b | app/views/settings/_wikicipher_settings.html.erb | app/views/settings/_wikicipher_settings.html.erb | <fieldset>
<legend>Redmine Wikicipher Plugin settings</legend>
<p>
<label>Secret key</label>
<%= text_field_tag 'settings[secret_key]', @settings[:secret_key], :size => 50 %>
</p>
</fieldset>
| <fieldset>
<legend>Redmine Wikicipher Plugin settings</legend>
<p>
<label>Secret key</label>
<%= text_field_tag 'secret_key', @settings['secret_key'], :size => 50 %>
</p>
</fieldset>
| Fix settings does not configured value | Fix settings does not configured value
| HTML+ERB | apache-2.0 | thorin/redmine_wikicipher,thorin/redmine_wikicipher,thorin/redmine_wikicipher | html+erb | ## Code Before:
<fieldset>
<legend>Redmine Wikicipher Plugin settings</legend>
<p>
<label>Secret key</label>
<%= text_field_tag 'settings[secret_key]', @settings[:secret_key], :size => 50 %>
</p>
</fieldset>
## Instruction:
Fix settings does not configured value
## Code After:
<fieldset>
<legend>Redmi... |
bfecae4aaf916eea24dcd00a76de764dae204c43 | platforms/Dos/alltests.sh | platforms/Dos/alltests.sh | printf "" > exit # so dosbox will run 'external' command 'exit' correctly
printf "" >ALLTESTS.LOG
for TESTS in `ls *.EXE`; do
printf "Running ${TESTS} inside DOSBox...\n"
dosbox -conf ../platforms/Dos/dosbox-0.74.conf exit \
-c "echo *** ${TESTS} ************************************>>ALLTESTS.LOG" \
-c... | printf "" > exit # so dosbox will run 'external' command 'exit' correctly
printf "" >ALLTESTS.LOG
for TESTS in `ls *.EXE`; do
printf "Running ${TESTS} inside DOSBox...\n"
dosbox -conf ../platforms/Dos/dosbox-0.74.conf exit \
-c "echo *** ${TESTS} (`wc -c <${TESTS}` bytes) *********************>>ALLTESTS.LO... | Add EXE size in bytes to log file | Add EXE size in bytes to log file
| Shell | bsd-3-clause | offa/cpputest,jaeguly/cpputest,devMichaelJones/cpputest,PaulBussmann/cpputest,Andne/cpputest,arstrube/cpputest,maxilai/cpputest,Mindtribe/cpputest,arstrube/cpputest,basvodde/cpputest,asgeroverby/cpputest,basvodde/cpputest,basvodde/cpputest,chenlianbing/cpputest,chenlianbing/cpputest,Mindtribe/cpputest,jaeguly/cpputest,... | shell | ## Code Before:
printf "" > exit # so dosbox will run 'external' command 'exit' correctly
printf "" >ALLTESTS.LOG
for TESTS in `ls *.EXE`; do
printf "Running ${TESTS} inside DOSBox...\n"
dosbox -conf ../platforms/Dos/dosbox-0.74.conf exit \
-c "echo *** ${TESTS} ************************************>>ALLTES... |
5574f0f01ecb4f38cad51eaa595de819cf8d7f4e | dependencies-overview/src/main/kotlin/com/vgaidarji/dependencies/overview/DependenciesOverviewTask.kt | dependencies-overview/src/main/kotlin/com/vgaidarji/dependencies/overview/DependenciesOverviewTask.kt | package com.vgaidarji.dependencies.overview
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
open class DependenciesOverviewTask : DefaultTask() {
override fun getDescription(): String {
return "Generates project dependencies overview table from project dependencies"
}
ov... | package com.vgaidarji.dependencies.overview
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
open class DependenciesOverviewTask : DefaultTask() {
init {
description = "Generates project dependencies overview table from project dependencies"
group = "documentation"
}
... | Move task configuration to init block | Move task configuration to init block
| Kotlin | apache-2.0 | vgaidarji/dependencies-overview,vgaidarji/dependencies-overview,vgaidarji/dependencies-overview | kotlin | ## Code Before:
package com.vgaidarji.dependencies.overview
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
open class DependenciesOverviewTask : DefaultTask() {
override fun getDescription(): String {
return "Generates project dependencies overview table from project dependencie... |
15dac5d00d44d10a20e9eccda53f6e530b576b65 | src/RequestResolver.php | src/RequestResolver.php | <?php
namespace phpgt\fetch;
use React\Promise\Deferred;
/**
* Contains multiple requests and their promises.
*/
class RequestResolver implements \Iterator {
private $requestArray = [];
private $deferredArray = [];
private $index;
public function __construct() {
}
// Iterator methods ///////////////////////////... | <?php
namespace phpgt\fetch;
use React\Promise\Deferred;
/**
* Contains multiple requests and their promises.
*/
class RequestResolver implements \Iterator {
private $requestArray = [];
private $deferredArray = [];
private $index;
public function __construct() {
}
public function add(Request $request, Deferred ... | Move add out of Iterator methods section. | Move add out of Iterator methods section.
| PHP | mit | PhpGt/Fetch | php | ## Code Before:
<?php
namespace phpgt\fetch;
use React\Promise\Deferred;
/**
* Contains multiple requests and their promises.
*/
class RequestResolver implements \Iterator {
private $requestArray = [];
private $deferredArray = [];
private $index;
public function __construct() {
}
// Iterator methods ///////////... |
fd8be78c7f9b531182a1cbeca3a0af433720d718 | src/getActions.js | src/getActions.js | const path = require('path');
const flatten = require('lodash.flatten');
/**
* Filter dependencies by name pattern
* @param {String} dependency Name of the dependency
* @return {Boolean} If dependency is a rnpm plugin
*/
const isPlugin = (dependency) => !!~dependency.indexOf('rnpm-plugin-');
/**
* Get... | const path = require('path');
const flatten = require('lodash.flatten');
/**
* Filter dependencies by name pattern
* @param {String} dependency Name of the dependency
* @return {Boolean} If dependency is a rnpm plugin
*/
const isPlugin = (dependency) => !!~dependency.indexOf('rnpm-plugin-');
/**
* Get... | Make Kureev happy with currying | Make Kureev happy with currying
| JavaScript | mit | rnpm/rnpm | javascript | ## Code Before:
const path = require('path');
const flatten = require('lodash.flatten');
/**
* Filter dependencies by name pattern
* @param {String} dependency Name of the dependency
* @return {Boolean} If dependency is a rnpm plugin
*/
const isPlugin = (dependency) => !!~dependency.indexOf('rnpm-plugin... |
4a589a366877738a22313942049ee55e5113e158 | test/web_console/controller_helpers_test.rb | test/web_console/controller_helpers_test.rb | require 'test_helper'
module WebConsole
class ControllerHelperTest < ActionController::TestCase
class TestController < ActionController::Base
def render_console_ontop_of_text
render text: '<h1 id="greeting">Hello World</h1>'
console
end
def doesnt_render_console_on_non_html_req... | require 'test_helper'
module WebConsole
class ControllerHelperTest < ActionController::TestCase
class TestController < ActionController::Base
def render_console_ontop_of_text
render text: '<h1 id="greeting">Hello World</h1>'
console
end
def renders_console_only_once
ren... | Test controller helper won't render a console twice | Test controller helper won't render a console twice
| Ruby | mit | sh19910711/web-console,zBMNForks/web-console,jmbejar/web-console,tabislick/web-console,eileencodes/web-console,gsamokovarov/web-console,eileencodes/web-console,tabislick/web-console,zBMNForks/web-console,sh19910711/web-console,ryandao/web-console,sh19910711/web-console,slobodankovacevic/web-console,ryandao/web-console,... | ruby | ## Code Before:
require 'test_helper'
module WebConsole
class ControllerHelperTest < ActionController::TestCase
class TestController < ActionController::Base
def render_console_ontop_of_text
render text: '<h1 id="greeting">Hello World</h1>'
console
end
def doesnt_render_console... |
ba88228318a9135754e22625dcad50f4e50acc0c | app/controllers/remote_sessions_controller.rb | app/controllers/remote_sessions_controller.rb | class RemoteSessionsController < ApplicationController
def new
@app = ClientApplication.find_by_key(params[:key], :order=>'created_at DESC')
@access_token = AccessToken.find_by_user_id_and_client_application_id(current_user.id, @app.id)
if @access_token
# If an access token is fine, send every... | class RemoteSessionsController < ApplicationController
def new
@app = ClientApplication.find_by_key(params[:key], :order=>'created_at DESC')
@access_token = AccessToken.find_by_user_id_and_client_application_id(current_user.id, @app.id)
if @access_token
# If an access token is fine, send every... | Return account id to applications for new_user account management. | Return account id to applications for new_user account management.
| Ruby | mit | HotInk/hotink,HotInk/hotink | ruby | ## Code Before:
class RemoteSessionsController < ApplicationController
def new
@app = ClientApplication.find_by_key(params[:key], :order=>'created_at DESC')
@access_token = AccessToken.find_by_user_id_and_client_application_id(current_user.id, @app.id)
if @access_token
# If an access token is ... |
3c1b539f0cce41b5ee7883d01e00481ecea5d1dc | geoq/maps/templates/maps/_layer_stat_list.html | geoq/maps/templates/maps/_layer_stat_list.html | {% if 'maps.change_layer' or 'maps.delete_layer' in request.base_perms %}
<ul class="statlist pull-right">
{% if 'maps.change_layer' in request.base_perms %}
<li title="Edit this Layer">
<i class="icon-edit"></i>
<a href="{% url 'layer-update' object.id %}">Edit</a>
</li>
{% endif %}
... | {% if 'maps.change_layer' or 'maps.delete_layer' in request.base_perms %}
<ul class="statlist pull-right">
{% if 'maps.change_layer' in request.base_perms %}
<li title="Edit this Layer">
<i class="icon-edit"></i>
<a href="{% url 'layer-update' object.id %}">Edit</a>
</li>
<li title="Expo... | Update link to open modal | Update link to open modal
| HTML | mit | jdaigneau/geoq,jdaigneau/geoq,ngageoint/geoq,ngageoint/geoq,ngageoint/geoq,jdaigneau/geoq,ngageoint/geoq | html | ## Code Before:
{% if 'maps.change_layer' or 'maps.delete_layer' in request.base_perms %}
<ul class="statlist pull-right">
{% if 'maps.change_layer' in request.base_perms %}
<li title="Edit this Layer">
<i class="icon-edit"></i>
<a href="{% url 'layer-update' object.id %}">Edit</a>
</li>
... |
ad4382dfea9c76584952555e51cb9578e2699816 | README.md | README.md |
A minimal GTK2 frontend for [mpv](https://github.com/mpv-player/mpv) written in ruby.
[](https://rubygems.org/gems/ampv)
## Installation
$ gem install ampv
Ensure you have `$(ruby -rubygems -e "puts Gem.user_dir")/bin` added to your `$PATH`.
## Screenshots
 written in ruby.
[](https://rubygems.org/gems/ampv)
## Installation
$ gem install ampv
Ensure you have `$(ruby -rubygems -e "puts Gem.user_dir")/bin` added to your `$PATH`.
Or if you are using... | Add ebuild link to readme. | Add ebuild link to readme.
| Markdown | mit | ahodesuka/ampv | markdown | ## Code Before:
A minimal GTK2 frontend for [mpv](https://github.com/mpv-player/mpv) written in ruby.
[](https://rubygems.org/gems/ampv)
## Installation
$ gem install ampv
Ensure you have `$(ruby -rubygems -e "puts Gem.user_dir")/bin` added to your `$PATH`.
## ... |
23b177916f3d41480b7d78473093437a41225da3 | views/ctt-staticdata-countrys/update.php | views/ctt-staticdata-countrys/update.php | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\CttStaticdataCountrys */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Ctt Staticdata Countrys',
]) . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Ctt Staticdata Count... | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\CttStaticdataCountrys */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Ctt Staticdata Countrys',
]) . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Ctt Staticdata Count... | Add lang_id parameter into breadcrumbs. | Add lang_id parameter into breadcrumbs.
:)
| PHP | bsd-3-clause | anawatom/lavandula,anawatom/lavandula,anawatom/lavandula,anawatom/lavandula,anawatom/lavandula | php | ## Code Before:
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\CttStaticdataCountrys */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Ctt Staticdata Countrys',
]) . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Ctt ... |
102060b4970327c6fed2ea6a6489abc7c51770f4 | _config.yml | _config.yml | name: Mike's Site
# Site description
description: Interaction Designer in Chicago
# URL of avatar image
avatar: https://avatars3.githubusercontent.com/u/319534?v=3&s=460
# Markdown parser
markdown: redcarpet
# Syntax highlighting engine
highlighter: pygments
# Permalink format
permalink: /:title/
# Path to site i... | name: Mike's Site
# Site description
description: Interaction Designer in Chicago
# URL of avatar image
avatar: https://avatars3.githubusercontent.com/u/319534?v=3&s=460
# Markdown parser
markdown: redcarpet
# Enable typographic quotes and dashes
redcarpet:
extensions: ['smart']
# Syntax highlighting engine
hi... | Enable typographic quotes and dashes | Enable typographic quotes and dashes
…by setting a flag on the Redcarpet parser config.
| YAML | mit | mniebling/mniebling.github.io,mniebling/mniebling.github.io,mniebling/mniebling.github.io | yaml | ## Code Before:
name: Mike's Site
# Site description
description: Interaction Designer in Chicago
# URL of avatar image
avatar: https://avatars3.githubusercontent.com/u/319534?v=3&s=460
# Markdown parser
markdown: redcarpet
# Syntax highlighting engine
highlighter: pygments
# Permalink format
permalink: /:title/
... |
4d9cdec00aebc88e6656a7db65d200388ad048c0 | src/DTR/DTRBundle/Form/EventType.php | src/DTR/DTRBundle/Form/EventType.php | <?php
namespace DTR\DTRBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EventType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
publ... | <?php
namespace DTR\DTRBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EventType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
publ... | Add shops selection to event form. | Add shops selection to event form.
| PHP | mit | nfqakademija/dydis-turi-reiksme,nfqakademija/dydis-turi-reiksme,nfqakademija/dydis-turi-reiksme,nfqakademija/dydis-turi-reiksme | php | ## Code Before:
<?php
namespace DTR\DTRBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EventType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
... |
a6520a6788815e60d1c6b7616bf982a68264d27b | .travis.yml | .travis.yml | sudo: false
rvm:
- 2.2.5
branches:
only:
- master
before_install: wget --no-check-certificate https://releases.hashicorp.com/packer/0.9.0/packer_0.9.0_linux_amd64.zip && unzip -d packer packer_0.9.0_linux_amd64.zip
before_script: export PATH=$PATH:$PWD/packer
script: ./bin/bento normalize
| sudo: false
rvm:
- 2.3.1
branches:
only:
- master
before_install: wget --no-check-certificate https://releases.hashicorp.com/packer/0.10.2/packer_0.10.2_linux_amd64.zip && unzip -d packer packer_0.10.2_linux_amd64.zip
before_script: export PATH=$PATH:$PWD/packer
script: ./bin/bento normalize
| Use Ruby 2.3.1 and Packer 0.10.2 | Use Ruby 2.3.1 and Packer 0.10.2
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| YAML | apache-2.0 | techmaniack/bento,vincentaubert/bento,loadsys/packer-builds,chef/bento,norcams/bento,devopxteam/bento,norcams/bento,vincentaubert/bento,loadsys/packer-builds,techmaniack/bento,juliandunn/bento,ConSol/bento,b1-systems/bento,norcams/bento,chef/bento,legal90/bento,legal90/bento,techmaniack/bento,vincentaubert/bento,chef/b... | yaml | ## Code Before:
sudo: false
rvm:
- 2.2.5
branches:
only:
- master
before_install: wget --no-check-certificate https://releases.hashicorp.com/packer/0.9.0/packer_0.9.0_linux_amd64.zip && unzip -d packer packer_0.9.0_linux_amd64.zip
before_script: export PATH=$PATH:$PWD/packer
script: ./bin/bento normalize
#... |
a19e1a72a3a5d05d411c201740221a9c39afd6e3 | spec/models/game_spec.rb | spec/models/game_spec.rb | require 'rails_helper'
RSpec.describe Game, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
| require 'rails_helper'
RSpec.describe Game, type: :model do
describe "#deal" do
subject(:game) { Game.new }
specify do
HAND_SIZE = 10
game.deal
expect(game.south_hand).to have_exactly(HAND_SIZE).items
end
end
end
| Create unit test for Game.deal | Create unit test for Game.deal
| Ruby | mit | MattHeard/Five-Hundred,MattHeard/Five-Hundred,MattHeard/Five-Hundred | ruby | ## Code Before:
require 'rails_helper'
RSpec.describe Game, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
## Instruction:
Create unit test for Game.deal
## Code After:
require 'rails_helper'
RSpec.describe Game, type: :model do
describe "#deal" do
subject(:game) { Game.new }
... |
2e95b62d550b5819c26406ee57118a34abaded54 | roles/docker/tasks/main.yml | roles/docker/tasks/main.yml | - name: Add apt key for apt.dockerproject.org
become: yes
become_user: root
apt_key:
keyserver: hkp://p80.pool.sks-keyservers.net:80
id: 58118E89F3A912897C070ADBF76221572C52609D
tags: [docker]
- name: Add repository apt.dockerproject.org
become: yes
become_user: root
apt_repository:
repo: deb... | - name: Add apt key for apt.dockerproject.org
become: yes
become_user: root
apt_key:
keyserver: hkp://p80.pool.sks-keyservers.net:80
id: 58118E89F3A912897C070ADBF76221572C52609D
tags: [docker]
- name: Add repository apt.dockerproject.org
become: yes
become_user: root
apt_repository:
repo: deb... | Use ansible_ssh_user for docker user | [docker] Use ansible_ssh_user for docker user
| YAML | mit | odsod/pbox | yaml | ## Code Before:
- name: Add apt key for apt.dockerproject.org
become: yes
become_user: root
apt_key:
keyserver: hkp://p80.pool.sks-keyservers.net:80
id: 58118E89F3A912897C070ADBF76221572C52609D
tags: [docker]
- name: Add repository apt.dockerproject.org
become: yes
become_user: root
apt_repositor... |
0db2a75ab19e4162120683b51325bd89e678a2c4 | .travis.yml | .travis.yml |
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
install: "pip install -r requirements/production.txt"
# Builds all examples & html documentation
#
# Provide definition for DOXYGEN variable to stop it trying
# to run `which doxygen`
script: make DOXYGEN=doxygen
|
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y doxygen
install: "pip install -r requirements/production.txt"
# Builds all examples & html documentation
#
# Provide definition for DOXYGEN variable to stop it trying
# to run `w... | Install doxygen from apt-get before testing | Install doxygen from apt-get before testing
| YAML | bsd-3-clause | AnthonyTruchet/breathe,kirbyfan64/breathe,kirbyfan64/breathe,AnthonyTruchet/breathe,kirbyfan64/breathe,AnthonyTruchet/breathe,kirbyfan64/breathe,RR2DO2/breathe,AnthonyTruchet/breathe,RR2DO2/breathe | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
install: "pip install -r requirements/production.txt"
# Builds all examples & html documentation
#
# Provide definition for DOXYGEN variable to stop it trying
# to run `which doxygen`
script: make DOXYGEN=doxygen
## Instruction:
Inst... |
6fb51fa134dc3782cf8174dcc7b1a624d0dbafc2 | docs/source/index.rst | docs/source/index.rst | .. pynucastro documentation master file, created by
sphinx-quickstart on Wed Dec 27 11:54:03 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
pynucastro
==============
pynucastro is a set of python interfaces to nuclear reaction rate
databa... | .. pynucastro documentation master file, created by
sphinx-quickstart on Wed Dec 27 11:54:03 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
pynucastro
==============
.. note::
pynucastro does not yet calculate nuclear partition functi... | Add note about missing nuclear partition functions to docs. | Add note about missing nuclear partition functions to docs.
| reStructuredText | bsd-3-clause | pyreaclib/pyreaclib | restructuredtext | ## Code Before:
.. pynucastro documentation master file, created by
sphinx-quickstart on Wed Dec 27 11:54:03 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
pynucastro
==============
pynucastro is a set of python interfaces to nuclear reac... |
670da0371a16d44b5c3e2b9bd865cfe77b20a9c4 | src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/VideoPagePart/view.html.twig | src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/VideoPagePart/view.html.twig | {% if resource.video is defined and resource.video %}
<div class="video-pp">
{% set videoImage = asset('frontend/img/general/video-pp--default.svg') %}
{% if resource.thumbnail is not empty %}
{% set videoImage = resource.thumbnail.url|imagine_filter('optim') %}
{% endif %}
... | {% if resource.video is defined and resource.video %}
<div class="video-pp">
{% set videoImage = asset('frontend/img/general/video-pp--default.svg') %}
{% if resource.thumbnail is not empty %}
{% set videoImage = resource.thumbnail.url|imagine_filter('optim') %}
{% endif %}
... | Add compatibility for Vimeo and Dailymotion | Add compatibility for Vimeo and Dailymotion
| Twig | mit | wesleylancel/KunstmaanBundlesCMS,wame/KunstmaanBundlesCMS,Devolicious/KunstmaanBundlesCMS,piotrbelina/KunstmaanBundlesCMS,zizooboats/KunstmaanBundlesCMS,roderik/KunstmaanBundlesCMS,jverdeyen-forks/KunstmaanBundlesCMS,Devolicious/KunstmaanBundlesCMS,mwoynarski/KunstmaanBundlesCMS,FVKVN/KunstmaanBundlesCMS,webtown-php/Ku... | twig | ## Code Before:
{% if resource.video is defined and resource.video %}
<div class="video-pp">
{% set videoImage = asset('frontend/img/general/video-pp--default.svg') %}
{% if resource.thumbnail is not empty %}
{% set videoImage = resource.thumbnail.url|imagine_filter('optim') %}
{... |
22ffdba3eb952ab2d557ba81cecc9a30f781a46c | conf/db/upgrade/V3.1.0__schema.sql | conf/db/upgrade/V3.1.0__schema.sql | ALTER TABLE `AlarmVO` ADD COLUMN `type` varchar(32) NOT NULL;
CREATE TABLE IF NOT EXISTS `V2VConversionCacheVO` (
`id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT,
`conversionHostUuid` varchar(32) NOT NULL,
`srcVmUrl` varchar(255) NOT NULL,
`installPath` varchar(255) NOT NULL,
`deviceId` int un... | ALTER TABLE `AlarmVO` ADD COLUMN `type` varchar(32) NOT NULL;
UPDATE `AlarmVO` SET `type` = 'Any';
CREATE TABLE IF NOT EXISTS `V2VConversionCacheVO` (
`id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT,
`conversionHostUuid` varchar(32) NOT NULL,
`srcVmUrl` varchar(255) NOT NULL,
`installPath` varchar... | Set up default value to alarm type | Set up default value to alarm type
| SQL | apache-2.0 | AlanJager/zstack,AlanJager/zstack,zstackio/zstack,AlanJager/zstack,MatheMatrix/zstack,zstackorg/zstack,MatheMatrix/zstack,zstackorg/zstack,zstackio/zstack,zstackio/zstack,MatheMatrix/zstack | sql | ## Code Before:
ALTER TABLE `AlarmVO` ADD COLUMN `type` varchar(32) NOT NULL;
CREATE TABLE IF NOT EXISTS `V2VConversionCacheVO` (
`id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT,
`conversionHostUuid` varchar(32) NOT NULL,
`srcVmUrl` varchar(255) NOT NULL,
`installPath` varchar(255) NOT NULL,
`... |
daa4b145aeab66719420aefd993e90a77761a726 | src/sass/_core.scss | src/sass/_core.scss | // Generate Duration && Delay
[data-aos] {
@for $i from 1 through 60 {
body[data-aos-duration='#{$i * 50}'] &,
&[data-aos][data-aos-duration='#{$i * 50}'] {
transition-duration: #{$i * 50}ms;
}
body[data-aos-delay='#{$i * 50}'] &,
&[data-aos][data-aos-delay='#{$i * 50}'] {
transition-... | // Generate Duration && Delay
[data-aos] {
@for $i from 1 through 60 {
body[data-aos-duration='#{$i * 50}'] &,
&[data-aos][data-aos-duration='#{$i * 50}'] {
transition-duration: #{$i * 50}ms;
}
body[data-aos-delay='#{$i * 50}'] &,
&[data-aos][data-aos-delay='#{$i * 50}'] {
transition-... | Set proper transition delay unit | Set proper transition delay unit
| SCSS | mit | michalsnik/aos | scss | ## Code Before:
// Generate Duration && Delay
[data-aos] {
@for $i from 1 through 60 {
body[data-aos-duration='#{$i * 50}'] &,
&[data-aos][data-aos-duration='#{$i * 50}'] {
transition-duration: #{$i * 50}ms;
}
body[data-aos-delay='#{$i * 50}'] &,
&[data-aos][data-aos-delay='#{$i * 50}'] {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.