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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0fdfcb6bca2d40d418095316317a93876d798fab | change/@azure-msal-node-2020-09-24-14-45-33-msal-node-alpha-7-release.json | change/@azure-msal-node-2020-09-24-14-45-33-msal-node-alpha-7-release.json | {
"type": "none",
"comment": "Update changelog versions for msal-node and extensions (#2336)",
"packageName": "@azure/msal-node",
"email": "hectormgdev@gmail.com",
"dependentChangeType": "none",
"date": "2020-09-24T21:45:14.001Z"
}
| {
"type": "none",
"comment": "Update changelog versions for msal-node and extensions (#2336)",
"packageName": "@azure/msal-node",
"email": "hemoral@microsoft.com",
"dependentChangeType": "none",
"date": "2020-09-24T21:45:14.001Z"
}
| Update beachball change file e-mail | Update beachball change file e-mail | JSON | mit | AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication... | json | ## Code Before:
{
"type": "none",
"comment": "Update changelog versions for msal-node and extensions (#2336)",
"packageName": "@azure/msal-node",
"email": "hectormgdev@gmail.com",
"dependentChangeType": "none",
"date": "2020-09-24T21:45:14.001Z"
}
## Instruction:
Update beachball change file e-mail
## Code... |
79aa9c335619f39e9acb7c744705a6631cf18def | spec/controllers/queues_controller_spec.rb | spec/controllers/queues_controller_spec.rb | require 'spec_helper'
describe QueuesController, :type => :controller do
before do
# TODO shouldn't this use the actual output of the json rendering?
repository = { 'id' => 8, 'slug' => 'svenfuchs/gem-release' }
build_3 = { 'id' => 1, 'number' => '3', 'commit' => 'b0a1b69', 'config' => {} }
buil... | require 'spec_helper'
describe QueuesController, :type => :controller do
let(:jobs) { [Factory.create(:test, :number => '3'), Factory.create(:test, :number => '3.1') ] }
it 'index lists all jobs on the queue' do
get :index, :format => :json
json = ActiveSupport::JSON.decode(response.body)
json.should... | Use state :created instead of :started for selecting queued jobs | Use state :created instead of :started for selecting queued jobs
| Ruby | mit | 0xCCD/travis-ci,0xCCD/travis-ci | ruby | ## Code Before:
require 'spec_helper'
describe QueuesController, :type => :controller do
before do
# TODO shouldn't this use the actual output of the json rendering?
repository = { 'id' => 8, 'slug' => 'svenfuchs/gem-release' }
build_3 = { 'id' => 1, 'number' => '3', 'commit' => 'b0a1b69', 'config' ... |
e9d988c8eaab222a1123279f88e1b89bd4200a25 | repo.yml | repo.yml | type: 'node'
upstream:
- repo: 'balena-auth'
url: 'https://github.com/balena-io-modules/balena-auth'
- repo: 'balena-pine'
url: 'https://github.com/balena-io-modules/balena-pine'
- repo: 'balena-register-device'
url: 'https://github.com/balena-io-modules/balena-register-device'
- repo: 'balena-reque... | type: 'node'
upstream:
- repo: 'balena-auth'
url: 'https://github.com/balena-io-modules/balena-auth'
- repo: 'balena-hup-action-utils'
url: 'https://github.com/balena-io-modules/balena-hup-action-utils'
- repo: 'balena-pine'
url: 'https://github.com/balena-io-modules/balena-pine'
- repo: 'balena-reg... | Enable nested changelogs for balena-hup-action-utils | Enable nested changelogs for balena-hup-action-utils
Change-type: patch
Signed-off-by: Thodoris Greasidis <5791bdc4541e79bd43d586e3c3eff1e39c16665f@balena.io> | YAML | apache-2.0 | resin-io/resin-sdk | yaml | ## Code Before:
type: 'node'
upstream:
- repo: 'balena-auth'
url: 'https://github.com/balena-io-modules/balena-auth'
- repo: 'balena-pine'
url: 'https://github.com/balena-io-modules/balena-pine'
- repo: 'balena-register-device'
url: 'https://github.com/balena-io-modules/balena-register-device'
- rep... |
8f02cf51d0271361f1406a93234ce3eef8cc185b | ut/mocha.js | ut/mocha.js | var assert = require('assert');
describe('Angularjs', function() {
describe('test', function() {
it('always true', function() {
assert(1)
});
});
});
| var assert = require('assert');
describe('Angularjs', function() {
describe('main', function() {
it('always true', function() {
assert(1)
});
});
});
describe('Angularjs', function() {
describe('fpga', function() {
it('always true', function() {
assert(1)
});
});
});
describe('Angularjs', fu... | Add test for fpga main db | Add test for fpga main db
| JavaScript | agpl-3.0 | OpenFPGAduino/Arduinojs,OpenFPGAduino/Arduinojs,OpenFPGAduino/Arduinojs,OpenFPGAduino/Arduinojs,OpenFPGAduino/Arduinojs | javascript | ## Code Before:
var assert = require('assert');
describe('Angularjs', function() {
describe('test', function() {
it('always true', function() {
assert(1)
});
});
});
## Instruction:
Add test for fpga main db
## Code After:
var assert = require('assert');
describe('Angularjs', function() {
describe('mai... |
cf554b46362b3290256323cbb86473909b90ccdd | run.sh | run.sh | if [ -z "$LOGGLY_AUTH_TOKEN" ]; then
echo "Missing \$LOGGLY_AUTH_TOKEN"
exit 1
fi
# Fail if LOGGLY_TAG is not set
if [ -z "$LOGGLY_TAG" ]; then
echo "Missing \$LOGGLY_TAG"
exit 1
fi
# Create spool directory
mkdir -p /var/spool/rsyslog
# Replace variables
sed -i "s/LOGGLY_AUTH_TOKEN/$LOGGLY_AUTH_TOKEN/" /etc/... | if [ -z "$LOGGLY_AUTH_TOKEN" ]; then
echo "Missing \$LOGGLY_AUTH_TOKEN"
exit 1
fi
# Fail if LOGGLY_TAG is not set
if [ -z "$LOGGLY_TAG" ]; then
echo "Missing \$LOGGLY_TAG"
exit 1
fi
# Create spool directory
mkdir -p /var/spool/rsyslog
# Expand multiple tags, in the format of tag1:tag2:tag3, into several tag ... | Add support for multiple tags. | Add support for multiple tags.
| Shell | mit | vladgh/loggly-docker,aalness/loggly-docker,sendgridlabs/loggly-docker | shell | ## Code Before:
if [ -z "$LOGGLY_AUTH_TOKEN" ]; then
echo "Missing \$LOGGLY_AUTH_TOKEN"
exit 1
fi
# Fail if LOGGLY_TAG is not set
if [ -z "$LOGGLY_TAG" ]; then
echo "Missing \$LOGGLY_TAG"
exit 1
fi
# Create spool directory
mkdir -p /var/spool/rsyslog
# Replace variables
sed -i "s/LOGGLY_AUTH_TOKEN/$LOGGLY_AU... |
1f33deed0101f2118bbdebf4a62cee10f39bddd7 | assets/text-light.css | assets/text-light.css | body{font-family:Helvetica,arial,sans-serif;font-size:12px;line-height:1.4;background-color:#F7F7F9;color:#48484C;padding-left:3px;padding-right:3px}.change{background-color:#9ea1a1}.add{background-color:#DFD}.remove{background-color:#FDD}
| body{font-family:Helvetica,arial,sans-serif;font-size:12px;line-height:1.4;background-color:#F7F7F9;color:#48484C;padding-left:3px;padding-right:3px}.change{background-color:#9ea1a1;color:#eee}.add{background-color:#DFD}.remove{background-color:#FDD}
| Adjust foreground color of change headers in light theme. | Adjust foreground color of change headers in light theme.
| CSS | apache-2.0 | shineM/gh4a,DeLaSalleUniversity-Manila/octodroid-ToastyKrabstix,shineM/gh4a,AKiniyalocts/gh4a,shekibobo/gh4a,slapperwan/gh4a,slapperwan/gh4a,edyesed/gh4a,shekibobo/gh4a,edyesed/gh4a,Bloody-Badboy/gh4a,DeLaSalleUniversity-Manila/octodroid-ToastyKrabstix,sauloaguiar/gh4a,Bloody-Badboy/gh4a,sauloaguiar/gh4a,AKiniyalocts/g... | css | ## Code Before:
body{font-family:Helvetica,arial,sans-serif;font-size:12px;line-height:1.4;background-color:#F7F7F9;color:#48484C;padding-left:3px;padding-right:3px}.change{background-color:#9ea1a1}.add{background-color:#DFD}.remove{background-color:#FDD}
## Instruction:
Adjust foreground color of change headers in li... |
45cbdceb805f89578a455fd1f8acb9e88a7705d5 | src/main/scala/api/GeocodeApi.scala | src/main/scala/api/GeocodeApi.scala | package api
import akka.actor.{ ActorRef, ActorSystem }
import akka.pattern.ask
import akka.util.Timeout
import feature.Feature
import geojson.FeatureJsonProtocol.FeatureFormat
import model.{ TotalHits, Hits, AddressSearchResult }
import scala.concurrent.duration._
import spray.routing.{ Directives, Route }
import sca... | package api
import akka.actor.{ ActorRef, ActorSystem }
import akka.pattern.ask
import akka.util.Timeout
import feature.Feature
import geojson.FeatureJsonProtocol.FeatureFormat
import model.{ TotalHits, Hits, AddressSearchResult }
import scala.concurrent.duration._
import spray.routing.{ Directives, Route }
import sca... | Add json return and compression | Add json return and compression
| Scala | apache-2.0 | jmarin/scale-geocode,jmarin/scale-geocode | scala | ## Code Before:
package api
import akka.actor.{ ActorRef, ActorSystem }
import akka.pattern.ask
import akka.util.Timeout
import feature.Feature
import geojson.FeatureJsonProtocol.FeatureFormat
import model.{ TotalHits, Hits, AddressSearchResult }
import scala.concurrent.duration._
import spray.routing.{ Directives, Ro... |
17e5b5492e6e128459fc20fc3e9df41c6095b6e1 | .travis.yml | .travis.yml | language: "ruby"
rvm:
- "1.8"
- "1.9"
- "2.0"
- "2.1"
- "jruby"
- "rbx"
install:
- bundle install --retry=3
matrix:
include:
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.multi_json.x"
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.yajl-ruby.x"
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.uu... | language: "ruby"
rvm:
- "1.8"
- "1.9"
- "2.0"
- "2.1"
- "jruby"
- "rbx"
sudo:false
install:
- bundle install --retry=3
matrix:
include:
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.multi_json.x"
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.yajl-ruby.x"
- rvm: "2.1"
gemfile: "gemf... | Use the new build env on Travis | Use the new build env on Travis
more ram, more cpu, improved network and vm boot times
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
more docs coming soon | YAML | mit | iainbeeston/json-schema,openc/json-schema,RST-J/json-schema,openc/json-schema,ruby-json-schema/json-schema,ganeshkumar/json-schema | yaml | ## Code Before:
language: "ruby"
rvm:
- "1.8"
- "1.9"
- "2.0"
- "2.1"
- "jruby"
- "rbx"
install:
- bundle install --retry=3
matrix:
include:
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.multi_json.x"
- rvm: "2.1"
gemfile: "gemfiles/Gemfile.yajl-ruby.x"
- rvm: "2.1"
gemfile: "gem... |
cbe5c63a1850ed816f5f51576bb8e516c50a76f7 | recipes/vidyo.rb | recipes/vidyo.rb | deb_name = 'VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb'
deb_path = "#{Chef::Config[:file_cache_path]}/#{deb_name}"
remote_file deb_path do
source "https://demo.vidyo.com/upload/#{deb_name}"
checksum '9d2455dc29bfa7db5cf3ec535ffd2a8c86c5a71f78d7d89c40dbd744b2c15707'
end
package 'libqt4-gui'
dpkg_package d... | deb_name = 'VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb'
deb_path = "#{Chef::Config[:file_cache_path]}/#{deb_name}"
remote_file deb_path do
source "https://demo.vidyo.com/upload/#{deb_name}"
checksum '9d2455dc29bfa7db5cf3ec535ffd2a8c86c5a71f78d7d89c40dbd744b2c15707'
end
package [
'libqt4-designer... | Use modern package names instead of deprecated 'libqt4-gui' | Use modern package names instead of deprecated 'libqt4-gui'
| Ruby | apache-2.0 | http-418/chef-desktop,http-418/chef-desktop,http-418/chef-desktop,http-418/chef-desktop | ruby | ## Code Before:
deb_name = 'VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb'
deb_path = "#{Chef::Config[:file_cache_path]}/#{deb_name}"
remote_file deb_path do
source "https://demo.vidyo.com/upload/#{deb_name}"
checksum '9d2455dc29bfa7db5cf3ec535ffd2a8c86c5a71f78d7d89c40dbd744b2c15707'
end
package 'libqt4-gui'... |
4ecf978642e0db86bf47aa75a00b658ee93f4119 | Specs/Core/AnimationControllerSpec.js | Specs/Core/AnimationControllerSpec.js | /*global defineSuite*/
defineSuite([
'Core/Clock',
'Core/AnimationController'
], function(
Clock,
AnimationController) {
"use strict";
/*global it,expect*/
it('construct with default clock', function() {
var clock = new Clock();
... | /*global defineSuite*/
defineSuite([
'Core/AnimationController',
'Core/Clock'
], function(
AnimationController,
Clock) {
"use strict";
/*global it,expect*/
it('construct with default clock', function() {
var clock = new Clock();
... | Fix name of AnimationController unit test. | Fix name of AnimationController unit test.
| JavaScript | apache-2.0 | wallw-bits/cesium,YonatanKra/cesium,aelatgt/cesium,jasonbeverage/cesium,NaderCHASER/cesium,esraerik/cesium,jason-crow/cesium,esraerik/cesium,hodbauer/cesium,soceur/cesium,jason-crow/cesium,AnimatedRNG/cesium,likangning93/cesium,emackey/cesium,wallw-bits/cesium,esraerik/cesium,AnalyticalGraphicsInc/cesium,likangning93/c... | javascript | ## Code Before:
/*global defineSuite*/
defineSuite([
'Core/Clock',
'Core/AnimationController'
], function(
Clock,
AnimationController) {
"use strict";
/*global it,expect*/
it('construct with default clock', function() {
var clock = n... |
59a6faf391b43dfb85616c8e9ede24a7b4e27551 | angular_components/lib/material_tab/material_tab.scss | angular_components/lib/material_tab/material_tab.scss | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@import 'package:angular_components/css/material/material';
@import 'package:angular_components/css/mat... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@import 'package:angular_components/css/material/material';
@import 'package:angular_components/css/mat... | Set default width of tab-content to 100%. | Set default width of tab-content to 100%.
PiperOrigin-RevId: 222349162
| SCSS | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components | scss | ## Code Before:
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@import 'package:angular_components/css/material/material';
@import 'package:angular_co... |
4f880375b2539cf1a56e9a1fd816d4aa039e939e | upload/library/SV/OptimizedListQueries/XenForo/Model/Post.php | upload/library/SV/OptimizedListQueries/XenForo/Model/Post.php | <?php
class SV_OptimizedListQueries_XenForo_Model_Post extends XFCP_SV_OptimizedListQueries_XenForo_Model_Post
{
public function preparePostJoinOptions(array $fetchOptions)
{
if (SV_OptimizedListQueries_Globals::$slimPostFetchForSearch)
{
$fetchOptions['skip_wordcount'] = true;
... | <?php
class SV_OptimizedListQueries_XenForo_Model_Post extends XFCP_SV_OptimizedListQueries_XenForo_Model_Post
{
public function preparePostJoinOptions(array $fetchOptions)
{
if (SV_OptimizedListQueries_Globals::$slimPostFetchForSearch)
{
$fetchOptions['skip_wordcount'] = true;
... | Fix threadmark slim search results | Fix threadmark slim search results
| PHP | mit | Xon/XenForo-OptimizedListQueries | php | ## Code Before:
<?php
class SV_OptimizedListQueries_XenForo_Model_Post extends XFCP_SV_OptimizedListQueries_XenForo_Model_Post
{
public function preparePostJoinOptions(array $fetchOptions)
{
if (SV_OptimizedListQueries_Globals::$slimPostFetchForSearch)
{
$fetchOptions['skip_wordcoun... |
1294ca2cfed003235e1b20fa79fb6d99212a7bff | lib/create.js | lib/create.js | 'use strict';
var NET = require('net');
var PORTS = {};
function CreateServer(
port,
callback
){
if(
(typeof port === 'number')
){
port = parseFloat(port);
if(
(PORTS[port.toString()])
){
process.nextTick(CreateServer,port,callback);
... | 'use strict';
var NET = require('net');
var PORTS = {};
function CreateServer(
port,
callback
){
if(
(typeof port === 'number')
){
port = parseFloat(port);
if(
(PORTS[port.toString()])
){
process.nextTick(CreateServer,port,callback);
... | Add a 'try' block for current versions of Node.js to try and '.close' the server. | Add a 'try' block for current versions of Node.js to try and '.close' the server.
| JavaScript | mit | METACEO/nodejs.chasm | javascript | ## Code Before:
'use strict';
var NET = require('net');
var PORTS = {};
function CreateServer(
port,
callback
){
if(
(typeof port === 'number')
){
port = parseFloat(port);
if(
(PORTS[port.toString()])
){
process.nextTick(CreateServer,port,callback);
... |
305969cedb966d1e5cd340d531727bb984ac35a8 | whitenoise/generators/sqlalchemy.py | whitenoise/generators/sqlalchemy.py | import random
from whitenoise.generators import BaseGenerator
class SelectGenerator(BaseGenerator):
'''
Creates a value by selecting from another SQLAlchemy table
Depends on SQLAlchemy, and receiving a session object from the Fixture runner
the SQLAlchemy fixture runner handles this for us
Receives... | import random
from whitenoise.generators import BaseGenerator
class SelectGenerator(BaseGenerator):
'''
Creates a value by selecting from another SQLAlchemy table
Depends on SQLAlchemy, and receiving a session object from the Fixture runner
the SQLAlchemy fixture runner handles this for us
Receives... | Add a generator for association tables | Add a generator for association tables
| Python | mit | James1345/white-noise | python | ## Code Before:
import random
from whitenoise.generators import BaseGenerator
class SelectGenerator(BaseGenerator):
'''
Creates a value by selecting from another SQLAlchemy table
Depends on SQLAlchemy, and receiving a session object from the Fixture runner
the SQLAlchemy fixture runner handles this for... |
645f0750f3f8a087e57d41fbfeb181e9ffa5766f | src/test/resources/variantConfiguration.properties | src/test/resources/variantConfiguration.properties | input=/small20.vcf.gz
fileId=5
aggregated=NONE
studyType=COLLECTION
studyName=studyName
studyId=7
outputDir=/tmp
pedigree=
dbCollectionVariantsName=variants
dbCollectionFilesName=files
dbName=variantJob
storageEngine=mongodb
compressGenotypes=true
compressExtension=.gz
includeSrc=FIRST_8_COLUMNS
opencga.app.home=
ski... | input=/small20.vcf.gz
fileId=5
aggregated=NONE
studyType=COLLECTION
studyName=studyName
studyId=7
outputDir=/tmp
pedigree=
dbCollectionVariantsName=variants
dbCollectionFilesName=files
dbName=variantJob
storageEngine=mongodb
compressGenotypes=true
compressExtension=.gz
includeSrc=FIRST_8_COLUMNS
opencga.app.home=/opt/... | Set opencga value to /opt/opencga | Set opencga value to /opt/opencga
| INI | apache-2.0 | jmmut/eva-pipeline,jmmut/eva-pipeline,jmmut/eva-pipeline,cyenyxe/eva-pipeline,EBIvariation/eva-pipeline,EBIvariation/eva-pipeline,cyenyxe/eva-pipeline,cyenyxe/eva-pipeline | ini | ## Code Before:
input=/small20.vcf.gz
fileId=5
aggregated=NONE
studyType=COLLECTION
studyName=studyName
studyId=7
outputDir=/tmp
pedigree=
dbCollectionVariantsName=variants
dbCollectionFilesName=files
dbName=variantJob
storageEngine=mongodb
compressGenotypes=true
compressExtension=.gz
includeSrc=FIRST_8_COLUMNS
opencg... |
aa743318f6142fe387c5e6d390cf6d0cfcab0603 | frontend/app/map/views/manage-views.html | frontend/app/map/views/manage-views.html | <div class="modal-header">
<button type="button" class="close" ng-click="$dismiss()"><span aria-hidden="true">×</span></button>
<h3 class="modal-title">Manage Views</h3>
</div>
<div class="modal-body">
<div uib-alert class="alert-danger" ng-if="error">{{error.message || error}}</div>
<table class="table table... | <div class="modal-header">
<button type="button" class="close" ng-click="$dismiss()"><span aria-hidden="true">×</span></button>
<h3 class="modal-title">Manage Views</h3>
</div>
<div class="modal-body">
<div uib-alert class="alert-danger" ng-if="error">{{error.message || error}}</div>
<table class="table table... | Fix highlighting of default view | Fix highlighting of default view
| HTML | agpl-3.0 | FacilMap/facilmap2,FacilMap/facilmap,FacilMap/facilmap,FacilMap/facilmap,FacilMap/facilmap2 | html | ## Code Before:
<div class="modal-header">
<button type="button" class="close" ng-click="$dismiss()"><span aria-hidden="true">×</span></button>
<h3 class="modal-title">Manage Views</h3>
</div>
<div class="modal-body">
<div uib-alert class="alert-danger" ng-if="error">{{error.message || error}}</div>
<table cl... |
b1fac7942cab29109c0cdbc194a44a56fc134992 | README.md | README.md |
This is the demo application seen in the Realm Mobile Platform [launch video][1], a real-time collaborative drawing program available for Android, iOS and Xamarin. Any number of users may draw on a single shared canvas in any given moment.
## Prerequisites
The Realm-Draw demo application requires the Realm Mobile Pl... |
This is the demo application seen in the Realm Mobile Platform [launch video][1], a real-time collaborative drawing program available for Android, iOS and Xamarin. Any number of users may draw on a single shared canvas in any given moment.
## Prerequisites
The Realm-Draw demo application requires the Realm Mobile Pl... | Move the known issues section to the bottom | Move the known issues section to the bottom
Copy was in hte wrong place.
| Markdown | apache-2.0 | realm-demos/realm-draw,realm-demos/realm-draw,realm-demos/realm-draw | markdown | ## Code Before:
This is the demo application seen in the Realm Mobile Platform [launch video][1], a real-time collaborative drawing program available for Android, iOS and Xamarin. Any number of users may draw on a single shared canvas in any given moment.
## Prerequisites
The Realm-Draw demo application requires the... |
bdebc528f74144ee6ab60b7f4cf996074de145e8 | SwiftTask/_RecursiveLock.swift | SwiftTask/_RecursiveLock.swift | //
// _RecursiveLock.swift
// SwiftTask
//
// Created by Yasuhiro Inami on 2015/05/18.
// Copyright (c) 2015年 Yasuhiro Inami. All rights reserved.
//
import Darwin
internal final class _RecursiveLock
{
private let mutex: UnsafeMutablePointer<pthread_mutex_t>
private let attribute: UnsafeMutablePointer<pth... | //
// _RecursiveLock.swift
// SwiftTask
//
// Created by Yasuhiro Inami on 2015/05/18.
// Copyright (c) 2015年 Yasuhiro Inami. All rights reserved.
//
import Darwin
internal final class _RecursiveLock
{
private let mutex: UnsafeMutablePointer<pthread_mutex_t>
private let attribute: UnsafeMutablePointer<pth... | Update for Xcode 8 beta 4 | Update for Xcode 8 beta 4
| Swift | mit | ReactKit/SwiftTask,ReactKit/SwiftTask,ReactKit/SwiftTask | swift | ## Code Before:
//
// _RecursiveLock.swift
// SwiftTask
//
// Created by Yasuhiro Inami on 2015/05/18.
// Copyright (c) 2015年 Yasuhiro Inami. All rights reserved.
//
import Darwin
internal final class _RecursiveLock
{
private let mutex: UnsafeMutablePointer<pthread_mutex_t>
private let attribute: UnsafeMu... |
0916ed4903914ee46dbe4e451d367dff719c9a15 | tests/example_project/urls.py | tests/example_project/urls.py | from os.path import dirname, join, normpath
import django
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.admin import autodiscover
import ella
from ella import newman
from ella.utils import installedapps
newman.autodiscover()
installedapps.init_logger()
ADMIN_ROOTS = ... | from os.path import dirname, join, normpath
import django
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
import ella
from ella import newman
from ella.utils import installedapps
newman.autodiscover()
admin.autodiscover()
installedapps.init_logger()
ADMIN_... | Test running both newman/ and admin/ - some templates still mixed. | Test running both newman/ and admin/ - some templates still mixed.
| Python | bsd-3-clause | petrlosa/ella,ella/ella,whalerock/ella,WhiskeyMedia/ella,WhiskeyMedia/ella,petrlosa/ella,MichalMaM/ella,whalerock/ella,MichalMaM/ella,whalerock/ella | python | ## Code Before:
from os.path import dirname, join, normpath
import django
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.admin import autodiscover
import ella
from ella import newman
from ella.utils import installedapps
newman.autodiscover()
installedapps.init_logger()
... |
c2cacebcce85247cae467c1846ca3f8738f50424 | test/regression/Str2.java | test/regression/Str2.java | class Str2 {
public static void main (String args[]) {
String a = "1";
a += "2";
System.out.println(a);
System.out.println("abc".indexOf("", -32));
System.out.println("abc".indexOf("", 100));
System.out.println("abc".lastIndexOf("", -32));
System.out.println("abc".lastIndexOf("", 100));
}
}
/* Expected... | class Str2 {
public static void main (String args[]) {
String a = "1";
a += "2";
System.out.println(a);
System.out.println("abc".indexOf("", -99999999));
System.out.println("abc".indexOf("", 99999999));
System.out.println("".indexOf("a"));
System.out.println("".indexOf(""));
System.out.println("abc".la... | Add a couple more tests. | Add a couple more tests.
| Java | lgpl-2.1 | kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe | java | ## Code Before:
class Str2 {
public static void main (String args[]) {
String a = "1";
a += "2";
System.out.println(a);
System.out.println("abc".indexOf("", -32));
System.out.println("abc".indexOf("", 100));
System.out.println("abc".lastIndexOf("", -32));
System.out.println("abc".lastIndexOf("", 100));
... |
4f724898a1314949f02c96e3d2bab8b9abf099b7 | test/.eslintrc.yml | test/.eslintrc.yml | parserOptions:
sourceType: module
extends:
- "eslint:recommended"
- "plugin:react/recommended"
env:
mocha: true
| parserOptions:
sourceType: module
extends:
- "eslint:recommended"
- "plugin:react/recommended"
rules:
no-console: 1
env:
mocha: true
| Set no-console to 1 in test/.eslintconfig.yml | Set no-console to 1 in test/.eslintconfig.yml
| YAML | mit | noraesae/pen | yaml | ## Code Before:
parserOptions:
sourceType: module
extends:
- "eslint:recommended"
- "plugin:react/recommended"
env:
mocha: true
## Instruction:
Set no-console to 1 in test/.eslintconfig.yml
## Code After:
parserOptions:
sourceType: module
extends:
- "eslint:recommended"
- "plugin:react/recommended"
rul... |
495ab8011269e74da24c5595a6f6e1bc3ac12ee5 | codeclimate.gemspec | codeclimate.gemspec | $LOAD_PATH.unshift(File.join(__FILE__, "../lib"))
VERSION = File.read(File.expand_path("../VERSION", __FILE__))
Gem::Specification.new do |s|
s.name = "codeclimate"
s.version = VERSION
s.summary = "Code Climate CLI"
s.license = "AGPL"
s.authors = "Code Climate"
s.email = "hello@codeclimate.com"
s.homepag... | $LOAD_PATH.unshift(File.join(__FILE__, "../lib"))
VERSION = File.read(File.expand_path("../VERSION", __FILE__))
Gem::Specification.new do |s|
s.name = "codeclimate"
s.version = VERSION
s.summary = "Code Climate CLI"
s.license = "AGPL"
s.authors = "Code Climate"
s.email = "hello@codeclimate.com"
s.homepag... | Add ruby version requirement to gemspec | Add ruby version requirement to gemspec
| Ruby | agpl-3.0 | codeclimate/codeclimate,codeclimate/codeclimate,codeclimate/codeclimate | ruby | ## Code Before:
$LOAD_PATH.unshift(File.join(__FILE__, "../lib"))
VERSION = File.read(File.expand_path("../VERSION", __FILE__))
Gem::Specification.new do |s|
s.name = "codeclimate"
s.version = VERSION
s.summary = "Code Climate CLI"
s.license = "AGPL"
s.authors = "Code Climate"
s.email = "hello@codeclimate.... |
ce446e7a0b97e3dc3ac8e6b870cc0367dfef36f0 | lib/observe.coffee | lib/observe.coffee | module.exports = (observed, keys, callback) ->
Object.observe observed, (changes) =>
for change in changes
if change.name in keys
callback()
break
| module.exports = (observed, keys, callback) ->
Object.observe observed, (changes) =>
for change in changes
if (change.name in keys) or (keys.length is 0)
callback()
break
| Allow observing [] for all keys | Allow observing [] for all keys
| CoffeeScript | mit | atom/github,atom/github,atom/github | coffeescript | ## Code Before:
module.exports = (observed, keys, callback) ->
Object.observe observed, (changes) =>
for change in changes
if change.name in keys
callback()
break
## Instruction:
Allow observing [] for all keys
## Code After:
module.exports = (observed, keys, callback) ->
Obj... |
84e964eba11e344f6f0ec612b5743e693a8825bd | thoonk/config.py | thoonk/config.py | import json
import threading
import uuid
from thoonk.consts import *
class ConfigCache(object):
def __init__(self, pubsub):
self._feeds = {}
self.pubsub = pubsub
self.lock = threading.Lock()
self.instance = uuid.uuid4().hex
def __getitem__(self, feed):
with self.lock:... | import json
import threading
import uuid
class ConfigCache(object):
"""
The ConfigCache class stores an in-memory version of each
feed's configuration. As there may be multiple systems using
Thoonk with the same Redis server, and each with its own
ConfigCache instance, each ConfigCache has a self... | Add docs to the ConfigCache. | Add docs to the ConfigCache.
| Python | mit | andyet/thoonk.py,fritzy/thoonk.py | python | ## Code Before:
import json
import threading
import uuid
from thoonk.consts import *
class ConfigCache(object):
def __init__(self, pubsub):
self._feeds = {}
self.pubsub = pubsub
self.lock = threading.Lock()
self.instance = uuid.uuid4().hex
def __getitem__(self, feed):
... |
d93ffe995dfbdbc698c4594f9e0d255a6af3802b | index.html | index.html | <!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1... | <!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1... | Make the redirect generic, now its point to the folder and not for the file | Make the redirect generic, now its point to the folder and not for the file
| HTML | apache-2.0 | otaviojava/nosqlba,otaviojava/nosqlba | html | ## Code Before:
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="... |
185eedb347f1fb8b915ee5ee54b6acc7fda2f940 | src/protocolsupport/protocol/packet/middleimpl/clientbound/play/v_7/EntityTeleport.java | src/protocolsupport/protocol/packet/middleimpl/clientbound/play/v_7/EntityTeleport.java | package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_7;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.ClientBoundPacket;
import protocolsupport.protocol.packet.middle.clientbound.play.MiddleEntityTeleport;
import protocolsupport.protocol.packet.middleimpl.ClientBou... | package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_7;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.ClientBoundPacket;
import protocolsupport.protocol.packet.middle.clientbound.play.MiddleEntityTeleport;
import protocolsupport.protocol.packet.middleimpl.ClientBou... | Add != null check to avoid exceptions when teleporting unknown entity | Add != null check to avoid exceptions when teleporting unknown entity | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport | java | ## Code Before:
package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_7;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.ClientBoundPacket;
import protocolsupport.protocol.packet.middle.clientbound.play.MiddleEntityTeleport;
import protocolsupport.protocol.packet.midd... |
340bc3e2a9494eeffcd50c906000b75081e14eb3 | .rubocop.yml | .rubocop.yml | inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
AllCops:
Exclude:
- 'bin/**/*'
- 'config.ru'
- 'tmp/**/*'
- 'db/schema.rb'
- 'lib/tasks/cucumber.rake'
Metrics/BlockLength:
Enabled: false
Naming/VariableNumber:
EnforcedStyle: snake_case
Style/FormatStringToken... | inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
AllCops:
Exclude:
- 'bin/**/*'
- 'config.ru'
- 'tmp/**/*'
- 'db/schema.rb'
- 'lib/tasks/cucumber.rake'
Metrics/BlockLength:
Enabled: false
Naming/VariableNumber:
EnforcedStyle: snake_case
Style/FormatStringToken:... | Remove file listed that has now gone | Remove file listed that has now gone
The hope of whoever left this comment has been fulfilled.
| YAML | mit | alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall | yaml | ## Code Before:
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
AllCops:
Exclude:
- 'bin/**/*'
- 'config.ru'
- 'tmp/**/*'
- 'db/schema.rb'
- 'lib/tasks/cucumber.rake'
Metrics/BlockLength:
Enabled: false
Naming/VariableNumber:
EnforcedStyle: snake_case
Style/F... |
114ad3c29df12a0d892c62e8008f1956e2144555 | test-project/docker-compose.yml | test-project/docker-compose.yml | test-project:
build: .
volumes:
- .:/usr/src/app
ports:
- 8080:8080
| test-project:
build: .
volumes:
- .:/usr/src/app
| Remove redundant ports definition (Gdrive upload doesn't work anyway). | Remove redundant ports definition (Gdrive upload doesn't work anyway).
| YAML | mit | foliant-docs/foliant | yaml | ## Code Before:
test-project:
build: .
volumes:
- .:/usr/src/app
ports:
- 8080:8080
## Instruction:
Remove redundant ports definition (Gdrive upload doesn't work anyway).
## Code After:
test-project:
build: .
volumes:
- .:/usr/src/app
|
6d56f5f27936e362e85c140190d87d675b98bea1 | templates/opt/splunk/etc/passwd.erb | templates/opt/splunk/etc/passwd.erb | <%= @splunkadmin %>
<% if @type == 'search' and @localusers != :undef then -%>
<% localusers.each do |user| -%>
<%= user %>
<% end -%>
<% end -%>
| <%= @splunkadmin %>
<% if @type == 'search' and @localusers then -%>
<% @localusers.each do |user| -%>
<%= user %>
<% end -%>
<% end -%>
| Fix comparison of @localusers to undef for puppet3.7/ruby1.8 | Fix comparison of @localusers to undef for puppet3.7/ruby1.8
Catalog compilation fails with puppet 3.7 on ruby 1.8 (centos6) with
error calling .each on undef, due to failing comparison of @localusers
to :undef. Replace witha simple truthyness test of @localusers.
| HTML+ERB | mit | huit/puppet-splunk,huit/puppet-splunk,tfhartmann/puppet-splunk,tfhartmann/puppet-splunk,huit/puppet-splunk,tfhartmann/puppet-splunk,huit/puppet-splunk,huit/puppet-splunk,tfhartmann/puppet-splunk,tfhartmann/puppet-splunk | html+erb | ## Code Before:
<%= @splunkadmin %>
<% if @type == 'search' and @localusers != :undef then -%>
<% localusers.each do |user| -%>
<%= user %>
<% end -%>
<% end -%>
## Instruction:
Fix comparison of @localusers to undef for puppet3.7/ruby1.8
Catalog compilation fails with puppet 3.7 on ruby 1.8 (centos6) with
e... |
d6eafa5c08839d1fc10c5f6dadb53afc694a3c08 | src/main/java/com/nincraft/ninbot/command/DabCommand.java | src/main/java/com/nincraft/ninbot/command/DabCommand.java | package com.nincraft.ninbot.command;
import com.nincraft.ninbot.util.MessageUtils;
import lombok.val;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
public class DabCommand extends AbstractCommand {
public DabCommand() {
length = 3;
... | package com.nincraft.ninbot.command;
import com.nincraft.ninbot.util.MessageUtils;
import lombok.val;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
public class DabCommand extends AbstractCommand {
public DabCommand() {
length = 3;
... | Remove @ from user on Dab command | Remove @ from user on Dab command
| Java | mit | Nincodedo/Ninbot | java | ## Code Before:
package com.nincraft.ninbot.command;
import com.nincraft.ninbot.util.MessageUtils;
import lombok.val;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
public class DabCommand extends AbstractCommand {
public DabCommand() {
leng... |
010a8b2d421b57a0dfa4b1c468f5381d94496fbf | src/test/java/com/vtence/molecule/testing/HtmlForm.java | src/test/java/com/vtence/molecule/testing/HtmlForm.java | package com.vtence.molecule.testing;
import com.vtence.molecule.helpers.Charsets;
import com.vtence.molecule.helpers.Joiner;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class HtmlForm {
private final Map<String, Strin... | package com.vtence.molecule.testing;
import com.vtence.molecule.helpers.Charsets;
import com.vtence.molecule.helpers.Joiner;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class HtmlForm {
private final Map<String, Strin... | Clarify language to avoid confusing between form accepted charset and form encoding type | Clarify language to avoid confusing between form accepted charset and form encoding type
| Java | mit | testinfected/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule | java | ## Code Before:
package com.vtence.molecule.testing;
import com.vtence.molecule.helpers.Charsets;
import com.vtence.molecule.helpers.Joiner;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class HtmlForm {
private final M... |
a5463c4c1021009be6958c3821605e8b803edc45 | local-cli/run-packager.js | local-cli/run-packager.js | 'use strict';
var path = require('path');
var child_process = require('child_process');
module.exports = function(newWindow) {
if (newWindow) {
var launchPackagerScript =
path.resolve(__dirname, '..', 'packager', 'launchPackager.command');
if (process.platform === 'darwin') {
child_process.spawn... | 'use strict';
var path = require('path');
var child_process = require('child_process');
module.exports = function(newWindow) {
if (newWindow) {
var launchPackagerScript =
path.resolve(__dirname, '..', 'packager', 'launchPackager.command');
if (process.platform === 'darwin') {
child_process.spawn... | Fix 'react-native start' on Windows | [cli] Fix 'react-native start' on Windows
Based on https://github.com/facebook/react-native/pull/2989
Thanks @BerndWessels!
| JavaScript | bsd-3-clause | machard/react-native,Tredsite/react-native,cdlewis/react-native,myntra/react-native,ankitsinghania94/react-native,mrngoitall/react-native,hzgnpu/react-native,negativetwelve/react-native,CntChen/react-native,Maxwell2022/react-native,lprhodes/react-native,makadaw/react-native,philonpang/react-native,wesley1001/react-nati... | javascript | ## Code Before:
'use strict';
var path = require('path');
var child_process = require('child_process');
module.exports = function(newWindow) {
if (newWindow) {
var launchPackagerScript =
path.resolve(__dirname, '..', 'packager', 'launchPackager.command');
if (process.platform === 'darwin') {
chi... |
ceb6975d517a63d08f7e77bd7ebb5651b3e3d973 | README.md | README.md |
This module provides the ability to have partial password masking on a Titanium `TextField` object. This may be desirable in certain applications, for example, which may want to reveal only the last few digits of a Social Security Number or a Drivers License number.
This [Screen Capture](http://www.screencast.com/t/... |
This module provides the ability to have partial password masking on a Titanium `TextField` object. This may be desirable in certain applications, for example, which may want to reveal only the last few digits of a Social Security Number or a Drivers License number.
This [Screen Capture](http://www.screencast.com/t/... | Update to reflect 2.1.2 capability for Android | Update to reflect 2.1.2 capability for Android | Markdown | apache-2.0 | patrickseda/PartialMaskField | markdown | ## Code Before:
This module provides the ability to have partial password masking on a Titanium `TextField` object. This may be desirable in certain applications, for example, which may want to reveal only the last few digits of a Social Security Number or a Drivers License number.
This [Screen Capture](http://www.s... |
4d2b172730b6889bd8793bbe3ed548bc87b6b658 | app/src/main/res/layout/message_view.xml | app/src/main/res/layout/message_view.xml | <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:parentTag="android.widget.FrameLayout">
<ImageView
... | <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:parentTag="android.widget.FrameLayout">
<ImageView
... | Add placeholder when loading thumbnails | Add placeholder when loading thumbnails
| XML | mit | mopsalarm/Pr0,mopsalarm/Pr0,mopsalarm/Pr0 | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:parentTag="android.widget.FrameLayout">
... |
979bf24a28e95f6975fde020b002426eafe5f3e6 | static/js/activity-23andme-complete-import.js | static/js/activity-23andme-complete-import.js | $(function () {
var params = {'data_type': '23andme_names'};
$.ajax({
'type': 'GET',
'url': '/json-data/',
'data': params,
'success': function(data) {
if (data.profiles && data.profiles.length > 0) {
for (var i = 0; i < data.profiles.length; i++) {
... | $(function () {
var params = {'data_type': '23andme_names'};
$.ajax({
'type': 'GET',
'url': '/json-data/',
'data': params,
'success': function(data) {
if (data.profiles && data.profiles.length > 0) {
for (var i = 0; i < data.profiles.length; i++) {
var radioElem = $('<input ... | Fix JS to use 2-space tabs | Fix JS to use 2-space tabs
| JavaScript | mit | PersonalGenomesOrg/open-humans,OpenHumans/open-humans,PersonalGenomesOrg/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,PersonalGenomesOrg/open-humans,PersonalGenomesOrg/open-humans,OpenHumans/open-humans | javascript | ## Code Before:
$(function () {
var params = {'data_type': '23andme_names'};
$.ajax({
'type': 'GET',
'url': '/json-data/',
'data': params,
'success': function(data) {
if (data.profiles && data.profiles.length > 0) {
for (var i = 0; i < data.profiles.l... |
eebb736bf83c572b797931c571e7416223436461 | homeassistant/components/light/insteon.py | homeassistant/components/light/insteon.py |
from homeassistant.components.insteon import (INSTEON, InsteonToggleDevice)
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Insteon Hub light platform. """
devs = []
for device in INSTEON.devices:
if device.DeviceCategory == "Switched Lighting Control":
... |
from homeassistant.components.insteon import (INSTEON, InsteonToggleDevice)
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Insteon Hub light platform. """
devs = []
for device in INSTEON.devices:
if device.DeviceCategory == "Switched Lighting Control":
... | Add ability to control dimmable sources | Add ability to control dimmable sources
| Python | mit | emilhetty/home-assistant,Duoxilian/home-assistant,rohitranjan1991/home-assistant,toddeye/home-assistant,ct-23/home-assistant,florianholzapfel/home-assistant,kennedyshead/home-assistant,keerts/home-assistant,lukas-hetzenecker/home-assistant,jabesq/home-assistant,JshWright/home-assistant,open-homeautomation/home-assistan... | python | ## Code Before:
from homeassistant.components.insteon import (INSTEON, InsteonToggleDevice)
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Insteon Hub light platform. """
devs = []
for device in INSTEON.devices:
if device.DeviceCategory == "Switched Lighting C... |
3ed21ceecba25a5265a407a8643f050d00df69f5 | lib/usps/test.rb | lib/usps/test.rb | require 'test/unit'
require 'rubygems'
module USPS
# This class is a test runner for the various test requests that are outlined
# in the USPS API documentation. These tests are often used to determine if a
# developer is allowed to gain access to the production systems.
#
# Running this test suite should fu... | require 'test/unit'
require 'rubygems'
module USPS
# This class is a test runner for the various test requests that are outlined
# in the USPS API documentation. These tests are often used to determine if a
# developer is allowed to gain access to the production systems.
#
# Running this test suite should fu... | Use the new configuration idiom and remove USPS_LIVE. | Use the new configuration idiom and remove USPS_LIVE.
The test data was defined in 2006 or before and isn't valid any more for
many of the tests.
| Ruby | mit | gaffneyc/usps,18F/usps | ruby | ## Code Before:
require 'test/unit'
require 'rubygems'
module USPS
# This class is a test runner for the various test requests that are outlined
# in the USPS API documentation. These tests are often used to determine if a
# developer is allowed to gain access to the production systems.
#
# Running this test... |
d0565266fa984591df46a361e20cc603dd19ec0a | README.rst | README.rst | Introduction
============
psphere is a Python interface for the `VMware vSphere Web Services SDK`_, a
powerful API for programatically managing your VMware infrastructure:
* Provision, clone and snapshot virtual machines
* Query and configure clusters, host systems and datastores
* Programatically configure ESXi hos... | Sunset Notice
=============
This project is no longer under development.
We recommend that you start your VMware Python journey with the official `VMware pyvmomi`_ library.
psphere was created when no other client was available. It was a privilege to create something that was useful to others.
*"Death is only the e... | Add a sunset notice to the project | Add a sunset notice to the project | reStructuredText | apache-2.0 | jkinred/psphere | restructuredtext | ## Code Before:
Introduction
============
psphere is a Python interface for the `VMware vSphere Web Services SDK`_, a
powerful API for programatically managing your VMware infrastructure:
* Provision, clone and snapshot virtual machines
* Query and configure clusters, host systems and datastores
* Programatically co... |
f481d5c5a67cf657b6a9d59f34d083d35e5fcc16 | blink1/style.css | blink1/style.css | input[type=range] {
-webkit-appearance: none;
width: 140px;
}
| input[type=range] {
outline: none;
-webkit-appearance: none;
width: 140px;
}
| Hide the outline around sliders while dragging. | blink1: Hide the outline around sliders while dragging.
Modifies the CSS for range input elements to remove the outline when the
element is selected.
| CSS | apache-2.0 | GoogleChrome/chrome-extensions-samples,GoogleChrome/chrome-extensions-samples,Jabqooo/chrome-app-samples,GoogleChrome/chrome-extensions-samples,roshan2806/chrome-app-samples,sgrizzi/tcpmonitor_test,PyNate/chrome-app-samples,yetixxx83/chrome-app-samples,MrSwiss/chrome-app-samples,icasey/chrome-app-samples,shansana/chrom... | css | ## Code Before:
input[type=range] {
-webkit-appearance: none;
width: 140px;
}
## Instruction:
blink1: Hide the outline around sliders while dragging.
Modifies the CSS for range input elements to remove the outline when the
element is selected.
## Code After:
input[type=range] {
outline: none;
-webkit-appea... |
bb7ac94e33faa35387199e08ec95008a8248d432 | lib/garage/docs/application.rb | lib/garage/docs/application.rb | module Garage
module Docs
class Application
def initialize(application)
@application = application
end
def name
@application.class.name.split("::")[0]
end
def documents
@documents ||= pathnames.map {|pathname| Documentation.new(pathname) }
end
d... | module Garage
module Docs
class Application
def initialize(application)
@application = application
end
def name
@application.class.name.split("::")[0]
end
def documents
@documents ||= pathnames.map {|pathname| Documentation.new(pathname) }
end
d... | Change redcarpet option: disable emphasis | Change redcarpet option: disable emphasis
| Ruby | mit | takashi/garage,kenchan0130/garage,y-yagi/garage,cookpad/garage,taiki45/garage,takashi/garage,taiki45/garage,taiki45/garage,luvtechno/garage,luvtechno/garage,takashi/garage,kenchan0130/garage,luvtechno/garage,kenchan0130/garage,y-yagi/garage,y-yagi/garage,cookpad/garage,cookpad/garage,cookpad/garage | ruby | ## Code Before:
module Garage
module Docs
class Application
def initialize(application)
@application = application
end
def name
@application.class.name.split("::")[0]
end
def documents
@documents ||= pathnames.map {|pathname| Documentation.new(pathname) }
... |
a21d484cc1131b56d793e75fbb6ab1531205dae6 | joueur/base_game_object.py | joueur/base_game_object.py | from joueur.delta_mergeable import DeltaMergeable
# the base class that every game object within a game inherit from for Python
# manipulation that would be redundant via Creer
class BaseGameObject(DeltaMergeable):
def __init__(self):
DeltaMergeable.__init__(self)
def __str__(self):
return "{... | from joueur.delta_mergeable import DeltaMergeable
# the base class that every game object within a game inherit from for Python
# manipulation that would be redundant via Creer
class BaseGameObject(DeltaMergeable):
def __init__(self):
DeltaMergeable.__init__(self)
def __str__(self):
return "{... | Update BaseGameObject to be hashable | Update BaseGameObject to be hashable
| Python | mit | JacobFischer/Joueur.py,siggame/Joueur.py,siggame/Joueur.py,JacobFischer/Joueur.py | python | ## Code Before:
from joueur.delta_mergeable import DeltaMergeable
# the base class that every game object within a game inherit from for Python
# manipulation that would be redundant via Creer
class BaseGameObject(DeltaMergeable):
def __init__(self):
DeltaMergeable.__init__(self)
def __str__(self):
... |
68f8a4a8f0b429e36ffca2d542ea9cc06a0bd475 | contrib/util/generate-changelog.sh | contrib/util/generate-changelog.sh |
usage() {
echo "Usage: $0 <from> [to]"
}
retrieve() {
git --no-pager log --oneline --no-merges --grep="$1" $FROM..$TO
}
subheading() {
echo "#### $1\n"
retrieve "$2"
echo
}
FROM=$1
TO=${2:-"HEAD"}
if [ -z $1 ];
then
usage
exit 1
fi
echo "### $FROM -> $TO\n"
subheading "Features" "feat... |
usage() {
echo "Usage: $0 <from> [to]"
}
retrieve() {
git --no-pager log --oneline --no-merges --oneline --format=" - %h %s" --grep="$1" $FROM..$TO
}
subheading() {
echo "#### $1\n"
retrieve "$2"
echo
}
FROM=$1
TO=${2:-"HEAD"}
if [ -z $1 ];
then
usage
exit 1
fi
echo "### $FROM -> $TO\n... | Fix markdown output of changelog script | fix(contrib): Fix markdown output of changelog script
Now the script will generate markdown lists just as the current
changelog in deis/deis:CHANGELOG.md is in.
Thanks to @bacongobbler for the insight about `--format` over
`--pretty=format` and unneeded newlines not being echoed.
| Shell | mit | deis/workflow,deis/workflow,deis/workflow | shell | ## Code Before:
usage() {
echo "Usage: $0 <from> [to]"
}
retrieve() {
git --no-pager log --oneline --no-merges --grep="$1" $FROM..$TO
}
subheading() {
echo "#### $1\n"
retrieve "$2"
echo
}
FROM=$1
TO=${2:-"HEAD"}
if [ -z $1 ];
then
usage
exit 1
fi
echo "### $FROM -> $TO\n"
subheading ... |
fd7452e2aa1daada74e7f8ceda22b68697bb9644 | tests/matrix.php | tests/matrix.php | <?php
require '../src/Hungarian.php';
$array = [
[1,2,3,0,1],
[0,2,3,12,1],
[3,0,1,13,1],
[3,1,1,12,0],
[3,1,1,12,0],
];
$hungarian = new \RPFK\Hungarian\Hungarian($array);
$hungarian->solve();
var_dump($hungarian->getMatrix());
var_dump($hungarian->allocation());
| <?php
require '../src/Hungarian.php';
$array = [
[1,2,3,0,1],
[0,2,3,12,1],
[3,0,1,13,1],
[3,1,1,12,0],
[3,1,1,12,0],
];
$hungarian = new \RPFK\Hungarian\Hungarian($array);
$hungarian->solve(true);
| Add debug lines to test. | Add debug lines to test.
| PHP | mit | rpfk/Hungarian | php | ## Code Before:
<?php
require '../src/Hungarian.php';
$array = [
[1,2,3,0,1],
[0,2,3,12,1],
[3,0,1,13,1],
[3,1,1,12,0],
[3,1,1,12,0],
];
$hungarian = new \RPFK\Hungarian\Hungarian($array);
$hungarian->solve();
var_dump($hungarian->getMatrix());
var_dump($hungarian->allocation());
## Instructi... |
6f725253b5d83cc1ed4cd92befda2bd0cb8a897a | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.8"
- "0.10"
| language: node_js
node_js:
- "0.8"
- "0.10"
env:
global:
# NPM_KEY
- secure: aOHRXELamyzmgttmZszXZER7w4XNrXHvuE4bFB/s3jWs9pk/z4DG72y+33KQN8e+IOcqCgoVmIqV1CnARJCZHh4VkqW1qPTQpKLHDKGf4v1O2wJDM/+DUhVRig+OU2ehZj/xkvnUn05tZ1ptlYlof3Xhb5ads4sVX30INmIgpxw=
# NPM Deploy
deploy:
provider: npm
email: "gustavo@inj... | Add auto deployment to NPM via Travis | Add auto deployment to NPM via Travis
| YAML | mit | markelog/grunt-checker,jscs-dev/grunt-jscs,BridgeAR/grunt-jscs | yaml | ## Code Before:
language: node_js
node_js:
- "0.8"
- "0.10"
## Instruction:
Add auto deployment to NPM via Travis
## Code After:
language: node_js
node_js:
- "0.8"
- "0.10"
env:
global:
# NPM_KEY
- secure: aOHRXELamyzmgttmZszXZER7w4XNrXHvuE4bFB/s3jWs9pk/z4DG72y+33KQN8e+IOcqCgoVmIqV1CnARJCZHh4VkqW1qPTQpKLHD... |
5b59cd2bbde84290279d46617f56de17cc6e39ee | packages/bootstrap/buildinfo.json | packages/bootstrap/buildinfo.json | {
"requires": [
"dcos-image",
"python",
"python-kazoo",
"python-requests",
"python-cryptography",
"python-jwt"
],
"state_directory": true
}
| {
"requires": [
"python",
"python-kazoo",
"python-requests",
"python-cryptography",
"python-jwt"
],
"state_directory": true
}
| Remove dcos-image dependency from bootstrap | Remove dcos-image dependency from bootstrap
| JSON | apache-2.0 | dcos/dcos,dcos/dcos,dcos/dcos,dcos/dcos,dcos/dcos | json | ## Code Before:
{
"requires": [
"dcos-image",
"python",
"python-kazoo",
"python-requests",
"python-cryptography",
"python-jwt"
],
"state_directory": true
}
## Instruction:
Remove dcos-image dependency from bootstrap
## Code After:
{
"requires": [
"python",
"python-kazoo",
"... |
1f77efc424c970705ba8f6b14cacf33ce77b9445 | README.md | README.md |
Various algorithms and datastructures written in JavaScript
## Tests
Tests are all in the `/test` folder. The tests use `mocha` framework. To install and run tests, follow these instructions:
```
$ npm install -g mocha
$ mocha --watch --reporter min
```
|
Various algorithms and data-structures written in JavaScript
##Data-Structures
- linkedlist
- queue
- stack
## Tests
Tests are all in the `/test` folder. The tests use `mocha` framework. To install and run tests, follow these instructions:
```
$ npm install -g mocha
$ mocha --watch --reporter min
```
| Update readme with supported datastructures | Update readme with supported datastructures
| Markdown | apache-2.0 | ryanseys/algos-n-dstructs | markdown | ## Code Before:
Various algorithms and datastructures written in JavaScript
## Tests
Tests are all in the `/test` folder. The tests use `mocha` framework. To install and run tests, follow these instructions:
```
$ npm install -g mocha
$ mocha --watch --reporter min
```
## Instruction:
Update readme with supported ... |
dca859d320714595bfeb0dbc3f8f300dca0b20ec | requirements-test.txt | requirements-test.txt | coverage==5.3.1 # Test coverage
flake8==3.8.4 # Python linting
mypy==0.790 # Static typing
typing==3.7.4.3 # Type hints
| coverage==5.3.1 # Test coverage
flake8==3.8.4 # Python linting
mypy==0.790 # Static typing
| Uninstall typing package because it is now in stdlib | Uninstall typing package because it is now in stdlib
| Text | mit | albertyw/csv-to-ical | text | ## Code Before:
coverage==5.3.1 # Test coverage
flake8==3.8.4 # Python linting
mypy==0.790 # Static typing
typing==3.7.4.3 # Type hints
## Instruction:
Uninstall typing package because it is now in stdlib
## Code After:
coverage==5.3.1 ... |
9013376a8741fcac22e045442cdcaccbf7f22ad7 | Cargo.toml | Cargo.toml | [package]
name = "vobject"
description = "Simple VObject parsing library."
homepage = "http://rust-vobject.unterwaditzer.net/"
documentation = "http://rust-vobject.unterwaditzer.net/"
repository = "https://github.com/untitaker/rust-vobject"
readme = "README.md"
keywords = ["vobject", "icalendar", "calendar", "contacts... | [package]
name = "vobject"
description = "Simple VObject parsing library."
homepage = "http://rust-vobject.unterwaditzer.net/"
documentation = "http://rust-vobject.unterwaditzer.net/"
repository = "https://github.com/untitaker/rust-vobject"
readme = "README.md"
keywords = ["vobject", "icalendar", "calendar", "contacts... | Switch back to official peg | Switch back to official peg
| TOML | mit | gracinet/rust-vobject,untitaker/rust-vobject | toml | ## Code Before:
[package]
name = "vobject"
description = "Simple VObject parsing library."
homepage = "http://rust-vobject.unterwaditzer.net/"
documentation = "http://rust-vobject.unterwaditzer.net/"
repository = "https://github.com/untitaker/rust-vobject"
readme = "README.md"
keywords = ["vobject", "icalendar", "cale... |
5c36591ee725a4ac4b606a927e259c24d598d5da | app/src/main/java/com/veyndan/paper/reddit/ui/widget/PostFlairsLayout.java | app/src/main/java/com/veyndan/paper/reddit/ui/widget/PostFlairsLayout.java | package com.veyndan.paper.reddit.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import com.google.android.flexbox.FlexboxLayout;
import com.veyndan.paper.reddit.databinding.PostFlairBinding;
import com.veyndan.paper.reddit.post.Flair;
import java.util... | package com.veyndan.paper.reddit.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import com.google.android.flexbox.FlexboxLayout;
import com.veyndan.paper.reddit.databinding.PostFlairBinding;
import com.veyndan.paper.reddit.post.Flair;
import java.util... | Fix bug where multiple flairs from unrelated posts are shown | Fix bug where multiple flairs from unrelated posts are shown
| Java | mit | veyndan/paper-for-reddit,veyndan/paper-for-reddit,veyndan/reddit-client | java | ## Code Before:
package com.veyndan.paper.reddit.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import com.google.android.flexbox.FlexboxLayout;
import com.veyndan.paper.reddit.databinding.PostFlairBinding;
import com.veyndan.paper.reddit.post.Flair;
... |
64bd8acc1e59b0c948b7be4f3f096720acf585f6 | test/app.spec.coffee | test/app.spec.coffee | path = require 'path'
helpers = require('yeoman-generator').test
describe 'app', ->
beforeEach (done) ->
helpers.testDirectory path.join(__dirname, 'app.tmp'), (err) =>
return done(err) if err
@app = helpers.createGenerator 'coffee-module:app', ['../../app']
done()
it 'creates expected files... | path = require 'path'
helpers = require('yeoman-generator').test
describe 'app', ->
beforeEach (done) ->
helpers.testDirectory path.join(__dirname, 'app.tmp'), (err) =>
return done(err) if err
@app = helpers.createGenerator 'coffee-module:app', ['../../app']
done()
it 'creates expected files... | Add new gulp files to tests | Add new gulp files to tests
| CoffeeScript | mit | alexgorbatchev/generator-coffee-module | coffeescript | ## Code Before:
path = require 'path'
helpers = require('yeoman-generator').test
describe 'app', ->
beforeEach (done) ->
helpers.testDirectory path.join(__dirname, 'app.tmp'), (err) =>
return done(err) if err
@app = helpers.createGenerator 'coffee-module:app', ['../../app']
done()
it 'create... |
12921e5d3864c86663d11b74a2a3f8dd34498abb | docs/dev_guide.rst | docs/dev_guide.rst | Developer's Guide
=================
As you might have figured out, the library relies quite heavily on Sphinx documentation tool. It is in fact used to test it. Provided you have installed Sphinx (via easy_install, pip or something), you can use "make doctest" at the docs directory to run doctests. This probably needs... | Developer's Guide
=================
As you might have figured out, the library relies quite heavily on Sphinx documentation tool. It is in fact used to test it. Provided you have installed Sphinx (via easy_install, pip or something), you can use "make doctest" at the docs directory to run doctests. This probably needs... | Remove redundant bits from dev guide | Remove redundant bits from dev guide
| reStructuredText | mit | bebraw/iterplus | restructuredtext | ## Code Before:
Developer's Guide
=================
As you might have figured out, the library relies quite heavily on Sphinx documentation tool. It is in fact used to test it. Provided you have installed Sphinx (via easy_install, pip or something), you can use "make doctest" at the docs directory to run doctests. Thi... |
b2bab786c4af3dcca7d35b1e6ecff8699e542ec4 | pytest_girder/pytest_girder/plugin.py | pytest_girder/pytest_girder/plugin.py | from .fixtures import * # noqa
def pytest_addoption(parser):
group = parser.getgroup('girder')
group.addoption('--mock-db', action='store_true', default=False,
help='Whether or not to mock the database using mongomock.')
group.addoption('--mongo-uri', action='store', default='mongodb:... | import os
from .fixtures import * # noqa
def pytest_configure(config):
"""
Create the necessary directories for coverage. This is necessary because neither coverage nor
pytest-cov have support for making the data_file directory before running.
"""
covPlugin = config.pluginmanager.get_plugin('_cov... | Add a pytest hook for creating the coverage data_file directory | Add a pytest hook for creating the coverage data_file directory
| Python | apache-2.0 | jbeezley/girder,jbeezley/girder,girder/girder,kotfic/girder,jbeezley/girder,data-exp-lab/girder,Xarthisius/girder,data-exp-lab/girder,girder/girder,RafaelPalomar/girder,jbeezley/girder,girder/girder,kotfic/girder,manthey/girder,kotfic/girder,girder/girder,RafaelPalomar/girder,Xarthisius/girder,RafaelPalomar/girder,Xart... | python | ## Code Before:
from .fixtures import * # noqa
def pytest_addoption(parser):
group = parser.getgroup('girder')
group.addoption('--mock-db', action='store_true', default=False,
help='Whether or not to mock the database using mongomock.')
group.addoption('--mongo-uri', action='store', d... |
dcfb66925c5a73d79c4bd5c986de38f48a65f4b0 | laravel/webpack.config.js | laravel/webpack.config.js | require('dotenv').config();
const webpack = require('webpack');
// I don't really like doing it this way but it works for a limited number
// of configuration options.
const socketsEnabled = process.env.WEBSOCKETS_ENABLED &&
process.env.WEBSOCKETS_ENABLED != ('false' || '0');
const appEntry = socketsEnabled ... | require('dotenv').config();
const path = require('path');
const webpack = require('webpack');
// I don't really like doing it this way but it works for a limited number
// of configuration options.
const socketsEnabled = process.env.WEBSOCKETS_ENABLED &&
process.env.WEBSOCKETS_ENABLED != ('false' || '0');
co... | Fix the webpack putting files into dist/ by mistake | Fix the webpack putting files into dist/ by mistake
| JavaScript | agpl-3.0 | playasoft/laravel-voldb,playasoft/laravel-voldb,playasoft/laravel-voldb,itsrachelfish/laravel-voldb,itsrachelfish/laravel-voldb | javascript | ## Code Before:
require('dotenv').config();
const webpack = require('webpack');
// I don't really like doing it this way but it works for a limited number
// of configuration options.
const socketsEnabled = process.env.WEBSOCKETS_ENABLED &&
process.env.WEBSOCKETS_ENABLED != ('false' || '0');
const appEntry =... |
a2e1051fb4b2065fb5ebea49dc0bcc583d113187 | build/jslint-check.js | build/jslint-check.js | load("build/jslint.js");
var src = readFile("dist/jquery.js");
JSLINT(src, { evil: true, forin: true });
// All of the following are known issues that we think are 'ok'
// (in contradiction with JSLint) more information here:
// http://docs.jquery.com/JQuery_Core_Style_Guidelines
var ok = {
"Expected an identifier ... | load("build/jslint.js");
var src = readFile("dist/jquery.js");
JSLINT(src, { evil: true, forin: true, maxerr: 100 });
// All of the following are known issues that we think are 'ok'
// (in contradiction with JSLint) more information here:
// http://docs.jquery.com/JQuery_Core_Style_Guidelines
var ok = {
"Expected a... | Increase max number of JSLint errors. This is necessary because we have several error messages that we choose to ignore. | Increase max number of JSLint errors. This is necessary because we have several error messages that we choose to ignore.
| JavaScript | mit | quiaro/request-agent,chitranshi/jquery,dtjm/jquery,isaacs/jquery,dtjm/jquery,jquery/jquery,Karyotyper/jquery,isaacs/jquery,ilyakharlamov/jquery-xul,Karyotyper/jquery,scottjehl/jquery,hoorayimhelping/jquery,jcutrell/jquery,praveen9102/Shazam,kpozin/jquery-nodom,demetr84/Jquery,gnarf/jquery,ilyakharlamov/jquery-xul,dirac... | javascript | ## Code Before:
load("build/jslint.js");
var src = readFile("dist/jquery.js");
JSLINT(src, { evil: true, forin: true });
// All of the following are known issues that we think are 'ok'
// (in contradiction with JSLint) more information here:
// http://docs.jquery.com/JQuery_Core_Style_Guidelines
var ok = {
"Expecte... |
987264a4575935e96d1972f1198ff35d77df3daf | src/main/resources/application.properties | src/main/resources/application.properties |
dataStore=mongo
# spring.data.mongodb.host=localhost
# spring.data.mongodb.port=27017
spring.data.mongodb.database=omh
| dataStore=mongo
# spring.data.mongodb.host=localhost
# spring.data.mongodb.port=27017
spring.data.mongodb.database=omh
http.mappersjsonPrettyPrint=true | Add pretty printing of JSON output from MVC controllers. | Add pretty printing of JSON output from MVC controllers.
| INI | apache-2.0 | openmhealth/omh-dsu-ri,smalldatalab/omh-dsu,smalldatalab/omh-dsu,smalldatalab/omh-dsu,smalldatalab/omh-dsu,openmhealth/omh-dsu-ri | ini | ## Code Before:
dataStore=mongo
# spring.data.mongodb.host=localhost
# spring.data.mongodb.port=27017
spring.data.mongodb.database=omh
## Instruction:
Add pretty printing of JSON output from MVC controllers.
## Code After:
dataStore=mongo
# spring.data.mongodb.host=localhost
# spring.data.mongodb.port=27017
spring... |
a58bceb4aad2c356de7196c49a571a0f9da84eae | src/GaryJones/OAuth/Client.php | src/GaryJones/OAuth/Client.php | <?php
/**
* OAuth
*
* @package OAuth
* @author Andy Smith
* @author Gary Jones <gary@garyjones.co.uk>
* @license https://raw.github.com/GaryJones/OAuth/master/LICENSE MIT
* @link https://github.com/GaryJones/OAuth
*/
namespace GaryJones\OAuth;
/**
* Client holds the properties of a single client / consumer.
... | <?php
/**
* OAuth
*
* @package OAuth
* @author Andy Smith
* @author Gary Jones <gary@garyjones.co.uk>
* @license https://raw.github.com/GaryJones/OAuth/master/LICENSE MIT
* @link https://github.com/GaryJones/OAuth
*/
namespace GaryJones\OAuth;
/**
* Client holds the properties of a single client / consumer.
... | Make callback_url property protected, and add get/set methods. | Make callback_url property protected, and add get/set methods. | PHP | mit | jacobkiers/OAuth | php | ## Code Before:
<?php
/**
* OAuth
*
* @package OAuth
* @author Andy Smith
* @author Gary Jones <gary@garyjones.co.uk>
* @license https://raw.github.com/GaryJones/OAuth/master/LICENSE MIT
* @link https://github.com/GaryJones/OAuth
*/
namespace GaryJones\OAuth;
/**
* Client holds the properties of a single cli... |
149f0cda3b04359638af20ccdbee2e1753f21425 | source/campaigns/offers_expiration.rst | source/campaigns/offers_expiration.rst | .. _campaigns:
.. include:: /partials/common.rst
Offers Expiration
#################
Talkable Campaign allows to set offer expiration for |advocate| and |friend|
by specifying specific date or setting offer duration in hours.
.. note::
Offer Expiration does not prevent |advocate| or |friend| from getting rewards... | .. _campaigns:
.. include:: /partials/common.rst
Offers Expiration
#################
Talkable Campaign allows to set offer expiration for |advocate| and |friend|
by specifying specific date or setting offer duration in hours.
.. raw:: html
<h2>Advocate</h2>
- ``deadline`` - |advocate| will no longer be able to... | Add reward eligibility info to offer expiration | Add reward eligibility info to offer expiration
| reStructuredText | mit | talkable/talkable-docs,talkable/talkable-docs,talkable/talkable-docs | restructuredtext | ## Code Before:
.. _campaigns:
.. include:: /partials/common.rst
Offers Expiration
#################
Talkable Campaign allows to set offer expiration for |advocate| and |friend|
by specifying specific date or setting offer duration in hours.
.. note::
Offer Expiration does not prevent |advocate| or |friend| from... |
0cada6da41f225f5f84320747c6827e85866edf1 | source/styles/site.css | source/styles/site.css | @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
html {
font-size: 16px;
}
body {
font-size: 1rem;
}
}
a {
color: #0f7661;
}
.body-content {
padding-top: 10px;
}
blockquote {
border-left: 5px solid #ecf0f1;
margin: 0 0 21... | @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
html {
font-size: 16px;
}
body {
font-size: 1rem;
}
}
a {
color: #0f7661;
}
.body-content {
padding-top: 10px;
}
blockquote {
border-left: 5px solid #ecf0f1;
margin: 0 0 21... | Increase code example font size | Increase code example font size
Increase the font size for code examples.
| CSS | mit | martincostello/blog,martincostello/blog,martincostello/blog | css | ## Code Before:
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
html {
font-size: 16px;
}
body {
font-size: 1rem;
}
}
a {
color: #0f7661;
}
.body-content {
padding-top: 10px;
}
blockquote {
border-left: 5px solid #ecf0f1;
margin: 0 0 21px;
... |
fba52aa32395f6f8ee4ab1891b095752dc74f0e3 | test/DICTest.php | test/DICTest.php | <?php
/**
* Definition of class DICTest
*
* @copyright 2015-today Justso GmbH
* @author j.schirrmacher@justso.de
* @package justso\justapi\test
*/
namespace justso\justapi\test;
use justso\justapi\Bootstrap;
use justso\justapi\DependencyContainer;
use justso\justapi\testutil\FileSystemSandbox;
/**
* C... | <?php
/**
* Definition of class DICTest
*
* @copyright 2015-today Justso GmbH
* @author j.schirrmacher@justso.de
* @package justso\justapi\test
*/
namespace justso\justapi\test;
use justso\justapi\Bootstrap;
use justso\justapi\DependencyContainer;
use justso\justapi\testutil\FileSystemSandbox;
require ... | Include mock classes in test class file | Include mock classes in test class file
| PHP | mit | JustsoSoftware/JustAPI | php | ## Code Before:
<?php
/**
* Definition of class DICTest
*
* @copyright 2015-today Justso GmbH
* @author j.schirrmacher@justso.de
* @package justso\justapi\test
*/
namespace justso\justapi\test;
use justso\justapi\Bootstrap;
use justso\justapi\DependencyContainer;
use justso\justapi\testutil\FileSystemSa... |
4c23bfe382c8013ac6cc91d8a4f07a7b598c148a | assets/game_state.coffee | assets/game_state.coffee | class GameState
customers: []
agents: []
requestQueues: {}
chanceOfRequest: 0.005
tickables: []
tick: 0
money: 1000000
reputation: 0.5
agentSpawner: new AgentSpawner()
addAgent: (agent) ->
@agents.push(agent)
@tickables.push(agent)
fireAgent: (agent) ->
@agents.filter((item) ->
... | class GameState
customers: []
agents: []
requestQueues: {}
chanceOfRequest: 0.005
tickables: []
tick: 0
money: 1000000
reputation: 0.5
agentSpawner: new AgentSpawner()
addAgent: (agent) ->
@agents.push(agent)
@tickables.push(agent)
fireAgent: (agent) ->
@agents.filter((item) ->
... | Add budget and change to left menu | Add budget and change to left menu
| CoffeeScript | mit | guts2014/TEAM-NAME-PHP,guts2014/TEAM-NAME-PHP | coffeescript | ## Code Before:
class GameState
customers: []
agents: []
requestQueues: {}
chanceOfRequest: 0.005
tickables: []
tick: 0
money: 1000000
reputation: 0.5
agentSpawner: new AgentSpawner()
addAgent: (agent) ->
@agents.push(agent)
@tickables.push(agent)
fireAgent: (agent) ->
@agents.fil... |
c3792ccdde5a44979f34d84cebad722c7a64ab64 | juliet_importer.py | juliet_importer.py | import os
import imp
modules = {}
def load_modules(path="./modules/"): # Consider adding recursive sorting at some point in the future
names = os.listdir(path)
for name in names:
if not name.endswith(".py"): continue
print("Importing module {0}".format(name))
name = name.split('.')[0]
... | import os
import imp
modules = {}
def load_modules(path="./modules/"): # Consider adding recursive searching at some point in the future
modules['juliet_module'] = imp.load_source('juliet_module', path + "juliet_module.py")
names = os.listdir(path)
for name in names:
if not name.endswith(".py"): c... | Change juliet_module to load before other modules for dependency reasons | Change juliet_module to load before other modules for dependency reasons
| Python | bsd-2-clause | halfbro/juliet | python | ## Code Before:
import os
import imp
modules = {}
def load_modules(path="./modules/"): # Consider adding recursive sorting at some point in the future
names = os.listdir(path)
for name in names:
if not name.endswith(".py"): continue
print("Importing module {0}".format(name))
name = nam... |
1f5a7c5e8e56c7b2a1ca93602bd77c13f495360c | recipes-kernel/linux/linux-ti-staging-rt_5.10.bb | recipes-kernel/linux/linux-ti-staging-rt_5.10.bb | require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "d238e71a2d3157a7faec48d4d3681b537a2e08cc"
PV = "5.10.41+git${SRCPV}"
| require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "bee192299392dc41c94f4603968b7a3c02f17a1d"
PV = "5.10.41+git${SRCPV}"
| Update linux-rt srcrev to 08.00.00.003 | linux-ti-staging-rt: Update linux-rt srcrev to 08.00.00.003
Updated the linux-rt to pick 08.00.00.003 tag
Signed-off-by: Yogesh Siraswar <e4c3dc570d04bd480366ad8aa87a4b23b1e4ce6e@ti.com>
| BitBake | mit | rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti | bitbake | ## Code Before:
require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "d238e71a2d3157a7faec48d4d3681b537a2e08cc"
PV = "5.10.41+git${SRCPV}"
#... |
5f1864c1f7bcc5fa837b807dbba6e0399ab77f61 | spec/spec_helper.rb | spec/spec_helper.rb | require "sequel"
require "sequel/string_nilifier"
class << Sequel::Model
attr_writer :db_schema
alias orig_columns columns
def columns(*cols)
return super if cols.empty?
define_method(:columns){cols}
@dataset.instance_variable_set(:@columns, cols) if @dataset
def_column_accessor(*cols)
@colum... | require "sequel"
require "sequel/string_nilifier"
class << Sequel::Model
attr_writer :db_schema
alias orig_columns columns
def columns(*cols)
return super if cols.empty?
define_method(:columns){cols}
@dataset.send(:columns=, cols) if @dataset
def_column_accessor(*cols)
@columns = cols
@db... | Fix spec for Sequel > 5.1 | Fix spec for Sequel > 5.1
| Ruby | mit | TalentBox/sequel-string_nilifier | ruby | ## Code Before:
require "sequel"
require "sequel/string_nilifier"
class << Sequel::Model
attr_writer :db_schema
alias orig_columns columns
def columns(*cols)
return super if cols.empty?
define_method(:columns){cols}
@dataset.instance_variable_set(:@columns, cols) if @dataset
def_column_accessor(*... |
a7bf688d859a0500c77ab89d58cafc25b537fab5 | libproxy/module_wpad.cpp | libproxy/module_wpad.cpp | using namespace com::googlecode::libproxy;
static const char *DEFAULT_WPAD_ORDER[] = {
"wpad_dhcp",
"wpad_slp",
"wpad_dns",
"wpad_dnsdevolution",
NULL
};
bool wpad_module::operator<(const wpad_module& module) const {
for (int i=0 ; DEFAULT_WPAD_ORDER[i] ; i++) {
if (module.get_id() == DEFAULT_WPAD_ORDER[i])
... | using namespace com::googlecode::libproxy;
static const char *DEFAULT_WPAD_ORDER[] = {
"wpad_dhcp",
"wpad_slp",
"wpad_dns_srv",
"wpad_dns_txt",
"wpad_dns_alias",
NULL
};
bool wpad_module::operator<(const wpad_module& module) const {
for (int i=0 ; DEFAULT_WPAD_ORDER[i] ; i++) {
if (module.get_id() == DEFAULT... | Fix wpad ordering table after wpad_dns -> wpad_dns_alias rename | Fix wpad ordering table after wpad_dns -> wpad_dns_alias rename | C++ | lgpl-2.1 | binarycrusader/libproxy,libproxy/libproxy,anonymous2ch/libproxy,binarycrusader/libproxy,binarycrusader/libproxy,cicku/libproxy,cicku/libproxy,anonymous2ch/libproxy,horar/libproxy,binarycrusader/libproxy,cicku/libproxy,horar/libproxy,horar/libproxy,anonymous2ch/libproxy,maxinbjohn/libproxy,maxinbjohn/libproxy,libproxy/l... | c++ | ## Code Before:
using namespace com::googlecode::libproxy;
static const char *DEFAULT_WPAD_ORDER[] = {
"wpad_dhcp",
"wpad_slp",
"wpad_dns",
"wpad_dnsdevolution",
NULL
};
bool wpad_module::operator<(const wpad_module& module) const {
for (int i=0 ; DEFAULT_WPAD_ORDER[i] ; i++) {
if (module.get_id() == DEFAULT_... |
940c1699c5d8025da3aa51fd0fc886071deff2f4 | pillar/edx/ansible_vars/next_residential.sls | pillar/edx/ansible_vars/next_residential.sls | {% set env_settings = salt.cp.get_file_str("salt://environment_settings.yml")|load_yaml %}
{% set purpose = salt.grains.get('purpose', 'current-residential-live') %}
{% set environment = salt.grains.get('environment', 'mitx-qa') %}
edx:
ansible_vars:
EDXAPP_EXTRA_MIDDLEWARE_CLASSES: [] # Worth keeping track of i... | {% set env_settings = salt.cp.get_file_str("salt://environment_settings.yml")|load_yaml %}
{% set purpose = salt.grains.get('purpose', 'current-residential-live') %}
{% set environment = salt.grains.get('environment', 'mitx-qa') %}
edx:
ansible_vars:
EDXAPP_EXTRA_MIDDLEWARE_CLASSES: [] # Worth keeping track of i... | Revert "Revert "Updated settings and hacks to resolve SAML login"" | Revert "Revert "Updated settings and hacks to resolve SAML login""
This reverts commit 21bfc74580e03a217d8fa701ff7dc8b7c507a207.
| SaltStack | bsd-3-clause | mitodl/salt-ops,mitodl/salt-ops | saltstack | ## Code Before:
{% set env_settings = salt.cp.get_file_str("salt://environment_settings.yml")|load_yaml %}
{% set purpose = salt.grains.get('purpose', 'current-residential-live') %}
{% set environment = salt.grains.get('environment', 'mitx-qa') %}
edx:
ansible_vars:
EDXAPP_EXTRA_MIDDLEWARE_CLASSES: [] # Worth ke... |
fde8a38f7bdcb14d84d74561394480d05a2fe90a | cms_shiny/templates/cms_shiny/shiny_detail.html | cms_shiny/templates/cms_shiny/shiny_detail.html | {% extends "base.html" %}
{% load sekizai_tags staticfiles %}
{% block title %}
{{ shiny_app.name }}{% if LAB_NAME %} | {{ LAB_NAME }}{% endif %}
{% endblock title %}
{% block content %}
{% addtoblock "css" strip %}
<link rel="stylesheet" type="text/css" href="{% static 'cms_shiny/app.css' %}">
{% endaddto... | {% extends "base.html" %}
{% load sekizai_tags staticfiles %}
{% block title %}
{{ shiny_app.name }}{% if LAB_NAME %} | {{ LAB_NAME }}{% endif %}
{% endblock title %}
{% block content %}
{% addtoblock "css" strip %}
<link rel="stylesheet" type="text/css" href="{% static 'cms_shiny/app.css' %}">
{% endaddto... | Remove iframe's frameborder attribute (redundant with Bootstrap) | Remove iframe's frameborder attribute (redundant with Bootstrap)
| HTML | bsd-3-clause | mfcovington/djangocms-shiny-app,mfcovington/djangocms-shiny-app,mfcovington/djangocms-shiny-app | html | ## Code Before:
{% extends "base.html" %}
{% load sekizai_tags staticfiles %}
{% block title %}
{{ shiny_app.name }}{% if LAB_NAME %} | {{ LAB_NAME }}{% endif %}
{% endblock title %}
{% block content %}
{% addtoblock "css" strip %}
<link rel="stylesheet" type="text/css" href="{% static 'cms_shiny/app.css' %}... |
33239257ff65e7079574eec65d432750add01f3a | tests/Properties/DelegatingAdditionalPropertiesResolverTest.php | tests/Properties/DelegatingAdditionalPropertiesResolverTest.php | <?php
namespace SimpleBus\Asynchronous\Tests\Properties;
use PHPUnit\Framework\TestCase;
use SimpleBus\Asynchronous\Properties\AdditionalPropertiesResolver;
use SimpleBus\Asynchronous\Properties\DelegatingAdditionalPropertiesResolver;
class DelegatingAdditionalPropertiesResolverTest extends TestCase
{
/**
*... | <?php
namespace SimpleBus\Asynchronous\Tests\Properties;
use PHPUnit\Framework\TestCase;
use SimpleBus\Asynchronous\Properties\AdditionalPropertiesResolver;
use SimpleBus\Asynchronous\Properties\DelegatingAdditionalPropertiesResolver;
class DelegatingAdditionalPropertiesResolverTest extends TestCase
{
/**
*... | Add PHP-CS-Fixer with a simple baseline | Add PHP-CS-Fixer with a simple baseline
| PHP | mit | SimpleBus/Asynchronous | php | ## Code Before:
<?php
namespace SimpleBus\Asynchronous\Tests\Properties;
use PHPUnit\Framework\TestCase;
use SimpleBus\Asynchronous\Properties\AdditionalPropertiesResolver;
use SimpleBus\Asynchronous\Properties\DelegatingAdditionalPropertiesResolver;
class DelegatingAdditionalPropertiesResolverTest extends TestCase
... |
4dd54885f2ddc2b4c1b0ea30fdc7f61514bcc93c | Segment16Sign.ino | Segment16Sign.ino |
Segment16 display;
void setup(){
Serial.begin(9600);
while (!Serial) {} // wait for Leonardo
Serial.println("Type any character to start");
while (Serial.read() <= 0) {}
delay(200); // Catch Due reset problem
// assume the user typed a valid character and no reset happened
}
void loop(){
Serial.prin... |
Segment16 display;
uint32_t incomingByte = 0, input = 0; // for incoming serial data
void setup(){
Serial.begin(9600);
while (!Serial) {} // wait for Leonard
Serial.println("Type any character to start");
while (Serial.read() <= 0) {}
delay(200); // Catch Due reset problem
display.init();
// assume ... | Add ability to input alt characters | Add ability to input alt characters
| Arduino | mit | bguest/Segment16Sign,bguest/Segment16Sign | arduino | ## Code Before:
Segment16 display;
void setup(){
Serial.begin(9600);
while (!Serial) {} // wait for Leonardo
Serial.println("Type any character to start");
while (Serial.read() <= 0) {}
delay(200); // Catch Due reset problem
// assume the user typed a valid character and no reset happened
}
void loop(... |
251143afad694aaadfe297387516b7205f506dca | ember/app/components/layer-switcher.js | ember/app/components/layer-switcher.js | import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { BASE_LAYERS, OVERLAY_LAYERS } from '../services/map-settings';
export default class LayerSwitcher extends Component {
tagName = '';
@service mapSettings;
open = false;
BASE_LAYERS = BASE_LAYERS;
OVERLAY... | import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { BASE_LAYERS, OVERLAY_LAYERS } from '../services/map-settings';
export default class LayerSwitcher extends Component {
tagName = '';
@service mapSettings;
@tracked... | Convert `open` to tracked property | LayerSwitcher: Convert `open` to tracked property
| JavaScript | agpl-3.0 | skylines-project/skylines,skylines-project/skylines,skylines-project/skylines,skylines-project/skylines | javascript | ## Code Before:
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { BASE_LAYERS, OVERLAY_LAYERS } from '../services/map-settings';
export default class LayerSwitcher extends Component {
tagName = '';
@service mapSettings;
open = false;
BASE_LAYERS = BASE_L... |
c3767049a83ad751a11c63bb7921c5752855e88e | composer.json | composer.json | {
"name": "laravelcollective/remote",
"description": "Remote for The Laravel Framework.",
"license": "MIT",
"homepage": "http://laravelcollective.com",
"support": {
"issues": "https://github.com/LaravelCollective/remote/issues",
"source": "https://github.com/LaravelCollective/remote"... | {
"name": "laravelcollective/remote",
"description": "Remote for The Laravel Framework.",
"license": "MIT",
"homepage": "http://laravelcollective.com",
"support": {
"issues": "https://github.com/LaravelCollective/remote/issues",
"source": "https://github.com/LaravelCollective/remote"... | Adjust dependencies for Laravel 5.6 | Adjust dependencies for Laravel 5.6
| JSON | mit | LaravelCollective/remote | json | ## Code Before:
{
"name": "laravelcollective/remote",
"description": "Remote for The Laravel Framework.",
"license": "MIT",
"homepage": "http://laravelcollective.com",
"support": {
"issues": "https://github.com/LaravelCollective/remote/issues",
"source": "https://github.com/LaravelCo... |
6d60229e820c5069fa1477b91e12d1d7dea0a395 | static/main-hall/components/adventure-list.component.ts | static/main-hall/components/adventure-list.component.ts | import {Component, OnInit} from '@angular/core';
import {Router, ActivatedRoute} from '@angular/router';
import {Player} from '../models/player';
import {AdventureService} from '../services/adventure.service';
import {StatusComponent} from "../components/status.component";
import {PlayerService} from "../services/pla... | import {Component, OnInit} from '@angular/core';
import {Router, ActivatedRoute} from '@angular/router';
import {Player} from '../models/player';
import {AdventureService} from '../services/adventure.service';
import {StatusComponent} from "../components/status.component";
import {PlayerService} from "../services/pla... | Save player when leaving to go on an adventure | Save player when leaving to go on an adventure
| TypeScript | mit | kdechant/eamon,kdechant/eamon,kdechant/eamon,kdechant/eamon | typescript | ## Code Before:
import {Component, OnInit} from '@angular/core';
import {Router, ActivatedRoute} from '@angular/router';
import {Player} from '../models/player';
import {AdventureService} from '../services/adventure.service';
import {StatusComponent} from "../components/status.component";
import {PlayerService} from ... |
71464335873116050336f4be16db035f4cd04aef | tests/src/Hodor/MessageQueue/QueueFactoryTest.php | tests/src/Hodor/MessageQueue/QueueFactoryTest.php | <?php
namespace Hodor\MessageQueue;
use Exception;
use PHPUnit_Framework_TestCase;
class QueueFactoryTest extends PHPUnit_Framework_TestCase
{
/**
* @var array
*/
private $config;
/**
* @var QueueFactory
*/
private $queue_factory;
public function setUp()
{
parent... | <?php
namespace Hodor\MessageQueue;
use Exception;
use PHPUnit_Framework_TestCase;
class QueueFactoryTest extends PHPUnit_Framework_TestCase
{
/**
* @var array
*/
private $config;
/**
* @var QueueFactory
*/
private $queue_factory;
public function setUp()
{
parent... | Fix warning caused by undefined index | Fix warning caused by undefined index
| PHP | mit | lightster/hodor,lightster/hodor,Twenty7/hodor | php | ## Code Before:
<?php
namespace Hodor\MessageQueue;
use Exception;
use PHPUnit_Framework_TestCase;
class QueueFactoryTest extends PHPUnit_Framework_TestCase
{
/**
* @var array
*/
private $config;
/**
* @var QueueFactory
*/
private $queue_factory;
public function setUp()
... |
580120eee723fe925ff8fdb88ee5ea63092e70a2 | db/ignore_patterns/blogs.json | db/ignore_patterns/blogs.json | {
"_id": "ignore_patterns:blogs",
"name": "blogs",
"type": "ignore_patterns",
"patterns": [
"%?replytocom=",
"%?share=email",
"%?share=linkedin",
"%?share=twitter",
"%?share=stumbleupon",
"%?share=google-plus-1",
"%?share=digg",
"https://plus.google.co... | {
"_id": "ignore_patterns:blogs",
"name": "blogs",
"type": "ignore_patterns",
"patterns": [
"%?replytocom=",
"%?share=email",
"%?share=linkedin",
"%?share=twitter",
"%?share=stumbleupon",
"%?share=google-plus-1",
"%?share=digg",
"%?showComment=",
... | Add showComment=; add /search/label/; fix . -> %. | Add showComment=; add /search/label/; fix . -> %.
| JSON | mit | bright-sparks/grab-site,UncleStranger/grab-site,bright-sparks/grab-site,UncleStranger/grab-site | json | ## Code Before:
{
"_id": "ignore_patterns:blogs",
"name": "blogs",
"type": "ignore_patterns",
"patterns": [
"%?replytocom=",
"%?share=email",
"%?share=linkedin",
"%?share=twitter",
"%?share=stumbleupon",
"%?share=google-plus-1",
"%?share=digg",
"https:... |
ab6468fc90598b25a009a2e362549bdfce1edcb6 | README.md | README.md |
`qtools` offers the shortcuts for some common procedures when working with the Open Grid Scheduler.
## Installation
Install `qtools` using `gem`:
$ gem install qtools
## Usage
- `qqsub` to submit a script or a compiled executable
- `qwatch` to see the running tasks for the current user
- `qclean` to remove ... |
`qtools` offers the shortcuts for some common procedures when working with the Open Grid Scheduler.
## Installation
Install `qtools` using `gem`:
$ gem install qtools
## Usage
- `qqsub` to submit a script or a compiled executable
- `qwatch` to see the running tasks for the current user
- `qclean` to remove ... | Add information on commands to readme.md | Add information on commands to readme.md
| Markdown | mit | kerkomen/qtools,kerkomen/qtools | markdown | ## Code Before:
`qtools` offers the shortcuts for some common procedures when working with the Open Grid Scheduler.
## Installation
Install `qtools` using `gem`:
$ gem install qtools
## Usage
- `qqsub` to submit a script or a compiled executable
- `qwatch` to see the running tasks for the current user
- `qc... |
150741269e8cc655ad7041faa1cf825fbf5a4515 | WebComponentsMonkeyPatch.js | WebComponentsMonkeyPatch.js | /**
* Evidently superinspired by Chris Wilson's AudioContext-MonkeyPatch library,
* and just patching webkitCreateShadowRoot to createShadowRoot
*/
(function() {
if( HTMLElement.prototype.webkitCreateShadowRoot !== undefined &&
HTMLElement.prototype.createShadowRoot === undefined ) {
HTMLElem... | /**
* Evidently superinspired by Chris Wilson's AudioContext-MonkeyPatch library,
*/
(function() {
// Unprefixed createShadowRoot
if( HTMLElement.prototype.webkitCreateShadowRoot !== undefined &&
HTMLElement.prototype.createShadowRoot === undefined ) {
HTMLElement.prototype.createShadowRoot ... | Use only one function call | Use only one function call
| JavaScript | apache-2.0 | sole/WebComponentsMonkeyPatch | javascript | ## Code Before:
/**
* Evidently superinspired by Chris Wilson's AudioContext-MonkeyPatch library,
* and just patching webkitCreateShadowRoot to createShadowRoot
*/
(function() {
if( HTMLElement.prototype.webkitCreateShadowRoot !== undefined &&
HTMLElement.prototype.createShadowRoot === undefined ) {
... |
dc2bfd8aaee1cd4d66ec17f9cc4707af7e843ae3 | _sass/_base.scss | _sass/_base.scss | // Basic reset
html, body, div, main, header, nav, footer, section, article, p, pre, h1, h2 {
padding: 0;
margin: 0;
display: block;
}
* {
box-sizing: border-box;
}
html {
color: white;
background-color: #222;
line-height: 1.5;
font-size: 1.1rem;
font-family: "Helvetica Neue", "Helv... | // Basic reset
html, body, div, main, header, nav, footer, section, article, p, pre, h1, h2 {
padding: 0;
margin: 0;
display: block;
}
* {
box-sizing: border-box;
}
html {
color: white;
background-color: #222;
line-height: 1.5;
font-size: 1.1rem;
font-family: "Helvetica Neue", "Helv... | Fix link colors on light theme | Fix link colors on light theme
| SCSS | mit | korobi/weblog,korobi/weblog | scss | ## Code Before:
// Basic reset
html, body, div, main, header, nav, footer, section, article, p, pre, h1, h2 {
padding: 0;
margin: 0;
display: block;
}
* {
box-sizing: border-box;
}
html {
color: white;
background-color: #222;
line-height: 1.5;
font-size: 1.1rem;
font-family: "Helvet... |
a286112c22cccf474183f67aa457fdf595016b95 | gulpfile.babel.js | gulpfile.babel.js | import gulp from 'gulp'
import git from 'gulp-git'
import bump from 'gulp-bump'
import tagVersion from 'gulp-tag-version'
;['major', 'minor', 'patch'].forEach((type) => {
gulp.task(`bump:${type}`, () =>
gulp.src('./package.json')
.pipe(bump({ type }))
.pipe(gulp.dest('./'))
.pipe(git.commit('bumps ve... | import gulp from 'gulp'
import git from 'gulp-git'
import bump from 'gulp-bump'
import tagVersion from 'gulp-tag-version'
import babel from 'gulp-babel'
;['major', 'minor', 'patch'].forEach((type) => {
gulp.task(`bump:${type}`, ['build'], () =>
gulp.src('./package.json')
.pipe(bump({ type }))
.pipe(gulp.... | Add build script to gulp script | Add build script to gulp script
| JavaScript | mit | timnew/sa-debug-viewer | javascript | ## Code Before:
import gulp from 'gulp'
import git from 'gulp-git'
import bump from 'gulp-bump'
import tagVersion from 'gulp-tag-version'
;['major', 'minor', 'patch'].forEach((type) => {
gulp.task(`bump:${type}`, () =>
gulp.src('./package.json')
.pipe(bump({ type }))
.pipe(gulp.dest('./'))
.pipe(git.... |
2ef578aada73767ad7f44f4b8a50d9768d8c46d2 | spec/shard_monitor/config_spec.rb | spec/shard_monitor/config_spec.rb | require 'spec_helper'
require 'shard_monitor/config'
RSpec.describe ShardMonitor::Config do
subject { ShardMonitor::Config.new }
let(:argv) { %w(--redis redis://blah.com/5) }
before do
subject.parse_options argv
end
it 'takes command line arguments' do
expect(subject.redis).to eq('redis://blah.com... | require 'spec_helper'
require 'shard_monitor/config'
RSpec.describe ShardMonitor::Config do
subject { ShardMonitor::Config.new }
let(:argv) { %w(--redis redis://blah.com/5 --table thingy) }
before do
subject.parse_options argv
end
it 'takes command line arguments' do
expect(subject.redis).to eq('r... | Fix config spec for table name | Fix config spec for table name | Ruby | mit | wanelo/sequel-schema-sharding-minotaur,wanelo/sequel-schema-sharding-minotaur | ruby | ## Code Before:
require 'spec_helper'
require 'shard_monitor/config'
RSpec.describe ShardMonitor::Config do
subject { ShardMonitor::Config.new }
let(:argv) { %w(--redis redis://blah.com/5) }
before do
subject.parse_options argv
end
it 'takes command line arguments' do
expect(subject.redis).to eq('... |
77deaef7c475de0fcc71294fd8724742ed74d188 | README.md | README.md | [](https://travis-ci.org/weblogng/angular-weblogng)
# angular-weblogng
AngularJS module for the WeblogNG client library.
## About
See the [project homepage](http://weblogng.github.io/angular-weblogng).
## Installation
Using Bower:
... | [](https://travis-ci.org/weblogng/angular-weblogng)
# angular-weblogng
AngularJS module for the WeblogNG client library.
## About
See the [project homepage](http://weblogng.github.io/angular-weblogng).
## Installation
Using Bower:
... | Update urls to release builds. | Update urls to release builds.
| Markdown | mit | weblogng/angular-weblogng | markdown | ## Code Before:
[](https://travis-ci.org/weblogng/angular-weblogng)
# angular-weblogng
AngularJS module for the WeblogNG client library.
## About
See the [project homepage](http://weblogng.github.io/angular-weblogng).
## Installation... |
5a8c25f81481acb82ce5d8c034b39c473a9964cd | data/transition-sites/co_pgc.yml | data/transition-sites/co_pgc.yml | ---
site: co_pgc
whitehall_slug: cabinet-office
homepage_title: 'Payroll Giving Centre'
homepage: https://www.gov.uk/government/organisations/cabinet-office
tna_timestamp: 20121015131350
host: www.payrollgivingcentre.com
aliases:
- payrollgivingcentre.com
extra_organisation_slugs:
- hm-revenue-customs
| ---
site: co_pgc
whitehall_slug: cabinet-office
homepage_title: 'Payroll Giving Centre'
homepage: https://www.gov.uk/government/organisations/cabinet-office
tna_timestamp: 20121015131350
host: www.payrollgivingcentre.com
aliases:
- payrollgivingcentre.com
extra_organisation_slugs:
- hm-revenue-customs
global: =301 http... | Make payrollgivingcentre.com a global redirect | Make payrollgivingcentre.com a global redirect
This site was configured last year and has a few mappings, but hasn't
transitioned yet. We now want it to be a global redirect.
| YAML | mit | alphagov/transition-config,alphagov/transition-config | yaml | ## Code Before:
---
site: co_pgc
whitehall_slug: cabinet-office
homepage_title: 'Payroll Giving Centre'
homepage: https://www.gov.uk/government/organisations/cabinet-office
tna_timestamp: 20121015131350
host: www.payrollgivingcentre.com
aliases:
- payrollgivingcentre.com
extra_organisation_slugs:
- hm-revenue-customs
... |
0586fcf8beb3f3e46113b6537c8ae8d69ee47b23 | ci_environment/python/recipes/pip.rb | ci_environment/python/recipes/pip.rb |
remote_file "#{Chef::Config[:file_cache_path]}/ez_setup.py" do
source "https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py"
mode "0644"
not_if "which pip"
end
bash "install-pip" do
cwd Chef::Config[:file_cache_path]
code <<-EOF
python ez_setup.py
easy_install pip
EOF
not_if "which pip"
e... |
remote_file "#{Chef::Config[:file_cache_path]}/ez_setup.py" do
source 'https://bootstrap.pypa.io/ez_setup.py'
mode "0644"
not_if "which pip"
end
bash "install-pip" do
cwd Chef::Config[:file_cache_path]
code <<-EOF
python ez_setup.py
easy_install pip
EOF
not_if "which pip"
end
| Update download URL for ez_setup.py | Update download URL for ez_setup.py
| Ruby | mit | dracos/travis-cookbooks,dracos/travis-cookbooks,dracos/travis-cookbooks,dracos/travis-cookbooks | ruby | ## Code Before:
remote_file "#{Chef::Config[:file_cache_path]}/ez_setup.py" do
source "https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py"
mode "0644"
not_if "which pip"
end
bash "install-pip" do
cwd Chef::Config[:file_cache_path]
code <<-EOF
python ez_setup.py
easy_install pip
EOF
not_... |
79241c8d2691d296332cb86938742ad6c8d07186 | hieradata/vagrant/modules/profile.yaml | hieradata/vagrant/modules/profile.yaml | ---
profile::development::network::dns::manage_hosts: true
profile::application::openssl::catrust::ca_cert: '/opt/himlar/provision/ca/intermediate/certs/ca-chain.cert.pem'
profile::application::himlarcli::cacert: '/opt/himlar/provision/ca/intermediate/certs/ca-chain.cert.pem'
profile::application::himlarcli::smt... | ---
profile::logging::rsyslog::client::manage_rsyslog: false
profile::development::network::dns::manage_hosts: true
profile::application::openssl::catrust::ca_cert: '/opt/himlar/provision/ca/intermediate/certs/ca-chain.cert.pem'
profile::application::himlarcli::cacert: '/opt/himlar/provision/ca/intermediate/ce... | Disable sending logs to logger in vagrant | Disable sending logs to logger in vagrant
| YAML | apache-2.0 | norcams/himlar,tanzr/himlar,tanzr/himlar,raykrist/himlar,norcams/himlar,tanzr/himlar,raykrist/himlar,TorLdre/himlar,tanzr/himlar,norcams/himlar,TorLdre/himlar,raykrist/himlar,raykrist/himlar,mikaeld66/himlar,TorLdre/himlar,mikaeld66/himlar,tanzr/himlar,norcams/himlar,mikaeld66/himlar,norcams/himlar,TorLdre/himlar,mikae... | yaml | ## Code Before:
---
profile::development::network::dns::manage_hosts: true
profile::application::openssl::catrust::ca_cert: '/opt/himlar/provision/ca/intermediate/certs/ca-chain.cert.pem'
profile::application::himlarcli::cacert: '/opt/himlar/provision/ca/intermediate/certs/ca-chain.cert.pem'
profile::application... |
c71250213317338e99a8d4a38342f30d4b3053a8 | README.md | README.md | practicalmayapython
===================
Source code repository for the "Practical Maya Programming with Python" book.
You can get an eBook version of the book FREE! Just email me at the email below.
Or you can purchase/learn more at:
- https://www.amazon.com/Practical-Programming-Python-Robert-Galanakis/dp/18496947... | practicalmayapython
===================
Source code repository for the "Practical Maya Programming with Python" book.
You can get an eBook version of the book FREE! Just email me at the email below.
Or you can purchase/learn more at:
- https://www.amazon.com/Practical-Programming-Python-Robert-Galanakis/dp/18496947... | Fix google link in readme | Fix google link in readme | Markdown | mit | rgalanakis/practicalmayapython,rgalanakis/practicalmayapython | markdown | ## Code Before:
practicalmayapython
===================
Source code repository for the "Practical Maya Programming with Python" book.
You can get an eBook version of the book FREE! Just email me at the email below.
Or you can purchase/learn more at:
- https://www.amazon.com/Practical-Programming-Python-Robert-Galan... |
5059649ac07f27b4efdd2dfe8590ee575be5fdf6 | package.json | package.json | {
"name": "emailjs",
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server",
"version": "0.2.9",
"author": "eleith",
"contributors":["izuzak", "Hiverness", "mscdex"],
"repository":
{
"type": "git",
"url": "http://git... | {
"name": "emailjs",
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server",
"version": "0.2.9",
"author": "eleith",
"contributors":["izuzak", "Hiverness", "mscdex"],
"repository":
{
"type": "git",
"url": "http://git... | Fix test command line on Windows. | Fix test command line on Windows.
Globs don't work great there, and test/*.js is the default pattern anyway.
| JSON | mit | jniles/emailjs,lvnhmd/emailjs,eleith/emailjs,imclab/emailjs,eleith/emailjs,jniles/emailjs,eleith/emailjs,lvnhmd/emailjs,imclab/emailjs | json | ## Code Before:
{
"name": "emailjs",
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server",
"version": "0.2.9",
"author": "eleith",
"contributors":["izuzak", "Hiverness", "mscdex"],
"repository":
{
"type": "git",
"u... |
3df8a507d11831c60cf0bef33d6e0872ef167117 | resources/public/common/dataSource.js | resources/public/common/dataSource.js | var dataSource = function () {
var module = {};
module.load = function (url, callback) {
d3.json(url, function (_, data) {
callback(data);
});
};
module.loadCSV = function (url, callback) {
d3.csv(url, function (_, data) {
callback(data);
});
... | var dataSource = function () {
var module = {};
module.load = function (url, callback) {
d3.json(url, function (error, data) {
if (error) return console.warn(error);
callback(data);
});
};
module.loadCSV = function (url, callback) {
d3.csv(url, function... | Handle ajax errors, don't show 'no content' | Handle ajax errors, don't show 'no content'
| JavaScript | bsd-2-clause | cburgmer/buildviz,cburgmer/buildviz,cburgmer/buildviz | javascript | ## Code Before:
var dataSource = function () {
var module = {};
module.load = function (url, callback) {
d3.json(url, function (_, data) {
callback(data);
});
};
module.loadCSV = function (url, callback) {
d3.csv(url, function (_, data) {
callback(data);... |
a0a54533c320aa6698896e6b181e8368c1c82c01 | examples/baas-minikube-setup/create-minikube-namespace.sh | examples/baas-minikube-setup/create-minikube-namespace.sh |
set -o errexit
set -eo pipefail
set -o nounset
#set -o xtrace
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "Creating minikube cluster locally ${RED}(takes up to 10 minutes)${NC}"
minikube delete || echo "Ignoring delete for non existed minikube cluster"
minikube --vm-driver virtualbox --memory 8192 --cpus 4 sta... |
set -o errexit
set -eo pipefail
set -o nounset
#set -o xtrace
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "Creating minikube cluster locally ${RED}(takes up to 10 minutes)${NC}"
minikube delete || echo "Ignoring delete for non existed minikube cluster"
minikube --vm-driver virtualbox --memory 8192 --cpus 4 sta... | Remove corporate proxy specific steps from namespace creation. | Remove corporate proxy specific steps from namespace creation.
| Shell | mit | ing-bank/baker,ing-bank/baker,ing-bank/baker,ing-bank/baker,ing-bank/baker | shell | ## Code Before:
set -o errexit
set -eo pipefail
set -o nounset
#set -o xtrace
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "Creating minikube cluster locally ${RED}(takes up to 10 minutes)${NC}"
minikube delete || echo "Ignoring delete for non existed minikube cluster"
minikube --vm-driver virtualbox --memory 8... |
b189837f511396c1f901fe5b2d186a5f363888ed | app/src/base/navigation_controller.coffee | app/src/base/navigation_controller.coffee | class @NavigationController extends @ViewController
viewControllers: []
childViewControllerContentId: 'navigation_controller_content'
push: (viewController) ->
if @topViewController()?
@topViewController().onDetach()
@topViewController().parentViewController = undefined
@viewControllers.push... | class @NavigationController extends @ViewController
_historyLength: 1
viewControllers: []
childViewControllerContentId: 'navigation_controller_content'
push: (viewController) ->
if @topViewController()?
@topViewController().onDetach()
@topViewController().parentViewController = undefined
i... | Update navigation controller stack history management | Update navigation controller stack history management
| CoffeeScript | mit | LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome,Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome | coffeescript | ## Code Before:
class @NavigationController extends @ViewController
viewControllers: []
childViewControllerContentId: 'navigation_controller_content'
push: (viewController) ->
if @topViewController()?
@topViewController().onDetach()
@topViewController().parentViewController = undefined
@view... |
6ff9c1f511a63a0063775492b8b7a9acf358ad21 | CONTRIB/README.md | CONTRIB/README.md |
* [Auto re-start Rocket.Chat if Pi Reboots or Crashes](https://github.com/RocketChat/Rocket.Chat.RaspberryPi/tree/master/CONTRIB/restart_after_reboot_with_supervisor), by @elpatron68 and @j8r
* [Monitor or control anything connected to your Pi, from anywhere - *HubotOnPi* style!](https://github.com/RocketChat/Rocket.... |
* [Auto re-start Rocket.Chat if Pi Reboots or Crashes](https://github.com/RocketChat/Rocket.Chat.RaspberryPi/tree/master/CONTRIB/restart_after_reboot_with_supervisor), by @elpatron68 and @j8r
* [Monitor or control anything connected to your Pi, from anywhere - *HubotOnPi* style!](https://github.com/RocketChat/Rocket.... | Add door and pix bots | Add door and pix bots | Markdown | mit | RocketChat/Rocket.Chat.RaspberryPi,RocketChat/Rocket.Chat.RaspberryPi | markdown | ## Code Before:
* [Auto re-start Rocket.Chat if Pi Reboots or Crashes](https://github.com/RocketChat/Rocket.Chat.RaspberryPi/tree/master/CONTRIB/restart_after_reboot_with_supervisor), by @elpatron68 and @j8r
* [Monitor or control anything connected to your Pi, from anywhere - *HubotOnPi* style!](https://github.com/Ro... |
55f0f4ab81f18cf33ff62389752ee7571623c27f | backend/dynamic-web-apps/voting-app/src/tests/integrated/database.spec.js | backend/dynamic-web-apps/voting-app/src/tests/integrated/database.spec.js | const test = require('tape');
const User = require('../../../models/User');
const { connect, add, remove } = require('../../database');
test('connection to database', async (assert) => {
const res = await connect();
assert.equal(res, 0, 'It should connect to the database without errors');
assert.end();
});
test... | const test = require('tape');
const User = require('../../../models/User');
const { connect, add, remove } = require('../../database');
test('connection to database', async (assert) => {
const actual = await connect();
const expected = 0;
assert.equal(actual, expected, 'It should connect to the database without ... | Update test file variable names | Update test file variable names
| JavaScript | mit | mkermani144/freecodecamp-projects,mkermani144/freecodecamp-projects | javascript | ## Code Before:
const test = require('tape');
const User = require('../../../models/User');
const { connect, add, remove } = require('../../database');
test('connection to database', async (assert) => {
const res = await connect();
assert.equal(res, 0, 'It should connect to the database without errors');
assert.... |
579de843e8dccc8e5e46c5bb4aab75cae09f0dd6 | wercker.yml | wercker.yml | box:
id: node:8-alpine
build:
steps:
- script:
name: install dependencies
code: |
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
export NODE_ENV=development
HOME=$YARN_CACHE yarn
- script:
name: build
code: |
npm run build
- s... | box:
id: node:8-alpine
build:
steps:
- script:
name: install dependencies
code: |
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
export NODE_ENV=development
HOME=$YARN_CACHE yarn
- script:
name: build
code: |
npm run build
- s... | Use tetsuo/electron-ready:4 for deploying gh-pages | Use tetsuo/electron-ready:4 for deploying gh-pages
| YAML | mit | tetsuo/xus,tetsuo/xus | yaml | ## Code Before:
box:
id: node:8-alpine
build:
steps:
- script:
name: install dependencies
code: |
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
export NODE_ENV=development
HOME=$YARN_CACHE yarn
- script:
name: build
code: |
npm r... |
0fcb2eaa36b8cc3411ad2ab5bec3eb9b1f710da5 | README.md | README.md | dotfiles
========
Miscellaneous settings files I use across systems. Mostly OSX-specific.
# To get up and running
From a fresh OSX install:
1. Generate an SSH key with `ssh-keygen`.
2. Add that SSH key to your [GitHub SSH keys](https://github.com/settings/keys).
3. Clone this repo with `git clone git@github.com:spi... | dotfiles
========
Miscellaneous settings files I use across systems. Mostly OSX-specific.
# To get up and running
From a fresh OSX install:
1. Generate an SSH key with `ssh-keygen`.
a. Copy the generated key with `cat .ssh/id_rsa.pub | pbcopy`.
2. Add that SSH key to your [GitHub SSH keys](https://github.com/sett... | Update readme to be more explicit | Update readme to be more explicit
| Markdown | mit | spikeheap/dotfiles,spikeheap/dotfiles | markdown | ## Code Before:
dotfiles
========
Miscellaneous settings files I use across systems. Mostly OSX-specific.
# To get up and running
From a fresh OSX install:
1. Generate an SSH key with `ssh-keygen`.
2. Add that SSH key to your [GitHub SSH keys](https://github.com/settings/keys).
3. Clone this repo with `git clone gi... |
099f6b110ff183f5984a71de436d3f6cff8d5c45 | meter-agent/src/test/scala/hyperion/CollectingActorSpec.scala | meter-agent/src/test/scala/hyperion/CollectingActorSpec.scala | package hyperion
import akka.testkit.TestProbe
import scala.concurrent.duration._
import scala.io.Source
class CollectingActorSpec extends BaseAkkaSpec {
val CRLF = "\r\n"
"Receiving the \"IncomingData\"" should {
"skip data until the first complete Telegram comes in" in {
val receiver = TestProbe()
... | package hyperion
import akka.testkit.TestProbe
import scala.concurrent.duration._
import scala.io.Source
class CollectingActorSpec extends BaseAkkaSpec {
val CRLF = "\r\n"
"Receiving the \"IncomingData\"" should {
"skip data until the first complete Telegram comes in" in {
val receiver = TestProbe()
... | Add small pauses between sending chunks of data | Add small pauses between sending chunks of data
| Scala | mit | mthmulders/hyperion | scala | ## Code Before:
package hyperion
import akka.testkit.TestProbe
import scala.concurrent.duration._
import scala.io.Source
class CollectingActorSpec extends BaseAkkaSpec {
val CRLF = "\r\n"
"Receiving the \"IncomingData\"" should {
"skip data until the first complete Telegram comes in" in {
val receiver... |
25e44bb5e37df64916cd4d249bbf7d10115e2d49 | src/utils.js | src/utils.js | export function checkStatus(response) {
if (response.status >= 200 && response.status < 300) {
return response.json();
}
throw new Error(response.statusText);
}
export function getShortDate(dateString) {
const d = new Date(dateString);
return `${d.getMonth() + 1}/${d.getDate()}/${d.getFullYear() % 100}`;... | import moment from 'moment';
export function checkStatus(response) {
if (response.status >= 200 && response.status < 300) {
return response.json();
}
throw new Error(response.statusText);
}
export function getShortDate(dateString) {
return moment(dateString).format('MM/DD/YY');
}
| Fix getShortDate to return leading zeros | Fix getShortDate to return leading zeros
| JavaScript | mit | ZachGawlik/print-to-resist,ZachGawlik/print-to-resist | javascript | ## Code Before:
export function checkStatus(response) {
if (response.status >= 200 && response.status < 300) {
return response.json();
}
throw new Error(response.statusText);
}
export function getShortDate(dateString) {
const d = new Date(dateString);
return `${d.getMonth() + 1}/${d.getDate()}/${d.getFul... |
46245254cdf9c3f2f6a9c27fe7e089867b4f394f | cloudbio/custom/versioncheck.py | cloudbio/custom/versioncheck.py | from distutils.version import LooseVersion
from fabric.api import quiet
from cloudbio.custom import shared
def _parse_from_stdoutflag(out, flag):
"""Extract version information from a flag in verbose stdout.
"""
for line in out.split("\n") + out.stderr.split("\n"):
if line.find(flag) >= 0:
... | from distutils.version import LooseVersion
from fabric.api import quiet
from cloudbio.custom import shared
def _parse_from_stdoutflag(out, flag):
"""Extract version information from a flag in verbose stdout.
"""
for line in out.split("\n") + out.stderr.split("\n"):
if line.find(flag) >= 0:
... | Include env.system_install PATH as part of version checking to work with installed software not on the global PATH. Thanks to James Cuff | Include env.system_install PATH as part of version checking to work with installed software not on the global PATH. Thanks to James Cuff
| Python | mit | chapmanb/cloudbiolinux,elkingtonmcb/cloudbiolinux,kdaily/cloudbiolinux,elkingtonmcb/cloudbiolinux,kdaily/cloudbiolinux,averagehat/cloudbiolinux,kdaily/cloudbiolinux,chapmanb/cloudbiolinux,joemphilips/cloudbiolinux,AICIDNN/cloudbiolinux,joemphilips/cloudbiolinux,pjotrp/cloudbiolinux,pjotrp/cloudbiolinux,elkingtonmcb/clo... | python | ## Code Before:
from distutils.version import LooseVersion
from fabric.api import quiet
from cloudbio.custom import shared
def _parse_from_stdoutflag(out, flag):
"""Extract version information from a flag in verbose stdout.
"""
for line in out.split("\n") + out.stderr.split("\n"):
if line.find(fl... |
eb7a181d9cd222f0c73c8229c39d5360f12138f6 | rx-adapter/README.md | rx-adapter/README.md | Experimental Rx Adapter for a unreleased version of Cycle.js which takes advantage of adapters
| Experimental Rx Adapter for a unreleased version of Cycle.js which takes advantage of adapters
## Install
```shell
npm install cycle-rx-adapter
```
## Usage
```js
import Cycle from '@cycle/core'
import streamAdapter from 'cycle-rx-adapter'
...
run(main, drivers, {streamAdapter})
```
| Update readme with basic info | docs(readme): Update readme with basic info
| Markdown | mit | cyclejs/cyclejs,cyclejs/cycle-core,usm4n/cyclejs,ntilwalli/cyclejs,feliciousx-open-source/cyclejs,usm4n/cyclejs,ntilwalli/cyclejs,staltz/cycle,cyclejs/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,cyclejs/cyclejs,maskinoshita/cyclejs,maskinoshita/cyclejs,cyclejs/cycle-core,ntilwalli/cyclejs,feliciousx-open-source/cyclejs,... | markdown | ## Code Before:
Experimental Rx Adapter for a unreleased version of Cycle.js which takes advantage of adapters
## Instruction:
docs(readme): Update readme with basic info
## Code After:
Experimental Rx Adapter for a unreleased version of Cycle.js which takes advantage of adapters
## Install
```shell
npm install cycl... |
3c0ce6a3e4e16ff3991a838009c42efa2f5b237d | tviit/admin.py | tviit/admin.py | from django.contrib import admin
from .models import Tviit
admin.site.register(Tviit) | from django.contrib import admin
from .models import Tviit
class TviitAdmin(admin.ModelAdmin):
readonly_fields=('uuid',)
admin.site.register(Tviit, TviitAdmin) | Add uuid to be readable in Admin-panel | Add uuid to be readable in Admin-panel
| Python | mit | DeWaster/Tviserrys,DeWaster/Tviserrys | python | ## Code Before:
from django.contrib import admin
from .models import Tviit
admin.site.register(Tviit)
## Instruction:
Add uuid to be readable in Admin-panel
## Code After:
from django.contrib import admin
from .models import Tviit
class TviitAdmin(admin.ModelAdmin):
readonly_fields=('uuid',)
admin.site.register... |
920a025e6f8bafe889e5679a4833ffafd195ae47 | build/install_dependencies_ubuntu14.sh | build/install_dependencies_ubuntu14.sh | sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
# Update apt-get cache
sudo apt-get update
# Install .NET Core SDK
sudo apt-get install dotnet-d... | sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
# Add the Mono apt-get feed
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key... | Install Mono and Powershell in Travis CI | Install Mono and Powershell in Travis CI
| Shell | apache-2.0 | iolevel/peachpie,peachpiecompiler/peachpie,peachpiecompiler/peachpie,iolevel/peachpie,iolevel/peachpie-concept,peachpiecompiler/peachpie,iolevel/peachpie,iolevel/peachpie-concept,iolevel/peachpie-concept | shell | ## Code Before:
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
# Update apt-get cache
sudo apt-get update
# Install .NET Core SDK
sudo apt-get ... |
5f385913ab06fc288c61d22d98f2f9a903194f8f | data_structures/Stack/Python/Stack.py | data_structures/Stack/Python/Stack.py |
class Stack(object):
def __init__(self):
# Initialize stack as empty array
self.stack = []
# Return and remove the last element of the stack array.
def pop(self):
# If the stack is not empty, pop.
if self.stack.length > 0:
return self.stack.pop() |
class Stack(object):
def __init__(self):
# Initialize stack as empty array
self.stack = []
# Return and remove the last element of the stack array.
def pop(self):
# If the stack is not empty, pop.
if self.stack.length > 0:
return self.stack.pop()
# Add an ... | Add push method and implementation | Add push method and implementation
| Python | cc0-1.0 | manikTharaka/al-go-rithms,ZoranPandovski/al-go-rithms,Cnidarias/al-go-rithms,EUNIX-TRIX/al-go-rithms,Cnidarias/al-go-rithms,Deepak345/al-go-rithms,manikTharaka/al-go-rithms,manikTharaka/al-go-rithms,Cnidarias/al-go-rithms,ZoranPandovski/al-go-rithms,manikTharaka/al-go-rithms,manikTharaka/al-go-rithms,Cnidarias/al-go-ri... | python | ## Code Before:
class Stack(object):
def __init__(self):
# Initialize stack as empty array
self.stack = []
# Return and remove the last element of the stack array.
def pop(self):
# If the stack is not empty, pop.
if self.stack.length > 0:
return self.stack.pop()... |
c25ab2d107b7750f5cc955ff68bb4f8a7c75dccc | pkg/minikube/bootstrapper/kubeadm/default_cni.go | pkg/minikube/bootstrapper/kubeadm/default_cni.go | /*
Copyright 2018 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | /*
Copyright 2018 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | Upgrade CNI config version to 0.3.0 | Upgrade CNI config version to 0.3.0
Was using the default version of 0.2.0, didn't load with 0.4.0. closes https://github.com/kubernetes/minikube/issues/4406 | Go | apache-2.0 | warmchang/minikube,dlorenc/minikube,kubernetes/minikube,warmchang/minikube,warmchang/minikube,dalehamel/minikube,warmchang/minikube,kubernetes/minikube,dlorenc/minikube,kubernetes/minikube,warmchang/minikube,kubernetes/minikube,kubernetes/minikube,kubernetes/minikube,warmchang/minikube,dlorenc/minikube,dalehamel/miniku... | go | ## Code Before:
/*
Copyright 2018 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
c09ce13205f80c686aea05b92183167e43a0b4c9 | source/50_aws_env.sh | source/50_aws_env.sh | function aws-load-env {
local profile="${1:-default}"
if [[ ${profile} == clear ]]; then
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
unset AWS_SECRET_KEY
echo "Cleared AWS env variables"
else
local AWS_ACCESS_KEY_ID="$(aws conf... | function aws-load-env {
local profile="${1:-default}"
export TEST_FOO=FOO
if [[ ${profile} == clear ]]; then
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
unset AWS_SECRET_KEY
echo "Cleared AWS env variables"
else
export AWS... | Fix up AWS env helper func | Fix up AWS env helper func
Signed-off-by: Joe Beda <bc91516b0d0039bd81761623a777782b34504bb2@bedafamily.com>
| Shell | mit | jbeda/dotfiles | shell | ## Code Before:
function aws-load-env {
local profile="${1:-default}"
if [[ ${profile} == clear ]]; then
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
unset AWS_SECRET_KEY
echo "Cleared AWS env variables"
else
local AWS_ACCESS_KE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.