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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5f477e95180507b7b629a5d85d34855aad9bd38d | support/travis.sh | support/travis.sh |
set -e
set -x
CHROME_REVISION=142910
sh -e /etc/init.d/xvfb start && git submodule update --init
if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then
sudo apt-get install -y unzip libxss1
curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux/$CHROME_REVISION/chrome-linux.zip"
unz... |
set -e
set -x
CHROME_REVISION=142910
sh -e /etc/init.d/xvfb start && git submodule update --init
if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then
sudo apt-get install -y unzip libxss1
curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux/$CHROME_REVISION/chrome-linux.zip"
unz... | Add back "Use the latest PhantomJS precompiled binary." | Add back "Use the latest PhantomJS precompiled binary."
This reverts commit b0dae96667f485468b17f46d3784b1d557c0f480.
| Shell | mit | titusfortner/watir,titusfortner/watir,abotalov/watir-webdriver,sportngin/watir-webdriver,jkotests/watir-webdriver,abotalov/watir-webdriver,jkotests/watir,titusfortner/watir-webdriver,jkotests/watir-webdriver,abaird/watir-webdriver,jkotests/watir,watir/watir,abaird/watir-webdriver,jkotests/watir,titusfortner/watir,sport... | shell | ## Code Before:
set -e
set -x
CHROME_REVISION=142910
sh -e /etc/init.d/xvfb start && git submodule update --init
if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then
sudo apt-get install -y unzip libxss1
curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux/$CHROME_REVISION/chrome-... |
4dfe8b84bd11b3d5758349c78cf543693768eaa4 | assets/javascripts/templates/profile.js.mustache.slim | assets/javascripts/templates/profile.js.mustache.slim | .row
.span2
.span8
| {{#profile}}
.page-header
.row
.span2
img.avatar-large.img-rounded src='{{avatar}}'
.span6.no-offset
h2.condensed
| {{^hasName}}
a href='{{{entity}}}' {{name}}
| {{/hasName}}
| {{#hasName}}
... | .row
.span2
.span8
| {{#profile}}
.page-header
.row
.span2
img.avatar-large.img-rounded src='{{avatar}}'
.span6.no-offset
h2.condensed
| {{^hasName}}
a href='{{{entity}}}' {{name}}
| {{/hasName}}
| {{#hasName}}
... | Fix follow button not showing up on profiles without name | Fix follow button not showing up on profiles without name
| Slim | bsd-3-clause | tent/tent-status,tent/tent-status | slim | ## Code Before:
.row
.span2
.span8
| {{#profile}}
.page-header
.row
.span2
img.avatar-large.img-rounded src='{{avatar}}'
.span6.no-offset
h2.condensed
| {{^hasName}}
a href='{{{entity}}}' {{name}}
| {{/hasName}}
... |
07668a445da9944dccb12a36bbc012c639cba778 | docs/source/install/index.rst | docs/source/install/index.rst | Installation
============
To install and run |st2| on Ubuntu/Debian or RedHat/Fedora with all dependencies,
download and run the deployment script.
::
curl -q -k -O https://ops.stackstorm.net/releases/st2/scripts/st2_deploy.sh
chmod +x st2_deploy.sh
sudo ./st2_deploy.sh
This will download and install th... | Installation
============
.. note::
st2_deploy.sh script allows you to easily install and run |st2| with all the
dependencies on a single server. It's only intented to be used for testing,
evaluation and demonstration purposes (it doesn't use HTTPS, it uses flat file
htpasswd based authentication, etc... | Add a note which says that st2_deploy should NOT be used for production deployments. | Add a note which says that st2_deploy should NOT be used for production
deployments.
| reStructuredText | apache-2.0 | jtopjian/st2,Itxaka/st2,armab/st2,dennybaa/st2,StackStorm/st2,dennybaa/st2,lakshmi-kannan/st2,grengojbo/st2,nzlosh/st2,alfasin/st2,peak6/st2,armab/st2,tonybaloney/st2,emedvedev/st2,StackStorm/st2,Plexxi/st2,tonybaloney/st2,grengojbo/st2,StackStorm/st2,alfasin/st2,Itxaka/st2,emedvedev/st2,StackStorm/st2,Itxaka/st2,laksh... | restructuredtext | ## Code Before:
Installation
============
To install and run |st2| on Ubuntu/Debian or RedHat/Fedora with all dependencies,
download and run the deployment script.
::
curl -q -k -O https://ops.stackstorm.net/releases/st2/scripts/st2_deploy.sh
chmod +x st2_deploy.sh
sudo ./st2_deploy.sh
This will downloa... |
f80b98e1fd670a1b5f559add52bf9693627b5a97 | docs/readme.md | docs/readme.md |
- [How to install](./installation.md)
- [Basic usage](./basic-usage.md)
- [Slack notifications](./slack-notifications.md)
- [Desktop notifications](./desktop-notifications.md)
- [Filters](./filters.md)
- [Range restrictions](./range-restrictions.md)
- [Changing languages](./languages.md)
- [Support](./support.md)
|
- [How to install](./installation.md)
- [Basic usage](./basic-usage.md)
- [Slack notifications](./slack-notifications.md)
- [Desktop notifications](./desktop-notifications.md)
- [Filters](./filters.md)
- [Range restrictions](./range-restrictions.md)
- [Changing languages](./languages.md)
- [Support](./support.md)
- [A... | Add link to the advanced usage doc | Add link to the advanced usage doc
| Markdown | mit | jacobmarshall/pokevision-cli,jacobmarshall/pokevision-cli | markdown | ## Code Before:
- [How to install](./installation.md)
- [Basic usage](./basic-usage.md)
- [Slack notifications](./slack-notifications.md)
- [Desktop notifications](./desktop-notifications.md)
- [Filters](./filters.md)
- [Range restrictions](./range-restrictions.md)
- [Changing languages](./languages.md)
- [Support](./... |
61d0205d791b4d87347ceb6ff4d497fc50001e56 | README.md | README.md |
A Node library for working with environment variables.
---
- [**Installing**](#installing)
- [**Getting Started**](#getting-started)
---
## Installing
Install it using node package manager.
```
npm install --save thenv
```
## Getting Started
The simplest and the cleanest way.
```js
const thenv = require('then... |
A Node library for working with environment variables.
---
- [**Installing**](#installing)
- [**Getting Started**](#getting-started)
---
## Installing
Install it using node package manager.
```
npm install --save thenv
```
## Getting Started
The simplest and the cleanest way.
```js
const thenv = require('then... | Add a second usage example in the readme file. | Add a second usage example in the readme file.
| Markdown | mit | rhberro/thenv | markdown | ## Code Before:
A Node library for working with environment variables.
---
- [**Installing**](#installing)
- [**Getting Started**](#getting-started)
---
## Installing
Install it using node package manager.
```
npm install --save thenv
```
## Getting Started
The simplest and the cleanest way.
```js
const thenv... |
6b29703e158ea414bdd4fc6c5692730006a30cf8 | README.md | README.md | Ember-Memento
==============
A mixin for Ember.js which adds undo/redo functionality to `Ember.Object`'s.
Usage
-----
Add the mixin, located in `app/lib/memento.js` to your project.
Use it in your objects which shall offer the functionality:
```javascript
var myObj = Ember.Object.create(Ember.Memento, {
// proper... | Ember-Memento [](http://travis-ci.org/pangratz/ember-memento)
==============
A mixin for Ember.js which adds undo/redo functionality to `Ember.Object`'s.
Usage
-----
Add the mixin, located in `app/lib/memento.js` to your project.
Use it in your... | Add Travis-CI build status image | Add Travis-CI build status image
| Markdown | isc | pangratz/ember-memento,greyhwndz/ember-memento,pangratz/ember-memento,greyhwndz/ember-memento,greyhwndz/ember-memento | markdown | ## Code Before:
Ember-Memento
==============
A mixin for Ember.js which adds undo/redo functionality to `Ember.Object`'s.
Usage
-----
Add the mixin, located in `app/lib/memento.js` to your project.
Use it in your objects which shall offer the functionality:
```javascript
var myObj = Ember.Object.create(Ember.Memen... |
bd0485829c964df46810edda20b5b928866b899e | src/Introspection/MutationType.php | src/Introspection/MutationType.php | <?php
/**
* Date: 03.12.15
*
* @author Portey Vasil <portey@gmail.com>
*/
namespace Youshido\GraphQL\Introspection;
use Youshido\GraphQL\Schema;
use Youshido\GraphQL\Type\Config\TypeConfigInterface;
use Youshido\GraphQL\Type\Field\Field;
use Youshido\GraphQL\Type\Object\AbstractObjectType;
class MutationType ext... | <?php
/**
* Date: 03.12.15
*
* @author Portey Vasil <portey@gmail.com>
*/
namespace Youshido\GraphQL\Introspection;
use Youshido\GraphQL\Schema;
use Youshido\GraphQL\Type\Config\TypeConfigInterface;
use Youshido\GraphQL\Type\Field\Field;
use Youshido\GraphQL\Type\Object\AbstractObjectType;
use Youshido\GraphQL\Ty... | Fix bug when no mutation was declared for schema | Fix bug when no mutation was declared for schema
| PHP | mit | Youshido/GraphQL | php | ## Code Before:
<?php
/**
* Date: 03.12.15
*
* @author Portey Vasil <portey@gmail.com>
*/
namespace Youshido\GraphQL\Introspection;
use Youshido\GraphQL\Schema;
use Youshido\GraphQL\Type\Config\TypeConfigInterface;
use Youshido\GraphQL\Type\Field\Field;
use Youshido\GraphQL\Type\Object\AbstractObjectType;
class ... |
4b8b3303de3425bb99621ff9648a7b677bcfec2e | client/views/common/mobile_nav.html | client/views/common/mobile_nav.html | <template name="mobile_nav">
<div id="" class="mobile-nav">
<div>
<ul>
<li><a class="top" href="/top">Top</a></li>
<li><a class="new" href="/new">New</a></li>
<li><a class="digest" href="/digest">Digest</a></li>
{{#if currentUser.isAdmin}}
<li><a class="users" href=... | <template name="mobile_nav">
<div id="" class="mobile-nav">
<div>
<ul>
<li><a class="top" href="/top">Top</a></li>
<li><a class="new" href="/new">New</a></li>
<li><a class="digest" href="/digest">Digest</a></li>
{{#if currentUser.isAdmin}}
<li><a class="users" href=... | Add post button to mobile nav. | Add post button to mobile nav.
| HTML | mit | vlipco/startupcol-telescope,vlipco/startupcol-telescope | html | ## Code Before:
<template name="mobile_nav">
<div id="" class="mobile-nav">
<div>
<ul>
<li><a class="top" href="/top">Top</a></li>
<li><a class="new" href="/new">New</a></li>
<li><a class="digest" href="/digest">Digest</a></li>
{{#if currentUser.isAdmin}}
<li><a cla... |
b496b6160d2e6922eeb5b913ad233698c3642ba3 | vim/ftplugin/javascript.vim | vim/ftplugin/javascript.vim | " let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')
" let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
| " let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')
" let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
fun! RunESlint(path)
" Clear terminal
execute '!clear'
" Run ESLint
execute '! ./node_modules/.bin/eslint ' . expand('%')
endfun
comm... | Add command to run local installation of ESLint | Add command to run local installation of ESLint
| VimL | mit | ruiafonsopereira/dotfiles,ruiafonsopereira/dotfiles | viml | ## Code Before:
" let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')
" let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
## Instruction:
Add command to run local installation of ESLint
## Code After:
" let s:eslint_path = system('PATH=$(npm bin):$... |
7b676b0fb507c4bf15dee761236839ea08f7abf9 | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.0.0
- 2.1.5
- 2.2.4
- 2.3.0
services:
- redis-server
script: bundle exec rspec spec
sudo: false
| language: ruby
rvm:
- 2.0.0
- 2.1.5
- 2.2.4
- 2.3.0
- 2.4
- 2.5
- 2.6
services:
- redis-server
script: bundle exec rspec spec
sudo: false
| Add 2.4/5/6 supported ruby versions | Add 2.4/5/6 supported ruby versions
| YAML | mit | tpitale/mail_room | yaml | ## Code Before:
language: ruby
rvm:
- 2.0.0
- 2.1.5
- 2.2.4
- 2.3.0
services:
- redis-server
script: bundle exec rspec spec
sudo: false
## Instruction:
Add 2.4/5/6 supported ruby versions
## Code After:
language: ruby
rvm:
- 2.0.0
- 2.1.5
- 2.2.4
- 2.3.0
- 2.4
- 2.5
- 2.6
services:
- redis-s... |
e38bb0523ef073fd79fcf111b1e357427ce77d81 | packages/core/src/Rules/PatchSyncTeX.js | packages/core/src/Rules/PatchSyncTeX.js | /* @flow */
import Rule from '../Rule'
import type { Phase } from '../types'
function escapePath (filePath) {
return filePath.replace(/\\/g, '\\\\')
}
export default class PatchSyncTeX extends Rule {
static parameterTypes: Array<Set<string>> = [
new Set(['KnitrConcordance']),
new Set(['SyncTeX'])
]
... | /* @flow */
import Rule from '../Rule'
import type { Phase } from '../types'
function escapePath (filePath) {
return filePath.replace(/\\/g, '\\\\')
}
export default class PatchSyncTeX extends Rule {
static parameterTypes: Array<Set<string>> = [
new Set(['Knitr']),
new Set(['SyncTeX']),
new Set(['Kn... | Use parameters for path resolution | Use parameters for path resolution
| JavaScript | mit | yitzchak/ouroboros,yitzchak/dicy,yitzchak/dicy,yitzchak/ouroboros,yitzchak/dicy | javascript | ## Code Before:
/* @flow */
import Rule from '../Rule'
import type { Phase } from '../types'
function escapePath (filePath) {
return filePath.replace(/\\/g, '\\\\')
}
export default class PatchSyncTeX extends Rule {
static parameterTypes: Array<Set<string>> = [
new Set(['KnitrConcordance']),
new Set(['S... |
861e37ad5969f764574722f4cfc0734511cbac7f | include/asm-arm/mach/flash.h | include/asm-arm/mach/flash.h | /*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASMARM_MACH_FLA... | /*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASMARM_MACH_FLA... | Add memory control method to support OneNAND sync burst read | [ARM] 3057/1: Add memory control method to support OneNAND sync burst read
Patch from Kyungmin Park
This patch is required for OneNAND MTD to passing the OneNAND sync. burst read
Signed-off-by: Kyungmin Park
Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... | c | ## Code Before:
/*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef... |
6b9d90e12c436a6399d855b95e3161c673c782be | LinkedIdeas/CanvasView.swift | LinkedIdeas/CanvasView.swift | //
// CanvasView.swift
// LinkedIdeas
//
// Created by Felipe Espinoza Castillo on 02/11/15.
// Copyright © 2015 Felipe Espinoza Dev. All rights reserved.
//
import Cocoa
protocol CanvasViewDelegate {
// mouse events
func singleClick(event:NSEvent)
}
class CanvasView: NSView {
var delegate: CanvasViewDe... | //
// CanvasView.swift
// LinkedIdeas
//
// Created by Felipe Espinoza Castillo on 02/11/15.
// Copyright © 2015 Felipe Espinoza Dev. All rights reserved.
//
import Cocoa
protocol CanvasViewDelegate {
// mouse events
func singleClick(event:NSEvent)
}
class CanvasView: NSView {
var delegate: CanvasViewDe... | Add NSView.sprintf function in extension | Add NSView.sprintf function in extension
| Swift | mit | fespinoza/linked-ideas-osx,fespinoza/linked-ideas-osx | swift | ## Code Before:
//
// CanvasView.swift
// LinkedIdeas
//
// Created by Felipe Espinoza Castillo on 02/11/15.
// Copyright © 2015 Felipe Espinoza Dev. All rights reserved.
//
import Cocoa
protocol CanvasViewDelegate {
// mouse events
func singleClick(event:NSEvent)
}
class CanvasView: NSView {
var delega... |
20de9e04059337e59faf3aaa801c4f90527973e6 | test/powershell/Select-XML.Tests.ps1 | test/powershell/Select-XML.Tests.ps1 |
Describe "Select-XML DRT Unit Tests" -Tags DRT{
$tmpDirectory = $TestDrive
$testfilename = "testfile.xml"
$testfile = Join-Path -Path $tmpDirectory -ChildPath $testfilename
It "Select-XML should work"{
$xmlContent = @"
<?xml version ="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book category="CHILDREN">
<titl... |
Describe "Select-XML DRT Unit Tests" -Tags DRT{
BeforeAll {
$testfile = Join-Path -Path $TestDrive -ChildPath "testfile.xml"
$xmlContent = @"
<?xml version ="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book category="CHILDREN">
<title lang="english">Harry Potter</title>
<price>30.00</price>
</book>
<book c... | Update fix based on comments for Select-XML Pester Test | Update fix based on comments for Select-XML Pester Test
| PowerShell | mit | bmanikm/PowerShell,JamesWTruher/PowerShell-1,kmosher/PowerShell,kmosher/PowerShell,bingbing8/PowerShell,bingbing8/PowerShell,bingbing8/PowerShell,JamesWTruher/PowerShell-1,bingbing8/PowerShell,bmanikm/PowerShell,kmosher/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,daxian-dbw/PowerShell,jsoref/PowerShell,bman... | powershell | ## Code Before:
Describe "Select-XML DRT Unit Tests" -Tags DRT{
$tmpDirectory = $TestDrive
$testfilename = "testfile.xml"
$testfile = Join-Path -Path $tmpDirectory -ChildPath $testfilename
It "Select-XML should work"{
$xmlContent = @"
<?xml version ="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book category="CH... |
2536f5d41586ffa7465607acee1ed5768b76f3c3 | spec/cukeforker/vnc_server_pool_spec.rb | spec/cukeforker/vnc_server_pool_spec.rb | require File.expand_path("../../spec_helper", __FILE__)
module CukeForker
describe VncServerPool do
let(:pool) { VncServerPool.new(3, SpecHelper::FakeVnc) }
it "creates 3 instances of the given display class" do
SpecHelper::FakeVnc.should_receive(:new).exactly(3).times
pool = VncServerPool.new... | require File.expand_path("../../spec_helper", __FILE__)
module CukeForker
describe VncServerPool do
let(:pool) { VncServerPool.new(3, SpecHelper::FakeVnc) }
it "creates 3 instances of the given display class" do
SpecHelper::FakeVnc.should_receive(:new).exactly(3).times
pool = VncServerPool.new... | Add spec for launching the VncServerPool | Add spec for launching the VncServerPool
| Ruby | mit | jesg/jcukeforker,jarib/cukeforker,Wallaceh/cukeforker | ruby | ## Code Before:
require File.expand_path("../../spec_helper", __FILE__)
module CukeForker
describe VncServerPool do
let(:pool) { VncServerPool.new(3, SpecHelper::FakeVnc) }
it "creates 3 instances of the given display class" do
SpecHelper::FakeVnc.should_receive(:new).exactly(3).times
pool = V... |
403892ceed361b3951f056e4791e194b2d3e7665 | keymaps/keybinding-resolver.cson | keymaps/keybinding-resolver.cson | '.workspace .platform-darwin':
'cmd-.': 'key-binding-resolver:toggle'
'.workspace .platform-win32':
'ctrl-.': 'key-binding-resolver:toggle'
| '.workspace .platform-darwin':
'cmd-.': 'key-binding-resolver:toggle'
'.workspace .platform-win32':
'ctrl-.': 'key-binding-resolver:toggle'
'.workspace .platform-linux':
'ctrl-.': 'key-binding-resolver:toggle'
| Add ctrl-. keybinding on Linux | :penguin: Add ctrl-. keybinding on Linux
| CoffeeScript | mit | atom/keybinding-resolver | coffeescript | ## Code Before:
'.workspace .platform-darwin':
'cmd-.': 'key-binding-resolver:toggle'
'.workspace .platform-win32':
'ctrl-.': 'key-binding-resolver:toggle'
## Instruction:
:penguin: Add ctrl-. keybinding on Linux
## Code After:
'.workspace .platform-darwin':
'cmd-.': 'key-binding-resolver:toggle'
'.workspace ... |
a07e5d643949833a32c17cdc8cf355d078403135 | .travis.yml | .travis.yml | language: php
php:
- 5.5
before_script:
- composer self-update
- composer --dev install
script:
- php ./vendor/bin/phpunit -c ./tests/.
| language: php
php:
- 5.5
before_script:
- echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- composer self-update
- composer --dev install
script:
- php ./vendor/bin/phpunit -c ./tests/.
| Add mongo extension during before_script | Add mongo extension during before_script
| YAML | bsd-3-clause | gingerwfms/ginger-core | yaml | ## Code Before:
language: php
php:
- 5.5
before_script:
- composer self-update
- composer --dev install
script:
- php ./vendor/bin/phpunit -c ./tests/.
## Instruction:
Add mongo extension during before_script
## Code After:
language: php
php:
- 5.5
before_script:
- echo "extension=mongo.so" >> `php ... |
61d8c049a9e91ff90f8665ed12ca40ae5bc94c4f | src/styles/Icons/_Sprite.js | src/styles/Icons/_Sprite.js | import React from "react";
import PropTypes from "prop-types";
import SVG from "./assets/_sprite.svg";
import s4e from "svg4everybody";
export default class Sprite extends React.Component {
static loaded = false;
static propTypes = {
id: PropTypes.string,
viewBox: PropTypes.string
};
state = {
re... | import React from "react";
import PropTypes from "prop-types";
import SVG from "./assets/_sprite.svg";
import s4e from "svg4everybody";
export default class Sprite extends React.Component {
static loaded = false;
static propTypes = {
id: PropTypes.string,
viewBox: PropTypes.string
};
state = {
re... | Add viewbox to empty svg | Add viewbox to empty svg
| JavaScript | mit | tutti-ch/react-styleguide,tutti-ch/react-styleguide | javascript | ## Code Before:
import React from "react";
import PropTypes from "prop-types";
import SVG from "./assets/_sprite.svg";
import s4e from "svg4everybody";
export default class Sprite extends React.Component {
static loaded = false;
static propTypes = {
id: PropTypes.string,
viewBox: PropTypes.string
};
... |
6ca06d79156264123dc0dc962924326df32e7152 | mungegithub/submit-queue/deployment/community/configmap.yaml | mungegithub/submit-queue/deployment/community/configmap.yaml | http-cache-dir: /cache/httpcache
organization: kubernetes
project: community
# Make sure approval-handler and blunderbuss run before submit-queue.
# Otherwise it's going to take an extra-cycle to detect the label change.
# Run blunderbuss before approval-handler, so that we can suggest approvers
# based on assigned rev... | http-cache-dir: /cache/httpcache
organization: kubernetes
project: community
# Make sure approval-handler and blunderbuss run before submit-queue.
# Otherwise it's going to take an extra-cycle to detect the label change.
# Run blunderbuss before approval-handler, so that we can suggest approvers
# based on assigned rev... | Enable `close-stable` munger on community repo | Enable `close-stable` munger on community repo | YAML | apache-2.0 | michelle192837/test-infra,krzyzacy/test-infra,kargakis/test-infra,monopole/test-infra,brahmaroutu/test-infra,ixdy/kubernetes-test-infra,shyamjvs/test-infra,kubernetes/test-infra,spxtr/test-infra,pwittrock/test-infra,mindprince/test-infra,brahmaroutu/test-infra,jessfraz/test-infra,dims/test-infra,spxtr/test-infra,brahma... | yaml | ## Code Before:
http-cache-dir: /cache/httpcache
organization: kubernetes
project: community
# Make sure approval-handler and blunderbuss run before submit-queue.
# Otherwise it's going to take an extra-cycle to detect the label change.
# Run blunderbuss before approval-handler, so that we can suggest approvers
# based... |
78610484bc84126df2012bd6f056ae50ea792d6a | services/backend/src/main/resources/org/apache/tika/mime/custom-mimetypes.xml | services/backend/src/main/resources/org/apache/tika/mime/custom-mimetypes.xml | <?xml version="1.0" encoding="UTF-8"?>
<mime-info>
<mime-type type="application/x-kicad-schematic">
<glob pattern="*.sch"/>
<magic priority="60">
<match value="EESchema Schematic File Version 2" type="string" offset="0">
</match>
</magic>
</mime-type>
</mime-info>... | <?xml version="1.0" encoding="UTF-8"?>
<mime-info>
<mime-type type="application/x-kicad-schematic">
<glob pattern="*.sch"/>
<magic priority="60">
<match value="EESchema Schematic File Version 2" type="string" offset="0">
</match>
</magic>
</mime-type>
<mime-ty... | Add kicad pcb content type detection | Add kicad pcb content type detection
| XML | agpl-3.0 | MarSik/shelves,MarSik/shelves,MarSik/shelves,MarSik/shelves | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info>
<mime-type type="application/x-kicad-schematic">
<glob pattern="*.sch"/>
<magic priority="60">
<match value="EESchema Schematic File Version 2" type="string" offset="0">
</match>
</magic>
</mime-ty... |
97c0f23c676de7e726e938bf0b61087834cf9fd9 | netbox/tenancy/api/serializers.py | netbox/tenancy/api/serializers.py | from rest_framework import serializers
from extras.api.serializers import CustomFieldSerializer
from tenancy.models import Tenant, TenantGroup
#
# Tenant groups
#
class TenantGroupSerializer(serializers.ModelSerializer):
class Meta:
model = TenantGroup
fields = ['id', 'name', 'slug']
class Te... | from rest_framework import serializers
from extras.api.serializers import CustomFieldSerializer
from tenancy.models import Tenant, TenantGroup
#
# Tenant groups
#
class TenantGroupSerializer(serializers.ModelSerializer):
class Meta:
model = TenantGroup
fields = ['id', 'name', 'slug']
class Te... | Add description field to TenantSerializer | Add description field to TenantSerializer
This might be just an oversight. Other data models do include the description in their serialisers. The API produces the description field with this change. | Python | apache-2.0 | digitalocean/netbox,snazy2000/netbox,digitalocean/netbox,snazy2000/netbox,Alphalink/netbox,snazy2000/netbox,lampwins/netbox,Alphalink/netbox,snazy2000/netbox,Alphalink/netbox,lampwins/netbox,lampwins/netbox,digitalocean/netbox,digitalocean/netbox,lampwins/netbox,Alphalink/netbox | python | ## Code Before:
from rest_framework import serializers
from extras.api.serializers import CustomFieldSerializer
from tenancy.models import Tenant, TenantGroup
#
# Tenant groups
#
class TenantGroupSerializer(serializers.ModelSerializer):
class Meta:
model = TenantGroup
fields = ['id', 'name', 's... |
6ca81fefbe3e175bd9d672faf7b2393afb764105 | app/views/users/show/_repositories.html.erb | app/views/users/show/_repositories.html.erb | <%= pull_box(t("views.site.dashboard.repositories")) do %>
<% if repositories.blank? %>
<% if is_current_user?(user) %>
You currently do not have any repository clones. You can clone a repository you wish to contribute to by going to a repository overview page and clicking the "Clone repository" button in t... | <%= pull_box(t("views.site.dashboard.repositories"), :class => 'repositories-box') do %>
<% if repositories.blank? %>
<p class="hint muted">
<% if is_current_user?(user) %>
You currently do not have any repository clones. You can clone a repository you wish to contribute to by going to a repository ... | Add special class for repositories box | Add special class for repositories box
| HTML+ERB | agpl-3.0 | SamuelMoraesF/Gitorious,spencerwp/mainline,tigefa4u/gitorious-mainline,gitorious/mainline,rae/gitorious-mainline,gitorious/mainline,SamuelMoraesF/Gitorious,tigefa4u/gitorious-mainline,SamuelMoraesF/Gitorious,elcom/gitorious,Gitorious-backup/mainline,tigefa4u/gitorious-mainline,elcom/gitorious,rae/gitorious-mainline,elc... | html+erb | ## Code Before:
<%= pull_box(t("views.site.dashboard.repositories")) do %>
<% if repositories.blank? %>
<% if is_current_user?(user) %>
You currently do not have any repository clones. You can clone a repository you wish to contribute to by going to a repository overview page and clicking the "Clone reposit... |
e18925b21822f60d49dfef8a430b72c91d26627f | client/README.md | client/README.md | Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Fixtures
During development phase, server api are simulated.
Fixtures are in `src/app/in-memory-data.service.ts`
| Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Fixtures
During development phase, server api are simulated.
Fixtures are in `src/app/in-memory-data.service.ts`
### Server version vs In-memory-data
Server api can be... | Add information to set server api in front | Add information to set server api in front
| Markdown | agpl-3.0 | SciencesPo/isari,SciencesPo/isari,SciencesPo/isari,SciencesPo/isari | markdown | ## Code Before:
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Fixtures
During development phase, server api are simulated.
Fixtures are in `src/app/in-memory-data.service.ts`
## Instruction:
Add information to set ... |
91e391e53ffb65d5be0659f25fcaafdc11f20695 | growsocial/common/methods/searchMethods.js | growsocial/common/methods/searchMethods.js | Meteor.methods({
addSearchSamplePeople: function() {
var first_names = [
"Ada",
"Grace",
"Marie",
"Carl",
"Nikola",
"Claude",
"Peter",
"Stefan",
"Stephen",
"Lisa",
"Christian",
"Barack"
];
var last_names = [
"Lovelace",
... | Meteor.methods({
addSearchSamplePeople: function() {
var first_names = [
"Ada",
"Grace",
"Marie",
"Carl",
"Nikola",
"Claude",
"Peter",
"Stefan",
"Stephen",
"Lisa",
"Christian",
"Barack"
];
var last_names = [
"Lovelace",
... | Allow user to remove sample people | Allow user to remove sample people
| JavaScript | apache-2.0 | GrowSocial/pilot,GrowSocial/pilot | javascript | ## Code Before:
Meteor.methods({
addSearchSamplePeople: function() {
var first_names = [
"Ada",
"Grace",
"Marie",
"Carl",
"Nikola",
"Claude",
"Peter",
"Stefan",
"Stephen",
"Lisa",
"Christian",
"Barack"
];
var last_names = [
"L... |
fde45f94953cb73472737e86af015d376ca1b0f2 | build.sh | build.sh | export MUSL_VERSION=1.1.12
wget http://www.musl-libc.org/releases/musl-$MUSL_VERSION.tar.gz
tar -xvf musl-$MUSL_VERSION.tar.gz
cd musl-$MUSL_VERSION
CFLAGS="-O2" ./configure --prefix=/usr/local --disable-shared
make
sudo make install
cd ..
# Cleanup
rm -rf musl-$MUSL_VERSION
rm musl-$MUSL_VERSION.tar.gz
# Install dep... | sudo apt-get -y install libssl-dev
# Get latest Musl version from http://www.musl-libc.org/download.html
export musl_version=1.1.12
wget http://www.musl-libc.org/releases/musl-$musl_version.tar.gz
tar -xvf musl-$musl_version.tar.gz
cd musl-$musl_version
./configure --prefix=/usr/local --disable-shared
make
sudo make ... | Use lower-case environment variables to avoid conflicts | Use lower-case environment variables to avoid conflicts
| Shell | mit | bmaupin/openldap-tools-static | shell | ## Code Before:
export MUSL_VERSION=1.1.12
wget http://www.musl-libc.org/releases/musl-$MUSL_VERSION.tar.gz
tar -xvf musl-$MUSL_VERSION.tar.gz
cd musl-$MUSL_VERSION
CFLAGS="-O2" ./configure --prefix=/usr/local --disable-shared
make
sudo make install
cd ..
# Cleanup
rm -rf musl-$MUSL_VERSION
rm musl-$MUSL_VERSION.tar.g... |
69d52f1cbac1c63a3a6f05aa32f8b8274cf4854f | src/open.js | src/open.js | function readSingleFile(e) {
var file = e.target.files[0];
if (!file) {
return;
}
var reader = new FileReader();
reader.onload = function(e) {
var contents = e.target.result;
displayContents(contents);
$('#play-input').disabled = false;
};
reader.readAsText(fi... | let csv = (function () {
let buildHeader = function (line) {
return "<thead><tr><th scope=\"col\"><button>"
+ line.slice(0, -1).split(",").join("</button></th><th scope=\"col\"><button>")
+ "</button></th></tr></thead>"
};
let buildAsHtml = function (lines) {
let output = [buildHeader(lines[0... | Move csv in a module | Move csv in a module
| JavaScript | mpl-2.0 | aloisdg/kanti,aloisdg/kanti | javascript | ## Code Before:
function readSingleFile(e) {
var file = e.target.files[0];
if (!file) {
return;
}
var reader = new FileReader();
reader.onload = function(e) {
var contents = e.target.result;
displayContents(contents);
$('#play-input').disabled = false;
};
read... |
0818fd8716af45da3c026c01bff667bcbc439e77 | context.go | context.go | // Copyright 2016 Marcel Gotsch. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package goserv
type Context struct {
store storage
}
func (c *Context) Set(key string, value interface{}) {
c.assureStorage()
c.store[key] = value
}
func (... | // Copyright 2016 Marcel Gotsch. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package goserv
type Context struct {
store map[string]interface{}
}
func (c *Context) Set(key string, value interface{}) {
c.assureStorage()
c.store[key] = ... | Make Context even more lazy and add convenience functions | Make Context even more lazy and add convenience functions
| Go | bsd-3-clause | gotschmarcel/goserv | go | ## Code Before:
// Copyright 2016 Marcel Gotsch. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package goserv
type Context struct {
store storage
}
func (c *Context) Set(key string, value interface{}) {
c.assureStorage()
c.store[key] =... |
fb57f6a69a5f20fae48d70fb6a2eb1fafa42257b | README.md | README.md |
A small library to compare ImageData objects.
## Install
`npm install compare-image`
## API
The library exposes 2 functions at the moment.
```ts
isSame(a: ImageData, b: ImageData): boolean
```
```ts
isSubset(imageData: ImageData, subset: ImageData): boolean
```
## Example
```ts
import * as compareImage from 'c... |
A small library to compare ImageData objects.
## Install
`npm install compare-image-data`
## API
The library exposes 2 functions at the moment.
```ts
isSame(a: ImageData, b: ImageData): boolean
```
```ts
isSubset(imageData: ImageData, subset: ImageData): boolean
```
## Example
```ts
import * as compareImage fr... | Update readme with correct npm name | Update readme with correct npm name
| Markdown | mit | ulrikstrid/compare-image,ulrikstrid/compare-image | markdown | ## Code Before:
A small library to compare ImageData objects.
## Install
`npm install compare-image`
## API
The library exposes 2 functions at the moment.
```ts
isSame(a: ImageData, b: ImageData): boolean
```
```ts
isSubset(imageData: ImageData, subset: ImageData): boolean
```
## Example
```ts
import * as comp... |
1816286463729e3090912af176bb506cd89186e4 | README.md | README.md | Flask-SimpleLDAP
================
[](https://travis-ci.org/admiralobvious/flask-simpleldap)
Flask-SimpleLDAP provides LDAP authentication for Flask.
Quickstart
----------
First, install Flask-SimpleLDAP:
$ pip install f... | Flask-SimpleLDAP
================
[](https://travis-ci.org/admiralobvious/flask-simpleldap)
Flask-SimpleLDAP provides LDAP authentication for Flask.
Quickstart
----------
First, install Flask-SimpleLDAP:
$ pip install f... | Use a python code block for syntax rendering | Use a python code block for syntax rendering | Markdown | mit | admiralobvious/flask-simpleldap | markdown | ## Code Before:
Flask-SimpleLDAP
================
[](https://travis-ci.org/admiralobvious/flask-simpleldap)
Flask-SimpleLDAP provides LDAP authentication for Flask.
Quickstart
----------
First, install Flask-SimpleLDAP:
... |
457d8a8ed679301548e157b4468b2434cd00f4c7 | spec/shoes/image_spec.rb | spec/shoes/image_spec.rb | require 'shoes/spec_helper'
describe Shoes::Image do
describe "basic" do
let(:parent) { double("parent").as_null_object }
subject { Shoes::Image.new(parent, "../static/shoes-icon.png") }
it { should be_instance_of(Shoes::Image) }
it_behaves_like "movable object"
end
end
| require 'shoes/spec_helper'
describe Shoes::Image do
describe "basic" do
let(:parent) { double("parent").as_null_object }
let(:filename) { File.expand_path "../../../static/shoes-icon.png", __FILE__ }
subject { Shoes::Image.new(parent, filename) }
it { should be_instance_of(Shoes::Image) }
it_beh... | Update Image specs to run with Swt backend | Update Image specs to run with Swt backend
| Ruby | apache-2.0 | thescientician/lightning-timer,thescientician/lightning-timer,thescientician/lightning-timer | ruby | ## Code Before:
require 'shoes/spec_helper'
describe Shoes::Image do
describe "basic" do
let(:parent) { double("parent").as_null_object }
subject { Shoes::Image.new(parent, "../static/shoes-icon.png") }
it { should be_instance_of(Shoes::Image) }
it_behaves_like "movable object"
end
end
## Instruct... |
b237eb8f8fa52c43ffa947c7fb7c37c30d1ff693 | .travis.yml | .travis.yml | language: python
python:
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "nightly" # currently points to 3.6-dev
# command to install dependencies
# PyYAML is a test dependency but Travis doesn't read tests_require from setup.py
install:
- "python setup.py -q install"
- "pip install PyYAML"
- "pip ... | language: python
python:
- "3.4"
- "3.5"
- "3.6-dev" # 3.6 development branch
- "nightly"
# command to install dependencies
# PyYAML is a test dependency but Travis doesn't read tests_require from setup.py
install:
- "python setup.py -q install"
- "pip install PyYAML"
- "pip install coverage"
- "pip ins... | Prepare for the Python 3.6 release | Prepare for the Python 3.6 release
| YAML | bsd-2-clause | ecederstrand/exchangelib | yaml | ## Code Before:
language: python
python:
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "nightly" # currently points to 3.6-dev
# command to install dependencies
# PyYAML is a test dependency but Travis doesn't read tests_require from setup.py
install:
- "python setup.py -q install"
- "pip install P... |
8ef4f9968eecd08911c8352f6620d0eba99ca190 | mac/resources/open_MENU.js | mac/resources/open_MENU.js | define(['mac/roman'], function(macintoshRoman) {
'use strict';
return function(resource) {
var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength);
resource.dataObject = {
id: dv.getUint16(0, false),
definitionProcedureResourceID: dv.getUint16(6, false... | define(['mac/roman'], function(macintoshRoman) {
'use strict';
return function(item) {
return item.getBytes().then(function(bytes) {
var dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
var dataObject = {
id: dv.getUint16(0, false),
definitionProcedureResource... | Change MENU to new loader format | Change MENU to new loader format | JavaScript | mit | radishengine/drowsy,radishengine/drowsy | javascript | ## Code Before:
define(['mac/roman'], function(macintoshRoman) {
'use strict';
return function(resource) {
var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength);
resource.dataObject = {
id: dv.getUint16(0, false),
definitionProcedureResourceID: dv.ge... |
2edd866a046b66a631a9470f26a1da4c449573ba | templates/default/contacts.cfg.erb | templates/default/contacts.cfg.erb |
define contact {
contact_name root
alias Root
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands service-notify-by-email
host_n... |
define contact {
contact_name root
alias Root
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands service-notify-by-email
host_n... | Check to make sure that not just a['nagios']['email'] exists, but also that a['nagios'] exists | Check to make sure that not just a['nagios']['email'] exists, but also that a['nagios'] exists
The previous check only worked if the nagios block existed, but not the
e-mail value. If the entire nagios block was missing an error would
still be thrown. I've tested this under both scenarios.
| HTML+ERB | apache-2.0 | Piousbox-cookbooks/nagios,aaronkvanmeerten/nagios,bitmonk/chef-nagios,spudnic/nagios,Tealium/nagios,polamjag/nagios,earzur/nagios,ovaistariq/nagios,mrlamroger/nagios,spudnic/nagios,Piousbox-cookbooks/nagios,jtimberman/nagios,cookbooks/oc-nagios,bitmonk/chef-nagios,OpenGov/nagios,mconf-cookbooks/nagios,caleb/nagios,Cana... | html+erb | ## Code Before:
define contact {
contact_name root
alias Root
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands service-notify-b... |
3ae2484cd088efe2476e591e7847efa7d646d47a | src/web/WEB-INF/web.xml | src/web/WEB-INF/web.xml | <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Jive Messenger</display-name>
<description>Open Source XMPP Server by Jive Software (jivesoftware.org)</description>
... | <?xmlTest version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Jive Messenger</display-name>
<description>Open Source XMPP Server by Jive Software (jivesoftware.org)</descripti... | Add new tags for new UI | Add new tags for new UI
git-svn-id: 036f06d8526d2d198eab1b7c5596fd12295db076@255 b35dd754-fafc-0310-a699-88a17e54d16e
| XML | apache-2.0 | igniterealtime/Openfire,akrherz/Openfire,guusdk/Openfire,Gugli/Openfire,Gugli/Openfire,igniterealtime/Openfire,igniterealtime/Openfire,speedy01/Openfire,akrherz/Openfire,magnetsystems/message-openfire,GregDThomas/Openfire,speedy01/Openfire,magnetsystems/message-openfire,guusdk/Openfire,guusdk/Openfire,speedy01/Openfire... | xml | ## Code Before:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Jive Messenger</display-name>
<description>Open Source XMPP Server by Jive Software (jivesoftware.org... |
9de0992f6dbfca92694c3af499a6ce2b003e2685 | Cargo.toml | Cargo.toml | [package]
name = "wiringpi"
version = "0.1.1"
authors = ["Erik Hedvall <hello@erikhedvall.nu>"]
build = "build.rs"
exclude = ["scripts/*", "wiringPi/**/*.o"]
description = "An API wrapper for WiringPi, implementing the most important functions and provides a bit of type system convenience. See README.md for Raspberry ... | [package]
name = "wiringpi"
version = "0.1.1"
authors = ["Erik Hedvall <hello@erikhedvall.nu>"]
build = "build.rs"
exclude = ["scripts/*", "wiringPi/**/*.o", "wiringPi/examples/**", "examples/*"]
description = "An API wrapper for WiringPi, implementing the most important functions and provides a bit of type system con... | Exclude examples from crates.io packages | Exclude examples from crates.io packages | TOML | mit | Ogeon/rust-wiringpi,lennartS/rust-wiringpi,Ogeon/rust-wiringpi,lennartS/rust-wiringpi | toml | ## Code Before:
[package]
name = "wiringpi"
version = "0.1.1"
authors = ["Erik Hedvall <hello@erikhedvall.nu>"]
build = "build.rs"
exclude = ["scripts/*", "wiringPi/**/*.o"]
description = "An API wrapper for WiringPi, implementing the most important functions and provides a bit of type system convenience. See README.m... |
695d21ace25cf9ddb6eabd82bbe39d35b34ae72f | mutt/urlhandler.sh | mutt/urlhandler.sh | frontmost() {
osascript <<EOF
tell application "System Events"
set frontApp to name of first application process whose frontmost is true
end tell
EOF
}
before=$(frontmost)
open -g "$1"
sleep 0.1
after=$(frontmost)
if [ "$before" != "$after" ]; then
open -a "$before"
fi
|
open -g "$1"
| Revert "Fuck you google chrome" | Revert "Fuck you google chrome"
This reverts commit fea352cfbf274921bfaf18eeda9b5c40db7ef747.
This bug seems to have been fixed in Chrome
| Shell | mit | keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles | shell | ## Code Before:
frontmost() {
osascript <<EOF
tell application "System Events"
set frontApp to name of first application process whose frontmost is true
end tell
EOF
}
before=$(frontmost)
open -g "$1"
sleep 0.1
after=$(frontmost)
if [ "$before" != "$after" ]; then
open -a "$before"
fi
## Instruction:
Revert "Fuc... |
e92b9eabecbb7fb90fc601f356d962fefe4f22c6 | _topics/topic-FAQ.md | _topics/topic-FAQ.md | ---
layout: topic
title: Frequently asked questions
author: Willy McAllister
comments: true
---
I get a questions about electrical engineering that are interesting but don't have a natural place to live. So they camp out here.
----
 [What's the difference between imped... | ---
layout: topic
title: Frequently asked questions
author: Willy McAllister
comments: true
---
I get a questions about electrical engineering that are interesting but don't have a natural place to live. So they camp out here for now.
----
 [What's the difference betwe... | Update link to 6 ways article. | Update link to 6 ways article.
| Markdown | mit | willymcallister/willymcallister.github.io,willymcallister/spinningnumbers,willymcallister/spinningnumbers,willymcallister/willymcallister.github.io,willymcallister/willymcallister.github.io,willymcallister/spinningnumbers | markdown | ## Code Before:
---
layout: topic
title: Frequently asked questions
author: Willy McAllister
comments: true
---
I get a questions about electrical engineering that are interesting but don't have a natural place to live. So they camp out here.
----
 [What's the differen... |
b6d953acfa849c746899e107a66efc7b1e34ec95 | app/views/employees/_show.html.haml | app/views/employees/_show.html.haml | %ul.tabs
%li.active= link_to t_model, '#tab-contact'
%li= link_to t_model(Salary), '#tab-salaries'
%li= link_to t_title(:list, Invoice), '#tab-invoices'
%li= link_to t_title(:list, Activity), '#tab-activities' if Bookyt::Engine.engines.include?('bookyt_projects')
%li= link_to t_title(:timesheet, Activity), '#... | %ul.tabs
%li.active= link_to t_model, '#tab-contact'
%li= link_to t_model(Salary), '#tab-salaries' if Bookyt::Engine.engines.include?('bookyt_salary')
%li= link_to t_title(:list, Invoice), '#tab-invoices'
%li= link_to t_title(:list, Activity), '#tab-activities' if Bookyt::Engine.engines.include?('bookyt_project... | Include salary tab in employee view only if bookyt_salary is enabled. | Include salary tab in employee view only if bookyt_salary is enabled.
| Haml | agpl-3.0 | xuewenfei/bookyt,huerlisi/bookyt,silvermind/bookyt,wtag/bookyt,silvermind/bookyt,silvermind/bookyt,hauledev/bookyt,gaapt/bookyt,huerlisi/bookyt,gaapt/bookyt,huerlisi/bookyt,hauledev/bookyt,gaapt/bookyt,xuewenfei/bookyt,hauledev/bookyt,wtag/bookyt,hauledev/bookyt,silvermind/bookyt,wtag/bookyt,xuewenfei/bookyt,gaapt/book... | haml | ## Code Before:
%ul.tabs
%li.active= link_to t_model, '#tab-contact'
%li= link_to t_model(Salary), '#tab-salaries'
%li= link_to t_title(:list, Invoice), '#tab-invoices'
%li= link_to t_title(:list, Activity), '#tab-activities' if Bookyt::Engine.engines.include?('bookyt_projects')
%li= link_to t_title(:timeshee... |
8a387d3e78c305f4fb861ee61f68943dd35c4c52 | .travis.yml | .travis.yml |
env:
global:
- secure: dIur06XYomBukvYR0aymt8D6YQpTGYvejZtInEmjOdnWziJJZmQ+HuTXMnXrrwFEFSC21uQfgBwhlItwcEzFu1ydx1LlxuUZh8sFjTFFrCWo3hRpyb4JGCAwoNvUZ1/d7MwHjGxjzFtMvnVPyo/wHlE2xgkWHZqmJfDgGkkpBuk=
language: rust
rust: nightly
script:
- cargo build
- cargo test
- cargo doc
- cd runtime; cargo test; cargo ... |
env:
global:
- secure: dIur06XYomBukvYR0aymt8D6YQpTGYvejZtInEmjOdnWziJJZmQ+HuTXMnXrrwFEFSC21uQfgBwhlItwcEzFu1ydx1LlxuUZh8sFjTFFrCWo3hRpyb4JGCAwoNvUZ1/d7MwHjGxjzFtMvnVPyo/wHlE2xgkWHZqmJfDgGkkpBuk=
language: rust
rust: nightly
script:
- cargo build
- cargo test
- cargo doc
- cd runtime; cargo test; cargo ... | Test parsers sub-crate with Travis. | [Architecture][Parsers] Test parsers sub-crate with Travis.
| YAML | apache-2.0 | ptal/Rust.peg,ptal/oak | yaml | ## Code Before:
env:
global:
- secure: dIur06XYomBukvYR0aymt8D6YQpTGYvejZtInEmjOdnWziJJZmQ+HuTXMnXrrwFEFSC21uQfgBwhlItwcEzFu1ydx1LlxuUZh8sFjTFFrCWo3hRpyb4JGCAwoNvUZ1/d7MwHjGxjzFtMvnVPyo/wHlE2xgkWHZqmJfDgGkkpBuk=
language: rust
rust: nightly
script:
- cargo build
- cargo test
- cargo doc
- cd runtime; ca... |
3c839d23e4bee8d97486cdb26d27bfff9403d826 | themes/default/views/clearboard/partials/thread-userpane.blade.php | themes/default/views/clearboard/partials/thread-userpane.blade.php | <img src="{{ $post->poster()->first()->avatarUrl() }}" alt="" class="post-avatar">
<div class="post-username">{{ $post->poster()->first()->name }}</div>
<div class="post-badge">Admin</div> | <img src="{{ $post->poster()->first()->avatarUrl() }}" alt="" class="post-avatar">
<div class="post-username">{{ $post->poster()->first()->name }}</div> | Remove admin badge from displaying on every post | Remove admin badge from displaying on every post
| PHP | mit | clearboard/clearboard,clearboard/clearboard,mitchfizz05/clearboard,mitchfizz05/clearboard | php | ## Code Before:
<img src="{{ $post->poster()->first()->avatarUrl() }}" alt="" class="post-avatar">
<div class="post-username">{{ $post->poster()->first()->name }}</div>
<div class="post-badge">Admin</div>
## Instruction:
Remove admin badge from displaying on every post
## Code After:
<img src="{{ $post->poster()->firs... |
f97df9072f339b1a9e623b9b11715012e668b09e | addon/mixins/sweetalert-mixin.js | addon/mixins/sweetalert-mixin.js | import Ember from 'ember';
import sweetAlert from '../index';
const { Mixin } = Ember;
export default Mixin.create({
sweetAlert: sweetAlert
});
| import Ember from 'ember';
import sweetAlert from '../index';
const { Mixin } = Ember;
export default Mixin.create({
sweetAlert
});
| Fix enhanced object literal lint error | Fix enhanced object literal lint error
| JavaScript | mit | Tonkpils/ember-sweetalert,Tonkpils/ember-sweetalert | javascript | ## Code Before:
import Ember from 'ember';
import sweetAlert from '../index';
const { Mixin } = Ember;
export default Mixin.create({
sweetAlert: sweetAlert
});
## Instruction:
Fix enhanced object literal lint error
## Code After:
import Ember from 'ember';
import sweetAlert from '../index';
const { Mixin } = Emb... |
990dbd2a575660212d48b23fdea91731680cc8e5 | ghdocs/ROADMAP.md | ghdocs/ROADMAP.md |
Our roadmap used to be contained in a single markdown file, but has since been transferred to a nifty Trello board where you can view requests, add comments, or even vote so we know what folks need.
To view the Trello board (that includes old requests that used to be in this file) please see the [Office UI Fabric Cor... |
Our roadmap used to be contained in a single markdown file, but has since been transferred to a nifty Trello board where you can view requests, add comments, or even vote so we know what folks need.
To view the Trello board (that includes old requests that used to be in this file) please see the [Office UI Fabric Cor... | Add line to roadmap about new requests | Add line to roadmap about new requests
| Markdown | mit | OfficeDev/Office-UI-Fabric,OfficeDev/Office-UI-Fabric | markdown | ## Code Before:
Our roadmap used to be contained in a single markdown file, but has since been transferred to a nifty Trello board where you can view requests, add comments, or even vote so we know what folks need.
To view the Trello board (that includes old requests that used to be in this file) please see the [Offi... |
aea8a3e0a9f9ba67261f62912c30e86beb05d3c3 | resources/views/admin/crud/index-search.blade.php | resources/views/admin/crud/index-search.blade.php | <div class="row">
<div class="small-12 medium-6 columns">
{!! Form::open(['url' => '/admin/' . $repository->getHandle() . '/search']) !!}
<div class="row collapse">
<div class="small-10 columns">
{!! Form::text('search', session('admin.' . $repository->getHandle() . '.search'), ['autofocus']) !!}
</div>
... | <div class="row">
<div class="small-12 medium-6 columns">
{!! Form::open(['url' => '/admin/' . $repository->getHandle() . '/search']) !!}
<div class="input-group">
{!! Form::text('search', session('admin.' . $repository->getHandle() . '.search'), ['autofocus', 'class' => 'input-group-field']) !!}
<div cla... | Fix search bar for crud indexes | Fix search bar for crud indexes
| PHP | mit | JVMartin/angel,JVMartin/angel5,JVMartin/angel5,JVMartin/angel,JVMartin/angel5,JVMartin/angel5,JVMartin/angel,JVMartin/angel | php | ## Code Before:
<div class="row">
<div class="small-12 medium-6 columns">
{!! Form::open(['url' => '/admin/' . $repository->getHandle() . '/search']) !!}
<div class="row collapse">
<div class="small-10 columns">
{!! Form::text('search', session('admin.' . $repository->getHandle() . '.search'), ['autofocus']... |
d976e01015aea0860393e6da1b1e7c09c2c59952 | test/test_helper.js | test/test_helper.js | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... | Add global navigator setting to modify the error, 'navigator is not defined', in testing with react-router link | Add global navigator setting to modify the error, 'navigator is not defined', in testing with react-router link
| JavaScript | mit | DeAnnHuang/ReduxSimpleStarter,zivolution921/ReduxSimpleStarter2,carlos-agu/BlogPosts,YacYac/ReduxSimpleStarter,sebasj/udemy-react-redux-blog,Bojan17/weatherApp,roelver/twotter,robertorb21/ReduxSimpleStarter,erlinis/ReduxSimpleStarter,josephcode773/reactYoutubeViewer,paulofabiano/react-redux-blog,allenyin55/reading_with... | javascript | ## Code Before:
import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from... |
1b2794d5488173de93ea6bdbd500eeeabff675a3 | src/main/resources/static/css/main.css | src/main/resources/static/css/main.css | body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1;
}
body > header, article {
margin-bottom: 1.75rem;
}
body > footer {
margin-top: 1.2rem;
padding-bottom: 1.4rem;
padding-top: 1.4rem;
}
main header {
margin-bottom: 0.6rem;
}
.navbar {
padding-left: 0;
}
.trunc... | body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1;
}
body > header, article {
margin-bottom: 1.75rem;
}
body > footer {
margin-top: 1.2rem;
padding-bottom: 1.4rem;
padding-top: 1.4rem;
}
main header {
margin-bottom: 0.6rem;
}
.navbar {
padding-left: 0;
padding... | Set navbar left padding to 0 | Set navbar left padding to 0
| CSS | mit | piotr-rusin/yule,piotr-rusin/yule,piotr-rusin/yule,piotr-rusin/yule | css | ## Code Before:
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1;
}
body > header, article {
margin-bottom: 1.75rem;
}
body > footer {
margin-top: 1.2rem;
padding-bottom: 1.4rem;
padding-top: 1.4rem;
}
main header {
margin-bottom: 0.6rem;
}
.navbar {
padding-le... |
79ebdc3c1c8befb4eb3d1f0713edf281ab6645da | spec/consolePresenter_spec.rb | spec/consolePresenter_spec.rb | require 'consolePresenter'
RSpec.describe ConsolePresenter do
context "With stubbed input and output" do
let(:input) { double("STDIN") }
let(:output) {
output = double("STDOUT")
printed = ""
allow(output).to receive(:print) { |text|
printed += text
}
flushed = ""
... | require 'consolePresenter'
RSpec.describe ConsolePresenter do
context "With stubbed input and output" do
let(:input) { double("STDIN") }
let(:output) {
output = double("STDOUT")
printed = ""
allow(output).to receive(:print) { |text|
printed += text
}
flushed = ""
... | Test error display in presenter | Test error display in presenter
| Ruby | mit | hughdavenport/powershop_devtrain_hangman | ruby | ## Code Before:
require 'consolePresenter'
RSpec.describe ConsolePresenter do
context "With stubbed input and output" do
let(:input) { double("STDIN") }
let(:output) {
output = double("STDOUT")
printed = ""
allow(output).to receive(:print) { |text|
printed += text
}
flu... |
5642a543983979dcac27ab143b4c555c120d3f27 | app/templates/index.hbs | app/templates/index.hbs | <section class="input">
<img src="/logo-big.png">
<div class="cmd">
<div class="cmd-frill"></div>
<div class="cmd-antifrill"></div>
<input type="text">
<div class="cmd-frill"></div>
<div class="cmd-antifrill"></div>
</div>
</section>
<section class="output">
<div id="content">
<p... | <section class="input">
<img src="/logo-big.png">
<div class="cmd">
<div class="cmd-frill"></div>
<div class="cmd-antifrill"></div>
<input type="text">
<div class="cmd-frill"></div>
<div class="cmd-antifrill"></div>
</div>
</section>
<section class="output">
<div id="content">
<p... | Add a newline after the default content | Add a newline after the default content
| Handlebars | apache-2.0 | javakat/javakat | handlebars | ## Code Before:
<section class="input">
<img src="/logo-big.png">
<div class="cmd">
<div class="cmd-frill"></div>
<div class="cmd-antifrill"></div>
<input type="text">
<div class="cmd-frill"></div>
<div class="cmd-antifrill"></div>
</div>
</section>
<section class="output">
<div id="... |
b5266eb9e1d295aa5e9660092afea64ea9f70841 | app/views/course/condition/assessments/_form.html.slim | app/views/course/condition/assessments/_form.html.slim | = simple_form_for [current_course, @conditional, @assessment_condition] do |f|
= f.error_notification
= f.association :assessment, collection: current_course.assessments
= f.input :minimum_grade_percentage, placeholder: t('.minimum_grade_placeholder')
= f.button :submit
| = simple_form_for [current_course, @conditional, @assessment_condition] do |f|
= f.error_notification
= f.association :assessment, collection: current_course.assessments.ordered_by_date_and_title
= f.input :minimum_grade_percentage, placeholder: t('.minimum_grade_placeholder')
= f.button :submit
| Sort assessment condition assessment dropdown by date and title | Sort assessment condition assessment dropdown by date and title
| Slim | mit | cysjonathan/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2 | slim | ## Code Before:
= simple_form_for [current_course, @conditional, @assessment_condition] do |f|
= f.error_notification
= f.association :assessment, collection: current_course.assessments
= f.input :minimum_grade_percentage, placeholder: t('.minimum_grade_placeholder')
= f.button :submit
## Instruction:
Sort ass... |
d3e2cb92e475d4a3ca005186c2e3240b9fc881c2 | public/barovians.php | public/barovians.php | <?php
require_once dirname( __DIR__ ) .'/barovians.php';
$barovians = new Barovians();
$title = 'Names for all you meet in Barovia';
include dirname( __DIR__ ) . '/html/top.php';
echo str_replace('!', '', $barovians->generate('male') );
echo str_replace('!', '', $barovians->generate('female') );
include dirname( __DIR_... | <?php
require_once dirname( __DIR__ ) .'/barovians.php';
$barovians = new Barovians();
$title = 'Names for all you meet in Barovia';
include dirname( __DIR__ ) . '/html/top.php';
echo $barovians->generate('male');
echo $barovians->generate('female');
include dirname( __DIR__ ) . '/html/bottom.php'; | Revert "removed ! on barovian page" | Revert "removed ! on barovian page"
This reverts commit 241362cfd9c42b348014728379dcfed60f549570.
| PHP | mit | pwtyler/bardme | php | ## Code Before:
<?php
require_once dirname( __DIR__ ) .'/barovians.php';
$barovians = new Barovians();
$title = 'Names for all you meet in Barovia';
include dirname( __DIR__ ) . '/html/top.php';
echo str_replace('!', '', $barovians->generate('male') );
echo str_replace('!', '', $barovians->generate('female') );
include... |
bf0a6c8fd91c8fec964cf498879bc75179be43b6 | .travis.yml | .travis.yml | language: python
python:
- "3.6"
install: pip install pipenv && pipenv install --dev
script: pipenv run pytest
| language: python
python:
- "3.6"
- "3.7-dev"
- "nightly"
install: pip install pipenv && pipenv install --dev
script: pipenv run pytest
| Update Python builds for CI | Update Python builds for CI
| YAML | mit | mattstibbs/blockbuster-server,mattstibbs/blockbuster-server | yaml | ## Code Before:
language: python
python:
- "3.6"
install: pip install pipenv && pipenv install --dev
script: pipenv run pytest
## Instruction:
Update Python builds for CI
## Code After:
language: python
python:
- "3.6"
- "3.7-dev"
- "nightly"
install: pip install pipenv && pipenv install --dev
script: pipenv ... |
b5188aa96e87c0f41cf2071b27d55b7ff55c77ad | README.rst | README.rst | ==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web apps, and html5.
| ==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web apps, and html5.
Quick Sta... | Add quick start instructions, in case anyone else is interested. | Add quick start instructions, in case anyone else is interested.
| reStructuredText | agpl-3.0 | nejucomo/sgg,nejucomo/sgg,nejucomo/sgg | restructuredtext | ## Code Before:
==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web apps, and h... |
215af999ca4c1cb5e8872e92e8df217a28f85d1e | modules/govuk_jenkins/templates/jobs/govuk_navigation_link_analysis.yaml.erb | modules/govuk_jenkins/templates/jobs/govuk_navigation_link_analysis.yaml.erb | ---
- scm:
name: govuk_tagging_monitor_for_nav
scm:
- git:
url: git@github.com:alphagov/govuk-tagging-monitor.git
basedir: govuk-tagging-monitor
branches:
- master
- job:
name: govuk_navigation_link_analysis
display-name: govuk-navigation-link-analysis
... | ---
- scm:
name: govuk_tagging_monitor_for_nav
scm:
- git:
url: git@github.com:alphagov/govuk-tagging-monitor.git
basedir: govuk-tagging-monitor
branches:
- master
- job:
name: govuk_navigation_link_analysis
display-name: govuk-navigation-link-analysis
... | Save navigation link analysis to a shared Google Drive | Save navigation link analysis to a shared Google Drive
| HTML+ERB | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet | html+erb | ## Code Before:
---
- scm:
name: govuk_tagging_monitor_for_nav
scm:
- git:
url: git@github.com:alphagov/govuk-tagging-monitor.git
basedir: govuk-tagging-monitor
branches:
- master
- job:
name: govuk_navigation_link_analysis
display-name: govuk-navigation-l... |
3ab25e30e26ba7edf2f732ff0d4fa42b1446f6dc | txampext/test/test_axiomtypes.py | txampext/test/test_axiomtypes.py | try:
from txampext import axiomtypes; axiomtypes
from axiom import attributes
except ImportError:
axiomtypes = None
from twisted.protocols import amp
from twisted.trial import unittest
class TypeForTests(unittest.TestCase):
skip = axiomtypes is None
def _test_typeFor(self, attr, expectedType, **... | try:
from txampext import axiomtypes; axiomtypes
from axiom import attributes
except ImportError: # pragma: no cover
axiomtypes = None
from twisted.protocols import amp
from twisted.trial import unittest
class TypeForTests(unittest.TestCase):
skip = axiomtypes is None
def _test_typeFor(self, at... | Add 'no cover' pragma to hide bogus missing code coverage | Add 'no cover' pragma to hide bogus missing code coverage
| Python | isc | lvh/txampext | python | ## Code Before:
try:
from txampext import axiomtypes; axiomtypes
from axiom import attributes
except ImportError:
axiomtypes = None
from twisted.protocols import amp
from twisted.trial import unittest
class TypeForTests(unittest.TestCase):
skip = axiomtypes is None
def _test_typeFor(self, attr, ... |
27a902012690221e42c5cad86e942bdae5e5e861 | app/views/shared/_navmenu.html.erb | app/views/shared/_navmenu.html.erb | <nav id="main-nav-menu" class="fade">
<div class="inner-box">
<%= link_to 'Room', rooms_path %>
<%= link_to 'Notes', notes_path %>
<%= link_to 'Pictures', pictures_path %>
<%= link_to 'Lists', lists_path %>
<%= link_to 'Polls', poll_lists_path %>
<%= link_to 'Bills', lists_path %>
<%= link... | <nav id="main-nav-menu" class="fade">
<div class="inner-box">
<%= link_to 'Room', rooms_path %>
<%= link_to 'Notes', notes_path %>
<%= link_to 'Pictures', pictures_path %>
<%= link_to 'Lists', check_lists_path %>
<%= link_to 'Polls', poll_lists_path %>
<%= link_to 'Bills', bill_lists_path %>
... | Update navmenu for new lists | Update navmenu for new lists
| HTML+ERB | mit | dhahn/r13-team-45,dhahn/r13-team-45 | html+erb | ## Code Before:
<nav id="main-nav-menu" class="fade">
<div class="inner-box">
<%= link_to 'Room', rooms_path %>
<%= link_to 'Notes', notes_path %>
<%= link_to 'Pictures', pictures_path %>
<%= link_to 'Lists', lists_path %>
<%= link_to 'Polls', poll_lists_path %>
<%= link_to 'Bills', lists_path... |
9e27cb4670b8ef3b524055fb615fc65db682b48d | views/index.erb | views/index.erb | <!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
</head>
<body>
<p>Well, hello there!</p>
<p>We're going to now talk to the GitHub API. Ready? <a href="https://github.com/login/oauth/authorize?scope=user:email&client_id=<%= client_id %>">Click here</a> to begin!</a></p>
<p>If that link doesn't wo... | <!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
</head>
<body>
<p>Well, hello there!</p>
<p>We're going to now talk to the GitHub API. Ready? <a href="https://github.com/login/oauth/authorize?scope=public_repo&client_id=<%= client_id %>">Click here</a> to begin!</a></p>
<p>If that link doesn't w... | Change scope for Github permissions | Change scope for Github permissions
In order to edit content inside the alpha site repository, we need
read/write access to public repositories.
| HTML+ERB | mit | nhsalpha/vidius,nhsalpha/vidius,nhsalpha/vidius | html+erb | ## Code Before:
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
</head>
<body>
<p>Well, hello there!</p>
<p>We're going to now talk to the GitHub API. Ready? <a href="https://github.com/login/oauth/authorize?scope=user:email&client_id=<%= client_id %>">Click here</a> to begin!</a></p>
<p>If that... |
df01d83a35c59ee2295b358d8eceeb842adb568d | listings/admin.py | listings/admin.py | from django.contrib import admin
from .models import Region, City, GatheringCenter, Resource
admin.site.register(Region)
admin.site.register(City)
class PublishMixin(object):
actions = ('publish', 'unpublish')
def publish(self, request, queryset):
queryset.update(published=True)
def unpublish(... | from django.contrib import admin
from .models import Region, City, GatheringCenter, Resource
admin.site.register(Region)
admin.site.register(City)
class PublishMixin(object):
actions = ('publish', 'unpublish')
def publish(self, request, queryset):
queryset.update(published=True)
def unpublish(... | Order by create, don't filter | Order by create, don't filter
| Python | apache-2.0 | pony-revolution/helpothers,pony-revolution/helpothers,pony-revolution/helpothers | python | ## Code Before:
from django.contrib import admin
from .models import Region, City, GatheringCenter, Resource
admin.site.register(Region)
admin.site.register(City)
class PublishMixin(object):
actions = ('publish', 'unpublish')
def publish(self, request, queryset):
queryset.update(published=True)
... |
2b3f91e14212e4455d72c8cdae210a7b68b64c62 | lib/fakeBlockChain.js | lib/fakeBlockChain.js | const Buffer = require('safe-buffer').Buffer
const utils = require('ethereumjs-util')
module.exports = {
getBlock: function (n, cb) {
// FIXME: this will fail on block numbers >53 bits
var hash = utils.sha3(Buffer.from(utils.bufferToInt(n).toString(), 'utf8'))
var block = {
hash: function () {
... | const Buffer = require('safe-buffer').Buffer
const utils = require('ethereumjs-util')
module.exports = {
getBlock: function (blockTag, cb) {
var hash
if (Buffer.isBuffer(blockTag)) {
hash = utils.sha3(blockTag)
} else if (Number.isInteger(blockTag)) {
hash = utils.sha3(utils.toBuffer(blockTa... | Change fakeBlockchain.getBlock to match ethereumjs-blockchain | Change fakeBlockchain.getBlock to match ethereumjs-blockchain
| JavaScript | mpl-2.0 | ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-vm,ethereum/ethereumjs-vm | javascript | ## Code Before:
const Buffer = require('safe-buffer').Buffer
const utils = require('ethereumjs-util')
module.exports = {
getBlock: function (n, cb) {
// FIXME: this will fail on block numbers >53 bits
var hash = utils.sha3(Buffer.from(utils.bufferToInt(n).toString(), 'utf8'))
var block = {
hash: f... |
8e714f766930d8d23e5e1d987d6eb4c57ccf5307 | gradle.properties | gradle.properties | org.gradle.jvmargs=-XX:MaxPermSize=512m
mavenRepoUrl = https://api.bintray.com/maven/onedrive/Maven/onedrive-sdk-android
mavenGroupId = com.onedrive.sdk
mavenArtifactId = onedrive-sdk-android
mavenVersionCode = 010102
mavenVersion = 1.1.2
nightliesUrl = http://dl.bintray.com/onedrive/Maven
| org.gradle.jvmargs=-XX:MaxPermSize=512m
mavenRepoUrl = https://api.bintray.com/maven/onedrive/Maven/onedrive-sdk-android
mavenGroupId = com.onedrive.sdk
mavenArtifactId = onedrive-sdk-android
mavenVersionCode = 010102 #XXYYZZ is the padded format for the version code so for maven version 1.2.3 -> 01 + 02 + 03 is... | Add comment in the build script | Add comment in the build script
| INI | mit | daboxu/onedrive-sdk-android,OneDrive/onedrive-sdk-android | ini | ## Code Before:
org.gradle.jvmargs=-XX:MaxPermSize=512m
mavenRepoUrl = https://api.bintray.com/maven/onedrive/Maven/onedrive-sdk-android
mavenGroupId = com.onedrive.sdk
mavenArtifactId = onedrive-sdk-android
mavenVersionCode = 010102
mavenVersion = 1.1.2
nightliesUrl = http://dl.bintray.com/onedrive/Maven
... |
f23fc65362df39dee871cde342eb068986987631 | lib/clamp/subcommand/execution.rb | lib/clamp/subcommand/execution.rb | module Clamp
class Subcommand
module Execution
protected
def execute_subcommand
signal_usage_error "no subcommand specified" unless subcommand_name
subcommand_class = find_subcommand_class(subcommand_name)
subcommand = subcommand_class.new("#{invocation_path} #{subcomm... | module Clamp
class Subcommand
module Execution
protected
def execute_subcommand
signal_usage_error "no subcommand specified" unless subcommand_name
subcommand_class = find_subcommand_class(subcommand_name)
subcommand = subcommand_class.new("#{invocation_path} #{subcomm... | Fix check for presence of explicitly set option. | Fix check for presence of explicitly set option.
| Ruby | mit | mdub/clamp,tstrachota/clamp | ruby | ## Code Before:
module Clamp
class Subcommand
module Execution
protected
def execute_subcommand
signal_usage_error "no subcommand specified" unless subcommand_name
subcommand_class = find_subcommand_class(subcommand_name)
subcommand = subcommand_class.new("#{invocation... |
713a48b7096939a1de6e61761b4a958c36752fbd | appveyor.yml | appveyor.yml | version: 2.0.0-alpha{build}
branches:
only:
- master
- develop
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
nuget_user: dd4t
nuget_password:
se... | version: 2.0.0-alpha{build}
branches:
only:
- master
- develop
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
nuget_user: dd4t
nuget_password:
se... | Fix for AppVeyor nuget package upload. | Fix for AppVeyor nuget package upload.
| YAML | apache-2.0 | Ei8htSe7en/dd4t-2-net,dd4t/dd4t-2-net,dd4t/DD4T.Core | yaml | ## Code Before:
version: 2.0.0-alpha{build}
branches:
only:
- master
- develop
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
nuget_user: dd4t
nuget_... |
35fd8271a7c09ed649f96106d56f198cc80795b8 | farmbot_os/lib/mix/tasks.farmbot/nerves_hub.ex | farmbot_os/lib/mix/tasks.farmbot/nerves_hub.ex | defmodule Mix.Tasks.Farmbot.NervesHub do
use Mix.Task
alias NimbleCSV.RFC4180, as: CSV
alias Mix.NervesHubCLI.Shell
def run([org]) do
Application.ensure_all_started(:nerves_hub_cli)
auth = Shell.request_auth()
case NervesHubUserAPI.Device.list(org, "farmbot", auth) do
{:ok, %{"data" => data... | defmodule Mix.Tasks.Farmbot.NervesHub do
use Mix.Task
alias NimbleCSV.RFC4180, as: CSV
alias Mix.NervesHubCLI.Shell
def run([org]) do
Application.ensure_all_started(:nerves_hub_cli)
auth = Shell.request_auth()
case NervesHubUserAPI.Device.list(org, "farmbot", auth) do
{:ok, %{"data" => data... | Update NervesHub device task to include healthy status | Update NervesHub device task to include healthy status
| Elixir | mit | FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os | elixir | ## Code Before:
defmodule Mix.Tasks.Farmbot.NervesHub do
use Mix.Task
alias NimbleCSV.RFC4180, as: CSV
alias Mix.NervesHubCLI.Shell
def run([org]) do
Application.ensure_all_started(:nerves_hub_cli)
auth = Shell.request_auth()
case NervesHubUserAPI.Device.list(org, "farmbot", auth) do
{:ok, ... |
8c5c63628b420734b9021021c5b55ebc0433ff48 | .zuul.yaml | .zuul.yaml | - project:
templates:
- golang-jobs
check:
jobs:
- golang-lint:
voting: false
- kubemon-build-image
gate:
jobs:
- golang-lint:
voting: false
- kubemon-build-image
- job:
name: kubemon-build-image
parent: nuage-build-docker-ima... | - project:
templates:
- golang-jobs
check:
jobs:
- golang-lint
- kubemon-build-image
gate:
jobs:
- golang-lint
- kubemon-build-image
- job:
name: kubemon-build-image
parent: nuage-build-docker-image
vars:
zuul_work_dir: "{{ ansible_user_dir... | Move go vars to docker context | Move go vars to docker context
Change-Id: I14840e84eea3f0ffa02d95215db53e919133e2cb
| YAML | bsd-3-clause | nuagenetworks/nuage-kubernetes,nuagenetworks/nuage-kubernetes,nuagenetworks/nuage-kubernetes,nuagenetworks/nuage-kubernetes | yaml | ## Code Before:
- project:
templates:
- golang-jobs
check:
jobs:
- golang-lint:
voting: false
- kubemon-build-image
gate:
jobs:
- golang-lint:
voting: false
- kubemon-build-image
- job:
name: kubemon-build-image
parent: nuage-... |
860d69cadedef0dec8ba6259ab5850691d3402e7 | src/tslib-private.h | src/tslib-private.h | /*
* tslib/src/tslib-private.h
*
* Copyright (C) 2001 Russell King.
*
* This file is placed under the LGPL.
*
*
* Internal touch screen library definitions.
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "tslib.h"
#include "tslib-filter.h"
#define DEBUG
struct tsdev {
int fd;
struc... | /*
* tslib/src/tslib-private.h
*
* Copyright (C) 2001 Russell King.
*
* This file is placed under the LGPL.
*
*
* Internal touch screen library definitions.
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "tslib.h"
#include "tslib-filter.h"
struct tsdev {
int fd;
struct tslib_module_... | Revert "Enable debug option for all components" | Revert "Enable debug option for all components"
This reverts commit 9c3742a8d8a829ec746e0a974aa30fb5dd0e3d1a.
| C | lgpl-2.1 | folkien/tslib,vpeter4/tslib,kergoth/tslib,etmatrix/tslib,lin2724/tslib,folkien/tslib,etmatrix/tslib,leighmurray/tslib,lin2724/tslib,vpeter4/tslib,kergoth/tslib,pssc/tslib,kobolabs/tslib,kergoth/tslib,leighmurray/tslib,pssc/tslib,kobolabs/tslib,etmatrix/tslib,pssc/tslib,jaretcantu/tslib,jaretcantu/tslib,kobolabs/tslib,k... | c | ## Code Before:
/*
* tslib/src/tslib-private.h
*
* Copyright (C) 2001 Russell King.
*
* This file is placed under the LGPL.
*
*
* Internal touch screen library definitions.
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "tslib.h"
#include "tslib-filter.h"
#define DEBUG
struct tsdev {... |
87f1801b04957a41c20afdc0af21ce1e94b36cf2 | app/workers/initial_tagging_import.rb | app/workers/initial_tagging_import.rb | class InitialTaggingImport
include Sidekiq::Worker
def perform(tagging_spreadsheet_id)
tagging_spreadsheet = TaggingSpreadsheet.find(tagging_spreadsheet_id)
errors = TagImporter::FetchRemoteData.new(tagging_spreadsheet).run
if errors.any?
tagging_spreadsheet.update_attributes!(state: "errored", ... | class InitialTaggingImport
include Sidekiq::Worker
sidekiq_options retry: false
def perform(tagging_spreadsheet_id)
tagging_spreadsheet = TaggingSpreadsheet.find(tagging_spreadsheet_id)
errors = TagImporter::FetchRemoteData.new(tagging_spreadsheet).run
if errors.any?
tagging_spreadsheet.updat... | Change sidekiq retry behaviour on InitialTaggingImport | Change sidekiq retry behaviour on InitialTaggingImport
This shouldn't really be retrying at all - we report errors back to the
user fairly comprehensively and manual retry controls are built into the
UI.
| Ruby | mit | alphagov/content-tagger,alphagov/content-tagger,alphagov/content-tagger | ruby | ## Code Before:
class InitialTaggingImport
include Sidekiq::Worker
def perform(tagging_spreadsheet_id)
tagging_spreadsheet = TaggingSpreadsheet.find(tagging_spreadsheet_id)
errors = TagImporter::FetchRemoteData.new(tagging_spreadsheet).run
if errors.any?
tagging_spreadsheet.update_attributes!(st... |
6351981a6a5f0fd91ba4fb9fb6cfeab6e6c8ffb8 | src/dao/AmigoDataAccessObject.java | src/dao/AmigoDataAccessObject.java | package dao;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import model.Info;
import model.Nodo;
public interface AmigoDataAccessObject {
public int quantidadeAmigos();
public void comparaTabelas();
public List<Info> listaAmigosPorGenero(String sex);
public List<Nodo> listaRel... | package dao;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import model.Info;
import model.Vertice;
public interface AmigoDataAccessObject {
public int quantidadeAmigos();
public void comparaTabelas();
public List<Info> listaAmigosPorGenero(String sex);
public List<Vertice> li... | Add public Map<BigInteger, BigInteger> mapeiaRelacoes() | Add public Map<BigInteger, BigInteger> mapeiaRelacoes() | Java | mit | tonussi/teia | java | ## Code Before:
package dao;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import model.Info;
import model.Nodo;
public interface AmigoDataAccessObject {
public int quantidadeAmigos();
public void comparaTabelas();
public List<Info> listaAmigosPorGenero(String sex);
public Lis... |
98e6c2cd3c73ce7fb5661b691883428fc2ccfc39 | src/route_factories/presenter_route/pageable_data_layout_presenter.ts | src/route_factories/presenter_route/pageable_data_layout_presenter.ts | import { Presenter } from "./presenter";
export interface PagingEntity {
before?: string | null;
after?: string | null;
}
export interface PaginatedInput<DataInput> {
data: DataInput;
paging: PagingEntity;
}
export interface PaginatedOutput<DataOutput> {
data: DataOutput;
paging: PagingEntity;
}
// tsli... | import { Presenter } from "./presenter";
export interface PagingEntity {
before?: string;
after?: string;
}
export interface PaginatedInput<DataInput> {
data: DataInput;
paging: PagingEntity;
}
export interface PaginatedOutput<DataOutput> {
data: DataOutput;
paging: PagingEntity;
}
// tslint:disable-nex... | Revert "Update PagingEntity on PageableDataLayoutPresenter" | Revert "Update PagingEntity on PageableDataLayoutPresenter"
This reverts commit cddc1a357b525cb47253d238ac764e6b092cc578.
| TypeScript | mit | balmbees/corgi | typescript | ## Code Before:
import { Presenter } from "./presenter";
export interface PagingEntity {
before?: string | null;
after?: string | null;
}
export interface PaginatedInput<DataInput> {
data: DataInput;
paging: PagingEntity;
}
export interface PaginatedOutput<DataOutput> {
data: DataOutput;
paging: PagingEn... |
f24a33f38420f2bd86493dba2c40b7efec7c7ec4 | src/js/index.js | src/js/index.js | 'use strict'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/app/index'
import configureStore from './store/configure-store'
import reducers from './reducers/index'
const store = configureStore({ reducers })
render(
<Provider store={... | 'use strict'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/app/index'
import configureStore from './store/configure-store'
import reducers from './reducers/index'
const store = configureStore({ reducers })
render(
<Provider store={... | Add subscribe to change redux events | Add subscribe to change redux events
| JavaScript | mit | campinas-front-end-meetup/institucional,campinas-front-end/institucional,campinas-front-end-meetup/institucional,frontendbr/eventos,campinas-front-end/institucional | javascript | ## Code Before:
'use strict'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/app/index'
import configureStore from './store/configure-store'
import reducers from './reducers/index'
const store = configureStore({ reducers })
render(
<... |
af57a9fcebc08867bc29e1c241a0e9768a3da318 | .travis.yml | .travis.yml | language: ruby
notifications:
email: false
webhooks: https://getchef.slack.com/services/hooks/travis?token=ECftsW2P2itUaz1MhfiU6cS4
rvm:
- 2.0.0
before_script:
- psql -c 'create database supermarket_test;' -U postgres
- cp .env.example .env
- bundle exec rake db:schema:load
bundler_args: --without developme... | language: ruby
notifications:
email: false
webhooks: https://getchef.slack.com/services/hooks/travis?token=ECftsW2P2itUaz1MhfiU6cS4
rvm:
- 2.0.0
before_script:
- psql -c 'create database supermarket_test;' -U postgres
- cp .env.example .env
- bundle exec rake db:schema:load
bundler_args: --without developme... | Add redis and GitHub access token to Travis config | Add redis and GitHub access token to Travis config
Note: the GitHub access token is encrypted. B)
| YAML | apache-2.0 | nellshamrell/supermarket,jzohrab/supermarket,leftathome/supermarket,juliandunn/supermarket,nellshamrell/supermarket,robbkidd/supermarket,rafaelmagu/supermarket,jzohrab/supermarket,rafaelmagu/supermarket,tas50/supermarket,dpnl87/supermarket,chef/supermarket,chef/supermarket,nellshamrell/supermarket,leftathome/supermarke... | yaml | ## Code Before:
language: ruby
notifications:
email: false
webhooks: https://getchef.slack.com/services/hooks/travis?token=ECftsW2P2itUaz1MhfiU6cS4
rvm:
- 2.0.0
before_script:
- psql -c 'create database supermarket_test;' -U postgres
- cp .env.example .env
- bundle exec rake db:schema:load
bundler_args: --w... |
82fa664bf2c7f7ebbd3aa49a2de0f6fe8421c347 | src/main/java/seedu/address/logic/parser/NattyParser.java | src/main/java/seedu/address/logic/parser/NattyParser.java | //@@author A0114395E
package seedu.address.logic.parser;
import java.util.List;
import com.joestelmach.natty.DateGroup;
public class NattyParser {
private static NattyParser instance = null;
// Exists only to defeat instantiation.
protected NattyParser() {
}
// Returns the singleton instance
... | //@@author A0114395E
package seedu.address.logic.parser;
import java.util.List;
import com.joestelmach.natty.DateGroup;
public class NattyParser {
private static NattyParser instance = null;
private static String emptyValue = "-";
// Exists only to defeat instantiation.
protected NattyParser() {
... | Check for undo-ing delete commands of task without start or deadline | Check for undo-ing delete commands of task without start or deadline
| Java | mit | CS2103JAN2017-F12-B2/main,CS2103JAN2017-F12-B2/main | java | ## Code Before:
//@@author A0114395E
package seedu.address.logic.parser;
import java.util.List;
import com.joestelmach.natty.DateGroup;
public class NattyParser {
private static NattyParser instance = null;
// Exists only to defeat instantiation.
protected NattyParser() {
}
// Returns the single... |
5b95fbfc150098d8297eb2ceb89fe2bed1d6f962 | README.md | README.md | Noda Time is an alternative date and time API for .NET. It helps you to
think about your data more clearly, and express operations on that data more
precisely.
Most enquiries about the project are best
* [Project web site](http://nodatime.org) - for documentation, installation, downloads etc
* [Group/mailing list](h... | [](https://travis-ci.org/nodatime/nodatime)
Noda Time is an alternative date and time API for .NET. It helps you to
think about your data more clearly, and express operations on that data more
precisely.
Most enquiries about the project are bes... | Add Travis badge for the front page readme | Add Travis badge for the front page readme
| Markdown | apache-2.0 | nodatime/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,malcolmr/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,jskeet/nodatime,jskeet/nodatime,zaccharles/nodatime,BenJenkinson/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,zaccharles/nodatime | markdown | ## Code Before:
Noda Time is an alternative date and time API for .NET. It helps you to
think about your data more clearly, and express operations on that data more
precisely.
Most enquiries about the project are best
* [Project web site](http://nodatime.org) - for documentation, installation, downloads etc
* [Group... |
6dbbb8a945ae75d542f61ae00d58df14e306245f | src/il/GlobalArray.cpp | src/il/GlobalArray.cpp | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | Include the size of the array in the array memory layout | Include the size of the array in the array memory layout
| C++ | mit | wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,vogelsgesang/eddic | c++ | ## Code Before:
//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================... |
d3134a6df1c89398b91f7b46f4c70270a72d1f68 | testing/test-vectors/prng-tests.lisp | testing/test-vectors/prng-tests.lisp | ;;;; -*- mode: lisp; indent-tabs-mode: nil -*-
(in-package :crypto-tests)
(rtest:deftest :prng-fortuna (run-test-vector-file :prng *prng-tests*) t)
;; (random-data (make-prng :fortuna :seed (coerce #(0) 'simple-octet-vector)) 1) #(28))
| ;;;; -*- mode: lisp; indent-tabs-mode: nil -*-
(in-package :crypto-tests)
(rtest:deftest :prng-fortuna (run-test-vector-file :prng *prng-tests*) t)
(rtest:deftest :prng-fortuna-urandom (let ((prng (crypto:make-prng :fortuna :seed urandom)))
(= (length (crypto:random-data 16 prng)... | Add test of (MAKE-PRNG :FORTUNA :SEED URANDOM) | Add test of (MAKE-PRNG :FORTUNA :SEED URANDOM)
| Common Lisp | bsd-3-clause | eadmund/ironclad,sharplispers/ironclad,glv2/ironclad | common-lisp | ## Code Before:
;;;; -*- mode: lisp; indent-tabs-mode: nil -*-
(in-package :crypto-tests)
(rtest:deftest :prng-fortuna (run-test-vector-file :prng *prng-tests*) t)
;; (random-data (make-prng :fortuna :seed (coerce #(0) 'simple-octet-vector)) 1) #(28))
## Instruction:
Add test of (MAKE-PRNG :FORTUNA :SEED URANDOM)... |
86be0a7d8a08c2fbf3fd76964f53b54d990f90db | classes/sCache.php | classes/sCache.php | <?php
/**
* Singleton class to manage Sutra-specific cache.
*
* @copyright Copyright (c) 2011 Poluza.
* @author Andrew Udvare [au] <andrew@poluza.com>
* @license http://www.opensource.org/licenses/mit-license.php
*
* @package Sutra
* @link http://www.example.com/
*
* @version 1.0
*/
class sCache extends fCac... | <?php
/**
* Extension to sCache.
*
* @copyright Copyright (c) 2011 Poluza.
* @author Andrew Udvare [au] <andrew@poluza.com>
* @license http://www.opensource.org/licenses/mit-license.php
*
* @package Sutra
* @link http://www.sutralib.com/
*
* @version 1.01
*/
class sCache extends fCache {
/**
* The curre... | Update site URL; update documentation; simplify getSiteUniqueKey() | Update site URL; update documentation; simplify getSiteUniqueKey()
| PHP | mit | Tatsh/sutra | php | ## Code Before:
<?php
/**
* Singleton class to manage Sutra-specific cache.
*
* @copyright Copyright (c) 2011 Poluza.
* @author Andrew Udvare [au] <andrew@poluza.com>
* @license http://www.opensource.org/licenses/mit-license.php
*
* @package Sutra
* @link http://www.example.com/
*
* @version 1.0
*/
class sCa... |
ef598274988bd92ad68fb98f0e15b64d3a885914 | .travis.yml | .travis.yml | language: objective-c
before_script:
- './setup.sh'
- 'cd Example'
| ---
language: objective-c
before_script:
- ./setup.sh
- cd Example
env:
global:
- secure: ! 'UYWpq1V/eF+4f23y3wzMRLIy7+nKXvqGm2p+NcN60c18VOwq5Dpcx5ahNzb4
85IFWFxtSUOAItDgJAHfBuHpPxNvwJgbfNnhHZEokuxP3shlLXD5lFZiBb5M
Du/fvpoccVxNPPfpIaQbpjwYAYXBs+68pRg/IM9+cz4x4x3FQqA='
| Add secure env var again | Add secure env var again
| YAML | mit | keith/KBSCloudAppAPI | yaml | ## Code Before:
language: objective-c
before_script:
- './setup.sh'
- 'cd Example'
## Instruction:
Add secure env var again
## Code After:
---
language: objective-c
before_script:
- ./setup.sh
- cd Example
env:
global:
- secure: ! 'UYWpq1V/eF+4f23y3wzMRLIy7+nKXvqGm2p+NcN60c18VOwq5Dpcx5ahNzb4
85IFWFxtSU... |
b6d3f2ee6b800106d8cc867aa164d6fe0c165915 | app/controllers/api/v1/nightbot_controller.rb | app/controllers/api/v1/nightbot_controller.rb | class Api::V1::NightbotController < ApplicationController
def execute
# Usage: !songs current/delete/list/playlist/next/request/skip/save/promote/volume/play/pause
case params[:q]
when 'current'
track = Play.where.not(played_at: nil).first.track
render text: format('Now playing: %s - %s', tra... | class Api::V1::NightbotController < ApplicationController
def execute
# Usage: !songs current/delete/list/playlist/next/request/skip/save/promote/volume/play/pause
case params[:q]
when 'current'
track = Play.where.not(played_at: nil).first.track
render text: format('Now playing: %s - %s', tra... | Add playlist and request support to Nightbot API | Add playlist and request support to Nightbot API
| Ruby | mit | denpaio/denpaio,denpaio/denpaio,denpaio/denpaio,denpaio/denpaio | ruby | ## Code Before:
class Api::V1::NightbotController < ApplicationController
def execute
# Usage: !songs current/delete/list/playlist/next/request/skip/save/promote/volume/play/pause
case params[:q]
when 'current'
track = Play.where.not(played_at: nil).first.track
render text: format('Now playin... |
9ba786d645c4ccd398c15da0e240195d0250a2d2 | gulpfile.js | gulpfile.js | var git = require('gulp-git');
var gulp = require('gulp');
/**
* Release Tasks
*/
gulp.task('publish:tag', function(done) {
var pkg = JSON.parse(require('fs').readFileSync('./package.json'));
var v = 'v' + pkg.version;
var message = 'Release ' + v;
git.tag(v, message, function (err) {
if (err) throw er... | var git = require('gulp-git');
var gulp = require('gulp');
/*
* Release Tasks
*/
// Git Tag
gulp.task('publish:tag', function(done) {
// get the version from package.json
var pkg = JSON.parse(require('fs').readFileSync('./package.json'));
// prepend the 'v'
var v = 'v' + pkg.version;
// Tag message
va... | Add comments to gulp file | Add comments to gulp file
| JavaScript | mit | skellyjs/skellyjs,skellyjs/skellyjs | javascript | ## Code Before:
var git = require('gulp-git');
var gulp = require('gulp');
/**
* Release Tasks
*/
gulp.task('publish:tag', function(done) {
var pkg = JSON.parse(require('fs').readFileSync('./package.json'));
var v = 'v' + pkg.version;
var message = 'Release ' + v;
git.tag(v, message, function (err) {
i... |
c63113965f58bc89e7cea9baa9e31a91f8a7ab75 | lib/puppet/parser/functions/api_fetch.rb | lib/puppet/parser/functions/api_fetch.rb |
require 'net/http'
require 'net/https'
require 'openssl'
module Puppet::Parser::Functions
newfunction(:api_fetch, :type => :rvalue) do |args|
raise(Puppet::ParseError, "api_fetch(): Wrong number of arguments given (#{args.size} for 2)") if args.size < 2
url = args[0]
token = args[1]
unless url.is_... |
require 'net/http'
require 'net/https'
require 'openssl'
module Puppet::Parser::Functions
newfunction(:api_fetch, :type => :rvalue) do |args|
raise(Puppet::ParseError, "api_fetch(): Wrong number of arguments given (#{args.size} for 2)") if args.size < 2
url = args[0]
token = args[1]
unless url.is_... | Replace case statement with if | Replace case statement with if
| Ruby | apache-2.0 | Ericsson/puppet-module-vas,Phil-Friderici/puppet-module-vas,Phil-Friderici/puppet-module-vas,Ericsson/puppet-module-vas | ruby | ## Code Before:
require 'net/http'
require 'net/https'
require 'openssl'
module Puppet::Parser::Functions
newfunction(:api_fetch, :type => :rvalue) do |args|
raise(Puppet::ParseError, "api_fetch(): Wrong number of arguments given (#{args.size} for 2)") if args.size < 2
url = args[0]
token = args[1]
... |
09958c9b38b5dc14ee9c9470787594c0b9fd2d21 | .ci/travis-before-install.sh | .ci/travis-before-install.sh |
set -e -x
if [ -z "${PGVERSION}" ]; then
echo "Missing PGVERSION environment variable."
exit 1
fi
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD}" == *wheels* ]]; then
sudo service postgresql stop ${PGVERSION}
echo "port = 5432" | \
sudo tee --append /etc/postgresql/${PGVERSION}/main/postg... |
set -e -x
if [ -z "${PGVERSION}" ]; then
echo "Missing PGVERSION environment variable."
exit 1
fi
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD}" == *wheels* ]]; then
sudo service postgresql stop ${PGVERSION}
echo "port = 5432" | \
sudo tee --append /etc/postgresql/${PGVERSION}/main/postg... | Disable JIT on CI Postgres to make wheel tests predictable | Disable JIT on CI Postgres to make wheel tests predictable
| Shell | apache-2.0 | MagicStack/asyncpg,MagicStack/asyncpg | shell | ## Code Before:
set -e -x
if [ -z "${PGVERSION}" ]; then
echo "Missing PGVERSION environment variable."
exit 1
fi
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD}" == *wheels* ]]; then
sudo service postgresql stop ${PGVERSION}
echo "port = 5432" | \
sudo tee --append /etc/postgresql/${PGVER... |
82b14ef16d3cb5c4d3a6b191ca3e91ef68343a2b | appveyor.yml | appveyor.yml |
version: 1.0.{build}
branches:
only:
- master
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
matrix:
fast_finish: true
os: Visual Studio 2017
platform:
- x86
configuration:
- Release
environment:
MONO_INSTALLER: ... |
version: 1.0.{build}
branches:
only:
- master
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
matrix:
fast_finish: true
os: Visual Studio 2017
platform:
- x86
configuration:
- Release
environment:
MONO_INSTALLER: ... | Use implicit Git clone and submodule init before building in AppVeyor. | [ci] Use implicit Git clone and submodule init before building in AppVeyor.
| YAML | mit | jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,m... | yaml | ## Code Before:
version: 1.0.{build}
branches:
only:
- master
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
matrix:
fast_finish: true
os: Visual Studio 2017
platform:
- x86
configuration:
- Release
environment:
... |
ec2940cc4b361923e7f898c2accab5a261713f19 | src/Oro/Bundle/SecurityBundle/Resources/config/entity_config.yml | src/Oro/Bundle/SecurityBundle/Resources/config/entity_config.yml | oro_entity_config:
security:
entity:
items:
type:
options:
default_value: 'ACL'
group_name: ~
| oro_entity_config:
security:
entity:
items:
type: ~
group_name: ~
| Remove Contact Address ACL resource and use Contact instead | BAP-1683: Remove Contact Address ACL resource and use Contact instead
| YAML | mit | hugeval/platform,orocrm/platform,geoffroycochard/platform,mszajner/platform,morontt/platform,mszajner/platform,trustify/oroplatform,hugeval/platform,akeneo/platform,ramunasd/platform,2ndkauboy/platform,hugeval/platform,morontt/platform,akeneo/platform,geoffroycochard/platform,Djamy/platform,orocrm/platform,2ndkauboy/pl... | yaml | ## Code Before:
oro_entity_config:
security:
entity:
items:
type:
options:
default_value: 'ACL'
group_name: ~
## Instruction:
BAP-1683: Remove Contact Address ACL resource and use Contact instead
## Code After:
oro_ent... |
6711d7c798bb2aa0cc6305c157d8f8931cfb9eb8 | src/main/java/org/gbif/portal/struts/freemarker/GbifFreemarkerManager.java | src/main/java/org/gbif/portal/struts/freemarker/GbifFreemarkerManager.java | package org.gbif.portal.struts.freemarker;
import javax.servlet.ServletContext;
import freemarker.template.TemplateException;
import freemarker.template.TemplateExceptionHandler;
import org.apache.struts2.views.freemarker.FreemarkerManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class GbifFr... | package org.gbif.portal.struts.freemarker;
import java.util.Locale;
import javax.servlet.ServletContext;
import freemarker.template.TemplateException;
import freemarker.template.TemplateExceptionHandler;
import org.apache.struts2.views.freemarker.FreemarkerManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... | Fix FreeMarker locale, so we don't get . as a thousands separator. | Fix FreeMarker locale, so we don't get . as a thousands separator.
| Java | apache-2.0 | gbif/portal-web,gbif/portal-web,gbif/portal-web | java | ## Code Before:
package org.gbif.portal.struts.freemarker;
import javax.servlet.ServletContext;
import freemarker.template.TemplateException;
import freemarker.template.TemplateExceptionHandler;
import org.apache.struts2.views.freemarker.FreemarkerManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
pub... |
f9a6b71c11e0e2cf19eaf4ed96b1d5f9db4dc6f8 | css/app.css | css/app.css | html, body, input {
margin: 0;
padding: 0;
font-family: Helvetica, Tahoma;
color: #774422;
font-size: 13px;
}
a {
text-decoration: none;
color: #333;
outline: none;
}
a:hover {
background-color: #eee;
}
#view-templates { display: none; }
.clear { clear: both; } | html, body, input {
margin: 0;
padding: 0;
font-family: Helvetica, Tahoma;
color: #774422;
font-size: 13px;
overflow: hidden;
}
a {
text-decoration: none;
color: #333;
outline: none;
}
a:hover {
background-color: #eee;
}
#view-templates { display: none; }
.clear { clear: both; } | Make overflow on the body hidden, so that scroll bars never show | Make overflow on the body hidden, so that scroll bars never show
| CSS | mit | marcuswestin/fin | css | ## Code Before:
html, body, input {
margin: 0;
padding: 0;
font-family: Helvetica, Tahoma;
color: #774422;
font-size: 13px;
}
a {
text-decoration: none;
color: #333;
outline: none;
}
a:hover {
background-color: #eee;
}
#view-templates { display: none; }
.clear { clear: both; }
## Instruction:
Make overflow o... |
c51d368e1e6131564d7d533f3df1b76b93818b6b | src/main/scala/gov/wicourts/json/formlet/package.scala | src/main/scala/gov/wicourts/json/formlet/package.scala | package gov.wicourts.json
import argonaut.Cursor
import scalaz.Id.Id
import scala.language.higherKinds
import scalaz.NonEmptyList
package object formlet {
type IdFieldFormlet[A] = Formlet[Id, Option[Cursor], NonEmptyList[String], A, FieldView]
type IdObjectFormlet[A] = Formlet[Id, Option[Cursor], ValidationErr... | package gov.wicourts.json
import argonaut.Cursor
import scalaz.Id.Id
import scala.language.higherKinds
import scalaz.NonEmptyList
package object formlet {
type JsonFormlet[M[_], E, A, V] = Formlet[M, Option[Cursor], E, A, V]
type FieldFormlet[M[_], A] = JsonFormlet[M, NonEmptyList[String], A, FieldView]
ty... | Redefine the Formlet type aliases to make the relation between them clearer | Redefine the Formlet type aliases to make the relation between them clearer
| Scala | mit | ccap/json-formlets | scala | ## Code Before:
package gov.wicourts.json
import argonaut.Cursor
import scalaz.Id.Id
import scala.language.higherKinds
import scalaz.NonEmptyList
package object formlet {
type IdFieldFormlet[A] = Formlet[Id, Option[Cursor], NonEmptyList[String], A, FieldView]
type IdObjectFormlet[A] = Formlet[Id, Option[Cursor... |
5fae8a0da7694777e40b2a5c0c1c4567ca140ec7 | vs/README.md | vs/README.md |
The following SDK are required to build Marian with GPU support
- [Cuda 9.2+](https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal)
- Base installer
- Patches
- [CuDNN 7.1+](https://developer.nvidia.com/rdp/cudnn-download... |
The following SDK are required to build Marian with GPU support
- [Cuda 9.2+](https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal)
- Base installer
- Patches
- [CuDNN 7.1+](https://developer.nvidia.com/rdp/cudnn-download... | Fix Cuda error : Unsupported Visual Studio Version Error | Fix Cuda error : Unsupported Visual Studio Version Error
| Markdown | mit | emjotde/amunmt,amunmt/marian,emjotde/amunn,emjotde/Marian,marian-nmt/marian-train,emjotde/amunmt,amunmt/marian,marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,emjotde/Marian,emjotde/amunn,amunmt/marian,emjotde/amunn,marian-nmt/marian-train,emjotde/amunn,emjotde/amunmt,marian-nmt/marian-train | markdown | ## Code Before:
The following SDK are required to build Marian with GPU support
- [Cuda 9.2+](https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal)
- Base installer
- Patches
- [CuDNN 7.1+](https://developer.nvidia.com/rdp/cudnn... |
59b3678bc8c0daf1b53285906ae101ecee359b4b | README.md | README.md | security-system
===============
| security-system
===============
The system was used in the SSE's Heist event in fall 2013. We used Node.js as a
simple server backend, with websockets that push events to pages that simulate
flickering lights and a rebooting securty system. This is all controlled by
another page with a few simple buttons on it that ... | Add more info on how the repo was used | Add more info on how the repo was used | Markdown | mit | rit-sse/security-system | markdown | ## Code Before:
security-system
===============
## Instruction:
Add more info on how the repo was used
## Code After:
security-system
===============
The system was used in the SSE's Heist event in fall 2013. We used Node.js as a
simple server backend, with websockets that push events to pages that simulate
flickeri... |
fbaad92ba27e5882cf580171b1fa50976560bb55 | composer.json | composer.json | {
"name": "wisembly/amqp-bundle",
"description": "Alternative for SwarrotBundle to handle amqp in Symfony2 applications",
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^7.0",
"psr/log": "^1.0",
"swarrot/swarrot": "^2.0 || ^3.0",
"symfony/console"... | {
"name": "wisembly/amqp-bundle",
"description": "Alternative for SwarrotBundle to handle amqp in Symfony2 applications",
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^7.0",
"psr/log": "^1.0",
"swarrot/swarrot": "^2.0 || ^3.0",
"symfony/console"... | Split autoload configuration for tests in autoload-dev | Split autoload configuration for tests in autoload-dev
| JSON | mit | Wisembly/AMQPBundle,Wisembly/AMQPBundle | json | ## Code Before:
{
"name": "wisembly/amqp-bundle",
"description": "Alternative for SwarrotBundle to handle amqp in Symfony2 applications",
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^7.0",
"psr/log": "^1.0",
"swarrot/swarrot": "^2.0 || ^3.0",
"... |
2fcc5a8d1d567275290b232adc255ffbc7b64e3e | app/assets/stylesheets/application.css.scss | app/assets/stylesheets/application.css.scss | /*
*= require_self
*= require vendor/bootstrap
*= require vendor/bootstrap-responsive
*/
body {
position: relative;
padding-top: 40px;
background-color: #fff;
background-repeat: repeat-x;
background-position: 0 40px;
}
table.table {
tr {
&.document pre {
background: none;
border: 0px;
... | /*
*= require_self
*= require vendor/bootstrap
*/
body {
position: relative;
padding-top: 40px;
background-color: #fff;
background-repeat: repeat-x;
background-position: 0 40px;
}
table.table {
tr {
&.document pre {
background: none;
border: 0px;
display: inline;
}
th.actions... | Fix issue with vertical scrollbar. | Fix issue with vertical scrollbar.
| SCSS | mit | lucassus/mongo_browser,lucassus/mongo_browser,lucassus/mongo_browser | scss | ## Code Before:
/*
*= require_self
*= require vendor/bootstrap
*= require vendor/bootstrap-responsive
*/
body {
position: relative;
padding-top: 40px;
background-color: #fff;
background-repeat: repeat-x;
background-position: 0 40px;
}
table.table {
tr {
&.document pre {
background: none;
bo... |
36e5c9fabb83074d6edac4f17704c4dec59c84c8 | spec/getaddrinfo_spec.rb | spec/getaddrinfo_spec.rb | require 'spec_helper'
describe Gethostname do
it 'has a version number' do
expect(Gethostname::VERSION).not_to be nil
end
it 'returns nil with a bunk address' do
expect(Gethostname.gethostname('a')).to be_empty
end
it 'gets the IP address' do
expect(Gethostname.gethostname('google.com')).to_not... | require 'spec_helper'
describe Gethostname do
it 'has a version number' do
expect(Gethostname::VERSION).not_to be nil
end
it 'returns nil with a bunk address' do
expect(Gethostname.gethostname('not a real host')).to be_empty
end
it 'gets the IP address' do
expect(Gethostname.gethostname('google... | Add some more hosts to test | Add some more hosts to test
| Ruby | mit | ianks/gethostbyname-ruby,ianks/gethostbyname-ruby | ruby | ## Code Before:
require 'spec_helper'
describe Gethostname do
it 'has a version number' do
expect(Gethostname::VERSION).not_to be nil
end
it 'returns nil with a bunk address' do
expect(Gethostname.gethostname('a')).to be_empty
end
it 'gets the IP address' do
expect(Gethostname.gethostname('goog... |
e54045d492e50e91943f25b6567233230b88500a | hash_attribute_assignment.gemspec | hash_attribute_assignment.gemspec | $LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'hash_attribute_assignment/version'
Gem::Specification.new do |s|
s.name = 'hash_attribute_assignment'
s.summary = 'Instantiate objects with a hash of instance variables'
s.version = HashAttributeAssignment::VERSION
s.author ... | $LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'hash_attribute_assignment/version'
Gem::Specification.new do |s|
s.name = 'hash_attribute_assignment'
s.summary = 'Instantiate objects with a hash of instance variables'
s.version = HashAttributeAssignment::VERSION
s.author ... | Add the rubocop junit formatter | Add the rubocop junit formatter
| Ruby | mit | coreyja/hash_attribute_assignment | ruby | ## Code Before:
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'hash_attribute_assignment/version'
Gem::Specification.new do |s|
s.name = 'hash_attribute_assignment'
s.summary = 'Instantiate objects with a hash of instance variables'
s.version = HashAttributeAssignment::VERSION... |
8944b5ca4438abf58540dcbf62d4234f9ffe4895 | tasks/main.yml | tasks/main.yml | - name: setup tmux
yum: name=tmux state=present
- name: setup vim
yum: name=vim-enhanced state=present
- name: setup sysstat
yum: name=sysstat state=present
- name: setup wget
yum: name=wget state=present
| - name: setup tmux
yum: name=tmux state=present
- name: setup vim
yum: name=vim-enhanced state=present
- name: setup sysstat
yum: name=sysstat state=present
- name: setup wget
yum: name=wget state=present
- name: setup telnet
yum: name=telnet state=present
- name: setup unzip
yum: name=unzip state=pres... | Add telnet, unzip and mailx | Add telnet, unzip and mailx
| YAML | mit | gitinsky/ansible-role-common-utils | yaml | ## Code Before:
- name: setup tmux
yum: name=tmux state=present
- name: setup vim
yum: name=vim-enhanced state=present
- name: setup sysstat
yum: name=sysstat state=present
- name: setup wget
yum: name=wget state=present
## Instruction:
Add telnet, unzip and mailx
## Code After:
- name: setup tmux
yum: n... |
405e57ee7043fb733c2fc0e5d94551ee1c4ce1e4 | app/Resources/views/user/event_info.html.twig | app/Resources/views/user/event_info.html.twig | {% extends 'base.html.twig' %}
{% block body %}
<div class="container-fluid">
<table class="table table-striped">
<caption>Hosted events</caption>
<thead>
<tr>
<th>Pavadinimas</th>
<th>Bendra suma</th>
<th>... | {% extends 'base.html.twig' %}
{% block body %}
<div class="container-fluid">
<table class="table table-striped">
<caption>Hosted events</caption>
<thead>
<tr>
<th>Pavadinimas</th>
<th>Bendra suma</th>
<th>... | Add totalDebt column to user info table. | Add totalDebt column to user info table.
| Twig | mit | nfqakademija/dydis-turi-reiksme,nfqakademija/dydis-turi-reiksme,nfqakademija/dydis-turi-reiksme,nfqakademija/dydis-turi-reiksme | twig | ## Code Before:
{% extends 'base.html.twig' %}
{% block body %}
<div class="container-fluid">
<table class="table table-striped">
<caption>Hosted events</caption>
<thead>
<tr>
<th>Pavadinimas</th>
<th>Bendra suma</th>
... |
0a9268ef06dc6c45ddfe601c6a1251fa9c2eddaf | HISTORY.rst | HISTORY.rst | =======
History
=======
0.1.1 (2016-07-14)
------------------
* Development status set to Stable, required new release level as PyPI
doesn't allow changing.
0.1.0 (2016-07-14)
------------------
* First release with complete documentation and pushed to PyPI.
* Fully implements decoding and encoding of generic re... | =======
History
=======
0.2.0 (2016-11-16)
------------------
* Wi-Fi Simple Configuration (WSC) and P2P records and attributes
decode and encode added.
0.1.1 (2016-07-14)
------------------
* Development status set to Stable, required new release level as PyPI
doesn't allow changing.
0.1.0 (2016-07-14)
------... | Add history entry for version 0.2.0 | Add history entry for version 0.2.0
| reStructuredText | isc | nfcpy/ndeflib | restructuredtext | ## Code Before:
=======
History
=======
0.1.1 (2016-07-14)
------------------
* Development status set to Stable, required new release level as PyPI
doesn't allow changing.
0.1.0 (2016-07-14)
------------------
* First release with complete documentation and pushed to PyPI.
* Fully implements decoding and encodi... |
b6632f1138b2006e869cfb2219e73e2c09c12d49 | setup.py | setup.py |
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight P... |
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight P... | Use github URL instead of documentation. | Use github URL instead of documentation.
| Python | apache-2.0 | c0fec0de/anytree | python | ## Code Before:
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful a... |
beee848a4c9ba1b40d82160ab414026b5a7f9f74 | CHANGELOG.md | CHANGELOG.md | 1.4.0
=====
* Fix error when disconnecting clients (missing argument for fs.close)
* Using `npm shrinkwrap` to fix dependency's versions
* Allow log level to be set with environment variable `LOGLEVEL`
* Adding timestamp to log output
* Kill server process if main.js (monitoring) gets killed.
This will **... | 1.4.0
=====
* Fix error when disconnecting clients (missing argument for fs.close)
* Using npm lock file to fix dependencies' versions
* Allow log level to be set with environment variable `LOGLEVEL`
* Adding timestamp to log output
* Kill server process if main.js (monitoring) gets killed.
This will **no... | Fix changelog: npm lockfile used instead of shrinkwrap | Fix changelog: npm lockfile used instead of shrinkwrap
| Markdown | mit | miroof/node-virtual-gamepads,miroof/node-virtual-gamepads | markdown | ## Code Before:
1.4.0
=====
* Fix error when disconnecting clients (missing argument for fs.close)
* Using `npm shrinkwrap` to fix dependency's versions
* Allow log level to be set with environment variable `LOGLEVEL`
* Adding timestamp to log output
* Kill server process if main.js (monitoring) gets killed.
... |
3f5c396820812f8a80e9ef9da33f7005af3393d7 | Cargo.toml | Cargo.toml | [package]
name = "ppapi"
version = "0.0.1"
authors = ["Richard Diamond"]
links = "helper"
build = "src/build.rs"
[lib]
name = "ppapi"
path = "src/lib/lib.rs"
[dependencies.http]
git = "https://github.com/chris-morgan/rust-http.git"
[dependencies.openssl]
git = "https://github.com/sfackler/rust-openssl.git"
[build-d... | [package]
name = "ppapi"
version = "0.0.1"
authors = ["Richard Diamond"]
links = "helper"
build = "src/build.rs"
[lib]
name = "ppapi"
path = "src/lib/lib.rs"
[dependencies.http]
git = "https://github.com/DiamondLovesYou/rust-http.git"
[dependencies.openssl]
git = "https://github.com/DiamondLovesYou/rust-openssl.git"... | Revert "Revert to upstream repos of rust-http && rust-openssl now that" | Revert "Revert to upstream repos of rust-http && rust-openssl now that"
This reverts commit c7ea05f74f9fd033133cd093187c98d084ea464b.
| TOML | mpl-2.0 | DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi | toml | ## Code Before:
[package]
name = "ppapi"
version = "0.0.1"
authors = ["Richard Diamond"]
links = "helper"
build = "src/build.rs"
[lib]
name = "ppapi"
path = "src/lib/lib.rs"
[dependencies.http]
git = "https://github.com/chris-morgan/rust-http.git"
[dependencies.openssl]
git = "https://github.com/sfackler/rust-openss... |
ff500e8c4cc378509b2505db7db5e866df75a52f | app/controllers/contacts_controller.rb | app/controllers/contacts_controller.rb | class ContactsController < ApplicationController
before_filter :authenticate_user!
def new
@message = Message.new
@subject = default_subject
user = User.find_by_id(params[:user_id])
if user.nil?
redirect_to root_path and return
end
@user = user
end
def create
@user = User.fin... | class ContactsController < ApplicationController
before_filter :authenticate_user!
def new
@message = Message.new
@subject = default_subject
@user = User.find params[:user_id]
redirect_to root_path if user.nil?
end
def create
@user = User.find_by_id(params[:user_id])
@message = Message... | Improve new method in Contacts Controller | [Refactor] Improve new method in Contacts Controller
| Ruby | mit | matouk1114/theodinproject,t-harps/theodinproject,twinlamp/theodinproject,TheOdinProject/theodinproject,kriox26/theodinproject,t-harps/theodinproject,FabioParaiso/theodinproject,willhayslett/theodinproject,laurennor/theodinproject,odinproject-challenges/theodinproject,laurennor/theodinproject,Powerade/theodinproject,ron... | ruby | ## Code Before:
class ContactsController < ApplicationController
before_filter :authenticate_user!
def new
@message = Message.new
@subject = default_subject
user = User.find_by_id(params[:user_id])
if user.nil?
redirect_to root_path and return
end
@user = user
end
def create
... |
0f4191318dd43f1e63965017a84d364134fbca38 | .travis.yml | .travis.yml | language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-php-driver-installer
- composer install
script: phpunit -c app
notifications:
email: [haircut@gmail.com]
| language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-php-driver-installer
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install
script: phpunit -c app
notifications:
email: [haircut@gmail.com]
| Fix CI build: set up parameters.yml | Fix CI build: set up parameters.yml
| YAML | mit | meonkeys/symfony2-dual-auth,meonkeys/symfony2-dual-auth | yaml | ## Code Before:
language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-php-driver-installer
- composer install
script: phpunit -c app
notifications:
email: [haircut@gmail.com]
## Instruction:
Fix CI build: set up parameters.yml
## Code After:
language: php
php: [5.3, 5.4]
before_script:
- ap... |
07ac088dac65a2a51624317e9bdee138eae638b0 | utilities/vertical-alignment.less | utilities/vertical-alignment.less | /* ========================================================================== *\
Utilities -> Vertical Alignment ($utilities-vertical-alignment)
\* ========================================================================== */
//
// Vertical alignment
//
// va = vertical-align
// t = top
// b = bottom
// m = midd... | /* ========================================================================== *\
Utilities -> Vertical Alignment ($utilities-vertical-alignment)
\* ========================================================================== */
//
// Vertical alignment
//
// va = vertical-align
// t = top
// b = bottom
// m = midd... | Use mixin to generate vertical alignment breakpoint classes | Use mixin to generate vertical alignment breakpoint classes
| Less | mit | cardinalcss/cardinalcss,cardinalcss/cardinalcss,cbracco/cardinal,cbracco/cardinal | less | ## Code Before:
/* ========================================================================== *\
Utilities -> Vertical Alignment ($utilities-vertical-alignment)
\* ========================================================================== */
//
// Vertical alignment
//
// va = vertical-align
// t = top
// b = bot... |
781c41425b26ec196eb3857cbf4e5119ae6af139 | locales/hu/addon.properties | locales/hu/addon.properties | tooltip_play= Lejátszás
tooltip_pause= Szünet
tooltip_mute= Némítás
tooltip_unmute= Némítás ki
tooltip_send_to_tab= Küldés lapra
tooltip_minimize= Kis méret
tooltip_maximize= Teljes méret
tooltip_close= Bezárás
error_msg= Valami rosszul ment ezzel a videóval. Próbálkozzon később.
error_link= Megnyitás új lapon
# LOCALI... | tooltip_play= Lejátszás
tooltip_pause= Szünet
tooltip_mute= Némítás
tooltip_unmute= Némítás ki
tooltip_send_to_tab= Küldés lapra
tooltip_minimize= Kis méret
tooltip_maximize= Teljes méret
tooltip_close= Bezárás
error_msg= Hiba történt ezzel a videóval. Próbálkozzon később.
error_link= Megnyitás új lapon
# LOCALIZATION ... | Update Hungarian (hu) localization of Test Pilot: Min Vid | Pontoon: Update Hungarian (hu) localization of Test Pilot: Min Vid
Localization authors:
- Gabor Kelemen <kelemeng@ubuntu.com>
| INI | mpl-2.0 | meandavejustice/min-vid,meandavejustice/min-vid,meandavejustice/min-vid | ini | ## Code Before:
tooltip_play= Lejátszás
tooltip_pause= Szünet
tooltip_mute= Némítás
tooltip_unmute= Némítás ki
tooltip_send_to_tab= Küldés lapra
tooltip_minimize= Kis méret
tooltip_maximize= Teljes méret
tooltip_close= Bezárás
error_msg= Valami rosszul ment ezzel a videóval. Próbálkozzon később.
error_link= Megnyitás ú... |
82d2a78caa0eef964c8286025635676b6617c1a3 | test/small1/longBlock.ml | test/small1/longBlock.ml | open Cil
;;
initCIL ();
let variable = makeGlobalVar "value" intType in
let instructions = ref [] in
for loop = 1 to 25000 do
let instruction = Set(var variable, integer loop, locUnknown) in
instructions := instruction :: !instructions
done;
let statement = mkStmt (Instr !instructions) in
dumpStmt defaultCilPr... | open Cil
;;
initCIL ();
let variable = makeGlobalVar "value" intType in
let instructions = ref [] in
for loop = 1 to 25000 do
let instruction = Set(var variable, integer loop, locUnknown) in
instructions := instruction :: !instructions
done;
let statement = mkStmt (Instr !instructions) in
let sink = open_out "... | Revise the long statement block test to print the block into /dev/null instead of stdout. We don't really want 25,000 lines of C code to appear in the test log once this bug gets fixed. | Revise the long statement block test to print the block into /dev/null
instead of stdout. We don't really want 25,000 lines of C code to appear
in the test log once this bug gets fixed.
| OCaml | bsd-3-clause | samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c | ocaml | ## Code Before:
open Cil
;;
initCIL ();
let variable = makeGlobalVar "value" intType in
let instructions = ref [] in
for loop = 1 to 25000 do
let instruction = Set(var variable, integer loop, locUnknown) in
instructions := instruction :: !instructions
done;
let statement = mkStmt (Instr !instructions) in
dumpS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.