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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5126f1d81651b59baccb10f02e4b976b4294baa3 | FUNDING.yml | FUNDING.yml | patreon: authentic_theme
custom: https://www.virtualmin.com/buy/virtualmin
| custom: https://www.virtualmin.com/buy/virtualmin
| Use only Virtualmin Pro license for support | Use only Virtualmin Pro license for support | YAML | mit | qooob/authentic-theme,qooob/authentic-theme,qooob/authentic-theme,qooob/authentic-theme,qooob/authentic-theme | yaml | ## Code Before:
patreon: authentic_theme
custom: https://www.virtualmin.com/buy/virtualmin
## Instruction:
Use only Virtualmin Pro license for support
## Code After:
custom: https://www.virtualmin.com/buy/virtualmin
|
b774a8d554106062069d2cf3be57cf203f18f319 | Server/api/teams/models/Team.js | Server/api/teams/models/Team.js | 'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const TeamModel = new Schema({
project: {
type: Schema.Types.ObjectId,
required: false,
ref: 'Project'
},
submission: {
type: Schema.Types.ObjectId,
required: false,
ref: 'Submission'
},
owner: {
... | 'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const TeamModel = new Schema({
project: {
type: Schema.Types.ObjectId,
required: false,
ref: 'Project',
dafault: null
},
submission: {
type: Schema.Types.ObjectId,
required: false,
ref: 'Submission',
... | Add meta data to team model | Add meta data to team model
| JavaScript | mit | ninja4826/angular2_weeklydev,ninja4826/angular2_weeklydev,ninja4826/angular2_weeklydev | javascript | ## Code Before:
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const TeamModel = new Schema({
project: {
type: Schema.Types.ObjectId,
required: false,
ref: 'Project'
},
submission: {
type: Schema.Types.ObjectId,
required: false,
ref: 'Submission'
},... |
4fb8ac4fedc262f9d6bb3072bef24b5da56be394 | entities/areas/saltaredistrict/courtyardoutsidetheserpentshiss.yml | entities/areas/saltaredistrict/courtyardoutsidetheserpentshiss.yml | - title:
en: "the courtyard outside the tavern"
area: "The Saltare Distrcit"
location: 12
description:
en: "To your west is a two-story tavern, covered in rotting wood shingles. An ornate brass sign hangs from the awning jutting from its front like a crooked mustache, spelling the words \"The Serpent's Hi... | - title:
en: "the courtyard outside the tavern"
area: "The Saltare District"
location: 12
description:
en: "To your west is a two-story tavern, covered in rotting wood shingles. An ornate brass sign hangs from the awning jutting from its front like a crooked mustache, spelling the words \"The Serpent's Hi... | Add exit to the courtyard room linking the alley. | Add exit to the courtyard room linking the alley.
| YAML | mit | seanohue/ranviermud,seanohue/ranviermud,shawncplus/ranviermud | yaml | ## Code Before:
- title:
en: "the courtyard outside the tavern"
area: "The Saltare Distrcit"
location: 12
description:
en: "To your west is a two-story tavern, covered in rotting wood shingles. An ornate brass sign hangs from the awning jutting from its front like a crooked mustache, spelling the words \"... |
c8ab08b3474f78551167d961d48e01c029c742d8 | BookShelf.Mobile/views/LaterList.js | BookShelf.Mobile/views/LaterList.js | BookShelf.LaterList = function(params) {
return BookShelf.BookList($.extend(params, {
status: BookShelf.db.bookStatus.later,
filter: function(book) {
return !book.finishDate;
},
sort: [
function(book) {
return BookShelf.db.getBookStatus(book)... | BookShelf.LaterList = function(params) {
return BookShelf.BookList($.extend(params, {
status: BookShelf.db.bookStatus.later,
filter: function(book) {
return !book.finishDate;
},
sort: [
function(book) {
return BookShelf.db.getBookStatus(book)... | Improve sorting options in To Read view | Views: Improve sorting options in To Read view
| JavaScript | mit | tabalinas/BookShelf,tabalinas/BookShelf | javascript | ## Code Before:
BookShelf.LaterList = function(params) {
return BookShelf.BookList($.extend(params, {
status: BookShelf.db.bookStatus.later,
filter: function(book) {
return !book.finishDate;
},
sort: [
function(book) {
return BookShelf.db.get... |
b5c7d0dc2092c79f814c559f5d6a20351dd64d99 | circle.yml | circle.yml | machine:
python:
version: 2.7.9
dependencies:
override:
- pip install tox
test:
override:
- env PATH="$HOME/bin:$PATH" tox
post:
- mkdir -p $CIRCLE_ARTIFACTS/coverage
- mkdir -p $CIRCLE_TEST_REPORTS/xunit
- cp -r coverage/ $CIRCLE_ARTIFACTS/coverage/
- cp nosetests.xml $CIRCLE_TEST... | machine:
python:
version: 2.7.9
dependencies:
override:
- pip install tox
- pip install python-coveralls
test:
override:
- env PATH="$HOME/bin:$PATH" tox
post:
- mkdir -p $CIRCLE_ARTIFACTS/coverage
- mkdir -p $CIRCLE_TEST_REPORTS/xunit
- cp -r coverage/ $CIRCLE_ARTIFACTS/coverage/
... | Add post test coveralls job | Add post test coveralls job
| YAML | apache-2.0 | samstav/okchef | yaml | ## Code Before:
machine:
python:
version: 2.7.9
dependencies:
override:
- pip install tox
test:
override:
- env PATH="$HOME/bin:$PATH" tox
post:
- mkdir -p $CIRCLE_ARTIFACTS/coverage
- mkdir -p $CIRCLE_TEST_REPORTS/xunit
- cp -r coverage/ $CIRCLE_ARTIFACTS/coverage/
- cp nosetests.... |
9b9d22770e23858fa5bb449abc14580cd30ea3f6 | VPNOn/Theme/LTSplitViewController.swift | VPNOn/Theme/LTSplitViewController.swift | //
// LTSplitViewController.swift
// VPNOn
//
// Created by Lex on 1/18/15.
// Copyright (c) 2015 LexTang.com. All rights reserved.
//
import UIKit
class LTSplitViewController: UISplitViewController
{
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = UICol... | //
// LTSplitViewController.swift
// VPNOn
//
// Created by Lex on 1/18/15.
// Copyright (c) 2015 LexTang.com. All rights reserved.
//
import UIKit
class LTSplitViewController: UISplitViewController
{
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = UICol... | Change color of status bar. | Change color of status bar.
| Swift | mit | hxx0215/VPNOn,uiue/VPNOn,ListFranz/VPNOn,isNil/VPNOn,techistoner/VPNOn,zgtios/VPNOn,UIKit0/VPNOn,leyap/VPNOn,renyufei8023/VPNOn,isNil/VPNOn,kinwahlai/VPNOn,vikmeup/VPNOn,SuPair/VPNOn,hxx0215/VPNOn,noprom/VPNOn,singular78/VPNOn,zeropool/VPNOn,ListFranz/VPNOn,SuPair/VPNOn,feiin/VPNOn,vikmeup/VPNOn,jups/VPNOn,singular78/V... | swift | ## Code Before:
//
// LTSplitViewController.swift
// VPNOn
//
// Created by Lex on 1/18/15.
// Copyright (c) 2015 LexTang.com. All rights reserved.
//
import UIKit
class LTSplitViewController: UISplitViewController
{
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgro... |
141bf2c7af86729482ada6c9e0ea02744d3fa88a | config/deploy/production.rb | config/deploy/production.rb | server 'vps', roles: %w[app db web]
| server 'vps', user: 'deploy', roles: %w[app db web]
| Set deploy user for prod | Set deploy user for prod
| Ruby | mit | Sam-Killgallon/archery_tracker,Sam-Killgallon/archery_tracker,Sam-Killgallon/archery_tracker,Sam-Killgallon/archery_tracker | ruby | ## Code Before:
server 'vps', roles: %w[app db web]
## Instruction:
Set deploy user for prod
## Code After:
server 'vps', user: 'deploy', roles: %w[app db web]
|
e4b8a21dbc5639ea770a118b9465d9f2257c8de2 | website/app/application/core/projects/services/toggle-dragbuttons-service.js | website/app/application/core/projects/services/toggle-dragbuttons-service.js | Application.Services.factory('toggleDragButton', [toggleDragButton]);
function toggleDragButton() {
var service = {
addToReview: {
'samples': false,
'notes': false,
'files': false,
'provenance': false
},
toggle: function (type, button) {
... | Application.Services.factory('toggleDragButton', [toggleDragButton]);
function toggleDragButton() {
var service = {
addToReview: {
'samples': false,
'notes': false,
'files': false,
'provenance': false
},
addToProv: {
samples: false... | Add provenance type as item to reset. | Add provenance type as item to reset.
| JavaScript | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | javascript | ## Code Before:
Application.Services.factory('toggleDragButton', [toggleDragButton]);
function toggleDragButton() {
var service = {
addToReview: {
'samples': false,
'notes': false,
'files': false,
'provenance': false
},
toggle: function (type,... |
e25971b1320e46b4733b0466e074cd797da7f121 | lib/pat.rb | lib/pat.rb | require 'rubygems'
require 'weary'
class Pat
def self.get(code)
(Weary.get "http://www.uk-postcodes.com/postcode/#{code.gsub(' ', '')}.json").perform
end
end
| require 'rubygems'
require 'weary'
class PatClient < Weary::Client
domain "http://www.uk-postcodes.com"
get :get, "/postcode/{code}.json"
end
def Pat
def self.get(code)
PatClient.new.get(:code => code.gsub(' ', '').perform
end
end
| Update for Weary latest version | Update for Weary latest version | Ruby | mit | stefl/pat | ruby | ## Code Before:
require 'rubygems'
require 'weary'
class Pat
def self.get(code)
(Weary.get "http://www.uk-postcodes.com/postcode/#{code.gsub(' ', '')}.json").perform
end
end
## Instruction:
Update for Weary latest version
## Code After:
require 'rubygems'
require 'weary'
class PatClient < Weary::Client
dom... |
3dc4c82bdbf17a349bc0bdd58e9a5ec531a516fa | app/views/modules/player/_section.html.erb | app/views/modules/player/_section.html.erb | <%#
Copyright 2011-2019, The Trustees of Indiana University and Northwestern
University. 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 requ... | <%#
Copyright 2011-2019, The Trustees of Indiana University and Northwestern
University. 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 requ... | Remove duplicate 'share' button on media object page | Remove duplicate 'share' button on media object page
Revert to upstream fix for https://github.com/ualbertalib/avalon/issues/303 and https://github.com/ualbertalib/avalon/pull/304
| HTML+ERB | apache-2.0 | ualbertalib/avalon,ualbertalib/avalon,ualbertalib/avalon,ualbertalib/avalon | html+erb | ## Code Before:
<%#
Copyright 2011-2019, The Trustees of Indiana University and Northwestern
University. 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-... |
b0448976154e598d9845481d67ca78e48c36cb08 | content/index.html | content/index.html | ---
title: Home
---
<h1>A Brand New Nanoc Site</h1>
<p>You’ve just created a new Nanoc site. The page you are looking at right now is the home page for your site. To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:</p>
<ul>
<li><p><strong>Chang... | ---
title: Home
---
<h1>wiki.template</h1>
<p>
This is a wiki template. The main point of this is to integrate the foundation
css framework with nanoc and preparing everything to be wiki-ish, so one can
use this as a start for creating a wiki without having to deal with
stylesheets and everything.
</p>
<p>
... | Add some example text which is actually helpful | Add some example text which is actually helpful
| HTML | lgpl-2.1 | matthiasbeyer/wiki.template,matthiasbeyer/wiki.template,matthiasbeyer/wiki.template | html | ## Code Before:
---
title: Home
---
<h1>A Brand New Nanoc Site</h1>
<p>You’ve just created a new Nanoc site. The page you are looking at right now is the home page for your site. To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:</p>
<ul>
<li>... |
b23fa8418b29bf461fd51f3b925fe872e3e682ba | src/event/eventdispatcher/BaseEventDispatcher.ts | src/event/eventdispatcher/BaseEventDispatcher.ts | import {IEventDispatcher} from "../eventlistenerhelper/IEventDispatcher";
import {IEventListenerCallback} from "../eventlistenerhelper/IEventListenerCallback";
// Type definition for the eventemitter3
declare type EventEmitter = {
addListener(type:string, listener:Function, context?:any);
removeListener(type:... | import {IEventDispatcher} from "../eventlistenerhelper/IEventDispatcher";
import {IEventListenerCallback} from "../eventlistenerhelper/IEventListenerCallback";
import * as EventEmitter from "eventemitter3";
// Type definition for the eventemitter3
declare type EventEmitter = {
addListener(type:string, listener:F... | Fix of the eventemitter3 import. | Fix of the eventemitter3 import.
| TypeScript | mit | flashist/fcore,flashist/fcore,flashist/fcore | typescript | ## Code Before:
import {IEventDispatcher} from "../eventlistenerhelper/IEventDispatcher";
import {IEventListenerCallback} from "../eventlistenerhelper/IEventListenerCallback";
// Type definition for the eventemitter3
declare type EventEmitter = {
addListener(type:string, listener:Function, context?:any);
remo... |
873e9155130f6c45d4bbc259d2c7810542731f1d | assets/database.yml | assets/database.yml | development:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
production:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
test:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
| development:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
production:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
pool: 10
test:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
| Set a postgresql poolsize of 10 connections | Set a postgresql poolsize of 10 connections
| YAML | mit | nzherald/alaveteli-docker | yaml | ## Code Before:
development:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
production:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
test:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
## Instruction:
Set a postgresql poolsize of 10 connections
## Code After:
development:
adapter: po... |
3fa7031aa1a47d53d384583cbc5364d9ea623ff4 | neovim/.config/nvim/ftplugin/gitcommit.vim | neovim/.config/nvim/ftplugin/gitcommit.vim | " Turn on spell checking.
setlocal spell
" Mapping to insert current git ticket into file.
inoremap <C-g><C-t> <C-r>=execute('!git ticket')<cr>
" Mapping to retrieve commit message after failed commit.
function! GetPrevCommit()
let l:git_toplevel = glob("`git rev-parse --show-toplevel`/.git/COMMIT_EDITMSG")
:0rea... | " Turn on spell checking.
setlocal spell
" Mapping to insert current git ticket into file.
nnoremap <buffer> <silent> <LocalLeader>t :r !git ticket<cr>
" Mapping to retrieve commit message after failed commit.
function! GetPrevCommit()
let l:git_toplevel = glob("`git rev-parse --show-toplevel`/.git/COMMIT_EDITMSG")... | Add ticket mapping to git commit filetype | Add ticket mapping to git commit filetype
Conveinence mapping to insert the ticket name/number into the git commit
message.
| VimL | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles | viml | ## Code Before:
" Turn on spell checking.
setlocal spell
" Mapping to insert current git ticket into file.
inoremap <C-g><C-t> <C-r>=execute('!git ticket')<cr>
" Mapping to retrieve commit message after failed commit.
function! GetPrevCommit()
let l:git_toplevel = glob("`git rev-parse --show-toplevel`/.git/COMMIT_E... |
35ed2d069ab89fd9564a222edd3b64eba53c136f | bower.json | bower.json | {
"name": "leaflet-map-component",
"version": "0.1.0",
"authors": [
"Prateek Saxena <prtksxna@gmail.com>"
],
"description": "A polymer component to show a leaflet map",
"main": "leaflet-map-component.html",
"keywords": [
"polymer",
"web-component",
"osm",
"map",
"leaflet"
],
"l... | {
"name": "leaflet-map-component",
"version": "0.1.0",
"authors": [
"Prateek Saxena <prtksxna@gmail.com>"
],
"description": "A polymer component to show a leaflet map",
"main": "leaflet-map-component.html",
"keywords": [
"polymer",
"web-component",
"osm",
"map",
"leaflet"
],
"l... | Fix polymer dependency to use the Github repo | Fix polymer dependency to use the Github repo
| JSON | mit | prtksxna/leaflet-map-component | json | ## Code Before:
{
"name": "leaflet-map-component",
"version": "0.1.0",
"authors": [
"Prateek Saxena <prtksxna@gmail.com>"
],
"description": "A polymer component to show a leaflet map",
"main": "leaflet-map-component.html",
"keywords": [
"polymer",
"web-component",
"osm",
"map",
"le... |
d6e103638382b57720be878e39e4d43e51561ab2 | lib/framework/scaffold/templates/_package.json | lib/framework/scaffold/templates/_package.json | {
"name": "famous-framework-{{{componentNameHyphenated}}}",
"version": "0.0.0",
"description": "A Famous Framework component",
"license": "MIT",
"private": true,
"scripts": {
"snapshot-component": "famous-framework snapshot-component --destinationDirectory=public --blocksDirectory=public --sourceDirecto... | {
"name": "famous-framework-{{{componentNameHyphenated}}}",
"version": "0.0.0",
"description": "A Famous Framework component",
"license": "MIT",
"private": true,
"scripts": {
"copy-core-components": "famous-framework copy-core-components --destinationFolder=components/famous",
"local-only-bootstrap"... | Use the new framework build scripts in the framework scaffold package.json | chore: Use the new framework build scripts in the framework scaffold package.json
| JSON | mit | Famous/famous-cli,tbossert/famous-cli,tbossert/famous-cli,Famous/famous-cli | json | ## Code Before:
{
"name": "famous-framework-{{{componentNameHyphenated}}}",
"version": "0.0.0",
"description": "A Famous Framework component",
"license": "MIT",
"private": true,
"scripts": {
"snapshot-component": "famous-framework snapshot-component --destinationDirectory=public --blocksDirectory=public... |
fc7953f6e891b5e1ab6ec3dafa263bde6d590954 | tests/phpunit/unit/Controller/Async/StackTest.php | tests/phpunit/unit/Controller/Async/StackTest.php | <?php
namespace Bolt\Tests\Controller\Async;
use Bolt\Response\BoltResponse;
use Bolt\Tests\Controller\ControllerUnitTest;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Class to test correct operation of src/Contr... | <?php
namespace Bolt\Tests\Controller\Async;
use Bolt\Response\BoltResponse;
use Bolt\Tests\Controller\ControllerUnitTest;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Class to test correct operation of src/Contr... | Rename the Stack routes to be based on /async/stack/ | [Tests] Rename the Stack routes to be based on /async/stack/ | PHP | mit | tekjava/bolt,GawainLynch/bolt,rarila/bolt,kendoctor/bolt,GawainLynch/bolt,winiceo/bolt,pygillier/bolt,romulo1984/bolt,electrolinux/bolt,Eiskis/bolt-base,joshuan/bolt,marcin-piela/bolt,Raistlfiren/bolt,pygillier/bolt,Eiskis/bolt-base,hannesl/bolt,xeddmc/bolt,tekjava/bolt,kendoctor/bolt,nantunes/bolt,codesman/bolt,one988... | php | ## Code Before:
<?php
namespace Bolt\Tests\Controller\Async;
use Bolt\Response\BoltResponse;
use Bolt\Tests\Controller\ControllerUnitTest;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Class to test correct operat... |
2b4060c1b1d7c71d0bcd02c8316efac1cd5753fd | bin/install_hyperion.sh | bin/install_hyperion.sh | initctl stop xbmc
initctl stop boblight
# Install the RapsiLight library
cp libbob2hyperion.so /usr/lib/libbob2hyperion.so
chmod 755 /usr/lib/libbob2hyperion.so
cp hyperion.config.json /etc/
cp hyperion.schema.json /etc/
# Remove the existing boblight client library (make backup)
cp /usr/lib/libboblight.so.0.0.0 /usr... | BOBLIGHT_PROCNR=$(ps -e | grep "boblight" | wc -l)
if [ $BOBLIGHT_PROCNR -eq 1 ];
then
echo 'Found running instance of boblight. Please stop boblight via XBMC menu before installing hyperion'
exit
fi
# Stop hyperion daemon if it is running
initctl stop hyperion
# Copy the hyperion-binaries to the /usr/bin
wget gith... | Update of the installation script to use wget to obtain the latest release in deploy | Update of the installation script to use wget to obtain the latest release in deploy
Former-commit-id: f9b1be2af9c9f2bcfc79fa6851a4dec4d2e494ce | Shell | mit | hyperion-project/hyperion,Funatiq/hyperion.ng,penfold42/hyperion.ng,penfold42/hyperion.ng,penfold42/hyperion.ng,redPanther/hyperion.ng,penfold42/hyperion.ng,redPanther/hyperion.ng,redPanther/hyperion.ng,hyperion-project/hyperion.ng,ntim/hyperion,Funatiq/hyperion.ng,ntim/hyperion,penfold42/hyperion.ng,redPanther/hyperio... | shell | ## Code Before:
initctl stop xbmc
initctl stop boblight
# Install the RapsiLight library
cp libbob2hyperion.so /usr/lib/libbob2hyperion.so
chmod 755 /usr/lib/libbob2hyperion.so
cp hyperion.config.json /etc/
cp hyperion.schema.json /etc/
# Remove the existing boblight client library (make backup)
cp /usr/lib/libboblig... |
264b2fb29944107fefa1d78d92e9379732369c55 | lib/pdftk-heroku.rb | lib/pdftk-heroku.rb | require "pdftk-heroku/version"
module Pdftk
module Heroku
PDFTK_PATH = File.expand_path "../../bin/pdftk", __FILE__
begin
require 'docsplit'
Docsplit.config[:exe_path] = PDFTK_PATH
rescue LoadError
end
end
end
| require "pdftk-heroku/version"
module Pdftk
module Heroku
PDFTK_PATH = File.expand_path "../../bin/pdftk", __FILE__
end
end
| Remove pre-config settings for gem | Remove pre-config settings for gem
[#44932215] I don't know what this will actually be yet
| Ruby | mit | charliemaffitt/pdftk-heroku | ruby | ## Code Before:
require "pdftk-heroku/version"
module Pdftk
module Heroku
PDFTK_PATH = File.expand_path "../../bin/pdftk", __FILE__
begin
require 'docsplit'
Docsplit.config[:exe_path] = PDFTK_PATH
rescue LoadError
end
end
end
## Instruction:
Remove pre-config settings for gem
[#44... |
c050b3a566a08c6d62516e534cdf2af835906061 | app/assets/javascripts/configuration/local.json | app/assets/javascripts/configuration/local.json | {
"title": "FirstVoices",
"domain": "FV",
"baseWebUIURL": "https://www.firstvoices.com/",
"baseURL": "https://www.firstvoices.com/nuxeo/",
"preferences": {
"fields": {
"start_page": {
"my_dialect": "My Portal (default)",
"my_kids_dialect": "My Kids Portal",
"home": "Home Page... | {
"title": "FirstVoices",
"domain": "FV",
"baseWebUIURL": "https://www.firstvoices.com/",
"baseURL": "https://www.firstvoices.com/nuxeo/",
"apiURL": "https://api.firstvoices.com/v1/",
"preferences": {
"fields": {
"start_page": {
"my_dialect": "My Portal (default)",
"my_kids_dialect... | Add API host to config | Add API host to config
| JSON | apache-2.0 | First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui | json | ## Code Before:
{
"title": "FirstVoices",
"domain": "FV",
"baseWebUIURL": "https://www.firstvoices.com/",
"baseURL": "https://www.firstvoices.com/nuxeo/",
"preferences": {
"fields": {
"start_page": {
"my_dialect": "My Portal (default)",
"my_kids_dialect": "My Kids Portal",
"h... |
fb2dde0cbee5ca4e4005336f13244215c3434a50 | .travis.yml | .travis.yml |
language: ruby
rvm:
- 1.9.2
bundler_args: --without development assets
before_script:
- "bundle exec rake db:migrate ; RAILS_ENV=test rake db:migrate"
script: TRAVIS=1 bundle exec rspec spec
notifications:
email: false
branches:
only:
- master |
language: ruby
rvm:
- 1.9.2
before_install:
- gem install bundler
bundler_args: --without development assets
before_script:
- "bundle exec rake db:migrate ; RAILS_ENV=test rake db:migrate"
script: TRAVIS=1 bundle exec rspec spec
notifications:
email: false
branches:
only:
- master | Install latest bundler on Travis. | Install latest bundler on Travis. | YAML | mit | rilian/portfolio,Nilloc/portfolio,Nilloc/portfolio,rilian/portfolio,Nilloc/portfolio,rilian/portfolio | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.2
bundler_args: --without development assets
before_script:
- "bundle exec rake db:migrate ; RAILS_ENV=test rake db:migrate"
script: TRAVIS=1 bundle exec rspec spec
notifications:
email: false
branches:
only:
- master
## Instruction:
Install latest bundler on... |
aea05ee76193ac0abe2f6673910917bf13a3b339 | setup.py | setup.py | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',
description... | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='https://github.com/boppreh/simplecrypto',
license='LICENSE.txt',
description='... | Change homepage to github URL | Change homepage to github URL
| Python | mit | boppreh/simplecrypto | python | ## Code Before:
from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',... |
a43bd38440d55a91572ab2dec60dd5be42752c7c | doc/settings/environment-variables.md | doc/settings/environment-variables.md |
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab... |
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab... | Add a note about overriding other environments on omnibus. | Add a note about overriding other environments on omnibus.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/46968 | Markdown | apache-2.0 | gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab | markdown | ## Code Before:
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. ... |
f9be1590b44ab76c257bc866d1a92c2afe860e6a | install.sh | install.sh |
export DOTFILES_DIR
DOTFILES_DIR="$( builtin cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Update dotfiles itself first
[ -d "$DOTFILES_DIR/.git" ] && git --work-tree="$DOTFILES_DIR" \
--git-dir="$DOTFILES_DIR/.git" pull origin master
# Package managers & packages
. "$DOTFILES_DIR/packages/apt.sh"
. "$DOTFI... |
export DOTFILES_DIR
DOTFILES_DIR="$( builtin cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Update dotfiles itself first
[ -d "$DOTFILES_DIR/.git" ] && git --work-tree="$DOTFILES_DIR" \
--git-dir="$DOTFILES_DIR/.git" pull origin master
# Package managers & packages
. "$DOTFILES_DIR/packages/apt.sh"
. "$DOTFI... | Fix Atom config.cson symlink bug | Fix Atom config.cson symlink bug
| Shell | mit | strattadb/dotfiles,strattadb/dotfiles | shell | ## Code Before:
export DOTFILES_DIR
DOTFILES_DIR="$( builtin cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Update dotfiles itself first
[ -d "$DOTFILES_DIR/.git" ] && git --work-tree="$DOTFILES_DIR" \
--git-dir="$DOTFILES_DIR/.git" pull origin master
# Package managers & packages
. "$DOTFILES_DIR/packages/a... |
8c71ddd51c62b34d89c29095cd27d97f64a465cf | my-packages.txt | my-packages.txt | atom-beautify
atom-macros
atom-material-ui
clipboard-plus
code-links
coffee-compile
coffee-links
column-select
emmet
file-icons
flex-tool-bar
git-projects
language-javascript-semantic
linter
linter-coffeelint
linter-pylint
minimap
minimap-git-diff
minimap-linter
preview
project-manager
script
shrink-whitespace
slickedi... | atom-beautify
atom-macros
atom-material-ui
clipboard-plus
code-links
coffee-compile
coffee-links
column-select
django-templates
file-icons
flex-tool-bar
git-projects
language-javascript-semantic
linter
linter-coffeelint
linter-pylint
minimap
minimap-git-diff
minimap-linter
preview
project-manager
script
shrink-whitespa... | Remove emmet (lousy keybindings), add django-templates | Remove emmet (lousy keybindings), add django-templates
| Text | agpl-3.0 | alflanagan/atom_configuration,alflanagan/atom_configuration,alflanagan/atom_configuration | text | ## Code Before:
atom-beautify
atom-macros
atom-material-ui
clipboard-plus
code-links
coffee-compile
coffee-links
column-select
emmet
file-icons
flex-tool-bar
git-projects
language-javascript-semantic
linter
linter-coffeelint
linter-pylint
minimap
minimap-git-diff
minimap-linter
preview
project-manager
script
shrink-whi... |
f87a3e53152d98db40d5489aeeccc2d889050ba4 | examples/umd-prod/index.html | examples/umd-prod/index.html | <html>
<head>
<meta charset="UTF-8" />
<title>ReactSVG UMD Prod Example</title>
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom-server.browser... | <html>
<head>
<meta charset="UTF-8" />
<title>ReactSVG UMD Prod Example</title>
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom-server.browser... | Remove prop-types from umd prod example | Remove prop-types from umd prod example
| HTML | mit | atomic-app/react-svg | html | ## Code Before:
<html>
<head>
<meta charset="UTF-8" />
<title>ReactSVG UMD Prod Example</title>
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-do... |
914ba8af51815aef1292549250d3936fd58d0a78 | src/instr/mips/jtype/instr.cpp | src/instr/mips/jtype/instr.cpp |
namespace sasm { namespace instr { namespace mips { namespace jtype {
jtype_instr::jtype_instr(const sasm::elf::elf& elf, uint64 addr)
: mips_instr(elf, addr)
{
auto instr = elf.image.read<uint32>(addr);
_target_val = MIPS_JTYPE_EXTRACT_TARGET(instr);
}
void jtype_instr::dump_asm(std::ostream& out) const
{
... |
namespace sasm { namespace instr { namespace mips { namespace jtype {
jtype_instr::jtype_instr(const sasm::elf::elf& elf, uint64 addr)
: mips_instr(elf, addr)
{
auto instr = elf.image.read<uint32>(addr);
_target_val = MIPS_JTYPE_EXTRACT_TARGET(instr);
}
void jtype_instr::dump_asm(std::ostream& out) const
{
... | Fix a bug with J-type target address calculation. | Fix a bug with J-type target address calculation.
| C++ | bsd-2-clause | sas/sasm,sas/sasm | c++ | ## Code Before:
namespace sasm { namespace instr { namespace mips { namespace jtype {
jtype_instr::jtype_instr(const sasm::elf::elf& elf, uint64 addr)
: mips_instr(elf, addr)
{
auto instr = elf.image.read<uint32>(addr);
_target_val = MIPS_JTYPE_EXTRACT_TARGET(instr);
}
void jtype_instr::dump_asm(std::ostream&... |
96a834e72a5f18c87fe77502c04a28cd73eb131e | src/main/scala/cpup/lib/util/package.scala | src/main/scala/cpup/lib/util/package.scala | package cpup.lib
object Util {
def checkNull[T, R](obj: T, fn: (T) => R, default: R): R = {
if(obj == null) {
default
} else {
fn(obj)
}
}
} | package cpup.lib
object Util {
def checkNull[R](obj: R, default: R): R = {
if(obj == null) {
default
} else {
obj
}
}
} | Make checkNull just check for null and return a default | Make checkNull just check for null and return a default
| Scala | mit | CoderPuppy/cpup-lib | scala | ## Code Before:
package cpup.lib
object Util {
def checkNull[T, R](obj: T, fn: (T) => R, default: R): R = {
if(obj == null) {
default
} else {
fn(obj)
}
}
}
## Instruction:
Make checkNull just check for null and return a default
## Code After:
package cpup.lib
object Util {
def checkNull[R](obj: R, de... |
692141042bd21bfd7d72567bdabf080304a48474 | planner/admin.py | planner/admin.py | from django.contrib import admin
from planner.models import Route, Waypoint, RoadTrip, TripDetail
class WaypointInline(admin.StackedInline):
model = Waypoint
extra = 1
class RouteAdmin(admin.ModelAdmin):
model = Route
inlines = [WaypointInline]
class RoadTripAdmin(admin.ModelAdmin):
model = R... | from django.contrib import admin
from planner.models import Route, Waypoint, RoadTrip, TripDetail
class WaypointInline(admin.StackedInline):
model = Waypoint
extra = 1
class RouteAdmin(admin.ModelAdmin):
model = Route
inlines = [WaypointInline]
class RoadTripAdmin(admin.ModelAdmin):
def route... | Add route waypoints to list display in Admin interface | Add route waypoints to list display in Admin interface
| Python | apache-2.0 | jwarren116/RoadTrip,jwarren116/RoadTrip,jwarren116/RoadTrip | python | ## Code Before:
from django.contrib import admin
from planner.models import Route, Waypoint, RoadTrip, TripDetail
class WaypointInline(admin.StackedInline):
model = Waypoint
extra = 1
class RouteAdmin(admin.ModelAdmin):
model = Route
inlines = [WaypointInline]
class RoadTripAdmin(admin.ModelAdmin... |
9862a68bec49e16da7bbbced1af21b2f0831eb2b | README.md | README.md | Compatibility files for different plugins
|
Compatibility files for different plugins.
## Plugins
* [Simple History](https://simple-history.com/)
## Coding style
You can check if your contribution passes the styleguide by installing [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) and running the following in your Papi directory:
```
$ vendo... | Add more info to readme | Add more info to readme
| Markdown | mit | wp-papi/compatibility | markdown | ## Code Before:
Compatibility files for different plugins
## Instruction:
Add more info to readme
## Code After:
Compatibility files for different plugins.
## Plugins
* [Simple History](https://simple-history.com/)
## Coding style
You can check if your contribution passes the styleguide by installing [PHP CodeSn... |
b1a3412e78ed1267a4a2dd5a06b273e05848dc3b | fliptheswitch-app/src/main/java/com/github/michaelengland/fliptheswitch/app/FeaturesActivity.java | fliptheswitch-app/src/main/java/com/github/michaelengland/fliptheswitch/app/FeaturesActivity.java | package com.github.michaelengland.fliptheswitch.app;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import com.github.michaelengland.fliptheswitch.Feature;
import com.github.michaelengland.fliptheswitch... | package com.github.michaelengland.fliptheswitch.app;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import com.github.michaelengland.fliptheswitch.Feature;
import com.github.michaelengland.fliptheswitch... | Fix bug with features not appearing when feature app loaded before main app | Fix bug with features not appearing when feature app loaded before main app
- Trigger class initialization of generated features file before showing features app | Java | apache-2.0 | michaelengland/FlipTheSwitch-Android,michaelengland/FlipTheSwitch-Android | java | ## Code Before:
package com.github.michaelengland.fliptheswitch.app;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import com.github.michaelengland.fliptheswitch.Feature;
import com.github.michaelengla... |
10e7c1b0bf5544bf71453373f2d4ac09b35cc74b | test/test_helper.rb | test/test_helper.rb | require 'minitest/autorun'
require 'minitest/unit'
require 'did_you_mean'
begin
MiniTest::Test
rescue NameError
MiniTest::Test = MiniTest::Unit::TestCase
end
require 'did_you_mean/test_helper'
MiniTest::Test.send :include, DidYouMean::TestHelper
begin
require 'active_record'
# database
ActiveRecord::Base.... | require 'minitest/autorun'
require 'minitest/unit'
require 'did_you_mean'
begin
MiniTest::Test
rescue NameError
MiniTest::Test = MiniTest::Unit::TestCase
end
require 'did_you_mean/test_helper'
MiniTest::Test.send :include, DidYouMean::TestHelper
begin
require 'active_record'
# database
ActiveRecord::Base.... | Remove last_name column from User table | Remove last_name column from User table
We are not using it.
https://travis-ci.org/yuki24/did_you_mean/jobs/40365201#L76-L78
| Ruby | mit | Ye-Yong-Chi/did_you_mean,yuki24/did_you_mean,yui-knk/did_you_mean | ruby | ## Code Before:
require 'minitest/autorun'
require 'minitest/unit'
require 'did_you_mean'
begin
MiniTest::Test
rescue NameError
MiniTest::Test = MiniTest::Unit::TestCase
end
require 'did_you_mean/test_helper'
MiniTest::Test.send :include, DidYouMean::TestHelper
begin
require 'active_record'
# database
Act... |
cb114587a9a238dbccf7570653f69a039f264b01 | .travis.yml | .travis.yml | language: go
env:
- GIMME_OS=linux GIMME_ARCH=amd64
- GIMME_OS=linux GIMME_ARCH=arm
- GIMME_OS=linux GIMME_ARCH=arm64
- GIMME_OS=darwin GIMME_ARCH=amd64
install:
- go get -d -v ./...
script:
- go build -v ./...
- zip git-get-${GIMME_OS}-${GIMME_ARCH}.zip git-get
- tar czvf git-get-${GIMME_OS}-${GIMME... | language: go
env:
- GIMME_OS=linux GIMME_ARCH=amd64
- GIMME_OS=linux GIMME_ARCH=arm
- GIMME_OS=linux GIMME_ARCH=arm64
- GIMME_OS=darwin GIMME_ARCH=amd64
install:
- go get -d -v ./...
script:
- go build -v ./...
- zip git-get-${GIMME_OS}-${GIMME_ARCH}.zip git-get
- tar czvf git-get-${GIMME_OS}-${GIMME... | Add tag to packaged output name | Add tag to packaged output name
| YAML | mit | homburg/git-get,homburg/git-get | yaml | ## Code Before:
language: go
env:
- GIMME_OS=linux GIMME_ARCH=amd64
- GIMME_OS=linux GIMME_ARCH=arm
- GIMME_OS=linux GIMME_ARCH=arm64
- GIMME_OS=darwin GIMME_ARCH=amd64
install:
- go get -d -v ./...
script:
- go build -v ./...
- zip git-get-${GIMME_OS}-${GIMME_ARCH}.zip git-get
- tar czvf git-get-${G... |
ead26026c73c7b802ddb3d906f073751e4335d46 | app/services/ajax.js | app/services/ajax.js | import Ember from 'ember';
import AjaxService from 'ember-ajax/services/ajax';
const {
inject,
computed
} = Ember;
export default AjaxService.extend({
auth: inject.service(),
contentType: 'application/json; charset=utf-8',
trustedHosts: [
/outlook.office.com/,
/graph.microsoft.co... | import Ember from 'ember';
import AjaxService from 'ember-ajax/services/ajax';
const {
inject,
computed
} = Ember;
export default AjaxService.extend({
auth: inject.service(),
contentType: 'application/json; charset=utf-8',
trustedHosts: [
/outlook.office.com/,
/graph.microsoft.co... | Add purecloud hosts as trusted | Add purecloud hosts as trusted
| JavaScript | mit | MyPureCloud/skype-for-business-purecloud-app,MyPureCloud/skype-for-business-purecloud-app | javascript | ## Code Before:
import Ember from 'ember';
import AjaxService from 'ember-ajax/services/ajax';
const {
inject,
computed
} = Ember;
export default AjaxService.extend({
auth: inject.service(),
contentType: 'application/json; charset=utf-8',
trustedHosts: [
/outlook.office.com/,
/gr... |
c91f0a8f817943d20cc47be3a56e49bcf38209c8 | static/css/styles.css | static/css/styles.css | @import url(http://fonts.googleapis.com/css?family=Kite+One);
body {
font-family: 'Kite One', sans-serif;
}
.main {
padding: 20px 40px;
margin: 10px 30px;
box-shadow: 1px 1px 2px black;
border-radius: 3px;
background-color: tomato;
}
| body {
font-family: sans-serif;
}
.main {
padding: 20px 40px;
margin: 10px 30px;
box-shadow: 1px 1px 2px black;
border-radius: 3px;
background-color: tomato;
}
input {
width: 100%;
}
| Remove external font dependency to speed up loading | Remove external font dependency to speed up loading
| CSS | mit | vrde/morgenjs,vrde/morgenjs | css | ## Code Before:
@import url(http://fonts.googleapis.com/css?family=Kite+One);
body {
font-family: 'Kite One', sans-serif;
}
.main {
padding: 20px 40px;
margin: 10px 30px;
box-shadow: 1px 1px 2px black;
border-radius: 3px;
background-color: tomato;
}
## Instruction:
Remove external font depen... |
57f3f2b2a877446d141efd96daab2512f509df34 | build_av1_analyzer.sh | build_av1_analyzer.sh |
set -e
echo Building Analyzer
rm -rf asm/
mkdir -p asm
pushd asm
if [[ $BUILD_OPTIONS == *"--enable"* ]]; then
#legacy configure
popd
make distclean || true
pushd asm
emconfigure ../configure --disable-multithread --disable-runtime-cpu-detect --target=generic-gnu --enable-accounting --enable-inspection --d... |
set -e
echo Building Analyzer
rm -rf asm/
mkdir -p asm
pushd asm
if [[ $BUILD_OPTIONS == *"--enable"* ]]; then
#legacy configure
popd
make distclean || true
pushd asm
emconfigure ../configure --disable-multithread --disable-runtime-cpu-detect --target=generic-gnu --enable-accounting --enable-inspection --d... | Change cmake options for analyzer build. | Change cmake options for analyzer build.
| Shell | mit | tdaede/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy | shell | ## Code Before:
set -e
echo Building Analyzer
rm -rf asm/
mkdir -p asm
pushd asm
if [[ $BUILD_OPTIONS == *"--enable"* ]]; then
#legacy configure
popd
make distclean || true
pushd asm
emconfigure ../configure --disable-multithread --disable-runtime-cpu-detect --target=generic-gnu --enable-accounting --enabl... |
6d01858cab9cb0ca104428b0b246644ab9a6c3ac | HISTORY.txt | HISTORY.txt | Version 1.0.1:
- Added support for Arel 2, which is required by ActiveRecord >= 3.0.3
Version 1.0.0:
- Added #to_sym for generated enumeration class. #value is deprecated.
- Raises ArgumentError when assigning, or querying, with a symbol that is
not part of the enumeration
- A value of nil in underlying attribute r... | Version 1.0.2:
- No code changes
- Fixed problem with gem dependencies
Version 1.0.1:
- Added support for Arel 2, which is required by ActiveRecord >= 3.0.3
Version 1.0.0:
- Added #to_sym for generated enumeration class. #value is deprecated.
- Raises ArgumentError when assigning, or querying, with a symbol that is
... | Add history entry for 1.0.2 | Add history entry for 1.0.2
| Text | mit | gregspurrier/has_enumeration,gregspurrier/has_enumeration | text | ## Code Before:
Version 1.0.1:
- Added support for Arel 2, which is required by ActiveRecord >= 3.0.3
Version 1.0.0:
- Added #to_sym for generated enumeration class. #value is deprecated.
- Raises ArgumentError when assigning, or querying, with a symbol that is
not part of the enumeration
- A value of nil in underl... |
017ea74cccc6b541ec3dd530846adbb569abf78f | package.json | package.json | {
"name": "cjh-tree",
"author": "Christy Haragan",
"version": "0.0.1",
"dependencies": {
"underscore": "~1.6.0"
},
"devDependencies": {
"mocha": "~1.20.0",
"sinon": "~1.10.2",
"sinon-chai": "~2.5.0",
"chai": "~1.9.1"
},
"engines": {
"node": ">=0.10.0"
}
}
| {
"name": "cjh-tree",
"author": "Christy Haragan",
"version": "0.0.1",
"dependencies": {
"underscore": "~1.6.0"
},
"devDependencies": {
"mocha": "~1.20.0",
"sinon": "~1.10.2",
"sinon-chai": "~2.5.0",
"chai": "~1.9.1"
},
"engines": {
"node": ">=0.10.0"
},
"main": "./lib/index.... | Add index.js as main entry point | Add index.js as main entry point
| JSON | mit | christyharagan/cjh-tree | json | ## Code Before:
{
"name": "cjh-tree",
"author": "Christy Haragan",
"version": "0.0.1",
"dependencies": {
"underscore": "~1.6.0"
},
"devDependencies": {
"mocha": "~1.20.0",
"sinon": "~1.10.2",
"sinon-chai": "~2.5.0",
"chai": "~1.9.1"
},
"engines": {
"node": ">=0.10.0"
}
}
## In... |
5842f88d26b9978f737a29ee264c9b8b1a55786f | .travis.yml | .travis.yml | language: go
go:
- 1.7
script:
- go test -v ./...
| language: go
go:
- 1.7
install:
# Add Godeps dependencies to GOPATH and PATH
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
- npm install
script:
- go test -v ./...
after_success:
- npm run build
| Add godeps dependencies and run npm scripts | Add godeps dependencies and run npm scripts
| YAML | mit | maddevsio/screen-monitoring,maddevsio/screen-monitoring,maddevsio/screen-monitoring,maddevsio/screen-monitoring | yaml | ## Code Before:
language: go
go:
- 1.7
script:
- go test -v ./...
## Instruction:
Add godeps dependencies and run npm scripts
## Code After:
language: go
go:
- 1.7
install:
# Add Godeps dependencies to GOPATH and PATH
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
- export PATH="${TRA... |
a6ec112e66208160461baa2489ef00b38e225380 | shell/.zshrc.d/java.zsh | shell/.zshrc.d/java.zsh | JRE=$(readlink -f $(which java))
JDK=$(readlink -f $(which javac))
if [ -f "$JRE" ]; then
JAVA_HOME=$JRE
fi
if [ -f "$JDK" ]; then
JAVA_HOME=$JDK
fi
export JAVA_HOME=$(cd $(dirname "$JAVA_HOME")/.. && pwd -P)
| if [ ! -d "$HOME/.sdkman" ]; then
curl -s "https://get.sdkman.io" | bash
fi
source "$HOME/.sdkman/bin/sdkman-init.sh"
# Set JAVA_HOME
JRE=$(readlink -f $(which java))
JDK=$(readlink -f $(which javac))
if [ -f "$JRE" ]; then
JAVA_HOME=$JRE
fi
if [ -f "$JDK" ]; then
JAVA_HOME=$JDK
fi
export JAVA_HOME=$(c... | Add sdkman to manage jdks | Add sdkman to manage jdks
| Shell | bsd-3-clause | crossing/dots | shell | ## Code Before:
JRE=$(readlink -f $(which java))
JDK=$(readlink -f $(which javac))
if [ -f "$JRE" ]; then
JAVA_HOME=$JRE
fi
if [ -f "$JDK" ]; then
JAVA_HOME=$JDK
fi
export JAVA_HOME=$(cd $(dirname "$JAVA_HOME")/.. && pwd -P)
## Instruction:
Add sdkman to manage jdks
## Code After:
if [ ! -d "$HOME/.sdkman... |
f611aeddab1b5510669080cbab1b8692e80764c4 | src/lib/searchengine/graph.js | src/lib/searchengine/graph.js | var environment = require('../environment'),
offload = require('../../graphworker/standalone');
module.exports.search = function (options, recordcb, facetcb) {
if (typeof options.query !== 'undefined') {
if (typeof options.query.plan === 'undefined') {
options.query.plan = environment.query... | var environment = require('../environment'),
offload = require('../../graphworker/standalone');
module.exports.search = function (options, recordcb, facetcb) {
if (typeof options.query !== 'undefined') {
options.query.plan = environment.querybuilder.build(options.query.ast);
options.query.offse... | Rebuild the query every time it's needed so that preseeded results display | Rebuild the query every time it's needed so that preseeded results display
| JavaScript | agpl-3.0 | jcamins/biblionarrator,jcamins/biblionarrator | javascript | ## Code Before:
var environment = require('../environment'),
offload = require('../../graphworker/standalone');
module.exports.search = function (options, recordcb, facetcb) {
if (typeof options.query !== 'undefined') {
if (typeof options.query.plan === 'undefined') {
options.query.plan = e... |
540d3b0ace9e01c8267250a10298214be6763728 | src/test/resources/org/geoscript/js/tests/all.js | src/test/resources/org/geoscript/js/tests/all.js | exports["test: geoscript"] = require("./test_geoscript");
if (require.main == module || require.main == module.id) {
system.exit(require("test").run(exports));
} | var Context = Packages.org.mozilla.javascript.Context;
var GeoScriptWrapFactory = Packages.org.geoscript.js.GeoScriptWrapFactory;
var cx = Context.getCurrentContext();
var wrapFactory = new GeoScriptWrapFactory();
wrapFactory.setJavaPrimitiveWrap(false);
cx.setWrapFactory(wrapFactory);
exports["test: geoscript"] = re... | Use wrap factory in tests. | Use wrap factory in tests.
| JavaScript | mit | jericks/geoscript-js,geoscript/geoscript-js,geoscript/geoscript-js,griever989/geoscript-js,jericks/geoscript-js,griever989/geoscript-js,griever989/geoscript-js,jericks/geoscript-js | javascript | ## Code Before:
exports["test: geoscript"] = require("./test_geoscript");
if (require.main == module || require.main == module.id) {
system.exit(require("test").run(exports));
}
## Instruction:
Use wrap factory in tests.
## Code After:
var Context = Packages.org.mozilla.javascript.Context;
var GeoScriptWrapFactor... |
454a3b5dfaaf03eef40d7d9109479e40be47cffc | build.properties | build.properties | gc.username=set-gc-username-in-local-build-properties
gc.password=set-gc-password-in-local-build-properties
| iui.version=0.12
# Google code username/password should be set in local.build.properties
# local.build.properties is set to be "ignored" by SVN
gc.username=set-gc-username-in-local-build-properties
gc.password=set-gc-password-in-local-build-properties
| Set version number for release 0.12 | Set version number for release 0.12
| INI | bsd-3-clause | defunkt/iui,defunkt/iui | ini | ## Code Before:
gc.username=set-gc-username-in-local-build-properties
gc.password=set-gc-password-in-local-build-properties
## Instruction:
Set version number for release 0.12
## Code After:
iui.version=0.12
# Google code username/password should be set in local.build.properties
# local.build.properties is set to b... |
e47427a368bf38eca0f770efa30a251ec70aa458 | app/assets/stylesheets/frontend/global/_aspect-ratio.scss | app/assets/stylesheets/frontend/global/_aspect-ratio.scss | // This class should be used on an element that wraps an image to prevent jank
// (aka that thing where the page jumps around because the image has loaded and
// now takes up space). For much more information (and a couple of other
// techniques) take a look at https://css-tricks.com/aspect-ratio-boxes/.
.aspect-ratio-... | // This class should be used on an element that wraps an image to prevent jank
// (aka that thing where the page jumps around because the image has loaded and
// now takes up space). For much more information (and a couple of other
// techniques) take a look at https://css-tricks.com/aspect-ratio-boxes/.
.aspect-ratio-... | Remove grey background from aspect-ratio class | Remove grey background from aspect-ratio class
| SCSS | mit | alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall | scss | ## Code Before:
// This class should be used on an element that wraps an image to prevent jank
// (aka that thing where the page jumps around because the image has loaded and
// now takes up space). For much more information (and a couple of other
// techniques) take a look at https://css-tricks.com/aspect-ratio-boxes/... |
b6fa7b01906bcdd9cddf424d2e8d9726c50d9136 | README.md | README.md | frequency
=========
A library for frequency analysis of UTF-8 encoded text.
You feed the analyzer a corpus of text, be it English, source code, etc.
You can then score strings or byte arrays of content on a scale 0 - 1, depending on
how close they match the frequency and character occurance of the original corpus.
W... | frequency
=========
A library for frequency analysis of UTF-8 encoded text.
You feed the analyzer a corpus of text, be it English, source code, etc.
You can then score strings or byte arrays of content on a scale 0 - 1, depending on
how close they match the frequency and character occurance of the original corpus.
W... | Add a link to an example program | Add a link to an example program
| Markdown | mit | solvip/frequency | markdown | ## Code Before:
frequency
=========
A library for frequency analysis of UTF-8 encoded text.
You feed the analyzer a corpus of text, be it English, source code, etc.
You can then score strings or byte arrays of content on a scale 0 - 1, depending on
how close they match the frequency and character occurance of the ori... |
ce4ee9558ed0c53e03cb31627c597d5388b56ffa | docs/examples/compute/cloudstack/start_interactive_shell_ikoula.py | docs/examples/compute/cloudstack/start_interactive_shell_ikoula.py | import os
from IPython.terminal.embed import InteractiveShellEmbed
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security as sec
sec.VERIFY_SSL_CERT = False
apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')
Driver = get_d... | import os
from IPython.terminal.embed import InteractiveShellEmbed
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')
Driver = get_driver(Provider.IKOULA)
conn = Driver(key=apikey, secret=secr... | Update example, no need to disable cert validation. | docs: Update example, no need to disable cert validation.
| Python | apache-2.0 | briancurtin/libcloud,Cloud-Elasticity-Services/as-libcloud,niteoweb/libcloud,lochiiconnectivity/libcloud,wrigri/libcloud,apache/libcloud,JamesGuthrie/libcloud,atsaki/libcloud,andrewsomething/libcloud,wido/libcloud,cryptickp/libcloud,Itxaka/libcloud,iPlantCollaborativeOpenSource/libcloud,mistio/libcloud,sahildua2305/lib... | python | ## Code Before:
import os
from IPython.terminal.embed import InteractiveShellEmbed
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security as sec
sec.VERIFY_SSL_CERT = False
apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')... |
1f37e51e7119c2e4b2847c015254a935839c5341 | tests/MyTestSuiteSSH.hcl | tests/MyTestSuiteSSH.hcl | name = "MyTestSuite"
testcase {
name = "ssh foo status"
step {
type = "ssh"
host = "localhost"
command = "echo foo"
assertions = [
"result.code ShouldEqual 0",
"result.timeseconds ShouldBeLessThan 10",
]
}
}
| name = "MyTestSuite"
testcase {
name = "ssh foo status"
step {
type = "ssh"
host = "localhost"
command = "echo foo"
assertions = [
"result.code ShouldEqual 0",
"result.timeseconds ShouldBeLessThan 10",
]
}
step {
type = "ssh"
host = "localhost"
command = "echo bar... | Enhance the HCL example to be a bit more rich. | Enhance the HCL example to be a bit more rich.
Show how to have:
- Two steps in a test case
- Two test cases
All in the same test suite.
| HCL | bsd-3-clause | runabove/venom,runabove/venom | hcl | ## Code Before:
name = "MyTestSuite"
testcase {
name = "ssh foo status"
step {
type = "ssh"
host = "localhost"
command = "echo foo"
assertions = [
"result.code ShouldEqual 0",
"result.timeseconds ShouldBeLessThan 10",
]
}
}
## Instruction:
Enhance the HCL example to be a bit mo... |
451951b311ef6e2bb76348a116dc0465f735348e | pytest_watch/config.py | pytest_watch/config.py | try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
import pytest
CLI_OPTION_PREFIX = '--'
class CollectConfig(object):
"""
A pytest plugin to gets the configuration file.
"""
def __init__(self):
self.path = None
def pytest_cmdli... | try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
import pytest
CLI_OPTION_PREFIX = '--'
class CollectConfig(object):
"""
A pytest plugin to gets the configuration file.
"""
def __init__(self):
self.path = None
def pytest_cmdli... | Fix running when pytest.ini is not present. | Fix running when pytest.ini is not present.
| Python | mit | joeyespo/pytest-watch | python | ## Code Before:
try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
import pytest
CLI_OPTION_PREFIX = '--'
class CollectConfig(object):
"""
A pytest plugin to gets the configuration file.
"""
def __init__(self):
self.path = None
... |
51e8f51f064b82777798856318e9cd8ffe097efc | install.sh | install.sh | find "$(dirname "$0")" -type d -depth 1 -name "[^.]*" | while read -r program;
do
# Stow (install/link) all programs.
stow "$(basename "$program")"
done
| find "$(dirname "$0")" -type d -depth 1 -name "[^.]*" | while read -r program;
do
# Stow (install/link) all programs.
stow "$(basename "$program")"
done
# Add the Mail directory if it doesn't already exist.
mkdir -p ~/Mail
| Create maildir if it doesn't exist | Create maildir if it doesn't exist
| Shell | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles | shell | ## Code Before:
find "$(dirname "$0")" -type d -depth 1 -name "[^.]*" | while read -r program;
do
# Stow (install/link) all programs.
stow "$(basename "$program")"
done
## Instruction:
Create maildir if it doesn't exist
## Code After:
find "$(dirname "$0")" -type d -depth 1 -name "[^.]*" | while read -r program;
... |
65701ccd46dd2d0f86fee8ccf03e73c9dbf5580d | client/templates/results/chart/chart.js.coffee | client/templates/results/chart/chart.js.coffee | Template.chart.helpers
nonNumberDataColumnSpec: ->
for spec in @header.slice(1)
if spec.chartType isnt "number"
return spec
reactivityHack: ->
_.defer =>
$chart = $(".chart[data-id='" + @_id + "']")
$chart.empty()
$chartContainer = $("<div class='chart-container'></div>")
... | Template.chart.helpers
nonNumberDataColumnSpec: ->
for spec in @header.slice(1)
if spec.chartType isnt "number"
return spec
reactivityHack: ->
_.defer =>
$chart = $(".chart[data-id='" + @_id + "']")
$chart.empty()
$chartContainer = $("<div class='chart-container'></div>")
... | Remove percentage values from chart output | Remove percentage values from chart output
| CoffeeScript | agpl-3.0 | rbouqueau/FlowBAT,rbouqueau/FlowBAT,rbouqueau/FlowBAT,chrissanders/FlowBAT,chrissanders/FlowBAT,chrissanders/FlowBAT | coffeescript | ## Code Before:
Template.chart.helpers
nonNumberDataColumnSpec: ->
for spec in @header.slice(1)
if spec.chartType isnt "number"
return spec
reactivityHack: ->
_.defer =>
$chart = $(".chart[data-id='" + @_id + "']")
$chart.empty()
$chartContainer = $("<div class='chart-contain... |
c558eb8f4fddaea037bf254b542c9909e1e8bded | views/templates/language-selector.jade | views/templates/language-selector.jade |
each item, index in items
if index > 0
span.separator= ' | '
a.external-link.language(href=item.link data-language!=item.code, tabindex="1")
= item.name
|
h2.sr-only= t('personalisation.language')
each item, index in items
if index > 0
span.separator= ' | '
a.external-link.language(href=item.link data-language!=item.code, tabindex="1")
= item.name
| Add screenreader h2 title to language selector | Add screenreader h2 title to language selector
| Jade | agpl-3.0 | City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap | jade | ## Code Before:
each item, index in items
if index > 0
span.separator= ' | '
a.external-link.language(href=item.link data-language!=item.code, tabindex="1")
= item.name
## Instruction:
Add screenreader h2 title to language selector
## Code After:
h2.sr-only= t('personalisation.language')
each item, inde... |
a3768bc8d28bcfb4157ead7f07e524cee6620d07 | byceps/blueprints/common/style_guide/templates/common/style_guide/sections/_forms.html | byceps/blueprints/common/style_guide/templates/common/style_guide/sections/_forms.html | {%- from 'macros/forms.html' import form_buttons %}
{%- set example_form -%}
<form>
<fieldset>
<div class="form-field">
<label for="field1">Field #1</label>
<input id="field1" name="field1">
</div>
<div class="form-field error">
<label for="field2">Field #2</label>
<input id="... | {%- from 'macros/forms.html' import form_buttons %}
{%- set example_form -%}
<form>
<fieldset>
<div class="form-row">
<label for="field1">Field #1</label>
<input id="field1" name="field1">
</div>
<div class="form-row error">
<label for="field2">Field #2</label>
<input id="fiel... | Adjust form example in styleguide to new CSS class names | Adjust form example in styleguide to new CSS class names
| HTML | bsd-3-clause | homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps | html | ## Code Before:
{%- from 'macros/forms.html' import form_buttons %}
{%- set example_form -%}
<form>
<fieldset>
<div class="form-field">
<label for="field1">Field #1</label>
<input id="field1" name="field1">
</div>
<div class="form-field error">
<label for="field2">Field #2</label>
... |
d74908f5acb5c1a88965ed086d41435e0041d85b | pyluos/modules/l0_dc_motor.py | pyluos/modules/l0_dc_motor.py | from __future__ import division
from .module import Module
class DCMotor(object):
def __init__(self, name, delegate):
self._name = name
self._delegate = delegate
self._speed = None
@property
def name(self):
return self._name
@property
def speed(self):
sel... | from __future__ import division
from .module import Module
class DCMotor(object):
def __init__(self, name, delegate):
self._name = name
self._delegate = delegate
self._speed = None
@property
def name(self):
return self._name
@property
def speed(self):
sel... | Fix l0 dc field name. | Fix l0 dc field name.
| Python | mit | pollen/pyrobus | python | ## Code Before:
from __future__ import division
from .module import Module
class DCMotor(object):
def __init__(self, name, delegate):
self._name = name
self._delegate = delegate
self._speed = None
@property
def name(self):
return self._name
@property
def speed(se... |
5c8ceb57a7290dc5f2094ebeff01048fc94f1e0c | e2e/integrations/delete-integrations.feature | e2e/integrations/delete-integrations.feature | @integrations-delete
Feature: Test to verify delete action
https://issues.jboss.org/browse/IPAAS-290
Scenario: Create integration
When "Camilla" navigates to the "Home" page
And clicks on the "Create Integration" button to create a new integration.
Then she is presented with a visual integration editor... | @integrations-delete
Feature: Test to verify delete action
https://issues.jboss.org/browse/IPAAS-290
Scenario: Create integration draft and delete it
When "Camilla" navigates to the "Home" page
And clicks on the "Create Integration" button to create a new integration.
Then she is presented with a visua... | Create integration for delete as draft | Create integration for delete as draft
| Cucumber | apache-2.0 | kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client | cucumber | ## Code Before:
@integrations-delete
Feature: Test to verify delete action
https://issues.jboss.org/browse/IPAAS-290
Scenario: Create integration
When "Camilla" navigates to the "Home" page
And clicks on the "Create Integration" button to create a new integration.
Then she is presented with a visual in... |
9028adeb8c5b00fc8e6fed04f05907119043d2c9 | ext/extra/sheet.php | ext/extra/sheet.php | <?php
error_reporting('E_ALL');
dl('php_gtk.so');
$window = &new GtkWindow(GTK_WINDOW_TOPLEVEL);
$scrolledwindow = &new GtkScrolledWindow();
$sheet = &new GtkSheet(400,400,"test");
$scrolledwindow->add($sheet);
$window->add($scrolledwindow);
//$scrolledwindow->show();
//$sheet->show();
$window->show_al... | <?php
error_reporting('E_ALL');
if (!extension_loaded('gtk')) {
dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);
}
$window = &new GtkWindow(GTK_WINDOW_TOPLEVEL);
$scrolledwindow = &new GtkScrolledWindow();
$sheet = &new GtkSheet(400,400,"test");
$scrolledwindow->add($sheet);
$window->add($scrolledwindow);
//$scrolledw... | Allow loading of gtk on Win32 | Allow loading of gtk on Win32
| PHP | lgpl-2.1 | ewiger/php-gtk,ewiger/php-gtk,ewiger/php-gtk,ewiger/php-gtk,ewiger/php-gtk,ewiger/php-gtk | php | ## Code Before:
<?php
error_reporting('E_ALL');
dl('php_gtk.so');
$window = &new GtkWindow(GTK_WINDOW_TOPLEVEL);
$scrolledwindow = &new GtkScrolledWindow();
$sheet = &new GtkSheet(400,400,"test");
$scrolledwindow->add($sheet);
$window->add($scrolledwindow);
//$scrolledwindow->show();
//$sheet->show();
... |
a9bf8a35794c94c6033f102b500ea10e78755513 | client/js/decompress.js | client/js/decompress.js | const continuationBit = 1 << 7;
const lowBitsMask = ~continuationBit & 0xff;
/**
* @template {ArrayBufferView} T
*
* @param {ReadableStream<Uint8Array>} stream
* @param {number} length of the returned ArrayBufferView
* @param {new (length: number) => T} Type
*
* @returns {T}
*/
export async function decompress... | const continuationBit = 1 << 7;
const lowBitsMask = ~continuationBit & 0xff;
/**
* Consume a readable stream of unsigned LEB128 encoded bytes, writing the
* results into the provided buffer
*
* @template {ArrayBufferView} T
* @param {ReadableStream<Uint8Array>} stream A stream of concatenated unsigned
* LEB128 e... | Bring your own buffer for leb128 | Bring your own buffer for leb128
| JavaScript | mit | Alexendoo/utf,Alexendoo/utf,Alexendoo/utf,Alexendoo/utf | javascript | ## Code Before:
const continuationBit = 1 << 7;
const lowBitsMask = ~continuationBit & 0xff;
/**
* @template {ArrayBufferView} T
*
* @param {ReadableStream<Uint8Array>} stream
* @param {number} length of the returned ArrayBufferView
* @param {new (length: number) => T} Type
*
* @returns {T}
*/
export async fun... |
41c876e10b25283aaff492de37a97cc21d80b0f2 | Code/Boot/Phase2/fill.lisp | Code/Boot/Phase2/fill.lisp | (cl:in-package #:sicl-boot-phase2)
(defun ld (filename environment)
(format *trace-output* "Loading file ~a~%" filename)
(finish-output *trace-output*)
(sicl-extrinsic-environment:load-source-with-environments
(asdf:system-relative-pathname :sicl-boot-phase2 filename)
(sicl-boot-phase1:compilation-environm... | (cl:in-package #:sicl-boot-phase2)
(defun ld (filename environment)
(format *trace-output* "Loading file ~a~%" filename)
(finish-output *trace-output*)
(sicl-extrinsic-environment:load-source-with-environments
(asdf:system-relative-pathname :sicl-boot-phase2 filename)
(sicl-boot-phase1:compilation-environm... | Load a file containing the definition of the generic function CLASS-DIRECT-SUPERCLASSES. | Load a file containing the definition of the generic function CLASS-DIRECT-SUPERCLASSES.
| Common Lisp | bsd-2-clause | clasp-developers/SICL,vtomole/SICL,vtomole/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL | common-lisp | ## Code Before:
(cl:in-package #:sicl-boot-phase2)
(defun ld (filename environment)
(format *trace-output* "Loading file ~a~%" filename)
(finish-output *trace-output*)
(sicl-extrinsic-environment:load-source-with-environments
(asdf:system-relative-pathname :sicl-boot-phase2 filename)
(sicl-boot-phase1:comp... |
e0735f6278c7c708745feb47fe316d33d108e9d0 | lib/rspec/rake.rb | lib/rspec/rake.rb | require 'rspec/rake/version'
require 'rspec/rake/example_group'
RSpec.configure do |config|
config.include RSpec::Rake::ExampleGroup,
:type => :task,
:example_group => lambda { |example_group, metadata|
metadata[:type].nil? && %r{spec/tasks}.match(example_group[:file_path])
}
end
| require 'rspec/rake/version'
require 'rspec/rake/example_group'
RSpec.configure do |config|
config.include RSpec::Rake::ExampleGroup,
type: :task,
file_path: /\bspec\/tasks\//
end
| Update to satisfy deprecation warning | Update to satisfy deprecation warning
| Ruby | mit | stas/rspec-rake | ruby | ## Code Before:
require 'rspec/rake/version'
require 'rspec/rake/example_group'
RSpec.configure do |config|
config.include RSpec::Rake::ExampleGroup,
:type => :task,
:example_group => lambda { |example_group, metadata|
metadata[:type].nil? && %r{spec/tasks}.match(example_group[:file_path])
}
end
#... |
ca71b9753902691bf2e9a4b335d7d46daf5b7d2d | ansible/roles/monit/tasks/main.yml | ansible/roles/monit/tasks/main.yml | ---
- name: Install monit
apt:
name: monit=1:5.16-2
state: present
force: true
become: true
- name: Copy sudoers file so that deploy can use monit without entering password.
copy:
src: sudoers-monit
dest: /etc/sudoers.d/monit
become: true
- name: Copy monit config t... | ---
- name: Install monit
apt:
name: monit=1:5.16-2
state: present
force: true
become: true
tags:
- monit
- name: Copy sudoers file so that deploy can use monit without entering password.
copy:
src: sudoers-monit
dest: /etc/sudoers.d/monit
become: true
ta... | Add 'monit' tag to monit tasks | Add 'monit' tag to monit tasks
| YAML | mit | tenforwardconsulting/subspace,tenforwardconsulting/subspace,tenforwardconsulting/subspace | yaml | ## Code Before:
---
- name: Install monit
apt:
name: monit=1:5.16-2
state: present
force: true
become: true
- name: Copy sudoers file so that deploy can use monit without entering password.
copy:
src: sudoers-monit
dest: /etc/sudoers.d/monit
become: true
- name: Cop... |
03f91b9d5c497edea2cd96ab44ac89a31c8c4753 | src/start/global.php | src/start/global.php | <?php
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Event;
use Orchestra\Support\Messages;
use Orchestra\Foundation\Services\UserMetaRepository;
App::make('orchestra.memory')->extend('user', function ($app, $name)
{
return new UserMetaRepository($app, $name);
});
/*
|---------------------------... | <?php
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Event;
use Orchestra\Support\Messages;
use Orchestra\Foundation\Services\UserMetaRepository;
App::make('orchestra.memory')->extend('user', function ($app, $name)
{
return new UserMetaRepository($app, $name);
});
/*
|---------------------------... | Improve safe mode notification using the new Orchestra\Messages::extend() API | Improve safe mode notification using the new Orchestra\Messages::extend() API
Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
| PHP | mit | orchestral/foundation,orchestral/foundation,orchestral/foundation,stevebauman/foundation | php | ## Code Before:
<?php
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Event;
use Orchestra\Support\Messages;
use Orchestra\Foundation\Services\UserMetaRepository;
App::make('orchestra.memory')->extend('user', function ($app, $name)
{
return new UserMetaRepository($app, $name);
});
/*
|-----------... |
8953d4a4b80d93a4b57d1becf59c34c65fffb47f | swarm/index.md | swarm/index.md | ---
description: 'Swarm: a Docker-native clustering system'
keywords: docker, swarm, clustering
title: Docker Swarm
---
* [Docker Swarm overview](overview.md)
* [How to get Docker Swarm](get-swarm.md)
* [Evaluate Swarm in a sandbox](install-w-machine.md)
* [Plan for Swarm in production](plan-for-production.md)
* [Bui... | ---
description: 'Swarm: a Docker-native clustering system'
keywords: docker, swarm, clustering
title: Docker Swarm
---
This section refers to standalone Docker Swarm. If you use Docker 1.12 or higher,
[Swarm mode](../engine/swarm/index.md) is integrated with Docker Engine. Most
users should use the integrated Swarm ... | Add disclaimer about standalone swarm in 1.12+ | Add disclaimer about standalone swarm in 1.12+
Fixes #559
| Markdown | apache-2.0 | phiroict/docker,jzwlqx/denverdino.github.io,jzwlqx/denverdino.github.io,jzwlqx/denverdino.github.io,johnstep/docker.github.io,anweiss/docker.github.io,gdevillele/docker.github.io,londoncalling/docker.github.io,shubheksha/docker.github.io,BSWANG/denverdino.github.io,londoncalling/docker.github.io,menglingwei/denverdino.... | markdown | ## Code Before:
---
description: 'Swarm: a Docker-native clustering system'
keywords: docker, swarm, clustering
title: Docker Swarm
---
* [Docker Swarm overview](overview.md)
* [How to get Docker Swarm](get-swarm.md)
* [Evaluate Swarm in a sandbox](install-w-machine.md)
* [Plan for Swarm in production](plan-for-produ... |
c8a31b08e4903fef82749dc9136254567c501f6d | README.md | README.md | Welcome to Rice Rocks for the web!
This project is an adaptation of a project that I did for Coursera's
An Introduction to Interactive Programming in Python (Part 2)
It's an asteroids(ish) clone. Yes, another Asteroids clone! Behold! :D
## Quickstart
* Left: Turn Left
* Right: Turn Right
* Up: Thrust
* Spacebar: Sh... | Welcome to Rice Rocks for the web!
This project is an adaptation of a project that I did for Coursera's
An Introduction to Interactive Programming in Python (Part 2)
It's an asteroids(ish) clone. Yes, another Asteroids clone! Behold! :D
## Quickstart
* Left: Turn Left
* Right: Turn Right
* Up: Thrust
* Spacebar: Sh... | Add credits to readme file | Add credits to readme file
| Markdown | apache-2.0 | rwrountree/frontend-nanodegree-arcade-game,rwrountree/frontend-nanodegree-arcade-game,rwrountree/frontend-nanodegree-arcade-game | markdown | ## Code Before:
Welcome to Rice Rocks for the web!
This project is an adaptation of a project that I did for Coursera's
An Introduction to Interactive Programming in Python (Part 2)
It's an asteroids(ish) clone. Yes, another Asteroids clone! Behold! :D
## Quickstart
* Left: Turn Left
* Right: Turn Right
* Up: Thrus... |
6b1a28e6bc52a667f9cc22a23928097b0cea1eab | app/index.html | app/index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mobile Security Dashboard</title>
<meta name="description" content="Sign in to scan a mobile app and access VAPT results.">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mobile Security Dashboard</title>
<meta name="description" content="Sign in to scan a mobile app and access VAPT results.">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | Remove unused fonts - Anonymous pro & Lato | Remove unused fonts - Anonymous pro & Lato
| HTML | agpl-3.0 | appknox/irene,appknox/irene,appknox/irene | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mobile Security Dashboard</title>
<meta name="description" content="Sign in to scan a mobile app and access VAPT results.">
<meta name="viewport" content="width=device-width, init... |
841bed141f734c8d3c2b8a125a133ad0829a4ab8 | src/style.css | src/style.css | body {
width: 540px;
}
.navbar-default {
background-color: #3d3d3d;
}
.input-group-addon:first-child {
background-color: #fff;
}
.navbar-header {
padding-right: 8px;
vertical-align: middle;
line-height: 45px;
}
.nav-link-btn {
color: #eee;
-webkit-app-region: no-drag;
font-size: 22px;
margin-lef... | body {
width: 540px;
}
.navbar-default {
background-color: #3d3d3d;
}
.input-group-addon:first-child {
background-color: #fff;
}
.navbar-header {
padding-right: 8px;
vertical-align: middle;
line-height: 45px;
}
.nav-link-btn {
color: #eee;
-webkit-app-region: no-drag;
font-size: 22px;
margin-lef... | Update width of password story | Update width of password story
| CSS | apache-2.0 | Dreae/pegasus,Dreae/pegasus | css | ## Code Before:
body {
width: 540px;
}
.navbar-default {
background-color: #3d3d3d;
}
.input-group-addon:first-child {
background-color: #fff;
}
.navbar-header {
padding-right: 8px;
vertical-align: middle;
line-height: 45px;
}
.nav-link-btn {
color: #eee;
-webkit-app-region: no-drag;
font-size: 22... |
4f24071185140ef98167e470dbac97dcdfc65b90 | via/requests_tools/error_handling.py | via/requests_tools/error_handling.py | """Helpers for capturing requests exceptions."""
from functools import wraps
from requests import RequestException, exceptions
from via.exceptions import BadURL, UnhandledException, UpstreamServiceError
REQUESTS_BAD_URL = (
exceptions.MissingSchema,
exceptions.InvalidSchema,
exceptions.InvalidURL,
e... | """Helpers for capturing requests exceptions."""
from functools import wraps
from requests import RequestException, exceptions
from via.exceptions import BadURL, UnhandledException, UpstreamServiceError
REQUESTS_BAD_URL = (
exceptions.MissingSchema,
exceptions.InvalidSchema,
exceptions.InvalidURL,
e... | Fix error handling to show error messages | Fix error handling to show error messages
We removed this during a refactor, but it means we get very generic
messages in the UI instead of the actual error string.
| Python | bsd-2-clause | hypothesis/via,hypothesis/via,hypothesis/via | python | ## Code Before:
"""Helpers for capturing requests exceptions."""
from functools import wraps
from requests import RequestException, exceptions
from via.exceptions import BadURL, UnhandledException, UpstreamServiceError
REQUESTS_BAD_URL = (
exceptions.MissingSchema,
exceptions.InvalidSchema,
exceptions.I... |
e9df33e2f85f212517fcfe9e52534e9d1a009e51 | tests/Tests/Command/VersionCommandTest.php | tests/Tests/Command/VersionCommandTest.php | <?php
/*
* This file is part of the kreait eZ Publish Migrations Bundle.
*
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Kreait\EzPublish\MigrationsBundle\Tests\Command;
use Kreait\EzPublish\MigrationsBundle\Command\VersionCommand;
use Kre... | <?php
/*
* This file is part of the kreait eZ Publish Migrations Bundle.
*
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Kreait\EzPublish\MigrationsBundle\Tests\Command;
use Kreait\EzPublish\MigrationsBundle\Command\VersionCommand;
use Kre... | Fix Test by ensuring non-interactivity | Fix Test by ensuring non-interactivity
| PHP | mit | kreait/ezpublish-migrations-bundle,ezpublishlegacy/ezpublish-migrations-bundle | php | ## Code Before:
<?php
/*
* This file is part of the kreait eZ Publish Migrations Bundle.
*
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Kreait\EzPublish\MigrationsBundle\Tests\Command;
use Kreait\EzPublish\MigrationsBundle\Command\Version... |
b74971eaf180c14fef68142bffc689b1bc7340f4 | approvaltests/Namer.py | approvaltests/Namer.py | import inspect
import os
class Namer(object):
ClassName = ''
MethodName = ''
Directory = ''
def setForStack(self, caller):
stackFrame = caller[self.frame]
self.MethodName = stackFrame[3]
self.ClassName = stackFrame[0].f_globals["__name__"]
self.Directory = os.path.dirn... | import inspect
import os
class Namer(object):
ClassName = ''
MethodName = ''
Directory = ''
def setForStack(self, caller):
stackFrame = caller[self.frame]
self.MethodName = stackFrame[3]
self.ClassName = stackFrame[0].f_globals["__name__"]
self.Directory = os.path.dirn... | Create approval file path that works on Linux and Windows. | Create approval file path that works on Linux and Windows.
| Python | apache-2.0 | approvals/ApprovalTests.Python,approvals/ApprovalTests.Python,approvals/ApprovalTests.Python,tdpreece/ApprovalTests.Python | python | ## Code Before:
import inspect
import os
class Namer(object):
ClassName = ''
MethodName = ''
Directory = ''
def setForStack(self, caller):
stackFrame = caller[self.frame]
self.MethodName = stackFrame[3]
self.ClassName = stackFrame[0].f_globals["__name__"]
self.Director... |
19c53a8a46088db5998848df7e00375f09a222a7 | ansible-netbox/inventory/group_vars/all/netbox/netbox.yml | ansible-netbox/inventory/group_vars/all/netbox/netbox.yml | ---
# Setup on a test domain
netbox__fqdn: 'localhost.localdomain'
| ---
# Setup on a test domain
netbox__fqdn: 'localhost.localdomain'
# Use the PostgreSQL socket connection instead of port
netbox__database_port: ''
| Use socket connection to the database | Use socket connection to the database
| YAML | mit | debops/test-suite,debops/test-suite,ganto/debops-test-suite,ganto/test-suite,ganto/test-suite,ganto/debops-test-suite,debops/test-suite,ganto/test-suite,ganto/test-suite,ganto/debops-test-suite,debops/test-suite,ganto/debops-test-suite,ganto/debops-test-suite,debops/test-suite,ganto/test-suite | yaml | ## Code Before:
---
# Setup on a test domain
netbox__fqdn: 'localhost.localdomain'
## Instruction:
Use socket connection to the database
## Code After:
---
# Setup on a test domain
netbox__fqdn: 'localhost.localdomain'
# Use the PostgreSQL socket connection instead of port
netbox__database_port: ''
|
b28cde3abfb4e7b0a3c2fadb7e9c40b6de3aed12 | README.md | README.md |
> Return a list of known file extensions and their MIME types
## Install
```sh
$ npm install --save ext-list
```
## Usage
```js
var extList = require('ext-list');
extList(function (err, obj) {
if (err) {
throw err;
}
console.log(obj);
//=> { '123': 'application/vnd.lotus-1-2-3', ez: 'appl... |
> Return a list of known [file extensions](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) and their MIME types
## Install
```sh
$ npm install --save ext-list
```
## Usage
```js
var extList = require('ext-list');
extList(function (err, obj) {
if (err) {
throw err;
}
co... | Add link to the list of file extensions | Add link to the list of file extensions
| Markdown | mit | kevva/ext-list | markdown | ## Code Before:
> Return a list of known file extensions and their MIME types
## Install
```sh
$ npm install --save ext-list
```
## Usage
```js
var extList = require('ext-list');
extList(function (err, obj) {
if (err) {
throw err;
}
console.log(obj);
//=> { '123': 'application/vnd.lotus-1... |
352ab7851ebd860aac3a306b488e6f9cfc2c3951 | app/assets/stylesheets/personal_blog/application.css | app/assets/stylesheets/personal_blog/application.css | /*
*= require_tree .
*= require_self
*/
body {
color: #333;
background-color: #f9f9f9;
font-size: 18px;
}
div.container {
margin: 0 auto;
width: 60%;
}
| /*
*= require_tree .
*= require_self
*/
@import url(https://fonts.googleapis.com/css?family=Inconsolata);
body {
color: #333;
background-color: #f9f9f9;
font-size: 18px;
}
div.container {
margin: 0 auto;
width: 60%;
}
code {
font-family: 'Inconsolata';
font-size: inherit;
}
| Change code font to inconsolatas | Change code font to inconsolatas
| CSS | mit | nakulpathak3/personal-blog-gem,nakulpathak3/personal-blog-gem,nakulpathak3/personal-blog-gem | css | ## Code Before:
/*
*= require_tree .
*= require_self
*/
body {
color: #333;
background-color: #f9f9f9;
font-size: 18px;
}
div.container {
margin: 0 auto;
width: 60%;
}
## Instruction:
Change code font to inconsolatas
## Code After:
/*
*= require_tree .
*= require_self
*/
@import url(https://fonts.g... |
fbf3265f5af7cbcc5d68f9b16b058e0ddf2292a7 | script/cibuild.cmd | script/cibuild.cmd | SET BUILD_ATOM_RELEASES_S3_KEY=%BUILD_ATOM_WIN_RELEASES_S3_KEY%
SET BUILD_ATOM_RELEASES_S3_SECRET=%BUILD_ATOM_WIN_RELEASES_S3_SECRET%
SET BUILD_ATOM_RELEASES_S3_BUCKET=%BUILD_ATOM_WIN_RELEASES_S3_BUCKET%
ECHO Here I go Windowsing again
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\cibuild" %*
) ELSE (
nod... | SET BUILD_ATOM_RELEASES_S3_KEY=%BUILD_ATOM_WIN_RELEASES_S3_KEY%
SET BUILD_ATOM_RELEASES_S3_SECRET=%BUILD_ATOM_WIN_RELEASES_S3_SECRET%
SET BUILD_ATOM_RELEASES_S3_BUCKET=%BUILD_ATOM_WIN_RELEASES_S3_BUCKET%
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\cibuild" %*
) ELSE (
node "%~dp0\cibuild" %*
)
| Revert "Let's see if we get here." | Revert "Let's see if we get here."
This reverts commit 481cacb5d31d28251da8ee276dba6b203753e869.
| Batchfile | mit | ashneo76/atom,rlugojr/atom,Mokolea/atom,jordanbtucker/atom,bolinfest/atom,t9md/atom,wiggzz/atom,stinsonga/atom,helber/atom,andrewleverette/atom,chfritz/atom,Austen-G/BlockBuilder,ardeshirj/atom,decaffeinate-examples/atom,johnhaley81/atom,CraZySacX/atom,AlexxNica/atom,bj7/atom,alexandergmann/atom,gontadu/atom,transcrani... | batchfile | ## Code Before:
SET BUILD_ATOM_RELEASES_S3_KEY=%BUILD_ATOM_WIN_RELEASES_S3_KEY%
SET BUILD_ATOM_RELEASES_S3_SECRET=%BUILD_ATOM_WIN_RELEASES_S3_SECRET%
SET BUILD_ATOM_RELEASES_S3_BUCKET=%BUILD_ATOM_WIN_RELEASES_S3_BUCKET%
ECHO Here I go Windowsing again
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\cibuild" %... |
b5c9e41ce2bcb7a6acd0a8a2b9be3be471f02da2 | langmeta/langmeta/shared/src/main/scala/org/langmeta/io/Fragment.scala | langmeta/langmeta/shared/src/main/scala/org/langmeta/io/Fragment.scala | package org.langmeta
package io
import java.net._
final case class Fragment(base: AbsolutePath, name: RelativePath) {
def uri: URI = {
val baseuri = base.toURI.normalize
if (baseuri.toString.endsWith(".jar")) new URI(s"jar:$baseuri!/$name")
else base.resolve(name).toURI.normalize
}
def syntax: Strin... | package org.langmeta
package io
import java.net._
import org.langmeta.internal.io.PathIO
final case class Fragment(base: AbsolutePath, name: RelativePath) {
def uri: URI = {
val baseuri = base.toURI.normalize
if (baseuri.toString.endsWith(".jar")) {
val reluri = PathIO.toUnix(name.toString)
new ... | Normalize relative path inside jar files for Windows compat. | Normalize relative path inside jar files for Windows compat.
Path.toString on windows uses backslashes which are invalid in the
relative path section of a jar URI (the part after !/). This commit
converts \ to / in the relative path part.
| Scala | bsd-3-clause | xeno-by/scalameta,olafurpg/scalameta,scalameta/scalameta,scalameta/scalameta,olafurpg/scalameta,scalameta/scalameta,olafurpg/scalameta,scalameta/scalameta,MasseGuillaume/scalameta,xeno-by/scalameta,MasseGuillaume/scalameta,xeno-by/scalameta,MasseGuillaume/scalameta,scalameta/scalameta | scala | ## Code Before:
package org.langmeta
package io
import java.net._
final case class Fragment(base: AbsolutePath, name: RelativePath) {
def uri: URI = {
val baseuri = base.toURI.normalize
if (baseuri.toString.endsWith(".jar")) new URI(s"jar:$baseuri!/$name")
else base.resolve(name).toURI.normalize
}
d... |
0c7f985a53c6263e3955dc833a6d5bfdd6d01295 | recipes/racket/meta.yaml | recipes/racket/meta.yaml | {% set version = "6.12" %}
package:
name: racket
version: {{version}}
source:
fn: racket-{{ version }}.tar.gz
url: https://github.com/racket/racket/archive/v{{ version }}.tar.gz
sha256: c98f8d8f8dd62abdef9906adf7b1ce60b37c852b4111700c06bf0c2d290dd588
build:
number: 0
skip: true # [win]
requirements:
... | {% set version = "6.12" %}
package:
name: racket
version: {{version}}
source:
fn: racket-{{ version }}.tar.gz
url: https://github.com/racket/racket/archive/v{{ version }}.tar.gz
sha256: c98f8d8f8dd62abdef9906adf7b1ce60b37c852b4111700c06bf0c2d290dd588
build:
number: 0
skip: true # [win]
requirements:
... | Expand tests run to confirm package is working. | Expand tests run to confirm package is working.
| YAML | bsd-3-clause | ceholden/staged-recipes,jjhelmus/staged-recipes,barkls/staged-recipes,stuertz/staged-recipes,johanneskoester/staged-recipes,scopatz/staged-recipes,mcs07/staged-recipes,synapticarbors/staged-recipes,igortg/staged-recipes,ocefpaf/staged-recipes,sodre/staged-recipes,ReimarBauer/staged-recipes,hadim/staged-recipes,mcs07/st... | yaml | ## Code Before:
{% set version = "6.12" %}
package:
name: racket
version: {{version}}
source:
fn: racket-{{ version }}.tar.gz
url: https://github.com/racket/racket/archive/v{{ version }}.tar.gz
sha256: c98f8d8f8dd62abdef9906adf7b1ce60b37c852b4111700c06bf0c2d290dd588
build:
number: 0
skip: true # [win]... |
a8b981e9cd830a4bb705f2282f4fc899effdf7dc | app/serializers/api/variant_serializer.rb | app/serializers/api/variant_serializer.rb | class Api::VariantSerializer < ActiveModel::Serializer
attributes :id, :is_master, :product_name, :sku,
:options_text, :unit_value, :unit_description, :unit_to_display,
:display_as, :display_name, :name_to_display,
:price, :on_demand, :on_hand, :fees, :price_with_fees,
... | class Api::VariantSerializer < ActiveModel::Serializer
attributes :id, :is_master, :product_name, :sku,
:options_text, :unit_value, :unit_description, :unit_to_display,
:display_as, :display_name, :name_to_display,
:price, :on_demand, :on_hand, :fees, :price_with_fees,
... | Add product thumbnais to serializer for cart dropdown images | Add product thumbnais to serializer for cart dropdown images
| Ruby | agpl-3.0 | lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfood... | ruby | ## Code Before:
class Api::VariantSerializer < ActiveModel::Serializer
attributes :id, :is_master, :product_name, :sku,
:options_text, :unit_value, :unit_description, :unit_to_display,
:display_as, :display_name, :name_to_display,
:price, :on_demand, :on_hand, :fees, :price_with... |
7418079606a6e24cb0dccfa148b47c3f736e985f | zou/app/blueprints/persons/resources.py | zou/app/blueprints/persons/resources.py | from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissio... | from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check_admin_permissio... | Allow to set role while creating a person | Allow to set role while creating a person
| Python | agpl-3.0 | cgwire/zou | python | ## Code Before:
from flask import abort
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from zou.app.services import persons_service
from zou.app.utils import auth, permissions
class NewPersonResource(Resource):
@jwt_required
def post(self):
permissions.check... |
e7999bd8afa05854aac25cc5f16fd8555031aa5b | ci/run_all_spiders.py | ci/run_all_spiders.py | from scrapy.utils.project import get_project_settings
from scrapy.crawler import CrawlerProcess
if __name__ == '__main__':
settings = get_project_settings()
settings.set('LOG_FILE', 'all_spiders.log')
settings.set('LOG_LEVEL', 'ERROR')
settings.set('TELNETCONSOLE_ENABLED', False)
settings.set('FE... | from scrapy.utils.project import get_project_settings
from scrapy.crawler import CrawlerProcess
from scrapy import signals
if __name__ == '__main__':
settings = get_project_settings()
settings.set('LOG_FILE', 'all_spiders.log')
settings.set('LOG_LEVEL', 'ERROR')
settings.set('TELNETCONSOLE_ENABLED', ... | Print some stats in the crawler | Print some stats in the crawler
| Python | mit | iandees/all-the-places,iandees/all-the-places,iandees/all-the-places | python | ## Code Before:
from scrapy.utils.project import get_project_settings
from scrapy.crawler import CrawlerProcess
if __name__ == '__main__':
settings = get_project_settings()
settings.set('LOG_FILE', 'all_spiders.log')
settings.set('LOG_LEVEL', 'ERROR')
settings.set('TELNETCONSOLE_ENABLED', False)
... |
26f1b8c5510d984c41a86418954625ca4fcb0d54 | Support/UITestCase.swift | Support/UITestCase.swift | import Foundation
import XCTest
class UITestCase: XCTestCase {
let app = XCUIApplication()
var loginScreen: LoginScreen!
var welcomeScreen: WelcomeScreen!
override func setUp() {
super.setUp()
continueAfterFailure = true
app.launch()
loginScre... | import Foundation
import XCTest
class UITestCase: XCTestCase {
let app = XCUIApplication()
var loginScreen: LoginScreen!
var welcomeScreen: WelcomeScreen!
override func setUp() {
super.setUp()
continueAfterFailure = true
app.launch()
loginScre... | Delete the reference of each object in each teardown | Delete the reference of each object in each teardown
| Swift | apache-2.0 | morphizus/XCUI-PO-model | swift | ## Code Before:
import Foundation
import XCTest
class UITestCase: XCTestCase {
let app = XCUIApplication()
var loginScreen: LoginScreen!
var welcomeScreen: WelcomeScreen!
override func setUp() {
super.setUp()
continueAfterFailure = true
app.launch()
... |
d20dcde5d03531aa1178172b02310e68d131e056 | src/Http.idr | src/Http.idr | module Http
||| The HTTP Method which is either POST or GET
data Method = POST | GET
||| A String-alias for Hosts.
Host : Type
Host = String
||| Port is an alias for Int.
-- Todo: Maybe depend on the port range 0-65535
Port : Type
Port = Int
||| A type alias for HTTP Versions.
||| HttpVersion shall have the value "... | module Http
||| The HTTP Method which is either POST or GET
data Method = POST | GET
||| A String-alias for Hosts.
Host : Type
Host = String
||| Port is an alias for Int.
-- Todo: Maybe depend on the port range 0-65535
Port : Type
Port = Int
||| A type alias for HTTP Versions.
||| HttpVersion shall have the value "... | Add path and query to Request | Add path and query to Request
| Idris | bsd-2-clause | uwap/idris-http | idris | ## Code Before:
module Http
||| The HTTP Method which is either POST or GET
data Method = POST | GET
||| A String-alias for Hosts.
Host : Type
Host = String
||| Port is an alias for Int.
-- Todo: Maybe depend on the port range 0-65535
Port : Type
Port = Int
||| A type alias for HTTP Versions.
||| HttpVersion shall ... |
1bd274bdc017a92ee2479a4faba450f3feaff7f0 | ui/src/bamboo/task/HeadingContentHandler.java | ui/src/bamboo/task/HeadingContentHandler.java | package bamboo.task;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.regex.Pattern;
public class HeadingContentHandler extends DefaultHandler {
private static Pattern WHITESPACE_RE = Pattern.compile("\\s+");
private StringBuilder tex... | package bamboo.task;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.regex.Pattern;
public class HeadingContentHandler extends DefaultHandler {
private static Pattern WHITESPACE_RE = Pattern.compile("\\s+");
private StringBuilder tex... | Set h1 to null if no headings are present | Set h1 to null if no headings are present
| Java | apache-2.0 | nla/bamboo,nla/bamboo,nla/bamboo,nla/bamboo | java | ## Code Before:
package bamboo.task;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.regex.Pattern;
public class HeadingContentHandler extends DefaultHandler {
private static Pattern WHITESPACE_RE = Pattern.compile("\\s+");
private S... |
8a0f95fd67a814903fc8b61c2cc1b9564a971d99 | package.json | package.json | {
"name": "rizzo",
"version": "0.1.0",
"private": true,
"devDependencies": {
"grunt": "latest",
"grunt-contrib-connect": "latest",
"grunt-contrib-coffee": "latest",
"grunt-contrib-jasmine": "0.5.2",
"grunt-contrib-watch": "latest",
"grunt-contrib-copy": "l... | {
"name": "rizzo",
"version": "0.1.0",
"private": true,
"devDependencies": {
"grunt": "latest",
"grunt-contrib-connect": "latest",
"grunt-contrib-coffee": "latest",
"grunt-contrib-jasmine": "0.5.2",
"grunt-contrib-watch": "latest",
"grunt-contrib-copy": "l... | Update Yeoman generator commit ID | Update Yeoman generator commit ID | JSON | mit | lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo | json | ## Code Before:
{
"name": "rizzo",
"version": "0.1.0",
"private": true,
"devDependencies": {
"grunt": "latest",
"grunt-contrib-connect": "latest",
"grunt-contrib-coffee": "latest",
"grunt-contrib-jasmine": "0.5.2",
"grunt-contrib-watch": "latest",
"grunt-c... |
68fe680266f705bea2b33e614d7aac2ae13b46a2 | url_shortener/forms.py | url_shortener/forms.py | from flask_wtf import Form
from wtforms import StringField, validators
from .validation import not_spam
class ShortenedUrlForm(Form):
url = StringField(
'Url to be shortened',
[
validators.DataRequired(),
validators.URL(message="A valid url is required"),
not_s... | from flask_wtf import Form
from wtforms import StringField, validators
from .validation import not_blacklisted_nor_spam
class ShortenedUrlForm(Form):
url = StringField(
'Url to be shortened',
[
validators.DataRequired(),
validators.URL(message="A valid url is required"),
... | Replace not_spam validator with not_blacklisted_nor_spam in form class | Replace not_spam validator with not_blacklisted_nor_spam in form class
| Python | mit | piotr-rusin/url-shortener,piotr-rusin/url-shortener | python | ## Code Before:
from flask_wtf import Form
from wtforms import StringField, validators
from .validation import not_spam
class ShortenedUrlForm(Form):
url = StringField(
'Url to be shortened',
[
validators.DataRequired(),
validators.URL(message="A valid url is required"),
... |
385b60b21c729e83f974fcf5a83b45a17ba787f4 | test/ParseableInterface/ModuleCache/RebuildRemarks/out-of-date-cached-module.swift | test/ParseableInterface/ModuleCache/RebuildRemarks/out-of-date-cached-module.swift | // RUN: %empty-directory(%t/ModuleCache)
// RUN: %empty-directory(%t/Build)
// 1. Create a dummy module
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
// 2. Create an interface for it
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.sw... | // RUN: %empty-directory(%t/ModuleCache)
// RUN: %empty-directory(%t/Build)
// 1. Create a dummy module
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
// 2. Create an interface for it
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.sw... | Remove debug flag from module cache rebuild test | [test] Remove debug flag from module cache rebuild test
This debug flag shouldn't have been included in the test, and it doesn't
exist when built without asserts.
rdar://50447378
| Swift | apache-2.0 | hooman/swift,shajrawi/swift,benlangmuir/swift,JGiola/swift,nathawes/swift,harlanhaskins/swift,gribozavr/swift,tkremenek/swift,karwa/swift,harlanhaskins/swift,nathawes/swift,gribozavr/swift,tkremenek/swift,parkera/swift,xwu/swift,sschiau/swift,tkremenek/swift,nathawes/swift,aschwaighofer/swift,gribozavr/swift,roambotics... | swift | ## Code Before:
// RUN: %empty-directory(%t/ModuleCache)
// RUN: %empty-directory(%t/Build)
// 1. Create a dummy module
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
// 2. Create an interface for it
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Bui... |
c2c3eae82cb4f34a76334a3b3e2f935c667966c5 | README.md | README.md |
middleman-slim is an extension for the Middleman static site generator that adds support for Slim.
## Installation
gem install middleman
gem install middleman-slim
middleman init PROJECT_NAME --template slim
## Run
cd PROJECT_NAME
middleman server
## Learn more
- [Middleman](http://middl... |
[][gem]
[][travis]
middleman-slim is an extension for the Middleman static site generator that adds support for Slim.
## Installation
gem install middleman
gem install middleman-sli... | Add build status badge and travis ci badge | Add build status badge and travis ci badge
| Markdown | mit | yterajima/middleman-slim,yterajima/middleman-slim | markdown | ## Code Before:
middleman-slim is an extension for the Middleman static site generator that adds support for Slim.
## Installation
gem install middleman
gem install middleman-slim
middleman init PROJECT_NAME --template slim
## Run
cd PROJECT_NAME
middleman server
## Learn more
- [Middlem... |
573d59b0daae33cfb61cc64c3a7003ecc82bc500 | app/models/forem/ability.rb | app/models/forem/ability.rb | require 'cancan'
module Forem
module Ability
include CanCan::Ability
def self.included(target)
target.class_eval do
# Alias old class's initialize so we can get it to after
# Otherwise initialize attempts to go to an initialize that doesn't take an arg
alias_method :old_initial... | require 'cancan'
module Forem
module Ability
include CanCan::Ability
def self.included(target)
target.class_eval do
# Alias old class's initialize so we can get it to after
# Otherwise initialize attempts to go to an initialize that doesn't take an arg
alias_method :old_initial... | Remove erroneous can :read, :forums | Remove erroneous can :read, :forums
| Ruby | mit | frankel/forem,dmitry-ilyashevich/forem,frankel/forem,dmitry-ilyashevich/forem | ruby | ## Code Before:
require 'cancan'
module Forem
module Ability
include CanCan::Ability
def self.included(target)
target.class_eval do
# Alias old class's initialize so we can get it to after
# Otherwise initialize attempts to go to an initialize that doesn't take an arg
alias_met... |
98c87e02123da61cf2813c5702e5b49cd1e472fe | jquery/README.md | jquery/README.md |
Check your data against regual expressions.
## Usage
$('.email').is('email'); // Returns boolean value...
or
$.is('john.doe@example.com', 'email'); // Returns true
## Get in touch
Follow me on twitter [@rthor](http://twitter.com/rthor) or send me a line in an [email](mailto:ragnar@ylgur.is). |
See genaral [usage guide](https://github.com/rthor/isjs/README.md) for allowed keywords.
```javascript
// Works on pretty much all DOM elements...
$('.email').is('email'); // Returns boolean value...
// And basic strings!
$.is('john.doe@example.com', 'email'); // Returns true
```
### Contibution
Feel free to conti... | Add better documentation for jQuery plugin | Add better documentation for jQuery plugin
| Markdown | mit | rthor/isjs | markdown | ## Code Before:
Check your data against regual expressions.
## Usage
$('.email').is('email'); // Returns boolean value...
or
$.is('john.doe@example.com', 'email'); // Returns true
## Get in touch
Follow me on twitter [@rthor](http://twitter.com/rthor) or send me a line in an [email](mailto:ragnar@ylgur.is).
##... |
82b7e46ebdeb154963520fec1d41cc624ceb806d | tests/test_vendcrawler.py | tests/test_vendcrawler.py | import unittest
from vendcrawler.scripts.vendcrawler import VendCrawler
class TestVendCrawlerMethods(unittest.TestCase):
def test_get_links(self):
links = VendCrawler().get_links(2)
self.assertEqual(links,
['https://sarahserver.net/?module=vendor&p=1',
... | import unittest
from vendcrawler.scripts.vendcrawler import VendCrawler
class TestVendCrawlerMethods(unittest.TestCase):
def test_get_links(self):
links = VendCrawler('a', 'b', 'c').get_links(2)
self.assertEqual(links,
['https://sarahserver.net/?module=vendor&p=1',
... | Fix test by passing placeholder variables. | Fix test by passing placeholder variables.
| Python | mit | josetaas/vendcrawler,josetaas/vendcrawler,josetaas/vendcrawler | python | ## Code Before:
import unittest
from vendcrawler.scripts.vendcrawler import VendCrawler
class TestVendCrawlerMethods(unittest.TestCase):
def test_get_links(self):
links = VendCrawler().get_links(2)
self.assertEqual(links,
['https://sarahserver.net/?module=vendor&p=1',
... |
a6be55fe8f8c50a43f738c35a3d52c624d703f65 | locales/uk/notes.properties | locales/uk/notes.properties | welcomeTitle=Вітаємо!
forgetEmail=Забути цю адресу електронної пошти
syncNotes=Синхронізувати нотатки
syncProgress=Зміни синхронізуються…
# LOCALIZATION NOTE (disableSync): Sync is intended as a generic
# synchronization, not Firefox Sync.
disableSync=Вимкнути синхронізацію
# LOCALIZATION NOTE (syncComplete): {date}... | welcomeTitle=Вітаємо!
welcomeText=Це простий односторінковий блокнот, вбудований в Firefox, який допоможе вам отримати максимальну віддачу від Інтернету.
emptyPlaceHolder=Створіть нотатку…
openingLogin=Відкриття входу…
forgetEmail=Забути цю адресу електронної пошти
syncNotReady=На жаль, синхронізація нотаток не гото... | Update Ukrainian (uk) localization of Test Pilot: Notes | Pontoon: Update Ukrainian (uk) localization of Test Pilot: Notes
Localization authors:
- Tymur Faradzhev <faradzhev.timur@gmail.com>
- Yuriy Antonov <yuraantonov11@gmail.com>
| INI | mpl-2.0 | cedricium/notes,cedricium/notes,cedricium/notes,cedricium/notes,cedricium/notes | ini | ## Code Before:
welcomeTitle=Вітаємо!
forgetEmail=Забути цю адресу електронної пошти
syncNotes=Синхронізувати нотатки
syncProgress=Зміни синхронізуються…
# LOCALIZATION NOTE (disableSync): Sync is intended as a generic
# synchronization, not Firefox Sync.
disableSync=Вимкнути синхронізацію
# LOCALIZATION NOTE (syncC... |
6132d7d3cc3809c436dc8f0d9001012a654c48ad | test/factories/accounts.rb | test/factories/accounts.rb | FactoryBot.define do
factory :account do
debtor { false }
reconcilable { false }
nature { 'general' }
sequence(:name) { |n| "Compte 801 - #{n}" }
sequence(:number) { |n| (801000 + n).to_s }
number_is_valid { true }
trait :client do
sequence(:name) { |n| "Compte client #{n}" }
... | FactoryBot.define do
factory :account do
debtor { false }
reconcilable { false }
nature { 'general' }
sequence(:name) { |n| "Compte 801 - #{n}" }
sequence(:number) { |n| (801000 + n).to_s }
already_existing { true }
trait :client do
sequence(:name) { |n| "Compte client #{n}" }
... | Change old field by new one | Change old field by new one
| Ruby | agpl-3.0 | ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre | ruby | ## Code Before:
FactoryBot.define do
factory :account do
debtor { false }
reconcilable { false }
nature { 'general' }
sequence(:name) { |n| "Compte 801 - #{n}" }
sequence(:number) { |n| (801000 + n).to_s }
number_is_valid { true }
trait :client do
sequence(:name) { |n| "Compte clien... |
ecc5d51484236d2b1026fe90ad49270a5cb9c08c | .travis.yml | .travis.yml | language: java
jdk:
- openjdk7
- oraclejdk7
install:
- gem install bundler
- bundle install
- npm install coffee-script
- export PATH=$PATH:./node_modules/.bin
script: buildr clean package
| language: java
jdk:
- openjdk7
- oraclejdk7
install:
- apt-get install freetds-dev
- gem install bundler
- bundle install
- npm install coffee-script
- export PATH=$PATH:./node_modules/.bin
script: buildr clean package
| Install the freetds library for Travis build | Install the freetds library for Travis build
| YAML | apache-2.0 | RHoKAustralia/melb-fgis-java,RHoKAustralia/melb-fgis-java,RHoKAustralia/melb-fgis-java,RHoKAustralia/melb-fgis-java | yaml | ## Code Before:
language: java
jdk:
- openjdk7
- oraclejdk7
install:
- gem install bundler
- bundle install
- npm install coffee-script
- export PATH=$PATH:./node_modules/.bin
script: buildr clean package
## Instruction:
Install the freetds library for Travis build
## Code After:
language: java
jdk:
- o... |
fe7d0086e5d996991921a8d8f9958b86b3b5291f | project/build.properties | project/build.properties | project.name=ccf
project.organization=
sbt.version=0.5.6
scala.version=2.7.7
project.version=0.1.4
project.initialize=false
| project.name=ccf
project.organization=
sbt.version=0.5.6
scala.version=2.7.7
project.version=0.2-SNAPSHOT
project.initialize=false
| Update project version back to development snapshot | Update project version back to development snapshot
Signed-off-by: Aki Saarinen <2c8035bb80cf98a391872dcbe797b269d759f6d9@reaktor.fi>
| INI | apache-2.0 | akisaarinen/ccf,akisaarinen/ccf | ini | ## Code Before:
project.name=ccf
project.organization=
sbt.version=0.5.6
scala.version=2.7.7
project.version=0.1.4
project.initialize=false
## Instruction:
Update project version back to development snapshot
Signed-off-by: Aki Saarinen <2c8035bb80cf98a391872dcbe797b269d759f6d9@reaktor.fi>
## Code After:
project.name... |
ab6c02edaa802dea6d4ee01ba4f56172d7605802 | app/javascripts/views/main_view.js | app/javascripts/views/main_view.js | Checklist.MainView = Ember.View.extend({
tagName: 'section',
templateName: 'main_view',
classNames: ['main'],
landingColorboxConfig: {
inline: true,
transition: 'fade',
close: 'x',
opacity: 0.8,
fixed: true,
maxWidth: 675,
innerWidth: 675,
open: true,
className: 'landing',
... | Checklist.MainView = Ember.View.extend({
tagName: 'section',
templateName: 'main_view',
classNames: ['main'],
landingColorboxConfig: {
inline: true,
transition: 'fade',
close: 'x',
opacity: 0.8,
fixed: true,
maxWidth: 675,
innerWidth: 675,
open: true,
className: 'landing',
... | Hide initial popup if popup param is 0 | Hide initial popup if popup param is 0
| JavaScript | bsd-3-clause | unepwcmc/cites-checklist,unepwcmc/cites-checklist,unepwcmc/cites-checklist | javascript | ## Code Before:
Checklist.MainView = Ember.View.extend({
tagName: 'section',
templateName: 'main_view',
classNames: ['main'],
landingColorboxConfig: {
inline: true,
transition: 'fade',
close: 'x',
opacity: 0.8,
fixed: true,
maxWidth: 675,
innerWidth: 675,
open: true,
classN... |
caa38f696367aea19cae9d78d0264aee4dce1733 | .travis.yml | .travis.yml | rvm:
- "2.0.0"
- "2.1.0"
before_script:
- cp config/sp-gestion.sample.yml config/sp-gestion.yml
- bundle exec rake db:create db:migrate
bundler_args:
--without development staging production
services:
- memcached
script:
- bundle exec rake spec
notifications:
disabled: true
env:
global:
- RA... | rvm:
- "2.0.0"
- "2.1.0"
before_script:
- cp config/sp-gestion.sample.yml config/sp-gestion.yml
- bundle exec rake db:create db:migrate
bundler_args:
--without development staging production
services:
- memcached
script:
- bundle exec rake spec
notifications:
disabled: true
env:
global:
- RA... | Enable bundler caching for Travis CI. | Enable bundler caching for Travis CI.
| YAML | mit | osaris/sp-gestion,osaris/sp-gestion,osaris/sp-gestion | yaml | ## Code Before:
rvm:
- "2.0.0"
- "2.1.0"
before_script:
- cp config/sp-gestion.sample.yml config/sp-gestion.yml
- bundle exec rake db:create db:migrate
bundler_args:
--without development staging production
services:
- memcached
script:
- bundle exec rake spec
notifications:
disabled: true
env:
... |
05f293cee4dca3d34298a2ce59b705b40b0b55bc | resources/css/src/component/_header.scss | resources/css/src/component/_header.scss | .header-inner {
background: $light-gray;
padding: 1rem 0;
.header-title {
// Internet Explorer hack.
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
position: absolute;
width: 100%;
}
.header-logo {
height: rem-calc(30);
}
}
.header-menu {
... | .header-inner {
background: $light-gray;
padding: 1rem 0;
.header-title {
// Internet Explorer hack.
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
position: absolute;
width: 100%;
}
.header-logo {
height: rem-calc(30);
}
}
.header-menu {
... | Fix header menu alignment (caused by adding search bar) | Fix header menu alignment (caused by adding search bar)
| SCSS | mit | lemonstand/lscloud-theme-bones,lemonstand/lscloud-theme-bones | scss | ## Code Before:
.header-inner {
background: $light-gray;
padding: 1rem 0;
.header-title {
// Internet Explorer hack.
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
position: absolute;
width: 100%;
}
.header-logo {
height: rem-calc(30);
}
}
.... |
0b69c73dfa7f9873176aac684f8e5800ce48b308 | example-loop.js | example-loop.js | var TiVoRemote = require('./TiVoRemote');
var readline = require('readline');
var config = {
ip: '192.168.1.100',
port: 31339
}
var remote = new TiVoRemote(config);
var rl = readline.createInterface({ input: process.stdin, output: process.stdout });
rl.setPrompt('');
remote.on('channel', function(channel) { cons... | var TiVoRemote = require('./TiVoRemote');
var readline = require('readline');
if (process.argv.length < 3) {
console.log('Usage: <script> <ip>');
process.exit(1);
}
var config = {
ip: process.argv[2],
port: 31339
}
var remote = new TiVoRemote(config);
var rl = readline.createInterface({ input: process.stdin,... | Allow setting IP from command line argument | Allow setting IP from command line argument
| JavaScript | mit | mattjgalloway/homebridge-tivo | javascript | ## Code Before:
var TiVoRemote = require('./TiVoRemote');
var readline = require('readline');
var config = {
ip: '192.168.1.100',
port: 31339
}
var remote = new TiVoRemote(config);
var rl = readline.createInterface({ input: process.stdin, output: process.stdout });
rl.setPrompt('');
remote.on('channel', function... |
5030a48b4e09dc35bce3eb3713b3257380a1a5a9 | public/templates/navigationtree/navigationTreeTemplate.html | public/templates/navigationtree/navigationTreeTemplate.html | <% node_url = function(node) {
var url = '';
switch (parseInt(node.node_type_id)) {
case 1:
url = '/#/projects/' + node.node_id + '/view';
break;
case 2:
url = '/#/projects/' + project_id + '/testsuites/' + node.node_id + '/view';
break;
ca... | <% node_url = function(node) {
var url = '';
switch (parseInt(node.node_type_id)) {
case 1:
url = '/#/projects/' + node.node_id + '/view';
break;
case 2:
url = '/#/projects/' + project_id + '/testsuites/' + node.node_id + '/view';
break;
ca... | Add node type id and node id in the UI data field for new forms | Add node type id and node id in the UI data field for new forms
| HTML | mit | kinow/nestor,kinow/nestor,nestor-qa/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor,nestor-qa/nestor,nestor-qa/nestor | html | ## Code Before:
<% node_url = function(node) {
var url = '';
switch (parseInt(node.node_type_id)) {
case 1:
url = '/#/projects/' + node.node_id + '/view';
break;
case 2:
url = '/#/projects/' + project_id + '/testsuites/' + node.node_id + '/view';
b... |
4cb72544f3c7c0f2bf75cd1c3baff5c8dc7b48a8 | app/views/admin/contacts/index.html.haml | app/views/admin/contacts/index.html.haml | %ul.contact-list
- @contacts.each do |contact|
%li{ :class => cycle("", "shaded") }
%blockquote= "\"#{contact.message}\""
%span
= "- From: #{mail_to(contact.email, contact.name)} #{contact.phone} (#{distance_of_time_in_words_to_now(contact.created_at)} ago)"
= link_to 'Delete', admin_c... | %ul.contact-list
- @contacts.each do |contact|
%li{ :class => cycle("", "shaded") }
%blockquote= "\"#{contact.message}\""
%span
= "- From: #{mail_to(contact.email, contact.name)} #{contact.phone} (#{distance_of_time_in_words_to_now(contact.created_at)} ago)"
= link_to 'Delete', admin_c... | Add a label if there are no contacts. | Add a label if there are no contacts.
| Haml | mit | aub/spritz,aub/spritz,aub/spritz | haml | ## Code Before:
%ul.contact-list
- @contacts.each do |contact|
%li{ :class => cycle("", "shaded") }
%blockquote= "\"#{contact.message}\""
%span
= "- From: #{mail_to(contact.email, contact.name)} #{contact.phone} (#{distance_of_time_in_words_to_now(contact.created_at)} ago)"
= link_to '... |
6179b0bdc8048af7c0c15336e503a675dbf197d7 | src/app/App/index.js | src/app/App/index.js | import React, { Component } from 'react'
import Card from '../Card'
const DEBOUNCE_MS = 500
const DEFAULT_DOMAIN = 'https://stripe.com'
export default class extends Component {
state = { domain: DEFAULT_DOMAIN }
onChange = e => {
const domain = e.target.value.trim()
clearTimeout(this.debouncedSetState)
... | import React, { Component } from 'react'
import Card from '../Card'
const DEBOUNCE_MS = 500
const DEFAULT_DOMAIN = 'https://stripe.com'
export default class extends Component {
state = { domain: DEFAULT_DOMAIN }
onChange = e => {
const domain = e.target.value.trim() || DEFAULT_DOMAIN
clearTimeout(this.d... | Replace ternary by default value | Replace ternary by default value
| JavaScript | mit | Kikobeats/react-atv-logo,Kikobeats/react-atv-logo | javascript | ## Code Before:
import React, { Component } from 'react'
import Card from '../Card'
const DEBOUNCE_MS = 500
const DEFAULT_DOMAIN = 'https://stripe.com'
export default class extends Component {
state = { domain: DEFAULT_DOMAIN }
onChange = e => {
const domain = e.target.value.trim()
clearTimeout(this.deb... |
b8a567aae8e7d00861109afeee8c4350d0f404a2 | README.md | README.md |
[hyperlink.cool](https://hyperlink.cool) is a searchable link collection for my fellow Computer Science and Media students at Bauhaus-Univerität Weimar.
## Contributing
If you want to add your own course, please go ahead and edit the [records.json](https://github.com/kleinfreund/hyperlink.cool/blob/gh-pages/_data/re... |
[hyperlink.cool](https://hyperlink.cool) is a searchable link collection for my fellow Computer Science and Media students at Bauhaus-Univerität Weimar.
## Developing
Install the project’s dependencies:
```
npm install
```
Start a local development server:
```
npm start
```
Build the project and upload the conte... | Add development instructions to readme | Add development instructions to readme
| Markdown | mit | kleinfreund/vlau.me,kleinfreund/hyperlink.cool,kleinfreund/hyperlink.cool,kleinfreund/vlau.me | markdown | ## Code Before:
[hyperlink.cool](https://hyperlink.cool) is a searchable link collection for my fellow Computer Science and Media students at Bauhaus-Univerität Weimar.
## Contributing
If you want to add your own course, please go ahead and edit the [records.json](https://github.com/kleinfreund/hyperlink.cool/blob/g... |
8bf0cb99cb56fa9d59f13fa48875d579215c6591 | btrfs.go | btrfs.go | package main
import (
"os"
"os/exec"
)
const (
// BtrfsCommand is the name of the btrfs command-line tool binary.
BtrfsCommand = "btrfs"
)
// Snapshot creates a Btrfs snapshot of src at dst, optionally making
// it writable. If dst already exists, the snapshot is not created and
// an error is returned.
func Sna... | package main
import (
"fmt"
"os"
"os/exec"
)
const (
// BtrfsCommand is the name of the btrfs command-line tool binary.
BtrfsCommand = "btrfs"
)
// Snapshot creates a Btrfs snapshot of src at dst, optionally making
// it writable. If dst already exists, the snapshot is not created and
// an error is returned.
f... | Make Snapshot() actually check for an existing destination as documented. | Make Snapshot() actually check for an existing destination as documented.
| Go | mit | DeedleFake/yabs | go | ## Code Before:
package main
import (
"os"
"os/exec"
)
const (
// BtrfsCommand is the name of the btrfs command-line tool binary.
BtrfsCommand = "btrfs"
)
// Snapshot creates a Btrfs snapshot of src at dst, optionally making
// it writable. If dst already exists, the snapshot is not created and
// an error is re... |
a8d85f9076c06df316443f41fd7946e79b8d3b54 | Data/Data.cpp | Data/Data.cpp |
namespace Tools {
Data::BitsType getBitsFromString(const std::string& buf) {
Data::BitsType bits(buf.size());
for (size_t i = 0; i < buf.size(); ++i) {
if (buf[i] == '0')
bits[i] = 0;
else if (buf[i] == '1')
bits[i] = 1;
else
throw std::logic_error("Wrong data");
}
return bits;... |
namespace Tools {
Data::BitsType getBitsFromString(const std::string& buf) {
Data::BitsType bits(buf.size());
for (size_t i = 0; i < buf.size(); ++i) {
if (buf[i] == '0')
bits[i] = 0;
else if (buf[i] == '1')
bits[i] = 1;
else
throw std::logic_error("Wrong data");
}
return bits;... | Correct transaction count when reading a first line | Correct transaction count when reading a first line
| C++ | mit | wispwisp/associationRuleAnalysis | c++ | ## Code Before:
namespace Tools {
Data::BitsType getBitsFromString(const std::string& buf) {
Data::BitsType bits(buf.size());
for (size_t i = 0; i < buf.size(); ++i) {
if (buf[i] == '0')
bits[i] = 0;
else if (buf[i] == '1')
bits[i] = 1;
else
throw std::logic_error("Wrong data");
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.