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
532c80a61bb428fa9b2d73cfd227dc6e95a77c00
tests/conftest.py
tests/conftest.py
collect_ignore = [] try: import asyncio except ImportError: collect_ignore.append('test_asyncio.py')
from sys import version_info as v collect_ignore = [] if not (v[0] >= 3 and v[1] >= 5): collect_ignore.append('test_asyncio.py')
Exclude asyncio tests from 3.4
Exclude asyncio tests from 3.4
Python
mit
jfhbrook/pyee
python
## Code Before: collect_ignore = [] try: import asyncio except ImportError: collect_ignore.append('test_asyncio.py') ## Instruction: Exclude asyncio tests from 3.4 ## Code After: from sys import version_info as v collect_ignore = [] if not (v[0] >= 3 and v[1] >= 5): collect_ignore.append('test_asyncio....
fb61c3c64d2426e4e7a6e454cbf57b15e003ce66
etl/__init__.py
etl/__init__.py
from base import BaseCSV, get_local_handles, ingest_feeds, create_seasons from overview import (ClubIngest, CountryIngest, CompetitionIngest, PlayerIngest, PersonIngest) from financial import (AcquisitionIngest, PlayerSalaryIngest, PartialTenureIngest) from statistics import (FieldStatIngest, GoalkeeperStatIngest, Leag...
from base import BaseCSV, get_local_handles, ingest_feeds, create_seasons from overview import (ClubIngest, CountryIngest, CompetitionIngest, PlayerIngest, PersonIngest) from financial import (AcquisitionIngest, PlayerSalaryIngest, PartialTenureIngest) from statistics import (FieldStatIngest, GoalkeeperStatIngest, Leag...
Add list of entities and ETL classes for CSV files
Add list of entities and ETL classes for CSV files
Python
mit
soccermetrics/marcotti-mls
python
## Code Before: from base import BaseCSV, get_local_handles, ingest_feeds, create_seasons from overview import (ClubIngest, CountryIngest, CompetitionIngest, PlayerIngest, PersonIngest) from financial import (AcquisitionIngest, PlayerSalaryIngest, PartialTenureIngest) from statistics import (FieldStatIngest, Goalkeeper...
0eff4484d0f90726e19f8fe8a7fa0e4a76fb828f
src/components/EntryListing/EntryListing.css
src/components/EntryListing/EntryListing.css
.card { overflow: hidden; margin-bottom: 10px; max-height: 290px; width: 240px; cursor: pointer; } .cardImage { width: 240px; height: 135px; background-position: center center; background-size: cover; background-repeat: no-repeat; } .cardsGrid { display: flex; flex-flow: row wrap; justify-co...
.card { overflow: hidden; margin-bottom: 10px; max-height: 290px; width: 240px; cursor: pointer; margin-left: 15px; } .cardImage { width: 240px; height: 135px; background-position: center center; background-size: cover; background-repeat: no-repeat; } .cardsGrid { display: flex; flex-flow: r...
Fix alignment of entry cards
Fix alignment of entry cards
CSS
mit
netlify/netlify-cms,dopry/netlify-cms,dopry/netlify-cms,netlify/netlify-cms,Aloomaio/netlify-cms,netlify/netlify-cms,Aloomaio/netlify-cms,netlify/netlify-cms
css
## Code Before: .card { overflow: hidden; margin-bottom: 10px; max-height: 290px; width: 240px; cursor: pointer; } .cardImage { width: 240px; height: 135px; background-position: center center; background-size: cover; background-repeat: no-repeat; } .cardsGrid { display: flex; flex-flow: row wr...
0e598d07ec27117cfe46628968b185a287bcf275
src/operations/handlers/graphql/compile/schema/types/object/nested_models.js
src/operations/handlers/graphql/compile/schema/types/object/nested_models.js
'use strict'; const { omit } = require('../../../../../../../utilities'); // Create nested models definitions const getNestedModel = function (def, { inputObjectType, topDef }) { const { target } = def; // Only for nested models, that are not data|filter arguments const isNested = target !== undefined && input...
'use strict'; const { omit } = require('../../../../../../../utilities'); // Create nested models definitions const getNestedModel = function (def, { inputObjectType, topDef }) { const { target } = def; // Only for nested models, that are not filter arguments const isNested = target !== undefined && inputObjec...
Fix args.data nesting for GraphQL schema
Fix args.data nesting for GraphQL schema
JavaScript
apache-2.0
autoserver-org/autoserver,autoserver-org/autoserver
javascript
## Code Before: 'use strict'; const { omit } = require('../../../../../../../utilities'); // Create nested models definitions const getNestedModel = function (def, { inputObjectType, topDef }) { const { target } = def; // Only for nested models, that are not data|filter arguments const isNested = target !== un...
ef9c6e10d61c25700c706b7bab1f4aad850aace0
StyleCop.Analyzers/version.json
StyleCop.Analyzers/version.json
{ "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.1.1-beta.{height}", // The build number offset accounts for the delay in adopting Nerdbank.GitVersioning "buildNumberOffset": 40, "assemblyVersion": { "preci...
{ "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.2.0-beta.{height}", "assemblyVersion": { "precision": "revision" }, "publicReleaseRefSpec": [ "^refs/heads/master$" ], "nugetPackageVersion": { "...
Update the master branch to 1.2.0-beta
Update the master branch to 1.2.0-beta
JSON
mit
DotNetAnalyzers/StyleCopAnalyzers
json
## Code Before: { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.1.1-beta.{height}", // The build number offset accounts for the delay in adopting Nerdbank.GitVersioning "buildNumberOffset": 40, "assemblyVersio...
62477f076d73f7f47eba2aa674012a5abf43f4d9
website/src/_includes/footer.html
website/src/_includes/footer.html
<hr> <div class="row"> <div class="col-xs-12"> <footer> <p class="text-center">&copy; Copyright 2016 <a href="http://www.apache.org">The Apache Software Foundation.</a> All Rights Reserved.</p> <p class="text-center"><a href="{{ site.baseurl }}/privacy_pol...
<hr> <div class="row"> <div class="col-xs-12"> <footer> <p class="text-center"> &copy; Copyright <a href="http://www.apache.org">The Apache Software Foundation</a>, {{ 'now' | date: "%Y" }}. All Rights Reserved. </p> ...
Update copyright on each page
Update copyright on each page Update year, fix ordering, make it automatically update.
HTML
apache-2.0
RyanSkraba/beam,lukecwik/incubator-beam,chamikaramj/beam,apache/beam,RyanSkraba/beam,lukecwik/incubator-beam,robertwb/incubator-beam,apache/beam,apache/beam,chamikaramj/beam,rangadi/beam,lukecwik/incubator-beam,charlesccychen/beam,mxm/incubator-beam,rangadi/incubator-beam,rangadi/beam,chamikaramj/beam,robertwb/incubato...
html
## Code Before: <hr> <div class="row"> <div class="col-xs-12"> <footer> <p class="text-center">&copy; Copyright 2016 <a href="http://www.apache.org">The Apache Software Foundation.</a> All Rights Reserved.</p> <p class="text-center"><a href="{{ site.baseur...
33146a74c1b6b3c7da26158c510c1f5a59664698
tests/stdlib/tos.nim
tests/stdlib/tos.nim
import os proc walkDirTree(root: string) = for k, f in walkDir(root): case k of pcFile, pcLinkToFile: echo(f) of pcDir: walkDirTree(f) of pcLinkToDir: discard walkDirTree(".")
# test os path creation, iteration, and deletion import os let files = @["these.txt", "are.x", "testing.r", "files.q"] let dirs = @["some", "created", "test", "dirs"] let dname = "__really_obscure_dir_name" createDir(dname) echo dirExists(dname) # Test creating files and dirs for dir in dirs: createDir(dname/dir...
Add os tests for directory creation, iteration and deletion
Add os tests for directory creation, iteration and deletion
Nimrod
mit
jfhg/Nim,russpowers/Nim,tulayang/Nim,dom96/Nim,tulayang/Nim,haiodo/Nim,jfhg/Nim,russpowers/Nim,jfhg/Nim,haiodo/Nim,tulayang/Nim,zachaysan/Nim,haiodo/Nim,haiodo/Nim,mbaulch/Nim,dom96/Nim,tulayang/Nim,mbaulch/Nim,jfhg/Nim,mbaulch/Nim,jfhg/Nim,singularperturbation/Nim,tulayang/Nim,russpowers/Nim,mbaulch/Nim,mbaulch/Nim,za...
nimrod
## Code Before: import os proc walkDirTree(root: string) = for k, f in walkDir(root): case k of pcFile, pcLinkToFile: echo(f) of pcDir: walkDirTree(f) of pcLinkToDir: discard walkDirTree(".") ## Instruction: Add os tests for directory creation, iteration and deletion ## Code After: # test os path...
d19ae92ebd867d1341c4b99ad3e9664ddabcbe4d
.travis.yml
.travis.yml
language: go os: - linux - osx sudo: false install: - echo $PATH - echo $GOPATH - ls - go version - go env - go get golang.org/x/crypto/ssh - go get github.com/codegangsta/cli # Build help - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - bash mini...
language: go os: - linux - osx sudo: false install: - echo $PATH - echo $GOPATH - ls - go version - go env - go get golang.org/x/crypto/ssh - go get github.com/codegangsta/cli # Build help - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://repo.continuum.io/miniconda/Miniconda3-lat...
Add miniconda for correct OS
Add miniconda for correct OS
YAML
apache-2.0
danielfrg/remote-conda
yaml
## Code Before: language: go os: - linux - osx sudo: false install: - echo $PATH - echo $GOPATH - ls - go version - go env - go get golang.org/x/crypto/ssh - go get github.com/codegangsta/cli # Build help - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.s...
1802adf81a79fbab66cd6244da29ec8eefba1c3a
files/mac_pkg/Resources/welcome.html
files/mac_pkg/Resources/welcome.html
This will install Treasure Agent on your Mac. -------------------------------------------------- This is a basic welcome message that is generated for every Omnibus project. You should customize this message by editing the file at files/mac_pkg/welcome.html. If you are not the developer of td-agent, the presence of ...
This will install Treasure Agent on your Mac. -------------------------------------------------- Thank you for trying Treasure Agent! Have a fantastic day! You can start / stop Treasure Agent via launchctl command. - start td-agent % sudo launchctl load /Library/LaunchDaemons/td-agent.plist - stop td-agent % sud...
Change welcom message of pkg
Change welcom message of pkg
HTML
apache-2.0
iantalarico/google-fluentd,GoogleCloudPlatform/google-fluentd,GoogleCloudPlatform/google-fluentd,treasure-data/omnibus-td-agent,treasure-data/omnibus-td-agent,iantalarico/google-fluentd,treasure-data/omnibus-td-agent,GoogleCloudPlatform/google-fluentd,iantalarico/google-fluentd
html
## Code Before: This will install Treasure Agent on your Mac. -------------------------------------------------- This is a basic welcome message that is generated for every Omnibus project. You should customize this message by editing the file at files/mac_pkg/welcome.html. If you are not the developer of td-agent, ...
05949c903817b93dd7fd71211260db625180eed6
docs/content/showcase/firstnameclub.md
docs/content/showcase/firstnameclub.md
--- date: 2017-03-31T22:36:12+03:00 description: "Multilingual webiste. Size 20GB, build time 25 mins. Cloudflare, s3, bootstrap 4" license: "" licenseLink: "" sitelink: https://firstname.club sourceLink: https://github.com/spf13/spf13.com tags: - data - website thumbnail: /img/firstnameclub.png title: firstname club -...
--- date: 2017-03-31T22:36:12+03:00 description: "Multilingual website. Size 20GB, build time 25 mins. Cloudflare, s3, bootstrap 4" license: "" licenseLink: "" sitelink: https://firstname.club sourceLink: tags: - data - website thumbnail: /img/firstnameclub.png title: firstname club ---
Fix typo/source link in firstname.club showcase addition
docs: Fix typo/source link in firstname.club showcase addition
Markdown
apache-2.0
mdhender/hugo,fedelibre/hugo,mitchchn/hugo,gohugoio/hugo,anthonyfok/hugo,digitalcraftsman/hugo,digitalcraftsman/hugo,anthonyfok/hugo,gohugoio/hugo,mdhender/hugo,gohugoio/hugo,fedelibre/hugo,mdhender/hugo,mitchchn/hugo,fedelibre/hugo,anthonyfok/hugo,fedelibre/hugo,mdhender/hugo
markdown
## Code Before: --- date: 2017-03-31T22:36:12+03:00 description: "Multilingual webiste. Size 20GB, build time 25 mins. Cloudflare, s3, bootstrap 4" license: "" licenseLink: "" sitelink: https://firstname.club sourceLink: https://github.com/spf13/spf13.com tags: - data - website thumbnail: /img/firstnameclub.png title: ...
138df31dc628daad0c60f062b05774d6c7d4338d
src/kuas_api/modules/const.py
src/kuas_api/modules/const.py
device_version = { "android": "2.1.2", "android_donate": "2.1.2", "ios": "1.4.3" } # Token duration in seconds token_duration = 3600 # HTTP Status Code ok = 200 no_content = 204
device_version = { "android": "2.1.3", "android_donate": "2.1.2", "ios": "1.6.0" } # Token duration in seconds token_duration = 3600 serect_key = "usapoijupojfa;dsj;lv;ldakjads;lfkjapoiuewqprjf" # HTTP Status Code ok = 200 no_content = 204
Change android version to 2.1.3
Change android version to 2.1.3
Python
mit
JohnSounder/AP-API,kuastw/AP-API,kuastw/AP-API,JohnSounder/AP-API
python
## Code Before: device_version = { "android": "2.1.2", "android_donate": "2.1.2", "ios": "1.4.3" } # Token duration in seconds token_duration = 3600 # HTTP Status Code ok = 200 no_content = 204 ## Instruction: Change android version to 2.1.3 ## Code After: device_version = { "android": "2.1.3", ...
2af5d7f81ab18d10395607f6e94ef4f0da7b9c68
src/Auth/Registrar.php
src/Auth/Registrar.php
<?php namespace LaraParse\Auth; use Illuminate\Contracts\Auth\Registrar as RegistrarContract; use Illuminate\Contracts\Validation\Factory as ValidationFactory; use Illuminate\Support\MessageBag; use LaraParse\Subclasses\User; use Parse\ParseException; class Registrar implements RegistrarContract { /** * @va...
<?php namespace LaraParse\Auth; use Illuminate\Contracts\Auth\Registrar as RegistrarContract; use Illuminate\Contracts\Validation\Factory as ValidationFactory; use LaraParse\Subclasses\User; use Parse\ParseObject; class Registrar implements RegistrarContract { /** * @var \Illuminate\Contracts\Validation\Fac...
Update registrar to dynamically fetch registered `_User` subclass
Update registrar to dynamically fetch registered `_User` subclass
PHP
mit
redkyo017/LaraParse,HipsterJazzbo/LaraParse
php
## Code Before: <?php namespace LaraParse\Auth; use Illuminate\Contracts\Auth\Registrar as RegistrarContract; use Illuminate\Contracts\Validation\Factory as ValidationFactory; use Illuminate\Support\MessageBag; use LaraParse\Subclasses\User; use Parse\ParseException; class Registrar implements RegistrarContract { ...
59ba74958c2cb4eab5ba0522181ac7eed21e7148
extensions/lite/views/Admin/index.jsx
extensions/lite/views/Admin/index.jsx
import React, { Component } from 'react' export default class AdminView extends Component { render() { return null } }
// To fix commit import React, { Component } from 'react' export default class AdminView extends Component { render() { return null } }
Add a comment to fix commit number error
Add a comment to fix commit number error
JSX
agpl-3.0
botpress/botpress,botpress/botpress,botpress/botpress,botpress/botpress
jsx
## Code Before: import React, { Component } from 'react' export default class AdminView extends Component { render() { return null } } ## Instruction: Add a comment to fix commit number error ## Code After: // To fix commit import React, { Component } from 'react' export default class AdminView extends Com...
09f568641ee38b73d4b1992ce6cab52c602c8de4
log/google_play_music_desktop_chromecast.md
log/google_play_music_desktop_chromecast.md
- Enable avahi-daemon with systemd: ``` sudo systemctl enable --now avahi-daemon.service ```
- Install `avahi` and `nss-mdns` - Enable `avahi-daemon.service` and `avahi-daemon.socket` with systemd: ``` sudo systemctl enable --now avahi-daemon.service avahi-daemon.socket ``` - If it still does not work, change the following line in nsswitch configuration ``` /etc/nsswitch.conf ~~~~~~~~~~~~~~~~~~~ ... hosts: fi...
Add additional notes for gpmdp Chromecast support
Log: Add additional notes for gpmdp Chromecast support
Markdown
mit
L3Tomi/dotfiles,AnonymFox/dotfiles
markdown
## Code Before: - Enable avahi-daemon with systemd: ``` sudo systemctl enable --now avahi-daemon.service ``` ## Instruction: Log: Add additional notes for gpmdp Chromecast support ## Code After: - Install `avahi` and `nss-mdns` - Enable `avahi-daemon.service` and `avahi-daemon.socket` with systemd: ``` sudo systemc...
72dea9616a84cefd8424f965060552c84cfd241d
tests/test_luabject.py
tests/test_luabject.py
try: import unittest2 as unittest except ImportError: import unittest from village import _luabject class TestDirect(unittest.TestCase): def test_new(self): state = _luabject.new() # PyCObject isn't available to assertIsInstance, so: self.assertEqual(type(state).__name__, 'PyCOb...
try: import unittest2 as unittest except ImportError: import unittest from village import _luabject class TestDirect(unittest.TestCase): def test_new(self): state = _luabject.new() # PyCObject isn't available to assertIsInstance, so: self.assertEqual(type(state).__name__, 'PyCOb...
Test unrunnable script exceptions too
Test unrunnable script exceptions too
Python
mit
markpasc/luabject,markpasc/luabject
python
## Code Before: try: import unittest2 as unittest except ImportError: import unittest from village import _luabject class TestDirect(unittest.TestCase): def test_new(self): state = _luabject.new() # PyCObject isn't available to assertIsInstance, so: self.assertEqual(type(state)....
b60bd28e135ac4abe2ea53a0707518c10dda2ee6
README.md
README.md
A compile-to-JS programming language. ## How do I install it? npm install -g wavebeem/squiggle ## How do I use it? Please follow the [tutorial](http://mockbrian.com/squiggle/tutorial/). ## Code of conduct This project uses the [Contributor Covenant](https://github.com/saikobee/squiggle/blob/master/CODE_OF_CO...
A compile-to-JS programming language. ## How do I install it? npm install -g wavebeem/squiggle ## How do I use it? Please follow the [tutorial](http://mockbrian.com/squiggle/tutorial/). ## Code of conduct This project uses the [Contributor Covenant](https://github.com/saikobee/squiggle/blob/master/CODE_OF_CO...
Update readme for missing command
Update readme for missing command Add npm install to the readme for users trying to build locally. Experienced users won’t need it, but new people will to know how to actually run this.
Markdown
mit
saikobee/squiggle,saikobee/squiggle,saikobee/expr-lang,wavebeem/squiggle,wavebeem/squiggle,squiggle-lang/squiggle-lang,saikobee/expr-lang,squiggle-lang/squiggle-lang,saikobee/squiggle,wavebeem/squiggle,saikobee/expr-lang,squiggle-lang/squiggle-lang
markdown
## Code Before: A compile-to-JS programming language. ## How do I install it? npm install -g wavebeem/squiggle ## How do I use it? Please follow the [tutorial](http://mockbrian.com/squiggle/tutorial/). ## Code of conduct This project uses the [Contributor Covenant](https://github.com/saikobee/squiggle/blob/m...
f505abb7da052e109a55b418dfbf3ebb0a6fd71f
PathKit/PathKit.h
PathKit/PathKit.h
// // PathKit.h // PathKit // // Created by Kyle Fuller on 20/11/2014. // Copyright (c) 2014 Cocode. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for PathKit. FOUNDATION_EXPORT double PathKitVersionNumber; //! Project version string for PathKit. FOUNDATION_EXPORT const uns...
// // PathKit.h // PathKit // // Created by Kyle Fuller on 20/11/2014. // Copyright (c) 2014 Cocode. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for PathKit. FOUNDATION_EXPORT double PathKitVersionNumber; //! Project version string for PathKit. FOUNDATION_EXPORT const uns...
Remove useless comment from umbrella header
Remove useless comment from umbrella header
C
bsd-2-clause
weby/PathKit,weby/PathKit,kylef/PathKit,RahulKatariya/PathKit,kylef/PathKit,RahulKatariya/PathKit
c
## Code Before: // // PathKit.h // PathKit // // Created by Kyle Fuller on 20/11/2014. // Copyright (c) 2014 Cocode. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for PathKit. FOUNDATION_EXPORT double PathKitVersionNumber; //! Project version string for PathKit. FOUNDATION_...
25b7b4e80b5b7029d9fb99292ec1ee5a65fb2066
test/stop.js
test/stop.js
'use strict'; var expect = require('expect'); var ioc = require('../'); describe('.stop()', function () { it('should call stop on all active instances', function (done) { var stopA = 0; var app = ioc.create() .singleton('a', function () { return {stop: function () { stopA++; return...
'use strict'; var expect = require('expect'); var ioc = require('../'); var P = typeof Promise === 'undefined' ? require('es6-promise').Promise : Promise; describe('.stop()', function () { it('should call stop on all active instances', function (done) { var stopA = 0; var app = ioc.create() .singleton('...
Fix reference to undefined 'Promise' in tests (node v0.10.48)
Fix reference to undefined 'Promise' in tests (node v0.10.48)
JavaScript
mit
aantthony/di-ioc,aantthony/di-ioc
javascript
## Code Before: 'use strict'; var expect = require('expect'); var ioc = require('../'); describe('.stop()', function () { it('should call stop on all active instances', function (done) { var stopA = 0; var app = ioc.create() .singleton('a', function () { return {stop: function () { stopA++...
4d4f4072a59ae436038ce68804e1dc806b7760bd
app/controllers/timeline_events_controller.rb
app/controllers/timeline_events_controller.rb
class TimelineEventsController < ApplicationController resource_controller actions :index, :show before_filter :set_atom show.failure.wants.html { rescue_404 } index.wants.atom { @events = @timeline_events } index.wants.js { render :partial => "paginated_events", :locals => { :events => @timeline_events...
class TimelineEventsController < ApplicationController resource_controller actions :index, :show before_filter :set_atom show.failure.wants.html { rescue_404 } index.wants.atom { @events = TimelineEvent.recent } index.wants.js { render :partial => "paginated_events", :locals => { :events => @timeline_ev...
Use correct set of timeline events for the atom feed
Use correct set of timeline events for the atom feed
Ruby
mit
hadley/crantastic,hadley/crantastic,tenforwardconsulting/crantastic,tenforwardconsulting/crantastic,tenforwardconsulting/crantastic,hadley/crantastic,tenforwardconsulting/crantastic
ruby
## Code Before: class TimelineEventsController < ApplicationController resource_controller actions :index, :show before_filter :set_atom show.failure.wants.html { rescue_404 } index.wants.atom { @events = @timeline_events } index.wants.js { render :partial => "paginated_events", :locals => { :events => ...
f5e4ab31306acd9c125c7e870594ffc0b157f750
client/views/team/team-home.html
client/views/team/team-home.html
<template name="teamHome"> {{#header class="channel-header"}} <h1>{{currentTeam.name}}</h1> {{/header}} {{#content class="channel-content"}} <p>Welcome to the team page.</p> {{/content}} </template>
<template name="teamHome"> {{#if currentTeam}} {{#header class="channel-header"}} <h1>{{currentTeam.name}}</h1> {{/header}} {{#content class="channel-content"}} <p>Welcome to the team page.</p> {{/content}} {{else}} {{> notFound}} {{/if}} </template>
Check for team existence before rendering
Check for team existence before rendering
HTML
mit
foysalit/SpaceTalk,dannypaton/SpaceTalk,yanisIk/SpaceTalk,MarkBandilla/SpaceTalk,SpaceTalk/SpaceTalk,anjneymidha/SpaceTalk,syrenio/SpaceTalk,dannypaton/SpaceTalk,syrenio/SpaceTalk,lhaig/SpaceTalk,foysalit/SpaceTalk,tamzi/SpaceTalk,bright-sparks/SpaceTalk,redanium/SpaceTalk,tamzi/SpaceTalk,MarkBandilla/SpaceTalk,maurici...
html
## Code Before: <template name="teamHome"> {{#header class="channel-header"}} <h1>{{currentTeam.name}}</h1> {{/header}} {{#content class="channel-content"}} <p>Welcome to the team page.</p> {{/content}} </template> ## Instruction: Check for team existence before rendering ## Code After: <template name...
82457741a352602f6ef946e387070c77eb50781c
examples/macallan.py
examples/macallan.py
from malt import Malt, Response, json from wsgiref.simple_server import make_server app = Malt() @app.get('/') def hello(request): return Response(request.url + '\n') @app.post('/users') def hello(request): return Response('Creating new user\n') @app.get('/tasks') def hello(request): return json({'t...
from malt import Malt, Response, json from wsgiref.simple_server import make_server app = Malt() @app.get('/') def hello(request): return Response(request.url + '\n') @app.post('/users') def hello(request): return Response('Creating new user\n') @app.get('/tasks') def hello(request): return json({'t...
Print a serving message in the example app
Print a serving message in the example app
Python
mit
nickfrostatx/malt
python
## Code Before: from malt import Malt, Response, json from wsgiref.simple_server import make_server app = Malt() @app.get('/') def hello(request): return Response(request.url + '\n') @app.post('/users') def hello(request): return Response('Creating new user\n') @app.get('/tasks') def hello(request): ...
9f1c4abc3827bfda622d65928d67e882925955dd
app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper def page_title(title) "#{title} - Ralin Chimev" end def gravatar_url(email, size) gravatar = Digest::MD5.hexdigest(email).downcase "//gravatar.com/avatar/#{gravatar}.png?s=#{size}" end end
module ApplicationHelper def page_title(title) "#{title} - Ralin Chimev".html_safe end def gravatar_url(email, size) gravatar = Digest::MD5.hexdigest(email).downcase "//gravatar.com/avatar/#{gravatar}.png?s=#{size}" end end
Fix page title html escaping
Fix page title html escaping
Ruby
mit
ralinc/ralin.net,ralinc/ralin.net,ralinc/ralin.net
ruby
## Code Before: module ApplicationHelper def page_title(title) "#{title} - Ralin Chimev" end def gravatar_url(email, size) gravatar = Digest::MD5.hexdigest(email).downcase "//gravatar.com/avatar/#{gravatar}.png?s=#{size}" end end ## Instruction: Fix page title html escaping ## Code After: module ...
2932605c4d05cd436e66064c21d4749f3bf8eb39
src/app/modules/zone-message/zone-message.component.scss
src/app/modules/zone-message/zone-message.component.scss
@import '~../../styles/_color.scss'; :host { cursor: pointer; &.new { color: red; } } h3 { margin-bottom: 0; margin-top: 0; } .body { .sending { display: flex; mat-form-field { flex: 1; } button { margin-left: 10px; } } } .messages-container { max-height: 300px; ...
@import '~../../styles/_color.scss'; @keyframes bounce { from { transform: translateY(0); } 50% { transform: translateY(-5px); } to { transform: translateY(0); } } :host { cursor: pointer; &.new { mat-icon { color: red; animation: bounce 1s ease infinite; } } } h3 { ...
Add animation on new message
Add animation on new message
SCSS
mit
AurelieV/end-of-round,AurelieV/end-of-round,AurelieV/end-of-round
scss
## Code Before: @import '~../../styles/_color.scss'; :host { cursor: pointer; &.new { color: red; } } h3 { margin-bottom: 0; margin-top: 0; } .body { .sending { display: flex; mat-form-field { flex: 1; } button { margin-left: 10px; } } } .messages-container { max-...
508146a08444069e00d1816a35679758e0e002db
source_me.sh
source_me.sh
export LIBRARY_PATH=`pwd`/lib:$LIBRARY_PATH export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH export LD_INCLUDE_PATH=`pwd`/include:$LD_INCLUDE_PATH export C_INCLUDE_PATH=`pwd`/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=`pwd`/include:$CPLUS_INCLUDE_PATH export INCLUDE_PATH=`pwd`/include:$INCLUDE_PATH export PATH=...
export LIBRARY_PATH=`pwd`/lib:$LIBRARY_PATH export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=`pwd`/lib:$DYLD_LIBRARY_PATH export LD_INCLUDE_PATH=`pwd`/include:$LD_INCLUDE_PATH export C_INCLUDE_PATH=`pwd`/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=`pwd`/include:$CPLUS_INCLUDE_PATH export...
Update DYLD_LIBRARY_PATH so that Mac builds can find the right Boost
Update DYLD_LIBRARY_PATH so that Mac builds can find the right Boost
Shell
mit
ekg/vg,ekg/vg,ekg/vg
shell
## Code Before: export LIBRARY_PATH=`pwd`/lib:$LIBRARY_PATH export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH export LD_INCLUDE_PATH=`pwd`/include:$LD_INCLUDE_PATH export C_INCLUDE_PATH=`pwd`/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=`pwd`/include:$CPLUS_INCLUDE_PATH export INCLUDE_PATH=`pwd`/include:$INCLUDE_P...
f0e67ca657915e77b1f28bab9fa29f84bfbb8f06
tests/unit/test_DB.py
tests/unit/test_DB.py
import StringIO from unittest import TestCase # custom modules from iago.DatabaseProvider import DB class TestDB(TestCase): def test_read_empty(self): s = StringIO.StringIO('{}') d = DB() try: d.read(s) except KeyError: self.fail('DB cannot handle empty JSON files.')
import StringIO from unittest import TestCase # custom modules from iago.DatabaseProvider import DB class TestDB(TestCase): def test_read_empty(self): s = StringIO.StringIO('{}') d = DB() try: d.read(s, format='json') except KeyError: self.fail('DB cannot handle empty JSON files.')
Fix test to specify file format
Fix test to specify file format
Python
mit
ferchault/iago
python
## Code Before: import StringIO from unittest import TestCase # custom modules from iago.DatabaseProvider import DB class TestDB(TestCase): def test_read_empty(self): s = StringIO.StringIO('{}') d = DB() try: d.read(s) except KeyError: self.fail('DB cannot handle empty JSON files.') ## Instruction: F...
848900a9e43c9713ba3046689fe2b810354ef3ae
Prelude/Curry.swift
Prelude/Curry.swift
// Copyright (c) 2014 Rob Rix. All rights reserved. // MARK: - Currying /// Curries a binary function `f`, producing a function which can be partially applied. public func curry<T, U, V>(f: (T, U) -> V) -> T -> U -> V { return { x in { y in f(x, y) }} } /// Curries a ternary function `f`, producing a function whic...
// Copyright (c) 2014 Rob Rix. All rights reserved. // MARK: - Currying /// Curries a binary function `f`, producing a function which can be partially applied. public func curry<T, U, V>(f: (T, U) -> V) -> T -> U -> V { return { x in { y in f(x, y) }} } /// Curries a ternary function `f`, producing a function whic...
Fix a doc comment typo.
Fix a doc comment typo.
Swift
mit
335g/Prelude,335g/Prelude,robrix/Prelude,335g/Prelude,robrix/Prelude,robrix/Prelude
swift
## Code Before: // Copyright (c) 2014 Rob Rix. All rights reserved. // MARK: - Currying /// Curries a binary function `f`, producing a function which can be partially applied. public func curry<T, U, V>(f: (T, U) -> V) -> T -> U -> V { return { x in { y in f(x, y) }} } /// Curries a ternary function `f`, producing...
f63a9e9f1c8161758ce1380268e3a3588bb87254
shared/js/migrations/migrations.js
shared/js/migrations/migrations.js
/** * Migrates the database from one version to another. */ function migrateStorage() { var extensionVersion = getExtensionVersion().major; getStorageVersion(function(storageVersion) { if (extensionVersion != storageVersion) { console.log("Extension and storage versions are not equal", extensionVersion, stora...
/** * Migrates the database from one version to another. */ function migrateStorage() { var extensionVersion = getExtensionVersion().major; console.log("Checking to see if a migration is needed..."); getStorageVersion(function(storageVersion) { if (extensionVersion != storageVersion) { console.log("Migratio...
Add some more clear migration debug logs.
Add some more clear migration debug logs.
JavaScript
mit
AntarcticApps/Tiles,AntarcticApps/Tiles
javascript
## Code Before: /** * Migrates the database from one version to another. */ function migrateStorage() { var extensionVersion = getExtensionVersion().major; getStorageVersion(function(storageVersion) { if (extensionVersion != storageVersion) { console.log("Extension and storage versions are not equal", extensi...
2951452c2cb18a504fd3f1a2e5009ecdbece9599
config/deploy.rb
config/deploy.rb
namespace :deploy do task :cold do # Overriding the default deploy:cold update setup_db start end task :setup_db, :roles => :app do run "cd #{current_path}; /usr/bin/env bundle exec rake db:setup RAILS_ENV=#{rails_env}" end end #Application set :application, 'bookyt' set :repository, 'g...
namespace :deploy do task :cold do # Overriding the default deploy:cold update setup_db start end task :setup_db, :roles => :app do run "cd #{current_path}; /usr/bin/env bundle exec rake db:setup RAILS_ENV=#{rails_env}" end end #Application set :application, 'bookyt' set :repository, 'g...
Add asset precompile cap recipe.
Add asset precompile cap recipe.
Ruby
agpl-3.0
gaapt/bookyt,xuewenfei/bookyt,huerlisi/bookyt,hauledev/bookyt,silvermind/bookyt,silvermind/bookyt,huerlisi/bookyt,xuewenfei/bookyt,wtag/bookyt,gaapt/bookyt,hauledev/bookyt,silvermind/bookyt,wtag/bookyt,xuewenfei/bookyt,gaapt/bookyt,wtag/bookyt,silvermind/bookyt,huerlisi/bookyt,gaapt/bookyt,hauledev/bookyt,hauledev/book...
ruby
## Code Before: namespace :deploy do task :cold do # Overriding the default deploy:cold update setup_db start end task :setup_db, :roles => :app do run "cd #{current_path}; /usr/bin/env bundle exec rake db:setup RAILS_ENV=#{rails_env}" end end #Application set :application, 'bookyt' set ...
4bb05ad5e814c871a1d61141a54b51642b9d2214
lib/expressjsmvc.js
lib/expressjsmvc.js
var path = require("path"); var mvc = exports = module.exports; /** * Enable having multiple folders for views to support the * module/mymodule/views structure */ mvc.EnableMultipeViewsFolders = function(app) { // Monkey-patch express to accept multiple paths for looking up views. // this path may change depe...
var path = require("path"); var mvc = exports = module.exports; /** * Enable having multiple folders for views to support the * module/mymodule/views structure */ mvc.EnableMultipeViewsFolders = function(app) { // Monkey-patch express to accept multiple paths for looking up views. // this path may change depe...
Remove a couple of console.log calls
Remove a couple of console.log calls
JavaScript
mit
luiselizondo/expressjsmvc
javascript
## Code Before: var path = require("path"); var mvc = exports = module.exports; /** * Enable having multiple folders for views to support the * module/mymodule/views structure */ mvc.EnableMultipeViewsFolders = function(app) { // Monkey-patch express to accept multiple paths for looking up views. // this path...
5124764b1672c4440c1d018245397f5c6c762afe
src/block-management/listen-for-new-blocks.js
src/block-management/listen-for-new-blocks.js
"use strict"; var startPollingForBlocks = require("./start-polling-for-blocks"); function listenForNewBlocks() { return function (dispatch) { dispatch(startPollingForBlocks()); }; } module.exports = listenForNewBlocks;
"use strict"; var startPollingForBlocks = require("./start-polling-for-blocks"); var subscribeToNewBlockNotifications = require("./subscribe-to-new-block-notifications"); var unsubscribeFromNewBlockNotifications = require("./unsubscribe-from-new-block-notifications"); var isMetaMask = require("../utils/is-meta-mask");...
Revert "just poll instead of sometimes trying subscribe"
Revert "just poll instead of sometimes trying subscribe" This reverts commit e900fa6d3396dd38717b33e27ef6817434800647.
JavaScript
mit
ethereumjs/ethrpc,ethereumjs/ethrpc
javascript
## Code Before: "use strict"; var startPollingForBlocks = require("./start-polling-for-blocks"); function listenForNewBlocks() { return function (dispatch) { dispatch(startPollingForBlocks()); }; } module.exports = listenForNewBlocks; ## Instruction: Revert "just poll instead of sometimes trying subscribe" ...
354bc3acf5b5ecf3748001e3723ac0776ad322e4
arrayj/src/main/scala/ast/augmenters/AugmentedArrayInitializer.scala
arrayj/src/main/scala/ast/augmenters/AugmentedArrayInitializer.scala
package ch.usi.inf.l3.sana.arrayj.ast.augmenters import ch.usi.inf.l3.sana import sana.tiny.types.Type import sana.arrayj.ast.ArrayInitializerApi trait AugmentedArrayInitializer { def tree: ArrayInitializerApi def componentType: Option[Type] = tree .attributes .get('componentType) .map(_...
package ch.usi.inf.l3.sana.arrayj.ast.augmenters import ch.usi.inf.l3.sana import sana.tiny.types.Type import sana.arrayj.ast.ArrayInitializerApi trait AugmentedArrayInitializer { def tree: ArrayInitializerApi def componentType: Option[Type] = tree .attributes .get('componentType) .map(_...
Fix the setter for componentType
Fix the setter for componentType
Scala
bsd-3-clause
amanjpro/languages-a-la-carte,amanjpro/languages-a-la-carte
scala
## Code Before: package ch.usi.inf.l3.sana.arrayj.ast.augmenters import ch.usi.inf.l3.sana import sana.tiny.types.Type import sana.arrayj.ast.ArrayInitializerApi trait AugmentedArrayInitializer { def tree: ArrayInitializerApi def componentType: Option[Type] = tree .attributes .get('componentTy...
aa87bd51d16b279f8c036ec7f38fa142c3f2b3e6
src/middlewares/persistState.js
src/middlewares/persistState.js
import { PERSIST_STATE } from '../actions'; import { getStateToSave } from '../selectors'; export const persistState = store => next => action => { if (action.type !== PERSIST_STATE) { return next(action); } const stateToSave = getStateToSave(store.getState()); const serializedState = JSON.stringify(state...
import { PERSIST_STATE } from '../actions'; import { getStateToSave } from '../selectors'; export const persistState = store => next => action => { if (action.type !== PERSIST_STATE) { return next(action); } const stateToSave = getStateToSave(store.getState()); const serializedState = JSON.stringify(state...
Delete version prop before loading prev state
Delete version prop before loading prev state
JavaScript
mit
fhelwanger/bayesjs-editor,fhelwanger/bayesjs-editor
javascript
## Code Before: import { PERSIST_STATE } from '../actions'; import { getStateToSave } from '../selectors'; export const persistState = store => next => action => { if (action.type !== PERSIST_STATE) { return next(action); } const stateToSave = getStateToSave(store.getState()); const serializedState = JSON...
a7e6354c8a7d1478c17b1c11a76136bfa0d98eb8
README.rst
README.rst
django-simpleimages =================== .. image:: https://pypip.in/v/django-simpleimages/badge.png :target: https://crate.io/packages/django-simpleimages .. image:: https://travis-ci.org/saulshanabrook/django-simpleimages.png :target: https://travis-ci.org/saulshanabrook/django-simpleimages .. image:: h...
django-simpleimages =================== .. image:: https://pypip.in/v/django-simpleimages/badge.png :target: https://crate.io/packages/django-simpleimages .. image:: https://travis-ci.org/saulshanabrook/django-simpleimages.png :target: https://travis-ci.org/saulshanabrook/django-simpleimages .. image:: h...
Add proper docs link to readme
Add proper docs link to readme
reStructuredText
mit
saulshanabrook/django-simpleimages
restructuredtext
## Code Before: django-simpleimages =================== .. image:: https://pypip.in/v/django-simpleimages/badge.png :target: https://crate.io/packages/django-simpleimages .. image:: https://travis-ci.org/saulshanabrook/django-simpleimages.png :target: https://travis-ci.org/saulshanabrook/django-simpleimag...
74be6c3d995a95c2c0dd541203e5d3e85bac053c
app/views/manage-projects.html
app/views/manage-projects.html
<md-content ng-cloak> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="project in projects"> <div class="md-list-item-text"> <h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3> <h4> <translate>VIEWS.MANAGE.PROJECTS.CREATOR</translate>...
<md-content ng-cloak> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="project in projects"> <div class="md-list-item-text"> <h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3> <h4> <translate>VIEWS.MANAGE.PROJECTS.CREATOR</translate>...
Handle dates in a few more places.
Handle dates in a few more places.
HTML
mit
learning-layers/timeliner-client,learning-layers/timeliner-client
html
## Code Before: <md-content ng-cloak> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="project in projects"> <div class="md-list-item-text"> <h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3> <h4> <translate>VIEWS.MANAGE.PROJECTS.CRE...
0eb7ac07db02814c46dae6332dbbf83ff548ff48
docs/source/releases/content-releases.rst
docs/source/releases/content-releases.rst
Release Notes ============= .. note:: We're actively working on this section of the documentation to improve it for you. Thanks for your patience.
Release Notes ============= Each project's documentation and GitHub repository has information about releases and changes from the prior release. .. note:: Coming Soon We're actively working on a graphic that displays each project, their current release, and a link to the changelog. Thanks for your patience....
Add text about release chart coming soon
Add text about release chart coming soon
reStructuredText
bsd-3-clause
jupyter/jupyter,willingc/jupyter,Carreau/jupyter,minrk/jupyter
restructuredtext
## Code Before: Release Notes ============= .. note:: We're actively working on this section of the documentation to improve it for you. Thanks for your patience. ## Instruction: Add text about release chart coming soon ## Code After: Release Notes ============= Each project's documentation and GitHub repos...
6bb308cd9a8860e6b99d9c23e070386883feaf17
bundles/routing/bundle/inapprouting/instance.js
bundles/routing/bundle/inapprouting/instance.js
/** * This bundle logs the map click coordinates to the console. This is a demonstration of using DefaultExtension. * * @class Oskari.routing.bundle.inapprouting.InAppRoutingBundleInstance */ Oskari.clazz.define('Oskari.routing.bundle.inapprouting.InAppRoutingBundleInstance', /** * @method create called automa...
/** * This bundle logs the map click coordinates to the console. This is a demonstration of using DefaultExtension. * * @class Oskari.routing.bundle.inapprouting.InAppRoutingBundleInstance */ Oskari.clazz.define('Oskari.routing.bundle.inapprouting.InAppRoutingBundleInstance', /** * @method create called automa...
Make backend call for calculating route
Make backend call for calculating route
JavaScript
mit
uhef/Oskari-Routing-frontend,uhef/Oskari-Routing-frontend,uhef/Oskari-Routing-frontend,uhef/Oskari-Routing-frontend,uhef/Oskari-Routing-frontend,uhef/Oskari-Routing-frontend
javascript
## Code Before: /** * This bundle logs the map click coordinates to the console. This is a demonstration of using DefaultExtension. * * @class Oskari.routing.bundle.inapprouting.InAppRoutingBundleInstance */ Oskari.clazz.define('Oskari.routing.bundle.inapprouting.InAppRoutingBundleInstance', /** * @method crea...
3b2234d0fb827533fa42a7920fafc8de3c4b92c2
examples/djangoproject/djangoproject/templates/index.html
examples/djangoproject/djangoproject/templates/index.html
{% extends 'base.html' %} {% block content %} test {% endblock %}
{% extends 'base.html' %} {% load sneak_peek %} {% block content %} {% sneak_peek %} test {% endsneak_peek %} {% endblock %}
Add sneak_peek to example project template
Add sneak_peek to example project template Put in a test sneak_peek template tag on the index page of the example project.
HTML
mit
teddywing/django-sneak-peek
html
## Code Before: {% extends 'base.html' %} {% block content %} test {% endblock %} ## Instruction: Add sneak_peek to example project template Put in a test sneak_peek template tag on the index page of the example project. ## Code After: {% extends 'base.html' %} {% load sneak_peek %} {% block content %} {% sneak...
aa59bc24a56795a2e3bc66b5c8284a6592cf9f80
lib/Target/AArch64/Disassembler/CMakeLists.txt
lib/Target/AArch64/Disassembler/CMakeLists.txt
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) add_llvm_library(LLVMAArch64Disassembler AArch64Disassembler.cpp AArch64ExternalSymbolizer.cpp ) # workaround for hanging compilation on MSVC8, 9 and 10 #if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR MSVC_VERSION EQU...
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) add_llvm_library(LLVMAArch64Disassembler AArch64Disassembler.cpp AArch64ExternalSymbolizer.cpp ) add_dependencies(LLVMAArch64Disassembler AArch64CommonTableGen)
Remove outdated CMake MSVC workaround
Remove outdated CMake MSVC workaround git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@210421 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpe...
text
## Code Before: include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) add_llvm_library(LLVMAArch64Disassembler AArch64Disassembler.cpp AArch64ExternalSymbolizer.cpp ) # workaround for hanging compilation on MSVC8, 9 and 10 #if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR ...
86fc89b3e443ccae5dedb5782412765c85a07a5e
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
This project adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).
This project adheres to the [OpenJS Foundation Code of Conduct](https://code-of-conduct.openjsf.org/).
Update old code of conduct link
Docs: Update old code of conduct link The redirect stopped working. That is its own issue, but we can use the new address directly.
Markdown
mit
qunitjs/qunit,qunitjs/qunit
markdown
## Code Before: This project adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct). ## Instruction: Docs: Update old code of conduct link The redirect stopped working. That is its own issue, but we can use the new address directly. ## Code After: This project adheres to the [...
6c77b87c002a4ca8c07212e9c12a105dda12d478
src/Editor/DropHandler.js
src/Editor/DropHandler.js
import React from "react"; import Dropzone from "react-dropzone"; import classNames from "classnames"; import "./DropHandler.css"; export default class DropHandler extends React.Component { handleDrop = (files) => { this.props.importSequenceFromFile(files[0]); }; render() { const { children, style, class...
import React from "react"; import Dropzone from "react-dropzone"; import classNames from "classnames"; import "./DropHandler.css"; export default class DropHandler extends React.Component { handleDrop = (files) => { this.props.importSequenceFromFile(files[0]); }; render() { const { children, style, class...
Remove deprecated class name props to Dropzone component
Remove deprecated class name props to Dropzone component
JavaScript
mit
TeselaGen/openVectorEditor,TeselaGen/openVectorEditor
javascript
## Code Before: import React from "react"; import Dropzone from "react-dropzone"; import classNames from "classnames"; import "./DropHandler.css"; export default class DropHandler extends React.Component { handleDrop = (files) => { this.props.importSequenceFromFile(files[0]); }; render() { const { childr...
f375f18def97a3a0fa5737485484e0f89f45d844
src/components/Activity.js
src/components/Activity.js
import React, { Component, PropTypes } from 'react'; import moment from 'moment'; import TagList from './TagList'; class Activity extends Component { render() { const { timestamp, activity, deleteActivity, editActivity, isEditing, cancelEdit } = this.props; const { description, tags = [] } = activity; ...
import React, { Component, PropTypes } from 'react'; import moment from 'moment'; import TagList from './TagList'; import Row from './layout/Row'; import Column from './layout/Column'; class Activity extends Component { render() { const { timestamp, activity, deleteActivity, editActivity, isEditing, cancelEdit...
Remove buttons/links on activity description
Remove buttons/links on activity description
JavaScript
mit
mknudsen01/today,mknudsen01/today
javascript
## Code Before: import React, { Component, PropTypes } from 'react'; import moment from 'moment'; import TagList from './TagList'; class Activity extends Component { render() { const { timestamp, activity, deleteActivity, editActivity, isEditing, cancelEdit } = this.props; const { description, tags = [] } ...
5fa850d64568503ebffd4722df218e9cb2b15b36
.travis.yml
.travis.yml
language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - nightly - hhvm - hhvm-nightly before_script: - curl -s https://getcomposer.org/installer | php - php composer.phar install --dev script: ./vendor/bin/atoum --glob Tests/Units/ matrix: allow_failures: - php: nightly - php: hhvm ...
language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7.0 - nightly - hhvm - hhvm-nightly sudo: false before_script: - curl -s https://getcomposer.org/installer | php - php composer.phar install --dev script: ./vendor/bin/atoum --glob Tests/Units/ matrix: allow_failures: - php: 5.3 - ...
Add new php version for tests on Travis-CI
Add new php version for tests on Travis-CI
YAML
mit
euskadi31/Opengraph
yaml
## Code Before: language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - nightly - hhvm - hhvm-nightly before_script: - curl -s https://getcomposer.org/installer | php - php composer.phar install --dev script: ./vendor/bin/atoum --glob Tests/Units/ matrix: allow_failures: - php: nightly - ...
638dac08e1c7928e6c43ec9f6feeef876ae3f582
app/scripts/timetable/templates/exam.hbs
app/scripts/timetable/templates/exam.hbs
<td>{{id}} <td>{{ModuleTitle}} <td>{{examStr}} <td class="nm-timetable-action"> <a href="#" class="plain show-hide icon" title="Show/Hide"> <i class="fa fa-eye{{#unless display}}-slash{{/unless}} fa-lg"></i> </a> <a href="/modules/{{id}}" class="plain icon" title="Details"> <i class="fa fa-info-circle fa-...
<td>{{id}} <td>{{ModuleTitle}} <td>{{examStr}} <td class="nm-timetable-action"> <!--<a href="#" class="plain show-hide icon" title="Show/Hide">--> <!--<i class="fa fa-eye{{#unless display}}-slash{{/unless}} fa-lg"></i>--> <!--</a>--> <a href="/modules/{{id}}" class="plain icon" title="Details"> <i class="...
Disable broken show/hide module button. To be replaced by individual lesson hiding
Disable broken show/hide module button. To be replaced by individual lesson hiding
Handlebars
mit
nathanajah/nusmods,Yunheng/nusmods,mauris/nusmods,nusmodifications/nusmods,nusmodifications/nusmods,chunqi/nusmods,chunqi/nusmods,mauris/nusmods,nathanajah/nusmods,nusmodifications/nusmods,zhouyichen/nusmods,nusmodifications/nusmods,nathanajah/nusmods,nathanajah/nusmods,Yunheng/nusmods,mauris/nusmods,zhouyichen/nusmods...
handlebars
## Code Before: <td>{{id}} <td>{{ModuleTitle}} <td>{{examStr}} <td class="nm-timetable-action"> <a href="#" class="plain show-hide icon" title="Show/Hide"> <i class="fa fa-eye{{#unless display}}-slash{{/unless}} fa-lg"></i> </a> <a href="/modules/{{id}}" class="plain icon" title="Details"> <i class="fa fa...
5df95cc2a39ba3c7d52d66319d35c498dfd602af
git_tracker.gemspec
git_tracker.gemspec
require File.expand_path('../lib/git_tracker/version', __FILE__) Gem::Specification.new do |gem| gem.name = "git_tracker" gem.version = GitTracker::VERSION gem.authors = ["Steven Harman"] gem.email = ["steveharman@gmail.com"] gem.homepage = "https://github.com/stevenharman/g...
require File.expand_path('../lib/git_tracker/version', __FILE__) Gem::Specification.new do |gem| gem.name = "git_tracker" gem.version = GitTracker::VERSION gem.authors = ["Steven Harman"] gem.email = ["steveharman@gmail.com"] gem.homepage = "https://github.com/stevenharman/g...
Remove development dependency on Pry
Remove development dependency on Pry
Ruby
mit
KensoDev/git_tracker,stevenharman/git_tracker,KensoDev/git_tracker,stevenharman/git_tracker
ruby
## Code Before: require File.expand_path('../lib/git_tracker/version', __FILE__) Gem::Specification.new do |gem| gem.name = "git_tracker" gem.version = GitTracker::VERSION gem.authors = ["Steven Harman"] gem.email = ["steveharman@gmail.com"] gem.homepage = "https://github.co...
3a73d4bf6426a397c8d07f070cefd188ce6e8784
Changelog.draft.rst
Changelog.draft.rst
========= ChangeLog ========= Users should ignore this content: **it is draft**. Contributors should add entries here in the following section, on top of the others. `WIP (coming releases)` ======================= New Features ------------ Changes ------- * internal code changes to prepare for Python3 * Improve ...
========= ChangeLog ========= Users should ignore this content: **it is draft**. Contributors should add entries here in the following section, on top of the others. `WIP (coming releases)` ======================= New Features ------------ * --dry-run mode protects us from performing any actual action. It will...
Add Changelog entry for dry-run mode
Add Changelog entry for dry-run mode Signed-off-by: Sebastian Spaeth <98dcb2717ddae152d5b359c6ea97e4fe34a29d4c@SSpaeth.de>
reStructuredText
apache-2.0
frioux/offlineimap,frioux/offlineimap
restructuredtext
## Code Before: ========= ChangeLog ========= Users should ignore this content: **it is draft**. Contributors should add entries here in the following section, on top of the others. `WIP (coming releases)` ======================= New Features ------------ Changes ------- * internal code changes to prepare for Pyt...
e45975f45ed5e18f19c8fd864257ab4f0efaebfc
docs/css/style.css
docs/css/style.css
body { font-size: 20px; } code { font-size: 14px; } tt, code { padding: 4px 5px 1px 5px; }
body { font-size: 20px; } code { font-size: 14px; } tt, code { padding: 4px 5px 1px 5px; } @media screen and (max-width: 875px) { div .sphinxsidebar { background: #3e4349; } }
Change sidebar color of docs
Change sidebar color of docs
CSS
mit
berkeley-cocosci/Wallace,jcpeterson/Dallinger,Dallinger/Dallinger,suchow/Wallace,Dallinger/Dallinger,Dallinger/Dallinger,suchow/Wallace,jcpeterson/Dallinger,berkeley-cocosci/Wallace,suchow/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,berkeley-cocosci/Wallace,jcpeterson/Dallinger,jcpeterson/Dalli...
css
## Code Before: body { font-size: 20px; } code { font-size: 14px; } tt, code { padding: 4px 5px 1px 5px; } ## Instruction: Change sidebar color of docs ## Code After: body { font-size: 20px; } code { font-size: 14px; } tt, code { padding: 4px 5px 1px 5px; } @media screen and (max-width: 8...
1789bdcd7ec1abea36859868b0ac85de33b18533
index.js
index.js
"use strict"; var mischief = require('./mischief'); // The only surface area for this module is the middleware factory // prototype defined here. var chaos_monkeyware = module.exports = function (options) { // Set default values for those not provided by user. options = options || {}; options.probability = opt...
"use strict"; var mischief = require('./mischief'); // The only surface area for this module is the middleware factory // prototype defined here. var chaos_monkeyware = module.exports = function (options) { var probability = options.probability || 0.1; return function middleware (req, res, next) { var misch...
Remove writing to options object. This allows options parameter to be readonly
Remove writing to options object. This allows options parameter to be readonly
JavaScript
apache-2.0
FronterAS/node-chaos-monkeyware
javascript
## Code Before: "use strict"; var mischief = require('./mischief'); // The only surface area for this module is the middleware factory // prototype defined here. var chaos_monkeyware = module.exports = function (options) { // Set default values for those not provided by user. options = options || {}; options.p...
a7dcbcd9aeb9104ad31336cda5c8f22fbd6328a6
tools/templates/page.haml
tools/templates/page.haml
%head %title SUSE Hack Week - Past Project %link{ :href => "../../images/favicon.gif", :rel => "shortcut icon" } %link{ :href => "../../css/hackweek-single-page.css", :type => "text/css", :rel => "stylesheet" } %body #navigation %li#start-link.logo.invert %a{ :href => "../../index.html" } ...
%head %title SUSE Hack Week - Past Project %link{ :href => "../../images/favicon.gif", :rel => "shortcut icon" } %link{ :href => "../../css/hackweek-single-page.css", :type => "text/css", :rel => "stylesheet" } %body #navigation %li#start-link.logo.invert %a{ :href => "../../index.html" } ...
Remove <p> from wrapper-title div
Remove <p> from wrapper-title div
Haml
mit
SUSE/hackweek,srinidhibs/hackweek,SUSE/hackweek,srinidhibs/hackweek,srinidhibs/hackweek,hennevogel/hackweek,hennevogel/hackweek,srinidhibs/hackweek,hennevogel/hackweek,SUSE/hackweek,kirushik/hackweek,kirushik/hackweek,kirushik/hackweek,kirushik/hackweek
haml
## Code Before: %head %title SUSE Hack Week - Past Project %link{ :href => "../../images/favicon.gif", :rel => "shortcut icon" } %link{ :href => "../../css/hackweek-single-page.css", :type => "text/css", :rel => "stylesheet" } %body #navigation %li#start-link.logo.invert %a{ :href => "../../inde...
5abf92e2033f59b94aa63a648e4d6f73262cf79b
less/framework/helpers.less
less/framework/helpers.less
/** * Containers */ .clearfix { zoom: 1; &:before, &:after { content: ""; display: table; } &:after { clear: both; } } .gutterless { padding-left: 0px; padding-right: 0px; } .gutter { padding-left: @default-gutter-size; padding-right: @default-gutter-size; } .padded { padding: @default-gutter-size...
/** * Containers */ .clearfix { zoom: 1; &:before, &:after { content: ""; display: table; } &:after { clear: both; } } .gutterless { padding-left: 0px; padding-right: 0px; } .gutter { padding-left: @default-gutter-size; padding-right: @default-gutter-size; } .padded { padding: @default-gutter-size...
Change strong font-weight in .text-light class
Change strong font-weight in .text-light class
Less
mit
olumby/caffeine,olumby/caffeine
less
## Code Before: /** * Containers */ .clearfix { zoom: 1; &:before, &:after { content: ""; display: table; } &:after { clear: both; } } .gutterless { padding-left: 0px; padding-right: 0px; } .gutter { padding-left: @default-gutter-size; padding-right: @default-gutter-size; } .padded { padding: @def...
4ca03795876cdbdbd39538cbff397c7a4c2aa750
src/components/UserProfile/UserProfileContainer.jsx
src/components/UserProfile/UserProfileContainer.jsx
import React, { Component } from 'react'; import firebase, { auth, db } from '../../javascripts/firebase'; import UserProfile from './UserProfile'; import store from '../../store/configureStore'; class UserProfileContainer extends Component { constructor(props) { super(props); this.state = { sightings:...
import React, { Component } from 'react'; import firebase, { auth, db } from '../../javascripts/firebase'; import UserProfile from './UserProfile'; import store from '../../store/configureStore'; class UserProfileContainer extends Component { constructor(props) { super(props); this.state = { sightings:...
Add current user uid as child to firebase db reference
Add current user uid as child to firebase db reference
JSX
mit
omarcodex/butterfly-pinner,omarcodex/butterfly-pinner
jsx
## Code Before: import React, { Component } from 'react'; import firebase, { auth, db } from '../../javascripts/firebase'; import UserProfile from './UserProfile'; import store from '../../store/configureStore'; class UserProfileContainer extends Component { constructor(props) { super(props); this.state = { ...
0a19b28b4e1c1ad87932d633516b9c963e9f58bd
scripts/helpers/tmux_utils.sh
scripts/helpers/tmux_utils.sh
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/plugin_functions.sh" reload_tmux_environment() { tmux source-file $(_get_user_tmux_conf) >/dev/null 2>&1 }
reload_tmux_environment() { tmux source-file $(_get_user_tmux_conf) >/dev/null 2>&1 }
Remove `CURRENT_DIR` variable from a helper script
Remove `CURRENT_DIR` variable from a helper script Fixes #200
Shell
mit
bruno-/tpm,tmux-plugins/tpm
shell
## Code Before: CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/plugin_functions.sh" reload_tmux_environment() { tmux source-file $(_get_user_tmux_conf) >/dev/null 2>&1 } ## Instruction: Remove `CURRENT_DIR` variable from a helper script Fixes #200 ## Code After: reload_tmux_en...
797f8299e7bc329c3260ccd9841b70a75bcc932f
build.sbt
build.sbt
name := "jpos-tools-scala" organization := "io.github.binaryfoo" version := "0.1-SNAPSHOT" scalaVersion := "2.11.4" libraryDependencies += "joda-time" % "joda-time" % "2.6" % "compile" libraryDependencies += "com.github.scopt" %% "scopt" % "3.2.0" libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.1...
name := "jpos-tools-scala" organization := "io.github.binaryfoo" version := "0.1-SNAPSHOT" scalaVersion := "2.11.4" crossScalaVersions := Seq("2.11.4", "2.10.4") libraryDependencies += "joda-time" % "joda-time" % "2.6" % "compile" libraryDependencies += "com.github.scopt" %% "scopt" % "3.2.0" libraryDependencies...
Build for Spark's scala version too.
Build for Spark's scala version too.
Scala
mit
binaryfoo/lagotto,binaryfoo/lagotto
scala
## Code Before: name := "jpos-tools-scala" organization := "io.github.binaryfoo" version := "0.1-SNAPSHOT" scalaVersion := "2.11.4" libraryDependencies += "joda-time" % "joda-time" % "2.6" % "compile" libraryDependencies += "com.github.scopt" %% "scopt" % "3.2.0" libraryDependencies += "org.scalatest" % "scalates...
dcd19b1570a940b25fdfa0bb1b1235020fe46a69
source/speakers.html.erb
source/speakers.html.erb
--- title: EuRuKo 2013 - Athens | Speakers --- <section id="speakers"> <ul class="centered" itemscope itemprop="performer" itemtype="http://schema.org/Person"> <% data.speakers.speakers.each_with_index do |speaker, i| %> <li class="<%= i.even? ? "left" : "right" %>" id="<%= speaker.short_name %>"> <...
--- title: EuRuKo 2013 - Athens | Speakers --- <section id="speakers"> <ul class="centered" itemscope itemprop="performer" itemtype="http://schema.org/Person"> <% data.speakers.speakers.each_with_index do |speaker, i| %> <li class="<%= i.even? ? "left" : "right" %>" id="<%= speaker.short_name %>"> <...
Add link to speaker hashtag
Add link to speaker hashtag
HTML+ERB
mit
euruko2013/site
html+erb
## Code Before: --- title: EuRuKo 2013 - Athens | Speakers --- <section id="speakers"> <ul class="centered" itemscope itemprop="performer" itemtype="http://schema.org/Person"> <% data.speakers.speakers.each_with_index do |speaker, i| %> <li class="<%= i.even? ? "left" : "right" %>" id="<%= speaker.short_nam...
86ff364cc0914ed1c407cd212fb1fc0dea1b7c4d
README.md
README.md
[Seneca](http://senecajs.org/) microservice for handling [CoderDojo](https://coderdojo.com/) badges. ## Dependencies - [Node.js](http://nodejs.org/) ## Install `` npm install `` ## Run Start service: `` npm start `` ## Test `` npm test `` ## Lint `` npm run lint `` ## Installing badgekit - Follow the instructions...
This is the badges service, a backend repository of the [CoderDojo Zen Community Platform](https://github.com/CoderDojo/community-platform) project. The service looks after the [Mozilla Open Badges](http://openbadges.org/) section of the system. If you want to get set up to make a backend contribution, please see the...
Update readme to point to documentation and cp-local-dev repos
Update readme to point to documentation and cp-local-dev repos
Markdown
mit
CoderDojo/cp-badges-service,CoderDojo/cp-badges-service
markdown
## Code Before: [Seneca](http://senecajs.org/) microservice for handling [CoderDojo](https://coderdojo.com/) badges. ## Dependencies - [Node.js](http://nodejs.org/) ## Install `` npm install `` ## Run Start service: `` npm start `` ## Test `` npm test `` ## Lint `` npm run lint `` ## Installing badgekit - Follow ...
851f597dd3a7efb889b915d667f7c2c673afd5c4
oscar/templates/oscar/dashboard/pages/update.html
oscar/templates/oscar/dashboard/pages/update.html
{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block body_class %}create-page pages{% endblock %} {% block title %} {{ title }} | {{ block.super }} {% endblock %} {% block breadcrumbs %} <ul class="breadcrumb"> <li> <a href="{% url dashboard:index %}">{% trans...
{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block body_class %}create-page pages{% endblock %} {% block title %} {{ title }} | {{ block.super }} {% endblock %} {% block breadcrumbs %} <ul class="breadcrumb"> <li> <a href="{% url dashboard:index %}">{% trans "Dashbo...
Remove obsolete 'form-actions' section from underneath the page edit form
Remove obsolete 'form-actions' section from underneath the page edit form
HTML
bsd-3-clause
sonofatailor/django-oscar,john-parton/django-oscar,solarissmoke/django-oscar,okfish/django-oscar,Jannes123/django-oscar,machtfit/django-oscar,django-oscar/django-oscar,taedori81/django-oscar,adamend/django-oscar,Idematica/django-oscar,vovanbo/django-oscar,rocopartners/django-oscar,spartonia/django-oscar,monikasulik/dja...
html
## Code Before: {% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block body_class %}create-page pages{% endblock %} {% block title %} {{ title }} | {{ block.super }} {% endblock %} {% block breadcrumbs %} <ul class="breadcrumb"> <li> <a href="{% url dashboard:in...
d7a8d312dc53cd0325ae07ced1f426251f5bed8f
lib/chef/resource/support/sudoer.erb
lib/chef/resource/support/sudoer.erb
<% @command_aliases.each do |a| -%> Cmnd_Alias <%= a[:name].upcase %> = <%= a[:command_list].join(', ') %> <% end -%> <% @env_keep_add.each do |env_keep| -%> Defaults env_keep += "<%= env_keep %>" <% end -%> <% @env_keep_subtract.each do |env_keep| -%> Defaults env_keep -= "<%= env_keep %>" <% end -%> <% @comman...
<% @command_aliases.each do |a| -%> Cmnd_Alias <%= a[:name].upcase %> = <%= a[:command_list].join(', ') %> <% end -%> <% @env_keep_add.each do |env_keep| -%> Defaults env_keep += "<%= env_keep %>" <% end -%> <% @env_keep_subtract.each do |env_keep| -%> Defaults env_keep -= "<%= env_keep %>" <% end -%> <% @comman...
Fix template to match the updated version in the cookbook
Fix template to match the updated version in the cookbook This fixes an issue when writing out env_keep only configs. Found this via a super test suite against 14.0.159 Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
HTML+ERB
apache-2.0
Tensibai/chef,chef/chef,juliandunn/chef,chef/chef,tas50/chef-1,jaymzh/chef,higanworks/chef,martinisoft/chef,MsysTechnologiesllc/chef,juliandunn/chef,tomdoherty/chef,tas50/chef-1,mwrock/chef,tas50/chef-1,Tensibai/chef,gene1wood/chef,MsysTechnologiesllc/chef,Ppjet6/chef,higanworks/chef,martinisoft/chef,tomdoherty/chef,ja...
html+erb
## Code Before: <% @command_aliases.each do |a| -%> Cmnd_Alias <%= a[:name].upcase %> = <%= a[:command_list].join(', ') %> <% end -%> <% @env_keep_add.each do |env_keep| -%> Defaults env_keep += "<%= env_keep %>" <% end -%> <% @env_keep_subtract.each do |env_keep| -%> Defaults env_keep -= "<%= env_keep %>" <% en...
d8fc931822bbbf3fe5dbd27657925a6c9cf2b5f4
src/com/team254/frc2013/commands/ShootCommand.java
src/com/team254/frc2013/commands/ShootCommand.java
package com.team254.frc2013.commands; import edu.wpi.first.wpilibj.Timer; /** * Shoots a disc that is already loaded into the shooter. * * @author tom@team254.com (Tom Bottiglieri) * @author pat@team254.com (Patrick Fairbank) */ public class ShootCommand extends CommandBase { private Timer shooterTimer; pub...
package com.team254.frc2013.commands; import edu.wpi.first.wpilibj.Timer; /** * Shoots a disc that is already loaded into the shooter. * * @author tom@team254.com (Tom Bottiglieri) * @author pat@team254.com (Patrick Fairbank) */ public class ShootCommand extends CommandBase { private Timer shooterTimer; pub...
Make conveyor run backwards as disc is shooting to prevent jams
Make conveyor run backwards as disc is shooting to prevent jams
Java
bsd-2-clause
Team254/FRC-2013,Team254/FRC-2013
java
## Code Before: package com.team254.frc2013.commands; import edu.wpi.first.wpilibj.Timer; /** * Shoots a disc that is already loaded into the shooter. * * @author tom@team254.com (Tom Bottiglieri) * @author pat@team254.com (Patrick Fairbank) */ public class ShootCommand extends CommandBase { private Timer shoo...
16e346ac25ae7ad03b748a260c3ec5731a1695fe
.travis.yml
.travis.yml
language: ruby rvm: 2.1.6 before_script: bundle exec berks install script: bundle exec thor test:all sudo: false
language: ruby rvm: 2.1.6 script: bundle exec thor test:all sudo: false
Remove berks line from Travis CI.
Remove berks line from Travis CI.
YAML
apache-2.0
seanfisk/personal-chef-repo
yaml
## Code Before: language: ruby rvm: 2.1.6 before_script: bundle exec berks install script: bundle exec thor test:all sudo: false ## Instruction: Remove berks line from Travis CI. ## Code After: language: ruby rvm: 2.1.6 script: bundle exec thor test:all sudo: false
0623599d55b823d0977de76ef0d0a100131ae78d
README.md
README.md
Triggers a event for elements that was enabled at a given time. ![Screenshot](resources/screenshots/plugin_logo.png) ## Installation To install Published event, follow these steps: 1. Download & unzip the file and place the `publishedevent` directory into your `craft/plugins` directory 2. -OR- do a `git clone htt...
Triggers a event for elements that was enabled at a given time. *Note: This is not a fully working plugin yet, but simply the start of an idea on how to implement a event for when a entry with a future publish date is enabled.* ![Screenshot](resources/screenshots/plugin_logo.png) ## Installation To install Publis...
Add note on plugin status
Add note on plugin status
Markdown
mit
sjelfull/Craft-PublishedEvent
markdown
## Code Before: Triggers a event for elements that was enabled at a given time. ![Screenshot](resources/screenshots/plugin_logo.png) ## Installation To install Published event, follow these steps: 1. Download & unzip the file and place the `publishedevent` directory into your `craft/plugins` directory 2. -OR- do ...
6a391ec9dc6a9fe2a34a67fc65f1e07c88790de6
app/http.js
app/http.js
var express = require('express'); var serveStatic = require('serve-static'); var bodyParser = require('body-parser'); var session = require('express-session'); var RedisStore = require('connect-redis')(session); function appCtor(cfg, pool) { var app = express(); app.set('trust proxy', true); app.set('view engin...
var express = require('express'); var serveStatic = require('serve-static'); var bodyParser = require('body-parser'); var session = require('express-session'); var RedisStore = require('connect-redis')(session); function appCtor(cfg, pool) { var app = express(); app.set('trust proxy', true); app.set('view engin...
Fix app constructor not being exported
Fix app constructor not being exported
JavaScript
mit
dingroll/dingroll.com,dingroll/dingroll.com
javascript
## Code Before: var express = require('express'); var serveStatic = require('serve-static'); var bodyParser = require('body-parser'); var session = require('express-session'); var RedisStore = require('connect-redis')(session); function appCtor(cfg, pool) { var app = express(); app.set('trust proxy', true); app...
f49828eaa358924cd5044d358aad28c1bc8371b7
lib/domgen/imit/templates/client/subscription_util.java.erb
lib/domgen/imit/templates/client/subscription_util.java.erb
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(repository.imit.qualified_subscription_util_name) %>; @javax.annotation.Generated( "Domgen" ) public final class <%= repository.imit.subscription_util_name %> { private <%= repository.imit.subscription_util_name %>() { } <% repository.imit.graphs....
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(repository.imit.qualified_subscription_util_name) %>; @javax.annotation.Generated( "Domgen" ) public final class <%= repository.imit.subscription_util_name %> { private <%= repository.imit.subscription_util_name %>() { } <% repository.imit.graphs....
Add helper method that constructs an address for graph
Add helper method that constructs an address for graph
HTML+ERB
apache-2.0
realityforge/domgen,realityforge/domgen
html+erb
## Code Before: /* DO NOT EDIT: File is auto-generated */ package <%= to_package(repository.imit.qualified_subscription_util_name) %>; @javax.annotation.Generated( "Domgen" ) public final class <%= repository.imit.subscription_util_name %> { private <%= repository.imit.subscription_util_name %>() { } <% reposit...
8eebd54e5cf43cbfc28cb0e27eb0007fe6357b5d
playbooks/files/unmount-app-root.sh
playbooks/files/unmount-app-root.sh
MOUNT=$1 function do_unmount { local m=$1 while mountpoint $m; do fuser -k $m umount $m sleep 1 done } for m in $(findmnt -nl | grep ${MOUNT}/ | awk '{print $1}'); do do_unmount $m done do_unmount $MOUNT
MOUNT=$1 function do_unmount { local m=$1 umount $m while mountpoint $m; do fuser -k $m umount $m sleep 1 done } for m in $(findmnt -nl | grep ${MOUNT}/ | awk '{print $1}'); do do_unmount $m done do_unmount $MOUNT
Fix unmounting deploy if NFS mount is a stale handle
Fix unmounting deploy if NFS mount is a stale handle
Shell
mit
nexpoehler/ansible-playbook-cloud-app
shell
## Code Before: MOUNT=$1 function do_unmount { local m=$1 while mountpoint $m; do fuser -k $m umount $m sleep 1 done } for m in $(findmnt -nl | grep ${MOUNT}/ | awk '{print $1}'); do do_unmount $m done do_unmount $MOUNT ## Instruction: Fix unmounting deploy if NFS mount is a stale handle ## C...
d758ea7eca7645541a9f992b1ea6495eb07239db
src/Libraries/NavigationExperimental/NavigationCard.js
src/Libraries/NavigationExperimental/NavigationCard.js
import createMockComponent from '../../components/createMockComponent'; class CardStackPanResponder { } class PagerPanResponder { } const NavigationCard = createMockComponent('NavigationCard'); NavigationCard.CardStackPanResponder = CardStackPanResponder; NavigationCard.CardStackStyleInterpolator = { forHorizonta...
import React from 'react'; class CardStackPanResponder { } class PagerPanResponder { } class NavigationCard extends React.Component { } NavigationCard.CardStackPanResponder = CardStackPanResponder; NavigationCard.CardStackStyleInterpolator = { forHorizontal: () => ({}), forVertical: () => ({}), }; NavigationCar...
Use basic React class instead of createMockComponent
Use basic React class instead of createMockComponent
JavaScript
mit
lelandrichardson/react-native-mock,RealOrangeOne/react-native-mock,Root-App/react-native-mock-render,dingbat/react-native-mock
javascript
## Code Before: import createMockComponent from '../../components/createMockComponent'; class CardStackPanResponder { } class PagerPanResponder { } const NavigationCard = createMockComponent('NavigationCard'); NavigationCard.CardStackPanResponder = CardStackPanResponder; NavigationCard.CardStackStyleInterpolator = ...
d89cdd4283d5274f080a2dd167acf3263b6583bb
docs/utils/index.rst
docs/utils/index.rst
.. py:module:: utils .. _plasmapy-utils: ***************************************** Core package utilities (`plasmapy.utils`) ***************************************** .. currentmodule:: plasmapy.utils Introduction ============ `PlasmaPy.utils` is where we store functionality that helps us write (what we try to thi...
.. py:module:: utils .. _plasmapy-utils: ***************************************** Core package utilities (`plasmapy.utils`) ***************************************** .. currentmodule:: plasmapy.utils Introduction ============ `PlasmaPy.utils` is where we store functionality that helps us write (what we try to thi...
Remove import_helpers from utils docs
Remove import_helpers from utils docs
reStructuredText
bsd-3-clause
StanczakDominik/PlasmaPy
restructuredtext
## Code Before: .. py:module:: utils .. _plasmapy-utils: ***************************************** Core package utilities (`plasmapy.utils`) ***************************************** .. currentmodule:: plasmapy.utils Introduction ============ `PlasmaPy.utils` is where we store functionality that helps us write (wh...
42e5a0308981681d94583364dbb47a8357846380
src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Comment/CommentCreate.html
src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Comment/CommentCreate.html
<form class="comment-create-form" data-ng-submit="submit()"> <div class="form-error" data-ng-repeat="error in errors"> <p>{{ error | translate }}</p> </div> <textarea class="comment-create-form-text" data-msd-elastic="" data-ng-model="data.content"></textarea> <footer class="form-footer"> ...
<form class="comment-create-form" data-ng-submit="submit()"> <div class="form-error" data-ng-repeat="error in errors"> <p>{{ error | translate }}</p> </div> <textarea class="comment-create-form-text" data-msd-elastic="" data-ng-model="data.content"></textarea> <footer class="form-footer"> ...
Disable comment submit button as long as text is empty
Disable comment submit button as long as text is empty
HTML
agpl-3.0
fhartwig/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adh...
html
## Code Before: <form class="comment-create-form" data-ng-submit="submit()"> <div class="form-error" data-ng-repeat="error in errors"> <p>{{ error | translate }}</p> </div> <textarea class="comment-create-form-text" data-msd-elastic="" data-ng-model="data.content"></textarea> <footer class="form...
fcd51b7426ac7dc5780b2a3c03760dc613edf574
_config.yml
_config.yml
exclude: [ "less", "gitignore", "nicoespeon.sublime-project", "nicoespeon.sublime-workspace" ] highlighter: pygments permalink: /:categories/:year/:month/:title paginate: 7 paginate_path: "/page:num" paginate_per_category: true default_category: "en" safe: false url: http://nicoespeon.com name: "@nicoespeon's bl...
exclude: [ "less", "gitignore", "nicoespeon.sublime-project", "nicoespeon.sublime-workspace" ] highlighter: pygments markdown: redcarpet redcarpet: extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"] permalink: /:categories/:year/:month/:title paginate: 7 paginate_p...
Use redcarpet parser instead of maruku
Use redcarpet parser instead of maruku Maruku is deprecated since 2013, by the way…
YAML
mit
nicoespeon/nicoespeon.github.io,nicoespeon/nicoespeon.github.io
yaml
## Code Before: exclude: [ "less", "gitignore", "nicoespeon.sublime-project", "nicoespeon.sublime-workspace" ] highlighter: pygments permalink: /:categories/:year/:month/:title paginate: 7 paginate_path: "/page:num" paginate_per_category: true default_category: "en" safe: false url: http://nicoespeon.com name: "...
69f4134d4a81bdcd8a53947cde6635a6ff965d2b
README.md
README.md
[![Build Status](https://travis-ci.org/jonathanvdc/flame-llvm.svg?branch=master)](https://travis-ci.org/jonathanvdc/flame-llvm) `flame-llvm` is a tool that compiles [Flame](https://github.com/jonathanvdc/Flame) IR to [LLVM](http://llvm.org) IR. Since [`ecsc`](https://github.com/jonathanvdc/ecsc) can compile C# source...
[![Build Status](https://travis-ci.org/jonathanvdc/flame-llvm.svg?branch=master)](https://travis-ci.org/jonathanvdc/flame-llvm) `flame-llvm` is a tool that compiles [Flame](https://github.com/jonathanvdc/Flame) IR to [LLVM](http://llvm.org) IR. Since [`ecsc`](https://github.com/jonathanvdc/ecsc) can compile C# source...
Check off dynamic casts, is-instance, as-instance
Check off dynamic casts, is-instance, as-instance
Markdown
mit
jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm
markdown
## Code Before: [![Build Status](https://travis-ci.org/jonathanvdc/flame-llvm.svg?branch=master)](https://travis-ci.org/jonathanvdc/flame-llvm) `flame-llvm` is a tool that compiles [Flame](https://github.com/jonathanvdc/Flame) IR to [LLVM](http://llvm.org) IR. Since [`ecsc`](https://github.com/jonathanvdc/ecsc) can c...
73dd435aa990ea116ee7113e10bcbb637bdc419b
src/SaasRunner/Client.php
src/SaasRunner/Client.php
<?php namespace SaasRunner; use Guzzle; class Client { public function __construct($apiKey, $apiHost = 'api.saasrunner.com') { $this->client = new Guzzle\Http\Client('http://' . $apiHost); $this->setApiKey($apiKey); } protected function setApiKey($apiKey) { $this->apiKey = $ap...
<?php namespace SaasRunner; use Guzzle; class Client { public function __construct($apiKey, $apiHost = 'api.saasrunner.com') { $this->client = new Guzzle\Http\Client('http://' . $apiHost); $this->setApiKey($apiKey); } # Public: perform an HTTP GET request # # string $path - UR...
Add request methods to client
Add request methods to client
PHP
mit
simpleweb/saasrunner-client-php
php
## Code Before: <?php namespace SaasRunner; use Guzzle; class Client { public function __construct($apiKey, $apiHost = 'api.saasrunner.com') { $this->client = new Guzzle\Http\Client('http://' . $apiHost); $this->setApiKey($apiKey); } protected function setApiKey($apiKey) { $th...
eda1f9e783fc0f69f1986f70579898b18ee8ddf6
templates/dictionary/update_result.html
templates/dictionary/update_result.html
{% extends "baselayout.html" %} {% block pagetitle %}Auslan Update Gloss{% endblock %} {% block content %} {% if update_form.is_valid %} <p>The update to the gloss {{ gloss }} was successful.</p> <p> {% if gloss.inWeb %} This gloss will now be included in the web version of the dictionary. {% else %} ...
{% extends "baselayout.html" %} {% block pagetitle %}Auslan Update Gloss{% endblock %} {% block content %} {% if update_form.is_valid %} <p>The update to the gloss {{ gloss }} was successful.</p> <p>Return to <a href="{{referer}}">the gloss page</a></p> {% else %} <p>Errors in the update form: </p> ...
Remove confusing info on the result page for quick updates.
Remove confusing info on the result page for quick updates.
HTML
bsd-3-clause
Signbank/BSL-signbank,Signbank/Auslan-signbank,Signbank/BSL-signbank,Signbank/Auslan-signbank,Signbank/Auslan-signbank,Signbank/Auslan-signbank,Signbank/BSL-signbank,Signbank/BSL-signbank
html
## Code Before: {% extends "baselayout.html" %} {% block pagetitle %}Auslan Update Gloss{% endblock %} {% block content %} {% if update_form.is_valid %} <p>The update to the gloss {{ gloss }} was successful.</p> <p> {% if gloss.inWeb %} This gloss will now be included in the web version of the dictionary...
daa29201046b72411d8b62400cd40127564e4bc7
traefik/push.ps1
traefik/push.ps1
$version=$(select-string -Path Dockerfile -Pattern "ENV TRAEFIK_VERSION").ToString().split()[-1] docker tag traefik stefanscherer/traefik-windows docker tag traefik stefanscherer/traefik-windows:v$version docker push stefanscherer/traefik-windows:v$version docker push stefanscherer/traefik-windows
$version=$(select-string -Path Dockerfile -Pattern "ENV TRAEFIK_VERSION").ToString().split()[-1] docker tag traefik stefanscherer/traefik-windows:v$version-1607 docker push stefanscherer/traefik-windows:v$version-1607 npm install -g rebase-docker-image rebase-docker-image stefanscherer/traefik-windows:v$version-1607...
Build Traefik 1709 image with netapi dll
Build Traefik 1709 image with netapi dll
PowerShell
mit
StefanScherer/dockerfiles-windows,StefanScherer/dockerfiles-windows,StefanScherer/dockerfiles-windows,StefanScherer/dockerfiles-windows,StefanScherer/dockerfiles-windows,StefanScherer/dockerfiles-windows,StefanScherer/dockerfiles-windows
powershell
## Code Before: $version=$(select-string -Path Dockerfile -Pattern "ENV TRAEFIK_VERSION").ToString().split()[-1] docker tag traefik stefanscherer/traefik-windows docker tag traefik stefanscherer/traefik-windows:v$version docker push stefanscherer/traefik-windows:v$version docker push stefanscherer/traefik-windows ## I...
1a4c8881845e6120efa6ceb2758d2963bfdedd73
lib/dataService.js
lib/dataService.js
'use strict'; var requiredKeys = ['url','type'] class DataService { constructor(config) { this.config = this.validate(config) this.data = null } validate(config) { if (!config) throw new Error('DataService missing config object') requiredKeys.forEach((key) => { if (!config.hasOwnProperty(...
'use strict'; class Config { constructor() { this.requiredKeys = ['url','type'] this.messages = { missingConfig: 'DataService missing config object', missingKey: 'DataService config missing required key: ' } } error(msg) { throw new Error(msg) } checkKeyValidity(config, key) { ...
Refactor config checking into separate class
Refactor config checking into separate class
JavaScript
mit
mediasuitenz/mappy,mediasuitenz/mappy
javascript
## Code Before: 'use strict'; var requiredKeys = ['url','type'] class DataService { constructor(config) { this.config = this.validate(config) this.data = null } validate(config) { if (!config) throw new Error('DataService missing config object') requiredKeys.forEach((key) => { if (!config...
eb3855adf1ac78e58dca049b4241e6e7091b1b02
requirements.txt
requirements.txt
aiohttp==1.0.5 aioredis==0.2.9 async-timeout==1.1.0 asyncio-extras==1.2.0 cffi==1.8.3 chardet==2.3.0 dateparser==0.5.0 discord.py==0.14.2 elasticsearch==5.0.1 elasticsearch-dsl==5.0.0 hiredis==0.2.0 jdatetime==1.8.1 Logbook==1.0.0 multidict==2.1.2 parsedatetime==2.1 psutil==4.4.2 pycparser==2.17 PyNaCl==1.0.1 python-da...
jinja2 aiopixiv>=1.0.0,<=1.1.0 aiohttp==1.0.5 aioredis==0.2.9 async-timeout==1.1.0 asyncio-extras==1.2.0 cffi==1.8.3 chardet==2.3.0 dateparser==0.5.0 discord.py==0.14.2 elasticsearch==5.0.1 elasticsearch-dsl==5.0.0 hiredis==0.2.0 jdatetime==1.8.1 Logbook==1.0.0 multidict==2.1.2 parsedatetime==2.1 psutil==4.4.2 pycparse...
Add aiopixiv as a requirement.
Add aiopixiv as a requirement.
Text
mit
MJB47/Jokusoramame,MJB47/Jokusoramame,MJB47/Jokusoramame
text
## Code Before: aiohttp==1.0.5 aioredis==0.2.9 async-timeout==1.1.0 asyncio-extras==1.2.0 cffi==1.8.3 chardet==2.3.0 dateparser==0.5.0 discord.py==0.14.2 elasticsearch==5.0.1 elasticsearch-dsl==5.0.0 hiredis==0.2.0 jdatetime==1.8.1 Logbook==1.0.0 multidict==2.1.2 parsedatetime==2.1 psutil==4.4.2 pycparser==2.17 PyNaCl=...
bda4a43ff3df87d6450ea5af529ed088f8c9203e
ci/scripts/create-bits-release.sh
ci/scripts/create-bits-release.sh
cd $(dirname $0)/../../ version=$(cat $VERSION_FILE) bosh create release --force --name $RELEASE_NAME --with-tarball --version $version mv dev_releases/bits-service/bits-service-*.tgz ../release/
cd $(dirname $0)/../../ version=$(cat $VERSION_FILE) bosh create release --force --name $RELEASE_NAME --with-tarball --version $version mv dev_releases/$RELEASE_NAME/$RELEASE_NAME-*.tgz ../release/
Use `RELEASE_NAME` when moving around the release tgz in CI
Use `RELEASE_NAME` when moving around the release tgz in CI [#113813187]
Shell
apache-2.0
cloudfoundry-incubator/bits-service-release,cloudfoundry-incubator/bits-service-release,cloudfoundry-incubator/bits-service-release,cloudfoundry-incubator/bits-service-release
shell
## Code Before: cd $(dirname $0)/../../ version=$(cat $VERSION_FILE) bosh create release --force --name $RELEASE_NAME --with-tarball --version $version mv dev_releases/bits-service/bits-service-*.tgz ../release/ ## Instruction: Use `RELEASE_NAME` when moving around the release tgz in CI [#113813187] ## Code After:...
bab5a644ff8b734a72d816218edb7cc08eb61349
tests/integration/test04.sh
tests/integration/test04.sh
. $(dirname $0)/helper.sh strings </dev/urandom | head -n1000 | compile_input num_keys=$(wc -l <$COMPILE_INPUT) echo "Inserted $num_keys items" | compile_output query_input <$COMPILE_INPUT yes "Found" | head -n 1000 | query_output runtest "-e"
. $(dirname $0)/helper.sh COUNT=10000 strings </dev/urandom | head -n $COUNT | compile_input num_keys=$(wc -l <$COMPILE_INPUT) echo "Inserted $num_keys items" | compile_output query_input <$COMPILE_INPUT yes "Found" | head -n $COUNT | query_output runtest "-e"
Increase number of tests in test 4
Increase number of tests in test 4
Shell
bsd-3-clause
lubomir/libtrie,lubomir/libtrie,lubomir/libtrie
shell
## Code Before: . $(dirname $0)/helper.sh strings </dev/urandom | head -n1000 | compile_input num_keys=$(wc -l <$COMPILE_INPUT) echo "Inserted $num_keys items" | compile_output query_input <$COMPILE_INPUT yes "Found" | head -n 1000 | query_output runtest "-e" ## Instruction: Increase number of tests in test 4 ##...
d7be4178048fae84da7366a7a6355628fecae249
test/data-structures/testGraph.js
test/data-structures/testGraph.js
/* eslint-env mocha */ const Graph = require('../../src').DataStructures.Graph; const assert = require('assert'); describe('Graph', () => { it('should be empty when initialized', () => { const inst = new Graph(); assert(inst.isEmpty()); assert.equal(inst.size, 0); assert.deepStrictEqual(inst.vertice...
/* eslint-env mocha */ const Graph = require('../../src').DataStructures.Graph; const assert = require('assert'); describe('Graph', () => { it('should be empty when initialized', () => { const inst = new Graph(); assert(inst.isEmpty()); assert.equal(inst.size, 0); assert.deepStrictEqual(inst.vertice...
Test Graph: Adds test to check for creating Graph
Test Graph: Adds test to check for creating Graph
JavaScript
mit
ManrajGrover/algorithms-js
javascript
## Code Before: /* eslint-env mocha */ const Graph = require('../../src').DataStructures.Graph; const assert = require('assert'); describe('Graph', () => { it('should be empty when initialized', () => { const inst = new Graph(); assert(inst.isEmpty()); assert.equal(inst.size, 0); assert.deepStrictEq...
d105a3df22f11ccaa67fb6badeb4fe3b5b32f126
_posts/2015-09-10-push-symfony-assets-to-s3-with-assetic.md
_posts/2015-09-10-push-symfony-assets-to-s3-with-assetic.md
--- layout: post title: Push your Symfony assets to AWS S3 with Assetic date: 2015-09-10 summary: You only need Assetic and the AWS SDK, some configuration and you're good to go ! categories: symfony2 tags: symfony2 trick --- You only need Assetic and the AWS SDK, some configuration and you're good t...
--- layout: post title: Push your Symfony assets to AWS S3 with Assetic date: 2015-09-10 summary: You only need Assetic and the AWS SDK, some configuration and you're good to go ! categories: symfony2 tags: symfony2 trick --- You only need Assetic and the AWS SDK, some configuration and you're good t...
Switch to my fork :smiling_imp:
Switch to my fork :smiling_imp:
Markdown
mit
lologhi/lologhi.github.com
markdown
## Code Before: --- layout: post title: Push your Symfony assets to AWS S3 with Assetic date: 2015-09-10 summary: You only need Assetic and the AWS SDK, some configuration and you're good to go ! categories: symfony2 tags: symfony2 trick --- You only need Assetic and the AWS SDK, some configuration a...
a9fefcd506d2fcd39bae7612e9be49276b22e66d
packages/tr/trivial-constraint.yaml
packages/tr/trivial-constraint.yaml
homepage: https://github.com/leftaroundabout/trivial-constraint changelog-type: '' hash: 819468024c1eab92abdbb52427a81a6e31bbd458cd0185b4709310569d08256a test-bench-deps: {} maintainer: sagemuej@smail.uni-koeln.de synopsis: Constraints that any type, resp. no type fulfills changelog: '' basic-deps: base: ! '>=4.5 && ...
homepage: https://github.com/leftaroundabout/trivial-constraint changelog-type: '' hash: 2a6366931e8d4fedb8f78738e80ff1f09741ad621aef9202e15be33341ac970c test-bench-deps: {} maintainer: sagemuej@smail.uni-koeln.de synopsis: Constraints that any type, resp. no type fulfills changelog: '' basic-deps: base: ! '>=4.5 && ...
Update from Hackage at 2019-05-24T22:57:21Z
Update from Hackage at 2019-05-24T22:57:21Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/leftaroundabout/trivial-constraint changelog-type: '' hash: 819468024c1eab92abdbb52427a81a6e31bbd458cd0185b4709310569d08256a test-bench-deps: {} maintainer: sagemuej@smail.uni-koeln.de synopsis: Constraints that any type, resp. no type fulfills changelog: '' basic-deps: ba...
8e1778e49d63177804a577c98388c6934dd4ce21
lib/tasks/grant_group_self_access.rb
lib/tasks/grant_group_self_access.rb
namespace :cg do desc "Gives groups self access; for use once in upgrading data to core." task(:grant_group_self_access => :environment) do Group.all.each do |group| group.grant! group, :all # if group is a council, only that council-group, not the parent-group, # should have admin access o...
namespace :cg do desc "Gives groups self access; for use once in upgrading data to core." task(:grant_group_self_access => :environment) do Group.all.each do |group| group.grant! group, :all # if group is a council, only that council-group, not the parent-group, # should have admin access o...
Tweak to task as there seem to be councils that don't have parent groups.
Tweak to task as there seem to be councils that don't have parent groups.
Ruby
agpl-3.0
elijh/crabgrass-core,elijh/crabgrass-core,elijh/crabgrass-core
ruby
## Code Before: namespace :cg do desc "Gives groups self access; for use once in upgrading data to core." task(:grant_group_self_access => :environment) do Group.all.each do |group| group.grant! group, :all # if group is a council, only that council-group, not the parent-group, # should hav...
e9ee48e2696624464607d4311a213bf6ac79365d
test/SocketTest.php
test/SocketTest.php
<?php namespace Amp\Dns\Test; use Amp\Dns; use Amp\Loop; use Amp\PHPUnit\TestCase; use Amp\Promise; use LibDNS\Messages\Message; use LibDNS\Messages\MessageTypes; use LibDNS\Records\QuestionFactory; abstract class SocketTest extends TestCase { abstract protected function connect(): Promise; public function ...
<?php namespace Amp\Dns\Test; use Amp\Dns; use Amp\Loop; use Amp\PHPUnit\TestCase; use Amp\Promise; use LibDNS\Messages\Message; use LibDNS\Messages\MessageTypes; use LibDNS\Records\QuestionFactory; abstract class SocketTest extends TestCase { abstract protected function connect(): Promise; public function ...
Use assertLessThan over simple assertTrue
Use assertLessThan over simple assertTrue
PHP
mit
amphp/dns
php
## Code Before: <?php namespace Amp\Dns\Test; use Amp\Dns; use Amp\Loop; use Amp\PHPUnit\TestCase; use Amp\Promise; use LibDNS\Messages\Message; use LibDNS\Messages\MessageTypes; use LibDNS\Records\QuestionFactory; abstract class SocketTest extends TestCase { abstract protected function connect(): Promise; ...
b873dd9deca427f5d978b822b783f51d9e74382c
.travis.yml
.travis.yml
rvm: 2.0.0 notifications: email: - grimbeaj+travisci@gmail.com env: - PUPPET_VERSION=3.7.5 - PUPPET_VERSION=4.0.0
rvm: 2.0.0 notifications: email: - grimbeaj+travisci@gmail.com env: - PUPPET_VERSION=4.0.0
Drop puppet v3.7.5 Travis-CI checks
Drop puppet v3.7.5 Travis-CI checks YAML dumps differ between v3.7.5 and v4 of puppet. We really only care about puppet v4+ anyway so we're dropping the travis checks against v3.7.5 Signed-off-by: Andrew Grimberg <1f872228929e751eea07667e68fbb1655199bd12@linuxfoundation.org>
YAML
apache-2.0
tykeal/puppet-clm,tykeal/puppet-clm
yaml
## Code Before: rvm: 2.0.0 notifications: email: - grimbeaj+travisci@gmail.com env: - PUPPET_VERSION=3.7.5 - PUPPET_VERSION=4.0.0 ## Instruction: Drop puppet v3.7.5 Travis-CI checks YAML dumps differ between v3.7.5 and v4 of puppet. We really only care about puppet v4+ anyway so we're dropping the travis ch...
aed50e9a20b6f351cceed03350d28ab10966ab92
google/adsense-notes.md
google/adsense-notes.md
AdSense is a free, simple way to make money online by placing ads on your website. Advertisers bid for your ad space in a real-time auction. ## More Ways to Make Money * Custom Search: Allows ads to be based on searches perform on your site. * Game Sites: Show video, display, or test ads within your own web-based ...
AdSense is a free, simple way to make money online by placing ads on your website. Advertisers bid for your ad space in a real-time auction. ## More Ways to Make Money * Custom Search: Allows ads to be based on searches perform on your site. * Game Sites: Show video, display, or test ads within your own web-based ...
Add an Ad Types Section
Add an Ad Types Section
Markdown
mit
dhurlburtusa/shortcuts,dhurlburtusa/shortcuts
markdown
## Code Before: AdSense is a free, simple way to make money online by placing ads on your website. Advertisers bid for your ad space in a real-time auction. ## More Ways to Make Money * Custom Search: Allows ads to be based on searches perform on your site. * Game Sites: Show video, display, or test ads within you...
0b8c1a7b068c52c971658fbcd403c1ee9120489d
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" services: - riak - redis-server install: # We easy_install a binary riak_pb package because pip install needs `protoc'. - "easy_install 'riak_pb<1.3.0'" - "pip install -r requirements.pip --use-mirrors" - "pip install coveralls --use-mirrors" - "python setup.py...
language: python python: - "2.6" - "2.7" node_js: - "0.10" services: - riak - redis-server install: # We easy_install a binary riak_pb package because pip install needs `protoc'. - "easy_install 'riak_pb<1.3.0'" - "pip install -r requirements.pip --use-mirrors" - "pip install coveralls --use-mirrors" ...
Add node.js to Travis builds so that the Javascript sandbox tests run (@justinvdm, @hodgestar).
Add node.js to Travis builds so that the Javascript sandbox tests run (@justinvdm, @hodgestar).
YAML
bsd-3-clause
harrissoerja/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi,harrissoerja/vumi,vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,TouK/vumi,TouK/vumi
yaml
## Code Before: language: python python: - "2.6" - "2.7" services: - riak - redis-server install: # We easy_install a binary riak_pb package because pip install needs `protoc'. - "easy_install 'riak_pb<1.3.0'" - "pip install -r requirements.pip --use-mirrors" - "pip install coveralls --use-mirrors" - ...
4a368199397619226022e294b6dc7aa0a0ffb21b
example/index.html
example/index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Examples, Table of Contents</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Intro.js - Better introductions for websites and features with a step-by-step guide for you...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Examples, Table of Contents</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Intro.js - Better introductions for websites and features with a step-by-step guide for you...
Fix bad title of RTL version link + Add HTML tooltip exmaple link
Fix bad title of RTL version link + Add HTML tooltip exmaple link
HTML
agpl-3.0
newsela/intro.js,kurideja/introjs-extended,newsela/intro.js,Simon-Briggs/intro.js,Simon-Briggs/intro.js,kurideja/introjs-extended,Simon-Briggs/intro.js
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Examples, Table of Contents</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Intro.js - Better introductions for websites and features with a step-by-st...
089af405b331ecfa2cb0cf9a74423c392beea4e4
lazysignup/test_settings.py
lazysignup/test_settings.py
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = '' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' ...
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = '' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' ...
Remove the now-defunct middleware from the test settings
Remove the now-defunct middleware from the test settings
Python
bsd-3-clause
rwillmer/django-lazysignup,stefanklug/django-lazysignup,rwillmer/django-lazysignup,danfairs/django-lazysignup,danfairs/django-lazysignup,stefanklug/django-lazysignup
python
## Code Before: DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = '' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABA...
ce7082b09627b42686d22992b0251f706da9c204
test/tsan/libcxx/lit.local.cfg
test/tsan/libcxx/lit.local.cfg
def getRoot(config): if not config.parent: return config return getRoot(config.parent) root = getRoot(config) if not root.has_libcxx: config.unsupported = True
def getRoot(config): if not config.parent: return config return getRoot(config.parent) root = getRoot(config) # Only run if we have an instrumented libcxx. On Darwin, run always (we have # interceptors to support the system-provided libcxx). if not root.has_libcxx and root.host_os != 'Darwin': config.unsup...
Enable the tsan/libcxx/ testcase(s) on Darwin
[tsan] Enable the tsan/libcxx/ testcase(s) on Darwin Apparently, the std_shared_ptr.cc testcase works fine on Darwin, even without the instrumented libcxx. Let's enable it. Differential Revision: https://reviews.llvm.org/D26162 git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@285634 91177308-0d34-0410-b5e6-962...
INI
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
ini
## Code Before: def getRoot(config): if not config.parent: return config return getRoot(config.parent) root = getRoot(config) if not root.has_libcxx: config.unsupported = True ## Instruction: [tsan] Enable the tsan/libcxx/ testcase(s) on Darwin Apparently, the std_shared_ptr.cc testcase works fine on Dar...
5dfd723b37e208c1b81e65cd2df1b7d9226493b3
numpy/_array_api/_sorting_functions.py
numpy/_array_api/_sorting_functions.py
def argsort(x, /, *, axis=-1, descending=False, stable=True): from .. import argsort from .. import flip # Note: this keyword argument is different, and the default is different. kind = 'stable' if stable else 'quicksort' res = argsort(x, axis=axis, kind=kind) if descending: res = flip(r...
def argsort(x, /, *, axis=-1, descending=False, stable=True): from .. import argsort from .. import flip # Note: this keyword argument is different, and the default is different. kind = 'stable' if stable else 'quicksort' res = argsort(x, axis=axis, kind=kind) if descending: res = flip(r...
Add missing returns to the array API sorting functions
Add missing returns to the array API sorting functions
Python
mit
cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy
python
## Code Before: def argsort(x, /, *, axis=-1, descending=False, stable=True): from .. import argsort from .. import flip # Note: this keyword argument is different, and the default is different. kind = 'stable' if stable else 'quicksort' res = argsort(x, axis=axis, kind=kind) if descending: ...
01c3baa8c43e976267c47934b99f7f4b210d36b6
tests/unit/core/randomGeneration.spec.js
tests/unit/core/randomGeneration.spec.js
import { expect } from 'chai'; import jsf from '../../../src'; /* global describe, it */ describe('Random Generation', () => { it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', async () => { jsf.option({ alwaysFakeOptionals: true, }); const schema...
import { expect } from 'chai'; import jsf from '../../../src'; /* global describe, it */ describe('Random Generation', () => { it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', () => { jsf.option({ alwaysFakeOptionals: true, }); const schema = { ...
Disable async/await to run on v6
Disable async/await to run on v6
JavaScript
mit
json-schema-faker/json-schema-faker,pateketrueke/json-schema-faker,json-schema-faker/json-schema-faker
javascript
## Code Before: import { expect } from 'chai'; import jsf from '../../../src'; /* global describe, it */ describe('Random Generation', () => { it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', async () => { jsf.option({ alwaysFakeOptionals: true, }); ...
d002c8fb88ca84a51d3c040054e84e59b13e9e1c
README.md
README.md
go-openzwave ============ Go binding to openzwave library. Dependencies ============ openzwave - 1.0.791 - https://code.google.com/p/open-zwave/
go-openzwave ============ A minimal 'Go' binding to the C++ openzwave library. Note that only the subset of functionality required to support Ninja's current requirements is exposed. Building ======== To build run `make` in the project directory. Once the dependency is build `go install` will suffice to rebuild it. ...
Add notes about building, and scope of API.
Add notes about building, and scope of API. Signed-off-by: Jon Seymour <44f878afe53efc66b76772bd845eb65944ed8232@ninjablocks.com>
Markdown
mit
ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave
markdown
## Code Before: go-openzwave ============ Go binding to openzwave library. Dependencies ============ openzwave - 1.0.791 - https://code.google.com/p/open-zwave/ ## Instruction: Add notes about building, and scope of API. Signed-off-by: Jon Seymour <44f878afe53efc66b76772bd845eb65944ed8232@ninjablocks.com> ## Code A...
48228b55ddf8bbd18bcd18562f893248d9b78ecc
deploy/kube-config/standalone/heapster-controller.json
deploy/kube-config/standalone/heapster-controller.json
{ "apiVersion": "v1", "kind": "ReplicationController", "metadata": { "labels": { "k8s-app" : "heapster", "name": "heapster", "version": "v6" }, "name": "heapster", "namespace": "kube-system" }, "spec": { "replicas": 1, "selector": { "k8s-app": "heapster", "version": "v...
{ "apiVersion": "v1", "kind": "ReplicationController", "metadata": { "labels": { "k8s-app" : "heapster", "name": "heapster", "version": "v6" }, "name": "heapster", "namespace": "kube-system" }, "spec": { "replicas": 1, "selector": { "k8s-app": "heapster", "version": "v...
Add ssl volume mount to standalone config
Add ssl volume mount to standalone config
JSON
apache-2.0
naxhh/heapster,jackzampolin/heapster,taimir/heapster,liuhewei/heapster,liubog2008/heapster,mwielgus/heapster,liubog2008/heapster,Huawei-PaaS/heapster,aegixx/heapster,mdshuai/heapster,burmanm/heapster,titilambert/heapster,krzyzacy/heapster,mwringe/heapster,adfin/statster,shilpamayanna/heapster,afein/heapster,apeeyush/he...
json
## Code Before: { "apiVersion": "v1", "kind": "ReplicationController", "metadata": { "labels": { "k8s-app" : "heapster", "name": "heapster", "version": "v6" }, "name": "heapster", "namespace": "kube-system" }, "spec": { "replicas": 1, "selector": { "k8s-app": "heapster", ...
9bfea7788f04835fef2ed83811a3f4830247dfc0
app/forms/hyrax/geo_work_form.rb
app/forms/hyrax/geo_work_form.rb
module Hyrax class GeoWorkForm < Hyrax::HyraxForm include ::GeoWorks::BasicGeoMetadataForm include ::GeoWorks::ExternalMetadataFileForm include ::GeoWorks::GeoreferencedForm self.terms += [:spatial, :temporal, :coverage, :issued, :should_populate_metadata, :cartographic_projection] self.required_f...
module Hyrax class GeoWorkForm < Hyrax::HyraxForm include ::GeoWorks::BasicGeoMetadataForm include ::GeoWorks::ExternalMetadataFileForm include ::GeoWorks::GeoreferencedForm self.terms += [:spatial, :temporal, :coverage, :issued, :should_populate_metadata, :cartographic_projection] self.required_f...
Add additional properties to geo work form
Add additional properties to geo work form
Ruby
apache-2.0
pulibrary/plum,pulibrary/plum,pulibrary/plum,pulibrary/plum
ruby
## Code Before: module Hyrax class GeoWorkForm < Hyrax::HyraxForm include ::GeoWorks::BasicGeoMetadataForm include ::GeoWorks::ExternalMetadataFileForm include ::GeoWorks::GeoreferencedForm self.terms += [:spatial, :temporal, :coverage, :issued, :should_populate_metadata, :cartographic_projection] ...
e2cbd988c9869a4641987254e4f805d4952514f3
test/test-backbone/environment.js
test/test-backbone/environment.js
/* jshint strict:false */ /* global QUnit:false, Backbone:false, window:false */ // Taken from Backbone 1.1.2 test suite (function() { var sync = Backbone.sync; var ajax = Backbone.ajax; var emulateHTTP = Backbone.emulateHTTP; var emulateJSON = Backbone.emulateJSON; var history = window.history; var push...
/* jshint strict:false */ /* global QUnit:false, Backbone:false */ // Taken from Backbone 1.1.2 test suite // Routing-specific stuff commented out (function() { var sync = Backbone.sync; var ajax = Backbone.ajax; var emulateHTTP = Backbone.emulateHTTP; var emulateJSON = Backbone.emulateJSON; // var history...
Remove route-related stuff from test-bb/env
Remove route-related stuff from test-bb/env
JavaScript
mit
biril/backbone-proxy,biril/backbone-proxy
javascript
## Code Before: /* jshint strict:false */ /* global QUnit:false, Backbone:false, window:false */ // Taken from Backbone 1.1.2 test suite (function() { var sync = Backbone.sync; var ajax = Backbone.ajax; var emulateHTTP = Backbone.emulateHTTP; var emulateJSON = Backbone.emulateJSON; var history = window.his...
e46b19bad69e945a8bd351f58a03ab3fc136b997
share/gpac.desktop
share/gpac.desktop
[Desktop Entry] Version=1.0 Name=MP4Client Comment=GPAC Media Player GenericName=Media Player Keywords=Media Player Exec=MP4Client -gui %u Terminal=false X-MultipleArgs=false Type=Application Icon=gpac Categories=AudioVideo MimeType=text/text;text/xml;application/xhtml+xml;application/xml;image/jpeg;image/png;video/web...
[Desktop Entry] Version=1.0 Name=MP4Client Comment=GPAC Media Player GenericName=Media Player Keywords=Media Player Exec=MP4Client -gui %u Terminal=false Type=Application Icon=gpac Categories=AudioVideo MimeType=text/text;text/xml;application/xhtml+xml;application/xml;image/jpeg;image/png;video/webm;video/mp4;video/mpe...
Remove extra 'X-MultipleArgs' from desktop file
Remove extra 'X-MultipleArgs' from desktop file It is not standard, and not used anywhere (the '%u' placeholder in the 'Exec' key already specifies only one optional argument is supported).
desktop
lgpl-2.1
rbouqueau/gpac,rbouqueau/gpac,rbouqueau/gpac,rbouqueau/gpac,gpac/gpac,gpac/gpac,gpac/gpac,rbouqueau/gpac,gpac/gpac,gpac/gpac,rbouqueau/gpac,gpac/gpac,gpac/gpac,rbouqueau/gpac,rbouqueau/gpac,gpac/gpac
desktop
## Code Before: [Desktop Entry] Version=1.0 Name=MP4Client Comment=GPAC Media Player GenericName=Media Player Keywords=Media Player Exec=MP4Client -gui %u Terminal=false X-MultipleArgs=false Type=Application Icon=gpac Categories=AudioVideo MimeType=text/text;text/xml;application/xhtml+xml;application/xml;image/jpeg;ima...
5281831dc3b11ad904bdce92246102e850dfe5ea
spec/requests/static_pages_spec.rb
spec/requests/static_pages_spec.rb
require 'spec_helper' describe "Static Pages" do describe "Home page" do # Capybara provides visit, which sets the page variable before { visit root_path } subject { page } it { should have_title(page_title('Home of')) } it { should have_content('For Scientific Exploration') } end describ...
require 'spec_helper' describe "Static Pages" do describe "Home page" do # Capybara provides visit, which sets the page variable before { visit root_path } subject { page } it { should have_title(page_title('Home of')) } it { should have_content('For Scientific Exploration') } end describ...
Add tests for following links on static pages
Add tests for following links on static pages
Ruby
mit
David-Smyth/Poetry,David-Smyth/Poetry
ruby
## Code Before: require 'spec_helper' describe "Static Pages" do describe "Home page" do # Capybara provides visit, which sets the page variable before { visit root_path } subject { page } it { should have_title(page_title('Home of')) } it { should have_content('For Scientific Exploration') } ...
b5d3590f4a83f65f9ef767defe730bdceb87aedb
dist.ini
dist.ini
name = String-Markov author = Grant Mathews <gmathews@cpan.com> license = Perl_5 copyright_holder = Grant Mathews copyright_year = 2014 [VersionFromModule] [@Git] [@Basic] [AutoPrereqs] [PodWeaver] [TestRelease] [ConfirmRelease] [UploadToCPAN]
name = String-Markov author = Grant Mathews <gmathews@cpan.com> license = Artistic_2_0 copyright_holder = Grant Mathews copyright_year = 2014 [VersionFromModule] [@Git] [@Basic] [AutoPrereqs] [PodWeaver] [TestRelease] [ConfirmRelease] [UploadToCPAN]
Update license: Perl 5 -> Artistic 2.0
Update license: Perl 5 -> Artistic 2.0 The original license was the default from Dist::Zilla, which seemed reasonable at the time: dual-licensed under GPL and Artistic. However, GitHub doesn't appear to play nice with dual licensing, and since the Artistic 2.0 license is GPL compatabile, this change appears to be the...
INI
artistic-2.0
grantisu/String-Markov,grantisu/String-Markov
ini
## Code Before: name = String-Markov author = Grant Mathews <gmathews@cpan.com> license = Perl_5 copyright_holder = Grant Mathews copyright_year = 2014 [VersionFromModule] [@Git] [@Basic] [AutoPrereqs] [PodWeaver] [TestRelease] [ConfirmRelease] [UploadToCPAN] ## Instruction: Update license: Perl 5 -> Artisti...
6202d66873f8035b66f83838cacb462f74125eec
test/stripe/order_return_test.rb
test/stripe/order_return_test.rb
require File.expand_path('../../test_helper', __FILE__) module Stripe class OrderReturnTest < Test::Unit::TestCase should "return_order should be listable" do @mock.expects(:get).once.returns(make_response(make_order_return_array)) returns = Stripe::OrderReturn.list assert returns.data.kind_of?...
require File.expand_path('../../test_helper', __FILE__) module Stripe class OrderReturnTest < Test::Unit::TestCase should "returns should be listable" do @mock.expects(:get).once.returns(make_response(make_order_return_array)) returns = Stripe::OrderReturn.list assert returns.data.kind_of?(Arra...
Add tests for return deletion, updating.
Add tests for return deletion, updating.
Ruby
mit
stripe/stripe-ruby
ruby
## Code Before: require File.expand_path('../../test_helper', __FILE__) module Stripe class OrderReturnTest < Test::Unit::TestCase should "return_order should be listable" do @mock.expects(:get).once.returns(make_response(make_order_return_array)) returns = Stripe::OrderReturn.list assert retur...
5847e9db8f316fdee6493fefc9cbc64a1e6a28de
km_api/know_me/serializers/subscription_serializers.py
km_api/know_me/serializers/subscription_serializers.py
import hashlib import logging from django.utils.translation import ugettext from rest_framework import serializers from know_me import models, subscriptions logger = logging.getLogger(__name__) class AppleSubscriptionSerializer(serializers.ModelSerializer): """ Serializer for an Apple subscription. ""...
import hashlib import logging from django.utils.translation import ugettext from rest_framework import serializers from know_me import models, subscriptions logger = logging.getLogger(__name__) class AppleSubscriptionSerializer(serializers.ModelSerializer): """ Serializer for an Apple subscription. ""...
Mark apple receipt expiration time as read only.
Mark apple receipt expiration time as read only.
Python
apache-2.0
knowmetools/km-api,knowmetools/km-api,knowmetools/km-api,knowmetools/km-api
python
## Code Before: import hashlib import logging from django.utils.translation import ugettext from rest_framework import serializers from know_me import models, subscriptions logger = logging.getLogger(__name__) class AppleSubscriptionSerializer(serializers.ModelSerializer): """ Serializer for an Apple subs...
a708d9cc8f36171337d6028fbcaa96f14917b749
spec/travis/api/v2/http/hooks_spec.rb
spec/travis/api/v2/http/hooks_spec.rb
require 'spec_helper' describe Travis::Api::V2::Http::Hooks do include Travis::Testing::Stubs let(:data) { Travis::Api::V2::Http::Hooks.new([repository]).data } it 'hooks' do data['hooks'].should == [ { 'id' => 1, 'name' => 'minimal', 'owner_name' => 'svenfuchs', 'desc...
require 'spec_helper' describe Travis::Api::V2::Http::Hooks do include Travis::Testing::Stubs let(:data) { r = repository r.stubs(:admin?).returns(true) Travis::Api::V2::Http::Hooks.new([r]).data } it 'hooks' do data['hooks'].should == [ { 'id' => 1, 'name' => 'minimal',...
Fix API data hooks spec
Fix API data hooks spec
Ruby
mit
GistIcon/travis-core,jantman/travis-core,travis-ci/travis-core,final-ci/travis-core,developerfm/travis-core,Tiger66639/travis-core,jantman/travis-core,final-ci/travis-core,GistIcon/travis-core,travis-ci/travis-core,GistIcon/travis-core,kidaa/travis-core,Tiger66639/travis-core,kidaa/travis-core,developerfm/travis-core,k...
ruby
## Code Before: require 'spec_helper' describe Travis::Api::V2::Http::Hooks do include Travis::Testing::Stubs let(:data) { Travis::Api::V2::Http::Hooks.new([repository]).data } it 'hooks' do data['hooks'].should == [ { 'id' => 1, 'name' => 'minimal', 'owner_name' => 'svenfuchs...
047b65c263fe1947821ab0853f9215ced3d912df
workspace/CardFantasyCore/src/cfvbaibai/cardfantasy/engine/Deck.java
workspace/CardFantasyCore/src/cfvbaibai/cardfantasy/engine/Deck.java
package cfvbaibai.cardfantasy.engine; import java.util.ArrayList; import java.util.Collection; import java.util.List; import cfvbaibai.cardfantasy.CardFantasyRuntimeException; import cfvbaibai.cardfantasy.Randomizer; import cfvbaibai.cardfantasy.data.Race; public class Deck extends CardPile { public Deck(Collec...
package cfvbaibai.cardfantasy.engine; import java.util.ArrayList; import java.util.Collection; import java.util.List; import cfvbaibai.cardfantasy.CardFantasyRuntimeException; import cfvbaibai.cardfantasy.Randomizer; public class Deck extends CardPile { public Deck(Collection <CardInfo> cards) { List <C...
Fix deck sorting issue in boss battle
Fix deck sorting issue in boss battle
Java
bsd-2-clause
cfvbaibai/CardFantasy,cfvbaibai/CardFantasy
java
## Code Before: package cfvbaibai.cardfantasy.engine; import java.util.ArrayList; import java.util.Collection; import java.util.List; import cfvbaibai.cardfantasy.CardFantasyRuntimeException; import cfvbaibai.cardfantasy.Randomizer; import cfvbaibai.cardfantasy.data.Race; public class Deck extends CardPile { pu...
0268914252047f53ef5fc53bac9032e0ddb92c7f
API_CHANGES.txt
API_CHANGES.txt
1. Rename kaa.notifier mainloop control: kaa.notifier.init() is kaa.main.select_notifier() kaa.notifier.loop() and kaa.main() is now kaa.main.run() kaa.notifier.step() is kaa.main.step() kaa.notifier.shutdown() is kaa.main.stop() kaa.notifier.running is kaa.main.is_running() kaa.notifier.signals (shut...
1. Rename kaa.notifier mainloop control: kaa.notifier.init() is kaa.main.select_notifier() kaa.notifier.loop() and kaa.main() is now kaa.main.run() kaa.notifier.step() is kaa.main.step() kaa.notifier.shutdown() is kaa.main.stop() kaa.notifier.running is kaa.main.is_running() kaa.notifier.signals (shut...
Update to reflect lock kwarg rename
Update to reflect lock kwarg rename git-svn-id: 9d763a2146cc7918956fa045a5de4b112f309167@2993 a8f5125c-1e01-0410-8897-facf34644b8e
Text
lgpl-2.1
freevo/kaa-base,freevo/kaa-base
text
## Code Before: 1. Rename kaa.notifier mainloop control: kaa.notifier.init() is kaa.main.select_notifier() kaa.notifier.loop() and kaa.main() is now kaa.main.run() kaa.notifier.step() is kaa.main.step() kaa.notifier.shutdown() is kaa.main.stop() kaa.notifier.running is kaa.main.is_running() kaa.notifi...
b0cf394a358729674f7b366828483b4745925d45
requests.go
requests.go
package gowebutils import ( "io" "io/ioutil" "net/http" ) const MaxRequestSize = 1048576 * 5 func PrepareRequestBody(r *http.Request) ([]byte, error) { body, err := ioutil.ReadAll(io.LimitReader(r.Body, MaxRequestSize)) if err != nil { return body, err } err = r.Body.Close() return body, err }
package gowebutils import ( "encoding/json" "io" "io/ioutil" "net/http" ) const MaxRequestSize = 1048576 * 5 func PrepareRequestBody(r *http.Request) ([]byte, error) { body, err := ioutil.ReadAll(io.LimitReader(r.Body, MaxRequestSize)) if err != nil { return body, err } err = r.Body.Close() return body, e...
Add helper for unmarshaling the request body.
Add helper for unmarshaling the request body.
Go
mit
wangjohn/gowebutils
go
## Code Before: package gowebutils import ( "io" "io/ioutil" "net/http" ) const MaxRequestSize = 1048576 * 5 func PrepareRequestBody(r *http.Request) ([]byte, error) { body, err := ioutil.ReadAll(io.LimitReader(r.Body, MaxRequestSize)) if err != nil { return body, err } err = r.Body.Close() return body, er...